diff --git a/.github/actions/install_package/action.yml b/.github/actions/install_package/action.yml index 30ab638..2e63751 100644 --- a/.github/actions/install_package/action.yml +++ b/.github/actions/install_package/action.yml @@ -26,5 +26,5 @@ runs: - name: Install Dependencies shell: bash run: | - uv sync + uv sync --refresh echo "python-version=${{ steps.setup_python.outputs.python-version }}" >> "$GITHUB_OUTPUT" diff --git a/MANIFEST.in b/MANIFEST.in index e85c413..8fa09af 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ graft src graft tests prune **/__pycache__/ -prune src/react_plugin +prune src/react_plugin* diff --git a/pyproject.toml b/pyproject.toml index 65913e8..89ac744 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "funcnodes-plotly" -version = "0.3.2" +version = "1.0.0" description = "" readme = "README.md" classifiers = [ @@ -31,8 +31,8 @@ dev = [ ] [build-system] -requires = [ "setuptools>=42",] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project.license] text = "AGPL-3.0" @@ -44,8 +44,8 @@ source = "https://github.com/Linkdlab/funcnodes_plotly" tracker = "https://github.com/Linkdlab/funcnodes_plotly/issues" download = "https://pypi.org/project/funcnodes-plotly/#files" -[tool.setuptools.package-dir] -"" = "src" +[tool.hatch.build.targets.wheel] +packages = ["src/funcnodes_plotly"] [tool.commitizen] @@ -58,5 +58,3 @@ update_changelog_on_bump = true module = "funcnodes_plotly" shelf = "funcnodes_plotly:NODE_SHELF" -[tool.setuptools.packages.find] -where = [ "src",] diff --git a/src/funcnodes_plotly/__init__.py b/src/funcnodes_plotly/__init__.py index 1e38b56..e72452f 100644 --- a/src/funcnodes_plotly/__init__.py +++ b/src/funcnodes_plotly/__init__.py @@ -84,9 +84,9 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata: ) REACT_PLUGIN = { - "module": os.path.join(os.path.dirname(__file__), "react_plugin", "main.js"), - "css": [os.path.join(os.path.dirname(__file__), "react_plugin", "style.css")], + "module": os.path.join(os.path.dirname(__file__), "react_plugin", "index.iife.js"), + "css": [os.path.join(os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css")], } -__version__ = "0.3.1" +__version__ = "1.0.0" diff --git a/src/funcnodes_plotly/react_plugin/index.iife.js b/src/funcnodes_plotly/react_plugin/index.iife.js new file mode 100644 index 0000000..2e3d98e --- /dev/null +++ b/src/funcnodes_plotly/react_plugin/index.iife.js @@ -0,0 +1,3866 @@ +var FuncNodesPlugin=function(cb,fb){"use strict";function uS(zl){const mu=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(zl){for(const Oc in zl)if(Oc!=="default"){const Es=Object.getOwnPropertyDescriptor(zl,Oc);Object.defineProperty(mu,Oc,Es.get?Es:{enumerable:!0,get:()=>zl[Oc]})}}return mu.default=zl,Object.freeze(mu)}const Wh=uS(cb);function cS(zl){return zl&&zl.__esModule&&Object.prototype.hasOwnProperty.call(zl,"default")?zl.default:zl}var Zy={exports:{}},C0={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hb;function fS(){if(hb)return C0;hb=1;var zl=Symbol.for("react.transitional.element"),mu=Symbol.for("react.fragment");function Oc(Es,Ul,Bc){var Bf=null;if(Bc!==void 0&&(Bf=""+Bc),Ul.key!==void 0&&(Bf=""+Ul.key),"key"in Ul){Bc={};for(var Rh in Ul)Rh!=="key"&&(Bc[Rh]=Ul[Rh])}else Bc=Ul;return Ul=Bc.ref,{$$typeof:zl,type:Es,key:Bf,ref:Ul!==void 0?Ul:null,props:Bc}}return C0.Fragment=mu,C0.jsx=Oc,C0.jsxs=Oc,C0}var vb;function hS(){return vb||(vb=1,Zy.exports=fS()),Zy.exports}var Eh=hS(),Yy={},$y={},Ky={exports:{}},Jy,db;function vS(){if(db)return Jy;db=1;var zl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jy=zl,Jy}var Qy,pb;function dS(){if(pb)return Qy;pb=1;var zl=vS();function mu(){}function Oc(){}return Oc.resetWarningCache=mu,Qy=function(){function Es(Bf,Rh,Fv,nd,ev,Ov){if(Ov!==zl){var tv=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw tv.name="Invariant Violation",tv}}Es.isRequired=Es;function Ul(){return Es}var Bc={array:Es,bigint:Es,bool:Es,func:Es,number:Es,object:Es,string:Es,symbol:Es,any:Es,arrayOf:Ul,element:Es,elementType:Es,instanceOf:Ul,node:Es,objectOf:Ul,oneOf:Ul,oneOfType:Ul,shape:Ul,exact:Ul,checkPropTypes:Oc,resetWarningCache:mu};return Bc.PropTypes=Bc,Bc},Qy}var gb;function pS(){return gb||(gb=1,Ky.exports=dS()()),Ky.exports}var mb;function gS(){return mb||(mb=1,function(zl){function mu(ps){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ol){return typeof ol}:function(ol){return ol&&typeof Symbol=="function"&&ol.constructor===Symbol&&ol!==Symbol.prototype?"symbol":typeof ol},mu(ps)}Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=Bv;var Oc=Bf(cb),Es=Ul(pS());function Ul(ps){return ps&&ps.__esModule?ps:{default:ps}}function Bc(ps){if(typeof WeakMap!="function")return null;var ol=new WeakMap,yi=new WeakMap;return(Bc=function(gf){return gf?yi:ol})(ps)}function Bf(ps,ol){if(ps&&ps.__esModule)return ps;if(ps===null||mu(ps)!=="object"&&typeof ps!="function")return{default:ps};var yi=Bc(ol);if(yi&&yi.has(ps))return yi.get(ps);var Cc={},gf=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var sc in ps)if(sc!=="default"&&Object.prototype.hasOwnProperty.call(ps,sc)){var Eo=gf?Object.getOwnPropertyDescriptor(ps,sc):null;Eo&&(Eo.get||Eo.set)?Object.defineProperty(Cc,sc,Eo):Cc[sc]=ps[sc]}return Cc.default=ps,yi&&yi.set(ps,Cc),Cc}function Rh(ps,ol){if(!(ps instanceof ol))throw new TypeError("Cannot call a class as a function")}function Fv(ps,ol){for(var yi=0;yi"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function He(ps){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(yi){return yi.__proto__||Object.getPrototypeOf(yi)},He(ps)}var L0=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],P0=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],I0=typeof window<"u";function Bv(ps){var ol=function(yi){ev(gf,yi);var Cc=tv(gf);function gf(sc){var Eo;return Rh(this,gf),Eo=Cc.call(this,sc),Eo.p=Promise.resolve(),Eo.resizeHandler=null,Eo.handlers={},Eo.syncWindowResize=Eo.syncWindowResize.bind(pv(Eo)),Eo.syncEventHandlers=Eo.syncEventHandlers.bind(pv(Eo)),Eo.attachUpdateEvents=Eo.attachUpdateEvents.bind(pv(Eo)),Eo.getRef=Eo.getRef.bind(pv(Eo)),Eo.handleUpdate=Eo.handleUpdate.bind(pv(Eo)),Eo.figureCallback=Eo.figureCallback.bind(pv(Eo)),Eo.updatePlotly=Eo.updatePlotly.bind(pv(Eo)),Eo}return nd(gf,[{key:"updatePlotly",value:function(Eo,Vi,qo){var Nc=this;this.p=this.p.then(function(){if(!Nc.unmounting){if(!Nc.el)throw new Error("Missing element reference");return ps.react(Nc.el,{data:Nc.props.data,layout:Nc.props.layout,config:Nc.props.config,frames:Nc.props.frames})}}).then(function(){Nc.unmounting||(Nc.syncWindowResize(Eo),Nc.syncEventHandlers(),Nc.figureCallback(Vi),qo&&Nc.attachUpdateEvents())}).catch(function(Nf){Nc.props.onError&&Nc.props.onError(Nf)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(Eo){this.unmounting=!1;var Vi=Eo.frames&&Eo.frames.length?Eo.frames.length:0,qo=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Nc=!(Eo.layout===this.props.layout&&Eo.data===this.props.data&&Eo.config===this.props.config&&qo===Vi),Nf=Eo.revision!==void 0,Lf=Eo.revision!==this.props.revision;!Nc&&(!Nf||Nf&&!Lf)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&I0&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),ps.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var Eo=this;!this.el||!this.el.removeListener||P0.forEach(function(Vi){Eo.el.on(Vi,Eo.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var Eo=this;!this.el||!this.el.removeListener||P0.forEach(function(Vi){Eo.el.removeListener(Vi,Eo.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(Eo){if(typeof Eo=="function"){var Vi=this.el,qo=Vi.data,Nc=Vi.layout,Nf=this.el._transitionData?this.el._transitionData._frames:null,Lf={data:qo,layout:Nc,frames:Nf};Eo(Lf,this.el)}}},{key:"syncWindowResize",value:function(Eo){var Vi=this;I0&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return ps.Plots.resize(Vi.el)},window.addEventListener("resize",this.resizeHandler),Eo&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(Eo){this.el=Eo,this.props.debug&&I0&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var Eo=this;L0.forEach(function(Vi){var qo=Eo.props["on"+Vi],Nc=Eo.handlers[Vi],Nf=!!Nc;qo&&!Nf?Eo.addEventHandler(Vi,qo):!qo&&Nf?Eo.removeEventHandler(Vi):qo&&Nf&&qo!==Nc&&(Eo.removeEventHandler(Vi),Eo.addEventHandler(Vi,qo))})}},{key:"addEventHandler",value:function(Eo,Vi){this.handlers[Eo]=Vi,this.el.on(this.getPlotlyEventName(Eo),this.handlers[Eo])}},{key:"removeEventHandler",value:function(Eo){this.el.removeListener(this.getPlotlyEventName(Eo),this.handlers[Eo]),delete this.handlers[Eo]}},{key:"getPlotlyEventName",value:function(Eo){return"plotly_"+Eo.toLowerCase()}},{key:"render",value:function(){return Oc.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),gf}(Oc.Component);return ol.propTypes={data:Es.default.arrayOf(Es.default.object),config:Es.default.object,layout:Es.default.object,frames:Es.default.arrayOf(Es.default.object),revision:Es.default.number,onInitialized:Es.default.func,onPurge:Es.default.func,onError:Es.default.func,onUpdate:Es.default.func,debug:Es.default.bool,style:Es.default.object,className:Es.default.string,useResizeHandler:Es.default.bool,divId:Es.default.string},L0.forEach(function(yi){ol.propTypes["on"+yi]=Es.default.func}),ol.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},ol}}($y)),$y}var Xg={exports:{}},mS=Xg.exports,yb;function yS(){return yb||(yb=1,function(zl){(function(mu,Oc){zl.exports?zl.exports=Oc():mu.moduleName=Oc()})(typeof self<"u"?self:mS,()=>{var mu=(()=>{var Oc=Object.create,Es=Object.defineProperty,Ul=Object.defineProperties,Bc=Object.getOwnPropertyDescriptor,Bf=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertyNames,Fv=Object.getOwnPropertySymbols,nd=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,Ov=Object.prototype.propertyIsEnumerable,tv=(Y,H,h)=>H in Y?Es(Y,H,{enumerable:!0,configurable:!0,writable:!0,value:h}):Y[H]=h,Od=(Y,H)=>{for(var h in H||(H={}))ev.call(H,h)&&tv(Y,h,H[h]);if(Fv)for(var h of Fv(H))Ov.call(H,h)&&tv(Y,h,H[h]);return Y},pv=(Y,H)=>Ul(Y,Bf(H)),bl=(Y,H)=>function(){return Y&&(H=(0,Y[Rh(Y)[0]])(Y=0)),H},He=(Y,H)=>function(){return H||(0,Y[Rh(Y)[0]])((H={exports:{}}).exports,H),H.exports},L0=(Y,H)=>{for(var h in H)Es(Y,h,{get:H[h],enumerable:!0})},P0=(Y,H,h,x)=>{if(H&&typeof H=="object"||typeof H=="function")for(let A of Rh(H))!ev.call(Y,A)&&A!==h&&Es(Y,A,{get:()=>H[A],enumerable:!(x=Bc(H,A))||x.enumerable});return Y},I0=(Y,H,h)=>(h=Y!=null?Oc(nd(Y)):{},P0(Es(h,"default",{value:Y,enumerable:!0}),Y)),Bv=Y=>P0(Es({},"__esModule",{value:!0}),Y),ps=He({"src/version.js"(Y){Y.version="3.1.0"}}),ol=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,H){(function(x,A,E){A[x]=A[x]||E(),typeof H<"u"&&H.exports&&(H.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(m){return setImmediate(m)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(m,w,S,M){return Object.defineProperty(m,w,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(w,S,M){return w[S]=M,w}}E=function(){var m,w,S;function M(_,b){this.fn=_,this.self=b,this.next=void 0}return{add:function(b,d){S=new M(b,d),w?w.next=S:m=S,w=S,S=void 0},drain:function(){var b=m;for(m=w=A=void 0;b;)b.fn.call(b.self),b=b.next}}}();function r(l,m){E.add(l,m),A||(A=t(E.drain))}function i(l){var m,w=typeof l;return l!=null&&(w=="object"||w=="function")&&(m=l.then),typeof m=="function"?m:!1}function a(){for(var l=0;l0&&r(a,w))}catch(S){s.call(new f(w),S)}}}function s(l){var m=this;m.triggered||(m.triggered=!0,m.def&&(m=m.def),m.msg=l,m.state=2,m.chain.length>0&&r(a,m))}function c(l,m,w,S){for(var M=0;MLe?1:pe>=Le?0:NaN}h.descending=function(pe,Le){return Lepe?1:Le>=pe?0:NaN},h.min=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++$e=Tt){gt=Tt;break}for(;++$eTt&&(gt=Tt)}else{for(;++$e=Tt){gt=Tt;break}for(;++$eTt&&(gt=Tt)}return gt},h.max=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++$e=Tt){gt=Tt;break}for(;++$egt&&(gt=Tt)}else{for(;++$e=Tt){gt=Tt;break}for(;++$egt&&(gt=Tt)}return gt},h.extent=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt,Vt;if(arguments.length===1){for(;++$e=Tt){gt=Vt=Tt;break}for(;++$eTt&&(gt=Tt),Vt=Tt){gt=Vt=Tt;break}for(;++$eTt&&(gt=Tt),Vt1)return Vt/(sr-1)},h.deviation=function(){var pe=h.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function p(pe){return{left:function(Le,$e,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt>>1;pe(Le[Tt],$e)<0?dt=Tt+1:gt=Tt}return dt},right:function(Le,$e,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt>>1;pe(Le[Tt],$e)>0?gt=Tt:dt=Tt+1}return dt}}}var v=p(s);h.bisectLeft=v.left,h.bisect=h.bisectRight=v.right,h.bisector=function(pe){return p(pe.length===1?function(Le,$e){return s(pe(Le),$e)}:pe)},h.shuffle=function(pe,Le,$e){(dt=arguments.length)<3&&($e=pe.length,dt<2&&(Le=0));for(var dt=$e-Le,gt,Tt;dt;)Tt=Math.random()*dt--|0,gt=pe[dt+Le],pe[dt+Le]=pe[Tt+Le],pe[Tt+Le]=gt;return pe},h.permute=function(pe,Le){for(var $e=Le.length,dt=new Array($e);$e--;)dt[$e]=pe[Le[$e]];return dt},h.pairs=function(pe){for(var Le=0,$e=pe.length-1,dt=pe[0],gt=new Array($e<0?0:$e);Le<$e;)gt[Le]=[dt,dt=pe[++Le]];return gt},h.transpose=function(pe){if(!(Tt=pe.length))return[];for(var Le=-1,$e=h.min(pe,T),dt=new Array($e);++Le<$e;)for(var gt=-1,Tt,Vt=dt[Le]=new Array(Tt);++gt=0;)for(Vt=pe[Le],$e=Vt.length;--$e>=0;)Tt[--gt]=Vt[$e];return Tt};var l=Math.abs;h.range=function(pe,Le,$e){if(arguments.length<3&&($e=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/$e===1/0)throw new Error("infinite range");var dt=[],gt=m(l($e)),Tt=-1,Vt;if(pe*=gt,Le*=gt,$e*=gt,$e<0)for(;(Vt=pe+$e*++Tt)>Le;)dt.push(Vt/gt);else for(;(Vt=pe+$e*++Tt)=Le.length)return gt?gt.call(pe,sr):dt?sr.sort(dt):sr;for(var kr=-1,Zr=sr.length,la=Le[Pr++],ca,nn,pa,Pa=new S,Na;++kr=Le.length)return jt;var Pr=[],kr=$e[sr++];return jt.forEach(function(Zr,la){Pr.push({key:Zr,values:Vt(la,sr)})}),kr?Pr.sort(function(Zr,la){return kr(Zr.key,la.key)}):Pr}return pe.map=function(jt,sr){return Tt(sr,jt,0)},pe.entries=function(jt){return Vt(Tt(h.map,jt,0),0)},pe.key=function(jt){return Le.push(jt),pe},pe.sortKeys=function(jt){return $e[Le.length-1]=jt,pe},pe.sortValues=function(jt){return dt=jt,pe},pe.rollup=function(jt){return gt=jt,pe},pe},h.set=function(pe){var Le=new z;if(pe)for(var $e=0,dt=pe.length;$e=0&&(dt=pe.slice($e+1),pe=pe.slice(0,$e)),pe)return arguments.length<2?this[pe].on(dt):this[pe].on(dt,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(dt,null);return this}};function X(pe){var Le=[],$e=new S;function dt(){for(var gt=Le,Tt=-1,Vt=gt.length,jt;++Tt=0&&($e=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty($e)?{space:fe[$e],local:pe}:pe}},Q.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var $e=this.node();return pe=h.ns.qualify(pe),pe.local?$e.getAttributeNS(pe.space,pe.local):$e.getAttribute(pe)}for(Le in pe)this.each(xe(Le,pe[Le]));return this}return this.each(xe(pe,Le))};function xe(pe,Le){pe=h.ns.qualify(pe);function $e(){this.removeAttribute(pe)}function dt(){this.removeAttributeNS(pe.space,pe.local)}function gt(){this.setAttribute(pe,Le)}function Tt(){this.setAttributeNS(pe.space,pe.local,Le)}function Vt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttribute(pe):this.setAttribute(pe,sr)}function jt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,sr)}return Le==null?pe.local?dt:$e:typeof Le=="function"?pe.local?jt:Vt:pe.local?Tt:gt}function Ae(pe){return pe.trim().replace(/\s+/g," ")}Q.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var $e=this.node(),dt=(pe=Ce(pe)).length,gt=-1;if(Le=$e.classList){for(;++gt=0;)(Tt=$e[dt])&&(gt&>!==Tt.nextSibling&>.parentNode.insertBefore(Tt,gt),gt=Tt);return this},Q.sort=function(pe){pe=De.apply(this,arguments);for(var Le=-1,$e=this.length;++Le<$e;)this[Le].sort(pe);return this.order()};function De(pe){return arguments.length||(pe=s),function(Le,$e){return Le&&$e?pe(Le.__data__,$e.__data__):!Le-!$e}}Q.each=function(pe){return et(this,function(Le,$e,dt){pe.call(Le,Le.__data__,$e,dt)})};function et(pe,Le){for(var $e=0,dt=pe.length;$e=Le&&(Le=gt+1);!(sr=Vt[Le])&&++Le0&&(pe=pe.slice(0,gt));var Vt=Ut.get(pe);Vt&&(pe=Vt,Tt=vr);function jt(){var kr=this[dt];kr&&(this.removeEventListener(pe,kr,kr.$),delete this[dt])}function sr(){var kr=Tt(Le,A(arguments));jt.call(this),this.addEventListener(pe,this[dt]=kr,kr.$=$e),kr._=Le}function Pr(){var kr=new RegExp("^__on([^.]+)"+h.requote(pe)+"$"),Zr;for(var la in this)if(Zr=la.match(kr)){var ca=this[la];this.removeEventListener(Zr[1],ca,ca.$),delete this[la]}}return gt?Le?sr:jt:Le?N:Pr}var Ut=h.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Ut.forEach(function(pe){"on"+pe in E&&Ut.remove(pe)});function Yt(pe,Le){return function($e){var dt=h.event;h.event=$e,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{h.event=dt}}}function vr(pe,Le){var $e=Yt(pe,Le);return function(dt){var gt=this,Tt=dt.relatedTarget;(!Tt||Tt!==gt&&!(Tt.compareDocumentPosition(gt)&8))&&$e.call(gt,dt)}}var hr,Rr=0;function dr(pe){var Le=".dragsuppress-"+ ++Rr,$e="click"+Le,dt=h.select(t(pe)).on("touchmove"+Le,te).on("dragstart"+Le,te).on("selectstart"+Le,te);if(hr==null&&(hr="onselectstart"in pe?!1:O(pe.style,"userSelect")),hr){var gt=e(pe).style,Tt=gt[hr];gt[hr]="none"}return function(Vt){if(dt.on(Le,null),hr&&(gt[hr]=Tt),Vt){var jt=function(){dt.on($e,null)};dt.on($e,function(){te(),jt()},!0),setTimeout(jt,0)}}}h.mouse=function(pe){return yt(pe,ue())};var wr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function yt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var $e=pe.ownerSVGElement||pe;if($e.createSVGPoint){var dt=$e.createSVGPoint();if(wr<0){var gt=t(pe);if(gt.scrollX||gt.scrollY){$e=h.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Tt=$e[0][0].getScreenCTM();wr=!(Tt.f||Tt.e),$e.remove()}}return wr?(dt.x=Le.pageX,dt.y=Le.pageY):(dt.x=Le.clientX,dt.y=Le.clientY),dt=dt.matrixTransform(pe.getScreenCTM().inverse()),[dt.x,dt.y]}var Vt=pe.getBoundingClientRect();return[Le.clientX-Vt.left-pe.clientLeft,Le.clientY-Vt.top-pe.clientTop]}h.touch=function(pe,Le,$e){if(arguments.length<3&&($e=Le,Le=ue().changedTouches),Le){for(var dt=0,gt=Le.length,Tt;dt1?Ie:pe<-1?-Ie:Math.asin(pe)}function Zt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Wt(pe){return((pe=Math.exp(pe))+1/pe)/2}function rr(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Jt=Math.SQRT2,mr=2,ia=4;h.interpolateZoom=function(pe,Le){var $e=pe[0],dt=pe[1],gt=pe[2],Tt=Le[0],Vt=Le[1],jt=Le[2],sr=Tt-$e,Pr=Vt-dt,kr=sr*sr+Pr*Pr,Zr,la;if(kr0&&(di=di.transition().duration(Vt)),di.call(sn.event)}function Ti(){Pa&&Pa.domain(pa.range().map(function(di){return(di-pe.x)/pe.k}).map(pa.invert)),rn&&rn.domain(Na.range().map(function(di){return(di-pe.y)/pe.k}).map(Na.invert))}function ki(di){jt++||di({type:"zoomstart"})}function Vo(di){Ti(),di({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ii(di){--jt||(di({type:"zoomend"}),$e=null)}function lo(){var di=this,Lo=nn.of(di,arguments),Wo=0,Ds=h.select(t(di)).on(Pr,ds).on(kr,zs),Ts=Ba(h.mouse(di)),Kl=dr(di);en.call(di),ki(Lo);function ds(){Wo=1,Zn(h.mouse(di),Ts),Vo(Lo)}function zs(){Ds.on(Pr,null).on(kr,null),Kl(Wo),Ii(Lo)}}function $o(){var di=this,Lo=nn.of(di,arguments),Wo={},Ds=0,Ts,Kl=".zoom-"+h.event.changedTouches[0].identifier,ds="touchmove"+Kl,zs="touchend"+Kl,pu=[],ul=h.select(di),lt=dr(di);ur(),ki(Lo),ul.on(sr,null).on(la,ur);function ir(){var Jr=h.touches(di);return Ts=pe.k,Jr.forEach(function(Kr){Kr.identifier in Wo&&(Wo[Kr.identifier]=Ba(Kr))}),Jr}function ur(){var Jr=h.event.target;h.select(Jr).on(ds,fa).on(zs,Va),pu.push(Jr);for(var Kr=h.event.changedTouches,cn=0,ln=Kr.length;cn1){var Jn=un[0],jn=un[1],xn=Jn[0]-jn[0],Za=Jn[1]-jn[1];Ds=xn*xn+Za*Za}}function fa(){var Jr=h.touches(di),Kr,cn,ln,un;en.call(di);for(var wn=0,Jn=Jr.length;wn1?1:Le,$e=$e<0?0:$e>1?1:$e,gt=$e<=.5?$e*(1+Le):$e+Le-$e*Le,dt=2*$e-gt;function Tt(jt){return jt>360?jt-=360:jt<0&&(jt+=360),jt<60?dt+(gt-dt)*jt/60:jt<180?gt:jt<240?dt+(gt-dt)*(240-jt)/60:dt}function Vt(jt){return Math.round(Tt(jt)*255)}return new ot(Vt(pe+120),Vt(pe),Vt(pe-120))}h.hcl=Kt;function Kt(pe,Le,$e){return this instanceof Kt?(this.h=+pe,this.c=+Le,void(this.l=+$e)):arguments.length<2?pe instanceof Kt?new Kt(pe.h,pe.c,pe.l):pe instanceof Ht?Ya(pe.l,pe.a,pe.b):Ya((pe=Dr((pe=h.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new Kt(pe,Le,$e)}var zt=Kt.prototype=new Ga;zt.brighter=function(pe){return new Kt(this.h,this.c,Math.min(100,this.l+Tr*(arguments.length?pe:1)))},zt.darker=function(pe){return new Kt(this.h,this.c,Math.max(0,this.l-Tr*(arguments.length?pe:1)))},zt.rgb=function(){return $t(this.h,this.c,this.l).rgb()};function $t(pe,Le,$e){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ht($e,Math.cos(pe*=Xe)*Le,Math.sin(pe)*Le)}h.lab=Ht;function Ht(pe,Le,$e){return this instanceof Ht?(this.l=+pe,this.a=+Le,void(this.b=+$e)):arguments.length<2?pe instanceof Ht?new Ht(pe.l,pe.a,pe.b):pe instanceof Kt?$t(pe.h,pe.c,pe.l):Dr((pe=ot(pe)).r,pe.g,pe.b):new Ht(pe,Le,$e)}var Tr=18,qr=.95047,ha=1,Gr=1.08883,wa=Ht.prototype=new Ga;wa.brighter=function(pe){return new Ht(Math.min(100,this.l+Tr*(arguments.length?pe:1)),this.a,this.b)},wa.darker=function(pe){return new Ht(Math.max(0,this.l-Tr*(arguments.length?pe:1)),this.a,this.b)},wa.rgb=function(){return Da(this.l,this.a,this.b)};function Da(pe,Le,$e){var dt=(pe+16)/116,gt=dt+Le/500,Tt=dt-$e/200;return gt=Ka(gt)*qr,dt=Ka(dt)*ha,Tt=Ka(Tt)*Gr,new ot(mt(3.2404542*gt-1.5371385*dt-.4985314*Tt),mt(-.969266*gt+1.8760108*dt+.041556*Tt),mt(.0556434*gt-.2040259*dt+1.0572252*Tt))}function Ya(pe,Le,$e){return pe>0?new Kt(Math.atan2($e,Le)*ht,Math.sqrt(Le*Le+$e*$e),pe):new Kt(NaN,NaN,pe)}function Ka(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function an(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function mt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}h.rgb=ot;function ot(pe,Le,$e){return this instanceof ot?(this.r=~~pe,this.g=~~Le,void(this.b=~~$e)):arguments.length<2?pe instanceof ot?new ot(pe.r,pe.g,pe.b):Or(""+pe,ot,yn):new ot(pe,Le,$e)}function Lr(pe){return new ot(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var Mr=ot.prototype=new Ga;Mr.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,$e=this.g,dt=this.b,gt=30;return!Le&&!$e&&!dt?new ot(gt,gt,gt):(Le&&Le>4,dt=dt>>4|dt,gt=sr&240,gt=gt>>4|gt,Tt=sr&15,Tt=Tt<<4|Tt):pe.length===7&&(dt=(sr&16711680)>>16,gt=(sr&65280)>>8,Tt=sr&255)),Le(dt,gt,Tt))}function jr(pe,Le,$e){var dt=Math.min(pe/=255,Le/=255,$e/=255),gt=Math.max(pe,Le,$e),Tt=gt-dt,Vt,jt,sr=(gt+dt)/2;return Tt?(jt=sr<.5?Tt/(gt+dt):Tt/(2-gt-dt),pe==gt?Vt=(Le-$e)/Tt+(Le<$e?6:0):Le==gt?Vt=($e-pe)/Tt+2:Vt=(pe-Le)/Tt+4,Vt*=60):(Vt=NaN,jt=sr>0&&sr<1?0:Vt),new ba(Vt,jt,sr)}function Dr(pe,Le,$e){pe=Hr(pe),Le=Hr(Le),$e=Hr($e);var dt=an((.4124564*pe+.3575761*Le+.1804375*$e)/qr),gt=an((.2126729*pe+.7151522*Le+.072175*$e)/ha),Tt=an((.0193339*pe+.119192*Le+.9503041*$e)/Gr);return Ht(116*gt-16,500*(dt-gt),200*(gt-Tt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function na(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var ta=h.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ta.forEach(function(pe,Le){ta.set(pe,Lr(Le))});function At(pe){return typeof pe=="function"?pe:function(){return pe}}h.functor=At,h.xhr=or(F);function or(pe){return function(Le,$e,dt){return arguments.length===2&&typeof $e=="function"&&(dt=$e,$e=null),Ar(Le,$e,pe,dt)}}function Ar(pe,Le,$e,dt){var gt={},Tt=h.dispatch("beforesend","progress","load","error"),Vt={},jt=new XMLHttpRequest,sr=null;self.XDomainRequest&&!("withCredentials"in jt)&&/^(http(s)?:)?\/\//.test(pe)&&(jt=new XDomainRequest),"onload"in jt?jt.onload=jt.onerror=Pr:jt.onreadystatechange=function(){jt.readyState>3&&Pr()};function Pr(){var kr=jt.status,Zr;if(!kr&&ga(jt)||kr>=200&&kr<300||kr===304){try{Zr=$e.call(gt,jt)}catch(la){Tt.error.call(gt,la);return}Tt.load.call(gt,Zr)}else Tt.error.call(gt,jt)}return jt.onprogress=function(kr){var Zr=h.event;h.event=kr;try{Tt.progress.call(gt,jt)}finally{h.event=Zr}},gt.header=function(kr,Zr){return kr=(kr+"").toLowerCase(),arguments.length<2?Vt[kr]:(Zr==null?delete Vt[kr]:Vt[kr]=Zr+"",gt)},gt.mimeType=function(kr){return arguments.length?(Le=kr==null?null:kr+"",gt):Le},gt.responseType=function(kr){return arguments.length?(sr=kr,gt):sr},gt.response=function(kr){return $e=kr,gt},["get","post"].forEach(function(kr){gt[kr]=function(){return gt.send.apply(gt,[kr].concat(A(arguments)))}}),gt.send=function(kr,Zr,la){if(arguments.length===2&&typeof Zr=="function"&&(la=Zr,Zr=null),jt.open(kr,pe,!0),Le!=null&&!("accept"in Vt)&&(Vt.accept=Le+",*/*"),jt.setRequestHeader)for(var ca in Vt)jt.setRequestHeader(ca,Vt[ca]);return Le!=null&&jt.overrideMimeType&&jt.overrideMimeType(Le),sr!=null&&(jt.responseType=sr),la!=null&>.on("error",la).on("load",function(nn){la(null,nn)}),Tt.beforesend.call(gt,jt),jt.send(Zr??null),gt},gt.abort=function(){return jt.abort(),gt},h.rebind(gt,Tt,"on"),dt==null?gt:gt.get(oa(dt))}function oa(pe){return pe.length===1?function(Le,$e){pe(Le==null?$e:null)}:pe}function ga(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}h.dsv=function(pe,Le){var $e=new RegExp('["'+pe+` +]`),dt=pe.charCodeAt(0);function gt(Pr,kr,Zr){arguments.length<3&&(Zr=kr,kr=null);var la=Ar(Pr,Le,kr==null?Tt:Vt(kr),Zr);return la.row=function(ca){return arguments.length?la.response((kr=ca)==null?Tt:Vt(ca)):kr},la}function Tt(Pr){return gt.parse(Pr.responseText)}function Vt(Pr){return function(kr){return gt.parse(kr.responseText,Pr)}}gt.parse=function(Pr,kr){var Zr;return gt.parseRows(Pr,function(la,ca){if(Zr)return Zr(la,ca-1);var nn=function(pa){for(var Pa={},Na=la.length,rn=0;rn=nn)return la;if(rn)return rn=!1,Zr;var Rn=pa;if(Pr.charCodeAt(Rn)===34){for(var ni=Rn;ni++24?(isFinite(Le)&&(clearTimeout(Ta),Ta=setTimeout(Kn,Le)),ra=0):(ra=1,Fn(Kn))}h.timer.flush=function(){ui(),pi()};function ui(){for(var pe=Date.now(),Le=Sa;Le;)pe>=Le.t&&Le.c(pe-Le.t)&&(Le.c=null),Le=Le.n;return pe}function pi(){for(var pe,Le=Sa,$e=1/0;Le;)Le.c?(Le.t<$e&&($e=Le.t),Le=(pe=Le).n):Le=pe?pe.n=Le.n:Sa=Le.n;return za=pe,$e}h.round=function(pe,Le){return Le?Math.round(pe*(Le=Math.pow(10,Le)))/Le:Math.round(pe)},h.geom={};function vi(pe){return pe[0]}function Li(pe){return pe[1]}h.geom.hull=function(pe){var Le=vi,$e=Li;if(arguments.length)return dt(pe);function dt(gt){if(gt.length<3)return[];var Tt=At(Le),Vt=At($e),jt,sr=gt.length,Pr=[],kr=[];for(jt=0;jt=0;--jt)pa.push(gt[Pr[Zr[jt]][2]]);for(jt=+ca;jt1&&bt(pe[$e[dt-2]],pe[$e[dt-1]],pe[gt])<=0;)--dt;$e[dt++]=gt}return $e.slice(0,dt)}function ci(pe,Le){return pe[0]-Le[0]||pe[1]-Le[1]}h.geom.polygon=function(pe){return q(pe,bi),pe};var bi=h.geom.polygon.prototype=[];bi.area=function(){for(var pe=-1,Le=this.length,$e,dt=this[Le-1],gt=0;++peWe)jt=jt.L;else if(Vt=Le-fi(jt,$e),Vt>We){if(!jt.R){dt=jt;break}jt=jt.R}else{Tt>-We?(dt=jt.P,gt=jt):Vt>-We?(dt=jt,gt=jt.N):dt=gt=jt;break}var sr=cs(pe);if(Ri.insert(dt,sr),!(!dt&&!gt)){if(dt===gt){es(dt),gt=cs(dt.site),Ri.insert(sr,gt),sr.edge=gt.edge=Zo(dt.site,sr.site),No(dt),No(gt);return}if(!gt){sr.edge=Zo(dt.site,sr.site);return}es(dt),es(gt);var Pr=dt.site,kr=Pr.x,Zr=Pr.y,la=pe.x-kr,ca=pe.y-Zr,nn=gt.site,pa=nn.x-kr,Pa=nn.y-Zr,Na=2*(la*Pa-ca*pa),rn=la*la+ca*ca,sn=pa*pa+Pa*Pa,Ba={x:(Pa*rn-ca*sn)/Na+kr,y:(la*sn-pa*rn)/Na+Zr};Di(gt.edge,Pr,nn,Ba),sr.edge=Zo(Pr,pe,null,Ba),gt.edge=Zo(pe,nn,null,Ba),No(dt),No(gt)}}function kn(pe,Le){var $e=pe.site,dt=$e.x,gt=$e.y,Tt=gt-Le;if(!Tt)return dt;var Vt=pe.P;if(!Vt)return-1/0;$e=Vt.site;var jt=$e.x,sr=$e.y,Pr=sr-Le;if(!Pr)return jt;var kr=jt-dt,Zr=1/Tt-1/Pr,la=kr/Pr;return Zr?(-la+Math.sqrt(la*la-2*Zr*(kr*kr/(-2*Pr)-sr+Pr/2+gt-Tt/2)))/Zr+dt:(dt+jt)/2}function fi(pe,Le){var $e=pe.N;if($e)return kn($e,Le);var dt=pe.site;return dt.y===Le?dt.x:1/0}function Fs(pe){this.site=pe,this.edges=[]}Fs.prototype.prepare=function(){for(var pe=this.edges,Le=pe.length,$e;Le--;)$e=pe[Le].edge,(!$e.b||!$e.a)&&pe.splice(Le,1);return pe.sort(Gi),pe.length};function Ss(pe){for(var Le=pe[0][0],$e=pe[1][0],dt=pe[0][1],gt=pe[1][1],Tt,Vt,jt,sr,Pr=Ei,kr=Pr.length,Zr,la,ca,nn,pa,Pa;kr--;)if(Zr=Pr[kr],!(!Zr||!Zr.prepare()))for(ca=Zr.edges,nn=ca.length,la=0;laWe||l(sr-Vt)>We)&&(ca.splice(la,0,new ys(qs(Zr.site,Pa,l(jt-Le)We?{x:Le,y:l(Tt-Le)We?{x:l(Vt-gt)We?{x:$e,y:l(Tt-$e)We?{x:l(Vt-dt)=-Oe)){var la=sr*sr+Pr*Pr,ca=kr*kr+Pa*Pa,nn=(Pa*la-Pr*ca)/Zr,pa=(sr*ca-kr*la)/Zr,Pa=pa+jt,Na=Ui.pop()||new js;Na.arc=pe,Na.site=gt,Na.x=nn+Vt,Na.y=Pa+Math.sqrt(nn*nn+pa*pa),Na.cy=Pa,pe.circle=Na;for(var rn=null,sn=bo._;sn;)if(Na.y0)){if(pa/=ca,ca<0){if(pa0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=$e-jt,!(!ca&&pa<0)){if(pa/=ca,ca<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(ca>0){if(pa0)){if(pa/=nn,nn<0){if(pa0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=dt-sr,!(!nn&&pa<0)){if(pa/=nn,nn<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(nn>0){if(pa0&&(gt.a={x:jt+Zr*ca,y:sr+Zr*nn}),la<1&&(gt.b={x:jt+la*ca,y:sr+la*nn}),gt}}}}}}function hi(pe){for(var Le=ro,$e=Vs(pe[0][0],pe[0][1],pe[1][0],pe[1][1]),dt=Le.length,gt;dt--;)gt=Le[dt],(!so(gt,pe)||!$e(gt)||l(gt.a.x-gt.b.x)=Tt)return;if(kr>la){if(!dt)dt={x:nn,y:Vt};else if(dt.y>=jt)return;$e={x:nn,y:jt}}else{if(!dt)dt={x:nn,y:jt};else if(dt.y1)if(kr>la){if(!dt)dt={x:(Vt-Na)/Pa,y:Vt};else if(dt.y>=jt)return;$e={x:(jt-Na)/Pa,y:jt}}else{if(!dt)dt={x:(jt-Na)/Pa,y:jt};else if(dt.y=Tt)return;$e={x:Tt,y:Pa*Tt+Na}}else{if(!dt)dt={x:Tt,y:Pa*Tt+Na};else if(dt.x=kr&&Na.x<=la&&Na.y>=Zr&&Na.y<=ca?[[kr,ca],[la,ca],[la,Zr],[kr,Zr]]:[];rn.point=sr[pa]}),Pr}function jt(sr){return sr.map(function(Pr,kr){return{x:Math.round(dt(Pr,kr)/We)*We,y:Math.round(gt(Pr,kr)/We)*We,i:kr}})}return Vt.links=function(sr){return ql(jt(sr)).edges.filter(function(Pr){return Pr.l&&Pr.r}).map(function(Pr){return{source:sr[Pr.l.i],target:sr[Pr.r.i]}})},Vt.triangles=function(sr){var Pr=[];return ql(jt(sr)).cells.forEach(function(kr,Zr){for(var la=kr.site,ca=kr.edges.sort(Gi),nn=-1,pa=ca.length,Pa,Na=ca[pa-1].edge,rn=Na.l===la?Na.r:Na.l;++nnsn&&(sn=kr.x),kr.y>Ba&&(Ba=kr.y),ca.push(kr.x),nn.push(kr.y);else for(pa=0;pasn&&(sn=Rn),ni>Ba&&(Ba=ni),ca.push(Rn),nn.push(ni)}var Zn=sn-Na,ri=Ba-rn;Zn>ri?Ba=rn+Zn:sn=Na+ri;function Ti(Ii,lo,$o,hl,Ns,di,Lo,Wo){if(!(isNaN($o)||isNaN(hl)))if(Ii.leaf){var Ds=Ii.x,Ts=Ii.y;if(Ds!=null)if(l(Ds-$o)+l(Ts-hl)<.01)ki(Ii,lo,$o,hl,Ns,di,Lo,Wo);else{var Kl=Ii.point;Ii.x=Ii.y=Ii.point=null,ki(Ii,Kl,Ds,Ts,Ns,di,Lo,Wo),ki(Ii,lo,$o,hl,Ns,di,Lo,Wo)}else Ii.x=$o,Ii.y=hl,Ii.point=lo}else ki(Ii,lo,$o,hl,Ns,di,Lo,Wo)}function ki(Ii,lo,$o,hl,Ns,di,Lo,Wo){var Ds=(Ns+Lo)*.5,Ts=(di+Wo)*.5,Kl=$o>=Ds,ds=hl>=Ts,zs=ds<<1|Kl;Ii.leaf=!1,Ii=Ii.nodes[zs]||(Ii.nodes[zs]=_s()),Kl?Ns=Ds:Lo=Ds,ds?di=Ts:Wo=Ts,Ti(Ii,lo,$o,hl,Ns,di,Lo,Wo)}var Vo=_s();if(Vo.add=function(Ii){Ti(Vo,Ii,+Zr(Ii,++pa),+la(Ii,pa),Na,rn,sn,Ba)},Vo.visit=function(Ii){Cu(Ii,Vo,Na,rn,sn,Ba)},Vo.find=function(Ii){return Vc(Vo,Ii[0],Ii[1],Na,rn,sn,Ba)},pa=-1,Le==null){for(;++paTt||la>Vt||ca=Rn,ri=$e>=ni,Ti=ri<<1|Zn,ki=Ti+4;Ti$e&&(Tt=Le.slice($e,Tt),jt[Vt]?jt[Vt]+=Tt:jt[++Vt]=Tt),(dt=dt[0])===(gt=gt[0])?jt[Vt]?jt[Vt]+=gt:jt[++Vt]=gt:(jt[++Vt]=null,sr.push({i:Vt,x:Il(dt,gt)})),$e=Al.lastIndex;return $e=0&&!(dt=h.interpolators[$e](pe,Le)););return dt}h.interpolators=[function(pe,Le){var $e=typeof Le;return($e==="string"?ta.has(Le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Le)?Pl:_u:Le instanceof Ga?Pl:Array.isArray(Le)?bs:$e==="object"&&isNaN(Le)?Tl:Il)(pe,Le)}],h.interpolateArray=bs;function bs(pe,Le){var $e=[],dt=[],gt=pe.length,Tt=Le.length,Vt=Math.min(pe.length,Le.length),jt;for(jt=0;jt=0?pe.slice(0,Le):pe,dt=Le>=0?pe.slice(Le+1):"in";return $e=Zl.get($e)||qu,dt=Ju.get(dt)||F,Zs(dt($e.apply(null,x.call(arguments,1))))};function Zs(pe){return function(Le){return Le<=0?0:Le>=1?1:pe(Le)}}function _f(pe){return function(Le){return 1-pe(1-Le)}}function zo(pe){return function(Le){return .5*(Le<.5?pe(2*Le):2-pe(2-2*Le))}}function Rf(pe){return pe*pe}function is(pe){return pe*pe*pe}function Bi(pe){if(pe<=0)return 0;if(pe>=1)return 1;var Le=pe*pe,$e=Le*pe;return 4*(pe<.5?$e:3*(pe-Le)+$e-.75)}function hc(pe){return function(Le){return Math.pow(Le,pe)}}function xu(pe){return 1-Math.cos(pe*Ie)}function dl(pe){return Math.pow(2,10*(pe-1))}function qc(pe){return 1-Math.sqrt(1-pe*pe)}function Qu(pe,Le){var $e;return arguments.length<2&&(Le=.45),arguments.length?$e=Le/me*Math.asin(1/pe):(pe=1,$e=Le/4),function(dt){return 1+pe*Math.pow(2,-10*dt)*Math.sin((dt-$e)*me/Le)}}function wc(pe){return pe||(pe=1.70158),function(Le){return Le*Le*((pe+1)*Le-pe)}}function Sl(pe){return pe<1/2.75?7.5625*pe*pe:pe<2/2.75?7.5625*(pe-=1.5/2.75)*pe+.75:pe<2.5/2.75?7.5625*(pe-=2.25/2.75)*pe+.9375:7.5625*(pe-=2.625/2.75)*pe+.984375}h.interpolateHcl=hf;function hf(pe,Le){pe=h.hcl(pe),Le=h.hcl(Le);var $e=pe.h,dt=pe.c,gt=pe.l,Tt=Le.h-$e,Vt=Le.c-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.c:dt),isNaN(Tt)?(Tt=0,$e=isNaN($e)?Le.h:$e):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return $t($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateHsl=Yc;function Yc(pe,Le){pe=h.hsl(pe),Le=h.hsl(Le);var $e=pe.h,dt=pe.s,gt=pe.l,Tt=Le.h-$e,Vt=Le.s-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.s:dt),isNaN(Tt)?(Tt=0,$e=isNaN($e)?Le.h:$e):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return yn($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateLab=Tc;function Tc(pe,Le){pe=h.lab(pe),Le=h.lab(Le);var $e=pe.l,dt=pe.a,gt=pe.b,Tt=Le.l-$e,Vt=Le.a-dt,jt=Le.b-gt;return function(sr){return Da($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateRound=ec;function ec(pe,Le){return Le-=pe,function($e){return Math.round(pe+Le*$e)}}h.transform=function(pe){var Le=E.createElementNS(h.ns.prefix.svg,"g");return(h.transform=function($e){if($e!=null){Le.setAttribute("transform",$e);var dt=Le.transform.baseVal.consolidate()}return new Gc(dt?dt.matrix:Gu)})(pe)};function Gc(pe){var Le=[pe.a,pe.b],$e=[pe.c,pe.d],dt=bu(Le),gt=Hc(Le,$e),Tt=bu($c($e,Le,-gt))||0;Le[0]*$e[1]<$e[0]*Le[1]&&(Le[0]*=-1,Le[1]*=-1,dt*=-1,gt*=-1),this.rotate=(dt?Math.atan2(Le[1],Le[0]):Math.atan2(-$e[0],$e[1]))*ht,this.translate=[pe.e,pe.f],this.scale=[dt,Tt],this.skew=Tt?Math.atan2(gt,Tt)*ht:0}Gc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Hc(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]}function bu(pe){var Le=Math.sqrt(Hc(pe,pe));return Le&&(pe[0]/=Le,pe[1]/=Le),Le}function $c(pe,Le,$e){return pe[0]+=$e*Le[0],pe[1]+=$e*Le[1],pe}var Gu={a:1,b:0,c:0,d:1,e:0,f:0};h.interpolateTransform=Lc;function Lu(pe){return pe.length?pe.pop()+",":""}function Ml(pe,Le,$e,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=$e.push("translate(",null,",",null,")");dt.push({i:gt-4,x:Il(pe[0],Le[0])},{i:gt-2,x:Il(pe[1],Le[1])})}else(Le[0]||Le[1])&&$e.push("translate("+Le+")")}function lc(pe,Le,$e,dt){pe!==Le?(pe-Le>180?Le+=360:Le-pe>180&&(pe+=360),dt.push({i:$e.push(Lu($e)+"rotate(",null,")")-2,x:Il(pe,Le)})):Le&&$e.push(Lu($e)+"rotate("+Le+")")}function Wc(pe,Le,$e,dt){pe!==Le?dt.push({i:$e.push(Lu($e)+"skewX(",null,")")-2,x:Il(pe,Le)}):Le&&$e.push(Lu($e)+"skewX("+Le+")")}function Ms(pe,Le,$e,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=$e.push(Lu($e)+"scale(",null,",",null,")");dt.push({i:gt-4,x:Il(pe[0],Le[0])},{i:gt-2,x:Il(pe[1],Le[1])})}else(Le[0]!==1||Le[1]!==1)&&$e.push(Lu($e)+"scale("+Le+")")}function Lc(pe,Le){var $e=[],dt=[];return pe=h.transform(pe),Le=h.transform(Le),Ml(pe.translate,Le.translate,$e,dt),lc(pe.rotate,Le.rotate,$e,dt),Wc(pe.skew,Le.skew,$e,dt),Ms(pe.scale,Le.scale,$e,dt),pe=Le=null,function(gt){for(var Tt=-1,Vt=dt.length,jt;++Tt0?Tt=Ba:($e.c=null,$e.t=NaN,$e=null,Le.end({type:"end",alpha:Tt=0})):Ba>0&&(Le.start({type:"start",alpha:Tt=Ba}),$e=mn(pe.tick)),pe):Tt},pe.start=function(){var Ba,Rn=ca.length,ni=nn.length,Zn=dt[0],ri=dt[1],Ti,ki;for(Ba=0;Ba=0;)Tt.push(kr=Pr[sr]),kr.parent=jt,kr.depth=jt.depth+1;$e&&(jt.value=0),jt.children=Pr}else $e&&(jt.value=+$e.call(dt,jt,jt.depth)||0),delete jt.children;return Pu(gt,function(Zr){var la,ca;pe&&(la=Zr.children)&&la.sort(pe),$e&&(ca=Zr.parent)&&(ca.value+=Zr.value)}),Vt}return dt.sort=function(gt){return arguments.length?(pe=gt,dt):pe},dt.children=function(gt){return arguments.length?(Le=gt,dt):Le},dt.value=function(gt){return arguments.length?($e=gt,dt):$e},dt.revalue=function(gt){return $e&&(vc(gt,function(Tt){Tt.children&&(Tt.value=0)}),Pu(gt,function(Tt){var Vt;Tt.children||(Tt.value=+$e.call(dt,Tt,Tt.depth)||0),(Vt=Tt.parent)&&(Vt.value+=Tt.value)})),gt},dt};function Ys(pe,Le){return h.rebind(pe,Le,"sort","children","value"),pe.nodes=pe,pe.links=Vf,pe}function vc(pe,Le){for(var $e=[pe];(pe=$e.pop())!=null;)if(Le(pe),(gt=pe.children)&&(dt=gt.length))for(var dt,gt;--dt>=0;)$e.push(gt[dt])}function Pu(pe,Le){for(var $e=[pe],dt=[];(pe=$e.pop())!=null;)if(dt.push(pe),(Vt=pe.children)&&(Tt=Vt.length))for(var gt=-1,Tt,Vt;++gtgt&&(gt=jt),dt.push(jt)}for(Vt=0;Vt<$e;++Vt)sr[Vt]=(gt-dt[Vt])/2;return sr},wiggle:function(pe){var Le=pe.length,$e=pe[0],dt=$e.length,gt,Tt,Vt,jt,sr,Pr,kr,Zr,la,ca=[];for(ca[0]=Zr=la=0,Tt=1;Ttdt&&($e=Le,dt=gt);return $e}function nu(pe){return pe.reduce(wu,0)}function wu(pe,Le){return pe+Le[1]}h.layout.histogram=function(){var pe=!0,Le=Number,$e=Sc,dt=Xc;function gt(Tt,la){for(var jt=[],sr=Tt.map(Le,this),Pr=$e.call(this,sr,la),kr=dt.call(this,Pr,sr,la),Zr,la=-1,ca=sr.length,nn=kr.length-1,pa=pe?1:1/ca,Pa;++la0)for(la=-1;++la=Pr[0]&&Pa<=Pr[1]&&(Zr=jt[h.bisect(kr,Pa,1,nn)-1],Zr.y+=pa,Zr.push(Tt[la]));return jt}return gt.value=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.range=function(Tt){return arguments.length?($e=At(Tt),gt):$e},gt.bins=function(Tt){return arguments.length?(dt=typeof Tt=="number"?function(Vt){return Ws(Vt,Tt)}:At(Tt),gt):dt},gt.frequency=function(Tt){return arguments.length?(pe=!!Tt,gt):pe},gt};function Xc(pe,Le){return Ws(pe,Math.ceil(Math.log(Le.length)/Math.LN2+1))}function Ws(pe,Le){for(var $e=-1,dt=+pe[0],gt=(pe[1]-dt)/Le,Tt=[];++$e<=Le;)Tt[$e]=gt*$e+dt;return Tt}function Sc(pe){return[h.min(pe),h.max(pe)]}h.layout.pack=function(){var pe=h.layout.hierarchy().sort(ac),Le=0,$e=[1,1],dt;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr=$e[0],kr=$e[1],Zr=dt==null?Math.sqrt:typeof dt=="function"?dt:function(){return dt};if(sr.x=sr.y=0,Pu(sr,function(ca){ca.r=+Zr(ca.value)}),Pu(sr,Ec),Le){var la=Le*(dt?1:Math.max(2*sr.r/Pr,2*sr.r/kr))/2;Pu(sr,function(ca){ca.r+=la}),Pu(sr,Ec),Pu(sr,function(ca){ca.r-=la})}return tf(sr,Pr/2,kr/2,dt?1:1/Math.max(2*sr.r/Pr,2*sr.r/kr)),jt}return gt.size=function(Tt){return arguments.length?($e=Tt,gt):$e},gt.radius=function(Tt){return arguments.length?(dt=Tt==null||typeof Tt=="function"?Tt:+Tt,gt):dt},gt.padding=function(Tt){return arguments.length?(Le=+Tt,gt):Le},Ys(gt,pe)};function ac(pe,Le){return pe.value-Le.value}function hu(pe,Le){var $e=pe._pack_next;pe._pack_next=Le,Le._pack_prev=pe,Le._pack_next=$e,$e._pack_prev=Le}function Mc(pe,Le){pe._pack_next=Le,Le._pack_prev=pe}function Iu(pe,Le){var $e=Le.x-pe.x,dt=Le.y-pe.y,gt=pe.r+Le.r;return .999*gt*gt>$e*$e+dt*dt}function Ec(pe){if(!(Le=pe.children)||!(la=Le.length))return;var Le,$e=1/0,dt=-1/0,gt=1/0,Tt=-1/0,Vt,jt,sr,Pr,kr,Zr,la;function ca(Ba){$e=Math.min(Ba.x-Ba.r,$e),dt=Math.max(Ba.x+Ba.r,dt),gt=Math.min(Ba.y-Ba.r,gt),Tt=Math.max(Ba.y+Ba.r,Tt)}if(Le.forEach(wf),Vt=Le[0],Vt.x=-Vt.r,Vt.y=0,ca(Vt),la>1&&(jt=Le[1],jt.x=jt.r,jt.y=0,ca(jt),la>2))for(sr=Le[2],vu(Vt,jt,sr),ca(sr),hu(Vt,sr),Vt._pack_prev=sr,hu(sr,jt),jt=Vt._pack_next,Pr=3;PrPa.x&&(Pa=Rn),Rn.depth>Na.depth&&(Na=Rn)});var rn=Le(pa,Pa)/2-pa.x,sn=$e[0]/(Pa.x+Le(Pa,pa)/2+rn),Ba=$e[1]/(Na.depth||1);vc(ca,function(Rn){Rn.x=(Rn.x+rn)*sn,Rn.y=Rn.depth*Ba})}return la}function Tt(kr){for(var Zr={A:null,children:[kr]},la=[Zr],ca;(ca=la.pop())!=null;)for(var nn=ca.children,pa,Pa=0,Na=nn.length;Pa0&&(Yl(nc(pa,kr,la),kr,Rn),Na+=Rn,rn+=Rn),sn+=pa.m,Na+=ca.m,Ba+=Pa.m,rn+=nn.m;pa&&!al(nn)&&(nn.t=pa,nn.m+=sn-rn),ca&&!Ru(Pa)&&(Pa.t=ca,Pa.m+=Na-Ba,la=kr)}return la}function Pr(kr){kr.x*=$e[0],kr.y=kr.depth*$e[1]}return gt.separation=function(kr){return arguments.length?(Le=kr,gt):Le},gt.size=function(kr){return arguments.length?(dt=($e=kr)==null?Pr:null,gt):dt?null:$e},gt.nodeSize=function(kr){return arguments.length?(dt=($e=kr)==null?null:Pr,gt):dt?$e:null},Ys(gt,pe)};function Wu(pe,Le){return pe.parent==Le.parent?1:2}function Ru(pe){var Le=pe.children;return Le.length?Le[0]:pe.t}function al(pe){var Le=pe.children,$e;return($e=Le.length)?Le[$e-1]:pe.t}function Yl(pe,Le,$e){var dt=$e/(Le.i-pe.i);Le.c-=dt,Le.s+=$e,pe.c+=dt,Le.z+=$e,Le.m+=$e}function Ks(pe){for(var Le=0,$e=0,dt=pe.children,gt=dt.length,Tt;--gt>=0;)Tt=dt[gt],Tt.z+=Le,Tt.m+=Le,Le+=Tt.s+($e+=Tt.c)}function nc(pe,Le,$e){return pe.a.parent===Le.parent?pe.a:$e}h.layout.cluster=function(){var pe=h.layout.hierarchy().sort(null).value(null),Le=Wu,$e=[1,1],dt=!1;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr,kr=0;Pu(sr,function(pa){var Pa=pa.children;Pa&&Pa.length?(pa.x=Zc(Pa),pa.y=Du(Pa)):(pa.x=Pr?kr+=Le(pa,Pr):0,pa.y=0,Pr=pa)});var Zr=Qt(sr),la=yr(sr),ca=Zr.x-Le(Zr,la)/2,nn=la.x+Le(la,Zr)/2;return Pu(sr,dt?function(pa){pa.x=(pa.x-sr.x)*$e[0],pa.y=(sr.y-pa.y)*$e[1]}:function(pa){pa.x=(pa.x-ca)/(nn-ca)*$e[0],pa.y=(1-(sr.y?pa.y/sr.y:1))*$e[1]}),jt}return gt.separation=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.size=function(Tt){return arguments.length?(dt=($e=Tt)==null,gt):dt?null:$e},gt.nodeSize=function(Tt){return arguments.length?(dt=($e=Tt)!=null,gt):dt?$e:null},Ys(gt,pe)};function Du(pe){return 1+h.max(pe,function(Le){return Le.y})}function Zc(pe){return pe.reduce(function(Le,$e){return Le+$e.x},0)/pe.length}function Qt(pe){var Le=pe.children;return Le&&Le.length?Qt(Le[0]):pe}function yr(pe){var Le=pe.children,$e;return Le&&($e=Le.length)?yr(Le[$e-1]):pe}h.layout.treemap=function(){var pe=h.layout.hierarchy(),Le=Math.round,$e=[1,1],dt=null,gt=$r,Tt=!1,Vt,jt="squarify",sr=.5*(1+Math.sqrt(5));function Pr(pa,Pa){for(var Na=-1,rn=pa.length,sn,Ba;++Na0;)rn.push(Ba=sn[ri-1]),rn.area+=Ba.area,jt!=="squarify"||(ni=la(rn,Zn))<=Rn?(sn.pop(),Rn=ni):(rn.area-=rn.pop().area,ca(rn,Zn,Na,!1),Zn=Math.min(Na.dx,Na.dy),rn.length=rn.area=0,Rn=1/0);rn.length&&(ca(rn,Zn,Na,!0),rn.length=rn.area=0),Pa.forEach(kr)}}function Zr(pa){var Pa=pa.children;if(Pa&&Pa.length){var Na=gt(pa),rn=Pa.slice(),sn,Ba=[];for(Pr(rn,Na.dx*Na.dy/pa.value),Ba.area=0;sn=rn.pop();)Ba.push(sn),Ba.area+=sn.area,sn.z!=null&&(ca(Ba,sn.z?Na.dx:Na.dy,Na,!rn.length),Ba.length=Ba.area=0);Pa.forEach(Zr)}}function la(pa,Pa){for(var Na=pa.area,rn,sn=0,Ba=1/0,Rn=-1,ni=pa.length;++Rnsn&&(sn=rn));return Na*=Na,Pa*=Pa,Na?Math.max(Pa*sn*sr/Na,Na/(Pa*Ba*sr)):1/0}function ca(pa,Pa,Na,rn){var sn=-1,Ba=pa.length,Rn=Na.x,ni=Na.y,Zn=Pa?Le(pa.area/Pa):0,ri;if(Pa==Na.dx){for((rn||Zn>Na.dy)&&(Zn=Na.dy);++snNa.dx)&&(Zn=Na.dx);++sn1);return pe+Le*dt*Math.sqrt(-2*Math.log(Tt)/Tt)}},logNormal:function(){var pe=h.random.normal.apply(h,arguments);return function(){return Math.exp(pe())}},bates:function(pe){var Le=h.random.irwinHall(pe);return function(){return Le()/pe}},irwinHall:function(pe){return function(){for(var Le=0,$e=0;$e2?_n:Ja,Pr=dt?Kc:xf;return gt=sr(pe,Le,Pr,$e),Tt=sr(Le,pe,Pr,Uo),jt}function jt(sr){return gt(sr)}return jt.invert=function(sr){return Tt(sr)},jt.domain=function(sr){return arguments.length?(pe=sr.map(Number),Vt()):pe},jt.range=function(sr){return arguments.length?(Le=sr,Vt()):Le},jt.rangeRound=function(sr){return jt.range(sr).interpolate(ec)},jt.clamp=function(sr){return arguments.length?(dt=sr,Vt()):dt},jt.interpolate=function(sr){return arguments.length?($e=sr,Vt()):$e},jt.ticks=function(sr){return Hi(pe,sr)},jt.tickFormat=function(sr,Pr){return d3_scale_linearTickFormat(pe,sr,Pr)},jt.nice=function(sr){return dn(pe,sr),Vt()},jt.copy=function(){return qn(pe,Le,$e,dt)},Vt()}function En(pe,Le){return h.rebind(pe,Le,"range","rangeRound","interpolate","clamp")}function dn(pe,Le){return Ln(pe,On(ai(pe,Le)[2])),Ln(pe,On(ai(pe,Le)[2])),pe}function ai(pe,Le){Le==null&&(Le=10);var $e=ma(pe),dt=$e[1]-$e[0],gt=Math.pow(10,Math.floor(Math.log(dt/Le)/Math.LN10)),Tt=Le/dt*gt;return Tt<=.15?gt*=10:Tt<=.35?gt*=5:Tt<=.75&&(gt*=2),$e[0]=Math.ceil($e[0]/gt)*gt,$e[1]=Math.floor($e[1]/gt)*gt+gt*.5,$e[2]=gt,$e}function Hi(pe,Le){return h.range.apply(h,ai(pe,Le))}h.scale.log=function(){return Fi(h.scale.linear().domain([0,1]),10,!0,[1,10])};function Fi(pe,Le,$e,dt){function gt(jt){return($e?Math.log(jt<0?0:jt):-Math.log(jt>0?0:-jt))/Math.log(Le)}function Tt(jt){return $e?Math.pow(Le,jt):-Math.pow(Le,-jt)}function Vt(jt){return pe(gt(jt))}return Vt.invert=function(jt){return Tt(pe.invert(jt))},Vt.domain=function(jt){return arguments.length?($e=jt[0]>=0,pe.domain((dt=jt.map(Number)).map(gt)),Vt):dt},Vt.base=function(jt){return arguments.length?(Le=+jt,pe.domain(dt.map(gt)),Vt):Le},Vt.nice=function(){var jt=Ln(dt.map(gt),$e?Math:Zi);return pe.domain(jt),dt=jt.map(Tt),Vt},Vt.ticks=function(){var jt=ma(dt),sr=[],Pr=jt[0],kr=jt[1],Zr=Math.floor(gt(Pr)),la=Math.ceil(gt(kr)),ca=Le%1?2:Le;if(isFinite(la-Zr)){if($e){for(;Zr0;nn--)sr.push(Tt(Zr)*nn);for(Zr=0;sr[Zr]kr;la--);sr=sr.slice(Zr,la)}return sr},Vt.copy=function(){return Fi(pe.copy(),Le,$e,dt)},En(Vt,pe)}var Zi={floor:function(pe){return-Math.ceil(-pe)},ceil:function(pe){return-Math.floor(-pe)}};h.scale.pow=function(){return Wi(h.scale.linear(),1,[0,1])};function Wi(pe,Le,$e){var dt=ii(Le),gt=ii(1/Le);function Tt(Vt){return pe(dt(Vt))}return Tt.invert=function(Vt){return gt(pe.invert(Vt))},Tt.domain=function(Vt){return arguments.length?(pe.domain(($e=Vt.map(Number)).map(dt)),Tt):$e},Tt.ticks=function(Vt){return Hi($e,Vt)},Tt.tickFormat=function(Vt,jt){return d3_scale_linearTickFormat($e,Vt,jt)},Tt.nice=function(Vt){return Tt.domain(dn($e,Vt))},Tt.exponent=function(Vt){return arguments.length?(dt=ii(Le=Vt),gt=ii(1/Le),pe.domain($e.map(dt)),Tt):Le},Tt.copy=function(){return Wi(pe.copy(),Le,$e)},En(Tt,pe)}function ii(pe){return function(Le){return Le<0?-Math.pow(-Le,pe):Math.pow(Le,pe)}}h.scale.sqrt=function(){return h.scale.pow().exponent(.5)},h.scale.ordinal=function(){return Wn([],{t:"range",a:[[]]})};function Wn(pe,Le){var $e,dt,gt;function Tt(jt){return dt[(($e.get(jt)||(Le.t==="range"?$e.set(jt,pe.push(jt)):NaN))-1)%dt.length]}function Vt(jt,sr){return h.range(pe.length).map(function(Pr){return jt+sr*Pr})}return Tt.domain=function(jt){if(!arguments.length)return pe;pe=[],$e=new S;for(var sr=-1,Pr=jt.length,kr;++sr0?$e[Tt-1]:pe[0],Tt<$e.length?$e[Tt]:pe[pe.length-1]]},gt.copy=function(){return vs(pe,Le)},dt()}h.scale.quantize=function(){return Rs(0,1,[0,1])};function Rs(pe,Le,$e){var dt,gt;function Tt(jt){return $e[Math.max(0,Math.min(gt,Math.floor(dt*(jt-pe))))]}function Vt(){return dt=$e.length/(Le-pe),gt=$e.length-1,Tt}return Tt.domain=function(jt){return arguments.length?(pe=+jt[0],Le=+jt[jt.length-1],Vt()):[pe,Le]},Tt.range=function(jt){return arguments.length?($e=jt,Vt()):$e},Tt.invertExtent=function(jt){return jt=$e.indexOf(jt),jt=jt<0?NaN:jt/dt+pe,[jt,jt+1/dt]},Tt.copy=function(){return Rs(pe,Le,$e)},Vt()}h.scale.threshold=function(){return Yo([.5],[0,1])};function Yo(pe,Le){function $e(dt){if(dt<=dt)return Le[h.bisect(pe,dt)]}return $e.domain=function(dt){return arguments.length?(pe=dt,$e):pe},$e.range=function(dt){return arguments.length?(Le=dt,$e):Le},$e.invertExtent=function(dt){return dt=Le.indexOf(dt),[pe[dt-1],pe[dt]]},$e.copy=function(){return Yo(pe,Le)},$e}h.scale.identity=function(){return sl([0,1])};function sl(pe){function Le($e){return+$e}return Le.invert=Le,Le.domain=Le.range=function($e){return arguments.length?(pe=$e.map(Le),Le):pe},Le.ticks=function($e){return Hi(pe,$e)},Le.tickFormat=function($e,dt){return d3_scale_linearTickFormat(pe,$e,dt)},Le.copy=function(){return sl(pe)},Le}h.svg={};function nl(){return 0}h.svg.arc=function(){var pe=wi,Le=go,$e=nl,dt=Ls,gt=ws,Tt=os,Vt=Hl;function jt(){var Pr=Math.max(0,+pe.apply(this,arguments)),kr=Math.max(0,+Le.apply(this,arguments)),Zr=gt.apply(this,arguments)-Ie,la=Tt.apply(this,arguments)-Ie,ca=Math.abs(la-Zr),nn=Zr>la?0:1;if(kr=be)return sr(kr,nn)+(Pr?sr(Pr,1-nn):"")+"Z";var pa,Pa,Na,rn,sn=0,Ba=0,Rn,ni,Zn,ri,Ti,ki,Vo,Ii,lo=[];if((rn=(+Vt.apply(this,arguments)||0)/2)&&(Na=dt===Ls?Math.sqrt(Pr*Pr+kr*kr):+dt.apply(this,arguments),nn||(Ba*=-1),kr&&(Ba=Ct(Na/kr*Math.sin(rn))),Pr&&(sn=Ct(Na/Pr*Math.sin(rn)))),kr){Rn=kr*Math.cos(Zr+Ba),ni=kr*Math.sin(Zr+Ba),Zn=kr*Math.cos(la-Ba),ri=kr*Math.sin(la-Ba);var $o=Math.abs(la-Zr-2*Ba)<=de?0:1;if(Ba&&Wl(Rn,ni,Zn,ri)===nn^$o){var hl=(Zr+la)/2;Rn=kr*Math.cos(hl),ni=kr*Math.sin(hl),Zn=ri=null}}else Rn=ni=0;if(Pr){Ti=Pr*Math.cos(la-sn),ki=Pr*Math.sin(la-sn),Vo=Pr*Math.cos(Zr+sn),Ii=Pr*Math.sin(Zr+sn);var Ns=Math.abs(Zr-la+2*sn)<=de?0:1;if(sn&&Wl(Ti,ki,Vo,Ii)===1-nn^Ns){var di=(Zr+la)/2;Ti=Pr*Math.cos(di),ki=Pr*Math.sin(di),Vo=Ii=null}}else Ti=ki=0;if(ca>We&&(pa=Math.min(Math.abs(kr-Pr)/2,+$e.apply(this,arguments)))>.001){Pa=Pr0?0:1}function $l(pe,Le,$e,dt,gt){var Tt=pe[0]-Le[0],Vt=pe[1]-Le[1],jt=(gt?dt:-dt)/Math.sqrt(Tt*Tt+Vt*Vt),sr=jt*Vt,Pr=-jt*Tt,kr=pe[0]+sr,Zr=pe[1]+Pr,la=Le[0]+sr,ca=Le[1]+Pr,nn=(kr+la)/2,pa=(Zr+ca)/2,Pa=la-kr,Na=ca-Zr,rn=Pa*Pa+Na*Na,sn=$e-dt,Ba=kr*ca-la*Zr,Rn=(Na<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*rn-Ba*Ba)),ni=(Ba*Na-Pa*Rn)/rn,Zn=(-Ba*Pa-Na*Rn)/rn,ri=(Ba*Na+Pa*Rn)/rn,Ti=(-Ba*Pa+Na*Rn)/rn,ki=ni-nn,Vo=Zn-pa,Ii=ri-nn,lo=Ti-pa;return ki*ki+Vo*Vo>Ii*Ii+lo*lo&&(ni=ri,Zn=Ti),[[ni-sr,Zn-Pr],[ni*$e/sn,Zn*$e/sn]]}function uc(){return!0}function Xl(pe){var Le=vi,$e=Li,dt=uc,gt=ll,Tt=gt.key,Vt=.7;function jt(sr){var Pr=[],kr=[],Zr=-1,la=sr.length,ca,nn=At(Le),pa=At($e);function Pa(){Pr.push("M",gt(pe(kr),Vt))}for(;++Zr1?pe.join("L"):pe+"Z"}function Zu(pe){return pe.join("L")+"Z"}function Yi(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("H",(dt[0]+(dt=pe[Le])[0])/2,"V",dt[1]);return $e>1&>.push("H",dt[0]),gt.join("")}function io(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("V",(dt=pe[Le])[1],"H",dt[0]);return gt.join("")}function Yu(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("H",(dt=pe[Le])[0],"V",dt[1]);return gt.join("")}function du(pe,Le){return pe.length<4?ll(pe):pe[1]+L(pe.slice(1,-1),ne(pe,Le))}function iu(pe,Le){return pe.length<3?Zu(pe):pe[0]+L((pe.push(pe[0]),pe),ne([pe[pe.length-2]].concat(pe,[pe[1]]),Le))}function ze(pe,Le){return pe.length<3?ll(pe):pe[0]+L(pe,ne(pe,Le))}function L(pe,Le){if(Le.length<1||pe.length!=Le.length&&pe.length!=Le.length+2)return ll(pe);var $e=pe.length!=Le.length,dt="",gt=pe[0],Tt=pe[1],Vt=Le[0],jt=Vt,sr=1;if($e&&(dt+="Q"+(Tt[0]-Vt[0]*2/3)+","+(Tt[1]-Vt[1]*2/3)+","+Tt[0]+","+Tt[1],gt=pe[1],sr=2),Le.length>1){jt=Le[1],Tt=pe[sr],sr++,dt+="C"+(gt[0]+Vt[0])+","+(gt[1]+Vt[1])+","+(Tt[0]-jt[0])+","+(Tt[1]-jt[1])+","+Tt[0]+","+Tt[1];for(var Pr=2;Pr9&&(Tt=$e*3/Math.sqrt(Tt),Vt[jt]=Tt*dt,Vt[jt+1]=Tt*gt));for(jt=-1;++jt<=sr;)Tt=(pe[Math.min(sr,jt+1)][0]-pe[Math.max(0,jt-1)][0])/(6*(1+Vt[jt]*Vt[jt])),Le.push([Tt||0,Vt[jt]*Tt||0]);return Le}function Ye(pe){return pe.length<3?ll(pe):pe[0]+L(pe,Ve(pe))}h.svg.line.radial=function(){var pe=Xl(it);return pe.radius=pe.x,delete pe.x,pe.angle=pe.y,delete pe.y,pe};function it(pe){for(var Le,$e=-1,dt=pe.length,gt,Tt;++$ede)+",1 "+Zr}function Pr(kr,Zr,la,ca){return"Q 0,0 "+ca}return Tt.radius=function(kr){return arguments.length?($e=At(kr),Tt):$e},Tt.source=function(kr){return arguments.length?(pe=At(kr),Tt):pe},Tt.target=function(kr){return arguments.length?(Le=At(kr),Tt):Le},Tt.startAngle=function(kr){return arguments.length?(dt=At(kr),Tt):dt},Tt.endAngle=function(kr){return arguments.length?(gt=At(kr),Tt):gt},Tt};function Lt(pe){return pe.radius}h.svg.diagonal=function(){var pe=St,Le=_t,$e=nr;function dt(gt,Tt){var Vt=pe.call(this,gt,Tt),jt=Le.call(this,gt,Tt),sr=(Vt.y+jt.y)/2,Pr=[Vt,{x:Vt.x,y:sr},{x:jt.x,y:sr},jt];return Pr=Pr.map($e),"M"+Pr[0]+"C"+Pr[1]+" "+Pr[2]+" "+Pr[3]}return dt.source=function(gt){return arguments.length?(pe=At(gt),dt):pe},dt.target=function(gt){return arguments.length?(Le=At(gt),dt):Le},dt.projection=function(gt){return arguments.length?($e=gt,dt):$e},dt};function nr(pe){return[pe.x,pe.y]}h.svg.diagonal.radial=function(){var pe=h.svg.diagonal(),Le=nr,$e=pe.projection;return pe.projection=function(dt){return arguments.length?$e(cr(Le=dt)):Le},pe};function cr(pe){return function(){var Le=pe.apply(this,arguments),$e=Le[0],dt=Le[1]-Ie;return[$e*Math.cos(dt),$e*Math.sin(dt)]}}h.svg.symbol=function(){var pe=Cr,Le=gr;function $e(dt,gt){return(ua.get(pe.call(this,dt,gt))||Wr)(Le.call(this,dt,gt))}return $e.type=function(dt){return arguments.length?(pe=At(dt),$e):pe},$e.size=function(dt){return arguments.length?(Le=At(dt),$e):Le},$e};function gr(){return 64}function Cr(){return"circle"}function Wr(pe){var Le=Math.sqrt(pe/de);return"M0,"+Le+"A"+Le+","+Le+" 0 1,1 0,"+-Le+"A"+Le+","+Le+" 0 1,1 0,"+Le+"Z"}var ua=h.map({circle:Wr,cross:function(pe){var Le=Math.sqrt(pe/5)/2;return"M"+-3*Le+","+-Le+"H"+-Le+"V"+-3*Le+"H"+Le+"V"+-Le+"H"+3*Le+"V"+Le+"H"+Le+"V"+3*Le+"H"+-Le+"V"+Le+"H"+-3*Le+"Z"},diamond:function(pe){var Le=Math.sqrt(pe/(2*Ma)),$e=Le*Ma;return"M0,"+-Le+"L"+$e+",0 0,"+Le+" "+-$e+",0Z"},square:function(pe){var Le=Math.sqrt(pe)/2;return"M"+-Le+","+-Le+"L"+Le+","+-Le+" "+Le+","+Le+" "+-Le+","+Le+"Z"},"triangle-down":function(pe){var Le=Math.sqrt(pe/va),$e=Le*va/2;return"M0,"+$e+"L"+Le+","+-$e+" "+-Le+","+-$e+"Z"},"triangle-up":function(pe){var Le=Math.sqrt(pe/va),$e=Le*va/2;return"M0,"+-$e+"L"+Le+","+$e+" "+-Le+","+$e+"Z"}});h.svg.symbolTypes=ua.keys();var va=Math.sqrt(3),Ma=Math.tan(30*Xe);Q.transition=function(pe){for(var Le=Si||++oi,$e=Ho(pe),dt=[],gt,Tt,Vt=_i||{time:Date.now(),ease:Bi,delay:0,duration:250},jt=-1,sr=this.length;++jt0;)Zr[--rn].call(pe,Na);if(Pa>=1)return Vt.event&&Vt.event.end.call(pe,pe.__data__,Le),--Tt.count?delete Tt[dt]:delete pe[$e],1}Vt||(jt=gt.time,sr=mn(la,0,jt),Vt=Tt[dt]={tween:new S,time:jt,timer:sr,delay:gt.delay,duration:gt.duration,ease:gt.ease,index:Le},gt=null,++Tt.count)}h.svg.axis=function(){var pe=h.scale.linear(),Le=Ko,$e=6,dt=6,gt=3,Tt=[10],Vt=null,jt;function sr(Pr){Pr.each(function(){var kr=h.select(this),Zr=this.__chart__||pe,la=this.__chart__=pe.copy(),ca=Vt??(la.ticks?la.ticks.apply(la,Tt):la.domain()),nn=jt??(la.tickFormat?la.tickFormat.apply(la,Tt):F),pa=kr.selectAll(".tick").data(ca,la),Pa=pa.enter().insert("g",".domain").attr("class","tick").style("opacity",We),Na=h.transition(pa.exit()).style("opacity",We).remove(),rn=h.transition(pa.order()).style("opacity",1),sn=Math.max($e,0)+gt,Ba,Rn=tn(la),ni=kr.selectAll(".domain").data([0]),Zn=(ni.enter().append("path").attr("class","domain"),h.transition(ni));Pa.append("line"),Pa.append("text");var ri=Pa.select("line"),Ti=rn.select("line"),ki=pa.select("text").text(nn),Vo=Pa.select("text"),Ii=rn.select("text"),lo=Le==="top"||Le==="left"?-1:1,$o,hl,Ns,di;if(Le==="bottom"||Le==="top"?(Ba=Hs,$o="x",Ns="y",hl="x2",di="y2",ki.attr("dy",lo<0?"0em":".71em").style("text-anchor","middle"),Zn.attr("d","M"+Rn[0]+","+lo*dt+"V0H"+Rn[1]+"V"+lo*dt)):(Ba=ko,$o="y",Ns="x",hl="y2",di="x2",ki.attr("dy",".32em").style("text-anchor",lo<0?"end":"start"),Zn.attr("d","M"+lo*dt+","+Rn[0]+"H0V"+Rn[1]+"H"+lo*dt)),ri.attr(di,lo*$e),Vo.attr(Ns,lo*sn),Ti.attr(hl,0).attr(di,lo*$e),Ii.attr($o,0).attr(Ns,lo*sn),la.rangeBand){var Lo=la,Wo=Lo.rangeBand()/2;Zr=la=function(Ds){return Lo(Ds)+Wo}}else Zr.rangeBand?Zr=la:Na.call(Ba,la,Zr);Pa.call(Ba,Zr,la),rn.call(Ba,la,la)})}return sr.scale=function(Pr){return arguments.length?(pe=Pr,sr):pe},sr.orient=function(Pr){return arguments.length?(Le=Pr in Js?Pr+"":Ko,sr):Le},sr.ticks=function(){return arguments.length?(Tt=A(arguments),sr):Tt},sr.tickValues=function(Pr){return arguments.length?(Vt=Pr,sr):Vt},sr.tickFormat=function(Pr){return arguments.length?(jt=Pr,sr):jt},sr.tickSize=function(Pr){var kr=arguments.length;return kr?($e=+Pr,dt=+arguments[kr-1],sr):$e},sr.innerTickSize=function(Pr){return arguments.length?($e=+Pr,sr):$e},sr.outerTickSize=function(Pr){return arguments.length?(dt=+Pr,sr):dt},sr.tickPadding=function(Pr){return arguments.length?(gt=+Pr,sr):gt},sr.tickSubdivide=function(){return arguments.length&&sr},sr};var Ko="bottom",Js={top:1,right:1,bottom:1,left:1};function Hs(pe,Le,$e){pe.attr("transform",function(dt){var gt=Le(dt);return"translate("+(isFinite(gt)?gt:$e(dt))+",0)"})}function ko(pe,Le,$e){pe.attr("transform",function(dt){var gt=Le(dt);return"translate(0,"+(isFinite(gt)?gt:$e(dt))+")"})}h.svg.brush=function(){var pe=ie(kr,"brushstart","brush","brushend"),Le=null,$e=null,dt=[0,0],gt=[0,0],Tt,Vt,jt=!0,sr=!0,Pr=fl[0];function kr(pa){pa.each(function(){var Pa=h.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",nn).on("touchstart.brush",nn),Na=Pa.selectAll(".background").data([0]);Na.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Pa.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var rn=Pa.selectAll(".resize").data(Pr,F);rn.exit().remove(),rn.enter().append("g").attr("class",function(ni){return"resize "+ni}).style("cursor",function(ni){return Co[ni]}).append("rect").attr("x",function(ni){return/[ew]$/.test(ni)?-3:null}).attr("y",function(ni){return/^[ns]/.test(ni)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),rn.style("display",kr.empty()?"none":null);var sn=h.transition(Pa),Ba=h.transition(Na),Rn;Le&&(Rn=tn(Le),Ba.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),la(sn)),$e&&(Rn=tn($e),Ba.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),ca(sn)),Zr(sn)})}kr.event=function(pa){pa.each(function(){var Pa=pe.of(this,arguments),Na={x:dt,y:gt,i:Tt,j:Vt},rn=this.__chart__||Na;this.__chart__=Na,Si?h.select(this).transition().each("start.brush",function(){Tt=rn.i,Vt=rn.j,dt=rn.x,gt=rn.y,Pa({type:"brushstart"})}).tween("brush:brush",function(){var sn=bs(dt,Na.x),Ba=bs(gt,Na.y);return Tt=Vt=null,function(Rn){dt=Na.x=sn(Rn),gt=Na.y=Ba(Rn),Pa({type:"brush",mode:"resize"})}}).each("end.brush",function(){Tt=Na.i,Vt=Na.j,Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"})}):(Pa({type:"brushstart"}),Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"}))})};function Zr(pa){pa.selectAll(".resize").attr("transform",function(Pa){return"translate("+dt[+/e$/.test(Pa)]+","+gt[+/^s/.test(Pa)]+")"})}function la(pa){pa.select(".extent").attr("x",dt[0]),pa.selectAll(".extent,.n>rect,.s>rect").attr("width",dt[1]-dt[0])}function ca(pa){pa.select(".extent").attr("y",gt[0]),pa.selectAll(".extent,.e>rect,.w>rect").attr("height",gt[1]-gt[0])}function nn(){var pa=this,Pa=h.select(h.event.target),Na=pe.of(pa,arguments),rn=h.select(pa),sn=Pa.datum(),Ba=!/^(n|s)$/.test(sn)&&Le,Rn=!/^(e|w)$/.test(sn)&&$e,ni=Pa.classed("extent"),Zn=dr(pa),ri,Ti=h.mouse(pa),ki,Vo=h.select(t(pa)).on("keydown.brush",$o).on("keyup.brush",hl);if(h.event.changedTouches?Vo.on("touchmove.brush",Ns).on("touchend.brush",Lo):Vo.on("mousemove.brush",Ns).on("mouseup.brush",Lo),rn.interrupt().selectAll("*").interrupt(),ni)Ti[0]=dt[0]-Ti[0],Ti[1]=gt[0]-Ti[1];else if(sn){var Ii=+/w$/.test(sn),lo=+/^n/.test(sn);ki=[dt[1-Ii]-Ti[0],gt[1-lo]-Ti[1]],Ti[0]=dt[Ii],Ti[1]=gt[lo]}else h.event.altKey&&(ri=Ti.slice());rn.style("pointer-events","none").selectAll(".resize").style("display",null),h.select("body").style("cursor",Pa.style("cursor")),Na({type:"brushstart"}),Ns();function $o(){h.event.keyCode==32&&(ni||(ri=null,Ti[0]-=dt[1],Ti[1]-=gt[1],ni=2),te())}function hl(){h.event.keyCode==32&&ni==2&&(Ti[0]+=dt[1],Ti[1]+=gt[1],ni=0,te())}function Ns(){var Wo=h.mouse(pa),Ds=!1;ki&&(Wo[0]+=ki[0],Wo[1]+=ki[1]),ni||(h.event.altKey?(ri||(ri=[(dt[0]+dt[1])/2,(gt[0]+gt[1])/2]),Ti[0]=dt[+(Wo[0]0))return Yt;do Yt.push(vr=new Date(+Et)),De(Et,Ut),he(Et);while(vr=kt)for(;he(kt),!Et(kt);)kt.setTime(kt-1)},function(kt,Ut){if(kt>=kt)if(Ut<0)for(;++Ut<=0;)for(;De(kt,-1),!Et(kt););else for(;--Ut>=0;)for(;De(kt,1),!Et(kt););})},et&&(Ke.count=function(Et,kt){return x.setTime(+Et),A.setTime(+kt),he(x),he(A),Math.floor(et(x,A))},Ke.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?Ke.filter(nt?function(kt){return nt(kt)%Et===0}:function(kt){return Ke.count(0,kt)%Et===0}):Ke}),Ke}var e=E(function(){},function(he,De){he.setTime(+he+De)},function(he,De){return De-he});e.every=function(he){return he=Math.floor(he),!isFinite(he)||!(he>0)?null:he>1?E(function(De){De.setTime(Math.floor(De/he)*he)},function(De,et){De.setTime(+De+et*he)},function(De,et){return(et-De)/he}):e};var t=e.range,r=1e3,i=6e4,a=36e5,o=864e5,n=6048e5,s=E(function(he){he.setTime(he-he.getMilliseconds())},function(he,De){he.setTime(+he+De*r)},function(he,De){return(De-he)/r},function(he){return he.getUTCSeconds()}),c=s.range,f=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getMinutes()}),p=f.range,v=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r-he.getMinutes()*i)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getHours()}),T=v.range,l=E(function(he){he.setHours(0,0,0,0)},function(he,De){he.setDate(he.getDate()+De)},function(he,De){return(De-he-(De.getTimezoneOffset()-he.getTimezoneOffset())*i)/o},function(he){return he.getDate()-1}),m=l.range;function w(he){return E(function(De){De.setDate(De.getDate()-(De.getDay()+7-he)%7),De.setHours(0,0,0,0)},function(De,et){De.setDate(De.getDate()+et*7)},function(De,et){return(et-De-(et.getTimezoneOffset()-De.getTimezoneOffset())*i)/n})}var S=w(0),M=w(1),_=w(2),b=w(3),d=w(4),u=w(5),g=w(6),y=S.range,R=M.range,I=_.range,z=b.range,F=d.range,B=u.range,O=g.range,P=E(function(he){he.setDate(1),he.setHours(0,0,0,0)},function(he,De){he.setMonth(he.getMonth()+De)},function(he,De){return De.getMonth()-he.getMonth()+(De.getFullYear()-he.getFullYear())*12},function(he){return he.getMonth()}),N=P.range,U=E(function(he){he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,De){he.setFullYear(he.getFullYear()+De)},function(he,De){return De.getFullYear()-he.getFullYear()},function(he){return he.getFullYear()});U.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setFullYear(Math.floor(De.getFullYear()/he)*he),De.setMonth(0,1),De.setHours(0,0,0,0)},function(De,et){De.setFullYear(De.getFullYear()+et*he)})};var X=U.range,te=E(function(he){he.setUTCSeconds(0,0)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getUTCMinutes()}),ue=te.range,ie=E(function(he){he.setUTCMinutes(0,0,0)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getUTCHours()}),le=ie.range,q=E(function(he){he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCDate(he.getUTCDate()+De)},function(he,De){return(De-he)/o},function(he){return he.getUTCDate()-1}),J=q.range;function ee(he){return E(function(De){De.setUTCDate(De.getUTCDate()-(De.getUTCDay()+7-he)%7),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCDate(De.getUTCDate()+et*7)},function(De,et){return(et-De)/n})}var Z=ee(0),se=ee(1),Q=ee(2),V=ee(3),re=ee(4),ae=ee(5),fe=ee(6),xe=Z.range,Ae=se.range,Pe=Q.range,Ce=V.range,je=re.range,at=ae.range,tt=fe.range,Je=E(function(he){he.setUTCDate(1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCMonth(he.getUTCMonth()+De)},function(he,De){return De.getUTCMonth()-he.getUTCMonth()+(De.getUTCFullYear()-he.getUTCFullYear())*12},function(he){return he.getUTCMonth()}),Ze=Je.range,Me=E(function(he){he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCFullYear(he.getUTCFullYear()+De)},function(he,De){return De.getUTCFullYear()-he.getUTCFullYear()},function(he){return he.getUTCFullYear()});Me.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setUTCFullYear(Math.floor(De.getUTCFullYear()/he)*he),De.setUTCMonth(0,1),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCFullYear(De.getUTCFullYear()+et*he)})};var we=Me.range;h.timeDay=l,h.timeDays=m,h.timeFriday=u,h.timeFridays=B,h.timeHour=v,h.timeHours=T,h.timeInterval=E,h.timeMillisecond=e,h.timeMilliseconds=t,h.timeMinute=f,h.timeMinutes=p,h.timeMonday=M,h.timeMondays=R,h.timeMonth=P,h.timeMonths=N,h.timeSaturday=g,h.timeSaturdays=O,h.timeSecond=s,h.timeSeconds=c,h.timeSunday=S,h.timeSundays=y,h.timeThursday=d,h.timeThursdays=F,h.timeTuesday=_,h.timeTuesdays=I,h.timeWednesday=b,h.timeWednesdays=z,h.timeWeek=S,h.timeWeeks=y,h.timeYear=U,h.timeYears=X,h.utcDay=q,h.utcDays=J,h.utcFriday=ae,h.utcFridays=at,h.utcHour=ie,h.utcHours=le,h.utcMillisecond=e,h.utcMilliseconds=t,h.utcMinute=te,h.utcMinutes=ue,h.utcMonday=se,h.utcMondays=Ae,h.utcMonth=Je,h.utcMonths=Ze,h.utcSaturday=fe,h.utcSaturdays=tt,h.utcSecond=s,h.utcSeconds=c,h.utcSunday=Z,h.utcSundays=xe,h.utcThursday=re,h.utcThursdays=je,h.utcTuesday=Q,h.utcTuesdays=Pe,h.utcWednesday=V,h.utcWednesdays=Ce,h.utcWeek=Z,h.utcWeeks=xe,h.utcYear=Me,h.utcYears=we,Object.defineProperty(h,"__esModule",{value:!0})})}}),gf=He({"node_modules/d3-time-format/dist/d3-time-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,Cc()):(h=h||self,x(h.d3=h.d3||{},h.d3))})(Y,function(h,x){function A(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return We.setFullYear(Fe.y),We}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function E(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return We.setUTCFullYear(Fe.y),We}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function e(Fe,We,Oe){return{y:Fe,m:We,d:Oe,H:0,M:0,S:0,L:0}}function t(Fe){var We=Fe.dateTime,Oe=Fe.date,de=Fe.time,me=Fe.periods,be=Fe.days,Ie=Fe.shortDays,Xe=Fe.months,ht=Fe.shortMonths,bt=c(me),Ct=f(me),Zt=c(be),Wt=f(be),rr=c(Ie),Jt=f(Ie),mr=c(Xe),ia=f(Xe),Ia=c(ht),La=f(ht),Aa={a:Da,A:Ya,b:Ka,B:an,c:null,d:P,e:P,f:ue,H:N,I:U,j:X,L:te,m:ie,M:le,p:mt,q:ot,Q:kt,s:Ut,S:q,u:J,U:ee,V:Z,w:se,W:Q,x:null,X:null,y:V,Y:re,Z:ae,"%":Et},Ga={a:Lr,A:Er,b:Mr,B:br,c:null,d:fe,e:fe,f:je,H:xe,I:Ae,j:Pe,L:Ce,m:at,M:tt,p:Or,q:jr,Q:kt,s:Ut,S:Je,u:Ze,U:Me,V:we,w:he,W:De,x:null,X:null,y:et,Y:nt,Z:Ke,"%":Et},ba={a:$t,A:Ht,b:Tr,B:qr,c:ha,d,e:d,f:z,H:g,I:g,j:u,L:I,m:b,M:y,p:zt,q:_,Q:B,s:O,S:R,u:v,U:T,V:l,w:p,W:m,x:Gr,X:wa,y:S,Y:w,Z:M,"%":F};Aa.x=Xa(Oe,Aa),Aa.X=Xa(de,Aa),Aa.c=Xa(We,Aa),Ga.x=Xa(Oe,Ga),Ga.X=Xa(de,Ga),Ga.c=Xa(We,Ga);function Xa(Dr,Hr){return function(na){var ta=[],At=-1,or=0,Ar=Dr.length,oa,ga,Sa;for(na instanceof Date||(na=new Date(+na));++At53)return null;"w"in ta||(ta.w=1),"Z"in ta?(or=E(e(ta.y,0,1)),Ar=or.getUTCDay(),or=Ar>4||Ar===0?x.utcMonday.ceil(or):x.utcMonday(or),or=x.utcDay.offset(or,(ta.V-1)*7),ta.y=or.getUTCFullYear(),ta.m=or.getUTCMonth(),ta.d=or.getUTCDate()+(ta.w+6)%7):(or=A(e(ta.y,0,1)),Ar=or.getDay(),or=Ar>4||Ar===0?x.timeMonday.ceil(or):x.timeMonday(or),or=x.timeDay.offset(or,(ta.V-1)*7),ta.y=or.getFullYear(),ta.m=or.getMonth(),ta.d=or.getDate()+(ta.w+6)%7)}else("W"in ta||"U"in ta)&&("w"in ta||(ta.w="u"in ta?ta.u%7:"W"in ta?1:0),Ar="Z"in ta?E(e(ta.y,0,1)).getUTCDay():A(e(ta.y,0,1)).getDay(),ta.m=0,ta.d="W"in ta?(ta.w+6)%7+ta.W*7-(Ar+5)%7:ta.w+ta.U*7-(Ar+6)%7);return"Z"in ta?(ta.H+=ta.Z/100|0,ta.M+=ta.Z%100,E(ta)):A(ta)}}function Kt(Dr,Hr,na,ta){for(var At=0,or=Hr.length,Ar=na.length,oa,ga;At=Ar)return-1;if(oa=Hr.charCodeAt(At++),oa===37){if(oa=Hr.charAt(At++),ga=ba[oa in r?Hr.charAt(At++):oa],!ga||(ta=ga(Dr,na,ta))<0)return-1}else if(oa!=na.charCodeAt(ta++))return-1}return ta}function zt(Dr,Hr,na){var ta=bt.exec(Hr.slice(na));return ta?(Dr.p=Ct[ta[0].toLowerCase()],na+ta[0].length):-1}function $t(Dr,Hr,na){var ta=rr.exec(Hr.slice(na));return ta?(Dr.w=Jt[ta[0].toLowerCase()],na+ta[0].length):-1}function Ht(Dr,Hr,na){var ta=Zt.exec(Hr.slice(na));return ta?(Dr.w=Wt[ta[0].toLowerCase()],na+ta[0].length):-1}function Tr(Dr,Hr,na){var ta=Ia.exec(Hr.slice(na));return ta?(Dr.m=La[ta[0].toLowerCase()],na+ta[0].length):-1}function qr(Dr,Hr,na){var ta=mr.exec(Hr.slice(na));return ta?(Dr.m=ia[ta[0].toLowerCase()],na+ta[0].length):-1}function ha(Dr,Hr,na){return Kt(Dr,We,Hr,na)}function Gr(Dr,Hr,na){return Kt(Dr,Oe,Hr,na)}function wa(Dr,Hr,na){return Kt(Dr,de,Hr,na)}function Da(Dr){return Ie[Dr.getDay()]}function Ya(Dr){return be[Dr.getDay()]}function Ka(Dr){return ht[Dr.getMonth()]}function an(Dr){return Xe[Dr.getMonth()]}function mt(Dr){return me[+(Dr.getHours()>=12)]}function ot(Dr){return 1+~~(Dr.getMonth()/3)}function Lr(Dr){return Ie[Dr.getUTCDay()]}function Er(Dr){return be[Dr.getUTCDay()]}function Mr(Dr){return ht[Dr.getUTCMonth()]}function br(Dr){return Xe[Dr.getUTCMonth()]}function Or(Dr){return me[+(Dr.getUTCHours()>=12)]}function jr(Dr){return 1+~~(Dr.getUTCMonth()/3)}return{format:function(Dr){var Hr=Xa(Dr+="",Aa);return Hr.toString=function(){return Dr},Hr},parse:function(Dr){var Hr=yn(Dr+="",!1);return Hr.toString=function(){return Dr},Hr},utcFormat:function(Dr){var Hr=Xa(Dr+="",Ga);return Hr.toString=function(){return Dr},Hr},utcParse:function(Dr){var Hr=yn(Dr+="",!0);return Hr.toString=function(){return Dr},Hr}}}var r={"-":"",_:" ",0:"0"},i=/^\s*\d+/,a=/^%/,o=/[\\^$*+?|[\]().{}]/g;function n(Fe,We,Oe){var de=Fe<0?"-":"",me=(de?-Fe:Fe)+"",be=me.length;return de+(be68?1900:2e3),Oe+de[0].length):-1}function M(Fe,We,Oe){var de=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(We.slice(Oe,Oe+6));return de?(Fe.Z=de[1]?0:-(de[2]+(de[3]||"00")),Oe+de[0].length):-1}function _(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+1));return de?(Fe.q=de[0]*3-3,Oe+de[0].length):-1}function b(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.m=de[0]-1,Oe+de[0].length):-1}function d(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.d=+de[0],Oe+de[0].length):-1}function u(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.m=0,Fe.d=+de[0],Oe+de[0].length):-1}function g(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.H=+de[0],Oe+de[0].length):-1}function y(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.M=+de[0],Oe+de[0].length):-1}function R(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.S=+de[0],Oe+de[0].length):-1}function I(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.L=+de[0],Oe+de[0].length):-1}function z(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+6));return de?(Fe.L=Math.floor(de[0]/1e3),Oe+de[0].length):-1}function F(Fe,We,Oe){var de=a.exec(We.slice(Oe,Oe+1));return de?Oe+de[0].length:-1}function B(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.Q=+de[0],Oe+de[0].length):-1}function O(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.s=+de[0],Oe+de[0].length):-1}function P(Fe,We){return n(Fe.getDate(),We,2)}function N(Fe,We){return n(Fe.getHours(),We,2)}function U(Fe,We){return n(Fe.getHours()%12||12,We,2)}function X(Fe,We){return n(1+x.timeDay.count(x.timeYear(Fe),Fe),We,3)}function te(Fe,We){return n(Fe.getMilliseconds(),We,3)}function ue(Fe,We){return te(Fe,We)+"000"}function ie(Fe,We){return n(Fe.getMonth()+1,We,2)}function le(Fe,We){return n(Fe.getMinutes(),We,2)}function q(Fe,We){return n(Fe.getSeconds(),We,2)}function J(Fe){var We=Fe.getDay();return We===0?7:We}function ee(Fe,We){return n(x.timeSunday.count(x.timeYear(Fe)-1,Fe),We,2)}function Z(Fe,We){var Oe=Fe.getDay();return Fe=Oe>=4||Oe===0?x.timeThursday(Fe):x.timeThursday.ceil(Fe),n(x.timeThursday.count(x.timeYear(Fe),Fe)+(x.timeYear(Fe).getDay()===4),We,2)}function se(Fe){return Fe.getDay()}function Q(Fe,We){return n(x.timeMonday.count(x.timeYear(Fe)-1,Fe),We,2)}function V(Fe,We){return n(Fe.getFullYear()%100,We,2)}function re(Fe,We){return n(Fe.getFullYear()%1e4,We,4)}function ae(Fe){var We=Fe.getTimezoneOffset();return(We>0?"-":(We*=-1,"+"))+n(We/60|0,"0",2)+n(We%60,"0",2)}function fe(Fe,We){return n(Fe.getUTCDate(),We,2)}function xe(Fe,We){return n(Fe.getUTCHours(),We,2)}function Ae(Fe,We){return n(Fe.getUTCHours()%12||12,We,2)}function Pe(Fe,We){return n(1+x.utcDay.count(x.utcYear(Fe),Fe),We,3)}function Ce(Fe,We){return n(Fe.getUTCMilliseconds(),We,3)}function je(Fe,We){return Ce(Fe,We)+"000"}function at(Fe,We){return n(Fe.getUTCMonth()+1,We,2)}function tt(Fe,We){return n(Fe.getUTCMinutes(),We,2)}function Je(Fe,We){return n(Fe.getUTCSeconds(),We,2)}function Ze(Fe){var We=Fe.getUTCDay();return We===0?7:We}function Me(Fe,We){return n(x.utcSunday.count(x.utcYear(Fe)-1,Fe),We,2)}function we(Fe,We){var Oe=Fe.getUTCDay();return Fe=Oe>=4||Oe===0?x.utcThursday(Fe):x.utcThursday.ceil(Fe),n(x.utcThursday.count(x.utcYear(Fe),Fe)+(x.utcYear(Fe).getUTCDay()===4),We,2)}function he(Fe){return Fe.getUTCDay()}function De(Fe,We){return n(x.utcMonday.count(x.utcYear(Fe)-1,Fe),We,2)}function et(Fe,We){return n(Fe.getUTCFullYear()%100,We,2)}function nt(Fe,We){return n(Fe.getUTCFullYear()%1e4,We,4)}function Ke(){return"+0000"}function Et(){return"%"}function kt(Fe){return+Fe}function Ut(Fe){return Math.floor(+Fe/1e3)}var Yt;vr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vr(Fe){return Yt=t(Fe),h.timeFormat=Yt.format,h.timeParse=Yt.parse,h.utcFormat=Yt.utcFormat,h.utcParse=Yt.utcParse,Yt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function Rr(Fe){return Fe.toISOString()}var dr=Date.prototype.toISOString?Rr:h.utcFormat(hr);function wr(Fe){var We=new Date(Fe);return isNaN(We)?null:We}var yt=+new Date("2000-01-01T00:00:00.000Z")?wr:h.utcParse(hr);h.isoFormat=dr,h.isoParse=yt,h.timeFormatDefaultLocale=vr,h.timeFormatLocale=t,Object.defineProperty(h,"__esModule",{value:!0})})}}),sc=He({"node_modules/d3-format/dist/d3-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function A(b,d){if((u=(b=d?b.toExponential(d-1):b.toExponential()).indexOf("e"))<0)return null;var u,g=b.slice(0,u);return[g.length>1?g[0]+g.slice(2):g,+b.slice(u+1)]}function E(b){return b=A(Math.abs(b)),b?b[1]:NaN}function e(b,d){return function(u,g){for(var y=u.length,R=[],I=0,z=b[0],F=0;y>0&&z>0&&(F+z+1>g&&(z=Math.max(1,g-F)),R.push(u.substring(y-=z,y+z)),!((F+=z+1)>g));)z=b[I=(I+1)%b.length];return R.reverse().join(d)}}function t(b){return function(d){return d.replace(/[0-9]/g,function(u){return b[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(b){if(!(d=r.exec(b)))throw new Error("invalid format: "+b);var d;return new a({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}i.prototype=a.prototype;function a(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function o(b){e:for(var d=b.length,u=1,g=-1,y;u0&&(g=0);break}return g>0?b.slice(0,g)+b.slice(y+1):b}var n;function s(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],y=u[1],R=y-(n=Math.max(-8,Math.min(8,Math.floor(y/3)))*3)+1,I=g.length;return R===I?g:R>I?g+new Array(R-I+1).join("0"):R>0?g.slice(0,R)+"."+g.slice(R):"0."+new Array(1-R).join("0")+A(b,Math.max(0,d+R-1))[0]}function c(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],y=u[1];return y<0?"0."+new Array(-y).join("0")+g:g.length>y+1?g.slice(0,y+1)+"."+g.slice(y+1):g+new Array(y-g.length+2).join("0")}var f={"%":function(b,d){return(b*100).toFixed(d)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:x,e:function(b,d){return b.toExponential(d)},f:function(b,d){return b.toFixed(d)},g:function(b,d){return b.toPrecision(d)},o:function(b){return Math.round(b).toString(8)},p:function(b,d){return c(b*100,d)},r:c,s,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function p(b){return b}var v=Array.prototype.map,T=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l(b){var d=b.grouping===void 0||b.thousands===void 0?p:e(v.call(b.grouping,Number),b.thousands+""),u=b.currency===void 0?"":b.currency[0]+"",g=b.currency===void 0?"":b.currency[1]+"",y=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?p:t(v.call(b.numerals,String)),I=b.percent===void 0?"%":b.percent+"",z=b.minus===void 0?"-":b.minus+"",F=b.nan===void 0?"NaN":b.nan+"";function B(P){P=i(P);var N=P.fill,U=P.align,X=P.sign,te=P.symbol,ue=P.zero,ie=P.width,le=P.comma,q=P.precision,J=P.trim,ee=P.type;ee==="n"?(le=!0,ee="g"):f[ee]||(q===void 0&&(q=12),J=!0,ee="g"),(ue||N==="0"&&U==="=")&&(ue=!0,N="0",U="=");var Z=te==="$"?u:te==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",se=te==="$"?g:/[%p]/.test(ee)?I:"",Q=f[ee],V=/[defgprs%]/.test(ee);q=q===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(ae){var fe=Z,xe=se,Ae,Pe,Ce;if(ee==="c")xe=Q(ae)+xe,ae="";else{ae=+ae;var je=ae<0||1/ae<0;if(ae=isNaN(ae)?F:Q(Math.abs(ae),q),J&&(ae=o(ae)),je&&+ae==0&&X!=="+"&&(je=!1),fe=(je?X==="("?X:z:X==="-"||X==="("?"":X)+fe,xe=(ee==="s"?T[8+n/3]:"")+xe+(je&&X==="("?")":""),V){for(Ae=-1,Pe=ae.length;++AeCe||Ce>57){xe=(Ce===46?y+ae.slice(Ae+1):ae.slice(Ae))+xe,ae=ae.slice(0,Ae);break}}}le&&!ue&&(ae=d(ae,1/0));var at=fe.length+ae.length+xe.length,tt=at>1)+fe+ae+xe+tt.slice(at);break;default:ae=tt+fe+ae+xe;break}return R(ae)}return re.toString=function(){return P+""},re}function O(P,N){var U=B((P=i(P),P.type="f",P)),X=Math.max(-8,Math.min(8,Math.floor(E(N)/3)))*3,te=Math.pow(10,-X),ue=T[8+X/3];return function(ie){return U(te*ie)+ue}}return{format:B,formatPrefix:O}}var m;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(b){return m=l(b),h.format=m.format,h.formatPrefix=m.formatPrefix,m}function S(b){return Math.max(0,-E(Math.abs(b)))}function M(b,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(d)/3)))*3-E(Math.abs(b)))}function _(b,d){return b=Math.abs(b),d=Math.abs(d)-b,Math.max(0,E(d)-E(b))+1}h.FormatSpecifier=a,h.formatDefaultLocale=w,h.formatLocale=l,h.formatSpecifier=i,h.precisionFixed=S,h.precisionPrefix=M,h.precisionRound=_,Object.defineProperty(h,"__esModule",{value:!0})})}}),Eo=He({"node_modules/is-string-blank/index.js"(Y,H){H.exports=function(h){for(var x=h.length,A,E=0;E13)&&A!==32&&A!==133&&A!==160&&A!==5760&&A!==6158&&(A<8192||A>8205)&&A!==8232&&A!==8233&&A!==8239&&A!==8287&&A!==8288&&A!==12288&&A!==65279)return!1;return!0}}}),Vi=He({"node_modules/fast-isnumeric/index.js"(Y,H){var h=Eo();H.exports=function(x){var A=typeof x;if(A==="string"){var E=x;if(x=+x,x===0&&h(E))return!1}else if(A!=="number")return!1;return x-x<1}}}),qo=He({"src/constants/numerical.js"(Y,H){H.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}}}),Nc=He({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h["base64-arraybuffer"]={}))})(Y,function(h){for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E>2],n+=x[(i[a]&3)<<4|i[a+1]>>4],n+=x[(i[a+1]&15)<<2|i[a+2]>>6],n+=x[i[a+2]&63];return o%3===2?n=n.substring(0,n.length-1)+"=":o%3===1&&(n=n.substring(0,n.length-2)+"=="),n},t=function(r){var i=r.length*.75,a=r.length,o,n=0,s,c,f,p;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);var v=new ArrayBuffer(i),T=new Uint8Array(v);for(o=0;o>4,T[n++]=(c&15)<<4|f>>2,T[n++]=(f&3)<<6|p&63;return v};h.decode=t,h.encode=e,Object.defineProperty(h,"__esModule",{value:!0})})}}),Nf=He({"src/lib/is_plain_object.js"(Y,H){H.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),Lf=He({"src/lib/array.js"(Y){var H=Nc().decode,h=Nf(),x=Array.isArray,A=ArrayBuffer,E=DataView;function e(s){return A.isView(s)&&!(s instanceof E)}Y.isTypedArray=e;function t(s){return x(s)||e(s)}Y.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Y.isArray1D=r,Y.ensureArray=function(s,c){return x(s)||(s=[]),s.length=c,s};var i={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};i.uint8c=i.u1c,i.uint8=i.u1,i.int8=i.i1,i.uint16=i.u2,i.int16=i.i2,i.uint32=i.u4,i.int32=i.i4,i.float32=i.f4,i.float64=i.f8;function a(s){return s.constructor===ArrayBuffer}Y.isArrayBuffer=a,Y.decodeTypedArraySpec=function(s){var c=[],f=o(s),p=f.dtype,v=i[p];if(!v)throw new Error('Error in dtype: "'+p+'"');var T=v.BYTES_PER_ELEMENT,l=f.bdata;a(l)||(l=H(l));var m=f.shape===void 0?[l.byteLength/T]:(""+f.shape).split(",");m.reverse();var w=m.length,S,M,_=+m[0],b=T*_,d=0;if(w===1)c=new v(l);else if(w===2)for(S=+m[1],M=0;M2)return v[S]=v[S]|e,m.set(w,null);if(l){for(c=S;c0)return Math.log(A)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return h(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),SS=He({"src/lib/relink_private.js"(Y,H){var h=Lf().isArrayOrTypedArray,x=Nf();H.exports=function A(E,e){for(var t in e){var r=e[t],i=E[t];if(i!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(h(r)&&h(i)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var a=Math.min(r.length,i.length),o=0;oE/2?A-Math.round(A/E)*E:A}H.exports={mod:h,modHalf:x}}}),Uf=He({"node_modules/tinycolor2/tinycolor.js"(Y,H){(function(h){var x=/^\s+/,A=/\s+$/,E=0,e=h.round,t=h.min,r=h.max,i=h.random;function a(V,re){if(V=V||"",re=re||{},V instanceof a)return V;if(!(this instanceof a))return new a(V,re);var ae=o(V);this._originalInput=V,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=e(100*this._a)/100,this._format=re.format||ae.format,this._gradientType=re.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=ae.ok,this._tc_id=E++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,ae,fe,xe,Ae,Pe;return re=V.r/255,ae=V.g/255,fe=V.b/255,re<=.03928?xe=re/12.92:xe=h.pow((re+.055)/1.055,2.4),ae<=.03928?Ae=ae/12.92:Ae=h.pow((ae+.055)/1.055,2.4),fe<=.03928?Pe=fe/12.92:Pe=h.pow((fe+.055)/1.055,2.4),.2126*xe+.7152*Ae+.0722*Pe},setAlpha:function(V){return this._a=P(V),this._roundA=e(100*this._a)/100,this},toHsv:function(){var V=f(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=f(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.v*100);return this._a==1?"hsv("+re+", "+ae+"%, "+fe+"%)":"hsva("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var V=s(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=s(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.l*100);return this._a==1?"hsl("+re+", "+ae+"%, "+fe+"%)":"hsla("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHex:function(V){return v(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(N(this._r,255)*100)+"%",g:e(N(this._g,255)*100)+"%",b:e(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%)":"rgba("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+l(this._r,this._g,this._b,this._a),ae=re,fe=this._gradientType?"GradientType = 1, ":"";if(V){var xe=a(V);ae="#"+l(xe._r,xe._g,xe._b,xe._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+re+",endColorstr="+ae+")"},toString:function(V){var re=!!V;V=V||this._format;var ae=!1,fe=this._a<1&&this._a>=0,xe=!re&&fe&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return xe?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(ae=this.toRgbString()),V==="prgb"&&(ae=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(ae=this.toHexString()),V==="hex3"&&(ae=this.toHexString(!0)),V==="hex4"&&(ae=this.toHex8String(!0)),V==="hex8"&&(ae=this.toHex8String()),V==="name"&&(ae=this.toName()),V==="hsl"&&(ae=this.toHslString()),V==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(V,re){var ae=V.apply(null,[this].concat([].slice.call(re)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(y,arguments)}},a.fromRatio=function(V,re){if(typeof V=="object"){var ae={};for(var fe in V)V.hasOwnProperty(fe)&&(fe==="a"?ae[fe]=V[fe]:ae[fe]=le(V[fe]));V=ae}return a(V,re)};function o(V){var re={r:0,g:0,b:0},ae=1,fe=null,xe=null,Ae=null,Pe=!1,Ce=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Z(V.r)&&Z(V.g)&&Z(V.b)?(re=n(V.r,V.g,V.b),Pe=!0,Ce=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Z(V.h)&&Z(V.s)&&Z(V.v)?(fe=le(V.s),xe=le(V.v),re=p(V.h,fe,xe),Pe=!0,Ce="hsv"):Z(V.h)&&Z(V.s)&&Z(V.l)&&(fe=le(V.s),Ae=le(V.l),re=c(V.h,fe,Ae),Pe=!0,Ce="hsl"),V.hasOwnProperty("a")&&(ae=V.a)),ae=P(ae),{ok:Pe,format:V.format||Ce,r:t(255,r(re.r,0)),g:t(255,r(re.g,0)),b:t(255,r(re.b,0)),a:ae}}function n(V,re,ae){return{r:N(V,255)*255,g:N(re,255)*255,b:N(ae,255)*255}}function s(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=(fe+xe)/2;if(fe==xe)Ae=Pe=0;else{var je=fe-xe;switch(Pe=Ce>.5?je/(2-fe-xe):je/(fe+xe),fe){case V:Ae=(re-ae)/je+(re1&&(Je-=1),Je<1/6?at+(tt-at)*6*Je:Je<1/2?tt:Je<2/3?at+(tt-at)*(2/3-Je)*6:at}if(re===0)fe=xe=Ae=ae;else{var Ce=ae<.5?ae*(1+re):ae+re-ae*re,je=2*ae-Ce;fe=Pe(je,Ce,V+1/3),xe=Pe(je,Ce,V),Ae=Pe(je,Ce,V-1/3)}return{r:fe*255,g:xe*255,b:Ae*255}}function f(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=fe,je=fe-xe;if(Pe=fe===0?0:je/fe,fe==xe)Ae=0;else{switch(fe){case V:Ae=(re-ae)/je+(re>1)+720)%360;--re;)fe.h=(fe.h+xe)%360,Ae.push(a(fe));return Ae}function z(V,re){re=re||6;for(var ae=a(V).toHsv(),fe=ae.h,xe=ae.s,Ae=ae.v,Pe=[],Ce=1/re;re--;)Pe.push(a({h:fe,s:xe,v:Ae})),Ae=(Ae+Ce)%1;return Pe}a.mix=function(V,re,ae){ae=ae===0?0:ae||50;var fe=a(V).toRgb(),xe=a(re).toRgb(),Ae=ae/100,Pe={r:(xe.r-fe.r)*Ae+fe.r,g:(xe.g-fe.g)*Ae+fe.g,b:(xe.b-fe.b)*Ae+fe.b,a:(xe.a-fe.a)*Ae+fe.a};return a(Pe)},a.readability=function(V,re){var ae=a(V),fe=a(re);return(h.max(ae.getLuminance(),fe.getLuminance())+.05)/(h.min(ae.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(V,re,ae){var fe=a.readability(V,re),xe,Ae;switch(Ae=!1,xe=Q(ae),xe.level+xe.size){case"AAsmall":case"AAAlarge":Ae=fe>=4.5;break;case"AAlarge":Ae=fe>=3;break;case"AAAsmall":Ae=fe>=7;break}return Ae},a.mostReadable=function(V,re,ae){var fe=null,xe=0,Ae,Pe,Ce,je;ae=ae||{},Pe=ae.includeFallbackColors,Ce=ae.level,je=ae.size;for(var at=0;atxe&&(xe=Ae,fe=a(re[at]));return a.isReadable(V,fe,{level:Ce,size:je})||!Pe?fe:(ae.includeFallbackColors=!1,a.mostReadable(V,["#fff","#000"],ae))};var F=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=a.hexNames=O(F);function O(V){var re={};for(var ae in V)V.hasOwnProperty(ae)&&(re[V[ae]]=ae);return re}function P(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function N(V,re){te(V)&&(V="100%");var ae=ue(V);return V=t(re,r(0,parseFloat(V))),ae&&(V=parseInt(V*re,10)/100),h.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function U(V){return t(1,r(0,V))}function X(V){return parseInt(V,16)}function te(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function ue(V){return typeof V=="string"&&V.indexOf("%")!=-1}function ie(V){return V.length==1?"0"+V:""+V}function le(V){return V<=1&&(V=V*100+"%"),V}function q(V){return h.round(parseFloat(V)*255).toString(16)}function J(V){return X(V)/255}var ee=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+re+")|(?:"+V+")",fe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",xe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+xe),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+xe),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Z(V){return!!ee.CSS_UNIT.exec(V)}function se(V){V=V.replace(x,"").replace(A,"").toLowerCase();var re=!1;if(F[V])V=F[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ee.rgb.exec(V))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ee.rgba.exec(V))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ee.hsl.exec(V))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ee.hsla.exec(V))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ee.hsv.exec(V))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ee.hsva.exec(V))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ee.hex8.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),a:J(ae[4]),format:re?"name":"hex8"}:(ae=ee.hex6.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),format:re?"name":"hex"}:(ae=ee.hex4.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),a:J(ae[4]+""+ae[4]),format:re?"name":"hex8"}:(ae=ee.hex3.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),format:re?"name":"hex"}:!1}function Q(V){var re,ae;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),ae=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:re,size:ae}}typeof H<"u"&&H.exports?H.exports=a:window.tinycolor=a})(Math)}}),Po=He({"src/lib/extend.js"(Y){var H=Nf(),h=Array.isArray;function x(E,e){var t,r;for(t=0;t=0)))return a;if(f===3)s[f]>1&&(s[f]=1);else if(s[f]>=1)return a}var p=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return c?"rgba("+p+", "+s[3]+")":"rgb("+p+")"}}}),Nd=He({"src/constants/interactions.js"(Y,H){H.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),z0=He({"src/lib/regex.js"(Y){Y.counter=function(H,h,x,A){var E=(h||"")+(x?"":"$"),e=A===!1?"":"^";return H==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+H+"([2-9]|[1-9][0-9]+)?"+E)}}}),MS=He({"src/lib/coerce.js"(Y){var H=Vi(),h=Uf(),x=Po().extendFlat,A=Ll(),E=Tp(),e=zi(),t=Nd().DESELECTDIM,r=Zg(),i=z0().counter,a=R0().modHalf,o=Lf().isArrayOrTypedArray,n=Lf().isTypedArraySpec,s=Lf().decodeTypedArraySpec;Y.valObjectMeta={data_array:{coerceFunction:function(f,p,v){p.set(o(f)?f:n(f)?s(f):v)}},enumerated:{coerceFunction:function(f,p,v,T){T.coerceNumber&&(f=+f),T.values.indexOf(f)===-1?p.set(v):p.set(f)},validateFunction:function(f,p){p.coerceNumber&&(f=+f);for(var v=p.values,T=0;TT.max?p.set(v):p.set(+f)}},integer:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}n(f)&&(f=s(f)),f%1||!H(f)||T.min!==void 0&&fT.max?p.set(v):p.set(+f)}},string:{coerceFunction:function(f,p,v,T){if(typeof f!="string"){var l=typeof f=="number";T.strict===!0||!l?p.set(v):p.set(String(f))}else T.noBlank&&!f?p.set(v):p.set(f)}},color:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),h(f).isValid()?p.set(f):p.set(v)}},colorlist:{coerceFunction:function(f,p,v){function T(l){return h(l).isValid()}!Array.isArray(f)||!f.length?p.set(v):f.every(T)?p.set(f):p.set(v)}},colorscale:{coerceFunction:function(f,p,v){p.set(E.get(f,v))}},angle:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),f==="auto"?p.set("auto"):H(f)?p.set(a(+f,360)):p.set(v)}},subplotid:{coerceFunction:function(f,p,v,T){var l=T.regex||i(v);if(typeof f=="string"&&l.test(f)){p.set(f);return}p.set(v)},validateFunction:function(f,p){var v=p.dflt;return f===v?!0:typeof f!="string"?!1:!!i(v).test(f)}},flaglist:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}if(typeof f!="string"){p.set(v);return}for(var l=f.split("+"),m=0;m/g),f=0;f1){var e=["LOG:"];for(E=0;E1){var t=[];for(E=0;E"),"long")}},A.warn=function(){var E;if(h.logging>0){var e=["WARN:"];for(E=0;E0){var t=[];for(E=0;E"),"stick")}},A.error=function(){var E;if(h.logging>0){var e=["ERROR:"];for(E=0;E0){var t=[];for(E=0;E"),"stick")}}}}),t1=He({"src/lib/noop.js"(Y,H){H.exports=function(){}}}),Tb=He({"src/lib/push_unique.js"(Y,H){H.exports=function(x,A){if(A instanceof RegExp){for(var E=A.toString(),e=0;e0){for(var i=[],a=0;a=l&&F<=m?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var U=v(B),X=F.charAt(0);U&&(X==="G"||X==="g")&&(F=F.substr(1),B="");var te=U&&B.substr(0,7)==="chinese",ue=F.match(te?f:c);if(!ue)return e;var ie=ue[1],le=ue[3]||"1",q=Number(ue[5]||1),J=Number(ue[7]||0),ee=Number(ue[9]||0),Z=Number(ue[11]||0);if(U){if(ie.length===2)return e;ie=Number(ie);var se;try{var Q=n.getComponentMethod("calendars","getCal")(B);if(te){var V=le.charAt(le.length-1)==="i";le=parseInt(le,10),se=Q.newDate(ie,Q.toMonthIndex(ie,le,V),q)}else se=Q.newDate(ie,Number(le),q)}catch{return e}return se?(se.toJD()-o)*t+J*r+ee*i+Z*a:e}ie.length===2?ie=(Number(ie)+2e3-p)%100+p:ie=Number(ie),le-=1;var re=new Date(Date.UTC(2e3,le,q,J,ee));return re.setUTCFullYear(ie),re.getUTCMonth()!==le||re.getUTCDate()!==q?e:re.getTime()+Z*a},l=Y.MIN_MS=Y.dateTime2ms("-9999"),m=Y.MAX_MS=Y.dateTime2ms("9999-12-31 23:59:59.9999"),Y.isDateTime=function(F,B){return Y.dateTime2ms(F,B)!==e};function w(F,B){return String(F+Math.pow(10,B)).substr(1)}var S=90*t,M=3*r,_=5*i;Y.ms2DateTime=function(F,B,O){if(typeof F!="number"||!(F>=l&&F<=m))return e;B||(B=0);var P=Math.floor(A(F+.05,1)*10),N=Math.round(F-P/10),U,X,te,ue,ie,le;if(v(O)){var q=Math.floor(N/t)+o,J=Math.floor(A(F,t));try{U=n.getComponentMethod("calendars","getCal")(O).fromJD(q).formatDate("yyyy-mm-dd")}catch{U=s("G%Y-%m-%d")(new Date(N))}if(U.charAt(0)==="-")for(;U.length<11;)U="-0"+U.substr(1);else for(;U.length<10;)U="0"+U;X=B=l+t&&F<=m-t))return e;var B=Math.floor(A(F+.05,1)*10),O=new Date(Math.round(F-B/10)),P=H("%Y-%m-%d")(O),N=O.getHours(),U=O.getMinutes(),X=O.getSeconds(),te=O.getUTCMilliseconds()*10+B;return b(P,N,U,X,te)};function b(F,B,O,P,N){if((B||O||P||N)&&(F+=" "+w(B,2)+":"+w(O,2),(P||N)&&(F+=":"+w(P,2),N))){for(var U=4;N%10===0;)U-=1,N/=10;F+="."+w(N,U)}return F}Y.cleanDate=function(F,B,O){if(F===e)return B;if(Y.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(v(O))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),B;if(F=Y.ms2DateTimeLocal(+F),!F&&B!==void 0)return B}else if(!Y.isDateTime(F,O))return x.error("unrecognized date",F),B;return F};var d=/%\d?f/g,u=/%h/g,g={1:"1",2:"1",3:"2",4:"2"};function y(F,B,O,P){F=F.replace(d,function(U){var X=Math.min(+U.charAt(1)||6,6),te=(B/1e3%1+2).toFixed(X).substr(2).replace(/0+$/,"")||"0";return te});var N=new Date(Math.floor(B+.05));if(F=F.replace(u,function(){return g[O("%q")(N)]}),v(P))try{F=n.getComponentMethod("calendars","worldCalFmt")(F,B,P)}catch{return"Invalid"}return O(F)(N)}var R=[59,59.9,59.99,59.999,59.9999];function I(F,B){var O=A(F+.05,t),P=w(Math.floor(O/r),2)+":"+w(A(Math.floor(O/i),60),2);if(B!=="M"){h(B)||(B=0);var N=Math.min(A(F/a,60),R[B]),U=(100+N).toFixed(B).substr(1);B>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),P+=":"+U}return P}Y.formatDate=function(F,B,O,P,N,U){if(N=v(N)&&N,!B)if(O==="y")B=U.year;else if(O==="m")B=U.month;else if(O==="d")B=U.dayMonth+` +`+U.year;else return I(F,O)+` +`+y(U.dayMonthYear,F,P,N);return y(B,F,P,N)};var z=3*t;Y.incrementMonth=function(F,B,O){O=v(O)&&O;var P=A(F,t);if(F=Math.round(F-P),O)try{var N=Math.round(F/t)+o,U=n.getComponentMethod("calendars","getCal")(O),X=U.fromJD(N);return B%12?U.add(X,B,"m"):U.add(X,B/12,"y"),(X.toJD()-o)*t+P}catch{x.error("invalid ms "+F+" in calendar "+O)}var te=new Date(F+z);return te.setUTCMonth(te.getUTCMonth()+B)+P-z},Y.findExactDates=function(F,B){for(var O=0,P=0,N=0,U=0,X,te,ue=v(B)&&n.getComponentMethod("calendars","getCal")(B),ie=0;ie1?(o[c-1]-o[0])/(c-1):1,v,T;for(p>=0?T=n?e:t:T=n?i:r,a+=p*E*(n?-1:1)*(p>=0?1:-1);s90&&h.log("Long binary search..."),s-1};function e(a,o){return ao}function i(a,o){return a>=o}Y.sorterAsc=function(a,o){return a-o},Y.sorterDes=function(a,o){return o-a},Y.distinctVals=function(a){var o=a.slice();o.sort(Y.sorterAsc);var n;for(n=o.length-1;n>-1&&o[n]===A;n--);for(var s=o[n]-o[0]||1,c=s/(n||1)/1e4,f=[],p,v=0;v<=n;v++){var T=o[v],l=T-p;p===void 0?(f.push(T),p=T):l>c&&(s=Math.min(s,l),f.push(T),p=T)}return{vals:f,minDiff:s}},Y.roundUp=function(a,o,n){for(var s=0,c=o.length-1,f,p=0,v=n?0:1,T=n?1:0,l=n?Math.ceil:Math.floor;s0&&(s=1),n&&s)return a.sort(o)}return s?a:a.reverse()},Y.findIndexOfMin=function(a,o){o=o||x;for(var n=1/0,s,c=0;cE.length)&&(e=E.length),H(A)||(A=!1),h(E[0])){for(r=new Array(e),t=0;tx.length-1)return x[x.length-1];var E=A%1;return E*x[Math.ceil(A)]+(1-E)*x[Math.floor(A)]}}}),oM=He({"src/lib/angles.js"(Y,H){var h=R0(),x=h.mod,A=h.modHalf,E=Math.PI,e=2*E;function t(T){return T/180*E}function r(T){return T/E*180}function i(T){return Math.abs(T[1]-T[0])>e-1e-14}function a(T,l){return A(l-T,e)}function o(T,l){return Math.abs(a(T,l))}function n(T,l){if(i(l))return!0;var m,w;l[0]w&&(w+=e);var S=x(T,e),M=S+e;return S>=m&&S<=w||M>=m&&M<=w}function s(T,l,m,w){if(!n(l,w))return!1;var S,M;return m[0]=S&&T<=M}function c(T,l,m,w,S,M,_){S=S||0,M=M||0;var b=i([m,w]),d,u,g,y,R;b?(d=0,u=E,g=e):m1/3&&h.x<2/3},Y.isRightAnchor=function(h){return h.xanchor==="right"||h.xanchor==="auto"&&h.x>=2/3},Y.isTopAnchor=function(h){return h.yanchor==="top"||h.yanchor==="auto"&&h.y>=2/3},Y.isMiddleAnchor=function(h){return h.yanchor==="middle"||h.yanchor==="auto"&&h.y>1/3&&h.y<2/3},Y.isBottomAnchor=function(h){return h.yanchor==="bottom"||h.yanchor==="auto"&&h.y<=1/3}}}),lM=He({"src/lib/geometry2d.js"(Y){var H=R0().mod;Y.segmentsIntersect=h;function h(t,r,i,a,o,n,s,c){var f=i-t,p=o-t,v=s-o,T=a-r,l=n-r,m=c-n,w=f*m-v*T;if(w===0)return null;var S=(p*m-v*l)/w,M=(p*T-f*l)/w;return M<0||M>1||S<0||S>1?null:{x:t+f*S,y:r+T*S}}Y.segmentDistance=function(r,i,a,o,n,s,c,f){if(h(r,i,a,o,n,s,c,f))return 0;var p=a-r,v=o-i,T=c-n,l=f-s,m=p*p+v*v,w=T*T+l*l,S=Math.min(x(p,v,m,n-r,s-i),x(p,v,m,c-r,f-i),x(T,l,w,r-n,i-s),x(T,l,w,a-n,o-s));return Math.sqrt(S)};function x(t,r,i,a,o){var n=a*t+o*r;if(n<0)return a*a+o*o;if(n>i){var s=a-t,c=o-r;return s*s+c*c}else{var f=a*r-o*t;return f*f/i}}var A,E,e;Y.getTextLocation=function(r,i,a,o){if((r!==E||o!==e)&&(A={},E=r,e=o),A[a])return A[a];var n=r.getPointAtLength(H(a-o/2,i)),s=r.getPointAtLength(H(a+o/2,i)),c=Math.atan((s.y-n.y)/(s.x-n.x)),f=r.getPointAtLength(H(a,i)),p=(f.x*4+n.x+s.x)/6,v=(f.y*4+n.y+s.y)/6,T={x:p,y:v,theta:c};return A[a]=T,T},Y.clearLocationCache=function(){E=null},Y.getVisibleSegment=function(r,i,a){var o=i.left,n=i.right,s=i.top,c=i.bottom,f=0,p=r.getTotalLength(),v=p,T,l;function m(S){var M=r.getPointAtLength(S);S===0?T=M:S===p&&(l=M);var _=M.xn?M.x-n:0,b=M.yc?M.y-c:0;return Math.sqrt(_*_+b*b)}for(var w=m(f);w;){if(f+=w+a,f>v)return;w=m(f)}for(w=m(v);w;){if(v-=w+a,f>v)return;w=m(v)}return{min:f,max:v,len:v-f,total:p,isClosed:f===0&&v===p&&Math.abs(T.x-l.x)<.1&&Math.abs(T.y-l.y)<.1}},Y.findPointOnPath=function(r,i,a,o){o=o||{};for(var n=o.pathLength||r.getTotalLength(),s=o.tolerance||.001,c=o.iterationLimit||30,f=r.getPointAtLength(0)[a]>r.getPointAtLength(n)[a]?-1:1,p=0,v=0,T=n,l,m,w;p0?T=l:v=l,p++}return m}}}),o1=He({"src/lib/throttle.js"(Y){var H={};Y.throttle=function(A,E,e){var t=H[A],r=Date.now();if(!t){for(var i in H)H[i].tst.ts+E){a();return}t.timer=setTimeout(function(){a(),t.timer=null},E)},Y.done=function(x){var A=H[x];return!A||!A.timer?Promise.resolve():new Promise(function(E){var e=A.onDone;A.onDone=function(){e&&e(),E(),A.onDone=null}})},Y.clear=function(x){if(x)h(H[x]),delete H[x];else for(var A in H)Y.clear(A)};function h(x){x&&x.timer!==null&&(clearTimeout(x.timer),x.timer=null)}}}),uM=He({"src/lib/clear_responsive.js"(Y,H){H.exports=function(x){x._responsiveChartHandler&&(window.removeEventListener("resize",x._responsiveChartHandler),delete x._responsiveChartHandler)}}}),cM=He({"node_modules/is-mobile/index.js"(Y,H){H.exports=E,H.exports.isMobile=E,H.exports.default=E;var h=/(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,x=/CrOS/,A=/android|ipad|playbook|silk/i;function E(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=h.test(t)&&!x.test(t)||!!e.tablet&&A.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}}}),fM=He({"src/lib/preserve_drawing_buffer.js"(Y,H){var h=Vi(),x=cM();H.exports=function(e){var t;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:t=A(),typeof t!="string")return!0;var r=x({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),a=1;a-1;n--){var s=i[n];if(s.substr(0,8)==="Version/"){var c=s.substr(8).split(".")[0];if(h(c)&&(c=+c),c>=13)return!0}}}return r};function A(){var E;return typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),E}}}),hM=He({"src/lib/make_trace_groups.js"(Y,H){var h=yi();H.exports=function(A,E,e){var t=A.selectAll("g."+e.replace(/\s/g,".")).data(E,function(i){return i[0].trace.uid});t.exit().remove(),t.enter().append("g").attr("class",e),t.order();var r=A.classed("rangeplot")?"nodeRangePlot3":"node3";return t.each(function(i){i[0][r]=h.select(this)}),t}}}),vM=He({"src/lib/localize.js"(Y,H){var h=qi();H.exports=function(A,E){for(var e=A._context.locale,t=0;t<2;t++){for(var r=A._context.locales,i=0;i<2;i++){var a=(r[e]||{}).dictionary;if(a){var o=a[E];if(o)return o}r=h.localeRegistry}var n=e.split("-")[0];if(n===e)break;e=n}return E}}}),kb=He({"src/lib/filter_unique.js"(Y,H){H.exports=function(x){for(var A={},E=[],e=0,t=0;t1?(E*x+E*A)/E:x+A,t=String(e).length;if(t>16){var r=String(A).length,i=String(x).length;if(t>=i+r){var a=parseFloat(e).toPrecision(12);a.indexOf("e+")===-1&&(e=+a)}}return e}}}),gM=He({"src/lib/clean_number.js"(Y,H){var h=Vi(),x=qo().BADNUM,A=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;H.exports=function(e){return typeof e=="string"&&(e=e.replace(A,"")),h(e)?Number(e):x}}}),Qr=He({"src/lib/index.js"(Y,H){var h=yi(),x=gf().utcFormat,A=sc().format,E=Vi(),e=qo(),t=e.FP_SAFE,r=-t,i=e.BADNUM,a=H.exports={};a.adjustFormat=function(V){return!V||/^\d[.]\df/.test(V)||/[.]\d%/.test(V)?V:V==="0.f"?"~f":/^\d%/.test(V)?"~%":/^\ds/.test(V)?"~s":!/^[~,.0$]/.test(V)&&/[&fps]/.test(V)?"~"+V:V};var o={};a.warnBadFormat=function(Q){var V=String(Q);o[V]||(o[V]=1,a.warn('encountered bad format: "'+V+'"'))},a.noFormat=function(Q){return String(Q)},a.numberFormat=function(Q){var V;try{V=A(a.adjustFormat(Q))}catch{return a.warnBadFormat(Q),a.noFormat}return V},a.nestedProperty=Zg(),a.keyedContainer=TS(),a.relativeAttr=AS(),a.isPlainObject=Nf(),a.toLogRange=e1(),a.relinkPrivateKeys=SS();var n=Lf();a.isArrayBuffer=n.isArrayBuffer,a.isTypedArray=n.isTypedArray,a.isArrayOrTypedArray=n.isArrayOrTypedArray,a.isArray1D=n.isArray1D,a.ensureArray=n.ensureArray,a.concat=n.concat,a.maxRowLength=n.maxRowLength,a.minRowLength=n.minRowLength;var s=R0();a.mod=s.mod,a.modHalf=s.modHalf;var c=MS();a.valObjectMeta=c.valObjectMeta,a.coerce=c.coerce,a.coerce2=c.coerce2,a.coerceFont=c.coerceFont,a.coercePattern=c.coercePattern,a.coerceHoverinfo=c.coerceHoverinfo,a.coerceSelectionMarkerOpacity=c.coerceSelectionMarkerOpacity,a.validate=c.validate;var f=nM();a.dateTime2ms=f.dateTime2ms,a.isDateTime=f.isDateTime,a.ms2DateTime=f.ms2DateTime,a.ms2DateTimeLocal=f.ms2DateTimeLocal,a.cleanDate=f.cleanDate,a.isJSDate=f.isJSDate,a.formatDate=f.formatDate,a.incrementMonth=f.incrementMonth,a.dateTick0=f.dateTick0,a.dfltRange=f.dfltRange,a.findExactDates=f.findExactDates,a.MIN_MS=f.MIN_MS,a.MAX_MS=f.MAX_MS;var p=i1();a.findBin=p.findBin,a.sorterAsc=p.sorterAsc,a.sorterDes=p.sorterDes,a.distinctVals=p.distinctVals,a.roundUp=p.roundUp,a.sort=p.sort,a.findIndexOfMin=p.findIndexOfMin,a.sortObjectKeys=jd();var v=iM();a.aggNums=v.aggNums,a.len=v.len,a.mean=v.mean,a.geometricMean=v.geometricMean,a.median=v.median,a.midRange=v.midRange,a.variance=v.variance,a.stdev=v.stdev,a.interp=v.interp;var T=r1();a.init2dArray=T.init2dArray,a.transposeRagged=T.transposeRagged,a.dot=T.dot,a.translationMatrix=T.translationMatrix,a.rotationMatrix=T.rotationMatrix,a.rotationXYMatrix=T.rotationXYMatrix,a.apply3DTransform=T.apply3DTransform,a.apply2DTransform=T.apply2DTransform,a.apply2DTransform2=T.apply2DTransform2,a.convertCssMatrix=T.convertCssMatrix,a.inverseTransformMatrix=T.inverseTransformMatrix;var l=oM();a.deg2rad=l.deg2rad,a.rad2deg=l.rad2deg,a.angleDelta=l.angleDelta,a.angleDist=l.angleDist,a.isFullCircle=l.isFullCircle,a.isAngleInsideSector=l.isAngleInsideSector,a.isPtInsideSector=l.isPtInsideSector,a.pathArc=l.pathArc,a.pathSector=l.pathSector,a.pathAnnulus=l.pathAnnulus;var m=sM();a.isLeftAnchor=m.isLeftAnchor,a.isCenterAnchor=m.isCenterAnchor,a.isRightAnchor=m.isRightAnchor,a.isTopAnchor=m.isTopAnchor,a.isMiddleAnchor=m.isMiddleAnchor,a.isBottomAnchor=m.isBottomAnchor;var w=lM();a.segmentsIntersect=w.segmentsIntersect,a.segmentDistance=w.segmentDistance,a.getTextLocation=w.getTextLocation,a.clearLocationCache=w.clearLocationCache,a.getVisibleSegment=w.getVisibleSegment,a.findPointOnPath=w.findPointOnPath;var S=Po();a.extendFlat=S.extendFlat,a.extendDeep=S.extendDeep,a.extendDeepAll=S.extendDeepAll,a.extendDeepNoArrays=S.extendDeepNoArrays;var M=Ud();a.log=M.log,a.warn=M.warn,a.error=M.error;var _=z0();a.counterRegex=_.counter;var b=o1();a.throttle=b.throttle,a.throttleDone=b.done,a.clearThrottle=b.clear;var d=$g();a.getGraphDiv=d.getGraphDiv,a.isPlotDiv=d.isPlotDiv,a.removeElement=d.removeElement,a.addStyleRule=d.addStyleRule,a.addRelatedStyleRule=d.addRelatedStyleRule,a.deleteRelatedStyleRule=d.deleteRelatedStyleRule,a.setStyleOnHover=d.setStyleOnHover,a.getFullTransformMatrix=d.getFullTransformMatrix,a.getElementTransformMatrix=d.getElementTransformMatrix,a.getElementAndAncestors=d.getElementAndAncestors,a.equalDomRects=d.equalDomRects,a.clearResponsive=uM(),a.preserveDrawingBuffer=fM(),a.makeTraceGroups=hM(),a._=vM(),a.notifier=wb(),a.filterUnique=kb(),a.filterVisible=dM(),a.pushUnique=Tb(),a.increment=pM(),a.cleanNumber=gM(),a.ensureNumber=function(V){return E(V)?(V=Number(V),V>t||V=V?!1:E(Q)&&Q>=0&&Q%1===0},a.noop=t1(),a.identity=Jg(),a.repeat=function(Q,V){for(var re=new Array(V),ae=0;aere?Math.max(re,Math.min(V,Q)):Math.max(V,Math.min(re,Q))},a.bBoxIntersect=function(Q,V,re){return re=re||0,Q.left<=V.right+re&&V.left<=Q.right+re&&Q.top<=V.bottom+re&&V.top<=Q.bottom+re},a.simpleMap=function(Q,V,re,ae,fe){for(var xe=Q.length,Ae=new Array(xe),Pe=0;Pe=Math.pow(2,re)?fe>10?(a.warn("randstr failed uniqueness"),Ae):Q(V,re,ae,(fe||0)+1):Ae},a.OptionControl=function(Q,V){Q||(Q={}),V||(V="opt");var re={};return re.optionList=[],re._newoption=function(ae){ae[V]=Q,re[ae.name]=ae,re.optionList.push(ae)},re["_"+V]=Q,re},a.smooth=function(Q,V){if(V=Math.round(V)||0,V<2)return Q;var re=Q.length,ae=2*re,fe=2*V-1,xe=new Array(fe),Ae=new Array(re),Pe,Ce,je,at;for(Pe=0;Pe=ae&&(je-=ae*Math.floor(je/ae)),je<0?je=-1-je:je>=re&&(je=ae-1-je),at+=Q[je]*xe[Ce];Ae[Pe]=at}return Ae},a.syncOrAsync=function(Q,V,re){var ae,fe;function xe(){return a.syncOrAsync(Q,V,re)}for(;Q.length;)if(fe=Q.splice(0,1)[0],ae=fe(V),ae&&ae.then)return ae.then(xe);return re&&re(V)},a.stripTrailingSlash=function(Q){return Q.substr(-1)==="/"?Q.substr(0,Q.length-1):Q},a.noneOrAll=function(Q,V,re){if(Q){var ae=!1,fe=!0,xe,Ae;for(xe=0;xe0?fe:0})},a.fillArray=function(Q,V,re,ae){if(ae=ae||a.identity,a.isArrayOrTypedArray(Q))for(var fe=0;feI.test(window.navigator.userAgent);var z=/Firefox\/(\d+)\.\d+/;a.getFirefoxVersion=function(){var Q=z.exec(window.navigator.userAgent);if(Q&&Q.length===2){var V=parseInt(Q[1]);if(!isNaN(V))return V}return null},a.isD3Selection=function(Q){return Q instanceof h.selection},a.ensureSingle=function(Q,V,re,ae){var fe=Q.select(V+(re?"."+re:""));if(fe.size())return fe;var xe=Q.append(V);return re&&xe.classed(re,!0),ae&&xe.call(ae),xe},a.ensureSingleById=function(Q,V,re,ae){var fe=Q.select(V+"#"+re);if(fe.size())return fe;var xe=Q.append(V).attr("id",re);return ae&&xe.call(ae),xe},a.objectFromPath=function(Q,V){for(var re=Q.split("."),ae,fe=ae={},xe=0;xe1?fe+Ae[1]:"";if(xe&&(Ae.length>1||Pe.length>4||re))for(;ae.test(Pe);)Pe=Pe.replace(ae,"$1"+xe+"$2");return Pe+Ce},a.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;a.templateString=function(Q,V){var re={};return Q.replace(a.TEMPLATE_STRING_REGEX,function(ae,fe){var xe;return P.test(fe)?xe=V[fe]:(re[fe]=re[fe]||a.nestedProperty(V,fe).get,xe=re[fe](!0)),xe!==void 0?xe:""})};var N={max:10,count:0,name:"hovertemplate"};a.hovertemplateString=function(){return le.apply(N,arguments)};var U={max:10,count:0,name:"texttemplate"};a.texttemplateString=function(){return le.apply(U,arguments)};var X=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function te(Q){var V=Q.match(X);return V?{key:V[1],op:V[2],number:Number(V[3])}:{key:Q,op:null,number:null}}var ue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};a.texttemplateStringForShapes=function(){return le.apply(ue,arguments)};var ie=/^[:|\|]/;function le(Q,V,re){var ae=this,fe=arguments;return V||(V={}),Q.replace(a.TEMPLATE_STRING_REGEX,function(xe,Ae,Pe){var Ce=Ae==="xother"||Ae==="yother",je=Ae==="_xother"||Ae==="_yother",at=Ae==="_xother_"||Ae==="_yother_",tt=Ae==="xother_"||Ae==="yother_",Je=Ce||je||tt||at,Ze=Ae;(je||at)&&(Ze=Ze.substring(1)),(tt||at)&&(Ze=Ze.substring(0,Ze.length-1));var Me=null,we=null;if(ae.parseMultDiv){var he=te(Ze);Ze=he.key,Me=he.op,we=he.number}var De;if(Je){if(De=V[Ze],De===void 0)return""}else{var et,nt;for(nt=3;nt=q&&Ae<=J,je=Pe>=q&&Pe<=J;if(Ce&&(ae=10*ae+Ae-q),je&&(fe=10*fe+Pe-q),!Ce||!je){if(ae!==fe)return ae-fe;if(Ae!==Pe)return Ae-Pe}}return fe-ae};var ee=2e9;a.seedPseudoRandom=function(){ee=2e9},a.pseudoRandom=function(){var Q=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Q)<429496729?a.pseudoRandom():ee/4294967296},a.fillText=function(Q,V,re){var ae=Array.isArray(re)?function(Ae){re.push(Ae)}:function(Ae){re.text=Ae},fe=a.extractOption(Q,V,"htx","hovertext");if(a.isValidTextValue(fe))return ae(fe);var xe=a.extractOption(Q,V,"tx","text");if(a.isValidTextValue(xe))return ae(xe)},a.isValidTextValue=function(Q){return Q||Q===0},a.formatPercent=function(Q,V){V=V||0;for(var re=(Math.round(100*Q*Math.pow(10,V))*Math.pow(.1,V)).toFixed(V)+"%",ae=0;ae1&&(je=1):je=0,a.strTranslate(fe-je*(re+Ae),xe-je*(ae+Pe))+a.strScale(je)+(Ce?"rotate("+Ce+(V?"":" "+re+" "+ae)+")":"")},a.setTransormAndDisplay=function(Q,V){Q.attr("transform",a.getTextTransform(V)),Q.style("display",V.scale?null:"none")},a.ensureUniformFontSize=function(Q,V){var re=a.extendFlat({},V);return re.size=Math.max(V.size,Q._fullLayout.uniformtext.minsize||0),re},a.join2=function(Q,V,re){var ae=Q.length;return ae>1?Q.slice(0,-1).join(V)+re+Q[ae-1]:Q.join(V)},a.bigFont=function(Q){return Math.round(1.2*Q)};var Z=a.getFirefoxVersion(),se=Z!==null&&Z<86;a.getPositionFromD3Event=function(){return se?[h.event.layerX,h.event.layerY]:[h.event.offsetX,h.event.offsetY]}}}),mM=He({"build/plotcss.js"(){var Y=Qr(),H={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(x in H)h=x.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Y.addStyleRule(h,H[x]);var h,x}}),Cb=He({"node_modules/is-browser/client.js"(Y,H){H.exports=!0}}),Lb=He({"node_modules/has-hover/index.js"(Y,H){var h=Cb(),x;typeof window.matchMedia=="function"?x=!window.matchMedia("(hover: none)").matches:x=h,H.exports=x}}),Sp=He({"node_modules/events/events.js"(Y,H){var h=typeof Reflect=="object"?Reflect:null,x=h&&typeof h.apply=="function"?h.apply:function(M,_,b){return Function.prototype.apply.call(M,_,b)},A;h&&typeof h.ownKeys=="function"?A=h.ownKeys:Object.getOwnPropertySymbols?A=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:A=function(M){return Object.getOwnPropertyNames(M)};function E(S){console&&console.warn&&console.warn(S)}var e=Number.isNaN||function(M){return M!==M};function t(){t.init.call(this)}H.exports=t,H.exports.once=l,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var r=10;function i(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(S){if(typeof S!="number"||S<0||e(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");r=S}}),t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||e(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function a(S){return S._maxListeners===void 0?t.defaultMaxListeners:S._maxListeners}t.prototype.getMaxListeners=function(){return a(this)},t.prototype.emit=function(M){for(var _=[],b=1;b0&&(g=_[0]),g instanceof Error)throw g;var y=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw y.context=g,y}var R=u[M];if(R===void 0)return!1;if(typeof R=="function")x(R,this,_);else for(var I=R.length,z=p(R,I),b=0;b0&&g.length>d&&!g.warned){g.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=S,y.type=M,y.count=g.length,E(y)}return S}t.prototype.addListener=function(M,_){return o(this,M,_,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(M,_){return o(this,M,_,!0)};function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(S,M,_){var b={fired:!1,wrapFn:void 0,target:S,type:M,listener:_},d=n.bind(b);return d.listener=_,b.wrapFn=d,d}t.prototype.once=function(M,_){return i(_),this.on(M,s(this,M,_)),this},t.prototype.prependOnceListener=function(M,_){return i(_),this.prependListener(M,s(this,M,_)),this},t.prototype.removeListener=function(M,_){var b,d,u,g,y;if(i(_),d=this._events,d===void 0)return this;if(b=d[M],b===void 0)return this;if(b===_||b.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete d[M],d.removeListener&&this.emit("removeListener",M,b.listener||_));else if(typeof b!="function"){for(u=-1,g=b.length-1;g>=0;g--)if(b[g]===_||b[g].listener===_){y=b[g].listener,u=g;break}if(u<0)return this;u===0?b.shift():v(b,u),b.length===1&&(d[M]=b[0]),d.removeListener!==void 0&&this.emit("removeListener",M,y||_)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(M){var _,b,d;if(b=this._events,b===void 0)return this;if(b.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):b[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete b[M]),this;if(arguments.length===0){var u=Object.keys(b),g;for(d=0;d=0;d--)this.removeListener(M,_[d]);return this};function c(S,M,_){var b=S._events;if(b===void 0)return[];var d=b[M];return d===void 0?[]:typeof d=="function"?_?[d.listener||d]:[d]:_?T(d):p(d,d.length)}t.prototype.listeners=function(M){return c(this,M,!0)},t.prototype.rawListeners=function(M){return c(this,M,!1)},t.listenerCount=function(S,M){return typeof S.listenerCount=="function"?S.listenerCount(M):f.call(S,M)},t.prototype.listenerCount=f;function f(S){var M=this._events;if(M!==void 0){var _=M[S];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]};function p(S,M){for(var _=new Array(M),b=0;b{}),A},triggerHandler:function(A,E,e){var t,r=A._ev;if(!r)return;var i=r._events[E];if(!i)return;function a(n){if(n.listener){if(r.removeListener(E,n.listener),!n.fired)return n.fired=!0,n.listener.apply(r,[e])}else return n.apply(r,[e])}i=Array.isArray(i)?i:[i];var o;for(o=0;ox.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},E.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},E.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},E.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=P.length)return!1;if(I.dimensions===2){if(F++,z.length===F)return I;var N=z[F];if(!w(N))return!1;I=P[O][N]}else I=P[O]}else I=P}}return I}function w(I){return I===Math.round(I)&&I>=0}function S(I){var z,F;z=H.modules[I]._module,F=z.basePlotModule;var B={};B.type=null;var O=i({},x),P=i({},z.attributes);Y.crawl(P,function(X,te,ue,ie,le){n(O,le).set(void 0),X===void 0&&n(P,le).set(void 0)}),i(B,O),H.traceIs(I,"noOpacity")&&delete B.opacity,H.traceIs(I,"showLegend")||(delete B.showlegend,delete B.legendgroup),H.traceIs(I,"noHover")&&(delete B.hoverinfo,delete B.hoverlabel),z.selectPoints||delete B.selectedpoints,i(B,P),F.attributes&&i(B,F.attributes),B.type=I;var N={meta:z.meta||{},categories:z.categories||{},animatable:!!z.animatable,type:I,attributes:b(B)};if(z.layoutAttributes){var U={};i(U,z.layoutAttributes),N.layoutAttributes=b(U)}return z.animatable||Y.crawl(N,function(X){Y.isValObject(X)&&"anim"in X&&delete X.anim}),N}function M(){var I={},z,F;i(I,A);for(z in H.subplotsRegistry)if(F=H.subplotsRegistry[z],!!F.layoutAttributes)if(Array.isArray(F.attr))for(var B=0;B=a&&(i._input||{})._templateitemname;n&&(o=a);var s=r+"["+o+"]",c;function f(){c={},n&&(c[s]={},c[s][x]=n)}f();function p(m,w){c[m]=w}function v(m,w){n?H.nestedProperty(c[s],m).set(w):c[s+"."+m]=w}function T(){var m=c;return f(),m}function l(m,w){m&&v(m,w);var S=T();for(var M in S)H.nestedProperty(t,M).set(S[M])}return{modifyBase:p,modifyItem:v,getUpdateObj:T,applyUpdate:l}}}}),jf=He({"src/plots/cartesian/constants.js"(Y,H){var h=z0().counter;H.exports={idRegex:{x:h("x","( domain)?"),y:h("y","( domain)?")},attrRegex:h("[xy]axis"),xAxisMatch:h("xaxis"),yAxisMatch:h("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}}}),yc=He({"src/plots/cartesian/axis_ids.js"(Y){var H=qi(),h=jf();Y.id2name=function(E){if(!(typeof E!="string"||!E.match(h.AX_ID_PATTERN))){var e=E.split(" ")[0].substr(1);return e==="1"&&(e=""),E.charAt(0)+"axis"+e}},Y.name2id=function(E){if(E.match(h.AX_NAME_PATTERN)){var e=E.substr(5);return e==="1"&&(e=""),E.charAt(0)+e}},Y.cleanId=function(E,e,t){var r=/( domain)$/.test(E);if(!(typeof E!="string"||!E.match(h.AX_ID_PATTERN))&&!(e&&E.charAt(0)!==e)&&!(r&&!t)){var i=E.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),E.charAt(0)+i+(r&&t?" domain":"")}},Y.list=function(A,E,e){var t=A._fullLayout;if(!t)return[];var r=Y.listIds(A,E),i=new Array(r.length),a;for(a=0;at?1:-1:+(A.substr(1)||1)-+(E.substr(1)||1)},Y.ref2id=function(A){return/^[xyz]/.test(A)?A.split(" ")[0]:!1};function x(A,E){if(E&&E.length){for(var e=0;e0?".":"")+n;h.isPlainObject(s)?t(s,i,c,o+1):i(c,n,s)}})}}}),$u=He({"src/plots/plots.js"(Y,H){var h=yi(),x=gf().timeFormatLocale,A=sc().formatLocale,E=Vi(),e=Nc(),t=qi(),r=B0(),i=cl(),a=Qr(),o=zi(),n=qo().BADNUM,s=yc(),c=Vd().clearOutline,f=s1(),p=Kg(),v=Pb(),T=$f().getModuleCalcData,l=a.relinkPrivateKeys,m=a._,w=H.exports={};a.extendFlat(w,t),w.attributes=Ll(),w.attributes.type.values=w.allTypes,w.fontAttrs=Mu(),w.layoutAttributes=F0();var S=_M();w.executeAPICommand=S.executeAPICommand,w.computeAPICommandBindings=S.computeAPICommandBindings,w.manageCommandObserver=S.manageCommandObserver,w.hasSimpleAPICommandBindings=S.hasSimpleAPICommandBindings,w.redrawText=function(q){return q=a.getGraphDiv(q),new Promise(function(J){setTimeout(function(){q._fullLayout&&(t.getComponentMethod("annotations","draw")(q),t.getComponentMethod("legend","draw")(q),t.getComponentMethod("colorbar","draw")(q),J(w.previousPromises(q)))},300)})},w.resize=function(q){q=a.getGraphDiv(q);var J,ee=new Promise(function(Z,se){(!q||a.isHidden(q))&&se(new Error("Resize must be passed a displayed plot div element.")),q._redrawTimer&&clearTimeout(q._redrawTimer),q._resolveResize&&(J=q._resolveResize),q._resolveResize=Z,q._redrawTimer=setTimeout(function(){if(!q.layout||q.layout.width&&q.layout.height||a.isHidden(q)){Z(q);return}delete q.layout.width,delete q.layout.height;var Q=q.changed;q.autoplay=!0,t.call("relayout",q,{autosize:!0}).then(function(){q.changed=Q,q._resolveResize===Z&&(delete q._resolveResize,Z(q))})},100)});return J&&J(ee),ee},w.previousPromises=function(q){if((q._promises||[]).length)return Promise.all(q._promises).then(function(){q._promises=[]})},w.addLinks=function(q){if(!(!q._context.showLink&&!q._context.showSources)){var J=q._fullLayout,ee=a.ensureSingle(J._paper,"text","js-plot-link-container",function(ae){ae.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:o.defaultLine,"pointer-events":"all"}).each(function(){var fe=h.select(this);fe.append("tspan").classed("js-link-to-tool",!0),fe.append("tspan").classed("js-link-spacer",!0),fe.append("tspan").classed("js-sourcelinks",!0)})}),Z=ee.node(),se={y:J._paper.attr("height")-9};document.body.contains(Z)&&Z.getComputedTextLength()>=J.width-20?(se["text-anchor"]="start",se.x=5):(se["text-anchor"]="end",se.x=J._paper.attr("width")-7),ee.attr(se);var Q=ee.select(".js-link-to-tool"),V=ee.select(".js-link-spacer"),re=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&M(q,Q),V.text(Q.text()&&re.text()?" - ":"")}};function M(q,J){J.text("");var ee=J.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(q._context.linkText+" »");if(q._context.sendData)ee.on("click",function(){w.sendDataToCloud(q)});else{var Z=window.location.pathname.split("/"),se=window.location.search;ee.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Z[2].split(".")[0]+"/"+Z[1]+se})}}w.sendDataToCloud=function(q){var J=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(J){q.emit("plotly_beforeexport");var ee=h.select(q).append("div").attr("id","hiddenform").style("display","none"),Z=ee.append("form").attr({action:J+"/external",method:"post",target:"_blank"}),se=Z.append("input").attr({type:"text",name:"data"});return se.node().value=w.graphJson(q,!1,"keepdata"),Z.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];w.supplyDefaults=function(q,J){var ee=J&&J.skipUpdateCalc,Z=q._fullLayout||{};if(Z._skipDefaults){delete Z._skipDefaults;return}var se=q._fullLayout={},Q=q.layout||{},V=q._fullData||[],re=q._fullData=[],ae=q.data||[],fe=q.calcdata||[],xe=q._context||{},Ae;q._transitionData||w.createTransitionData(q),se._dfltTitle={plot:m(q,"Click to enter Plot title"),subtitle:m(q,"Click to enter Plot subtitle"),x:m(q,"Click to enter X axis title"),y:m(q,"Click to enter Y axis title"),colorbar:m(q,"Click to enter Colorscale title"),annotation:m(q,"new text")},se._traceWord=m(q,"trace");var Pe=g(q,_);if(se._mapboxAccessToken=xe.mapboxAccessToken,Z._initialAutoSizeIsDone){var Ce=Z.width,je=Z.height;w.supplyLayoutGlobalDefaults(Q,se,Pe),Q.width||(se.width=Ce),Q.height||(se.height=je),w.sanitizeMargins(se)}else{w.supplyLayoutGlobalDefaults(Q,se,Pe);var at=!Q.width||!Q.height,tt=se.autosize,Je=xe.autosizable,Ze=at&&(tt||Je);Ze?w.plotAutoSize(q,Q,se):at&&w.sanitizeMargins(se),!tt&&at&&(Q.width=se.width,Q.height=se.height)}se._d3locale=y(Pe,se.separators),se._extraFormat=g(q,b),se._initialAutoSizeIsDone=!0,se._dataLength=ae.length,se._modules=[],se._visibleModules=[],se._basePlotModules=[];var Me=se._subplots=u(),we=se._splomAxes={x:{},y:{}},he=se._splomSubplots={};se._splomGridDflt={},se._scatterStackOpts={},se._firstScatter={},se._alignmentOpts={},se._colorAxes={},se._requestRangeslider={},se._traceUids=d(V,ae),w.supplyDataDefaults(ae,re,Q,se);var De=Object.keys(we.x),et=Object.keys(we.y);if(De.length>1&&et.length>1){for(t.getComponentMethod("grid","sizeDefaults")(Q,se),Ae=0;Ae15&&et.length>15&&se.shapes.length===0&&se.images.length===0,w.linkSubplots(re,se,V,Z),w.cleanPlot(re,se,V,Z);var Ut=!!(Z._has&&Z._has("cartesian")),Yt=!!(se._has&&se._has("cartesian")),vr=Ut,hr=Yt;vr&&!hr?Z._bgLayer.remove():hr&&!vr&&(se._shouldCreateBgLayer=!0),Z._zoomlayer&&!q._dragging&&c({_fullLayout:Z}),R(re,se),l(se,Z),t.getComponentMethod("colorscale","crossTraceDefaults")(re,se),se._preGUI||(se._preGUI={}),se._tracePreGUI||(se._tracePreGUI={});var Rr=se._tracePreGUI,dr={},wr;for(wr in Rr)dr[wr]="old";for(Ae=0;Ae0){var xe=1-2*Q;V=Math.round(xe*V),re=Math.round(xe*re)}}var Ae=w.layoutAttributes.width.min,Pe=w.layoutAttributes.height.min;V1,je=!ee.height&&Math.abs(Z.height-re)>1;(je||Ce)&&(Ce&&(Z.width=V),je&&(Z.height=re)),J._initialAutoSize||(J._initialAutoSize={width:V,height:re}),w.sanitizeMargins(Z)},w.supplyLayoutModuleDefaults=function(q,J,ee,Z){var se=t.componentsRegistry,Q=J._basePlotModules,V,re,ae,fe=t.subplotsRegistry.cartesian;for(V in se)ae=se[V],ae.includeBasePlot&&ae.includeBasePlot(q,J);Q.length||Q.push(fe),J._has("cartesian")&&(t.getComponentMethod("grid","contentDefaults")(q,J),fe.finalizeSubplots(q,J));for(var xe in J._subplots)J._subplots[xe].sort(a.subplotSort);for(re=0;re1&&(ee.l/=tt,ee.r/=tt)}if(Pe){var Je=(ee.t+ee.b)/Pe;Je>1&&(ee.t/=Je,ee.b/=Je)}var Ze=ee.xl!==void 0?ee.xl:ee.x,Me=ee.xr!==void 0?ee.xr:ee.x,we=ee.yt!==void 0?ee.yt:ee.y,he=ee.yb!==void 0?ee.yb:ee.y;Ce[J]={l:{val:Ze,size:ee.l+at},r:{val:Me,size:ee.r+at},b:{val:he,size:ee.b+at},t:{val:we,size:ee.t+at}},je[J]=1}if(!Z._replotting)return w.doAutoMargin(q)}};function P(q){if("_redrawFromAutoMarginCount"in q._fullLayout)return!1;var J=s.list(q,"",!0);for(var ee in J)if(J[ee].autoshift||J[ee].shift)return!0;return!1}w.doAutoMargin=function(q){var J=q._fullLayout,ee=J.width,Z=J.height;J._size||(J._size={}),F(J);var se=J._size,Q=J.margin,V={t:0,b:0,l:0,r:0},re=a.extendFlat({},se),ae=Q.l,fe=Q.r,xe=Q.t,Ae=Q.b,Pe=J._pushmargin,Ce=J._pushmarginIds,je=J.minreducedwidth,at=J.minreducedheight;if(Q.autoexpand!==!1){for(var tt in Pe)Ce[tt]||delete Pe[tt];var Je=q._fullLayout._reservedMargin;for(var Ze in Je)for(var Me in Je[Ze]){var we=Je[Ze][Me];V[Me]=Math.max(V[Me],we)}Pe.base={l:{val:0,size:ae},r:{val:1,size:fe},t:{val:1,size:xe},b:{val:0,size:Ae}};for(var he in V){var De=0;for(var et in Pe)et!=="base"&&E(Pe[et][he].size)&&(De=Pe[et][he].size>De?Pe[et][he].size:De);var nt=Math.max(0,Q[he]-De);V[he]=Math.max(0,V[he]-nt)}for(var Ke in Pe){var Et=Pe[Ke].l||{},kt=Pe[Ke].b||{},Ut=Et.val,Yt=Et.size,vr=kt.val,hr=kt.size,Rr=ee-V.r-V.l,dr=Z-V.t-V.b;for(var wr in Pe){if(E(Yt)&&Pe[wr].r){var yt=Pe[wr].r.val,Fe=Pe[wr].r.size;if(yt>Ut){var We=(Yt*yt+(Fe-Rr)*Ut)/(yt-Ut),Oe=(Fe*(1-Ut)+(Yt-Rr)*(1-yt))/(yt-Ut);We+Oe>ae+fe&&(ae=We,fe=Oe)}}if(E(hr)&&Pe[wr].t){var de=Pe[wr].t.val,me=Pe[wr].t.size;if(de>vr){var be=(hr*de+(me-dr)*vr)/(de-vr),Ie=(me*(1-vr)+(hr-dr)*(1-de))/(de-vr);be+Ie>Ae+xe&&(Ae=be,xe=Ie)}}}}}var Xe=a.constrain(ee-Q.l-Q.r,B,je),ht=a.constrain(Z-Q.t-Q.b,O,at),bt=Math.max(0,ee-Xe),Ct=Math.max(0,Z-ht);if(bt){var Zt=(ae+fe)/bt;Zt>1&&(ae/=Zt,fe/=Zt)}if(Ct){var Wt=(Ae+xe)/Ct;Wt>1&&(Ae/=Wt,xe/=Wt)}if(se.l=Math.round(ae)+V.l,se.r=Math.round(fe)+V.r,se.t=Math.round(xe)+V.t,se.b=Math.round(Ae)+V.b,se.p=Math.round(Q.pad),se.w=Math.round(ee)-se.l-se.r,se.h=Math.round(Z)-se.t-se.b,!J._replotting&&(w.didMarginChange(re,se)||P(q))){"_redrawFromAutoMarginCount"in J?J._redrawFromAutoMarginCount++:J._redrawFromAutoMarginCount=1;var rr=3*(1+Object.keys(Ce).length);if(J._redrawFromAutoMarginCount1)return!0}return!1},w.graphJson=function(q,J,ee,Z,se,Q){(se&&J&&!q._fullData||se&&!J&&!q._fullLayout)&&w.supplyDefaults(q);var V=se?q._fullData:q.data,re=se?q._fullLayout:q.layout,ae=(q._transitionData||{})._frames;function fe(Pe,Ce){if(typeof Pe=="function")return Ce?"_function_":null;if(a.isPlainObject(Pe)){var je={},at;return Object.keys(Pe).sort().forEach(function(Me){if(["_","["].indexOf(Me.charAt(0))===-1){if(typeof Pe[Me]=="function"){Ce&&(je[Me]="_function");return}if(ee==="keepdata"){if(Me.substr(Me.length-3)==="src")return}else if(ee==="keepstream"){if(at=Pe[Me+"src"],typeof at=="string"&&at.indexOf(":")>0&&!a.isPlainObject(Pe.stream))return}else if(ee!=="keepall"&&(at=Pe[Me+"src"],typeof at=="string"&&at.indexOf(":")>0))return;je[Me]=fe(Pe[Me],Ce)}}),je}var tt=Array.isArray(Pe),Je=a.isTypedArray(Pe);if((tt||Je)&&Pe.dtype&&Pe.shape){var Ze=Pe.bdata;return fe({dtype:Pe.dtype,shape:Pe.shape,bdata:a.isArrayBuffer(Ze)?e.encode(Ze):Ze},Ce)}return tt?Pe.map(function(Me){return fe(Me,Ce)}):Je?a.simpleMap(Pe,a.identity):a.isJSDate(Pe)?a.ms2DateTimeLocal(+Pe):Pe}var xe={data:(V||[]).map(function(Pe){var Ce=fe(Pe);return J&&delete Ce.fit,Ce})};if(!J&&(xe.layout=fe(re),se)){var Ae=re._size;xe.layout.computed={margin:{b:Ae.b,l:Ae.l,r:Ae.r,t:Ae.t}}}return ae&&(xe.frames=fe(ae)),Q&&(xe.config=fe(q._context,!0)),Z==="object"?xe:JSON.stringify(xe)},w.modifyFrames=function(q,J){var ee,Z,se,Q=q._transitionData._frames,V=q._transitionData._frameHash;for(ee=0;ee0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){Z=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return t.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var Pe=0,Ce=0;function je(){return Pe++,function(){Ce++,!Z&&Ce===Pe&&re(Ae)}}ee.runFn(je),setTimeout(je())})}function re(Ae){if(q._transitionData)return Q(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return t.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(Ae)}function ae(){if(q._transitionData)return q._transitioning=!1,se(q._transitionData._interruptCallbacks)}var fe=[w.previousPromises,ae,ee.prepareFn,w.rehover,w.reselect,V],xe=a.syncOrAsync(fe,q);return(!xe||!xe.then)&&(xe=Promise.resolve()),xe.then(function(){return q})}w.doCalcdata=function(q,J){var ee=s.list(q),Z=q._fullData,se=q._fullLayout,Q,V,re,ae,fe=new Array(Z.length),xe=(q.calcdata||[]).slice();for(q.calcdata=fe,se._numBoxes=0,se._numViolins=0,se._violinScaleGroupStats={},q._hmpixcount=0,q._hmlumcount=0,se._piecolormap={},se._sunburstcolormap={},se._treemapcolormap={},se._iciclecolormap={},se._funnelareacolormap={},re=0;re=0;ae--)if(he[ae].enabled){Q._indexToPoints=he[ae]._indexToPoints;break}V&&V.calc&&(we=V.calc(q,Q))}(!Array.isArray(we)||!we[0])&&(we=[{x:n,y:n}]),we[0].t||(we[0].t={}),we[0].trace=Q,fe[Ze]=we}}for(ie(ee,Z,se),re=0;rere||Ce>ae)&&(Q.style("overflow","hidden"),Ae=Q.node().getBoundingClientRect(),Pe=Ae.width,Ce=Ae.height);var je=+O.attr("x"),at=+O.attr("y"),tt=q||O.node().getBoundingClientRect().height,Je=-tt/4;if(ue[0]==="y")V.attr({transform:"rotate("+[-90,je,at]+")"+x(-Pe/2,Je-Ce/2)});else if(ue[0]==="l")at=Je-Ce/2;else if(ue[0]==="a"&&ue.indexOf("atitle")!==0)je=0,at=Je;else{var Ze=O.attr("text-anchor");je=je-Pe*(Ze==="middle"?.5:Ze==="end"?1:0),at=at+Je-Ce/2}Q.attr({x:je,y:at}),N&&N.call(O,V),le(V)})})):ie(),O};var t=/(<|<|<)/g,r=/(>|>|>)/g;function i(O){return O.replace(t,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function o(O,P,N){var U=parseInt((MathJax.version||"").split(".")[0]);if(U!==2&&U!==3){h.warn("No MathJax version:",MathJax.version);return}var X,te,ue,ie,le=function(){return te=h.extendDeepAll({},MathJax.Hub.config),ue=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},q=function(){te=h.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},J=function(){if(X=MathJax.Hub.config.menuSettings.renderer,X!=="SVG")return MathJax.Hub.setRenderer("SVG")},ee=function(){X=MathJax.config.startup.output,X!=="svg"&&(MathJax.config.startup.output="svg")},Z=function(){var fe="math-output-"+h.randstr({},64);ie=H.select("body").append("div").attr({id:fe}).style({visibility:"hidden",position:"absolute","font-size":P.fontSize+"px"}).text(i(O));var xe=ie.node();return U===2?MathJax.Hub.Typeset(xe):MathJax.typeset([xe])},se=function(){var fe=ie.select(U===2?".MathJax_SVG":".MathJax"),xe=!fe.empty()&&ie.select("svg").node();if(!xe)h.log("There was an error in the tex syntax.",O),N();else{var Ae=xe.getBoundingClientRect(),Pe;U===2?Pe=H.select("body").select("#MathJax_SVG_glyphs"):Pe=fe.select("defs"),N(fe,Pe,Ae)}ie.remove()},Q=function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},V=function(){X!=="svg"&&(MathJax.config.startup.output=X)},re=function(){return ue!==void 0&&(MathJax.Hub.processSectionDelay=ue),MathJax.Hub.Config(te)},ae=function(){MathJax.config=te};U===2?MathJax.Hub.Queue(le,J,Z,se,Q,re):U===3&&(q(),ee(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Z(),se(),V(),ae()}))}var n={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},s={sub:"0.3em",sup:"-0.6em"},c={sub:"-0.21em",sup:"0.42em"},f="​",p=["http:","https:","mailto:","",void 0,":"],v=Y.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,l=/<(\/?)([^ >]*)(\s+(.*))?>/i,m=//i;Y.BR_TAG_ALL=//gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,S=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function b(O,P){if(!O)return null;var N=O.match(P),U=N&&(N[3]||N[4]);return U&&y(U)}var d=/(^|;)\s*color:/;Y.plainText=function(O,P){P=P||{};for(var N=P.len!==void 0&&P.len!==-1?P.len:1/0,U=P.allowedTags!==void 0?P.allowedTags:["br"],X="...",te=X.length,ue=O.split(T),ie=[],le="",q=0,J=0;Jte?ie.push(ee.substr(0,V-te)+X):ie.push(ee.substr(0,V));break}le=""}}return ie.join("")};var u={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},g=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function y(O){return O.replace(g,function(P,N){var U;return N.charAt(0)==="#"?U=R(N.charAt(1)==="x"?parseInt(N.substr(2),16):parseInt(N.substr(1),10)):U=u[N],U||P})}Y.convertEntities=y;function R(O){if(!(O>1114111)){var P=String.fromCodePoint;if(P)return P(O);var N=String.fromCharCode;return O<=65535?N(O):N((O>>10)+55232,O%1024+56320)}}function I(O,P){P=P.replace(v," ");var N=!1,U=[],X,te=-1;function ue(){te++;var Ce=document.createElementNS(A.svg,"tspan");H.select(Ce).attr({class:"line",dy:te*E+"em"}),O.appendChild(Ce),X=Ce;var je=U;if(U=[{node:Ce}],je.length>1)for(var at=1;at.",P);return}var je=U.pop();Ce!==je.type&&h.log("Start tag <"+je.type+"> doesnt match end tag <"+Ce+">. Pretending it did match.",P),X=U[U.length-1].node}var J=m.test(P);J?ue():(X=O,U=[{node:O}]);for(var ee=P.split(T),Z=0;Z=0;m--,w++){var S=v[m];l[w]=[1-S[0],S[1]]}return l}function c(v,T){T=T||{};for(var l=v.domain,m=v.range,w=m.length,S=new Array(w),M=0;Mv-f?f=v-(p-v):p-v=0?m=i.colorscale.sequential:m=i.colorscale.sequentialminus,s._sync("colorscale",m)}}}}),Eu=He({"src/components/colorscale/index.js"(Y,H){var h=Tp(),x=kh();H.exports={moduleType:"component",name:"colorscale",attributes:eu(),layoutAttributes:Ib(),supplyLayoutDefaults:xM(),handleDefaults:If(),crossTraceDefaults:bM(),calc:Ch(),scales:h.scales,defaultScale:h.defaultScale,getScale:h.get,isValidScale:h.isValid,hasColorscale:x.hasColorscale,extractOpts:x.extractOpts,extractScale:x.extractScale,flipScale:x.flipScale,makeColorScaleFunc:x.makeColorScaleFunc,makeColorScaleFuncFromTrace:x.makeColorScaleFuncFromTrace}}}),cu=He({"src/traces/scatter/subtypes.js"(Y,H){var h=Qr(),x=Lf().isTypedArraySpec;H.exports={hasLines:function(A){return A.visible&&A.mode&&A.mode.indexOf("lines")!==-1},hasMarkers:function(A){return A.visible&&(A.mode&&A.mode.indexOf("markers")!==-1||A.type==="splom")},hasText:function(A){return A.visible&&A.mode&&A.mode.indexOf("text")!==-1},isBubble:function(A){var E=A.marker;return h.isPlainObject(E)&&(h.isArrayOrTypedArray(E.size)||x(E.size))}}}}),U0=He({"src/traces/scatter/make_bubble_size_func.js"(Y,H){var h=Vi();H.exports=function(A,E){E||(E=2);var e=A.marker,t=e.sizeref||1,r=e.sizemin||0,i=e.sizemode==="area"?function(a){return Math.sqrt(a/t)}:function(a){return a/t};return function(a){var o=i(a/E);return h(o)&&o>0?Math.max(o,r):0}}}}),Dh=He({"src/components/fx/helpers.js"(Y){var H=Qr();Y.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},Y.isTraceInSubplots=function(t,r){if(t.type==="splom"){for(var i=t.xaxes||[],a=t.yaxes||[],o=0;o=0&&i.index2&&(r.push([a].concat(o.splice(0,2))),n="l",a=a=="m"?"l":"L");;){if(o.length==h[n])return o.unshift(a),r.push(o);if(o.length0&&(we=100,Me=Me.replace("-open","")),Me.indexOf("-dot")>0&&(we+=200,Me=Me.replace("-dot","")),Me=l.symbolNames.indexOf(Me),Me>=0&&(Me+=we)}return Me%100>=d||Me>=400?0:Math.floor(Math.max(Me,0))};function g(Me,we,he,De){var et=Me%100;return l.symbolFuncs[et](we,he,De)+(Me>=200?u:"")}var y=A("~f"),R={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};l.gradient=function(Me,we,he,De,et,nt){var Ke=R[De];return I(Me,we,he,Ke.type,et,nt,Ke.start,Ke.stop,!1,Ke.reversed)};function I(Me,we,he,De,et,nt,Ke,Et,kt,Ut){var Yt=et.length,vr;De==="linear"?vr={node:"linearGradient",attrs:{x1:Ke.x,y1:Ke.y,x2:Et.x,y2:Et.y,gradientUnits:kt?"userSpaceOnUse":"objectBoundingBox"},reversed:Ut}:De==="radial"&&(vr={node:"radialGradient",reversed:Ut});for(var hr=new Array(Yt),Rr=0;Rr=0&&Me.i===void 0&&(Me.i=nt.i),we.style("opacity",De.selectedOpacityFn?De.selectedOpacityFn(Me):Me.mo===void 0?Ke.opacity:Me.mo),De.ms2mrc){var kt;Me.ms==="various"||Ke.size==="various"?kt=3:kt=De.ms2mrc(Me.ms),Me.mrc=kt,De.selectedSizeFn&&(kt=Me.mrc=De.selectedSizeFn(Me));var Ut=l.symbolNumber(Me.mx||Ke.symbol)||0;Me.om=Ut%200>=100;var Yt=Ze(Me,he),vr=re(Me,he);we.attr("d",g(Ut,kt,Yt,vr))}var hr=!1,Rr,dr,wr;if(Me.so)wr=Et.outlierwidth,dr=Et.outliercolor,Rr=Ke.outliercolor;else{var yt=(Et||{}).width;wr=(Me.mlw+1||yt+1||(Me.trace?(Me.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Me?dr=Me.mlcc=De.lineScale(Me.mlc):x.isArrayOrTypedArray(Et.color)?dr=r.defaultLine:dr=Et.color,x.isArrayOrTypedArray(Ke.color)&&(Rr=r.defaultLine,hr=!0),"mc"in Me?Rr=Me.mcc=De.markerScale(Me.mc):Rr=Ke.color||Ke.colors||"rgba(0,0,0,0)",De.selectedColorFn&&(Rr=De.selectedColorFn(Me))}if(Me.om)we.call(r.stroke,Rr).style({"stroke-width":(wr||1)+"px",fill:"none"});else{we.style("stroke-width",(Me.isBlank?0:wr)+"px");var Fe=Ke.gradient,We=Me.mgt;We?hr=!0:We=Fe&&Fe.type,x.isArrayOrTypedArray(We)&&(We=We[0],R[We]||(We=0));var Oe=Ke.pattern,de=l.getPatternAttr,me=Oe&&(de(Oe.shape,Me.i,"")||de(Oe.path,Me.i,""));if(We&&We!=="none"){var be=Me.mgc;be?hr=!0:be=Fe.color;var Ie=he.uid;hr&&(Ie+="-"+Me.i),l.gradient(we,et,Ie,We,[[0,be],[1,Rr]],"fill")}else if(me){var Xe=!1,ht=Oe.fgcolor;!ht&&nt&&nt.color&&(ht=nt.color,Xe=!0);var bt=de(ht,Me.i,nt&&nt.color||null),Ct=de(Oe.bgcolor,Me.i,null),Zt=Oe.fgopacity,Wt=de(Oe.size,Me.i,8),rr=de(Oe.solidity,Me.i,.3);Xe=Xe||Me.mcc||x.isArrayOrTypedArray(Oe.shape)||x.isArrayOrTypedArray(Oe.path)||x.isArrayOrTypedArray(Oe.bgcolor)||x.isArrayOrTypedArray(Oe.fgcolor)||x.isArrayOrTypedArray(Oe.size)||x.isArrayOrTypedArray(Oe.solidity);var Jt=he.uid;Xe&&(Jt+="-"+Me.i),l.pattern(we,"point",et,Jt,me,Wt,rr,Me.mcc,Oe.fillmode,Ct,bt,Zt)}else x.isArrayOrTypedArray(Rr)?r.fill(we,Rr[Me.i]):r.fill(we,Rr);wr&&r.stroke(we,dr)}},l.makePointStyleFns=function(Me){var we={},he=Me.marker;return we.markerScale=l.tryColorscale(he,""),we.lineScale=l.tryColorscale(he,"line"),t.traceIs(Me,"symbols")&&(we.ms2mrc=p.isBubble(Me)?v(Me):function(){return(he.size||6)/2}),Me.selectedpoints&&x.extendFlat(we,l.makeSelectedPointStyleFns(Me)),we},l.makeSelectedPointStyleFns=function(Me){var we={},he=Me.selected||{},De=Me.unselected||{},et=Me.marker||{},nt=he.marker||{},Ke=De.marker||{},Et=et.opacity,kt=nt.opacity,Ut=Ke.opacity,Yt=kt!==void 0,vr=Ut!==void 0;(x.isArrayOrTypedArray(Et)||Yt||vr)&&(we.selectedOpacityFn=function(de){var me=de.mo===void 0?et.opacity:de.mo;return de.selected?Yt?kt:me:vr?Ut:f*me});var hr=et.color,Rr=nt.color,dr=Ke.color;(Rr||dr)&&(we.selectedColorFn=function(de){var me=de.mcc||hr;return de.selected?Rr||me:dr||me});var wr=et.size,yt=nt.size,Fe=Ke.size,We=yt!==void 0,Oe=Fe!==void 0;return t.traceIs(Me,"symbols")&&(We||Oe)&&(we.selectedSizeFn=function(de){var me=de.mrc||wr/2;return de.selected?We?yt/2:me:Oe?Fe/2:me}),we},l.makeSelectedTextStyleFns=function(Me){var we={},he=Me.selected||{},De=Me.unselected||{},et=Me.textfont||{},nt=he.textfont||{},Ke=De.textfont||{},Et=et.color,kt=nt.color,Ut=Ke.color;return we.selectedTextColorFn=function(Yt){var vr=Yt.tc||Et;return Yt.selected?kt||vr:Ut||(kt?vr:r.addOpacity(vr,f))},we},l.selectedPointStyle=function(Me,we){if(!(!Me.size()||!we.selectedpoints)){var he=l.makeSelectedPointStyleFns(we),De=we.marker||{},et=[];he.selectedOpacityFn&&et.push(function(nt,Ke){nt.style("opacity",he.selectedOpacityFn(Ke))}),he.selectedColorFn&&et.push(function(nt,Ke){r.fill(nt,he.selectedColorFn(Ke))}),he.selectedSizeFn&&et.push(function(nt,Ke){var Et=Ke.mx||De.symbol||0,kt=he.selectedSizeFn(Ke);nt.attr("d",g(l.symbolNumber(Et),kt,Ze(Ke,we),re(Ke,we))),Ke.mrc2=kt}),et.length&&Me.each(function(nt){for(var Ke=h.select(this),Et=0;Et0?he:0}l.textPointStyle=function(Me,we,he){if(Me.size()){var De;if(we.selectedpoints){var et=l.makeSelectedTextStyleFns(we);De=et.selectedTextColorFn}var nt=we.texttemplate,Ke=he._fullLayout;Me.each(function(Et){var kt=h.select(this),Ut=nt?x.extractOption(Et,we,"txt","texttemplate"):x.extractOption(Et,we,"tx","text");if(!Ut&&Ut!==0){kt.remove();return}if(nt){var Yt=we._module.formatLabels,vr=Yt?Yt(Et,we,Ke):{},hr={};T(hr,we,Et.i);var Rr=we._meta||{};Ut=x.texttemplateString(Ut,vr,Ke._d3locale,hr,Et,Rr)}var dr=Et.tp||we.textposition,wr=B(Et,we),yt=De?De(Et):Et.tc||we.textfont.color;kt.call(l.font,{family:Et.tf||we.textfont.family,weight:Et.tw||we.textfont.weight,style:Et.ty||we.textfont.style,variant:Et.tv||we.textfont.variant,textcase:Et.tC||we.textfont.textcase,lineposition:Et.tE||we.textfont.lineposition,shadow:Et.tS||we.textfont.shadow,size:wr,color:yt}).text(Ut).call(o.convertToTspans,he).call(F,dr,wr,Et.mrc)})}},l.selectedTextStyle=function(Me,we){if(!(!Me.size()||!we.selectedpoints)){var he=l.makeSelectedTextStyleFns(we);Me.each(function(De){var et=h.select(this),nt=he.selectedTextColorFn(De),Ke=De.tp||we.textposition,Et=B(De,we);r.fill(et,nt);var kt=t.traceIs(we,"bar-like");F(et,Ke,Et,De.mrc2||De.mrc,kt)})}};var O=.5;l.smoothopen=function(Me,we){if(Me.length<3)return"M"+Me.join("L");var he="M"+Me[0],De=[],et;for(et=1;et=kt||de>=Yt&&de<=kt)&&(me<=vr&&me>=Ut||me>=vr&&me<=Ut)&&(Me=[de,me])}return Me}l.applyBackoff=q,l.makeTester=function(){var Me=x.ensureSingleById(h.select("body"),"svg","js-plotly-tester",function(he){he.attr(n.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),we=x.ensureSingle(Me,"path","js-reference-point",function(he){he.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});l.tester=Me,l.testref=we},l.savedBBoxes={};var J=0,ee=1e4;l.bBox=function(Me,we,he){he||(he=Z(Me));var De;if(he){if(De=l.savedBBoxes[he],De)return x.extendFlat({},De)}else if(Me.childNodes.length===1){var et=Me.childNodes[0];if(he=Z(et),he){var nt=+et.getAttribute("x")||0,Ke=+et.getAttribute("y")||0,Et=et.getAttribute("transform");if(!Et){var kt=l.bBox(et,!1,he);return nt&&(kt.left+=nt,kt.right+=nt),Ke&&(kt.top+=Ke,kt.bottom+=Ke),kt}if(he+="~"+nt+"~"+Ke+"~"+Et,De=l.savedBBoxes[he],De)return x.extendFlat({},De)}}var Ut,Yt;we?Ut=Me:(Yt=l.tester.node(),Ut=Me.cloneNode(!0),Yt.appendChild(Ut)),h.select(Ut).attr("transform",null).call(o.positionText,0,0);var vr=Ut.getBoundingClientRect(),hr=l.testref.node().getBoundingClientRect();we||Yt.removeChild(Ut);var Rr={height:vr.height,width:vr.width,left:vr.left-hr.left,top:vr.top-hr.top,right:vr.right-hr.left,bottom:vr.bottom-hr.top};return J>=ee&&(l.savedBBoxes={},J=0),he&&(l.savedBBoxes[he]=Rr),J++,x.extendFlat({},Rr)};function Z(Me){var we=Me.getAttribute("data-unformatted");if(we!==null)return we+Me.getAttribute("data-math")+Me.getAttribute("text-anchor")+Me.getAttribute("style")}l.setClipUrl=function(Me,we,he){Me.attr("clip-path",se(we,he))};function se(Me,we){if(!Me)return null;var he=we._context,De=he._exportedPlot?"":he._baseUrl||"";return De?"url('"+De+"#"+Me+"')":"url(#"+Me+")"}l.getTranslate=function(Me){var we=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",De=Me[he]("transform")||"",et=De.replace(we,function(nt,Ke,Et){return[Ke,Et].join(" ")}).split(" ");return{x:+et[0]||0,y:+et[1]||0}},l.setTranslate=function(Me,we,he){var De=/(\btranslate\(.*?\);?)/,et=Me.attr?"attr":"getAttribute",nt=Me.attr?"attr":"setAttribute",Ke=Me[et]("transform")||"";return we=we||0,he=he||0,Ke=Ke.replace(De,"").trim(),Ke+=a(we,he),Ke=Ke.trim(),Me[nt]("transform",Ke),Ke},l.getScale=function(Me){var we=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",De=Me[he]("transform")||"",et=De.replace(we,function(nt,Ke,Et){return[Ke,Et].join(" ")}).split(" ");return{x:+et[0]||1,y:+et[1]||1}},l.setScale=function(Me,we,he){var De=/(\bscale\(.*?\);?)/,et=Me.attr?"attr":"getAttribute",nt=Me.attr?"attr":"setAttribute",Ke=Me[et]("transform")||"";return we=we||1,he=he||1,Ke=Ke.replace(De,"").trim(),Ke+="scale("+we+","+he+")",Ke=Ke.trim(),Me[nt]("transform",Ke),Ke};var Q=/\s*sc.*/;l.setPointGroupScale=function(Me,we,he){if(we=we||1,he=he||1,!!Me){var De=we===1&&he===1?"":"scale("+we+","+he+")";Me.each(function(){var et=(this.getAttribute("transform")||"").replace(Q,"");et+=De,et=et.trim(),this.setAttribute("transform",et)})}};var V=/translate\([^)]*\)\s*$/;l.setTextPointsScale=function(Me,we,he){Me&&Me.each(function(){var De,et=h.select(this),nt=et.select("text");if(nt.node()){var Ke=parseFloat(nt.attr("x")||0),Et=parseFloat(nt.attr("y")||0),kt=(et.attr("transform")||"").match(V);we===1&&he===1?De=[]:De=[a(Ke,Et),"scale("+we+","+he+")",a(-Ke,-Et)],kt&&De.push(kt),et.attr("transform",De.join(""))}})};function re(Me,we){var he;return Me&&(he=Me.mf),he===void 0&&(he=we.marker&&we.marker.standoff||0),!we._geo&&!we._xA?-he:he}l.getMarkerStandoff=re;var ae=Math.atan2,fe=Math.cos,xe=Math.sin;function Ae(Me,we){var he=we[0],De=we[1];return[he*fe(Me)-De*xe(Me),he*xe(Me)+De*fe(Me)]}var Pe,Ce,je,at,tt,Je;function Ze(Me,we){var he=Me.ma;he===void 0&&(he=we.marker.angle,(!he||x.isArrayOrTypedArray(he))&&(he=0));var De,et,nt=we.marker.angleref;if(nt==="previous"||nt==="north"){if(we._geo){var Ke=we._geo.project(Me.lonlat);De=Ke[0],et=Ke[1]}else{var Et=we._xA,kt=we._yA;if(Et&&kt)De=Et.c2p(Me.x),et=kt.c2p(Me.y);else return 90}if(we._geo){var Ut=Me.lonlat[0],Yt=Me.lonlat[1],vr=we._geo.project([Ut,Yt+1e-5]),hr=we._geo.project([Ut+1e-5,Yt]),Rr=ae(hr[1]-et,hr[0]-De),dr=ae(vr[1]-et,vr[0]-De),wr;if(nt==="north")wr=he/180*Math.PI;else if(nt==="previous"){var yt=Ut/180*Math.PI,Fe=Yt/180*Math.PI,We=Pe/180*Math.PI,Oe=Ce/180*Math.PI,de=We-yt,me=fe(Oe)*xe(de),be=xe(Oe)*fe(Fe)-fe(Oe)*xe(Fe)*fe(de);wr=-ae(me,be)-Math.PI,Pe=Ut,Ce=Yt}var Ie=Ae(Rr,[fe(wr),0]),Xe=Ae(dr,[xe(wr),0]);he=ae(Ie[1]+Xe[1],Ie[0]+Xe[0])/Math.PI*180,nt==="previous"&&!(Je===we.uid&&Me.i===tt+1)&&(he=null)}if(nt==="previous"&&!we._geo)if(Je===we.uid&&Me.i===tt+1&&E(De)&&E(et)){var ht=De-je,bt=et-at,Ct=we.line&&we.line.shape||"",Zt=Ct.slice(Ct.length-1);Zt==="h"&&(bt=0),Zt==="v"&&(ht=0),he+=ae(bt,ht)/Math.PI*180+90}else he=null}return je=De,at=et,tt=Me.i,Je=we.uid,he}l.getMarkerAngle=Ze}}),Ep=He({"src/components/titles/index.js"(Y,H){var h=yi(),x=Vi(),A=$u(),E=qi(),e=Qr(),t=e.strTranslate,r=Io(),i=zi(),a=jl(),o=Nd(),n=Pf().OPPOSITE_SIDE,s=/ [XY][0-9]* /,c=1.6,f=1.6;function p(v,T,l){var m=v._fullLayout,w=l.propContainer,S=l.propName,M=l.placeholder,_=l.traceIndex,b=l.avoid||{},d=l.attributes,u=l.transform,g=l.containerGroup,y=1,R=w.title,I=(R&&R.text?R.text:"").trim(),z=!1,F=R&&R.font?R.font:{},B=F.family,O=F.size,P=F.color,N=F.weight,U=F.style,X=F.variant,te=F.textcase,ue=F.lineposition,ie=F.shadow,le=l.subtitlePropName,q=!!le,J=l.subtitlePlaceholder,ee=(w.title||{}).subtitle||{text:"",font:{}},Z=ee.text.trim(),se=!1,Q=1,V=ee.font,re=V.family,ae=V.size,fe=V.color,xe=V.weight,Ae=V.style,Pe=V.variant,Ce=V.textcase,je=V.lineposition,at=V.shadow,tt;S==="title.text"?tt="titleText":S.indexOf("axis")!==-1?tt="axisTitleText":S.indexOf("colorbar")!==-1&&(tt="colorbarTitleText");var Je=v._context.edits[tt];function Ze(hr,Rr){return hr===void 0||Rr===void 0?!1:hr.replace(s," % ")===Rr.replace(s," % ")}I===""?y=0:Ze(I,M)&&(Je||(I=""),y=.2,z=!0),q&&(Z===""?Q=0:Ze(Z,J)&&(Je||(Z=""),Q=.2,se=!0)),l._meta?I=e.templateString(I,l._meta):m._meta&&(I=e.templateString(I,m._meta));var Me=I||Z||Je,we;g||(g=e.ensureSingle(m._infolayer,"g","g-"+T),we=m._hColorbarMoveTitle);var he=g.selectAll("text."+T).data(Me?[0]:[]);he.enter().append("text"),he.text(I).attr("class",T),he.exit().remove();var De=null,et=T+"-subtitle",nt=Z||Je;if(q&&nt&&(De=g.selectAll("text."+et).data(nt?[0]:[]),De.enter().append("text"),De.text(Z).attr("class",et),De.exit().remove()),!Me)return g;function Ke(hr,Rr){e.syncOrAsync([Et,kt],{title:hr,subtitle:Rr})}function Et(hr){var Rr=hr.title,dr=hr.subtitle,wr;!u&&we&&(u={}),u?(wr="",u.rotate&&(wr+="rotate("+[u.rotate,d.x,d.y]+")"),(u.offset||we)&&(wr+=t(0,(u.offset||0)-(we||0)))):wr=null,Rr.attr("transform",wr);function yt(be){if(be){var Ie=h.select(be.node().parentNode).select("."+et);if(!Ie.empty()){var Xe=be.node().getBBox();if(Xe.height){var ht=Xe.y+Xe.height+c*ae;Ie.attr("y",ht)}}}}if(Rr.style("opacity",y*i.opacity(P)).call(r.font,{color:i.rgb(P),size:h.round(O,2),family:B,weight:N,style:U,variant:X,textcase:te,shadow:ie,lineposition:ue}).attr(d).call(a.convertToTspans,v,yt),dr){var Fe=g.select("."+T+"-math-group"),We=Rr.node().getBBox(),Oe=Fe.node()?Fe.node().getBBox():void 0,de=Oe?Oe.y+Oe.height+c*ae:We.y+We.height+f*ae,me=e.extendFlat({},d,{y:de});dr.attr("transform",wr),dr.style("opacity",Q*i.opacity(fe)).call(r.font,{color:i.rgb(fe),size:h.round(ae,2),family:re,weight:xe,style:Ae,variant:Pe,textcase:Ce,shadow:at,lineposition:je}).attr(me).call(a.convertToTspans,v)}return A.previousPromises(v)}function kt(hr){var Rr=hr.title,dr=h.select(Rr.node().parentNode);if(b&&b.selection&&b.side&&I){dr.attr("transform",null);var wr=n[b.side],yt=b.side==="left"||b.side==="top"?-1:1,Fe=x(b.pad)?b.pad:2,We=r.bBox(dr.node()),Oe={t:0,b:0,l:0,r:0},de=v._fullLayout._reservedMargin;for(var me in de)for(var be in de[me]){var Ie=de[me][be];Oe[be]=Math.max(Oe[be],Ie)}var Xe={left:Oe.l,top:Oe.t,right:m.width-Oe.r,bottom:m.height-Oe.b},ht=b.maxShift||yt*(Xe[b.side]-We[b.side]),bt=0;if(ht<0)bt=ht;else{var Ct=b.offsetLeft||0,Zt=b.offsetTop||0;We.left-=Ct,We.right-=Ct,We.top-=Zt,We.bottom-=Zt,b.selection.each(function(){var rr=r.bBox(this);e.bBoxIntersect(We,rr,Fe)&&(bt=Math.max(bt,yt*(rr[b.side]-We[wr])+Fe))}),bt=Math.min(ht,bt),w._titleScoot=Math.abs(bt)}if(bt>0||ht<0){var Wt={left:[-bt,0],right:[bt,0],top:[0,-bt],bottom:[0,bt]}[b.side];dr.attr("transform",t(Wt[0],Wt[1]))}}}he.call(Ke,De);function Ut(hr,Rr){hr.text(Rr).on("mouseover.opacity",function(){h.select(this).transition().duration(o.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){h.select(this).transition().duration(o.HIDE_PLACEHOLDER).style("opacity",0)})}if(Je&&(I?he.on(".opacity",null):(Ut(he,M),z=!0),he.call(a.makeEditable,{gd:v}).on("edit",function(hr){_!==void 0?E.call("_guiRestyle",v,S,hr,_):E.call("_guiRelayout",v,S,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ke)}).on("input",function(hr){this.text(hr||" ").call(a.positionText,d.x,d.y)}),q)){if(q&&!I){var Yt=he.node().getBBox(),vr=Yt.y+Yt.height+f*ae;De.attr("y",vr)}Z?De.on(".opacity",null):(Ut(De,J),se=!0),De.call(a.makeEditable,{gd:v}).on("edit",function(hr){E.call("_guiRelayout",v,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ke)}).on("input",function(hr){this.text(hr||" ").call(a.positionText,De.attr("x"),De.attr("y"))})}return he.classed("js-placeholder",z),De&&De.classed("js-placeholder",se),g}H.exports={draw:p,SUBTITLE_PADDING_EM:f,SUBTITLE_PADDING_MATHJAX_EM:c}}}),Nv=He({"src/plots/cartesian/set_convert.js"(Y,H){var h=yi(),x=gf().utcFormat,A=Qr(),E=A.numberFormat,e=Vi(),t=A.cleanNumber,r=A.ms2DateTime,i=A.dateTime2ms,a=A.ensureNumber,o=A.isArrayOrTypedArray,n=qo(),s=n.FP_SAFE,c=n.BADNUM,f=n.LOG_CLIP,p=n.ONEWEEK,v=n.ONEDAY,T=n.ONEHOUR,l=n.ONEMIN,m=n.ONESEC,w=yc(),S=jf(),M=S.HOUR_PATTERN,_=S.WEEKDAY_PATTERN;function b(u){return Math.pow(10,u)}function d(u){return u!=null}H.exports=function(g,y){y=y||{};var R=g._id||"x",I=R.charAt(0);function z(Z,se){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&se&&g.range&&g.range.length===2){var Q=g.range[0],V=g.range[1];return .5*(Q+V-2*f*Math.abs(Q-V))}else return c}function F(Z,se,Q,V){if((V||{}).msUTC&&e(Z))return+Z;var re=i(Z,Q||g.calendar);if(re===c)if(e(Z)){Z=+Z;var ae=Math.floor(A.mod(Z+.05,1)*10),fe=Math.round(Z-ae/10);re=i(new Date(fe))+ae/10}else return c;return re}function B(Z,se,Q){return r(Z,se,Q||g.calendar)}function O(Z){return g._categories[Math.round(Z)]}function P(Z){if(d(Z)){if(g._categoriesMap===void 0&&(g._categoriesMap={}),g._categoriesMap[Z]!==void 0)return g._categoriesMap[Z];g._categories.push(typeof Z=="number"?String(Z):Z);var se=g._categories.length-1;return g._categoriesMap[Z]=se,se}return c}function N(Z,se){for(var Q=new Array(se),V=0;Vg.range[1]&&(Q=!Q);for(var V=Q?-1:1,re=V*Z,ae=0,fe=0;feAe)ae=fe+1;else{ae=re<(xe+Ae)/2?fe:fe+1;break}}var Pe=g._B[ae]||0;return isFinite(Pe)?ue(Z,g._m2,Pe):0},q=function(Z){var se=g._rangebreaks.length;if(!se)return ie(Z,g._m,g._b);for(var Q=0,V=0;Vg._rangebreaks[V].pmax&&(Q=V+1);return ie(Z,g._m2,g._B[Q])}}g.c2l=g.type==="log"?z:a,g.l2c=g.type==="log"?b:a,g.l2p=le,g.p2l=q,g.c2p=g.type==="log"?function(Z,se){return le(z(Z,se))}:le,g.p2c=g.type==="log"?function(Z){return b(q(Z))}:q,["linear","-"].indexOf(g.type)!==-1?(g.d2r=g.r2d=g.d2c=g.r2c=g.d2l=g.r2l=t,g.c2d=g.c2r=g.l2d=g.l2r=a,g.d2p=g.r2p=function(Z){return g.l2p(t(Z))},g.p2d=g.p2r=q,g.cleanPos=a):g.type==="log"?(g.d2r=g.d2l=function(Z,se){return z(t(Z),se)},g.r2d=g.r2c=function(Z){return b(t(Z))},g.d2c=g.r2l=t,g.c2d=g.l2r=a,g.c2r=z,g.l2d=b,g.d2p=function(Z,se){return g.l2p(g.d2r(Z,se))},g.p2d=function(Z){return b(q(Z))},g.r2p=function(Z){return g.l2p(t(Z))},g.p2r=q,g.cleanPos=a):g.type==="date"?(g.d2r=g.r2d=A.identity,g.d2c=g.r2c=g.d2l=g.r2l=F,g.c2d=g.c2r=g.l2d=g.l2r=B,g.d2p=g.r2p=function(Z,se,Q){return g.l2p(F(Z,0,Q))},g.p2d=g.p2r=function(Z,se,Q){return B(q(Z),se,Q)},g.cleanPos=function(Z){return A.cleanDate(Z,c,g.calendar)}):g.type==="category"?(g.d2c=g.d2l=P,g.r2d=g.c2d=g.l2d=O,g.d2r=g.d2l_noadd=X,g.r2c=function(Z){var se=te(Z);return se!==void 0?se:g.fraction2r(.5)},g.l2r=g.c2r=a,g.r2l=te,g.d2p=function(Z){return g.l2p(g.r2c(Z))},g.p2d=function(Z){return O(q(Z))},g.r2p=g.d2p,g.p2r=q,g.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:a(Z)}):g.type==="multicategory"&&(g.r2d=g.c2d=g.l2d=O,g.d2r=g.d2l_noadd=X,g.r2c=function(Z){var se=X(Z);return se!==void 0?se:g.fraction2r(.5)},g.r2c_just_indices=U,g.l2r=g.c2r=a,g.r2l=X,g.d2p=function(Z){return g.l2p(g.r2c(Z))},g.p2d=function(Z){return O(q(Z))},g.r2p=g.d2p,g.p2r=q,g.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:a(Z)},g.setupMultiCategory=function(Z){var se=g._traceIndices,Q,V,re=g._matchGroup;if(re&&g._categories.length===0){for(var ae in re)if(ae!==R){var fe=y[w.id2name(ae)];se=se.concat(fe._traceIndices)}}var xe=[[0,{}],[0,{}]],Ae=[];for(Q=0;Qfe[1]&&(V[ae?0:1]=Q),V[0]===V[1]){var xe=g.l2r(se),Ae=g.l2r(Q);if(se!==void 0){var Pe=xe+1;Q!==void 0&&(Pe=Math.min(Pe,Ae)),V[ae?1:0]=Pe}if(Q!==void 0){var Ce=Ae+1;se!==void 0&&(Ce=Math.max(Ce,xe)),V[ae?0:1]=Ce}}}},g.cleanRange=function(Z,se){g._cleanRange(Z,se),g.limitRange(Z)},g._cleanRange=function(Z,se){se||(se={}),Z||(Z="range");var Q=A.nestedProperty(g,Z).get(),V,re;if(g.type==="date"?re=A.dfltRange(g.calendar):I==="y"?re=S.DFLTRANGEY:g._name==="realaxis"?re=[0,1]:re=se.dfltRange||S.DFLTRANGEX,re=re.slice(),(g.rangemode==="tozero"||g.rangemode==="nonnegative")&&(re[0]=0),!Q||Q.length!==2){A.nestedProperty(g,Z).set(re);return}var ae=Q[0]===null,fe=Q[1]===null;for(g.type==="date"&&!g.autorange&&(Q[0]=A.cleanDate(Q[0],c,g.calendar),Q[1]=A.cleanDate(Q[1],c,g.calendar)),V=0;V<2;V++)if(g.type==="date"){if(!A.isDateTime(Q[V],g.calendar)){g[Z]=re;break}if(g.r2l(Q[0])===g.r2l(Q[1])){var xe=A.constrain(g.r2l(Q[0]),A.MIN_MS+1e3,A.MAX_MS-1e3);Q[0]=g.l2r(xe-1e3),Q[1]=g.l2r(xe+1e3);break}}else{if(!e(Q[V]))if(!(ae||fe)&&e(Q[1-V]))Q[V]=Q[1-V]*(V?10:.1);else{g[Z]=re;break}if(Q[V]<-s?Q[V]=-s:Q[V]>s&&(Q[V]=s),Q[0]===Q[1]){var Ae=Math.max(1,Math.abs(Q[0]*1e-6));Q[0]-=Ae,Q[1]+=Ae}}},g.setScale=function(Z){var se=y._size;if(g.overlaying){var Q=w.getFromId({_fullLayout:y},g.overlaying);g.domain=Q.domain}var V=Z&&g._r?"_r":"range",re=g.calendar;g.cleanRange(V);var ae=g.r2l(g[V][0],re),fe=g.r2l(g[V][1],re),xe=I==="y";if(xe?(g._offset=se.t+(1-g.domain[1])*se.h,g._length=se.h*(g.domain[1]-g.domain[0]),g._m=g._length/(ae-fe),g._b=-g._m*fe):(g._offset=se.l+g.domain[0]*se.w,g._length=se.w*(g.domain[1]-g.domain[0]),g._m=g._length/(fe-ae),g._b=-g._m*ae),g._rangebreaks=[],g._lBreaks=0,g._m2=0,g._B=[],g.rangebreaks){var Ae,Pe;if(g._rangebreaks=g.locateBreaks(Math.min(ae,fe),Math.max(ae,fe)),g._rangebreaks.length){for(Ae=0;Aefe&&(Ce=!Ce),Ce&&g._rangebreaks.reverse();var je=Ce?-1:1;for(g._m2=je*g._length/(Math.abs(fe-ae)-g._lBreaks),g._B.push(-g._m2*(xe?fe:ae)),Ae=0;Aere&&(re+=7,aere&&(re+=24,ae=V&&ae=V&&Z=Ke.min&&(heKe.max&&(Ke.max=De),et=!1)}et&&fe.push({min:he,max:De})}};for(Q=0;Qm*2}function n(f){return Math.max(1,(f-1)/1e3)}function s(f,p){for(var v=f.length,T=n(v),l=0,m=0,w={},S=0;Sl*2}function c(f){return E(f[0])&&E(f[1])}}}),gv=He({"src/plots/cartesian/autorange.js"(Y,H){var h=yi(),x=Vi(),A=Qr(),E=qo().FP_SAFE,e=qi(),t=Io(),r=yc(),i=r.getFromId,a=r.isLinked;H.exports={applyAutorangeOptions:g,getAutoRange:o,makePadFn:s,doAutoRange:v,findExtremes:T,concatExtremes:p};function o(y,R){var I,z,F=[],B=y._fullLayout,O=s(B,R,0),P=s(B,R,1),N=p(y,R),U=N.min,X=N.max;if(U.length===0||X.length===0)return A.simpleMap(R.range,R.r2l);var te=U[0].val,ue=X[0].val;for(I=1;I0&&(Ae=se-O(re)-P(ae),Ae>Q?Pe/Ae>V&&(fe=re,xe=ae,V=Pe/Ae):Pe/se>V&&(fe={val:re.val,nopad:1},xe={val:ae.val,nopad:1},V=Pe/se));function Ce(Ze,Me){return Math.max(Ze,P(Me))}if(te===ue){var je=te-1,at=te+1;if(ee)if(te===0)F=[0,1];else{var tt=(te>0?X:U).reduce(Ce,0),Je=te/(1-Math.min(.5,tt/se));F=te>0?[0,Je]:[Je,0]}else Z?F=[Math.max(0,je),Math.max(1,at)]:F=[je,at]}else ee?(fe.val>=0&&(fe={val:0,nopad:1}),xe.val<=0&&(xe={val:0,nopad:1})):Z&&(fe.val-V*O(fe)<0&&(fe={val:0,nopad:1}),xe.val<=0&&(xe={val:1,nopad:1})),V=(xe.val-fe.val-n(R,re.val,ae.val))/(se-O(fe)-P(xe)),F=[fe.val-V*O(fe),xe.val+V*P(xe)];return F=g(F,R),R.limitRange&&R.limitRange(),le&&F.reverse(),A.simpleMap(F,R.l2r||Number)}function n(y,R,I){var z=0;if(y.rangebreaks)for(var F=y.locateBreaks(R,I),B=0;B0?I.ppadplus:I.ppadminus)||I.ppad||0),re=Q((y._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ae=Q(I.vpadplus||I.vpad),fe=Q(I.vpadminus||I.vpad);if(!U){if(Z=1/0,se=-1/0,N)for(te=0;te0&&(Z=ue),ue>se&&ue-E&&(Z=ue),ue>se&&ue=Pe;te--)Ae(te);return{min:z,max:F,opts:I}}function l(y,R,I,z){w(y,R,I,z,M)}function m(y,R,I,z){w(y,R,I,z,_)}function w(y,R,I,z,F){for(var B=z.tozero,O=z.extrapad,P=!0,N=0;N=I&&(U.extrapad||!O)){P=!1;break}else F(R,U.val)&&U.pad<=I&&(O||!U.extrapad)&&(y.splice(N,1),N--)}if(P){var X=B&&R===0;y.push({val:R,pad:X?0:I,extrapad:X?!1:O})}}function S(y){return x(y)&&Math.abs(y)=R}function b(y,R){var I=R.autorangeoptions;return I&&I.minallowed!==void 0&&u(R,I.minallowed,I.maxallowed)?I.minallowed:I&&I.clipmin!==void 0&&u(R,I.clipmin,I.clipmax)?Math.max(y,R.d2l(I.clipmin)):y}function d(y,R){var I=R.autorangeoptions;return I&&I.maxallowed!==void 0&&u(R,I.minallowed,I.maxallowed)?I.maxallowed:I&&I.clipmax!==void 0&&u(R,I.clipmin,I.clipmax)?Math.min(y,R.d2l(I.clipmax)):y}function u(y,R,I){return R!==void 0&&I!==void 0?(R=y.d2l(R),I=y.d2l(I),R=N&&(B=N,I=N),O<=N&&(O=N,z=N)}}return I=b(I,R),z=d(z,R),[I,z]}}}),wo=He({"src/plots/cartesian/axes.js"(Y,H){var h=yi(),x=Vi(),A=$u(),E=qi(),e=Qr(),t=e.strTranslate,r=jl(),i=Ep(),a=zi(),o=Io(),n=Kf(),s=Db(),c=qo(),f=c.ONEMAXYEAR,p=c.ONEAVGYEAR,v=c.ONEMINYEAR,T=c.ONEMAXQUARTER,l=c.ONEAVGQUARTER,m=c.ONEMINQUARTER,w=c.ONEMAXMONTH,S=c.ONEAVGMONTH,M=c.ONEMINMONTH,_=c.ONEWEEK,b=c.ONEDAY,d=b/2,u=c.ONEHOUR,g=c.ONEMIN,y=c.ONESEC,R=c.ONEMILLI,I=c.ONEMICROSEC,z=c.MINUS_SIGN,F=c.BADNUM,B={K:"zeroline"},O={K:"gridline",L:"path"},P={K:"minor-gridline",L:"path"},N={K:"tick",L:"path"},U={K:"tick",L:"text"},X={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},te=Pf(),ue=te.MID_SHIFT,ie=te.CAP_SHIFT,le=te.LINE_SPACING,q=te.OPPOSITE_SIDE,J=3,ee=H.exports={};ee.setConvert=Nv();var Z=j0(),se=yc(),Q=se.idSort,V=se.isLinked;ee.id2name=se.id2name,ee.name2id=se.name2id,ee.cleanId=se.cleanId,ee.list=se.list,ee.listIds=se.listIds,ee.getFromId=se.getFromId,ee.getFromTrace=se.getFromTrace;var re=gv();ee.getAutoRange=re.getAutoRange,ee.findExtremes=re.findExtremes;var ae=1e-4;function fe(mt){var ot=(mt[1]-mt[0])*ae;return[mt[0]-ot,mt[1]+ot]}ee.coerceRef=function(mt,ot,Lr,Er,Mr,br){var Or=Er.charAt(Er.length-1),jr=Lr._fullLayout._subplots[Or+"axis"],Dr=Er+"ref",Hr={};return Mr||(Mr=jr[0]||(typeof br=="string"?br:br[0])),br||(br=Mr),jr=jr.concat(jr.map(function(na){return na+" domain"})),Hr[Dr]={valType:"enumerated",values:jr.concat(br?typeof br=="string"?[br]:br:[]),dflt:Mr},e.coerce(mt,ot,Hr,Dr)},ee.getRefType=function(mt){return mt===void 0?mt:mt==="paper"?"paper":mt==="pixel"?"pixel":/( domain)$/.test(mt)?"domain":"range"},ee.coercePosition=function(mt,ot,Lr,Er,Mr,br){var Or,jr,Dr=ee.getRefType(Er);if(Dr!=="range")Or=e.ensureNumber,jr=Lr(Mr,br);else{var Hr=ee.getFromId(ot,Er);br=Hr.fraction2r(br),jr=Lr(Mr,br),Or=Hr.cleanPos}mt[Mr]=Or(jr)},ee.cleanPosition=function(mt,ot,Lr){var Er=Lr==="paper"||Lr==="pixel"?e.ensureNumber:ee.getFromId(ot,Lr).cleanPos;return Er(mt)},ee.redrawComponents=function(mt,ot){ot=ot||ee.listIds(mt);var Lr=mt._fullLayout;function Er(Mr,br,Or,jr){for(var Dr=E.getComponentMethod(Mr,br),Hr={},na=0;na2e-6||((Lr-mt._forceTick0)/mt._minDtick%1+1.000001)%1>2e-6)&&(mt._minDtick=0))},ee.saveRangeInitial=function(mt,ot){for(var Lr=ee.list(mt,"",!0),Er=!1,Mr=0;Mrta*.3||Hr(Er)||Hr(Mr))){var At=Lr.dtick/2;mt+=mt+AtOr){var jr=Number(Lr.substr(1));br.exactYears>Or&&jr%12===0?mt=ee.tickIncrement(mt,"M6","reverse")+b*1.5:br.exactMonths>Or?mt=ee.tickIncrement(mt,"M1","reverse")+b*15.5:mt-=d;var Dr=ee.tickIncrement(mt,Lr);if(Dr<=Er)return Dr}return mt}ee.prepMinorTicks=function(mt,ot,Lr){if(!ot.minor.dtick){delete mt.dtick;var Er=ot.dtick&&x(ot._tmin),Mr;if(Er){var br=ee.tickIncrement(ot._tmin,ot.dtick,!0);Mr=[ot._tmin,br*.99+ot._tmin*.01]}else{var Or=e.simpleMap(ot.range,ot.r2l);Mr=[Or[0],.8*Or[0]+.2*Or[1]]}if(mt.range=e.simpleMap(Mr,ot.l2r),mt._isMinor=!0,ee.prepTicks(mt,Lr),Er){var jr=x(ot.dtick),Dr=x(mt.dtick),Hr=jr?ot.dtick:+ot.dtick.substring(1),na=Dr?mt.dtick:+mt.dtick.substring(1);jr&&Dr?at(Hr,na)?Hr===2*_&&na===2*b&&(mt.dtick=_):Hr===2*_&&na===3*b?mt.dtick=_:Hr===_&&!(ot._input.minor||{}).nticks?mt.dtick=b:tt(Hr/na,2.5)?mt.dtick=Hr/2:mt.dtick=Hr:String(ot.dtick).charAt(0)==="M"?Dr?mt.dtick="M1":at(Hr,na)?Hr>=12&&na===2&&(mt.dtick="M3"):mt.dtick=ot.dtick:String(mt.dtick).charAt(0)==="L"?String(ot.dtick).charAt(0)==="L"?at(Hr,na)||(mt.dtick=tt(Hr/na,2.5)?ot.dtick/2:ot.dtick):mt.dtick="D1":mt.dtick==="D2"&&+ot.dtick>1&&(mt.dtick=1)}mt.range=ot.range}ot.minor._tick0Init===void 0&&(mt.tick0=ot.tick0)};function at(mt,ot){return Math.abs((mt/ot+.5)%1-.5)<.001}function tt(mt,ot){return Math.abs(mt/ot-1)<.001}ee.prepTicks=function(mt,ot){var Lr=e.simpleMap(mt.range,mt.r2l,void 0,void 0,ot);if(mt.tickmode==="auto"||!mt.dtick){var Er=mt.nticks,Mr;Er||(mt.type==="category"||mt.type==="multicategory"?(Mr=mt.tickfont?e.bigFont(mt.tickfont.size||12):15,Er=mt._length/Mr):(Mr=mt._id.charAt(0)==="y"?40:80,Er=e.constrain(mt._length/Mr,4,9)+1),mt._name==="radialaxis"&&(Er*=2)),mt.minor&&mt.minor.tickmode!=="array"||mt.tickmode==="array"&&(Er*=100),mt._roughDTick=Math.abs(Lr[1]-Lr[0])/Er,ee.autoTicks(mt,mt._roughDTick),mt._minDtick>0&&mt.dtick0?(br=Er-1,Or=Er):(br=Er,Or=Er);var jr=mt[br].value,Dr=mt[Or].value,Hr=Math.abs(Dr-jr),na=Lr||Hr,ta=0;na>=v?Hr>=v&&Hr<=f?ta=Hr:ta=p:Lr===l&&na>=m?Hr>=m&&Hr<=T?ta=Hr:ta=l:na>=M?Hr>=M&&Hr<=w?ta=Hr:ta=S:Lr===_&&na>=_?ta=_:na>=b?ta=b:Lr===d&&na>=d?ta=d:Lr===u&&na>=u&&(ta=u);var At;ta>=Hr&&(ta=Hr,At=!0);var or=Mr+ta;if(ot.rangebreaks&&ta>0){for(var Ar=84,oa=0,ga=0;ga_&&(ta=Hr)}(ta>0||Er===0)&&(mt[Er].periodX=Mr+ta/2)}}ee.calcTicks=function(ot,Lr){for(var Er=ot.type,Mr=ot.calendar,br=ot.ticklabelstep,Or=ot.ticklabelmode==="period",jr=ot.range[0]>ot.range[1],Dr=!ot.ticklabelindex||e.isArrayOrTypedArray(ot.ticklabelindex)?ot.ticklabelindex:[ot.ticklabelindex],Hr=e.simpleMap(ot.range,ot.r2l,void 0,void 0,Lr),na=Hr[1]=(ra?0:1);Ta--){var Fn=!Ta;Ta?(ot._dtickInit=ot.dtick,ot._tick0Init=ot.tick0):(ot.minor._dtickInit=ot.minor.dtick,ot.minor._tick0Init=ot.minor.tick0);var mn=Ta?ot:e.extendFlat({},ot,ot.minor);if(Fn?ee.prepMinorTicks(mn,ot,Lr):ee.prepTicks(mn,Lr),mn.tickmode==="array"){Ta?(ga=[],Ar=De(ot,!Fn)):(Sa=[],oa=De(ot,!Fn));continue}if(mn.tickmode==="sync"){ga=[],Ar=he(ot);continue}var Kn=fe(Hr),ui=Kn[0],pi=Kn[1],vi=x(mn.dtick),Li=Er==="log"&&!(vi||mn.dtick.charAt(0)==="L"),Ni=ee.tickFirst(mn,Lr);if(Ta){if(ot._tmin=Ni,Ni=pi:bi<=pi;bi=ee.tickIncrement(bi,gs,na,Mr)){if(Ta&&ho++,mn.rangebreaks&&!na){if(bi=At)break}if(ga.length>or||bi===ci)break;ci=bi;var ro={value:bi};Ta?(Li&&bi!==(bi|0)&&(ro.simpleLabel=!0),br>1&&ho%br&&(ro.skipLabel=!0),ga.push(ro)):(ro.minor=!0,Sa.push(ro))}}if(!Sa||Sa.length<2)Dr=!1;else{var Ei=(Sa[1].value-Sa[0].value)*(jr?-1:1);an(Ei,ot.tickformat)||(Dr=!1)}if(!Dr)za=ga;else{var Ri=ga.concat(Sa);Or&&ga.length&&(Ri=Ri.slice(1)),Ri=Ri.sort(function(Oi,Zo){return Oi.value-Zo.value}).filter(function(Oi,Zo,qs){return Zo===0||Oi.value!==qs[Zo-1].value});var xo=Ri.map(function(Oi,Zo){return Oi.minor===void 0&&!Oi.skipLabel?Zo:null}).filter(function(Oi){return Oi!==null});xo.forEach(function(Oi){Dr.map(function(Zo){var qs=Oi+Zo;qs>=0&&qs-1;kn--){if(ga[kn].drop){ga.splice(kn,1);continue}ga[kn].value=Gr(ga[kn].value,ot);var Gi=ot.c2p(ga[kn].value);(fi?Ss>Gi-Fs:SsAt||DiAt&&(qs.periodX=At),DiMr&&Atp)ot/=p,Er=Mr(10),mt.dtick="M"+12*vr(ot,Er,et);else if(br>S)ot/=S,mt.dtick="M"+vr(ot,1,nt);else if(br>b){if(mt.dtick=vr(ot,b,mt._hasDayOfWeekBreaks?[1,2,7,14]:Et),!Lr){var Or=ee.getTickFormat(mt),jr=mt.ticklabelmode==="period";jr&&(mt._rawTick0=mt.tick0),/%[uVW]/.test(Or)?mt.tick0=e.dateTick0(mt.calendar,2):mt.tick0=e.dateTick0(mt.calendar,1),jr&&(mt._dowTick0=mt.tick0)}}else br>u?mt.dtick=vr(ot,u,nt):br>g?mt.dtick=vr(ot,g,Ke):br>y?mt.dtick=vr(ot,y,Ke):(Er=Mr(10),mt.dtick=vr(ot,Er,et))}else if(mt.type==="log"){mt.tick0=0;var Dr=e.simpleMap(mt.range,mt.r2l);if(mt._isMinor&&(ot*=1.5),ot>.7)mt.dtick=Math.ceil(ot);else if(Math.abs(Dr[1]-Dr[0])<1){var Hr=1.5*Math.abs((Dr[1]-Dr[0])/ot);ot=Math.abs(Math.pow(10,Dr[1])-Math.pow(10,Dr[0]))/Hr,Er=Mr(10),mt.dtick="L"+vr(ot,Er,et)}else mt.dtick=ot>.3?"D2":"D1"}else mt.type==="category"||mt.type==="multicategory"?(mt.tick0=0,mt.dtick=Math.ceil(Math.max(ot,1))):ha(mt)?(mt.tick0=0,Er=1,mt.dtick=vr(ot,Er,Yt)):(mt.tick0=0,Er=Mr(10),mt.dtick=vr(ot,Er,et));if(mt.dtick===0&&(mt.dtick=1),!x(mt.dtick)&&typeof mt.dtick!="string"){var na=mt.dtick;throw mt.dtick=1,"ax.dtick error: "+String(na)}};function hr(mt){var ot=mt.dtick;if(mt._tickexponent=0,!x(ot)&&typeof ot!="string"&&(ot=1),(mt.type==="category"||mt.type==="multicategory")&&(mt._tickround=null),mt.type==="date"){var Lr=mt.r2l(mt.tick0),Er=mt.l2r(Lr).replace(/(^-|i)/g,""),Mr=Er.length;if(String(ot).charAt(0)==="M")Mr>10||Er.substr(5)!=="01-01"?mt._tickround="d":mt._tickround=+ot.substr(1)%12===0?"y":"m";else if(ot>=b&&Mr<=10||ot>=b*15)mt._tickround="d";else if(ot>=g&&Mr<=16||ot>=u)mt._tickround="M";else if(ot>=y&&Mr<=19||ot>=g)mt._tickround="S";else{var br=mt.l2r(Lr+ot).replace(/^-/,"").length;mt._tickround=Math.max(Mr,br)-20,mt._tickround<0&&(mt._tickround=4)}}else if(x(ot)||ot.charAt(0)==="L"){var Or=mt.range.map(mt.r2d||Number);x(ot)||(ot=Number(ot.substr(1))),mt._tickround=2-Math.floor(Math.log(ot)/Math.LN10+.01);var jr=Math.max(Math.abs(Or[0]),Math.abs(Or[1])),Dr=Math.floor(Math.log(jr)/Math.LN10+.01),Hr=mt.minexponent===void 0?3:mt.minexponent;Math.abs(Dr)>Hr&&(be(mt.exponentformat)&&!Ie(Dr)?mt._tickexponent=3*Math.round((Dr-1)/3):mt._tickexponent=Dr)}else mt._tickround=null}ee.tickIncrement=function(mt,ot,Lr,Er){var Mr=Lr?-1:1;if(x(ot))return e.increment(mt,Mr*ot);var br=ot.charAt(0),Or=Mr*Number(ot.substr(1));if(br==="M")return e.incrementMonth(mt,Or,Er);if(br==="L")return Math.log(Math.pow(10,mt)+Or)/Math.LN10;if(br==="D"){var jr=ot==="D2"?Ut:kt,Dr=mt+Mr*.01,Hr=e.roundUp(e.mod(Dr,1),jr,Lr);return Math.floor(Dr)+Math.log(h.round(Math.pow(10,Hr),1))/Math.LN10}throw"unrecognized dtick "+String(ot)},ee.tickFirst=function(mt,ot){var Lr=mt.r2l||Number,Er=e.simpleMap(mt.range,Lr,void 0,void 0,ot),Mr=Er[1]=0&&Sa<=mt._length?ga:null};if(br&&e.isArrayOrTypedArray(mt.ticktext)){var ta=e.simpleMap(mt.range,mt.r2l),At=(Math.abs(ta[1]-ta[0])-(mt._lBreaks||0))/1e4;for(Hr=0;Hr"+jr;else{var Hr=wa(mt),na=mt._trueSide||mt.side;(!Hr&&na==="top"||Hr&&na==="bottom")&&(Or+="
")}ot.text=Or}function wr(mt,ot,Lr,Er,Mr){var br=mt.dtick,Or=ot.x,jr=mt.tickformat,Dr=typeof br=="string"&&br.charAt(0);if(Mr==="never"&&(Mr=""),Er&&Dr!=="L"&&(br="L3",Dr="L"),jr||Dr==="L")ot.text=Xe(Math.pow(10,Or),mt,Mr,Er);else if(x(br)||Dr==="D"&&(mt.minorloglabels==="complete"||e.mod(Or+.01,1)<.1)){mt.minorloglabels==="complete"&&!(e.mod(Or+.01,1)<.1)&&(ot.fontSize*=.75);var Hr=Math.pow(10,Or).toExponential(0),na=Hr.split("e"),ta=+na[1],At=Math.abs(ta),or=mt.exponentformat;or==="power"||be(or)&&Ie(ta)?(ot.text=na[0],At>0&&(ot.text+="x10"),ot.text==="1x10"&&(ot.text="10"),ta!==0&&ta!==1&&(ot.text+=""+(ta>0?"":z)+At+""),ot.fontSize*=1.25):(or==="e"||or==="E")&&At>2?ot.text=na[0]+or+(ta>0?"+":z)+At:(ot.text=Xe(Math.pow(10,Or),mt,"","fakehover"),br==="D1"&&mt._id.charAt(0)==="y"&&(ot.dy-=ot.fontSize/6))}else if(Dr==="D")ot.text=mt.minorloglabels==="none"?"":String(Math.round(Math.pow(10,e.mod(Or,1)))),ot.fontSize*=.75;else throw"unrecognized dtick "+String(br);if(mt.dtick==="D1"){var Ar=String(ot.text).charAt(0);(Ar==="0"||Ar==="1")&&(mt._id.charAt(0)==="y"?ot.dx-=ot.fontSize/4:(ot.dy+=ot.fontSize/2,ot.dx+=(mt.range[1]>mt.range[0]?1:-1)*ot.fontSize*(Or<0?.5:.25)))}}function yt(mt,ot){var Lr=mt._categories[Math.round(ot.x)];Lr===void 0&&(Lr=""),ot.text=String(Lr)}function Fe(mt,ot,Lr){var Er=Math.round(ot.x),Mr=mt._categories[Er]||[],br=Mr[1]===void 0?"":String(Mr[1]),Or=Mr[0]===void 0?"":String(Mr[0]);Lr?ot.text=Or+" - "+br:(ot.text=br,ot.text2=Or)}function We(mt,ot,Lr,Er,Mr){Mr==="never"?Mr="":mt.showexponent==="all"&&Math.abs(ot.x/mt.dtick)<1e-6&&(Mr="hide"),ot.text=Xe(ot.x,mt,Mr,Er)}function Oe(mt,ot,Lr,Er,Mr){if(mt.thetaunit==="radians"&&!Lr){var br=ot.x/180;if(br===0)ot.text="0";else{var Or=de(br);if(Or[1]>=100)ot.text=Xe(e.deg2rad(ot.x),mt,Mr,Er);else{var jr=ot.x<0;Or[1]===1?Or[0]===1?ot.text="π":ot.text=Or[0]+"π":ot.text=["",Or[0],"","⁄","",Or[1],"","π"].join(""),jr&&(ot.text=z+ot.text)}}}else ot.text=Xe(ot.x,mt,Mr,Er)}function de(mt){function ot(jr,Dr){return Math.abs(jr-Dr)<=1e-6}function Lr(jr,Dr){return ot(Dr,0)?jr:Lr(Dr,jr%Dr)}function Er(jr){for(var Dr=1;!ot(Math.round(jr*Dr)/Dr,jr);)Dr*=10;return Dr}var Mr=Er(mt),br=mt*Mr,Or=Math.abs(Lr(br,Mr));return[Math.round(br/Or),Math.round(Mr/Or)]}var me=["f","p","n","μ","m","","k","M","G","T"];function be(mt){return mt==="SI"||mt==="B"}function Ie(mt){return mt>14||mt<-15}function Xe(mt,ot,Lr,Er){var Mr=mt<0,br=ot._tickround,Or=Lr||ot.exponentformat||"B",jr=ot._tickexponent,Dr=ee.getTickFormat(ot),Hr=ot.separatethousands;if(Er){var na={exponentformat:Or,minexponent:ot.minexponent,dtick:ot.showexponent==="none"?ot.dtick:x(mt)&&Math.abs(mt)||1,range:ot.showexponent==="none"?ot.range.map(ot.r2d):[0,mt||1]};hr(na),br=(Number(na._tickround)||0)+4,jr=na._tickexponent,ot.hoverformat&&(Dr=ot.hoverformat)}if(Dr)return ot._numFormat(Dr)(mt).replace(/-/g,z);var ta=Math.pow(10,-br)/2;if(Or==="none"&&(jr=0),mt=Math.abs(mt),mt"+Ar+"":Or==="B"&&jr===9?mt+="B":be(Or)&&(mt+=me[jr/3+5])}return Mr?z+mt:mt}ee.getTickFormat=function(mt){var ot;function Lr(Dr){return typeof Dr!="string"?Dr:Number(Dr.replace("M",""))*S}function Er(Dr,Hr){var na=["L","D"];if(typeof Dr==typeof Hr){if(typeof Dr=="number")return Dr-Hr;var ta=na.indexOf(Dr.charAt(0)),At=na.indexOf(Hr.charAt(0));return ta===At?Number(Dr.replace(/(L|D)/g,""))-Number(Hr.replace(/(L|D)/g,"")):ta-At}else return typeof Dr=="number"?1:-1}function Mr(Dr,Hr,na){var ta=na||function(Ar){return Ar},At=Hr[0],or=Hr[1];return(!At&&typeof At!="number"||ta(At)<=ta(Dr))&&(!or&&typeof or!="number"||ta(or)>=ta(Dr))}function br(Dr,Hr){var na=Hr[0]===null,ta=Hr[1]===null,At=Er(Dr,Hr[0])>=0,or=Er(Dr,Hr[1])<=0;return(na||At)&&(ta||or)}var Or,jr;if(mt.tickformatstops&&mt.tickformatstops.length>0)switch(mt.type){case"date":case"linear":{for(ot=0;ot=0&&Mr.unshift(Mr.splice(na,1).shift())}});var jr={false:{left:0,right:0}};return e.syncOrAsync(Mr.map(function(Dr){return function(){if(Dr){var Hr=ee.getFromId(mt,Dr);Lr||(Lr={}),Lr.axShifts=jr,Lr.overlayingShiftedAx=Or;var na=ee.drawOne(mt,Hr,Lr);return Hr._shiftPusher&&Ya(Hr,Hr._fullDepth||0,jr,!0),Hr._r=Hr.range.slice(),Hr._rl=e.simpleMap(Hr._r,Hr.r2l),na}}}))},ee.drawOne=function(mt,ot,Lr){Lr=Lr||{};var Er=Lr.axShifts||{},Mr=Lr.overlayingShiftedAx||[],br,Or,jr;ot.setScale();var Dr=mt._fullLayout,Hr=ot._id,na=Hr.charAt(0),ta=ee.counterLetter(Hr),At=Dr._plots[ot._mainSubplot],or=ot.zerolinelayer==="above traces";if(!At)return;if(ot._shiftPusher=ot.autoshift||Mr.indexOf(ot._id)!==-1||Mr.indexOf(ot.overlaying)!==-1,ot._shiftPusher&ot.anchor==="free"){var Ar=ot.linewidth/2||0;ot.ticks==="inside"&&(Ar+=ot.ticklen),Ya(ot,Ar,Er,!0),Ya(ot,ot.shift||0,Er,!1)}(Lr.skipTitle!==!0||ot._shift===void 0)&&(ot._shift=Ka(ot,Er));var oa=At[na+"axislayer"],ga=ot._mainLinePosition,Sa=ga+=ot._shift,za=ot._mainMirrorPosition,ra=ot._vals=ee.calcTicks(ot),Ta=[ot.mirror,Sa,za].join("_");for(br=0;br0?Di.bottom-Zo:0,qs))));var Vl=0,rl=0;if(ot._shiftPusher&&(Vl=Math.max(qs,Di.height>0?so==="l"?Zo-Di.left:Di.right-Zo:0),ot.title.text!==Dr._dfltTitle[na]&&(rl=(ot._titleStandoff||0)+(ot._titleScoot||0),so==="l"&&(rl+=Ia(ot))),ot._fullDepth=Math.max(Vl,rl)),ot.automargin){ys={x:0,y:0,r:0,l:0,t:0,b:0};var Cs=[0,1],ql=typeof ot._shift=="number"?ot._shift:0;if(na==="x"){if(so==="b"?ys[so]=ot._depth:(ys[so]=ot._depth=Math.max(Di.width>0?Zo-Di.top:0,qs),Cs.reverse()),Di.width>0){var ju=Di.right-(ot._offset+ot._length);ju>0&&(ys.xr=1,ys.r=ju);var Vu=ot._offset-Di.left;Vu>0&&(ys.xl=0,ys.l=Vu)}}else if(so==="l"?(ot._depth=Math.max(Di.height>0?Zo-Di.left:0,qs),ys[so]=ot._depth-ql):(ot._depth=Math.max(Di.height>0?Di.right-Zo:0,qs),ys[so]=ot._depth+ql,Cs.reverse()),Di.height>0){var yu=Di.bottom-(ot._offset+ot._length);yu>0&&(ys.yb=0,ys.b=yu);var jc=ot._offset-Di.top;jc>0&&(ys.yt=1,ys.t=jc)}ys[ta]=ot.anchor==="free"?ot.position:ot._anchorAxis.domain[Cs[0]],ot.title.text!==Dr._dfltTitle[na]&&(ys[so]+=Ia(ot)+(ot.title.standoff||0)),ot.mirror&&ot.anchor!=="free"&&(wl={x:0,y:0,r:0,l:0,t:0,b:0},wl[Oi]=ot.linewidth,ot.mirror&&ot.mirror!==!0&&(wl[Oi]+=qs),ot.mirror===!0||ot.mirror==="ticks"?wl[ta]=ot._anchorAxis.domain[Cs[1]]:(ot.mirror==="all"||ot.mirror==="allticks")&&(wl[ta]=[ot._counterDomainMin,ot._counterDomainMax][Cs[1]]))}hi&&(Xs=E.getComponentMethod("rangeslider","autoMarginOpts")(mt,ot)),typeof ot.automargin=="string"&&(ht(ys,ot.automargin),ht(wl,ot.automargin)),A.autoMargin(mt,yn(ot),ys),A.autoMargin(mt,Kt(ot),wl),A.autoMargin(mt,zt(ot),Xs)}),e.syncOrAsync(es)}};function ht(mt,ot){if(mt){var Lr=Object.keys(X).reduce(function(Er,Mr){return ot.indexOf(Mr)!==-1&&X[Mr].forEach(function(br){Er[br]=1}),Er},{});Object.keys(mt).forEach(function(Er){Lr[Er]||(Er.length===1?mt[Er]=0:delete mt[Er])})}}function bt(mt,ot){var Lr=[],Er,Mr=function(br,Or){var jr=br.xbnd[Or];jr!==null&&Lr.push(e.extendFlat({},br,{x:jr}))};if(ot.length){for(Er=0;Ermt.range[1],jr=mt.ticklabelposition&&mt.ticklabelposition.indexOf("inside")!==-1,Dr=!jr;if(Lr){var Hr=Or?-1:1;Lr=Lr*Hr}if(Er){var na=mt.side,ta=jr&&(na==="top"||na==="left")||Dr&&(na==="bottom"||na==="right")?1:-1;Er=Er*ta}return mt._id.charAt(0)==="x"?function(At){return t(Mr+mt._offset+mt.l2p(rr(At))+Lr,br+Er)}:function(At){return t(br+Er,Mr+mt._offset+mt.l2p(rr(At))+Lr)}};function rr(mt){return mt.periodX!==void 0?mt.periodX:mt.x}function Jt(mt){var ot=mt.ticklabelposition||"",Lr=mt.tickson||"",Er=function(Ar){return ot.indexOf(Ar)!==-1},Mr=Er("top"),br=Er("left"),Or=Er("right"),jr=Er("bottom"),Dr=Er("inside"),Hr=Lr!=="boundaries"&&(jr||br||Mr||Or);if(!Hr&&!Dr)return[0,0];var na=mt.side,ta=Hr?(mt.tickwidth||0)/2:0,At=J,or=mt.tickfont?mt.tickfont.size:12;return(jr||Mr)&&(ta+=or*ie,At+=(mt.linewidth||0)/2),(br||Or)&&(ta+=(mt.linewidth||0)/2,At+=J),Dr&&na==="top"&&(At-=or*(1-ie)),(br||Mr)&&(ta=-ta),(na==="bottom"||na==="right")&&(At=-At),[Hr?ta:0,Dr?At:0]}ee.makeTickPath=function(mt,ot,Lr,Er){Er||(Er={});var Mr=Er.minor;if(Mr&&!mt.minor)return"";var br=Er.len!==void 0?Er.len:Mr?mt.minor.ticklen:mt.ticklen,Or=mt._id.charAt(0),jr=(mt.linewidth||1)/2;return Or==="x"?"M0,"+(ot+jr*Lr)+"v"+br*Lr:"M"+(ot+jr*Lr)+",0h"+br*Lr},ee.makeLabelFns=function(mt,ot,Lr){var Er=mt.ticklabelposition||"",Mr=mt.tickson||"",br=function(ci){return Er.indexOf(ci)!==-1},Or=br("top"),jr=br("left"),Dr=br("right"),Hr=br("bottom"),na=Mr!=="boundaries"&&(Hr||jr||Or||Dr),ta=br("inside"),At=Er==="inside"&&mt.ticks==="inside"||!ta&&mt.ticks==="outside"&&Mr!=="boundaries",or=0,Ar=0,oa=At?mt.ticklen:0;if(ta?oa*=-1:na&&(oa=0),At&&(or+=oa,Lr)){var ga=e.deg2rad(Lr);or=oa*Math.cos(ga)+1,Ar=oa*Math.sin(ga)}mt.showticklabels&&(At||mt.showline)&&(or+=.2*mt.tickfont.size),or+=(mt.linewidth||1)/2*(ta?-1:1);var Sa={labelStandoff:or,labelShift:Ar},za,ra,Ta,Fn,mn=0,Kn=mt.side,ui=mt._id.charAt(0),pi=mt.tickangle,vi;if(ui==="x")vi=!ta&&Kn==="bottom"||ta&&Kn==="top",Fn=vi?1:-1,ta&&(Fn*=-1),za=Ar*Fn,ra=ot+or*Fn,Ta=vi?1:-.2,Math.abs(pi)===90&&(ta?Ta+=ue:pi===-90&&Kn==="bottom"?Ta=ie:pi===90&&Kn==="top"?Ta=ue:Ta=.5,mn=ue/2*(pi/90)),Sa.xFn=function(ci){return ci.dx+za+mn*ci.fontSize},Sa.yFn=function(ci){return ci.dy+ra+ci.fontSize*Ta},Sa.anchorFn=function(ci,bi){if(na){if(jr)return"end";if(Dr)return"start"}return!x(bi)||bi===0||bi===180?"middle":bi*Fn<0!==ta?"end":"start"},Sa.heightFn=function(ci,bi,ho){return bi<-60||bi>60?-.5*ho:mt.side==="top"!==ta?-ho:0};else if(ui==="y"){if(vi=!ta&&Kn==="left"||ta&&Kn==="right",Fn=vi?1:-1,ta&&(Fn*=-1),za=or,ra=Ar*Fn,Ta=0,!ta&&Math.abs(pi)===90&&(pi===-90&&Kn==="left"||pi===90&&Kn==="right"?Ta=ie:Ta=.5),ta){var Li=x(pi)?+pi:0;if(Li!==0){var Ni=e.deg2rad(Li);mn=Math.abs(Math.sin(Ni))*ie*Fn,Ta=0}}Sa.xFn=function(ci){return ci.dx+ot-(za+ci.fontSize*Ta)*Fn+mn*ci.fontSize},Sa.yFn=function(ci){return ci.dy+ra+ci.fontSize*ue},Sa.anchorFn=function(ci,bi){return x(bi)&&Math.abs(bi)===90?"middle":vi?"end":"start"},Sa.heightFn=function(ci,bi,ho){return mt.side==="right"&&(bi*=-1),bi<-30?-ho:bi<30?-.5*ho:0}}return Sa};function mr(mt){return[mt.text,mt.x,mt.axInfo,mt.font,mt.fontSize,mt.fontColor].join("_")}ee.drawTicks=function(mt,ot,Lr){Lr=Lr||{};var Er=ot._id+"tick",Mr=[].concat(ot.minor&&ot.minor.ticks?Lr.vals.filter(function(Or){return Or.minor&&!Or.noTick}):[]).concat(ot.ticks?Lr.vals.filter(function(Or){return!Or.minor&&!Or.noTick}):[]),br=Lr.layer.selectAll("path."+Er).data(Mr,mr);br.exit().remove(),br.enter().append("path").classed(Er,1).classed("ticks",1).classed("crisp",Lr.crisp!==!1).each(function(Or){return a.stroke(h.select(this),Or.minor?ot.minor.tickcolor:ot.tickcolor)}).style("stroke-width",function(Or){return o.crispRound(mt,Or.minor?ot.minor.tickwidth:ot.tickwidth,1)+"px"}).attr("d",Lr.path).style("display",null),Da(ot,[N]),br.attr("transform",Lr.transFn)},ee.drawGrid=function(mt,ot,Lr){if(Lr=Lr||{},ot.tickmode!=="sync"){var Er=ot._id+"grid",Mr=ot.minor&&ot.minor.showgrid,br=Mr?Lr.vals.filter(function(Sa){return Sa.minor}):[],Or=ot.showgrid?Lr.vals.filter(function(Sa){return!Sa.minor}):[],jr=Lr.counterAxis;if(jr&&ee.shouldShowZeroLine(mt,ot,jr))for(var Dr=ot.tickmode==="array",Hr=0;Hr=0;Ar--){var oa=Ar?At:or;if(oa){var ga=oa.selectAll("path."+Er).data(Ar?Or:br,mr);ga.exit().remove(),ga.enter().append("path").classed(Er,1).classed("crisp",Lr.crisp!==!1),ga.attr("transform",Lr.transFn).attr("d",Lr.path).each(function(Sa){return a.stroke(h.select(this),Sa.minor?ot.minor.gridcolor:ot.gridcolor||"#ddd")}).style("stroke-dasharray",function(Sa){return o.dashStyle(Sa.minor?ot.minor.griddash:ot.griddash,Sa.minor?ot.minor.gridwidth:ot.gridwidth)}).style("stroke-width",function(Sa){return(Sa.minor?ta:ot._gw)+"px"}).style("display",null),typeof Lr.path=="function"&&ga.attr("d",Lr.path)}}Da(ot,[O,P])}},ee.drawZeroLine=function(mt,ot,Lr){Lr=Lr||Lr;var Er=ot._id+"zl",Mr=ee.shouldShowZeroLine(mt,ot,Lr.counterAxis),br=Lr.layer.selectAll("path."+Er).data(Mr?[{x:0,id:ot._id}]:[]);br.exit().remove(),br.enter().append("path").classed(Er,1).classed("zl",1).classed("crisp",Lr.crisp!==!1).each(function(){Lr.layer.selectAll("path").sort(function(Or,jr){return Q(Or.id,jr.id)})}),br.attr("transform",Lr.transFn).attr("d",Lr.path).call(a.stroke,ot.zerolinecolor||a.defaultLine).style("stroke-width",o.crispRound(mt,ot.zerolinewidth,ot._gw||1)+"px").style("display",null),Da(ot,[B])},ee.drawLabels=function(mt,ot,Lr){Lr=Lr||{};var Er=mt._fullLayout,Mr=ot._id,br=ot.zerolinelayer==="above traces",Or=Lr.cls||Mr+"tick",jr=Lr.vals.filter(function(Ei){return Ei.text}),Dr=Lr.labelFns,Hr=Lr.secondary?0:ot.tickangle,na=(ot._prevTickAngles||{})[Or],ta=Lr.layer.selectAll("g."+Or).data(ot.showticklabels?jr:[],mr),At=[];ta.enter().append("g").classed(Or,1).append("text").attr("text-anchor","middle").each(function(Ei){var Ri=h.select(this),xo=mt._promises.length;Ri.call(r.positionText,Dr.xFn(Ei),Dr.yFn(Ei)).call(o.font,{family:Ei.font,size:Ei.fontSize,color:Ei.fontColor,weight:Ei.fontWeight,style:Ei.fontStyle,variant:Ei.fontVariant,textcase:Ei.fontTextcase,lineposition:Ei.fontLineposition,shadow:Ei.fontShadow}).text(Ei.text).call(r.convertToTspans,mt),mt._promises[xo]?At.push(mt._promises.pop().then(function(){or(Ri,Hr)})):or(Ri,Hr)}),Da(ot,[U]),ta.exit().remove(),Lr.repositionOnUpdate&&ta.each(function(Ei){h.select(this).select("text").call(r.positionText,Dr.xFn(Ei),Dr.yFn(Ei))});function or(Ei,Ri){Ei.each(function(xo){var So=h.select(this),bo=So.select(".text-math-group"),Ui=Dr.anchorFn(xo,Ri),no=Lr.transFn.call(So.node(),xo)+(x(Ri)&&+Ri!=0?" rotate("+Ri+","+Dr.xFn(xo)+","+(Dr.yFn(xo)-xo.fontSize/2)+")":""),cs=r.lineCount(So),ks=le*xo.fontSize,ms=Dr.heightFn(xo,x(Ri)?+Ri:0,(cs-1)*ks);if(ms&&(no+=t(0,ms)),bo.empty()){var Mo=So.select("text");Mo.attr({transform:no,"text-anchor":Ui}),Mo.style("display",null),ot._adjustTickLabelsOverflow&&ot._adjustTickLabelsOverflow()}else{var kn=o.bBox(bo.node()).width,fi=kn*{end:-.5,start:.5}[Ui];bo.attr("transform",no+t(fi,0))}})}ot._adjustTickLabelsOverflow=function(){var Ei=ot.ticklabeloverflow;if(!(!Ei||Ei==="allow")){var Ri=Ei.indexOf("hide")!==-1,xo=ot._id.charAt(0)==="x",So=0,bo=xo?mt._fullLayout.width:mt._fullLayout.height;if(Ei.indexOf("domain")!==-1){var Ui=e.simpleMap(ot.range,ot.r2l);So=ot.l2p(Ui[0])+ot._offset,bo=ot.l2p(Ui[1])+ot._offset}var no=Math.min(So,bo),cs=Math.max(So,bo),ks=ot.side,ms=1/0,Mo=-1/0;ta.each(function(Ss){var Gi=h.select(this),js=Gi.select(".text-math-group");if(js.empty()){var No=o.bBox(Gi.node()),es=0;xo?(No.right>cs||No.leftcs||No.top+(ot.tickangle?0:Ss.fontSize/4)ot["_visibleLabelMin_"+Ui._id]?Gi.style("display","none"):cs.K==="tick"&&!no&&Gi.node().style.display!=="none"&&Gi.style("display",null)})})})})},or(ta,na+1?na:Hr);function Ar(){return At.length&&Promise.all(At)}var oa=null;function ga(){if(or(ta,Hr),jr.length&&ot.autotickangles&&(ot.type!=="log"||String(ot.dtick).charAt(0)!=="D")){oa=ot.autotickangles[0];var Ei=0,Ri=[],xo,So=1;ta.each(function(ys){Ei=Math.max(Ei,ys.fontSize);var wl=ot.l2p(ys.x),Xs=Xa(this),Vl=o.bBox(Xs.node());So=Math.max(So,r.lineCount(Xs)),Ri.push({top:0,bottom:10,height:10,left:wl-Vl.width/2,right:wl+Vl.width/2+2,width:Vl.width+2})});var bo=(ot.tickson==="boundaries"||ot.showdividers)&&!Lr.secondary,Ui=jr.length,no=Math.abs((jr[Ui-1].x-jr[0].x)*ot._m)/(Ui-1),cs=bo?no/2:no,ks=bo?ot.ticklen:Ei*1.25*So,ms=Math.sqrt(Math.pow(cs,2)+Math.pow(ks,2)),Mo=cs/ms,kn=ot.autotickangles.map(function(ys){return ys*Math.PI/180}),fi=kn.find(function(ys){return Math.abs(Math.cos(ys))<=Mo});fi===void 0&&(fi=kn.reduce(function(ys,wl){return Math.abs(Math.cos(ys))Bo*ho&&(Ni=ho,pi[ui]=vi[ui]=ci[ui])}var gs=Math.abs(Ni-Li);gs-Fn>0?(gs-=Fn,Fn*=1+Fn/gs):Fn=0,ot._id.charAt(0)!=="y"&&(Fn=-Fn),pi[Kn]=ra.p2r(ra.r2p(vi[Kn])+mn*Fn),ra.autorange==="min"||ra.autorange==="max reversed"?(pi[0]=null,ra._rangeInitial0=void 0,ra._rangeInitial1=void 0):(ra.autorange==="max"||ra.autorange==="min reversed")&&(pi[1]=null,ra._rangeInitial0=void 0,ra._rangeInitial1=void 0),Er._insideTickLabelsUpdaterange[ra._name+".range"]=pi}var ro=e.syncOrAsync(Sa);return ro&&ro.then&&mt._promises.push(ro),ro};function ia(mt,ot,Lr){var Er=ot._id+"divider",Mr=Lr.vals,br=Lr.layer.selectAll("path."+Er).data(Mr,mr);br.exit().remove(),br.enter().insert("path",":first-child").classed(Er,1).classed("crisp",1).call(a.stroke,ot.dividercolor).style("stroke-width",o.crispRound(mt,ot.dividerwidth,1)+"px"),br.attr("transform",Lr.transFn).attr("d",Lr.path)}ee.getPxPosition=function(mt,ot){var Lr=mt._fullLayout._size,Er=ot._id.charAt(0),Mr=ot.side,br;if(ot.anchor!=="free"?br=ot._anchorAxis:Er==="x"?br={_offset:Lr.t+(1-(ot.position||0))*Lr.h,_length:0}:Er==="y"&&(br={_offset:Lr.l+(ot.position||0)*Lr.w+ot._shift,_length:0}),Mr==="top"||Mr==="left")return br._offset;if(Mr==="bottom"||Mr==="right")return br._offset+br._length};function Ia(mt){var ot=mt.title.font.size,Lr=(mt.title.text.match(r.BR_TAG_ALL)||[]).length;return mt.title.hasOwnProperty("standoff")?ot*(ie+Lr*le):Lr?ot*(Lr+1)*le:ot}function La(mt,ot){var Lr=mt._fullLayout,Er=ot._id,Mr=Er.charAt(0),br=ot.title.font.size,Or,jr=(ot.title.text.match(r.BR_TAG_ALL)||[]).length;if(ot.title.hasOwnProperty("standoff"))ot.side==="bottom"||ot.side==="right"?Or=ot._depth+ot.title.standoff+br*ie:(ot.side==="top"||ot.side==="left")&&(Or=ot._depth+ot.title.standoff+br*(ue+jr*le));else{var Dr=wa(ot);if(ot.type==="multicategory")Or=ot._depth;else{var Hr=1.5*br;Dr&&(Hr=.5*br,ot.ticks==="outside"&&(Hr+=ot.ticklen)),Or=10+Hr+(ot.linewidth?ot.linewidth-1:0)}Dr||(Mr==="x"?Or+=ot.side==="top"?br*(ot.showticklabels?1:0):br*(ot.showticklabels?1.5:.5):Or+=ot.side==="right"?br*(ot.showticklabels?1:.5):br*(ot.showticklabels?.5:0))}var na=ee.getPxPosition(mt,ot),ta,At,or;Mr==="x"?(At=ot._offset+ot._length/2,or=ot.side==="top"?na-Or:na+Or):(or=ot._offset+ot._length/2,At=ot.side==="right"?na+Or:na-Or,ta={rotate:"-90",offset:0});var Ar;if(ot.type!=="multicategory"){var oa=ot._selections[ot._id+"tick"];if(Ar={selection:oa,side:ot.side},oa&&oa.node()&&oa.node().parentNode){var ga=o.getTranslate(oa.node().parentNode);Ar.offsetLeft=ga.x,Ar.offsetTop=ga.y}ot.title.hasOwnProperty("standoff")&&(Ar.pad=0)}return ot._titleStandoff=Or,i.draw(mt,Er+"title",{propContainer:ot,propName:ot._name+".title.text",placeholder:Lr._dfltTitle[Mr],avoid:Ar,transform:ta,attributes:{x:At,y:or,"text-anchor":"middle"}})}ee.shouldShowZeroLine=function(mt,ot,Lr){var Er=e.simpleMap(ot.range,ot.r2l);return Er[0]*Er[1]<=0&&ot.zeroline&&(ot.type==="linear"||ot.type==="-")&&!(ot.rangebreaks&&ot.maskBreaks(0)===F)&&(Aa(ot,0)||!Ga(mt,ot,Lr,Er)||ba(mt,ot))},ee.clipEnds=function(mt,ot){return ot.filter(function(Lr){return Aa(mt,Lr.x)})};function Aa(mt,ot){var Lr=mt.l2p(ot);return Lr>1&&Lr1)for(Mr=1;Mr=Mr.min&&mt=I:/%L/.test(ot)?mt>=R:/%[SX]/.test(ot)?mt>=y:/%M/.test(ot)?mt>=g:/%[HI]/.test(ot)?mt>=u:/%p/.test(ot)?mt>=d:/%[Aadejuwx]/.test(ot)?mt>=b:/%[UVW]/.test(ot)?mt>=_:/%[Bbm]/.test(ot)?mt>=M:/%[q]/.test(ot)?mt>=m:/%[Yy]/.test(ot)?mt>=v:!0}}}),Ob=He({"src/plots/cartesian/autorange_options_defaults.js"(Y,H){H.exports=function(x,A,E){var e,t;if(E){var r=A==="reversed"||A==="min reversed"||A==="max reversed";e=E[r?1:0],t=E[r?0:1]}var i=x("autorangeoptions.minallowed",t===null?e:void 0),a=x("autorangeoptions.maxallowed",e===null?t:void 0);i===void 0&&x("autorangeoptions.clipmin"),a===void 0&&x("autorangeoptions.clipmax"),x("autorangeoptions.include")}}}),Bb=He({"src/plots/cartesian/range_defaults.js"(Y,H){var h=Ob();H.exports=function(A,E,e,t){var r=E._template||{},i=E.type||r.type||"-";e("minallowed"),e("maxallowed");var a=e("range");if(!a){var o;!t.noInsiderange&&i!=="log"&&(o=e("insiderange"),o&&(o[0]===null||o[1]===null)&&(E.insiderange=!1,o=void 0),o&&(a=e("range",o)))}var n=E.getAutorangeDflt(a,t),s=e("autorange",n),c;a&&(a[0]===null&&a[1]===null||(a[0]===null||a[1]===null)&&(s==="reversed"||s===!0)||a[0]!==null&&(s==="min"||s==="max reversed")||a[1]!==null&&(s==="max"||s==="min reversed"))&&(a=void 0,delete E.range,E.autorange=!0,c=!0),c||(n=E.getAutorangeDflt(a,t),s=e("autorange",n)),s&&(h(e,s,a),(i==="linear"||i==="-")&&e("rangemode")),E.cleanRange()}}}),TM=He({"node_modules/mouse-event-offset/index.js"(Y,H){var h={left:0,top:0};H.exports=x;function x(E,e,t){e=e||E.currentTarget||E.srcElement,Array.isArray(t)||(t=[0,0]);var r=E.clientX||0,i=E.clientY||0,a=A(e);return t[0]=r-a.left,t[1]=i-a.top,t}function A(E){return E===window||E===document||E===document.body?h:E.getBoundingClientRect()}}}),u1=He({"node_modules/has-passive-events/index.js"(Y,H){var h=Cb();function x(){var A=!1;try{var E=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",null,E),window.removeEventListener("test",null,E)}catch{A=!1}return A}H.exports=h&&x()}}),AM=He({"src/components/dragelement/align.js"(Y,H){H.exports=function(x,A,E,e,t){var r=(x-E)/(e-E),i=r+A/(e-E),a=(r+i)/2;return t==="left"||t==="bottom"?r:t==="center"||t==="middle"?a:t==="right"||t==="top"?i:r<2/3-a?r:i>4/3-a?i:a}}}),SM=He({"src/components/dragelement/cursor.js"(Y,H){var h=Qr(),x=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];H.exports=function(E,e,t,r){return t==="left"?E=0:t==="center"?E=1:t==="right"?E=2:E=h.constrain(Math.floor(E*3),0,2),r==="bottom"?e=0:r==="middle"?e=1:r==="top"?e=2:e=h.constrain(Math.floor(e*3),0,2),x[e][E]}}}),MM=He({"src/components/dragelement/unhover.js"(Y,H){var h=O0(),x=o1(),A=$g().getGraphDiv,E=Yg(),e=H.exports={};e.wrapped=function(t,r,i){t=A(t),t._fullLayout&&x.clear(t._fullLayout._uid+E.HOVERID),e.raw(t,r,i)},e.raw=function(r,i){var a=r._fullLayout,o=r._hoverdata;i||(i={}),!(i.target&&!r._dragged&&h.triggerHandler(r,"plotly_beforehover",i)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,i.target&&o&&r.emit("plotly_unhover",{event:i,points:o}))}}}),ph=He({"src/components/dragelement/index.js"(Y,H){var h=TM(),x=Lb(),A=u1(),E=Qr().removeElement,e=jf(),t=H.exports={};t.align=AM(),t.getCursor=SM();var r=MM();t.unhover=r.wrapped,t.unhoverRaw=r.raw,t.init=function(n){var s=n.gd,c=1,f=s._context.doubleClickDelay,p=n.element,v,T,l,m,w,S,M,_;s._mouseDownTime||(s._mouseDownTime=0),p.style.pointerEvents="all",p.onmousedown=u,A?(p._ontouchstart&&p.removeEventListener("touchstart",p._ontouchstart),p._ontouchstart=u,p.addEventListener("touchstart",u,{passive:!1})):p.ontouchstart=u;function b(R,I,z){return Math.abs(R)"u"&&typeof R.clientY>"u"&&(R.clientX=v,R.clientY=T),l=new Date().getTime(),l-s._mouseDownTimef&&(c=Math.max(c-1,1)),s._dragged)n.doneFn&&n.doneFn();else{var I;S.target===M?I=S:(I={target:M,srcElement:M,toElement:M},Object.keys(S).concat(Object.keys(S.__proto__)).forEach(z=>{var F=S[z];!I[z]&&typeof F!="function"&&(I[z]=F)})),n.clickFn&&n.clickFn(c,I),_||M.dispatchEvent(new MouseEvent("click",R))}s._dragging=!1,s._dragged=!1}};function i(){var o=document.createElement("div");o.className="dragcover";var n=o.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(o),o}t.coverSlip=i;function a(o){return h(o.changedTouches?o.changedTouches[0]:o,document.body)}}}),mv=He({"src/lib/setcursor.js"(Y,H){H.exports=function(x,A){(x.attr("class")||"").split(" ").forEach(function(E){E.indexOf("cursor-")===0&&x.classed(E,!1)}),A&&x.classed("cursor-"+A,!0)}}}),EM=He({"src/lib/override_cursor.js"(Y,H){var h=mv(),x="data-savedcursor",A="!!";H.exports=function(e,t){var r=e.attr(x);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),a=0;a(a==="legend"?1:0));if(R===!1&&(n[a]=void 0),!(R===!1&&!c.uirevision)&&(p("uirevision",n.uirevision),R!==!1)){p("borderwidth");var I=p("orientation"),z=p("yref"),F=p("xref"),B=I==="h",O=z==="paper",P=F==="paper",N,U,X,te="left";B?(N=0,h.getComponentMethod("rangeslider","isVisible")(o.xaxis)?O?(U=1.1,X="bottom"):(U=1,X="top"):O?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",P?N=1.02:(N=1,te="right")),x.coerce(c,f,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:N}},"x"),x.coerce(c,f,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:U}},"y"),p("traceorder",b),r.isGrouped(n[a])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("indentation"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",te),p("yanchor",X),p("maxheight"),p("valign"),x.noneOrAll(c,f,["x","y"]);var ue=p("title.text");if(ue){p("title.side",B?"left":"top");var ie=x.extendFlat({},v,{size:x.bigFont(v.size)});x.coerceFont(p,"title.font",ie)}}}}H.exports=function(o,n,s){var c,f=s.slice(),p=n.shapes;if(p)for(c=0;cR&&(y=R)}u[v][0]._groupMinRank=y,u[v][0]._preGroupSort=v}var I=function(N,U){return N[0]._groupMinRank-U[0]._groupMinRank||N[0]._preGroupSort-U[0]._preGroupSort},z=function(N,U){return N.trace.legendrank-U.trace.legendrank||N._preSort-U._preSort};for(u.forEach(function(N,U){N[0]._preGroupSort=U}),u.sort(I),v=0;v0)se=J.width;else return 0;return d?Z:Math.min(se,ee)};S.each(function(q){var J=h.select(this),ee=A.ensureSingle(J,"g","layers");ee.style("opacity",q[0].trace.opacity);var Z=_.indentation,se=_.valign,Q=q[0].lineHeight,V=q[0].height;if(se==="middle"&&Z===0||!Q||!V)ee.attr("transform",null);else{var re={top:1,bottom:-1}[se],ae=re*(.5*(Q-V+3))||0,fe=_.indentation;ee.attr("transform",E(fe,ae))}var xe=ee.selectAll("g.legendfill").data([q]);xe.enter().append("g").classed("legendfill",!0);var Ae=ee.selectAll("g.legendlines").data([q]);Ae.enter().append("g").classed("legendlines",!0);var Pe=ee.selectAll("g.legendsymbols").data([q]);Pe.enter().append("g").classed("legendsymbols",!0),Pe.selectAll("g.legendpoints").data([q]).enter().append("g").classed("legendpoints",!0)}).each(le).each(F).each(O).each(B).each(N).each(ue).each(te).each(I).each(z).each(U).each(X);function I(q){var J=l(q),ee=J.showFill,Z=J.showLine,se=J.showGradientLine,Q=J.showGradientFill,V=J.anyFill,re=J.anyLine,ae=q[0],fe=ae.trace,xe,Ae,Pe=r(fe),Ce=Pe.colorscale,je=Pe.reversescale,at=function(De){if(De.size())if(ee)e.fillGroupStyle(De,M,!0);else{var et="legendfill-"+fe.uid;e.gradient(De,M,et,T(je),Ce,"fill")}},tt=function(De){if(De.size()){var et="legendline-"+fe.uid;e.lineGroupStyle(De),e.gradient(De,M,et,T(je),Ce,"stroke")}},Je=i.hasMarkers(fe)||!V?"M5,0":re?"M5,-2":"M5,-3",Ze=h.select(this),Me=Ze.select(".legendfill").selectAll("path").data(ee||Q?[q]:[]);if(Me.enter().append("path").classed("js-fill",!0),Me.exit().remove(),Me.attr("d",Je+"h"+u+"v6h-"+u+"z").call(at),Z||se){var we=R(void 0,fe.line,p,c);Ae=A.minExtend(fe,{line:{width:we}}),xe=[A.minExtend(ae,{trace:Ae})]}var he=Ze.select(".legendlines").selectAll("path").data(Z||se?[xe]:[]);he.enter().append("path").classed("js-line",!0),he.exit().remove(),he.attr("d",Je+(se?"l"+u+",0.0001":"h"+u)).call(Z?e.lineGroupStyle:tt)}function z(q){var J=l(q),ee=J.anyFill,Z=J.anyLine,se=J.showLine,Q=J.showMarker,V=q[0],re=V.trace,ae=!Q&&!Z&&!ee&&i.hasText(re),fe,xe;function Ae(Me,we,he,De){var et=A.nestedProperty(re,Me).get(),nt=A.isArrayOrTypedArray(et)&&we?we(et):et;if(d&&nt&&De!==void 0&&(nt=De),he){if(nthe[1])return he[1]}return nt}function Pe(Me){return V._distinct&&V.index&&Me[V.index]?Me[V.index]:Me[0]}if(Q||ae||se){var Ce={},je={};if(Q){Ce.mc=Ae("marker.color",Pe),Ce.mx=Ae("marker.symbol",Pe),Ce.mo=Ae("marker.opacity",A.mean,[.2,1]),Ce.mlc=Ae("marker.line.color",Pe),Ce.mlw=Ae("marker.line.width",A.mean,[0,5],f),je.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var at=Ae("marker.size",A.mean,[2,16],s);Ce.ms=at,je.marker.size=at}se&&(je.line={width:Ae("line.width",Pe,[0,10],c)}),ae&&(Ce.tx="Aa",Ce.tp=Ae("textposition",Pe),Ce.ts=10,Ce.tc=Ae("textfont.color",Pe),Ce.tf=Ae("textfont.family",Pe),Ce.tw=Ae("textfont.weight",Pe),Ce.ty=Ae("textfont.style",Pe),Ce.tv=Ae("textfont.variant",Pe),Ce.tC=Ae("textfont.textcase",Pe),Ce.tE=Ae("textfont.lineposition",Pe),Ce.tS=Ae("textfont.shadow",Pe)),fe=[A.minExtend(V,Ce)],xe=A.minExtend(re,je),xe.selectedpoints=null,xe.texttemplate=null}var tt=h.select(this).select("g.legendpoints"),Je=tt.selectAll("path.scatterpts").data(Q?fe:[]);Je.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),Je.exit().remove(),Je.call(e.pointStyle,xe,M),Q&&(fe[0].mrc=3);var Ze=tt.selectAll("g.pointtext").data(ae?fe:[]);Ze.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Ze.exit().remove(),Ze.selectAll("text").call(e.textPointStyle,xe,M)}function F(q){var J=q[0].trace,ee=J.type==="waterfall";if(q[0]._distinct&&ee){var Z=q[0].trace[q[0].dir].marker;return q[0].mc=Z.color,q[0].mlw=Z.line.width,q[0].mlc=Z.line.color,P(q,this,"waterfall")}var se=[];J.visible&&ee&&(se=q[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var Q=h.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(se);Q.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(V){var re=h.select(this),ae=J[V[0]].marker,fe=R(void 0,ae.line,v,f);re.attr("d",V[1]).style("stroke-width",fe+"px").call(t.fill,ae.color),fe&&re.call(t.stroke,ae.line.color)})}function B(q){P(q,this)}function O(q){P(q,this,"funnel")}function P(q,J,ee){var Z=q[0].trace,se=Z.marker||{},Q=se.line||{},V=se.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",re=ee?Z.visible&&Z.type===ee:x.traceIs(Z,"bar"),ae=h.select(J).select("g.legendpoints").selectAll("path.legend"+ee).data(re?[q]:[]);ae.enter().append("path").classed("legend"+ee,!0).attr("d",V).attr("transform",y),ae.exit().remove(),ae.each(function(fe){var xe=h.select(this),Ae=fe[0],Pe=R(Ae.mlw,se.line,v,f);xe.style("stroke-width",Pe+"px");var Ce=Ae.mcc;if(!_._inHover&&"mc"in Ae){var je=r(se),at=je.mid;at===void 0&&(at=(je.max+je.min)/2),Ce=e.tryColorscale(se,"")(at)}var tt=Ce||Ae.mc||se.color,Je=se.pattern,Ze=e.getPatternAttr,Me=Je&&(Ze(Je.shape,0,"")||Ze(Je.path,0,""));if(Me){var we=Ze(Je.bgcolor,0,null),he=Ze(Je.fgcolor,0,null),De=Je.fgopacity,et=m(Je.size,8,10),nt=m(Je.solidity,.5,1),Ke="legend-"+Z.uid;xe.call(e.pattern,"legend",M,Ke,Me,et,nt,Ce,Je.fillmode,we,he,De)}else xe.call(t.fill,tt);Pe&&t.stroke(xe,Ae.mlc||Q.color)})}function N(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendbox").data(J.visible&&x.traceIs(J,"box-violin")?[q]:[]);ee.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),ee.exit().remove(),ee.each(function(){var Z=h.select(this);if((J.boxpoints==="all"||J.points==="all")&&t.opacity(J.fillcolor)===0&&t.opacity((J.line||{}).color)===0){var se=A.minExtend(J,{marker:{size:d?s:A.constrain(J.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ee.call(e.pointStyle,se,M)}else{var Q=R(void 0,J.line,v,f);Z.style("stroke-width",Q+"px").call(t.fill,J.fillcolor),Q&&t.stroke(Z,J.line.color)}})}function U(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(J.visible&&J.type==="candlestick"?[q,q]:[]);ee.enter().append("path").classed("legendcandle",!0).attr("d",function(Z,se){return se?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(Z,se){var Q=h.select(this),V=J[se?"increasing":"decreasing"],re=R(void 0,V.line,v,f);Q.style("stroke-width",re+"px").call(t.fill,V.fillcolor),re&&t.stroke(Q,V.line.color)})}function X(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(J.visible&&J.type==="ohlc"?[q,q]:[]);ee.enter().append("path").classed("legendohlc",!0).attr("d",function(Z,se){return se?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(Z,se){var Q=h.select(this),V=J[se?"increasing":"decreasing"],re=R(void 0,V.line,v,f);Q.style("fill","none").call(e.dashLine,V.line.dash,re),re&&t.stroke(Q,V.line.color)})}function te(q){ie(q,this,"pie")}function ue(q){ie(q,this,"funnelarea")}function ie(q,J,ee){var Z=q[0],se=Z.trace,Q=ee?se.visible&&se.type===ee:x.traceIs(se,ee),V=h.select(J).select("g.legendpoints").selectAll("path.legend"+ee).data(Q?[q]:[]);if(V.enter().append("path").classed("legend"+ee,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),V.exit().remove(),V.size()){var re=se.marker||{},ae=R(o(re.line.width,Z.pts),re.line,v,f),fe="pieLike",xe=A.minExtend(se,{marker:{line:{width:ae}}},fe),Ae=A.minExtend(Z,{trace:xe},fe);a(V,Ae,xe,M)}}function le(q){var J=q[0].trace,ee,Z=[];if(J.visible)switch(J.type){case"histogram2d":case"heatmap":Z=[["M-15,-2V4H15V-2Z"]],ee=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":Z=[["M-6,-6V6H6V-6Z"]],ee=!0;break;case"densitymapbox":case"densitymap":Z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ee="radial";break;case"cone":Z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ee=!1;break;case"streamtube":Z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ee=!1;break;case"surface":Z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ee=!0;break;case"mesh3d":Z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!1;break;case"volume":Z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!0;break;case"isosurface":Z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ee=!1;break}var se=h.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(Z);se.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),se.exit().remove(),se.each(function(Q,V){var re=h.select(this),ae=r(J),fe=ae.colorscale,xe=ae.reversescale,Ae=function(at){if(at.size()){var tt="legendfill-"+J.uid;e.gradient(at,M,tt,T(xe,ee==="radial"),fe,"fill")}},Pe;if(fe){if(!ee){var je=fe.length;Pe=V===0?fe[xe?je-1:0][1]:V===1?fe[xe?0:je-1][1]:fe[Math.floor((je-1)/2)][1]}}else{var Ce=J.vertexcolor||J.facecolor||J.color;Pe=A.isArrayOrTypedArray(Ce)?Ce[V]||Ce[0]:Ce}re.attr("d",Q[0]),Pe?re.call(t.fill,Pe):re.call(Ae)})}};function T(w,S){var M=S?"radial":"horizontal";return M+(w?"":"reversed")}function l(w){var S=w[0].trace,M=S.contours,_=i.hasLines(S),b=i.hasMarkers(S),d=S.visible&&S.fill&&S.fill!=="none",u=!1,g=!1;if(M){var y=M.coloring;y==="lines"?u=!0:_=y==="none"||y==="heatmap"||M.showlines,M.type==="constraint"?d=M._operation!=="=":(y==="fill"||y==="heatmap")&&(g=!0)}return{showMarker:b,showLine:_,showFill:d,showGradientLine:u,showGradientFill:g,anyLine:_||u,anyFill:d||g}}function m(w,S,M){return w&&A.isArrayOrTypedArray(w)?S:w>M?M:w}}}),qb=He({"src/components/legend/draw.js"(Y,H){var h=yi(),x=Qr(),A=$u(),E=qi(),e=O0(),t=ph(),r=Io(),i=zi(),a=jl(),o=kM(),n=jb(),s=Pf(),c=s.LINE_SPACING,f=s.FROM_TL,p=s.FROM_BR,v=CM(),T=Vb(),l=c1(),m=1,w=/^legend[0-9]*$/;H.exports=function(U,X){if(X)M(U,X);else{var te=U._fullLayout,ue=te._legends,ie=te._infolayer.selectAll('[class^="legend"]');ie.each(function(){var ee=h.select(this),Z=ee.attr("class"),se=Z.split(" ")[0];se.match(w)&&ue.indexOf(se)===-1&&ee.remove()});for(var le=0;le1)}var re=te.hiddenlabels||[];if(!q&&(!te.showlegend||!J.length))return le.selectAll("."+ue).remove(),te._topdefs.select("#"+ie).remove(),A.autoMargin(N,ue);var ae=x.ensureSingle(le,"g",ue,function(Je){q||Je.attr("pointer-events","all")}),fe=x.ensureSingleById(te._topdefs,"clipPath",ie,function(Je){Je.append("rect")}),xe=x.ensureSingle(ae,"rect","bg",function(Je){Je.attr("shape-rendering","crispEdges")});xe.call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px");var Ae=x.ensureSingle(ae,"g","scrollbox"),Pe=X.title;X._titleWidth=0,X._titleHeight=0;var Ce;Pe.text?(Ce=x.ensureSingle(Ae,"text",ue+"titletext"),Ce.attr("text-anchor","start").call(r.font,Pe.font).text(Pe.text),y(Ce,Ae,N,X,m)):Ae.selectAll("."+ue+"titletext").remove();var je=x.ensureSingle(ae,"rect","scrollbar",function(Je){Je.attr(n.scrollBarEnterAttrs).call(i.fill,n.scrollBarColor)}),at=Ae.selectAll("g.groups").data(J);at.enter().append("g").attr("class","groups"),at.exit().remove();var tt=at.selectAll("g.traces").data(x.identity);tt.enter().append("g").attr("class","traces"),tt.exit().remove(),tt.style("opacity",function(Je){var Ze=Je[0].trace;return E.traceIs(Ze,"pie-like")?re.indexOf(Je[0].label)!==-1?.5:1:Ze.visible==="legendonly"?.5:1}).each(function(){h.select(this).call(d,N,X)}).call(T,N,X).each(function(){q||h.select(this).call(g,N,ue)}),x.syncOrAsync([A.previousPromises,function(){return z(N,at,tt,X)},function(){var Je=te._size,Ze=X.borderwidth,Me=X.xref==="paper",we=X.yref==="paper";if(Pe.text&&S(Ce,X,Ze),!q){var he,De;Me?he=Je.l+Je.w*X.x-f[B(X)]*X._width:he=te.width*X.x-f[B(X)]*X._width,we?De=Je.t+Je.h*(1-X.y)-f[O(X)]*X._effHeight:De=te.height*(1-X.y)-f[O(X)]*X._effHeight;var et=F(N,ue,he,De);if(et)return;if(te.margin.autoexpand){var nt=he,Ke=De;he=Me?x.constrain(he,0,te.width-X._width):nt,De=we?x.constrain(De,0,te.height-X._effHeight):Ke,he!==nt&&x.log("Constrain "+ue+".x to make legend fit inside graph"),De!==Ke&&x.log("Constrain "+ue+".y to make legend fit inside graph")}r.setTranslate(ae,he,De)}if(je.on(".drag",null),ae.on("wheel",null),q||X._height<=X._maxHeight||N._context.staticPlot){var Et=X._effHeight;q&&(Et=X._height),xe.attr({width:X._width-Ze,height:Et-Ze,x:Ze/2,y:Ze/2}),r.setTranslate(Ae,0,0),fe.select("rect").attr({width:X._width-2*Ze,height:Et-2*Ze,x:Ze,y:Ze}),r.setClipUrl(Ae,ie,N),r.setRect(je,0,0,0,0),delete X._scrollY}else{var kt=Math.max(n.scrollBarMinHeight,X._effHeight*X._effHeight/X._height),Ut=X._effHeight-kt-2*n.scrollBarMargin,Yt=X._height-X._effHeight,vr=Ut/Yt,hr=Math.min(X._scrollY||0,Yt);xe.attr({width:X._width-2*Ze+n.scrollBarWidth+n.scrollBarMargin,height:X._effHeight-Ze,x:Ze/2,y:Ze/2}),fe.select("rect").attr({width:X._width-2*Ze+n.scrollBarWidth+n.scrollBarMargin,height:X._effHeight-2*Ze,x:Ze,y:Ze+hr}),r.setClipUrl(Ae,ie,N),de(hr,kt,vr),ae.on("wheel",function(){hr=x.constrain(X._scrollY+h.event.deltaY/Ut*Yt,0,Yt),de(hr,kt,vr),hr!==0&&hr!==Yt&&h.event.preventDefault()});var Rr,dr,wr,yt=function(ht,bt,Ct){var Zt=(Ct-bt)/vr+ht;return x.constrain(Zt,0,Yt)},Fe=function(ht,bt,Ct){var Zt=(bt-Ct)/vr+ht;return x.constrain(Zt,0,Yt)},We=h.behavior.drag().on("dragstart",function(){var ht=h.event.sourceEvent;ht.type==="touchstart"?Rr=ht.changedTouches[0].clientY:Rr=ht.clientY,wr=hr}).on("drag",function(){var ht=h.event.sourceEvent;ht.buttons===2||ht.ctrlKey||(ht.type==="touchmove"?dr=ht.changedTouches[0].clientY:dr=ht.clientY,hr=yt(wr,Rr,dr),de(hr,kt,vr))});je.call(We);var Oe=h.behavior.drag().on("dragstart",function(){var ht=h.event.sourceEvent;ht.type==="touchstart"&&(Rr=ht.changedTouches[0].clientY,wr=hr)}).on("drag",function(){var ht=h.event.sourceEvent;ht.type==="touchmove"&&(dr=ht.changedTouches[0].clientY,hr=Fe(wr,Rr,dr),de(hr,kt,vr))});Ae.call(Oe)}function de(ht,bt,Ct){X._scrollY=N._fullLayout[ue]._scrollY=ht,r.setTranslate(Ae,0,-ht),r.setRect(je,X._width,n.scrollBarMargin+ht*Ct,n.scrollBarWidth,bt),fe.select("rect").attr("y",Ze+ht)}if(N._context.edits.legendPosition){var me,be,Ie,Xe;ae.classed("cursor-move",!0),t.init({element:ae.node(),gd:N,prepFn:function(ht){if(ht.target!==je.node()){var bt=r.getTranslate(ae);Ie=bt.x,Xe=bt.y}},moveFn:function(ht,bt){if(Ie!==void 0&&Xe!==void 0){var Ct=Ie+ht,Zt=Xe+bt;r.setTranslate(ae,Ct,Zt),me=t.align(Ct,X._width,Je.l,Je.l+Je.w,X.xanchor),be=t.align(Zt+X._height,-X._height,Je.t+Je.h,Je.t,X.yanchor)}},doneFn:function(){if(me!==void 0&&be!==void 0){var ht={};ht[ue+".x"]=me,ht[ue+".y"]=be,E.call("_guiRelayout",N,ht)}},clickFn:function(ht,bt){var Ct=le.selectAll("g.traces").filter(function(){var Zt=this.getBoundingClientRect();return bt.clientX>=Zt.left&&bt.clientX<=Zt.right&&bt.clientY>=Zt.top&&bt.clientY<=Zt.bottom});Ct.size()>0&&b(N,ae,Ct,ht,bt)}})}}],N)}}function _(N,U,X){var te=N[0],ue=te.width,ie=U.entrywidthmode,le=te.trace.legendwidth||U.entrywidth;return ie==="fraction"?U._maxWidth*le:X+(le||ue)}function b(N,U,X,te,ue){var ie=X.data()[0][0].trace,le={event:ue,node:X.node(),curveNumber:ie.index,expandedIndex:ie.index,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};ie._group&&(le.group=ie._group),E.traceIs(ie,"pie-like")&&(le.label=X.datum()[0].label);var q=e.triggerHandler(N,"plotly_legendclick",le);if(te===1){if(q===!1)return;U._clickTimeout=setTimeout(function(){N._fullLayout&&o(X,N,te)},N._context.doubleClickDelay)}else if(te===2){U._clickTimeout&&clearTimeout(U._clickTimeout),N._legendMouseDownTime=0;var J=e.triggerHandler(N,"plotly_legenddoubleclick",le);J!==!1&&q!==!1&&o(X,N,te)}}function d(N,U,X){var te=P(X),ue=N.data()[0][0],ie=ue.trace,le=E.traceIs(ie,"pie-like"),q=!X._inHover&&U._context.edits.legendText&&!le,J=X._maxNameLength,ee,Z;ue.groupTitle?(ee=ue.groupTitle.text,Z=ue.groupTitle.font):(Z=X.font,X.entries?ee=ue.text:(ee=le?ue.label:ie.name,ie._meta&&(ee=x.templateString(ee,ie._meta))));var se=x.ensureSingle(N,"text",te+"text");se.attr("text-anchor","start").call(r.font,Z).text(q?u(ee,J):ee);var Q=X.indentation+X.itemwidth+n.itemGap*2;a.positionText(se,Q,0),q?se.call(a.makeEditable,{gd:U,text:ee}).call(y,N,U,X).on("edit",function(V){this.text(u(V,J)).call(y,N,U,X);var re=ue.trace._fullInput||{},ae={};return ae.name=V,re._isShape?E.call("_guiRelayout",U,"shapes["+ie.index+"].name",ae.name):E.call("_guiRestyle",U,ae,ie.index)}):y(se,N,U,X)}function u(N,U){var X=Math.max(4,U);if(N&&N.trim().length>=X/2)return N;N=N||"";for(var te=X-N.length;te>0;te--)N+=" ";return N}function g(N,U,X){var te=U._context.doubleClickDelay,ue,ie=1,le=x.ensureSingle(N,"rect",X+"toggle",function(q){U._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(i.fill,"rgba(0,0,0,0)")});U._context.staticPlot||(le.on("mousedown",function(){ue=new Date().getTime(),ue-U._legendMouseDownTimete&&(ie=Math.max(ie-1,1)),b(U,q,N,ie,h.event)}}))}function y(N,U,X,te,ue){te._inHover&&N.attr("data-notex",!0),a.convertToTspans(N,X,function(){R(U,X,te,ue)})}function R(N,U,X,te){var ue=N.data()[0][0];if(!X._inHover&&ue&&!ue.trace.showlegend){N.remove();return}var ie=N.select("g[class*=math-group]"),le=ie.node(),q=P(X);X||(X=U._fullLayout[q]);var J=X.borderwidth,ee;te===m?ee=X.title.font:ue.groupTitle?ee=ue.groupTitle.font:ee=X.font;var Z=ee.size*c,se,Q;if(le){var V=r.bBox(le);se=V.height,Q=V.width,te===m?r.setTranslate(ie,J,J+se*.75):r.setTranslate(ie,0,se*.25)}else{var re="."+q+(te===m?"title":"")+"text",ae=N.select(re),fe=a.lineCount(ae),xe=ae.node();if(se=Z*fe,Q=xe?r.bBox(xe).width:0,te===m)X.title.side==="left"&&(Q+=n.itemGap*2),a.positionText(ae,J+n.titlePad,J+Z);else{var Ae=n.itemGap*2+X.indentation+X.itemwidth;ue.groupTitle&&(Ae=n.itemGap,Q-=X.indentation+X.itemwidth),a.positionText(ae,Ae,-Z*((fe-1)/2-.3))}}te===m?(X._titleWidth=Q,X._titleHeight=se):(ue.lineHeight=Z,ue.height=Math.max(se,16)+3,ue.width=Q)}function I(N){var U=0,X=0,te=N.title.side;return te&&(te.indexOf("left")!==-1&&(U=N._titleWidth),te.indexOf("top")!==-1&&(X=N._titleHeight)),[U,X]}function z(N,U,X,te){var ue=N._fullLayout,ie=P(te);te||(te=ue[ie]);var le=ue._size,q=l.isVertical(te),J=l.isGrouped(te),ee=te.entrywidthmode==="fraction",Z=te.borderwidth,se=2*Z,Q=n.itemGap,V=te.indentation+te.itemwidth+Q*2,re=2*(Z+Q),ae=O(te),fe=te.y<0||te.y===0&&ae==="top",xe=te.y>1||te.y===1&&ae==="bottom",Ae=te.tracegroupgap,Pe={};const{orientation:Ce,yref:je}=te;let{maxheight:at}=te;const tt=fe||xe||Ce!=="v"||je!=="paper";at||(at=tt?.5:1);const Je=tt?ue.height:le.h;te._maxHeight=Math.max(at>1?at:at*Je,30);var Ze=0;te._width=0,te._height=0;var Me=I(te);if(q)X.each(function(de){var me=de[0].height;r.setTranslate(this,Z+Me[0],Z+Me[1]+te._height+me/2+Q),te._height+=me,te._width=Math.max(te._width,de[0].width)}),Ze=V+te._width,te._width+=Q+V+se,te._height+=re,J&&(U.each(function(de,me){r.setTranslate(this,0,me*te.tracegroupgap)}),te._height+=(te._lgroupsLength-1)*te.tracegroupgap);else{var we=B(te),he=te.x<0||te.x===0&&we==="right",De=te.x>1||te.x===1&&we==="left",et=xe||fe,nt=ue.width/2;te._maxWidth=Math.max(he?et&&we==="left"?le.l+le.w:nt:De?et&&we==="right"?le.r+le.w:nt:le.w,2*V);var Ke=0,Et=0;X.each(function(de){var me=_(de,te,V);Ke=Math.max(Ke,me),Et+=me}),Ze=null;var kt=0;if(J){var Ut=0,Yt=0,vr=0;U.each(function(){var de=0,me=0;h.select(this).selectAll("g.traces").each(function(Ie){var Xe=_(Ie,te,V),ht=Ie[0].height;r.setTranslate(this,Me[0],Me[1]+Z+Q+ht/2+me),me+=ht,de=Math.max(de,Xe),Pe[Ie[0].trace.legendgroup]=de});var be=de+Q;Yt>0&&be+Z+Yt>te._maxWidth?(kt=Math.max(kt,Yt),Yt=0,vr+=Ut+Ae,Ut=me):Ut=Math.max(Ut,me),r.setTranslate(this,Yt,vr),Yt+=be}),te._width=Math.max(kt,Yt)+Z,te._height=vr+Ut+re}else{var hr=X.size(),Rr=Et+se+(hr-1)*Q=te._maxWidth&&(kt=Math.max(kt,Fe),wr=0,yt+=dr,te._height+=dr,dr=0),r.setTranslate(this,Me[0]+Z+wr,Me[1]+Z+yt+me/2+Q),Fe=wr+be+Q,wr+=Ie,dr=Math.max(dr,me)}),Rr?(te._width=wr+se,te._height=dr+re):(te._width=Math.max(kt,Fe)+se,te._height+=dr+re)}}te._width=Math.ceil(Math.max(te._width+Me[0],te._titleWidth+2*(Z+n.titlePad))),te._height=Math.ceil(Math.max(te._height+Me[1],te._titleHeight+2*(Z+n.itemGap))),te._effHeight=Math.min(te._height,te._maxHeight);var We=N._context.edits,Oe=We.legendText||We.legendPosition;X.each(function(de){var me=h.select(this).select("."+ie+"toggle"),be=de[0].height,Ie=de[0].trace.legendgroup,Xe=_(de,te,V);J&&Ie!==""&&(Xe=Pe[Ie]);var ht=Oe?V:Ze||Xe;!q&&!ee&&(ht+=Q/2),r.setRect(me,0,-be/2,ht,be)})}function F(N,U,X,te){var ue=N._fullLayout,ie=ue[U],le=B(ie),q=O(ie),J=ie.xref==="paper",ee=ie.yref==="paper";N._fullLayout._reservedMargin[U]={};var Z=ie.y<.5?"b":"t",se=ie.x<.5?"l":"r",Q={r:ue.width-X,l:X+ie._width,b:ue.height-te,t:te+ie._effHeight};if(J&&ee)return A.autoMargin(N,U,{x:ie.x,y:ie.y,l:ie._width*f[le],r:ie._width*p[le],b:ie._effHeight*p[q],t:ie._effHeight*f[q]});J?N._fullLayout._reservedMargin[U][Z]=Q[Z]:ee||ie.orientation==="v"?N._fullLayout._reservedMargin[U][se]=Q[se]:N._fullLayout._reservedMargin[U][Z]=Q[Z]}function B(N){return x.isRightAnchor(N)?"right":x.isCenterAnchor(N)?"center":"left"}function O(N){return x.isBottomAnchor(N)?"bottom":x.isMiddleAnchor(N)?"middle":"top"}function P(N){return N._id||"legend"}}}),Gb=He({"src/components/fx/hover.js"(Y){var H=yi(),h=Vi(),x=Uf(),A=Qr(),E=A.pushUnique,e=A.strTranslate,t=A.strRotate,r=O0(),i=jl(),a=EM(),o=Io(),n=zi(),s=ph(),c=wo(),f=jf().zindexSeparator,p=qi(),v=Dh(),T=Yg(),l=Ub(),m=qb(),w=T.YANGLE,S=Math.PI*w/180,M=1/Math.sin(S),_=Math.cos(S),b=Math.sin(S),d=T.HOVERARROWSIZE,u=T.HOVERTEXTPAD,g={box:!0,ohlc:!0,violin:!0,candlestick:!0},y={scatter:!0,scattergl:!0,splom:!0};function R(V,re){return V.distance-re.distance}Y.hover=function(re,ae,fe,xe){re=A.getGraphDiv(re);var Ae=ae.target;A.throttle(re._fullLayout._uid+T.HOVERID,T.HOVERMINTIME,function(){I(re,ae,fe,xe,Ae)})},Y.loneHover=function(re,ae){var fe=!0;Array.isArray(re)||(fe=!1,re=[re]);var xe=ae.gd,Ae=Z(xe),Pe=se(xe),Ce=re.map(function(De){var et=De._x0||De.x0||De.x||0,nt=De._x1||De.x1||De.x||0,Ke=De._y0||De.y0||De.y||0,Et=De._y1||De.y1||De.y||0,kt=De.eventData;if(kt){var Ut=Math.min(et,nt),Yt=Math.max(et,nt),vr=Math.min(Ke,Et),hr=Math.max(Ke,Et),Rr=De.trace;if(p.traceIs(Rr,"gl3d")){var dr=xe._fullLayout[Rr.scene]._scene.container,wr=dr.offsetLeft,yt=dr.offsetTop;Ut+=wr,Yt+=wr,vr+=yt,hr+=yt}kt.bbox={x0:Ut+Pe,x1:Yt+Pe,y0:vr+Ae,y1:hr+Ae},ae.inOut_bbox&&ae.inOut_bbox.push(kt.bbox)}else kt=!1;return{color:De.color||n.defaultLine,x0:De.x0||De.x||0,x1:De.x1||De.x||0,y0:De.y0||De.y||0,y1:De.y1||De.y||0,xLabel:De.xLabel,yLabel:De.yLabel,zLabel:De.zLabel,text:De.text,name:De.name,idealAlign:De.idealAlign,borderColor:De.borderColor,fontFamily:De.fontFamily,fontSize:De.fontSize,fontColor:De.fontColor,fontWeight:De.fontWeight,fontStyle:De.fontStyle,fontVariant:De.fontVariant,nameLength:De.nameLength,textAlign:De.textAlign,trace:De.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:De.hovertemplate||!1,hovertemplateLabels:De.hovertemplateLabels||!1,eventData:kt}}),je=!1,at=B(Ce,{gd:xe,hovermode:"closest",rotateLabels:je,bgColor:ae.bgColor||n.background,container:H.select(ae.container),outerContainer:ae.outerContainer||ae.container}),tt=at.hoverLabels,Je=5,Ze=0,Me=0;tt.sort(function(De,et){return De.y0-et.y0}).each(function(De,et){var nt=De.y0-De.by/2;nt-JeYt[0]._length||Ga<0||Ga>vr[0]._length)return s.unhoverRaw(V,re)}if(re.pointerX=Aa+Yt[0]._offset,re.pointerY=Ga+vr[0]._offset,"xval"in re?Oe=v.flat(Ae,re.xval):Oe=v.p2c(Yt,Aa),"yval"in re?de=v.flat(Ae,re.yval):de=v.p2c(vr,Ga),!h(Oe[0])||!h(de[0]))return A.warn("Fx.hover failed",re,V),s.unhoverRaw(V,re)}var yn=1/0;function Kt(ci,bi){for(be=0;beJt&&(Fe.splice(0,Jt),yn=Fe[0].distance),Je&&yt!==0&&Fe.length===0){rr.distance=yt,rr.index=!1;var Ei=Xe._module.hoverPoints(rr,Zt,Wt,"closest",{hoverLayer:Ce._hoverlayer});if(Ei&&(Ei=Ei.filter(function(no){return no.spikeDistance<=yt})),Ei&&Ei.length){var Ri,xo=Ei.filter(function(no){return no.xa.showspikes&&no.xa.spikesnap!=="hovered data"});if(xo.length){var So=xo[0];h(So.x0)&&h(So.y0)&&(Ri=$t(So),(!mr.vLinePoint||mr.vLinePoint.spikeDistance>Ri.spikeDistance)&&(mr.vLinePoint=Ri))}var bo=Ei.filter(function(no){return no.ya.showspikes&&no.ya.spikesnap!=="hovered data"});if(bo.length){var Ui=bo[0];h(Ui.x0)&&h(Ui.y0)&&(Ri=$t(Ui),(!mr.hLinePoint||mr.hLinePoint.spikeDistance>Ri.spikeDistance)&&(mr.hLinePoint=Ri))}}}}}Kt();function zt(ci,bi,ho){for(var Bo=null,gs=1/0,ro,Ei=0;Ei0&&Math.abs(ci.distance)ot-1;Dr--)jr(Fe[Dr]);Fe=Mr,qr()}var Hr=V._hoverdata,na=[],ta=Z(V),At=se(V);for(me=0;me1||Fe.length>1)||Ze==="closest"&&ia&&Fe.length>1,pi=n.combine(Ce.plot_bgcolor||n.background,Ce.paper_bgcolor),vi=B(Fe,{gd:V,hovermode:Ze,rotateLabels:ui,bgColor:pi,container:Ce._hoverlayer,outerContainer:Ce._paper.node(),commonLabelOpts:Ce.hoverlabel,hoverdistance:Ce.hoverdistance}),Li=vi.hoverLabels;if(v.isUnifiedHover(Ze)||(P(Li,ui,Ce,vi.commonLabelBoundingBox),X(Li,ui,Ce._invScaleX,Ce._invScaleY)),xe&&xe.tagName){var Ni=p.getComponentMethod("annotations","hasClickToShow")(V,na);a(H.select(xe),Ni?"pointer":"")}!xe||fe||!ie(V,re,Hr)||(Hr&&V.emit("plotly_unhover",{event:re,points:Hr}),V.emit("plotly_hover",{event:re,points:V._hoverdata,xaxes:Yt,yaxes:vr,xvals:Oe,yvals:de}))}function z(V){return[V.trace.index,V.index,V.x0,V.y0,V.name,V.attr,V.xa?V.xa._id:"",V.ya?V.ya._id:""].join(",")}var F=/([\s\S]*)<\/extra>/;function B(V,re){var ae=re.gd,fe=ae._fullLayout,xe=re.hovermode,Ae=re.rotateLabels,Pe=re.bgColor,Ce=re.container,je=re.outerContainer,at=re.commonLabelOpts||{};if(V.length===0)return[[]];var tt=re.fontFamily||T.HOVERFONT,Je=re.fontSize||T.HOVERFONTSIZE,Ze=re.fontWeight||fe.font.weight,Me=re.fontStyle||fe.font.style,we=re.fontVariant||fe.font.variant,he=re.fontTextcase||fe.font.textcase,De=re.fontLineposition||fe.font.lineposition,et=re.fontShadow||fe.font.shadow,nt=V[0],Ke=nt.xa,Et=nt.ya,kt=xe.charAt(0),Ut=kt+"Label",Yt=nt[Ut];if(Yt===void 0&&Ke.type==="multicategory")for(var vr=0;vrfe.width-or&&(Ar=fe.width-or),Lr.attr("d","M"+(na-Ar)+",0L"+(na-Ar+d)+","+At+d+"H"+or+"v"+At+(u*2+Hr.height)+"H"+-or+"V"+At+d+"H"+(na-Ar-d)+"Z"),na=Ar,be.minX=na-or,be.maxX=na+or,Ke.side==="top"?(be.minY=ta-(u*2+Hr.height),be.maxY=ta-u):(be.minY=ta+u,be.maxY=ta+(u*2+Hr.height))}else{var oa,ga,Sa;Et.side==="right"?(oa="start",ga=1,Sa="",na=Ke._offset+Ke._length):(oa="end",ga=-1,Sa="-",na=Ke._offset),ta=Et._offset+(nt.y0+nt.y1)/2,Er.attr("text-anchor",oa),Lr.attr("d","M0,0L"+Sa+d+","+d+"V"+(u+Hr.height/2)+"h"+Sa+(u*2+Hr.width)+"V-"+(u+Hr.height/2)+"H"+Sa+d+"V-"+d+"Z"),be.minY=ta-(u+Hr.height/2),be.maxY=ta+(u+Hr.height/2),Et.side==="right"?(be.minX=na+d,be.maxX=na+d+(u*2+Hr.width)):(be.minX=na-d-(u*2+Hr.width),be.maxX=na-d);var za=Hr.height/2,ra=Rr-Hr.top-za,Ta="clip"+fe._uid+"commonlabel"+Et._id,Fn;if(na=0?Ka=Gr:wa+yn=0?Ka=wa:Da+yn=0?an=qr:ha+Kt=0?an=ha:Ya+Kt=0,(ot.idealAlign==="top"||!ui)&&pi?(Sa-=ra/2,ot.anchor="end"):ui?(Sa+=ra/2,ot.anchor="start"):ot.anchor="middle",ot.crossPos=Sa;else{if(ot.pos=Sa,ui=ga+za/2+Kn<=dr,pi=ga-za/2-Kn>=0,(ot.idealAlign==="left"||!ui)&&pi)ga-=za/2,ot.anchor="end";else if(ui)ga+=za/2,ot.anchor="start";else{ot.anchor="middle";var vi=Kn/2,Li=ga+vi-dr,Ni=ga-vi;Li>0&&(ga-=Li),Ni<0&&(ga+=-Ni)}ot.crossPos=ga}ta.attr("text-anchor",ot.anchor),or&&At.attr("text-anchor",ot.anchor),Lr.attr("transform",e(ga,Sa)+(Ae?t(w):""))}),{hoverLabels:mt,commonLabelBoundingBox:be}}function O(V,re,ae,fe,xe,Ae){var Pe="",Ce="";V.nameOverride!==void 0&&(V.name=V.nameOverride),V.name&&(V.trace._meta&&(V.name=A.templateString(V.name,V.trace._meta)),Pe=q(V.name,V.nameLength));var je=ae.charAt(0),at=je==="x"?"y":"x";V.zLabel!==void 0?(V.xLabel!==void 0&&(Ce+="x: "+V.xLabel+"
"),V.yLabel!==void 0&&(Ce+="y: "+V.yLabel+"
"),V.trace.type!=="choropleth"&&V.trace.type!=="choroplethmapbox"&&V.trace.type!=="choroplethmap"&&(Ce+=(Ce?"z: ":"")+V.zLabel)):re&&V[je+"Label"]===xe?Ce=V[at+"Label"]||"":V.xLabel===void 0?V.yLabel!==void 0&&V.trace.type!=="scattercarpet"&&(Ce=V.yLabel):V.yLabel===void 0?Ce=V.xLabel:Ce="("+V.xLabel+", "+V.yLabel+")",(V.text||V.text===0)&&!Array.isArray(V.text)&&(Ce+=(Ce?"
":"")+V.text),V.extraText!==void 0&&(Ce+=(Ce?"
":"")+V.extraText),Ae&&Ce===""&&!V.hovertemplate&&(Pe===""&&Ae.remove(),Ce=Pe);var tt=V.hovertemplate||!1;if(tt){var Je=V.hovertemplateLabels||V;V[je+"Label"]!==xe&&(Je[je+"other"]=Je[je+"Val"],Je[je+"otherLabel"]=Je[je+"Label"]),Ce=A.hovertemplateString(tt,Je,fe._d3locale,V.eventData[0]||{},V.trace._meta),Ce=Ce.replace(F,function(Ze,Me){return Pe=q(Me,V.nameLength),""})}return[Ce,Pe]}function P(V,re,ae,fe){var xe=re?"xa":"ya",Ae=re?"ya":"xa",Pe=0,Ce=1,je=V.size(),at=new Array(je),tt=0,Je=fe.minX,Ze=fe.maxX,Me=fe.minY,we=fe.maxY,he=function(Oe){return Oe*ae._invScaleX},De=function(Oe){return Oe*ae._invScaleY};V.each(function(Oe){var de=Oe[xe],me=Oe[Ae],be=de._id.charAt(0)==="x",Ie=de.range;tt===0&&Ie&&Ie[0]>Ie[1]!==be&&(Ce=-1);var Xe=0,ht=be?ae.width:ae.height;if(ae.hovermode==="x"||ae.hovermode==="y"){var bt=N(Oe,re),Ct=Oe.anchor,Zt=Ct==="end"?-1:1,Wt,rr;if(Ct==="middle")Wt=Oe.crossPos+(be?De(bt.y-Oe.by/2):he(Oe.bx/2+Oe.tx2width/2)),rr=Wt+(be?De(Oe.by):he(Oe.bx));else if(be)Wt=Oe.crossPos+De(d+bt.y)-De(Oe.by/2-d),rr=Wt+De(Oe.by);else{var Jt=he(Zt*d+bt.x),mr=Jt+he(Zt*Oe.bx);Wt=Oe.crossPos+Math.min(Jt,mr),rr=Oe.crossPos+Math.max(Jt,mr)}be?Me!==void 0&&we!==void 0&&Math.min(rr,we)-Math.max(Wt,Me)>1&&(me.side==="left"?(Xe=me._mainLinePosition,ht=ae.width):ht=me._mainLinePosition):Je!==void 0&&Ze!==void 0&&Math.min(rr,Ze)-Math.max(Wt,Je)>1&&(me.side==="top"?(Xe=me._mainLinePosition,ht=ae.height):ht=me._mainLinePosition)}at[tt++]=[{datum:Oe,traceIndex:Oe.trace.index,dp:0,pos:Oe.pos,posref:Oe.posref,size:Oe.by*(be?M:1)/2,pmin:Xe,pmax:ht}]}),at.sort(function(Oe,de){return Oe[0].posref-de[0].posref||Ce*(de[0].traceIndex-Oe[0].traceIndex)});var et,nt,Ke,Et,kt,Ut,Yt;function vr(Oe){var de=Oe[0],me=Oe[Oe.length-1];if(nt=de.pmin-de.pos-de.dp+de.size,Ke=me.pos+me.dp+me.size-de.pmax,nt>.01){for(kt=Oe.length-1;kt>=0;kt--)Oe[kt].dp+=nt;et=!1}if(!(Ke<.01)){if(nt<-.01){for(kt=Oe.length-1;kt>=0;kt--)Oe[kt].dp-=Ke;et=!1}if(et){var be=0;for(Et=0;Etde.pmax&&be++;for(Et=Oe.length-1;Et>=0&&!(be<=0);Et--)Ut=Oe[Et],Ut.pos>de.pmax-1&&(Ut.del=!0,be--);for(Et=0;Et=0;kt--)Oe[kt].dp-=Ke;for(Et=Oe.length-1;Et>=0&&!(be<=0);Et--)Ut=Oe[Et],Ut.pos+Ut.dp+Ut.size>de.pmax&&(Ut.del=!0,be--)}}}for(;!et&&Pe<=je;){for(Pe++,et=!0,Et=0;Et.01){for(kt=Rr.length-1;kt>=0;kt--)Rr[kt].dp+=nt;for(hr.push.apply(hr,Rr),at.splice(Et+1,1),Yt=0,kt=hr.length-1;kt>=0;kt--)Yt+=hr[kt].dp;for(Ke=Yt/hr.length,kt=hr.length-1;kt>=0;kt--)hr[kt].dp-=Ke;et=!1}else Et++}at.forEach(vr)}for(Et=at.length-1;Et>=0;Et--){var yt=at[Et];for(kt=yt.length-1;kt>=0;kt--){var Fe=yt[kt],We=Fe.datum;We.offset=Fe.dp,We.del=Fe.del}}}function N(V,re){var ae=0,fe=V.offset;return re&&(fe*=-b,ae=V.offset*_),{x:ae,y:fe}}function U(V){var re={start:1,end:-1,middle:0}[V.anchor],ae=re*(d+u),fe=ae+re*(V.txwidth+u),xe=V.anchor==="middle";return xe&&(ae-=V.tx2width/2,fe+=V.txwidth/2+u),{alignShift:re,textShiftX:ae,text2ShiftX:fe}}function X(V,re,ae,fe){var xe=function(Pe){return Pe*ae},Ae=function(Pe){return Pe*fe};V.each(function(Pe){var Ce=H.select(this);if(Pe.del)return Ce.remove();var je=Ce.select("text.nums"),at=Pe.anchor,tt=at==="end"?-1:1,Je=U(Pe),Ze=N(Pe,re),Me=Ze.x,we=Ze.y,he=at==="middle",De="hoverlabel"in Pe.trace?Pe.trace.hoverlabel.showarrow:!0,et;he?et="M-"+xe(Pe.bx/2+Pe.tx2width/2)+","+Ae(we-Pe.by/2)+"h"+xe(Pe.bx)+"v"+Ae(Pe.by)+"h-"+xe(Pe.bx)+"Z":De?et="M0,0L"+xe(tt*d+Me)+","+Ae(d+we)+"v"+Ae(Pe.by/2-d)+"h"+xe(tt*Pe.bx)+"v-"+Ae(Pe.by)+"H"+xe(tt*d+Me)+"V"+Ae(we-d)+"Z":et="M"+xe(tt*d+Me)+","+Ae(we-Pe.by/2)+"h"+xe(tt*Pe.bx)+"v"+Ae(Pe.by)+"h"+xe(-tt*Pe.bx)+"Z",Ce.select("path").attr("d",et);var nt=Me+Je.textShiftX,Ke=we+Pe.ty0-Pe.by/2+u,Et=Pe.textAlign||"auto";Et!=="auto"&&(Et==="left"&&at!=="start"?(je.attr("text-anchor","start"),nt=he?-Pe.bx/2-Pe.tx2width/2+u:-Pe.bx-u):Et==="right"&&at!=="end"&&(je.attr("text-anchor","end"),nt=he?Pe.bx/2-Pe.tx2width/2-u:Pe.bx+u)),je.call(i.positionText,xe(nt),Ae(Ke)),Pe.tx2width&&(Ce.select("text.name").call(i.positionText,xe(Je.text2ShiftX+Je.alignShift*u+Me),Ae(we+Pe.ty0-Pe.by/2+u)),Ce.select("rect").call(o.setRect,xe(Je.text2ShiftX+(Je.alignShift-1)*Pe.tx2width/2+Me),Ae(we-Pe.by/2-1),xe(Pe.tx2width),Ae(Pe.by+2)))})}function te(V,re){var ae=V.index,fe=V.trace||{},xe=V.cd[0],Ae=V.cd[ae]||{};function Pe(Ze){return Ze||h(Ze)&&Ze===0}var Ce=Array.isArray(ae)?function(Ze,Me){var we=A.castOption(xe,ae,Ze);return Pe(we)?we:A.extractOption({},fe,"",Me)}:function(Ze,Me){return A.extractOption(Ae,fe,Ze,Me)};function je(Ze,Me,we){var he=Ce(Me,we);Pe(he)&&(V[Ze]=he)}if(je("hoverinfo","hi","hoverinfo"),je("bgcolor","hbg","hoverlabel.bgcolor"),je("borderColor","hbc","hoverlabel.bordercolor"),je("fontFamily","htf","hoverlabel.font.family"),je("fontSize","hts","hoverlabel.font.size"),je("fontColor","htc","hoverlabel.font.color"),je("fontWeight","htw","hoverlabel.font.weight"),je("fontStyle","hty","hoverlabel.font.style"),je("fontVariant","htv","hoverlabel.font.variant"),je("nameLength","hnl","hoverlabel.namelength"),je("textAlign","hta","hoverlabel.align"),V.posref=re==="y"||re==="closest"&&fe.orientation==="h"?V.xa._offset+(V.x0+V.x1)/2:V.ya._offset+(V.y0+V.y1)/2,V.x0=A.constrain(V.x0,0,V.xa._length),V.x1=A.constrain(V.x1,0,V.xa._length),V.y0=A.constrain(V.y0,0,V.ya._length),V.y1=A.constrain(V.y1,0,V.ya._length),V.xLabelVal!==void 0&&(V.xLabel="xLabel"in V?V.xLabel:c.hoverLabelText(V.xa,V.xLabelVal,fe.xhoverformat),V.xVal=V.xa.c2d(V.xLabelVal)),V.yLabelVal!==void 0&&(V.yLabel="yLabel"in V?V.yLabel:c.hoverLabelText(V.ya,V.yLabelVal,fe.yhoverformat),V.yVal=V.ya.c2d(V.yLabelVal)),V.zLabelVal!==void 0&&V.zLabel===void 0&&(V.zLabel=String(V.zLabelVal)),!isNaN(V.xerr)&&!(V.xa.type==="log"&&V.xerr<=0)){var at=c.tickText(V.xa,V.xa.c2l(V.xerr),"hover").text;V.xerrneg!==void 0?V.xLabel+=" +"+at+" / -"+c.tickText(V.xa,V.xa.c2l(V.xerrneg),"hover").text:V.xLabel+=" ± "+at,re==="x"&&(V.distance+=1)}if(!isNaN(V.yerr)&&!(V.ya.type==="log"&&V.yerr<=0)){var tt=c.tickText(V.ya,V.ya.c2l(V.yerr),"hover").text;V.yerrneg!==void 0?V.yLabel+=" +"+tt+" / -"+c.tickText(V.ya,V.ya.c2l(V.yerrneg),"hover").text:V.yLabel+=" ± "+tt,re==="y"&&(V.distance+=1)}var Je=V.hoverinfo||V.trace.hoverinfo;return Je&&Je!=="all"&&(Je=Array.isArray(Je)?Je:Je.split("+"),Je.indexOf("x")===-1&&(V.xLabel=void 0),Je.indexOf("y")===-1&&(V.yLabel=void 0),Je.indexOf("z")===-1&&(V.zLabel=void 0),Je.indexOf("text")===-1&&(V.text=void 0),Je.indexOf("name")===-1&&(V.name=void 0)),V}function ue(V,re,ae){var fe=ae.container,xe=ae.fullLayout,Ae=xe._size,Pe=ae.event,Ce=!!re.hLinePoint,je=!!re.vLinePoint,at,tt;if(fe.selectAll(".spikeline").remove(),!!(je||Ce)){var Je=n.combine(xe.plot_bgcolor,xe.paper_bgcolor);if(Ce){var Ze=re.hLinePoint,Me,we;at=Ze&&Ze.xa,tt=Ze&&Ze.ya;var he=tt.spikesnap;he==="cursor"?(Me=Pe.pointerX,we=Pe.pointerY):(Me=at._offset+Ze.x,we=tt._offset+Ze.y);var De=x.readability(Ze.color,Je)<1.5?n.contrast(Je):Ze.color,et=tt.spikemode,nt=tt.spikethickness,Ke=tt.spikecolor||De,Et=c.getPxPosition(V,tt),kt,Ut;if(et.indexOf("toaxis")!==-1||et.indexOf("across")!==-1){if(et.indexOf("toaxis")!==-1&&(kt=Et,Ut=Me),et.indexOf("across")!==-1){var Yt=tt._counterDomainMin,vr=tt._counterDomainMax;tt.anchor==="free"&&(Yt=Math.min(Yt,tt.position),vr=Math.max(vr,tt.position)),kt=Ae.l+Yt*Ae.w,Ut=Ae.l+vr*Ae.w}fe.insert("line",":first-child").attr({x1:kt,x2:Ut,y1:we,y2:we,"stroke-width":nt,stroke:Ke,"stroke-dasharray":o.dashStyle(tt.spikedash,nt)}).classed("spikeline",!0).classed("crisp",!0),fe.insert("line",":first-child").attr({x1:kt,x2:Ut,y1:we,y2:we,"stroke-width":nt+2,stroke:Je}).classed("spikeline",!0).classed("crisp",!0)}et.indexOf("marker")!==-1&&fe.insert("circle",":first-child").attr({cx:Et+(tt.side!=="right"?nt:-nt),cy:we,r:nt,fill:Ke}).classed("spikeline",!0)}if(je){var hr=re.vLinePoint,Rr,dr;at=hr&&hr.xa,tt=hr&&hr.ya;var wr=at.spikesnap;wr==="cursor"?(Rr=Pe.pointerX,dr=Pe.pointerY):(Rr=at._offset+hr.x,dr=tt._offset+hr.y);var yt=x.readability(hr.color,Je)<1.5?n.contrast(Je):hr.color,Fe=at.spikemode,We=at.spikethickness,Oe=at.spikecolor||yt,de=c.getPxPosition(V,at),me,be;if(Fe.indexOf("toaxis")!==-1||Fe.indexOf("across")!==-1){if(Fe.indexOf("toaxis")!==-1&&(me=de,be=dr),Fe.indexOf("across")!==-1){var Ie=at._counterDomainMin,Xe=at._counterDomainMax;at.anchor==="free"&&(Ie=Math.min(Ie,at.position),Xe=Math.max(Xe,at.position)),me=Ae.t+(1-Xe)*Ae.h,be=Ae.t+(1-Ie)*Ae.h}fe.insert("line",":first-child").attr({x1:Rr,x2:Rr,y1:me,y2:be,"stroke-width":We,stroke:Oe,"stroke-dasharray":o.dashStyle(at.spikedash,We)}).classed("spikeline",!0).classed("crisp",!0),fe.insert("line",":first-child").attr({x1:Rr,x2:Rr,y1:me,y2:be,"stroke-width":We+2,stroke:Je}).classed("spikeline",!0).classed("crisp",!0)}Fe.indexOf("marker")!==-1&&fe.insert("circle",":first-child").attr({cx:Rr,cy:de-(at.side!=="top"?We:-We),r:We,fill:Oe}).classed("spikeline",!0)}}}function ie(V,re,ae){if(!ae||ae.length!==V._hoverdata.length)return!0;for(var fe=ae.length-1;fe>=0;fe--){var xe=ae[fe],Ae=V._hoverdata[fe];if(xe.curveNumber!==Ae.curveNumber||String(xe.pointNumber)!==String(Ae.pointNumber)||String(xe.pointNumbers)!==String(Ae.pointNumbers)||xe.binNumber!==Ae.binNumber)return!0}return!1}function le(V,re){return!0}function q(V,re){return i.plainText(V||"",{len:re,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function J(V,re){for(var ae=re.charAt(0),fe=[],xe=[],Ae=[],Pe=0;Pe"," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}}}),h1=He({"src/components/shapes/draw_newshape/constants.js"(Y,H){var h=32;H.exports={CIRCLE_SIDES:h,i000:0,i090:h/4,i180:h/2,i270:h/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}}),v1=He({"src/components/selections/helpers.js"(Y,H){var h=Qr().strTranslate;function x(t,r){switch(t.type){case"log":return t.p2d(r);case"date":return t.p2r(r,0,t.calendar);default:return t.p2r(r)}}function A(t,r){switch(t.type){case"log":return t.d2p(r);case"date":return t.r2p(r,0,t.calendar);default:return t.r2p(r)}}function E(t){var r=t._id.charAt(0)==="y"?1:0;return function(i){return x(t,i[r])}}function e(t){return h(t.xaxis._offset,t.yaxis._offset)}H.exports={p2r:x,r2p:A,axValue:E,getTransform:e}}}),Wd=He({"src/components/shapes/draw_newshape/helpers.js"(Y){var H=Qg(),h=h1(),x=h.CIRCLE_SIDES,A=h.SQRT2,E=v1(),e=E.p2r,t=E.r2p,r=[0,3,4,5,6,1,2],i=[0,3,4,1,2];Y.writePaths=function(n){var s=n.length;if(!s)return"M0,0Z";for(var c="",f=0;f0&&ml&&(w="X"),w});return f>l&&(m=m.replace(/[\s,]*X.*/,""),h.log("Ignoring extra params in segment "+c)),p+m})}function E(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}}}),Xb=He({"src/components/shapes/display_labels.js"(Y,H){var h=Qr(),x=wo(),A=jl(),E=Io(),e=Wd().readPaths,t=Xd(),r=t.getPathString,i=a1(),a=Pf().FROM_TL;H.exports=function(c,f,p,v){if(v.selectAll(".shape-label").remove(),!!(p.label.text||p.label.texttemplate)){var T;if(p.label.texttemplate){var l={};if(p.type!=="path"){var m=x.getFromId(c,p.xref),w=x.getFromId(c,p.yref);for(var S in i){var M=i[S](p,m,w);M!==void 0&&(l[S]=M)}}T=h.texttemplateStringForShapes(p.label.texttemplate,{},c._fullLayout._d3locale,l)}else T=p.label.text;var _={"data-index":f},b=p.label.font,d={"data-notex":1},u=v.append("g").attr(_).classed("shape-label",!0),g=u.append("text").attr(d).classed("shape-label-text",!0).text(T),y,R,I,z;if(p.path){var F=r(c,p),B=e(F,c);y=1/0,I=1/0,R=-1/0,z=-1/0;for(var O=0;O=s?v=c-p:v=p-c,-180/Math.PI*Math.atan2(v,T)}function n(s,c,f,p,v,T,l){var m=v.label.textposition,w=v.label.textangle,S=v.label.padding,M=v.type,_=Math.PI/180*T,b=Math.sin(_),d=Math.cos(_),u=v.label.xanchor,g=v.label.yanchor,y,R,I,z;if(M==="line"){m==="start"?(y=s,R=c):m==="end"?(y=f,R=p):(y=(s+f)/2,R=(c+p)/2),u==="auto"&&(m==="start"?w==="auto"?f>s?u="left":fs?u="right":fs?u="right":fs?u="left":f1&&!(Je.length===2&&Je[1][0]==="Z")&&(q===0&&(Je[0][0]="M"),y[le]=Je,B(),O())}}function fe(Je,Ze){if(Je===2){le=+Ze.srcElement.getAttribute("data-i"),q=+Ze.srcElement.getAttribute("data-j");var Me=y[le];!T(Me)&&!l(Me)&&ae()}}function xe(Je){ue=[];for(var Ze=0;ZeB&&Ie>O&&!de.shiftKey?s.getCursor(Xe/be,1-ht/Ie):"move";c(y,bt),kt=bt.split("-")[0]}}function hr(de){l(g)||(P&&(J=he(R.xanchor)),N&&(ee=De(R.yanchor)),R.type==="path"?Ae=R.path:(ue=P?R.x0:he(R.x0),ie=N?R.y0:De(R.y0),le=P?R.x1:he(R.x1),q=N?R.y1:De(R.y1)),ueq?(Z=ie,re="y0",se=q,ae="y1"):(Z=q,re="y1",se=ie,ae="y0"),vr(de),Fe(z,R),Oe(y,R,g),Et.moveFn=kt==="move"?wr:yt,Et.altKey=de.altKey)}function Rr(){l(g)||(c(y),We(z),S(y,g,R),x.call("_guiRelayout",g,F.getUpdateObj()))}function dr(){l(g)||We(z)}function wr(de,me){if(R.type==="path"){var be=function(ht){return ht},Ie=be,Xe=be;P?te("xanchor",R.xanchor=et(J+de)):(Ie=function(bt){return et(he(bt)+de)},Ce&&Ce.type==="date"&&(Ie=p.encodeDate(Ie))),N?te("yanchor",R.yanchor=nt(ee+me)):(Xe=function(bt){return nt(De(bt)+me)},at&&at.type==="date"&&(Xe=p.encodeDate(Xe))),te("path",R.path=_(Ae,Ie,Xe))}else P?te("xanchor",R.xanchor=et(J+de)):(te("x0",R.x0=et(ue+de)),te("x1",R.x1=et(le+de))),N?te("yanchor",R.yanchor=nt(ee+me)):(te("y0",R.y0=nt(ie+me)),te("y1",R.y1=nt(q+me)));y.attr("d",v(g,R)),Fe(z,R),r(g,I,R,Pe)}function yt(de,me){if(X){var be=function(ba){return ba},Ie=be,Xe=be;P?te("xanchor",R.xanchor=et(J+de)):(Ie=function(Xa){return et(he(Xa)+de)},Ce&&Ce.type==="date"&&(Ie=p.encodeDate(Ie))),N?te("yanchor",R.yanchor=nt(ee+me)):(Xe=function(Xa){return nt(De(Xa)+me)},at&&at.type==="date"&&(Xe=p.encodeDate(Xe))),te("path",R.path=_(Ae,Ie,Xe))}else if(U){if(kt==="resize-over-start-point"){var ht=ue+de,bt=N?ie-me:ie+me;te("x0",R.x0=P?ht:et(ht)),te("y0",R.y0=N?bt:nt(bt))}else if(kt==="resize-over-end-point"){var Ct=le+de,Zt=N?q-me:q+me;te("x1",R.x1=P?Ct:et(Ct)),te("y1",R.y1=N?Zt:nt(Zt))}}else{var Wt=function(ba){return kt.indexOf(ba)!==-1},rr=Wt("n"),Jt=Wt("s"),mr=Wt("w"),ia=Wt("e"),Ia=rr?Z+me:Z,La=Jt?se+me:se,Aa=mr?Q+de:Q,Ga=ia?V+de:V;N&&(rr&&(Ia=Z-me),Jt&&(La=se-me)),(!N&&La-Ia>O||N&&Ia-La>O)&&(te(re,R[re]=N?Ia:nt(Ia)),te(ae,R[ae]=N?La:nt(La))),Ga-Aa>B&&(te(fe,R[fe]=P?Aa:et(Aa)),te(xe,R[xe]=P?Ga:et(Ga)))}y.attr("d",v(g,R)),Fe(z,R),r(g,I,R,Pe)}function Fe(de,me){(P||N)&&be();function be(){var Ie=me.type!=="path",Xe=de.selectAll(".visual-cue").data([0]),ht=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ht}).classed("visual-cue",!0);var bt=he(P?me.xanchor:A.midRange(Ie?[me.x0,me.x1]:p.extractPathCoords(me.path,f.paramIsX))),Ct=De(N?me.yanchor:A.midRange(Ie?[me.y0,me.y1]:p.extractPathCoords(me.path,f.paramIsY)));if(bt=p.roundPositionForSharpStrokeRendering(bt,ht),Ct=p.roundPositionForSharpStrokeRendering(Ct,ht),P&&N){var Zt="M"+(bt-1-ht)+","+(Ct-1-ht)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",Zt)}else if(P){var Wt="M"+(bt-1-ht)+","+(Ct-9-ht)+"v18 h2 v-18 Z";Xe.attr("d",Wt)}else{var rr="M"+(bt-9-ht)+","+(Ct-1-ht)+"h18 v2 h-18 Z";Xe.attr("d",rr)}}}function We(de){de.selectAll(".visual-cue").remove()}function Oe(de,me,be){var Ie=me.xref,Xe=me.yref,ht=E.getFromId(be,Ie),bt=E.getFromId(be,Xe),Ct="";Ie!=="paper"&&!ht.autorange&&(Ct+=Ie),Xe!=="paper"&&!bt.autorange&&(Ct+=Xe),o.setClipUrl(de,Ct?"clip"+be._fullLayout._uid+Ct:null,be)}}function _(g,y,R){return g.replace(f.segmentRE,function(I){var z=0,F=I.charAt(0),B=f.paramIsX[F],O=f.paramIsY[F],P=f.numParams[F],N=I.substr(1).replace(f.paramRE,function(U){return z>=P||(B[z]?U=y(U):O[z]&&(U=R(U)),z++),U});return F+N})}function b(g,y){if(m(g)){var R=y.node(),I=+R.getAttribute("data-index");if(I>=0){if(I===g._fullLayout._activeShapeIndex){d(g);return}g._fullLayout._activeShapeIndex=I,g._fullLayout._deactivateShape=d,T(g)}}}function d(g){if(m(g)){var y=g._fullLayout._activeShapeIndex;y>=0&&(i(g),delete g._fullLayout._activeShapeIndex,T(g))}}function u(g){if(m(g)){i(g);var y=g._fullLayout._activeShapeIndex,R=(g.layout||{}).shapes||[];if(y1?(ie=["toggleHover"],le=["resetViews"]):u?(ue=["zoomInGeo","zoomOutGeo"],ie=["hoverClosestGeo"],le=["resetGeo"]):d?(ie=["hoverClosest3d"],le=["resetCameraDefault3d","resetCameraLastSave3d"]):I?(ue=["zoomInMapbox","zoomOutMapbox"],ie=["toggleHover"],le=["resetViewMapbox"]):z?(ue=["zoomInMap","zoomOutMap"],ie=["toggleHover"],le=["resetViewMap"]):g?ie=["hoverClosestPie"]:O?(ie=["hoverClosestCartesian","hoverCompareCartesian"],le=["resetViewSankey"]):ie=["toggleHover"],b&&ie.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s(T)||N)&&(ie=[]),b&&!P&&(ue=["zoomIn2d","zoomOut2d","autoScale2d"],le[0]!=="resetViews"&&(le=["resetScale2d"])),d?q=["zoom3d","pan3d","orbitRotation","tableRotation"]:b&&!P||R?q=["zoom2d","pan2d"]:I||z||u?q=["pan2d"]:F&&(q=["zoom2d"]),n(T)&&q.push("select2d","lasso2d");var J=[],ee=function(V){J.indexOf(V)===-1&&ie.indexOf(V)!==-1&&J.push(V)};if(Array.isArray(M)){for(var Z=[],se=0;sew?T.substr(w):l.substr(m))+S}function c(p,v){for(var T=v._size,l=T.h/T.w,m={},w=Object.keys(p),S=0;St*R&&!B)){for(w=0;wq&&aeie&&(ie=ae);var xe=(ie-ue)/(2*le);u/=xe,ue=_.l2r(ue),ie=_.l2r(ie),_.range=_._input.range=U=O[1]||X[1]<=O[0])&&te[0]P[0])return!0}return!1}function S(O){var P=O._fullLayout,N=P._size,U=N.p,X=o.list(O,"",!0),te,ue,ie,le,q,J;if(P._paperdiv.style({width:O._context.responsive&&P.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":P.width+"px",height:O._context.responsive&&P.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(r.setSize,P.width,P.height),O._context.setBackground(O,P.paper_bgcolor),Y.drawMainTitle(O),a.manage(O),!P._has("cartesian"))return x.previousPromises(O);function ee(Oe,de,me){var be=Oe._lw/2;if(Oe._id.charAt(0)==="x"){if(de){if(me==="top")return de._offset-U-be}else return N.t+N.h*(1-(Oe.position||0))+be%1;return de._offset+de._length+U+be}if(de){if(me==="right")return de._offset+de._length+U+be}else return N.l+N.w*(Oe.position||0)+be%1;return de._offset-U-be}for(te=0;te0){y(O,te,q,le),ie.attr({x:ue,y:te,"text-anchor":U,dy:z(P.yanchor)}).call(E.positionText,ue,te);var J=(P.text.match(E.BR_TAG_ALL)||[]).length;if(J){var ee=n.LINE_SPACING*J+n.MID_SHIFT;P.y===0&&(ee=-ee),ie.selectAll(".line").each(function(){var re=+this.getAttribute("dy").slice(0,-2)-ee+"em";this.setAttribute("dy",re)})}var Z=H.selectAll(".gtitle-subtitle");if(Z.node()){var se=ie.node().getBBox(),Q=se.y+se.height,V=Q+i.SUBTITLE_PADDING_EM*P.subtitle.font.size;Z.attr({x:ue,y:V,"text-anchor":U,dy:z(P.yanchor)}).call(E.positionText,ue,V)}}}};function d(O,P,N,U,X){var te=P.yref==="paper"?O._fullLayout._size.h:O._fullLayout.height,ue=A.isTopAnchor(P)?U:U-X,ie=N==="b"?te-ue:ue;return A.isTopAnchor(P)&&N==="t"||A.isBottomAnchor(P)&&N==="b"?!1:ie.5?"t":"b",ue=O._fullLayout.margin[te],ie=0;return P.yref==="paper"?ie=N+P.pad.t+P.pad.b:P.yref==="container"&&(ie=u(te,U,X,O._fullLayout.height,N)+P.pad.t+P.pad.b),ie>ue?ie:0}function y(O,P,N,U){var X="title.automargin",te=O._fullLayout.title,ue=te.y>.5?"t":"b",ie={x:te.x,y:te.y,t:0,b:0},le={};te.yref==="paper"&&d(O,te,ue,P,U)?ie[ue]=N:te.yref==="container"&&(le[ue]=N,O._fullLayout._reservedMargin[X]=le),x.allowAutoMargin(O,X),x.autoMargin(O,X,ie)}function R(O,P){var N=O.title,U=O._size,X=0;switch(P===v?X=N.pad.l:P===l&&(X=-N.pad.r),N.xref){case"paper":return U.l+U.w*N.x+X;case"container":default:return O.width*N.x+X}}function I(O,P){var N=O.title,U=O._size,X=0;if(P==="0em"||!P?X=-N.pad.b:P===n.CAP_SHIFT+"em"&&(X=N.pad.t),N.y==="auto")return U.t/2;switch(N.yref){case"paper":return U.t+U.h-U.h*N.y+X;case"container":default:return O.height-O.height*N.y+X}}function z(O){return O==="top"?n.CAP_SHIFT+.3+"em":O==="bottom"?"-0.3em":n.MID_SHIFT+"em"}function F(O){var P=O.title,N=T;return A.isRightAnchor(P)?N=l:A.isLeftAnchor(P)&&(N=v),N}function B(O){var P=O.title,N="0em";return A.isTopAnchor(P)?N=n.CAP_SHIFT+"em":A.isMiddleAnchor(P)&&(N=n.MID_SHIFT+"em"),N}Y.doTraceStyle=function(O){var P=O.calcdata,N=[],U;for(U=0;U=0;F--){var B=M.append("path").attr(b).style("opacity",F?.1:d).call(E.stroke,g).call(E.fill,u).call(e.dashLine,F?"solid":R,F?4+y:y);if(s(B,v,m),I){var O=t(v.layout,"selections",m);B.style({cursor:"move"});var P={element:B.node(),plotinfo:w,gd:v,editHelpers:O,isActiveSelection:!0},N=h(_,v);x(N,B,P)}else B.style("pointer-events",F?"all":"none");z[F]=B}var U=z[0],X=z[1];X.node().addEventListener("click",function(){return c(v,U)})}}function s(v,T,l){var m=l.xref+l.yref;e.setClipUrl(v,"clip"+T._fullLayout._uid+m,T)}function c(v,T){if(o(v)){var l=T.node(),m=+l.getAttribute("data-index");if(m>=0){if(m===v._fullLayout._activeSelectionIndex){p(v);return}v._fullLayout._activeSelectionIndex=m,v._fullLayout._deactivateSelection=p,a(v)}}}function f(v){if(o(v)){var T=v._fullLayout.selections.length-1;v._fullLayout._activeSelectionIndex=T,v._fullLayout._deactivateSelection=p,a(v)}}function p(v){if(o(v)){var T=v._fullLayout._activeSelectionIndex;T>=0&&(A(v),delete v._fullLayout._activeSelectionIndex,a(v))}}}}),NM=He({"node_modules/polybooljs/lib/build-log.js"(Y,H){function h(){var x,A=0,E=!1;function e(t,r){return x.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),x}return x={list:[],segmentId:function(){return A++},checkIntersection:function(t,r){return e("check",{seg1:t,seg2:r})},segmentChop:function(t,r){return e("div_seg",{seg:t,pt:r}),e("chop",{seg:t,pt:r})},statusRemove:function(t){return e("pop_seg",{seg:t})},segmentUpdate:function(t){return e("seg_update",{seg:t})},segmentNew:function(t,r){return e("new_seg",{seg:t,primary:r})},segmentRemove:function(t){return e("rem_seg",{seg:t})},tempStatus:function(t,r,i){return e("temp_status",{seg:t,above:r,below:i})},rewind:function(t){return e("rewind",{seg:t})},status:function(t,r,i){return e("status",{seg:t,above:r,below:i})},vert:function(t){return t===E?x:(E=t,e("vert",{x:t}))},log:function(t){return typeof t!="string"&&(t=JSON.stringify(t,!1," ")),e("log",{txt:t})},reset:function(){return e("reset")},selected:function(t){return e("selected",{segs:t})},chainStart:function(t){return e("chain_start",{seg:t})},chainRemoveHead:function(t,r){return e("chain_rem_head",{index:t,pt:r})},chainRemoveTail:function(t,r){return e("chain_rem_tail",{index:t,pt:r})},chainNew:function(t,r){return e("chain_new",{pt1:t,pt2:r})},chainMatch:function(t){return e("chain_match",{index:t})},chainClose:function(t){return e("chain_close",{index:t})},chainAddHead:function(t,r){return e("chain_add_head",{index:t,pt:r})},chainAddTail:function(t,r){return e("chain_add_tail",{index:t,pt:r})},chainConnect:function(t,r){return e("chain_con",{index1:t,index2:r})},chainReverse:function(t){return e("chain_rev",{index:t})},chainJoin:function(t,r){return e("chain_join",{index1:t,index2:r})},done:function(){return e("done")}},x}H.exports=h}}),UM=He({"node_modules/polybooljs/lib/epsilon.js"(Y,H){function h(x){typeof x!="number"&&(x=1e-10);var A={epsilon:function(E){return typeof E=="number"&&(x=E),x},pointAboveOrOnLine:function(E,e,t){var r=e[0],i=e[1],a=t[0],o=t[1],n=E[0],s=E[1];return(a-r)*(s-i)-(o-i)*(n-r)>=-x},pointBetween:function(E,e,t){var r=E[1]-e[1],i=t[0]-e[0],a=E[0]-e[0],o=t[1]-e[1],n=a*i+r*o;if(n-x)},pointsSameX:function(E,e){return Math.abs(E[0]-e[0])x!=a-r>x&&(i-s)*(r-c)/(a-c)+s-t>x&&(o=!o),i=s,a=c}return o}};return A}H.exports=h}}),jM=He({"node_modules/polybooljs/lib/linked-list.js"(Y,H){var h={create:function(){var x={root:{root:!0,next:null},exists:function(A){return!(A===null||A===x.root)},isEmpty:function(){return x.root.next===null},getHead:function(){return x.root.next},insertBefore:function(A,E){for(var e=x.root,t=x.root.next;t!==null;){if(E(t)){A.prev=t.prev,A.next=t,t.prev.next=A,t.prev=A;return}e=t,t=t.next}e.next=A,A.prev=e,A.next=null},findTransition:function(A){for(var E=x.root,e=x.root.next;e!==null&&!A(e);)E=e,e=e.next;return{before:E===x.root?null:E,after:e,insert:function(t){return t.prev=E,t.next=e,E.next=t,e!==null&&(e.prev=t),t}}}};return x},node:function(x){return x.prev=null,x.next=null,x.remove=function(){x.prev.next=x.next,x.next&&(x.next.prev=x.prev),x.prev=null,x.next=null},x}};H.exports=h}}),VM=He({"node_modules/polybooljs/lib/intersecter.js"(Y,H){var h=jM();function x(A,E,e){function t(T,l){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:null,below:null},otherFill:null}}function r(T,l,m){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=h.create();function a(T,l,m,w,S,M){var _=E.pointsCompare(l,S);return _!==0?_:E.pointsSame(m,M)?0:T!==w?T?1:-1:E.pointAboveOrOnLine(m,w?S:M,w?M:S)?1:-1}function o(T,l){i.insertBefore(T,function(m){var w=a(T.isStart,T.pt,l,m.isStart,m.pt,m.other.pt);return w<0})}function n(T,l){var m=h.node({isStart:!0,pt:T.start,seg:T,primary:l,other:null,status:null});return o(m,T.end),m}function s(T,l,m){var w=h.node({isStart:!1,pt:l.end,seg:l,primary:m,other:T,status:null});T.other=w,o(w,T.pt)}function c(T,l){var m=n(T,l);return s(m,T,l),m}function f(T,l){e&&e.segmentChop(T.seg,l),T.other.remove(),T.seg.end=l,T.other.pt=l,o(T.other,T.pt)}function p(T,l){var m=r(l,T.seg.end,T.seg);return f(T,l),c(m,T.primary)}function v(T,l){var m=h.create();function w(B,O){var P=B.seg.start,N=B.seg.end,U=O.seg.start,X=O.seg.end;return E.pointsCollinear(P,U,X)?E.pointsCollinear(N,U,X)||E.pointAboveOrOnLine(N,U,X)?1:-1:E.pointAboveOrOnLine(P,U,X)?1:-1}function S(B){return m.findTransition(function(O){var P=w(B,O.ev);return P>0})}function M(B,O){var P=B.seg,N=O.seg,U=P.start,X=P.end,te=N.start,ue=N.end;e&&e.checkIntersection(P,N);var ie=E.linesIntersect(U,X,te,ue);if(ie===!1){if(!E.pointsCollinear(U,X,te)||E.pointsSame(U,ue)||E.pointsSame(X,te))return!1;var le=E.pointsSame(U,te),q=E.pointsSame(X,ue);if(le&&q)return O;var J=!le&&E.pointBetween(U,te,ue),ee=!q&&E.pointBetween(X,te,ue);if(le)return ee?p(O,X):p(B,ue),O;J&&(q||(ee?p(O,X):p(B,ue)),p(O,U))}else ie.alongA===0&&(ie.alongB===-1?p(B,te):ie.alongB===0?p(B,ie.pt):ie.alongB===1&&p(B,ue)),ie.alongB===0&&(ie.alongA===-1?p(O,U):ie.alongA===0?p(O,ie.pt):ie.alongA===1&&p(O,X));return!1}for(var _=[];!i.isEmpty();){var b=i.getHead();if(e&&e.vert(b.pt[0]),b.isStart){let B=function(){if(u){var O=M(b,u);if(O)return O}return g?M(b,g):!1};e&&e.segmentNew(b.seg,b.primary);var d=S(b),u=d.before?d.before.ev:null,g=d.after?d.after.ev:null;e&&e.tempStatus(b.seg,u?u.seg:!1,g?g.seg:!1);var y=B();if(y){if(A){var R;b.seg.myFill.below===null?R=!0:R=b.seg.myFill.above!==b.seg.myFill.below,R&&(y.seg.myFill.above=!y.seg.myFill.above)}else y.seg.otherFill=b.seg.myFill;e&&e.segmentUpdate(y.seg),b.other.remove(),b.remove()}if(i.getHead()!==b){e&&e.rewind(b.seg);continue}if(A){var R;b.seg.myFill.below===null?R=!0:R=b.seg.myFill.above!==b.seg.myFill.below,g?b.seg.myFill.below=g.seg.myFill.above:b.seg.myFill.below=T,R?b.seg.myFill.above=!b.seg.myFill.below:b.seg.myFill.above=b.seg.myFill.below}else if(b.seg.otherFill===null){var I;g?b.primary===g.primary?I=g.seg.otherFill.above:I=g.seg.myFill.above:I=b.primary?l:T,b.seg.otherFill={above:I,below:I}}e&&e.status(b.seg,u?u.seg:!1,g?g.seg:!1),b.other.status=d.insert(h.node({ev:b}))}else{var z=b.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(z.prev)&&m.exists(z.next)&&M(z.prev.ev,z.next.ev),e&&e.statusRemove(z.ev.seg),z.remove(),!b.primary){var F=b.seg.myFill;b.seg.myFill=b.seg.otherFill,b.seg.otherFill=F}_.push(b.seg)}i.getHead().remove()}return e&&e.done(),_}return A?{addRegion:function(T){for(var l,m=T[T.length-1],w=0;wr!=p>r&&t<(f-s)*(r-c)/(p-c)+s;v&&(i=!i)}return i}}}),nm=He({"src/lib/polygon.js"(Y,H){var h=r1().dot,x=qo().BADNUM,A=H.exports={};A.tester=function(e){var t=e.slice(),r=t[0][0],i=r,a=t[0][1],o=a,n;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),n=1;ni||S===x||So||m&&c(l))}function p(l,m){var w=l[0],S=l[1];if(w===x||wi||S===x||So)return!1;var M=t.length,_=t[0][0],b=t[0][1],d=0,u,g,y,R,I;for(u=1;uMath.max(g,_)||S>Math.max(y,b)))if(Sn||Math.abs(h(p,c))>i)return!0;return!1},A.filter=function(e,t){var r=[e[0]],i=0,a=0;function o(s){e.push(s);var c=r.length,f=i;r.splice(a+1);for(var p=f+1;p1){var n=e.pop();o(n)}return{addPt:o,raw:e,filtered:r}}}}),ZM=He({"src/components/selections/constants.js"(Y,H){H.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}}),YM=He({"src/components/selections/select.js"(Y,H){var h=WM(),x=XM(),A=qi(),E=Io().dashStyle,e=zi(),t=xc(),r=Dh().makeEventData,i=yv(),a=i.freeMode,o=i.rectMode,n=i.drawMode,s=i.openMode,c=i.selectMode,f=Xd(),p=rm(),v=p1(),T=Vd().clearOutline,l=Wd(),m=l.handleEllipse,w=l.readPaths,S=d1().newShapes,M=Wb(),_=Qb().activateLastSelection,b=Qr(),d=b.sorterAsc,u=nm(),g=o1(),y=yc().getFromId,R=tm(),I=am().redrawReglTraces,z=ZM(),F=z.MINSELECT,B=u.filter,O=u.tester,P=v1(),N=P.p2r,U=P.axValue,X=P.getTransform;function te(Fe){return Fe.subplot!==void 0}function ue(Fe,We,Oe,de,me){var be=!te(de),Ie=a(me),Xe=o(me),ht=s(me),bt=n(me),Ct=c(me),Zt=me==="drawline",Wt=me==="drawcircle",rr=Zt||Wt,Jt=de.gd,mr=Jt._fullLayout,ia=Ct&&mr.newselection.mode==="immediate"&&be,Ia=mr._zoomlayer,La=de.element.getBoundingClientRect(),Aa=de.plotinfo,Ga=X(Aa),ba=We-La.left,Xa=Oe-La.top;mr._calcInverseTransform(Jt);var yn=b.apply3DTransform(mr._invTransform)(ba,Xa);ba=yn[0],Xa=yn[1];var Kt=mr._invScaleX,zt=mr._invScaleY,$t=ba,Ht=Xa,Tr="M"+ba+","+Xa,qr=de.xaxes[0],ha=de.yaxes[0],Gr=qr._length,wa=ha._length,Da=Fe.altKey&&!(n(me)&&ht),Ya,Ka,an,mt,ot,Lr,Er;Z(Fe,Jt,de),Ie&&(Ya=B([[ba,Xa]],z.BENDPX));var Mr=Ia.selectAll("path.select-outline-"+Aa.id).data([1]),br=bt?mr.newshape:mr.newselection;bt&&(de.hasText=br.label.text||br.label.texttemplate);var Or=bt&&!ht?br.fillcolor:"rgba(0,0,0,0)",jr=br.line.color||(be?e.contrast(Jt._fullLayout.plot_bgcolor):"#7f7f7f");Mr.enter().append("path").attr("class","select-outline select-outline-"+Aa.id).style({opacity:bt?br.opacity/2:1,"stroke-dasharray":E(br.line.dash,br.line.width),"stroke-width":br.line.width+"px","shape-rendering":"crispEdges"}).call(e.stroke,jr).call(e.fill,Or).attr("fill-rule","evenodd").classed("cursor-move",!!bt).attr("transform",Ga).attr("d",Tr+"Z");var Dr=Ia.append("path").attr("class","zoombox-corners").style({fill:e.background,stroke:e.defaultLine,"stroke-width":1}).attr("transform",Ga).attr("d","M0,0Z");if(bt&&de.hasText){var Hr=Ia.select(".label-temp");Hr.empty()&&(Hr=Ia.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var na=mr._uid+z.SELECTID,ta=[],At=ae(Jt,de.xaxes,de.yaxes,de.subplot);ia&&!Fe.shiftKey&&(de._clearSubplotSelections=function(){if(be){var Ar=qr._id,oa=ha._id;nt(Jt,Ar,oa,At);for(var ga=(Jt.layout||{}).selections||[],Sa=[],za=!1,ra=0;ra=0){Jt._fullLayout._deactivateShape(Jt);return}if(!bt){var ga=mr.clickmode;g.done(na).then(function(){if(g.clear(na),Ar===2){for(Mr.remove(),ot=0;ot-1&&ie(oa,Jt,de.xaxes,de.yaxes,de.subplot,de,Mr),ga==="event"&&wr(Jt,void 0);t.click(Jt,oa,Aa.id)}).catch(b.error)}},de.doneFn=function(){Dr.remove(),g.done(na).then(function(){g.clear(na),!ia&&mt&&de.selectionDefs&&(mt.subtract=Da,de.selectionDefs.push(mt),de.mergedPolygons.length=0,[].push.apply(de.mergedPolygons,an)),(ia||bt)&&V(de,ia),de.doneFnCompleted&&de.doneFnCompleted(ta),Ct&&wr(Jt,Er)}).catch(b.error)}}function ie(Fe,We,Oe,de,me,be,Ie){var Xe=We._hoverdata,ht=We._fullLayout,bt=ht.clickmode,Ct=bt.indexOf("event")>-1,Zt=[],Wt,rr,Jt,mr,ia,Ia,La,Aa,Ga,ba;if(xe(Xe)){Z(Fe,We,be),Wt=ae(We,Oe,de,me);var Xa=Ae(Xe,Wt),yn=Xa.pointNumbers.length>0;if(yn?Ce(Wt,Xa):je(Wt)&&(La=Pe(Xa))){for(Ie&&Ie.remove(),ba=0;ba=0}function Q(Fe){return Fe._fullLayout._activeSelectionIndex>=0}function V(Fe,We){var Oe=Fe.dragmode,de=Fe.plotinfo,me=Fe.gd;se(me)&&me._fullLayout._deactivateShape(me),Q(me)&&me._fullLayout._deactivateSelection(me);var be=me._fullLayout,Ie=be._zoomlayer,Xe=n(Oe),ht=c(Oe);if(Xe||ht){var bt=Ie.selectAll(".select-outline-"+de.id);if(bt&&me._fullLayout._outlining){var Ct;Xe&&(Ct=S(bt,Fe)),Ct&&A.call("_guiRelayout",me,{shapes:Ct});var Zt;ht&&!te(Fe)&&(Zt=M(bt,Fe)),Zt&&(me._fullLayout._noEmitSelectedAtStart=!0,A.call("_guiRelayout",me,{selections:Zt}).then(function(){We&&_(me)})),me._fullLayout._outlining=!1}}de.selection={},de.selection.selectionDefs=Fe.selectionDefs=[],de.selection.mergedPolygons=Fe.mergedPolygons=[]}function re(Fe){return Fe._id}function ae(Fe,We,Oe,de){if(!Fe.calcdata)return[];var me=[],be=We.map(re),Ie=Oe.map(re),Xe,ht,bt;for(bt=0;bt0,be=me?de[0]:Oe;return We.selectedpoints?We.selectedpoints.indexOf(be)>-1:!1}function Ce(Fe,We){var Oe=[],de,me,be,Ie;for(Ie=0;Ie0&&Oe.push(de);if(Oe.length===1&&(be=Oe[0]===We.searchInfo,be&&(me=We.searchInfo.cd[0].trace,me.selectedpoints.length===We.pointNumbers.length))){for(Ie=0;Ie1||(We+=de.selectedpoints.length,We>1)))return!1;return We===1}function at(Fe,We,Oe){var de;for(de=0;de-1&&We;if(!Ie&&We){var Ar=Et(Fe,!0);if(Ar.length){var oa=Ar[0].xref,ga=Ar[0].yref;if(oa&&ga){var Sa=Yt(Ar),za=hr([y(Fe,oa,"x"),y(Fe,ga,"y")]);za(ta,Sa)}}Fe._fullLayout._noEmitSelectedAtStart?Fe._fullLayout._noEmitSelectedAtStart=!1:or&&wr(Fe,ta),Wt._reselect=!1}if(!Ie&&Wt._deselect){var ra=Wt._deselect;Xe=ra.xref,ht=ra.yref,et(Xe,ht,Ct)||nt(Fe,Xe,ht,de),or&&(ta.points.length?wr(Fe,ta):yt(Fe)),Wt._deselect=!1}return{eventData:ta,selectionTesters:Oe}}function De(Fe){var We=Fe.calcdata;if(We)for(var Oe=0;Oe=0){Or._fullLayout._deactivateShape(Or);return}var jr=Or._fullLayout.clickmode;if(J(Or),Mr===2&&!Me&&Ka(),Ze)jr.indexOf("select")>-1&&d(br,Or,nt,Ke,xe.id,Ct),jr.indexOf("event")>-1&&n.click(Or,br,xe.id);else if(Mr===1&&Me){var Dr=at?he:we,Hr=at==="s"||tt==="w"?0:1,na=Dr._name+".range["+Hr+"]",ta=P(Dr,Hr),At="left",or="middle";if(Dr.fixedrange)return;at?(or=at==="n"?"top":"bottom",Dr.side==="right"&&(At="right")):tt==="e"&&(At="right"),Or._context.showAxisRangeEntryBoxes&&h.select(bt).call(i.makeEditable,{gd:Or,immediate:!0,background:Or._fullLayout.paper_bgcolor,text:String(ta),fill:Dr.tickfont?Dr.tickfont.color:"#444",horizontalAlign:At,verticalAlign:or}).on("edit",function(Ar){var oa=Dr.d2r(Ar);oa!==void 0&&t.call("_guiRelayout",Or,na,oa)})}}f.init(Ct);var rr,Jt,mr,ia,Ia,La,Aa,Ga,ba,Xa;function yn(Mr,br,Or){var jr=bt.getBoundingClientRect();rr=br-jr.left,Jt=Or-jr.top,fe._fullLayout._calcInverseTransform(fe);var Dr=x.apply3DTransform(fe._fullLayout._invTransform)(rr,Jt);rr=Dr[0],Jt=Dr[1],mr={l:rr,r:rr,w:0,t:Jt,b:Jt,h:0},ia=fe._hmpixcount?fe._hmlumcount/fe._hmpixcount:E(fe._fullLayout.plot_bgcolor).getLuminance(),Ia="M0,0H"+Ut+"V"+Yt+"H0V0",La=!1,Aa="xy",Xa=!1,Ga=ue(Je,ia,Et,kt,Ia),ba=ie(Je,Et,kt)}function Kt(Mr,br){if(fe._transitioningWithDuration)return!1;var Or=Math.max(0,Math.min(Ut,be*Mr+rr)),jr=Math.max(0,Math.min(Yt,Ie*br+Jt)),Dr=Math.abs(Or-rr),Hr=Math.abs(jr-Jt);mr.l=Math.min(rr,Or),mr.r=Math.max(rr,Or),mr.t=Math.min(Jt,jr),mr.b=Math.max(Jt,jr);function na(){Aa="",mr.r=mr.l,mr.t=mr.b,ba.attr("d","M0,0Z")}if(vr.isSubplotConstrained)Dr>R||Hr>R?(Aa="xy",Dr/Ut>Hr/Yt?(Hr=Dr*Yt/Ut,Jt>jr?mr.t=Jt-Hr:mr.b=Jt+Hr):(Dr=Hr*Ut/Yt,rr>Or?mr.l=rr-Dr:mr.r=rr+Dr),ba.attr("d",Q(mr))):na();else if(hr.isSubplotConstrained)if(Dr>R||Hr>R){Aa="xy";var ta=Math.min(mr.l/Ut,(Yt-mr.b)/Yt),At=Math.max(mr.r/Ut,(Yt-mr.t)/Yt);mr.l=ta*Ut,mr.r=At*Ut,mr.b=(1-ta)*Yt,mr.t=(1-At)*Yt,ba.attr("d",Q(mr))}else na();else!dr||Hr0){var Ar;if(hr.isSubplotConstrained||!Rr&&dr.length===1){for(Ar=0;Ar1&&(na.maxallowed!==void 0&&yt===(na.range[0]1&&(ta.maxallowed!==void 0&&Fe===(ta.range[0]=0?Math.min(fe,.9):1/(1/Math.max(fe,-.3)+3.222))}function te(fe,xe,Ae){return fe?fe==="nsew"?Ae?"":xe==="pan"?"move":"crosshair":fe.toLowerCase()+"-resize":"pointer"}function ue(fe,xe,Ae,Pe,Ce){return fe.append("path").attr("class","zoombox").style({fill:xe>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",r(Ae,Pe)).attr("d",Ce+"Z")}function ie(fe,xe,Ae){return fe.append("path").attr("class","zoombox-corners").style({fill:a.background,stroke:a.defaultLine,"stroke-width":1,opacity:0}).attr("transform",r(xe,Ae)).attr("d","M0,0Z")}function le(fe,xe,Ae,Pe,Ce,je){fe.attr("d",Pe+"M"+Ae.l+","+Ae.t+"v"+Ae.h+"h"+Ae.w+"v-"+Ae.h+"h-"+Ae.w+"Z"),q(fe,xe,Ce,je)}function q(fe,xe,Ae,Pe){Ae||(fe.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),xe.transition().style("opacity",1).duration(200))}function J(fe){h.select(fe).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ee(fe){I&&fe.data&&fe._context.showTips&&(x.notifier(x._(fe,"Double-click to zoom back out"),"long"),I=!1)}function Z(fe,xe){return"M"+(fe.l-.5)+","+(xe-R-.5)+"h-3v"+(2*R+1)+"h3ZM"+(fe.r+.5)+","+(xe-R-.5)+"h3v"+(2*R+1)+"h-3Z"}function se(fe,xe){return"M"+(xe-R-.5)+","+(fe.t-.5)+"v-3h"+(2*R+1)+"v3ZM"+(xe-R-.5)+","+(fe.b+.5)+"v3h"+(2*R+1)+"v-3Z"}function Q(fe){var xe=Math.floor(Math.min(fe.b-fe.t,fe.r-fe.l,R)/2);return"M"+(fe.l-3.5)+","+(fe.t-.5+xe)+"h3v"+-xe+"h"+xe+"v-3h-"+(xe+3)+"ZM"+(fe.r+3.5)+","+(fe.t-.5+xe)+"h-3v"+-xe+"h"+-xe+"v-3h"+(xe+3)+"ZM"+(fe.r+3.5)+","+(fe.b+.5-xe)+"h-3v"+xe+"h"+-xe+"v3h"+(xe+3)+"ZM"+(fe.l-3.5)+","+(fe.b+.5-xe)+"h3v"+xe+"h"+xe+"v3h-"+(xe+3)+"Z"}function V(fe,xe,Ae,Pe,Ce){for(var je=!1,at={},tt={},Je,Ze,Me,we,he=(Ce||{}).xaHash,De=(Ce||{}).yaHash,et=0;et1&&x.warn("Full array edits are incompatible with other edits",c);var w=o[""][""];if(t(w))a.set(null);else if(Array.isArray(w))a.set(w);else return x.warn("Unrecognized full array edit value",c,w),!0;return T?!1:(f(l,m),p(i),!0)}var S=Object.keys(o).map(Number).sort(A),M=a.get(),_=M||[],b=s(m,c).get(),d=[],u=-1,g=_.length,y,R,I,z,F,B,O,P;for(y=0;y_.length-(O?0:1)){x.warn("index out of range",c,I);continue}if(B!==void 0)F.length>1&&x.warn("Insertion & removal are incompatible with edits to the same index.",c,I),t(B)?d.push(I):O?(B==="add"&&(B={}),_.splice(I,0,B),b&&b.splice(I,0,{})):x.warn("Unrecognized full object edit value",c,I,B),u===-1&&(u=I);else for(R=0;R=0;y--)_.splice(d[y],1),b&&b.splice(d[y],1);if(_.length?M||a.set(_):a.set(null),T)return!1;if(f(l,m),v!==h){var N;if(u===-1)N=S;else{for(g=Math.max(_.length,g),N=[],y=0;y=u));y++)N.push(I);for(y=u;y0&&x.log("Clearing previous rejected promises from queue."),T._promises=[]},Y.cleanLayout=function(T){var l;T||(T={}),T.xaxis1&&(T.xaxis||(T.xaxis=T.xaxis1),delete T.xaxis1),T.yaxis1&&(T.yaxis||(T.yaxis=T.yaxis1),delete T.yaxis1),T.scene1&&(T.scene||(T.scene=T.scene1),delete T.scene1);var m=(A.subplotsRegistry.cartesian||{}).attrRegex;(A.subplotsRegistry.polar||{}).attrRegex,(A.subplotsRegistry.ternary||{}).attrRegex,(A.subplotsRegistry.gl3d||{}).attrRegex;var w=Object.keys(T);for(l=0;l3?(R.x=1.02,R.xanchor="left"):R.x<-2&&(R.x=-.02,R.xanchor="right"),R.y>3?(R.y=1.02,R.yanchor="bottom"):R.y<-2&&(R.y=-.02,R.yanchor="top")),T.dragmode==="rotate"&&(T.dragmode="orbit"),e.clean(T),T.template&&T.template.layout&&Y.cleanLayout(T.template.layout),T};function a(T,l){var m=T[l],w=l.charAt(0);m&&m!=="paper"&&(T[l]=t(m,w,!0))}Y.cleanData=function(T){for(var l=0;l0)return T.substr(0,l)}Y.hasParent=function(T,l){for(var m=p(l);m;){if(m in T)return!0;m=p(m)}return!1};var v=["x","y","z"];Y.clearAxisTypes=function(T,l,m){for(var w=0;w=de.data.length||Xe<-de.data.length)throw new Error(be+" must be valid indices for gd.data.");if(me.indexOf(Xe,Ie+1)>-1||Xe>=0&&me.indexOf(-de.data.length+Xe)>-1||Xe<0&&me.indexOf(de.data.length+Xe)>-1)throw new Error("each index in "+be+" must be unique.")}}function N(de,me,be){if(!Array.isArray(de.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),P(de,me,"currentIndices"),typeof be<"u"&&!Array.isArray(be)&&(be=[be]),typeof be<"u"&&P(de,be,"newIndices"),typeof be<"u"&&me.length!==be.length)throw new Error("current and new indices must be of equal length.")}function U(de,me,be){var Ie,Xe;if(!Array.isArray(de.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("traces must be defined.");for(Array.isArray(me)||(me=[me]),Ie=0;Ie"u")throw new Error("indices must be an integer or array of integers");P(de,be,"indices");for(var ht in me){if(!Array.isArray(me[ht])||me[ht].length!==be.length)throw new Error("attribute "+ht+" must be an array of length equal to indices array length");if(Xe&&(!(ht in Ie)||!Array.isArray(Ie[ht])||Ie[ht].length!==me[ht].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function te(de,me,be,Ie){var Xe=A.isPlainObject(Ie),ht=[],bt,Ct,Zt,Wt,rr;Array.isArray(be)||(be=[be]),be=O(be,de.data.length-1);for(var Jt in me)for(var mr=0;mr=0&&rr=0&&rr"u")return Wt=Y.redraw(de),t.add(de,Xe,bt,ht,Ct),Wt;Array.isArray(be)||(be=[be]);try{N(de,Ie,be)}catch(rr){throw de.data.splice(de.data.length-me.length,me.length),rr}return t.startSequence(de),t.add(de,Xe,bt,ht,Ct),Wt=Y.moveTraces(de,Ie,be),t.stopSequence(de),Wt}function ee(de,me){de=A.getGraphDiv(de);var be=[],Ie=Y.addTraces,Xe=ee,ht=[de,be,me],bt=[de,me],Ct,Zt;if(typeof me>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(me)||(me=[me]),P(de,me,"indices"),me=O(me,de.data.length-1),me.sort(A.sorterDes),Ct=0;Ct"u")for(be=[],Wt=0;Wt0&&typeof Ht.parts[ha]!="string";)ha--;var Gr=Ht.parts[ha],wa=Ht.parts[ha-1]+"."+Gr,Da=Ht.parts.slice(0,ha).join("."),Ya=E(de.layout,Da).get(),Ka=E(Ie,Da).get(),an=Ht.get();if(Tr!==void 0){Ga[$t]=Tr,ba[$t]=Gr==="reverse"?Tr:Q(an);var mt=i.getLayoutValObject(Ie,Ht.parts);if(mt&&mt.impliedEdits&&Tr!==null)for(var ot in mt.impliedEdits)Xa(A.relativeAttr($t,ot),mt.impliedEdits[ot]);if(["width","height"].indexOf($t)!==-1)if(Tr){Xa("autosize",null);var Lr=$t==="height"?"width":"height";Xa(Lr,Ie[Lr])}else Ie[$t]=de._initialAutoSize[$t];else if($t==="autosize")Xa("width",Tr?null:Ie.width),Xa("height",Tr?null:Ie.height);else if(wa.match(Ce))zt(wa),E(Ie,Da+"._inputRange").set(null);else if(wa.match(je)){zt(wa),E(Ie,Da+"._inputRange").set(null);var Er=E(Ie,Da).get();Er._inputDomain&&(Er._input.domain=Er._inputDomain.slice())}else wa.match(at)&&E(Ie,Da+"._inputDomain").set(null);if(Gr==="type"){Kt=Ya;var Mr=Ka.type==="linear"&&Tr==="log",br=Ka.type==="log"&&Tr==="linear";if(Mr||br){if(!Kt||!Kt.range)Xa(Da+".autorange",!0);else if(Ka.autorange)Mr&&(Kt.range=Kt.range[1]>Kt.range[0]?[1,2]:[2,1]);else{var Or=Kt.range[0],jr=Kt.range[1];Mr?(Or<=0&&jr<=0&&Xa(Da+".autorange",!0),Or<=0?Or=jr/1e6:jr<=0&&(jr=Or/1e6),Xa(Da+".range[0]",Math.log(Or)/Math.LN10),Xa(Da+".range[1]",Math.log(jr)/Math.LN10)):(Xa(Da+".range[0]",Math.pow(10,Or)),Xa(Da+".range[1]",Math.pow(10,jr)))}Array.isArray(Ie._subplots.polar)&&Ie._subplots.polar.length&&Ie[Ht.parts[0]]&&Ht.parts[1]==="radialaxis"&&delete Ie[Ht.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(de,Ka,Tr,Xa),r.getComponentMethod("images","convertCoords")(de,Ka,Tr,Xa)}else Xa(Da+".autorange",!0),Xa(Da+".range",null);E(Ie,Da+"._inputRange").set(null)}else if(Gr.match(_)){var Dr=E(Ie,$t).get(),Hr=(Tr||{}).type;(!Hr||Hr==="-")&&(Hr="linear"),r.getComponentMethod("annotations","convertCoords")(de,Dr,Hr,Xa),r.getComponentMethod("images","convertCoords")(de,Dr,Hr,Xa)}var na=m.containerArrayMatch($t);if(na){rr=na.array,Jt=na.index;var ta=na.property,At=mt||{editType:"calc"};Jt!==""&&ta===""&&(m.isAddVal(Tr)?ba[$t]=null:m.isRemoveVal(Tr)?ba[$t]=(E(be,rr).get()||[])[Jt]:A.warn("unrecognized full object value",me)),M.update(Aa,At),Wt[rr]||(Wt[rr]={});var or=Wt[rr][Jt];or||(or=Wt[rr][Jt]={}),or[ta]=Tr,delete me[$t]}else Gr==="reverse"?(Ya.range?Ya.range.reverse():(Xa(Da+".autorange",!0),Ya.range=[1,0]),Ka.autorange?Aa.calc=!0:Aa.plot=!0):($t==="dragmode"&&(Tr===!1&&an!==!1||Tr!==!1&&an===!1)||Ie._has("scatter-like")&&Ie._has("regl")&&$t==="dragmode"&&(Tr==="lasso"||Tr==="select")&&!(an==="lasso"||an==="select")?Aa.plot=!0:mt?M.update(Aa,mt):Aa.calc=!0,Ht.set(Tr))}}for(rr in Wt){var Ar=m.applyContainerArrayChanges(de,ht(be,rr),Wt[rr],Aa,ht);Ar||(Aa.plot=!0)}for(var oa in yn){Kt=o.getFromId(de,oa);var ga=Kt&&Kt._constraintGroup;if(ga){Aa.calc=!0;for(var Sa in ga)yn[Sa]||(o.getFromId(de,Sa)._constraintShrinkable=!0)}}(Je(de)||me.height||me.width)&&(Aa.plot=!0);var za=Ie.shapes;for(Jt=0;Jt1;)if(Ie.pop(),be=E(me,Ie.join(".")+".uirevision").get(),be!==void 0)return be;return me.uirevision}function nt(de,me){for(var be=0;be=Xe.length?Xe[0]:Xe[Wt]:Xe}function Ct(Wt){return Array.isArray(ht)?Wt>=ht.length?ht[0]:ht[Wt]:ht}function Zt(Wt,rr){var Jt=0;return function(){if(Wt&&++Jt===rr)return Wt()}}return new Promise(function(Wt,rr){function Jt(){if(Ie._frameQueue.length!==0){for(;Ie._frameQueue.length;){var Gr=Ie._frameQueue.pop();Gr.onInterrupt&&Gr.onInterrupt()}de.emit("plotly_animationinterrupted",[])}}function mr(Gr){if(Gr.length!==0){for(var wa=0;waIe._timeToNext&&Ia()};Gr()}var Aa=0;function Ga(Gr){return Array.isArray(Xe)?Aa>=Xe.length?Gr.transitionOpts=Xe[Aa]:Gr.transitionOpts=Xe[0]:Gr.transitionOpts=Xe,Aa++,Gr}var ba,Xa,yn=[],Kt=me==null,zt=Array.isArray(me),$t=!Kt&&!zt&&A.isPlainObject(me);if($t)yn.push({type:"object",data:Ga(A.extendFlat({},me))});else if(Kt||["string","number"].indexOf(typeof me)!==-1)for(ba=0;ba0&&qrqr)&&ha.push(Xa);yn=ha}}yn.length>0?mr(yn):(de.emit("plotly_animated"),Wt())})}function wr(de,me,be){if(de=A.getGraphDiv(de),me==null)return Promise.resolve();if(!A.isPlotDiv(de))throw new Error("This element is not a Plotly plot: "+de+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ie,Xe,ht,bt,Ct=de._transitionData._frames,Zt=de._transitionData._frameHash;if(!Array.isArray(me))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+me);var Wt=Ct.length+me.length*2,rr=[],Jt={};for(Ie=me.length-1;Ie>=0;Ie--)if(A.isPlainObject(me[Ie])){var mr=me[Ie].name,ia=(Zt[mr]||Jt[mr]||{}).name,Ia=me[Ie].name,La=Zt[ia]||Jt[ia];ia&&Ia&&typeof Ia=="number"&&La&&bHt.index?-1:$t.index=0;Ie--){if(Xe=rr[Ie].frame,typeof Xe.name=="number"&&A.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Xe.name)for(;Zt[Xe.name="frame "+de._transitionData._counter++];);if(Zt[Xe.name]){for(ht=0;ht=0;be--)Ie=me[be],ht.push({type:"delete",index:Ie}),bt.unshift({type:"insert",index:Ie,value:Xe[Ie]});var Ct=a.modifyFrames,Zt=a.modifyFrames,Wt=[de,bt],rr=[de,ht];return t&&t.add(de,Ct,Wt,Zt,rr),a.modifyFrames(de,ht)}function Fe(de){de=A.getGraphDiv(de);var me=de._fullLayout||{},be=de._fullData||[];return a.cleanPlot([],{},be,me),a.purge(de),e.purge(de),me._container&&me._container.remove(),delete de._context,de}function We(de){var me=de._fullLayout,be=de.getBoundingClientRect();if(!A.equalDomRects(be,me._lastBBox)){var Ie=me._invTransform=A.inverseTransformMatrix(A.getFullTransformMatrix(de));me._invScaleX=Math.sqrt(Ie[0][0]*Ie[0][0]+Ie[0][1]*Ie[0][1]+Ie[0][2]*Ie[0][2]),me._invScaleY=Math.sqrt(Ie[1][0]*Ie[1][0]+Ie[1][1]*Ie[1][1]+Ie[1][2]*Ie[1][2]),me._lastBBox=be}}function Oe(de){var me=H.select(de),be=de._fullLayout;if(be._calcInverseTransform=We,be._calcInverseTransform(de),be._container=me.selectAll(".plot-container").data([0]),be._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),be._paperdiv=be._container.selectAll(".svg-container").data([0]),be._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),be._glcontainer=be._paperdiv.selectAll(".gl-container").data([{}]),be._glcontainer.enter().append("div").classed("gl-container",!0),be._paperdiv.selectAll(".main-svg").remove(),be._paperdiv.select(".modebar-container").remove(),be._paper=be._paperdiv.insert("svg",":first-child").classed("main-svg",!0),be._toppaper=be._paperdiv.append("svg").classed("main-svg",!0),be._modebardiv=be._paperdiv.append("div"),delete be._modeBar,be._hoverpaper=be._paperdiv.append("svg").classed("main-svg",!0),!be._uid){var Ie={};H.selectAll("defs").each(function(){this.id&&(Ie[this.id.split("-")[1]]=1)}),be._uid=A.randstr(Ie)}be._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),be._defs=be._paper.append("defs").attr("id","defs-"+be._uid),be._clips=be._defs.append("g").classed("clips",!0),be._topdefs=be._toppaper.append("defs").attr("id","topdefs-"+be._uid),be._topclips=be._topdefs.append("g").classed("clips",!0),be._bgLayer=be._paper.append("g").classed("bglayer",!0),be._draggers=be._paper.append("g").classed("draglayer",!0);var Xe=be._paper.append("g").classed("layer-below",!0);be._imageLowerLayer=Xe.append("g").classed("imagelayer",!0),be._shapeLowerLayer=Xe.append("g").classed("shapelayer",!0),be._cartesianlayer=be._paper.append("g").classed("cartesianlayer",!0),be._polarlayer=be._paper.append("g").classed("polarlayer",!0),be._smithlayer=be._paper.append("g").classed("smithlayer",!0),be._ternarylayer=be._paper.append("g").classed("ternarylayer",!0),be._geolayer=be._paper.append("g").classed("geolayer",!0),be._funnelarealayer=be._paper.append("g").classed("funnelarealayer",!0),be._pielayer=be._paper.append("g").classed("pielayer",!0),be._iciclelayer=be._paper.append("g").classed("iciclelayer",!0),be._treemaplayer=be._paper.append("g").classed("treemaplayer",!0),be._sunburstlayer=be._paper.append("g").classed("sunburstlayer",!0),be._indicatorlayer=be._toppaper.append("g").classed("indicatorlayer",!0),be._glimages=be._paper.append("g").classed("glimages",!0);var ht=be._toppaper.append("g").classed("layer-above",!0);be._imageUpperLayer=ht.append("g").classed("imagelayer",!0),be._shapeUpperLayer=ht.append("g").classed("shapelayer",!0),be._selectionLayer=be._toppaper.append("g").classed("selectionlayer",!0),be._infolayer=be._toppaper.append("g").classed("infolayer",!0),be._menulayer=be._toppaper.append("g").classed("menulayer",!0),be._zoomlayer=be._toppaper.append("g").classed("zoomlayer",!0),be._hoverlayer=be._hoverpaper.append("g").classed("hoverlayer",!0),be._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),de.emit("plotly_framework")}Y.animate=dr,Y.addFrames=wr,Y.deleteFrames=yt,Y.addTraces=J,Y.deleteTraces=ee,Y.extendTraces=le,Y.moveTraces=Z,Y.prependTraces=q,Y.newPlot=B,Y._doPlot=u,Y.purge=Fe,Y.react=Ut,Y.redraw=F,Y.relayout=xe,Y.restyle=se,Y.setPlotConfig=y,Y.update=Ze,Y._guiRelayout=Me(xe),Y._guiRestyle=Me(se),Y._guiUpdate=Me(Ze),Y._storeDirectGUIEdit=ae}}),id=He({"src/snapshot/helpers.js"(Y){var H=qi();Y.getDelay=function(A){return A._has&&(A._has("gl3d")||A._has("mapbox")||A._has("map"))?500:0},Y.getRedrawFunc=function(A){return function(){H.getComponentMethod("colorbar","draw")(A)}},Y.encodeSVG=function(A){return"data:image/svg+xml,"+encodeURIComponent(A)},Y.encodeJSON=function(A){return"data:application/json,"+encodeURIComponent(A)};var h=window.URL||window.webkitURL;Y.createObjectURL=function(A){return h.createObjectURL(A)},Y.revokeObjectURL=function(A){return h.revokeObjectURL(A)},Y.createBlob=function(A,E){if(E==="svg")return new window.Blob([A],{type:"image/svg+xml;charset=utf-8"});if(E==="full-json")return new window.Blob([A],{type:"application/json;charset=utf-8"});var e=x(window.atob(A));return new window.Blob([e],{type:"image/"+E})},Y.octetStream=function(A){document.location.href="data:application/octet-stream"+A};function x(A){for(var E=A.length,e=new ArrayBuffer(E),t=new Uint8Array(e),r=0;r")!==-1?"":o.html(s).text()});return o.remove(),n}function i(a){return a.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}H.exports=function(o,n,s){var c=o._fullLayout,f=c._paper,p=c._toppaper,v=c.width,T=c.height,l;f.insert("rect",":first-child").call(x.setRect,0,0,v,T).call(A.fill,c.paper_bgcolor);var m=c._basePlotModules||[];for(l=0;l1&&M.push(s("object","layout"))),x.supplyDefaults(_);for(var u=_._fullData,g=b.length,y=0;yR.length&&S.push(s("unused",M,g.concat(R.length)));var P=R.length,N=Array.isArray(O);N&&(P=Math.min(P,O.length));var U,X,te,ue,ie;if(I.dimensions===2)for(X=0;XR[X].length&&S.push(s("unused",M,g.concat(X,R[X].length)));var le=R[X].length;for(U=0;U<(N?Math.min(le,O[X].length):le);U++)te=N?O[X][U]:O,ue=y[X][U],ie=R[X][U],h.validate(ue,te)?ie!==ue&&ie!==+ue&&S.push(s("dynamic",M,g.concat(X,U),ue,ie)):S.push(s("value",M,g.concat(X,U),ue))}else S.push(s("array",M,g.concat(X),y[X]));else for(X=0;XF?S.push({code:"unused",traceType:y,templateCount:z,dataCount:F}):F>z&&S.push({code:"reused",traceType:y,templateCount:z,dataCount:F})}}function B(O,P){for(var N in O)if(N.charAt(0)!=="_"){var U=O[N],X=s(O,N,P);h(U)?(Array.isArray(O)&&U._template===!1&&U.templateitemname&&S.push({code:"missing",path:X,templateitemname:U.templateitemname}),B(U,X)):Array.isArray(U)&&c(U)&&B(U,X)}}if(B({data:_,layout:M},""),S.length)return S.map(f)};function c(p){for(var v=0;v=0;f--){var p=e[f];if(p.type==="scatter"&&p.xaxis===s.xaxis&&p.yaxis===s.yaxis){p.opacity=void 0;break}}}}}}}),sE=He({"src/traces/scatter/layout_defaults.js"(Y,H){var h=Qr(),x=s1();H.exports=function(A,E){function e(r,i){return h.coerce(A,E,x,r,i)}var t=E.barmode==="group";E.scattermode==="group"&&e("scattergap",t?E.bargap:.2)}}}),wv=He({"src/plots/cartesian/align_period.js"(Y,H){var h=Vi(),x=Qr(),A=x.dateTime2ms,E=x.incrementMonth,e=qo(),t=e.ONEAVGMONTH;H.exports=function(i,a,o,n){if(a.type!=="date")return{vals:n};var s=i[o+"periodalignment"];if(!s)return{vals:n};var c=i[o+"period"],f;if(h(c)){if(c=+c,c<=0)return{vals:n}}else if(typeof c=="string"&&c.charAt(0)==="M"){var p=+c.substring(1);if(p>0&&Math.round(p)===p)f=p;else return{vals:n}}for(var v=a.calendar,T=s==="start",l=s==="end",m=i[o+"period0"],w=A(m,v)||0,S=[],M=[],_=[],b=n.length,d=0;du;)R=E(R,-f,v);for(;R<=u;)R=E(R,f,v);y=E(R,-f,v)}else{for(g=Math.round((u-w)/c),R=w+g*c;R>u;)R-=c;for(;R<=u;)R+=c;y=R-c}S[d]=T?y:l?R:(y+R)/2,M[d]=y,_[d]=R}return{vals:S,starts:M,ends:_}}}}),nv=He({"src/traces/scatter/colorscale_calc.js"(Y,H){var h=kh().hasColorscale,x=Ch(),A=cu();H.exports=function(e,t){A.hasLines(t)&&h(t,"line")&&x(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),A.hasMarkers(t)&&(h(t,"marker")&&x(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),h(t,"marker.line")&&x(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}}}),jv=He({"src/traces/scatter/arrays_to_calcdata.js"(Y,H){var h=Qr();H.exports=function(A,E){for(var e=0;eB&&y[P].gap;)P--;for(U=y[P].s,O=y.length-1;O>P;O--)y[O].s=U;for(;BN+O||!h(P))}for(var X=0;Xz[v]&&v0?e:t)/(v._m*m*(v._m>0?e:t)))),Zt*=1e3}if(Wt===A){if(l&&(Wt=v.c2p(Ct.y,!0)),Wt===A)return!1;Wt*=1e3}return[Zt,Wt]}function re(bt,Ct,Zt,Wt){var rr=Zt-bt,Jt=Wt-Ct,mr=.5-bt,ia=.5-Ct,Ia=rr*rr+Jt*Jt,La=rr*mr+Jt*ia;if(La>0&&La1||Math.abs(mr.y-Zt[0][1])>1)&&(mr=[mr.x,mr.y],Wt&&Ae(mr,bt)je||bt[1]tt)return[a(bt[0],Ce,je),a(bt[1],at,tt)]}function Et(bt,Ct){if(bt[0]===Ct[0]&&(bt[0]===Ce||bt[0]===je)||bt[1]===Ct[1]&&(bt[1]===at||bt[1]===tt))return!0}function kt(bt,Ct){var Zt=[],Wt=Ke(bt),rr=Ke(Ct);return Wt&&rr&&Et(Wt,rr)||(Wt&&Zt.push(Wt),rr&&Zt.push(rr)),Zt}function Ut(bt,Ct,Zt){return function(Wt,rr){var Jt=Ke(Wt),mr=Ke(rr),ia=[];if(Jt&&mr&&Et(Jt,mr))return ia;Jt&&ia.push(Jt),mr&&ia.push(mr);var Ia=2*r.constrain((Wt[bt]+rr[bt])/2,Ct,Zt)-((Jt||Wt)[bt]+(mr||rr)[bt]);if(Ia){var La;Jt&&mr?La=Ia>0==Jt[bt]>mr[bt]?Jt:mr:La=Jt||mr,La[bt]+=Ia}return ia}}var Yt;d==="linear"||d==="spline"?Yt=nt:d==="hv"||d==="vh"?Yt=kt:d==="hvh"?Yt=Ut(0,Ce,je):d==="vhv"&&(Yt=Ut(1,at,tt));function vr(bt,Ct){var Zt=Ct[0]-bt[0],Wt=(Ct[1]-bt[1])/Zt,rr=(bt[1]*Ct[0]-Ct[1]*bt[0])/Zt;return rr>0?[Wt>0?Ce:je,tt]:[Wt>0?je:Ce,at]}function hr(bt){var Ct=bt[0],Zt=bt[1],Wt=Ct===z[F-1][0],rr=Zt===z[F-1][1];if(!(Wt&&rr))if(F>1){var Jt=Ct===z[F-2][0],mr=Zt===z[F-2][1];Wt&&(Ct===Ce||Ct===je)&&Jt?mr?F--:z[F-1]=bt:rr&&(Zt===at||Zt===tt)&&mr?Jt?F--:z[F-1]=bt:z[F++]=bt}else z[F++]=bt}function Rr(bt){z[F-1][0]!==bt[0]&&z[F-1][1]!==bt[1]&&hr([we,he]),hr(bt),De=null,we=he=0}var dr=r.isArrayOrTypedArray(M);function wr(bt){if(bt&&S&&(bt.i=B,bt.d=s,bt.trace=f,bt.marker=dr?M[bt.i]:M,bt.backoff=S),ae=bt[0]/m,fe=bt[1]/w,Ze=bt[0]je?je:0,Me=bt[1]tt?tt:0,Ze||Me){if(!F)z[F++]=[Ze||bt[0],Me||bt[1]];else if(De){var Ct=Yt(De,bt);Ct.length>1&&(Rr(Ct[0]),z[F++]=Ct[1])}else et=Yt(z[F-1],bt)[0],z[F++]=et;var Zt=z[F-1];Ze&&Me&&(Zt[0]!==Ze||Zt[1]!==Me)?(De&&(we!==Ze&&he!==Me?hr(we&&he?vr(De,bt):[we||Ze,he||Me]):we&&he&&hr([we,he])),hr([Ze,Me])):we-Ze&&he-Me&&hr([Ze||we,Me||he]),De=bt,we=Ze,he=Me}else De&&Rr(Yt(De,bt)[0]),z[F++]=bt}for(B=0;Bxe(X,yt))break;P=X,ee=ie[0]*ue[0]+ie[1]*ue[1],ee>q?(q=ee,N=X,te=!1):ee=s.length||!X)break;wr(X),O=X}}De&&hr([we||De[0],he||De[1]]),y.push(z.slice(0,F))}var Fe=d.slice(d.length-1);if(S&&Fe!=="h"&&Fe!=="v"){for(var We=!1,Oe=-1,de=[],me=0;me=0?o=p:(o=p=f,f++),o0,d=a(p,v,T);if(S=l.selectAll("g.trace").data(d,function(g){return g[0].trace.uid}),S.enter().append("g").attr("class",function(g){return"trace scatter trace"+g[0].trace.uid}).style("stroke-miterlimit",2),S.order(),n(p,S,v),b){w&&(M=w());var u=h.transition().duration(m.duration).ease(m.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});u.each(function(){l.selectAll("g.trace").each(function(g,y){s(p,y,v,g,d,this,m)})})}else S.each(function(g,y){s(p,y,v,g,d,this,m)});_&&S.exit().remove(),l.selectAll("path:not([d])").remove()};function n(f,p,v){p.each(function(T){var l=E(h.select(this),"g","fills");t.setClipUrl(l,v.layerClipId,f);var m=T[0].trace,w=[];m._ownfill&&w.push("_ownFill"),m._nexttrace&&w.push("_nextFill");var S=l.selectAll("g").data(w,e);S.enter().append("g"),S.exit().each(function(M){m[M]=null}).remove(),S.order().each(function(M){m[M]=E(h.select(this),"path","js-fill")})})}function s(f,p,v,T,l,m,w){var S=f._context.staticPlot,M;c(f,p,v,T,l);var _=!!w&&w.duration>0;function b(hr){return _?hr.transition():hr}var d=v.xaxis,u=v.yaxis,g=T[0].trace,y=g.line,R=h.select(m),I=E(R,"g","errorbars"),z=E(R,"g","lines"),F=E(R,"g","points"),B=E(R,"g","text");if(x.getComponentMethod("errorbars","plot")(f,I,v,w),g.visible!==!0)return;b(R).style("opacity",g.opacity);var O,P,N=g.fill.charAt(g.fill.length-1);N!=="x"&&N!=="y"&&(N="");var U,X;N==="y"?(U=1,X=u.c2p(0,!0)):N==="x"&&(U=0,X=d.c2p(0,!0)),T[0][v.isRangePlot?"nodeRangePlot3":"node3"]=R;var te="",ue=[],ie=g._prevtrace,le=null,q=null;ie&&(te=ie._prevRevpath||"",P=ie._nextFill,ue=ie._ownPolygons,le=ie._fillsegments,q=ie._fillElement);var J,ee,Z="",se="",Q,V,re,ae,fe,xe,Ae=[];g._polygons=[];var Pe=[],Ce=[],je=A.noop;if(O=g._ownFill,r.hasLines(g)||g.fill!=="none"){P&&P.datum(T),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(Q=t.steps(y.shape),V=t.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?Q=V=function(hr){var Rr=hr[hr.length-1];return hr.length>1&&hr[0][0]===Rr[0]&&hr[0][1]===Rr[1]?t.smoothclosed(hr.slice(1),y.smoothing):t.smoothopen(hr,y.smoothing)}:Q=V=function(hr){return"M"+hr.join("L")},re=function(hr){return V(hr.reverse())},Ce=i(T,{xaxis:d,yaxis:u,trace:g,connectGaps:g.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:g.fill}),Pe=new Array(Ce.length);var at=0;for(M=0;M=S[0]&&R.x<=S[1]&&R.y>=M[0]&&R.y<=M[1]}),u=Math.ceil(d.length/b),g=0;l.forEach(function(R,I){var z=R[0].trace;r.hasMarkers(z)&&z.marker.maxdisplayed>0&&I=Math.min(ie,le)&&v<=Math.max(ie,le)?0:1/0}var q=Math.max(3,ue.mrc||0),J=1-1/q,ee=Math.abs(f.c2p(ue.x)-v);return ee=Math.min(ie,le)&&T<=Math.max(ie,le)?0:1/0}var q=Math.max(3,ue.mrc||0),J=1-1/q,ee=Math.abs(p.c2p(ue.y)-T);return eese!=Pe>=se&&(fe=re[V-1][0],xe=re[V][0],Pe-Ae&&(ae=fe+(xe-fe)*(se-Ae)/(Pe-Ae),q=Math.min(q,ae),J=Math.max(J,ae)));return q=Math.max(q,0),J=Math.min(J,f._length),{x0:q,x1:J,y0:se,y1:se}}if(m.indexOf("fills")!==-1&&c._fillElement){var U=P(c._fillElement)&&!P(c._fillExclusionElement);if(U){var X=N(c._polygons);X===null&&(X={x0:l[0],x1:l[0],y0:l[1],y1:l[1]});var te=e.defaultLine;return e.opacity(c.fillcolor)?te=c.fillcolor:e.opacity((c.line||{}).color)&&(te=c.line.color),h.extendFlat(i,{distance:i.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:te,hovertemplate:!1}),delete i.index,c.text&&!h.isArrayOrTypedArray(c.text)?i.text=String(c.text):i.text=c.name,[i]}}}}}),Z0=He({"src/traces/scatter/select.js"(Y,H){var h=cu();H.exports=function(A,E){var e=A.cd,t=A.xaxis,r=A.yaxis,i=[],a=e[0].trace,o,n,s,c,f=!h.hasMarkers(a)&&!h.hasText(a);if(f)return[];if(E===!1)for(o=0;o0&&(n["_"+a+"axes"]||{})[i])return n;if((n[a+"axis"]||a)===i){if(t(n,a))return n;if((n[a]||[]).length||n[a+"0"])return n}}}function e(r){return{v:"x",h:"y"}[r.orientation||"v"]}function t(r,i){var a=e(r),o=h(r,"box-violin"),n=h(r._fullInput||{},"candlestick");return o&&!n&&i===a&&r[a]===void 0&&r[a+"0"]===void 0}}}),b1=He({"src/plots/cartesian/category_order_defaults.js"(Y,H){var h=Lf().isTypedArraySpec;function x(A,E){var e=E.dataAttr||A._id.charAt(0),t={},r,i,a;if(E.axData)r=E.axData;else for(r=[],i=0;i0||h(i),o;a&&(o="array");var n=t("categoryorder",o),s;n==="array"&&(s=t("categoryarray")),!a&&n==="array"&&(n=e.categoryorder="trace"),n==="trace"?e._initialCategories=[]:n==="array"?e._initialCategories=s.slice():(s=x(e,r).sort(),n==="category ascending"?e._initialCategories=s:n==="category descending"&&(e._initialCategories=s.reverse()))}}}}),sm=He({"src/plots/cartesian/line_grid_defaults.js"(Y,H){var h=Uf().mix,x=mf(),A=Qr();H.exports=function(e,t,r,i){i=i||{};var a=i.dfltColor;function o(g,y){return A.coerce2(e,t,i.attributes,g,y)}var n=o("linecolor",a),s=o("linewidth"),c=r("showline",i.showLine||!!n||!!s);c||(delete t.linecolor,delete t.linewidth);var f=h(a,i.bgColor,i.blend||x.lightFraction).toRgbString(),p=o("gridcolor",f),v=o("gridwidth"),T=o("griddash"),l=r("showgrid",i.showGrid||!!p||!!v||!!T);if(l||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),i.hasMinor){var m=h(t.gridcolor,i.bgColor,67).toRgbString(),w=o("minor.gridcolor",m),S=o("minor.gridwidth",t.gridwidth||1),M=o("minor.griddash",t.griddash||"solid"),_=r("minor.showgrid",!!w||!!S||!!M);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!i.noZeroLine){o("zerolinelayer");var b=o("zerolinecolor",a),d=o("zerolinewidth"),u=r("zeroline",i.showGrid||!!b||!!d);u||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}}}),lm=He({"src/plots/cartesian/axis_defaults.js"(Y,H){var h=Vi(),x=qi(),A=Qr(),E=cl(),e=uh(),t=Kf(),r=Mp(),i=N0(),a=qd(),o=Gd(),n=b1(),s=sm(),c=Bb(),f=Nv(),p=jf().WEEKDAY_PATTERN,v=jf().HOUR_PATTERN;H.exports=function(S,M,_,b,d){var u=b.letter,g=b.font||{},y=b.splomStash||{},R=_("visible",!b.visibleDflt),I=M._template||{},z=M.type||I.type||"-",F;if(z==="date"){var B=x.getComponentMethod("calendars","handleDefaults");B(S,M,"calendar",b.calendar),b.noTicklabelmode||(F=_("ticklabelmode"))}!b.noTicklabelindex&&(z==="date"||z==="linear")&&_("ticklabelindex");var O="";(!b.noTicklabelposition||z==="multicategory")&&(O=A.coerce(S,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:u==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),b.noTicklabeloverflow||_("ticklabeloverflow",O.indexOf("inside")!==-1?"hide past domain":z==="category"||z==="multicategory"?"allow":"hide past div"),f(M,d),c(S,M,_,b),n(S,M,_,b),b.noHover||(z!=="category"&&_("hoverformat"),b.noUnifiedhovertitle||_("unifiedhovertitle.text"));var P=_("color"),N=P!==t.color.dflt?P:g.color,U=y.label||d._dfltTitle[u];if(o(S,M,_,z,b),!R)return M;_("title.text",U),A.coerceFont(_,"title.font",g,{overrideDflt:{size:A.bigFont(g.size),color:N}}),r(S,M,_,z);var X=b.hasMinor;if(X&&(E.newContainer(M,"minor"),r(S,M,_,z,{isMinor:!0})),a(S,M,_,z,b),i(S,M,_,b),X){var te=b.isMinor;b.isMinor=!0,i(S,M,_,b),b.isMinor=te}s(S,M,_,{dfltColor:P,bgColor:b.bgColor,showGrid:b.showGrid,hasMinor:X,attributes:t}),X&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&_("mirror");var ue=z==="multicategory";if(!b.noTickson&&(z==="category"||ue)&&(M.ticks||M.showgrid)&&(ue?(_("tickson","boundaries"),delete M.ticklabelposition):_("tickson")),ue){var ie=_("showdividers");ie&&(_("dividercolor"),_("dividerwidth"))}if(z==="date")if(e(S,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var le=0;le=2){var u="",g,y;if(d.length===2){for(g=0;g<2;g++)if(y=m(d[g]),y){u=p;break}}var R=_("pattern",u);if(R===p)for(g=0;g<2;g++)y=m(d[g]),y&&(S.bounds[g]=d[g]=y-1);if(R)for(g=0;g<2;g++)switch(y=d[g],R){case p:if(!h(y)){S.enabled=!1;return}if(y=+y,y!==Math.floor(y)||y<0||y>=7){S.enabled=!1;return}S.bounds[g]=d[g]=y;break;case v:if(!h(y)){S.enabled=!1;return}if(y=+y,y<0||y>24){S.enabled=!1;return}S.bounds[g]=d[g]=y;break}if(M.autorange===!1){var I=M.range;if(I[0]I[1]){S.enabled=!1;return}}else if(d[0]>I[0]&&d[1]_[1]-1/4096&&(e.domain=f),x.noneOrAll(E.domain,e.domain,f),e.tickmode==="sync"&&(e.tickmode="auto")}return t("layer"),e}}}),fE=He({"src/plots/cartesian/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=Dh().isUnifiedHover,E=Hb(),e=cl(),t=F0(),r=Kf(),i=uw(),a=lm(),o=kp(),n=w1(),s=yc(),c=s.id2name,f=s.name2id,p=jf().AX_ID_PATTERN,v=qi(),T=v.traceIs,l=v.getComponentMethod;function m(w,S,M){Array.isArray(w[S])?w[S].push(M):w[S]=[M]}H.exports=function(S,M,_){var b=M.autotypenumbers,d={},u={},g={},y={},R={},I={},z={},F={},B={},O={},P,N;for(P=0;P<_.length;P++){var U=_[P];if(T(U,"cartesian")){var X;if(U.xaxis)X=c(U.xaxis),m(d,X,U);else if(U.xaxes)for(N=0;N rect").call(E.setTranslate,0,0).call(E.setScale,1,1),M.plot.call(E.setTranslate,_._offset,b._offset).call(E.setScale,1,1);var d=M.plot.selectAll(".scatterlayer .trace");d.selectAll(".point").call(E.setPointGroupScale,1,1),d.selectAll(".textpoint").call(E.setTextPointsScale,1,1),d.call(E.hideOutsideRangePoints,M)}function c(M,_){var b=M.plotinfo,d=b.xaxis,u=b.yaxis,g=d._length,y=u._length,R=!!M.xr1,I=!!M.yr1,z=[];if(R){var F=A.simpleMap(M.xr0,d.r2l),B=A.simpleMap(M.xr1,d.r2l),O=F[1]-F[0],P=B[1]-B[0];z[0]=(F[0]*(1-_)+_*B[0]-F[0])/(F[1]-F[0])*g,z[2]=g*(1-_+_*P/O),d.range[0]=d.l2r(F[0]*(1-_)+_*B[0]),d.range[1]=d.l2r(F[1]*(1-_)+_*B[1])}else z[0]=0,z[2]=g;if(I){var N=A.simpleMap(M.yr0,u.r2l),U=A.simpleMap(M.yr1,u.r2l),X=N[1]-N[0],te=U[1]-U[0];z[1]=(N[1]*(1-_)+_*U[1]-N[1])/(N[0]-N[1])*y,z[3]=y*(1-_+_*te/X),u.range[0]=d.l2r(N[0]*(1-_)+_*U[0]),u.range[1]=u.l2r(N[1]*(1-_)+_*U[1])}else z[1]=0,z[3]=y;e.drawOne(r,d,{skipTitle:!0}),e.drawOne(r,u,{skipTitle:!0}),e.redrawComponents(r,[d._id,u._id]);var ue=R?g/z[2]:1,ie=I?y/z[3]:1,le=R?z[0]:0,q=I?z[1]:0,J=R?z[0]/z[2]*g:0,ee=I?z[1]/z[3]*y:0,Z=d._offset-J,se=u._offset-ee;b.clipRect.call(E.setTranslate,le,q).call(E.setScale,1/ue,1/ie),b.plot.call(E.setTranslate,Z,se).call(E.setScale,ue,ie),E.setPointGroupScale(b.zoomScalePts,1/ue,1/ie),E.setTextPointsScale(b.zoomScaleTxt,1/ue,1/ie)}var f;o&&(f=o());function p(){for(var M={},_=0;_a.duration?(p(),m=window.cancelAnimationFrame(S)):m=window.requestAnimationFrame(S)}return T=Date.now(),m=window.requestAnimationFrame(S),Promise.resolve()}}}),cf=He({"src/plots/cartesian/index.js"(Y){var H=yi(),h=qi(),x=Qr(),A=$u(),E=Io(),e=$f().getModuleCalcData,t=yc(),r=jf(),i=Xh(),a=x.ensureSingle;function o(T,l,m){return x.ensureSingle(T,l,m,function(w){w.datum(m)})}var n=r.zindexSeparator;Y.name="cartesian",Y.attr=["xaxis","yaxis"],Y.idRoot=["x","y"],Y.idRegex=r.idRegex,Y.attrRegex=r.attrRegex,Y.attributes=cE(),Y.layoutAttributes=Kf(),Y.supplyLayoutDefaults=fE(),Y.transitionAxes=hE(),Y.finalizeSubplots=function(T,l){var m=l._subplots,w=m.xaxis,S=m.yaxis,M=m.cartesian,_=M,b={},d={},u,g,y;for(u=0;u<_.length;u++){var R=_[u].split("y");b[R[0]]=1,d["y"+R[1]]=1}for(u=0;u0){var I=R.id;if(I.indexOf(n)!==-1)continue;I+=n+(u+1),R=x.extendFlat({},R,{id:I,plot:S._cartesianlayer.selectAll(".subplot").select("."+I)})}for(var z=[],F,B=0;B<_.length;B++){var O=_[B],P=O[0].trace;g===(P.zorder||0)&&P.xaxis+P.yaxis===y&&((l.indexOf(P.index)!==-1||P.carpet)&&(F&&F[0].trace.xaxis+F[0].trace.yaxis===y&&["tonextx","tonexty","tonext"].indexOf(P.fill)!==-1&&z.indexOf(F)===-1&&z.push(F),z.push(O)),F=O)}s(T,R,z,m,w)}}};function s(T,l,m,w,S){for(var M=r.traceLayerClasses,_=T._fullLayout,b=_._zindices,d=_._modules,u,g,y,R=[],I=[],z=0;z1&&(X+=n+U),N.push(b+X),_=0;_1,y=l.mainplotinfo;if(!l.mainplot||g)if(u)l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.xaxislayer=a(w,"g","xaxislayer-above"),l.yaxislayer=a(w,"g","yaxislayer-above");else{if(!_){var R=a(w,"g","layer-subplot");l.shapelayer=a(R,"g","shapelayer"),l.imagelayer=a(R,"g","imagelayer"),y&&g?(l.minorGridlayer=y.minorGridlayer,l.gridlayer=y.gridlayer,l.zerolinelayer=y.zerolinelayer):(l.minorGridlayer=a(w,"g","minor-gridlayer"),l.gridlayer=a(w,"g","gridlayer"),l.zerolinelayer=a(w,"g","zerolinelayer"));var I=a(w,"g","layer-between");l.shapelayerBetween=a(I,"g","shapelayer"),l.imagelayerBetween=a(I,"g","imagelayer"),a(w,"path","xlines-below"),a(w,"path","ylines-below"),l.overlinesBelow=a(w,"g","overlines-below"),a(w,"g","xaxislayer-below"),a(w,"g","yaxislayer-below"),l.overaxesBelow=a(w,"g","overaxes-below")}l.overplot=a(w,"g","overplot"),l.plot=a(l.overplot,"g",S),y&&g?l.zerolinelayerAbove=y.zerolinelayerAbove:l.zerolinelayerAbove=a(w,"g","zerolinelayer-above"),_||(l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.overlinesAbove=a(w,"g","overlines-above"),a(w,"g","xaxislayer-above"),a(w,"g","yaxislayer-above"),l.overaxesAbove=a(w,"g","overaxes-above"),l.xlines=w.select(".xlines-"+b),l.ylines=w.select(".ylines-"+d),l.xaxislayer=w.select(".xaxislayer-"+b),l.yaxislayer=w.select(".yaxislayer-"+d))}else{var z=y.plotgroup,F=S+"-x",B=S+"-y";l.minorGridlayer=y.minorGridlayer,l.gridlayer=y.gridlayer,l.zerolinelayer=y.zerolinelayer,l.zerolinelayerAbove=y.zerolinelayerAbove,a(y.overlinesBelow,"path",F),a(y.overlinesBelow,"path",B),a(y.overaxesBelow,"g",F),a(y.overaxesBelow,"g",B),l.plot=a(y.overplot,"g",S),a(y.overlinesAbove,"path",F),a(y.overlinesAbove,"path",B),a(y.overaxesAbove,"g",F),a(y.overaxesAbove,"g",B),l.xlines=z.select(".overlines-"+b).select("."+F),l.ylines=z.select(".overlines-"+d).select("."+B),l.xaxislayer=z.select(".overaxes-"+b).select("."+F),l.yaxislayer=z.select(".overaxes-"+d).select("."+B)}_||(u||(o(l.minorGridlayer,"g",l.xaxis._id),o(l.minorGridlayer,"g",l.yaxis._id),l.minorGridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort),o(l.gridlayer,"g",l.xaxis._id),o(l.gridlayer,"g",l.yaxis._id),l.gridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort)),l.xlines.style("fill","none").classed("crisp",!0),l.ylines.style("fill","none").classed("crisp",!0))}function p(T,l){if(T){var m={};T.each(function(d){var u=d[0],g=H.select(this);g.remove(),v(u,l),m[u]=!0});for(var w in l._plots)for(var S=l._plots[w],M=S.overlays||[],_=0;_=0,l=o.indexOf("end")>=0,m=c.backoff*p+n.standoff,w=f.backoff*v+n.startstandoff,S,M,_,b;if(s.nodeName==="line"){S={x:+a.attr("x1"),y:+a.attr("y1")},M={x:+a.attr("x2"),y:+a.attr("y2")};var d=S.x-M.x,u=S.y-M.y;if(_=Math.atan2(u,d),b=_+Math.PI,m&&w&&m+w>Math.sqrt(d*d+u*u)){X();return}if(m){if(m*m>d*d+u*u){X();return}var g=m*Math.cos(_),y=m*Math.sin(_);M.x+=g,M.y+=y,a.attr({x2:M.x,y2:M.y})}if(w){if(w*w>d*d+u*u){X();return}var R=w*Math.cos(_),I=w*Math.sin(_);S.x-=R,S.y-=I,a.attr({x1:S.x,y1:S.y})}}else if(s.nodeName==="path"){var z=s.getTotalLength(),F="";if(z2/3?ba="right":ba="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ba]}for(var et=!1,nt=["x","y"],Ke=0;Ke1)&&(Ut===kt?(Xe=Yt.r2fraction(w["a"+Et]),(Xe<0||Xe>1)&&(et=!0)):et=!0),We=Yt._offset+Yt.r2p(w[Et]),me=.5}else{var ht=Ie==="domain";Et==="x"?(de=w[Et],We=ht?Yt._offset+Yt._length*de:We=u.l+u.w*de):(de=1-w[Et],We=ht?Yt._offset+Yt._length*de:We=u.t+u.h*de),me=w.showarrow?.5:de}if(w.showarrow){Fe.head=We;var bt=w["a"+Et];if(be=hr*De(.5,w.xanchor)-Rr*De(.5,w.yanchor),Ut===kt){var Ct=t.getRefType(Ut);Ct==="domain"?(Et==="y"&&(bt=1-bt),Fe.tail=Yt._offset+Yt._length*bt):Ct==="paper"?Et==="y"?(bt=1-bt,Fe.tail=u.t+u.h*bt):Fe.tail=u.l+u.w*bt:Fe.tail=Yt._offset+Yt.r2p(bt),Oe=be}else Fe.tail=We+bt,Oe=be+bt;Fe.text=Fe.tail+be;var Zt=d[Et==="x"?"width":"height"];if(kt==="paper"&&(Fe.head=E.constrain(Fe.head,1,Zt-1)),Ut==="pixel"){var Wt=-Math.max(Fe.tail-3,Fe.text),rr=Math.min(Fe.tail+3,Fe.text)-Zt;Wt>0?(Fe.tail+=Wt,Fe.text+=Wt):rr>0&&(Fe.tail-=rr,Fe.text-=rr)}Fe.tail+=yt,Fe.head+=yt}else be=dr*De(me,wr),Oe=be,Fe.text=We+be;Fe.text+=yt,be+=yt,Oe+=yt,w["_"+Et+"padplus"]=dr/2+Oe,w["_"+Et+"padminus"]=dr/2-Oe,w["_"+Et+"size"]=dr,w["_"+Et+"shift"]=be}if(et){le.remove();return}var Jt=0,mr=0;if(w.align!=="left"&&(Jt=(Ze-tt)*(w.align==="center"?.5:1)),w.valign!=="top"&&(mr=(Me-Je)*(w.valign==="middle"?.5:1)),je)Ce.select("svg").attr({x:ee+Jt-1,y:ee+mr}).call(i.setClipUrl,se?O:null,m);else{var ia=ee+mr-at.top,Ia=ee+Jt-at.left;ae.call(o.positionText,Ia,ia).call(i.setClipUrl,se?O:null,m)}Q.select("rect").call(i.setRect,ee,ee,Ze,Me),Z.call(i.setRect,q/2,q/2,we-q,he-q),le.call(i.setTranslate,Math.round(P.x.text-we/2),Math.round(P.y.text-he/2)),X.attr({transform:"rotate("+N+","+P.x.text+","+P.y.text+")"});var La=function(Ga,ba){U.selectAll(".annotation-arrow-g").remove();var Xa=P.x.head,yn=P.y.head,Kt=P.x.tail+Ga,zt=P.y.tail+ba,$t=P.x.text+Ga,Ht=P.y.text+ba,Tr=E.rotationXYMatrix(N,$t,Ht),qr=E.apply2DTransform(Tr),ha=E.apply2DTransform2(Tr),Gr=+Z.attr("width"),wa=+Z.attr("height"),Da=$t-.5*Gr,Ya=Da+Gr,Ka=Ht-.5*wa,an=Ka+wa,mt=[[Da,Ka,Da,an],[Da,an,Ya,an],[Ya,an,Ya,Ka],[Ya,Ka,Da,Ka]].map(ha);if(!mt.reduce(function(At,or){return At^!!E.segmentsIntersect(Xa,yn,Xa+1e6,yn+1e6,or[0],or[1],or[2],or[3])},!1)){mt.forEach(function(At){var or=E.segmentsIntersect(Kt,zt,Xa,yn,At[0],At[1],At[2],At[3]);or&&(Kt=or.x,zt=or.y)});var ot=w.arrowwidth,Lr=w.arrowcolor,Er=w.arrowside,Mr=U.append("g").style({opacity:r.opacity(Lr)}).classed("annotation-arrow-g",!0),br=Mr.append("path").attr("d","M"+Kt+","+zt+"L"+Xa+","+yn).style("stroke-width",ot+"px").call(r.stroke,r.rgb(Lr));if(f(br,Er,w),g.annotationPosition&&br.node().parentNode&&!M){var Or=Xa,jr=yn;if(w.standoff){var Dr=Math.sqrt(Math.pow(Xa-Kt,2)+Math.pow(yn-zt,2));Or+=w.standoff*(Kt-Xa)/Dr,jr+=w.standoff*(zt-yn)/Dr}var Hr=Mr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Or)+","+(zt-jr),transform:e(Or,jr)}).style("stroke-width",ot+6+"px").call(r.stroke,"rgba(0,0,0,0)").call(r.fill,"rgba(0,0,0,0)"),na,ta;s.init({element:Hr.node(),gd:m,prepFn:function(){var At=i.getTranslate(le);na=At.x,ta=At.y,_&&_.autorange&&z(_._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0)},moveFn:function(At,or){var Ar=qr(na,ta),oa=Ar[0]+At,ga=Ar[1]+or;le.call(i.setTranslate,oa,ga),F("x",T(_,At,"x",u,w)),F("y",T(b,or,"y",u,w)),w.axref===w.xref&&F("ax",T(_,At,"ax",u,w)),w.ayref===w.yref&&F("ay",T(b,or,"ay",u,w)),Mr.attr("transform",e(At,or)),X.attr({transform:"rotate("+N+","+oa+","+ga+")"})},doneFn:function(){x.call("_guiRelayout",m,B());var At=document.querySelector(".js-notes-box-panel");At&&At.redraw(At.selectedObj)}})}}};if(w.showarrow&&La(0,0),te){var Aa;s.init({element:le.node(),gd:m,prepFn:function(){Aa=X.attr("transform")},moveFn:function(Ga,ba){var Xa="pointer";if(w.showarrow)w.axref===w.xref?F("ax",T(_,Ga,"ax",u,w)):F("ax",w.ax+Ga),w.ayref===w.yref?F("ay",T(b,ba,"ay",u.w,w)):F("ay",w.ay+ba),La(Ga,ba);else{if(M)return;var yn,Kt;if(_)yn=T(_,Ga,"x",u,w);else{var zt=w._xsize/u.w,$t=w.x+(w._xshift-w.xshift)/u.w-zt/2;yn=s.align($t+Ga/u.w,zt,0,1,w.xanchor)}if(b)Kt=T(b,ba,"y",u,w);else{var Ht=w._ysize/u.h,Tr=w.y-(w._yshift+w.yshift)/u.h-Ht/2;Kt=s.align(Tr-ba/u.h,Ht,0,1,w.yanchor)}F("x",yn),F("y",Kt),(!_||!b)&&(Xa=s.getCursor(_?.5:yn,b?.5:Kt,w.xanchor,w.yanchor))}X.attr({transform:e(Ga,ba)+Aa}),n(le,Xa)},clickFn:function(Ga,ba){w.captureevents&&m.emit("plotly_clickannotation",ie(ba))},doneFn:function(){n(le),x.call("_guiRelayout",m,B());var Ga=document.querySelector(".js-notes-box-panel");Ga&&Ga.redraw(Ga.selectedObj)}})}}g.annotationText?ae.call(o.makeEditable,{delegate:le,gd:m}).call(fe).on("edit",function(Ae){w.text=Ae,this.call(fe),F("text",Ae),_&&_.autorange&&z(_._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0),x.call("_guiRelayout",m,B())}):ae.call(fe)}}}),pE=He({"src/components/annotations/click.js"(Y,H){var h=Qr(),x=qi(),A=cl().arrayEditor;H.exports={hasClickToShow:E,onClick:e};function E(i,a){var o=t(i,a);return o.on.length>0||o.explicitOff.length>0}function e(i,a){var o=t(i,a),n=o.on,s=o.off.concat(o.explicitOff),c={},f=i._fullLayout.annotations,p,v;if(n.length||s.length){for(p=0;p1){n=!0;break}}n?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+a+'"]').remove():(o._pdata=x(e.glplot.cameraParams,[t.xaxis.r2l(o.x)*r[0],t.yaxis.r2l(o.y)*r[1],t.zaxis.r2l(o.z)*r[2]]),h(e.graphDiv,o,a,e.id,o._xa,o._ya))}}}}),TE=He({"src/components/annotations3d/index.js"(Y,H){var h=qi(),x=Qr();H.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:A1()}}},layoutAttributes:A1(),handleDefaults:xE(),includeBasePlot:A,convert:bE(),draw:wE()};function A(E,e){var t=h.subplotsRegistry.gl3d;if(t)for(var r=t.attrRegex,i=Object.keys(E),a=0;a0?l+p:p;return{ppad:p,ppadplus:v?w:S,ppadminus:v?S:w}}else return{ppad:p}}function i(a,o,n){var s=a._id.charAt(0)==="x"?"x":"y",c=a.type==="category"||a.type==="multicategory",f,p,v=0,T=0,l=c?a.r2c:a.d2c,m=o[s+"sizemode"]==="scaled";if(m?(f=o[s+"0"],p=o[s+"1"],c&&(v=o[s+"0shift"],T=o[s+"1shift"])):(f=o[s+"anchor"],p=o[s+"anchor"]),f!==void 0)return[l(f)+v,l(p)+T];if(o.path){var w=1/0,S=-1/0,M=o.path.match(A.segmentRE),_,b,d,u,g;for(a.type==="date"&&(l=E.decodeDate(l)),_=0;_S&&(S=g)));if(S>=w)return[w,S]}}}}),EE=He({"src/components/shapes/index.js"(Y,H){var h=g1();H.exports={moduleType:"component",name:"shapes",layoutAttributes:hw(),supplyLayoutDefaults:AE(),supplyDrawNewShapeDefaults:SE(),includeBasePlot:om()("shapes"),calcAutorange:ME(),draw:h.draw,drawOne:h.drawOne}}}),vw=He({"src/components/images/attributes.js"(Y,H){var h=jf(),x=cl().templatedArray;im(),H.exports=x("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",h.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",h.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})}}),kE=He({"src/components/images/defaults.js"(Y,H){var h=Qr(),x=wo(),A=uh(),E=vw(),e="images";H.exports=function(i,a){var o={name:e,handleItemDefaults:t};A(i,a,o)};function t(r,i,a){function o(m,w){return h.coerce(r,i,E,m,w)}var n=o("source"),s=o("visible",!!n);if(!s)return i;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var c={_fullLayout:a},f=["x","y"],p=0;p<2;p++){var v=f[p],T=x.coerceRef(r,i,c,v,"paper",void 0);if(T!=="paper"){var l=x.getFromId(c,T);l._imgIndices.push(i._index)}x.coercePosition(i,c,o,T,v,0)}return i}}}),CE=He({"src/components/images/draw.js"(Y,H){var h=yi(),x=Io(),A=wo(),E=yc(),e=Xh();H.exports=function(r){var i=r._fullLayout,a=[],o={},n=[],s,c;for(c=0;c0);f&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),h.noneOrAll(a,o,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),h.coerceFont(s,"font",n.font),s("bgcolor",n.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function i(a,o){function n(c,f){return h.coerce(a,o,t,c,f)}var s=n("visible",a.method==="skip"||Array.isArray(a.args));s&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}}}),RE=He({"src/components/updatemenus/scrollbox.js"(Y,H){H.exports=e;var h=yi(),x=zi(),A=Io(),E=Qr();function e(t,r,i){this.gd=t,this.container=r,this.id=i,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}e.barWidth=2,e.barLength=20,e.barRadius=2,e.barPad=1,e.barColor="#808BA4",e.prototype.enable=function(r,i,a){var o=this.gd._fullLayout,n=o.width,s=o.height;this.position=r;var c=this.position.l,f=this.position.w,p=this.position.t,v=this.position.h,T=this.position.direction,l=T==="down",m=T==="left",w=T==="right",S=T==="up",M=f,_=v,b,d,u,g;!l&&!m&&!w&&!S&&(this.position.direction="down",l=!0);var y=l||S;y?(b=c,d=b+M,l?(u=p,g=Math.min(u+_,s),_=g-u):(g=p+_,u=Math.max(g-_,0),_=g-u)):(u=p,g=u+_,m?(d=c+M,b=Math.max(d-M,0),M=d-b):(b=c,d=Math.min(b+M,n),M=d-b)),this._box={l:b,t:u,w:M,h:_};var R=f>M,I=e.barLength+2*e.barPad,z=e.barWidth+2*e.barPad,F=c,B=p+v;B+z>s&&(B=s-z);var O=this.container.selectAll("rect.scrollbar-horizontal").data(R?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(x.fill,e.barColor),R?(this.hbar=O.attr({rx:e.barRadius,ry:e.barRadius,x:F,y:B,width:I,height:z}),this._hbarXMin=F+I/2,this._hbarTranslateMax=M-I):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var P=v>_,N=e.barWidth+2*e.barPad,U=e.barLength+2*e.barPad,X=c+f,te=p;X+N>n&&(X=n-N);var ue=this.container.selectAll("rect.scrollbar-vertical").data(P?[0]:[]);ue.exit().on(".drag",null).remove(),ue.enter().append("rect").classed("scrollbar-vertical",!0).call(x.fill,e.barColor),P?(this.vbar=ue.attr({rx:e.barRadius,ry:e.barRadius,x:X,y:te,width:N,height:U}),this._vbarYMin=te+U/2,this._vbarTranslateMax=_-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ie=this.id,le=b-.5,q=P?d+N+.5:d+.5,J=u-.5,ee=R?g+z+.5:g+.5,Z=o._topdefs.selectAll("#"+ie).data(R||P?[0]:[]);if(Z.exit().remove(),Z.enter().append("clipPath").attr("id",ie).append("rect"),R||P?(this._clipRect=Z.select("rect").attr({x:Math.floor(le),y:Math.floor(J),width:Math.ceil(q)-Math.floor(le),height:Math.ceil(ee)-Math.floor(J)}),this.container.call(A.setClipUrl,ie,this.gd),this.bg.attr({x:c,y:p,width:f,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(A.setClipUrl,null),delete this._clipRect),R||P){var se=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var Q=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault(),h.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));R&&this.hbar.on(".drag",null).call(Q),P&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(i,a)},e.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(A.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},e.prototype._onBoxDrag=function(){var r=this.translateX,i=this.translateY;this.hbar&&(r-=h.event.dx),this.vbar&&(i-=h.event.dy),this.setTranslate(r,i)},e.prototype._onBoxWheel=function(){var r=this.translateX,i=this.translateY;this.hbar&&(r+=h.event.deltaY),this.vbar&&(i+=h.event.deltaY),this.setTranslate(r,i)},e.prototype._onBarDrag=function(){var r=this.translateX,i=this.translateY;if(this.hbar){var a=r+this._hbarXMin,o=a+this._hbarTranslateMax,n=E.constrain(h.event.x,a,o),s=(n-a)/(o-a),c=this.position.w-this._box.w;r=s*c}if(this.vbar){var f=i+this._vbarYMin,p=f+this._vbarTranslateMax,v=E.constrain(h.event.y,f,p),T=(v-f)/(p-f),l=this.position.h-this._box.h;i=T*l}this.setTranslate(r,i)},e.prototype.setTranslate=function(r,i){var a=this.position.w-this._box.w,o=this.position.h-this._box.h;if(r=E.constrain(r||0,0,a),i=E.constrain(i||0,0,o),this.translateX=r,this.translateY=i,this.container.call(A.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-i),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+i-.5)}),this.hbar){var n=r/a;this.hbar.call(A.setTranslate,r+n*this._hbarTranslateMax,i)}if(this.vbar){var s=i/o;this.vbar.call(A.setTranslate,r,i+s*this._vbarTranslateMax)}}}}),DE=He({"src/components/updatemenus/draw.js"(Y,H){var h=yi(),x=$u(),A=zi(),E=Io(),e=Qr(),t=jl(),r=cl().arrayEditor,i=Pf().LINE_SPACING,a=S1(),o=RE();H.exports=function(I){var z=I._fullLayout,F=e.filterVisible(z[a.name]);function B(ie){x.autoMargin(I,u(ie))}var O=z._menulayer.selectAll("g."+a.containerClassName).data(F.length>0?[0]:[]);if(O.enter().append("g").classed(a.containerClassName,!0).style("cursor","pointer"),O.exit().each(function(){h.select(this).selectAll("g."+a.headerGroupClassName).each(B)}).remove(),F.length!==0){var P=O.selectAll("g."+a.headerGroupClassName).data(F,n);P.enter().append("g").classed(a.headerGroupClassName,!0);for(var N=e.ensureSingle(O,"g",a.dropdownButtonGroupClassName,function(ie){ie.style("pointer-events","all")}),U=0;U0?[0]:[]);X.enter().append("g").classed(a.containerClassName,!0).style("cursor",P?null:"ew-resize");function te(q){q._commandObserver&&(q._commandObserver.remove(),delete q._commandObserver),x.autoMargin(O,f(q))}if(X.exit().each(function(){h.select(this).selectAll("g."+a.groupClassName).each(te)}).remove(),U.length!==0){var ue=X.selectAll("g."+a.groupClassName).data(U,v);ue.enter().append("g").classed(a.groupClassName,!0),ue.exit().each(te).remove();for(var ie=0;ie0&&(ue=ue.transition().duration(O.transition.duration).ease(O.transition.easing)),ue.attr("transform",t(te-a.gripWidth*.5,O._dims.currentValueTotalHeight))}}function R(B,O){var P=B._dims;return P.inputAreaStart+a.stepInset+(P.inputAreaLength-2*a.stepInset)*Math.min(1,Math.max(0,O))}function I(B,O){var P=B._dims;return Math.min(1,Math.max(0,(O-a.stepInset-P.inputAreaStart)/(P.inputAreaLength-2*a.stepInset-2*P.inputAreaStart)))}function z(B,O,P){var N=P._dims,U=e.ensureSingle(B,"rect",a.railTouchRectClass,function(X){X.call(d,O,B,P).style("pointer-events","all")});U.attr({width:N.inputAreaLength,height:Math.max(N.inputAreaWidth,a.tickOffset+P.ticklen+N.labelHeight)}).call(A.fill,P.bgcolor).attr("opacity",0),E.setTranslate(U,0,N.currentValueTotalHeight)}function F(B,O){var P=O._dims,N=P.inputAreaLength-a.railInset*2,U=e.ensureSingle(B,"rect",a.railRectClass);U.attr({width:N,height:a.railWidth,rx:a.railRadius,ry:a.railRadius,"shape-rendering":"crispEdges"}).call(A.stroke,O.bordercolor).call(A.fill,O.bgcolor).style("stroke-width",O.borderwidth+"px"),E.setTranslate(U,a.railInset,(P.inputAreaWidth-a.railWidth)*.5+P.currentValueTotalHeight)}}}),BE=He({"src/components/sliders/index.js"(Y,H){var h=um();H.exports={moduleType:"component",name:h.name,layoutAttributes:pw(),supplyLayoutDefaults:FE(),draw:OE()}}}),M1=He({"src/components/rangeslider/attributes.js"(Y,H){var h=mf();H.exports={bgcolor:{valType:"color",dflt:h.background,editType:"plot"},bordercolor:{valType:"color",dflt:h.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}}}),gw=He({"src/components/rangeslider/oppaxis_attributes.js"(Y,H){H.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}}}),E1=He({"src/components/rangeslider/constants.js"(Y,H){H.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}}}),NE=He({"src/components/rangeslider/helpers.js"(Y){var H=yc(),h=jl(),x=E1(),A=Pf().LINE_SPACING,E=x.name;function e(t){var r=t&&t[E];return r&&r.visible}Y.isVisible=e,Y.makeData=function(t){for(var r=H.list({_fullLayout:t},"x",!0),i=t.margin,a=[],o=0;o=tt.max)je=fe[at+1];else if(Ce=tt.pmax)je=fe[at+1];else if(Ce0?d.touches[0].clientX:0}function p(d,u,g,y){if(u._context.staticPlot)return;var R=d.select("rect."+c.slideBoxClassName).node(),I=d.select("rect."+c.grabAreaMinClassName).node(),z=d.select("rect."+c.grabAreaMaxClassName).node();function F(){var B=h.event,O=B.target,P=f(B),N=P-d.node().getBoundingClientRect().left,U=y.d2p(g._rl[0]),X=y.d2p(g._rl[1]),te=n.coverSlip();this.addEventListener("touchmove",ue),this.addEventListener("touchend",ie),te.addEventListener("mousemove",ue),te.addEventListener("mouseup",ie);function ue(le){var q=f(le),J=+q-P,ee,Z,se;switch(O){case R:if(se="ew-resize",U+J>g._length||X+J<0)return;ee=U+J,Z=X+J;break;case I:if(se="col-resize",U+J>g._length)return;ee=U+J,Z=X;break;case z:if(se="col-resize",X+J<0)return;ee=U,Z=X+J;break;default:se="ew-resize",ee=N,Z=N+J;break}if(Z0);if(m){var w=i(n,s,c);T("x",w[0]),T("y",w[1]),h.noneOrAll(o,n,["x","y"]),T("xanchor"),T("yanchor"),h.coerceFont(T,"font",s.font);var S=T("bgcolor");T("activecolor",x.contrast(S,t.lightAmount,t.darkAmount)),T("bordercolor"),T("borderwidth")}};function r(a,o,n,s){var c=s.calendar;function f(T,l){return h.coerce(a,o,e.buttons,T,l)}var p=f("visible");if(p){var v=f("step");v!=="all"&&(c&&c!=="gregorian"&&(v==="month"||v==="year")?o.stepmode="backward":f("stepmode"),f("count")),f("label")}}function i(a,o,n){for(var s=n.filter(function(v){return o[v].anchor===a._id}),c=0,f=0;f1)){delete c.grid;return}if(!T&&!l&&!m){var g=b("pattern")==="independent";g&&(T=!0)}_._hasSubplotGrid=T;var y=b("roworder"),R=y==="top to bottom",I=T?.2:.1,z=T?.3:.1,F,B;w&&c._splomGridDflt&&(F=c._splomGridDflt.xside,B=c._splomGridDflt.yside),_._domains={x:a("x",b,I,F,u),y:a("y",b,z,B,d,R)}}function a(s,c,f,p,v,T){var l=c(s+"gap",f),m=c("domain."+s);c(s+"side",p);for(var w=new Array(v),S=m[0],M=(m[1]-S)/(v-l),_=M*(1-l),b=0;b0,p=r._context.staticPlot;i.each(function(v){var T=v[0].trace,l=T.error_x||{},m=T.error_y||{},w;T.ids&&(w=function(b){return b.id});var S=E.hasMarkers(T)&&T.marker.maxdisplayed>0;!m.visible&&!l.visible&&(v=[]);var M=h.select(this).selectAll("g.errorbar").data(v,w);if(M.exit().remove(),!!v.length){l.visible||M.selectAll("path.xerror").remove(),m.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var _=M.enter().append("g").classed("errorbar",!0);f&&_.style("opacity",0).transition().duration(o.duration).style("opacity",1),A.setClipUrl(M,a.layerClipId,r),M.each(function(b){var d=h.select(this),u=e(b,s,c);if(!(S&&!b.vis)){var g,y=d.select("path.yerror");if(m.visible&&x(u.x)&&x(u.yh)&&x(u.ys)){var R=m.width;g="M"+(u.x-R)+","+u.yh+"h"+2*R+"m-"+R+",0V"+u.ys,u.noYS||(g+="m-"+R+",0h"+2*R),n=!y.size(),n?y=d.append("path").style("vector-effect",p?"none":"non-scaling-stroke").classed("yerror",!0):f&&(y=y.transition().duration(o.duration).ease(o.easing)),y.attr("d",g)}else y.remove();var I=d.select("path.xerror");if(l.visible&&x(u.y)&&x(u.xh)&&x(u.xs)){var z=(l.copy_ystyle?m:l).width;g="M"+u.xh+","+(u.y-z)+"v"+2*z+"m0,-"+z+"H"+u.xs,u.noXS||(g+="m0,-"+z+"v"+2*z),n=!I.size(),n?I=d.append("path").style("vector-effect",p?"none":"non-scaling-stroke").classed("xerror",!0):f&&(I=I.transition().duration(o.duration).ease(o.easing)),I.attr("d",g)}else I.remove()}})}})};function e(t,r,i){var a={x:r.c2p(t.x),y:i.c2p(t.y)};return t.yh!==void 0&&(a.yh=i.c2p(t.yh),a.ys=i.c2p(t.ys),x(a.ys)||(a.noYS=!0,a.ys=i.c2p(t.ys,!0))),t.xh!==void 0&&(a.xh=r.c2p(t.xh),a.xs=r.c2p(t.xs),x(a.xs)||(a.noXS=!0,a.xs=r.c2p(t.xs,!0))),a}}}),KE=He({"src/components/errorbars/style.js"(Y,H){var h=yi(),x=zi();H.exports=function(E){E.each(function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},a=h.select(this);a.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(x.stroke,r.color),i.copy_ystyle&&(i=r),a.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(x.stroke,i.color)})}}}),JE=He({"src/components/errorbars/index.js"(Y,H){var h=Qr(),x=Uu().overrideAll,A=_w(),E={error_x:h.extendFlat({},A),error_y:h.extendFlat({},A)};delete E.error_x.copy_zstyle,delete E.error_y.copy_zstyle,delete E.error_y.copy_ystyle;var e={error_x:h.extendFlat({},A),error_y:h.extendFlat({},A),error_z:h.extendFlat({},A)};delete e.error_x.copy_ystyle,delete e.error_y.copy_ystyle,delete e.error_z.copy_ystyle,delete e.error_z.copy_zstyle,H.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:E,bar:E,histogram:E,scatter3d:x(e,"calc","nested"),scattergl:x(E,"calc","nested")}},supplyDefaults:ZE(),calc:YE(),makeComputeError:xw(),plot:$E(),style:KE(),hoverInfo:t};function t(r,i,a){(i.error_y||{}).visible&&(a.yerr=r.yh-r.y,i.error_y.symmetric||(a.yerrneg=r.y-r.ys)),(i.error_x||{}).visible&&(a.xerr=r.xh-r.x,i.error_x.symmetric||(a.xerrneg=r.x-r.xs))}}}),QE=He({"src/components/colorbar/constants.js"(Y,H){H.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}}}),e5=He({"src/components/colorbar/draw.js"(Y,H){var h=yi(),x=Uf(),A=$u(),E=qi(),e=wo(),t=ph(),r=Qr(),i=r.strTranslate,a=Po().extendFlat,o=mv(),n=Io(),s=zi(),c=Ep(),f=jl(),p=kh().flipScale,v=lm(),T=w1(),l=Kf(),m=Pf(),w=m.LINE_SPACING,S=m.FROM_TL,M=m.FROM_BR,_=QE().cn;function b(I){var z=I._fullLayout,F=z._infolayer.selectAll("g."+_.colorbar).data(d(I),function(B){return B._id});F.enter().append("g").attr("class",function(B){return B._id}).classed(_.colorbar,!0),F.each(function(B){var O=h.select(this);r.ensureSingle(O,"rect",_.cbbg),r.ensureSingle(O,"g",_.cbfills),r.ensureSingle(O,"g",_.cblines),r.ensureSingle(O,"g",_.cbaxis,function(N){N.classed(_.crisp,!0)}),r.ensureSingle(O,"g",_.cbtitleunshift,function(N){N.append("g").classed(_.cbtitle,!0)}),r.ensureSingle(O,"rect",_.cboutline);var P=u(O,B,I);P&&P.then&&(I._promises||[]).push(P),I._context.edits.colorbarPosition&&g(O,B,I)}),F.exit().each(function(B){A.autoMargin(I,B._id)}).remove(),F.order()}function d(I){var z=I._fullLayout,F=I.calcdata,B=[],O,P,N,U;function X(V){return a(V,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function te(){typeof U.calc=="function"?U.calc(I,N,O):(O._fillgradient=P.reversescale?p(P.colorscale):P.colorscale,O._zrange=[P[U.min],P[U.max]])}for(var ue=0;ue1){var Fe=Math.pow(10,Math.floor(Math.log(yt)/Math.LN10));dr*=Fe*r.roundUp(yt/Fe,[2,5,10]),(Math.abs(at.start)/at.size+1e-6)%1<2e-6&&(hr.tick0=0)}hr.dtick=dr}hr.domain=B?[Yt+J/re.h,Yt+De-J/re.h]:[Yt+q/re.w,Yt+De-q/re.w],hr.setScale(),I.attr("transform",i(Math.round(re.l),Math.round(re.t)));var We=I.select("."+_.cbtitleunshift).attr("transform",i(-Math.round(re.l),-Math.round(re.t))),Oe=hr.ticklabelposition,de=hr.title.font.size,me=I.select("."+_.cbaxis),be,Ie=0,Xe=0;function ht(rr,Jt){var mr={propContainer:hr,propName:z._propPrefix+"title",traceIndex:z._traceIndex,_meta:z._meta,placeholder:V._dfltTitle.colorbar,containerGroup:I.select("."+_.cbtitle)},ia=rr.charAt(0)==="h"?rr.substr(1):"h"+rr;I.selectAll("."+ia+",."+ia+"-math-group").remove(),c.draw(F,rr,a(mr,Jt||{}))}function bt(){if(B&&Rr||!B&&!Rr){var rr,Jt;Ae==="top"&&(rr=q+re.l+et*ee,Jt=J+re.t+nt*(1-Yt-De)+3+de*.75),Ae==="bottom"&&(rr=q+re.l+et*ee,Jt=J+re.t+nt*(1-Yt)-3-de*.25),Ae==="right"&&(Jt=J+re.t+nt*Z+3+de*.75,rr=q+re.l+et*Yt),ht(hr._id+"title",{attributes:{x:rr,y:Jt,"text-anchor":B?"start":"middle"}})}}function Ct(){if(B&&!Rr||!B&&Rr){var rr=hr.position||0,Jt=hr._offset+hr._length/2,mr,ia;if(Ae==="right")ia=Jt,mr=re.l+et*rr+10+de*(hr.showticklabels?1:.5);else if(mr=Jt,Ae==="bottom"&&(ia=re.t+nt*rr+10+(Oe.indexOf("inside")===-1?hr.tickfont.size:0)+(hr.ticks!=="intside"&&z.ticklen||0)),Ae==="top"){var Ia=xe.text.split("
").length;ia=re.t+nt*rr+10-Me-w*de*Ia}ht((B?"h":"v")+hr._id+"title",{avoid:{selection:h.select(F).selectAll("g."+hr._id+"tick"),side:Ae,offsetTop:B?0:re.t,offsetLeft:B?re.l:0,maxShift:B?V.width:V.height},attributes:{x:mr,y:ia,"text-anchor":"middle"},transform:{rotate:B?-90:0,offset:0}})}}function Zt(){if(!B&&!Rr||B&&Rr){var rr=I.select("."+_.cbtitle),Jt=rr.select("text"),mr=[-X/2,X/2],ia=rr.select(".h"+hr._id+"title-math-group").node(),Ia=15.6;Jt.node()&&(Ia=parseInt(Jt.node().style.fontSize,10)*w);var La;if(ia?(La=n.bBox(ia),Xe=La.width,Ie=La.height,Ie>Ia&&(mr[1]-=(Ie-Ia)/2)):Jt.node()&&!Jt.classed(_.jsPlaceholder)&&(La=n.bBox(Jt.node()),Xe=La.width,Ie=La.height),B){if(Ie){if(Ie+=5,Ae==="top")hr.domain[1]-=Ie/re.h,mr[1]*=-1;else{hr.domain[0]+=Ie/re.h;var Aa=f.lineCount(Jt);mr[1]+=(1-Aa)*Ia}rr.attr("transform",i(mr[0],mr[1])),hr.setScale()}}else Xe&&(Ae==="right"&&(hr.domain[0]+=(Xe+de/2)/re.w),rr.attr("transform",i(mr[0],mr[1])),hr.setScale())}I.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",B?i(0,Math.round(re.h*(1-hr.domain[1]))):i(Math.round(re.w*hr.domain[0]),0)),me.attr("transform",B?i(0,Math.round(-re.t)):i(Math.round(-re.l),0));var Ga=I.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(Je);Ga.enter().append("rect").classed(_.cbfill,!0).attr("style",""),Ga.exit().remove();var ba=Pe.map(hr.c2p).map(Math.round).sort(function($t,Ht){return $t-Ht});Ga.each(function($t,Ht){var Tr=[Ht===0?Pe[0]:(Je[Ht]+Je[Ht-1])/2,Ht===Je.length-1?Pe[1]:(Je[Ht]+Je[Ht+1])/2].map(hr.c2p).map(Math.round);B&&(Tr[1]=r.constrain(Tr[1]+(Tr[1]>Tr[0])?1:-1,ba[0],ba[1]));var qr=h.select(this).attr(B?"x":"y",Ke).attr(B?"y":"x",h.min(Tr)).attr(B?"width":"height",Math.max(Me,2)).attr(B?"height":"width",Math.max(h.max(Tr)-h.min(Tr),2));if(z._fillgradient)n.gradient(qr,F,z._id,B?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var ha=je($t).replace("e-","");qr.attr("fill",x(ha).toHexString())}});var Xa=I.select("."+_.cblines).selectAll("path."+_.cbline).data(fe.color&&fe.width?Ze:[]);Xa.enter().append("path").classed(_.cbline,!0),Xa.exit().remove(),Xa.each(function($t){var Ht=Ke,Tr=Math.round(hr.c2p($t))+fe.width/2%1;h.select(this).attr("d","M"+(B?Ht+","+Tr:Tr+","+Ht)+(B?"h":"v")+Me).call(n.lineGroupStyle,fe.width,Ce($t),fe.dash)}),me.selectAll("g."+hr._id+"tick,path").remove();var yn=Ke+Me+(X||0)/2-(z.ticks==="outside"?1:0),Kt=e.calcTicks(hr),zt=e.getTickSigns(hr)[2];return e.drawTicks(F,hr,{vals:hr.ticks==="inside"?e.clipEnds(hr,Kt):Kt,layer:me,path:e.makeTickPath(hr,yn,zt),transFn:e.makeTransTickFn(hr)}),e.drawLabels(F,hr,{vals:Kt,layer:me,transFn:e.makeTransTickLabelFn(hr),labelFns:e.makeLabelFns(hr,yn)})}function Wt(){var rr,Jt=Me+X/2;Oe.indexOf("inside")===-1&&(rr=n.bBox(me.node()),Jt+=B?rr.width:rr.height),be=We.select("text");var mr=0,ia=B&&Ae==="top",Ia=!B&&Ae==="right",La=0;if(be.node()&&!be.classed(_.jsPlaceholder)){var Aa,Ga=We.select(".h"+hr._id+"title-math-group").node();Ga&&(B&&Rr||!B&&!Rr)?(rr=n.bBox(Ga),mr=rr.width,Aa=rr.height):(rr=n.bBox(We.node()),mr=rr.right-re.l-(B?Ke:vr),Aa=rr.bottom-re.t-(B?vr:Ke),!B&&Ae==="top"&&(Jt+=rr.height,La=rr.height)),Ia&&(be.attr("transform",i(mr/2+de/2,0)),mr*=2),Jt=Math.max(Jt,B?mr:Aa)}var ba=(B?q:J)*2+Jt+te+X/2,Xa=0;!B&&xe.text&&le==="bottom"&&Z<=0&&(Xa=ba/2,ba+=Xa,La+=Xa),V._hColorbarMoveTitle=Xa,V._hColorbarMoveCBTitle=La;var yn=te+X,Kt=(B?Ke:vr)-yn/2-(B?q:0),zt=(B?vr:Ke)-(B?he:J+La-Xa);I.select("."+_.cbbg).attr("x",Kt).attr("y",zt).attr(B?"width":"height",Math.max(ba-Xa,2)).attr(B?"height":"width",Math.max(he+yn,2)).call(s.fill,ue).call(s.stroke,z.bordercolor).style("stroke-width",te);var $t=Ia?Math.max(mr-10,0):0;I.selectAll("."+_.cboutline).attr("x",(B?Ke:vr+q)+$t).attr("y",(B?vr+J-he:Ke)+(ia?Ie:0)).attr(B?"width":"height",Math.max(Me,2)).attr(B?"height":"width",Math.max(he-(B?2*J+Ie:2*q+$t),2)).call(s.stroke,z.outlinecolor).style({fill:"none","stroke-width":X});var Ht=B?Et*ba:0,Tr=B?0:(1-kt)*ba-La;if(Ht=Q?re.l-Ht:-Ht,Tr=se?re.t-Tr:-Tr,I.attr("transform",i(Ht,Tr)),!B&&(te||x(ue).getAlpha()&&!x.equals(V.paper_bgcolor,ue))){var qr=me.selectAll("text"),ha=qr[0].length,Gr=I.select("."+_.cbbg).node(),wa=n.bBox(Gr),Da=n.getTranslate(I),Ya=2;qr.each(function(jr,Dr){var Hr=0,na=ha-1;if(Dr===Hr||Dr===na){var ta=n.bBox(this),At=n.getTranslate(this),or;if(Dr===na){var Ar=ta.right+At.x,oa=wa.right+Da.x+vr-te-Ya+ee;or=oa-Ar,or>0&&(or=0)}else if(Dr===Hr){var ga=ta.left+At.x,Sa=wa.left+Da.x+vr+te+Ya;or=Sa-ga,or<0&&(or=0)}or&&(ha<3?this.setAttribute("transform","translate("+or+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ka={},an=S[ie],mt=M[ie],ot=S[le],Lr=M[le],Er=ba-Me;B?(P==="pixels"?(Ka.y=Z,Ka.t=he*ot,Ka.b=he*Lr):(Ka.t=Ka.b=0,Ka.yt=Z+O*ot,Ka.yb=Z-O*Lr),U==="pixels"?(Ka.x=ee,Ka.l=ba*an,Ka.r=ba*mt):(Ka.l=Er*an,Ka.r=Er*mt,Ka.xl=ee-N*an,Ka.xr=ee+N*mt)):(P==="pixels"?(Ka.x=ee,Ka.l=he*an,Ka.r=he*mt):(Ka.l=Ka.r=0,Ka.xl=ee+O*an,Ka.xr=ee-O*mt),U==="pixels"?(Ka.y=1-Z,Ka.t=ba*ot,Ka.b=ba*Lr):(Ka.t=Er*ot,Ka.b=Er*Lr,Ka.yt=Z-N*ot,Ka.yb=Z+N*Lr));var Mr=z.y<.5?"b":"t",br=z.x<.5?"l":"r";F._fullLayout._reservedMargin[z._id]={};var Or={r:V.width-Kt-Ht,l:Kt+Ka.r,b:V.height-zt-Tr,t:zt+Ka.b};Q&&se?A.autoMargin(F,z._id,Ka):Q?F._fullLayout._reservedMargin[z._id][Mr]=Or[Mr]:se||B?F._fullLayout._reservedMargin[z._id][br]=Or[br]:F._fullLayout._reservedMargin[z._id][Mr]=Or[Mr]}return r.syncOrAsync([A.previousPromises,bt,Zt,Ct,A.previousPromises,Wt],F)}function g(I,z,F){var B=z.orientation==="v",O=F._fullLayout,P=O._size,N,U,X;t.init({element:I.node(),gd:F,prepFn:function(){N=I.attr("transform"),o(I)},moveFn:function(te,ue){I.attr("transform",N+i(te,ue)),U=t.align((B?z._uFrac:z._vFrac)+te/P.w,B?z._thickFrac:z._lenFrac,0,1,z.xanchor),X=t.align((B?z._vFrac:1-z._uFrac)-ue/P.h,B?z._lenFrac:z._thickFrac,0,1,z.yanchor);var ie=t.getCursor(U,X,z.xanchor,z.yanchor);o(I,ie)},doneFn:function(){if(o(I),U!==void 0&&X!==void 0){var te={};te[z._propPrefix+"x"]=U,te[z._propPrefix+"y"]=X,z._traceIndex!==void 0?E.call("_guiRestyle",F,te,z._traceIndex):E.call("_guiRelayout",F,te)}}})}function y(I,z,F){var B=z._levels,O=[],P=[],N,U,X=B.end+B.size/100,te=B.size,ue=1.001*F[0]-.001*F[1],ie=1.001*F[1]-.001*F[0];for(U=0;U<1e5&&(N=B.start+U*te,!(te>0?N>=X:N<=X));U++)N>ue&&N0?N>=X:N<=X));U++)N>F[0]&&N-1}H.exports=function(i,a){var o,n=i.data,s=i.layout,c=E([],n),f=E({},s,e(a.tileClass)),p=i._context||{};if(a.width&&(f.width=a.width),a.height&&(f.height=a.height),a.tileClass==="thumbnail"||a.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(o=0;o=0)return p}else if(typeof p=="string"&&(p=p.trim(),p.slice(-1)==="%"&&h(p.slice(0,-1))&&(p=+p.slice(0,-1),p>=0)))return p+"%"}function f(p,v,T,l,m,w){w=w||{};var S=w.moduleHasSelected!==!1,M=w.moduleHasUnselected!==!1,_=w.moduleHasConstrain!==!1,b=w.moduleHasCliponaxis!==!1,d=w.moduleHasTextangle!==!1,u=w.moduleHasInsideanchor!==!1,g=!!w.hasPathbar,y=Array.isArray(m)||m==="auto",R=y||m==="inside",I=y||m==="outside";if(R||I){var z=o(l,"textfont",T.font),F=x.extendFlat({},z),B=p.textfont&&p.textfont.color,O=!B;if(O&&delete F.color,o(l,"insidetextfont",F),g){var P=x.extendFlat({},z);O&&delete P.color,o(l,"pathbar.textfont",P)}I&&o(l,"outsidetextfont",z),S&&l("selected.textfont.color"),M&&l("unselected.textfont.color"),_&&l("constraintext"),b&&l("cliponaxis"),d&&l("textangle"),l("texttemplate")}R&&u&&l("insidetextanchor")}H.exports={supplyDefaults:n,crossTraceDefaults:s,handleText:f,validateCornerradius:c}}}),ww=He({"src/traces/bar/layout_defaults.js"(Y,H){var h=qi(),x=wo(),A=Qr(),E=C1(),e=Yh().validateCornerradius;H.exports=function(t,r,i){function a(S,M){return A.coerce(t,r,E,S,M)}for(var o=!1,n=!1,s=!1,c={},f=a("barmode"),p=f==="group",v=0;v0&&!c[l]&&(s=!0),c[l]=!0),T.visible&&T.type==="histogram"){var m=x.getFromId({_fullLayout:r},T[T.orientation==="v"?"xaxis":"yaxis"]);m.type!=="category"&&(n=!0)}}if(!o){delete r.barmode;return}f!=="overlay"&&a("barnorm"),a("bargap",n&&!s?0:.2),a("bargroupgap");var w=a("barcornerradius");r.barcornerradius=e(w)}}}),cm=He({"src/traces/bar/arrays_to_calcdata.js"(Y,H){var h=Qr();H.exports=function(A,E){for(var e=0;er;if(!i)return E}return e!==void 0?e:A.dflt},Y.coerceColor=function(A,E,e){return h(E).isValid()?E:e!==void 0?e:A.dflt},Y.coerceEnumerated=function(A,E,e){return A.coerceNumber&&(E=+E),A.values.indexOf(E)!==-1?E:e!==void 0?e:A.dflt},Y.getValue=function(A,E){var e;return x(A)?E1||g.bargap===0&&g.bargroupgap===0&&!y[0].trace.marker.line.width)&&h.select(this).attr("shape-rendering","crispEdges")}),d.selectAll("g.points").each(function(y){var R=h.select(this),I=y[0].trace;c(R,I,b)}),e.getComponentMethod("errorbars","style")(d)}function c(b,d,u){A.pointStyle(b.selectAll("path"),d,u),f(b,d,u)}function f(b,d,u){b.selectAll("text").each(function(g){var y=h.select(this),R=E.ensureUniformFontSize(u,l(y,g,d,u));A.font(y,R)})}function p(b,d,u){var g=d[0].trace;g.selectedpoints?v(u,g,b):(c(u,g,b),e.getComponentMethod("errorbars","style")(u))}function v(b,d,u){A.selectedPointStyle(b.selectAll("path"),d),T(b.selectAll("text"),d,u)}function T(b,d,u){b.each(function(g){var y=h.select(this),R;if(g.selected){R=E.ensureUniformFontSize(u,l(y,g,d,u));var I=d.selected.textfont&&d.selected.textfont.color;I&&(R.color=I),A.font(y,R)}else A.selectedTextStyle(y,d)})}function l(b,d,u,g){var y=g._fullLayout.font,R=u.textfont;if(b.classed("bartext-inside")){var I=_(d,u);R=w(u,d.i,y,I)}else b.classed("bartext-outside")&&(R=S(u,d.i,y));return R}function m(b,d,u){return M(i,b.textfont,d,u)}function w(b,d,u,g){var y=m(b,d,u),R=b._input.textfont===void 0||b._input.textfont.color===void 0||Array.isArray(b.textfont.color)&&b.textfont.color[d]===void 0;return R&&(y={color:x.contrast(g),family:y.family,size:y.size,weight:y.weight,style:y.style,variant:y.variant,textcase:y.textcase,lineposition:y.lineposition,shadow:y.shadow}),M(a,b.insidetextfont,d,y)}function S(b,d,u){var g=m(b,d,u);return M(o,b.outsidetextfont,d,g)}function M(b,d,u,g){d=d||{};var y=n.getValue(d.family,u),R=n.getValue(d.size,u),I=n.getValue(d.color,u),z=n.getValue(d.weight,u),F=n.getValue(d.style,u),B=n.getValue(d.variant,u),O=n.getValue(d.textcase,u),P=n.getValue(d.lineposition,u),N=n.getValue(d.shadow,u);return{family:n.coerceString(b.family,y,g.family),size:n.coerceNumber(b.size,R,g.size),color:n.coerceColor(b.color,I,g.color),weight:n.coerceString(b.weight,z,g.weight),style:n.coerceString(b.style,F,g.style),variant:n.coerceString(b.variant,B,g.variant),textcase:n.coerceString(b.variant,O,g.textcase),lineposition:n.coerceString(b.variant,P,g.lineposition),shadow:n.coerceString(b.variant,N,g.shadow)}}function _(b,d){return d.type==="waterfall"?d[b.dir].marker.color:b.mcc||b.mc||d.marker.color}H.exports={style:s,styleTextPoints:f,styleOnSelect:p,getInsideTextFont:w,getOutsideTextFont:S,getBarColor:_,resizeText:t}}}),Rp=He({"src/traces/bar/plot.js"(Y,H){var h=yi(),x=Vi(),A=Qr(),E=jl(),e=zi(),t=Io(),r=qi(),i=wo().tickText,a=gh(),o=a.recordMinTextSize,n=a.clearMinTextSize,s=sv(),c=P1(),f=Ip(),p=Vv(),v=p.text,T=p.textposition,l=Dh().appendArrayPointValue,m=f.TEXTPAD;function w(te){return te.id}function S(te){if(te.ids)return w}function M(te){return(te>0)-(te<0)}function _(te,ue){return te0}function g(te,ue,ie,le,q,J){var ee=ue.xaxis,Z=ue.yaxis,se=te._fullLayout,Q=te._context.staticPlot;q||(q={mode:se.barmode,norm:se.barmode,gap:se.bargap,groupgap:se.bargroupgap},n("bar",se));var V=A.makeTraceGroups(le,ie,"trace bars").each(function(re){var ae=h.select(this),fe=re[0].trace,xe=re[0].t,Ae=fe.type==="waterfall",Pe=fe.type==="funnel",Ce=fe.type==="histogram",je=fe.type==="bar",at=je||Pe,tt=0;Ae&&fe.connector.visible&&fe.connector.mode==="between"&&(tt=fe.connector.line.width/2);var Je=fe.orientation==="h",Ze=u(q),Me=A.ensureSingle(ae,"g","points"),we=S(fe),he=Me.selectAll("g.point").data(A.identity,we);he.enter().append("g").classed("point",!0),he.exit().remove(),he.each(function(et,nt){var Ke=h.select(this),Et=b(et,ee,Z,Je),kt=Et[0][0],Ut=Et[0][1],Yt=Et[1][0],vr=Et[1][1],hr=(Je?Ut-kt:vr-Yt)===0;hr&&at&&c.getLineWidth(fe,et)&&(hr=!1),hr||(hr=!x(kt)||!x(Ut)||!x(Yt)||!x(vr)),et.isBlank=hr,hr&&(Je?Ut=kt:vr=Yt),tt&&!hr&&(Je?(kt-=_(kt,Ut)*tt,Ut+=_(kt,Ut)*tt):(Yt-=_(Yt,vr)*tt,vr+=_(Yt,vr)*tt));var Rr,dr;if(fe.type==="waterfall"){if(!hr){var wr=fe[et.dir].marker;Rr=wr.line.width,dr=wr.color}}else Rr=c.getLineWidth(fe,et),dr=et.mc||fe.marker.color;function yt(yn){var Kt=h.round(Rr/2%1,2);return q.gap===0&&q.groupgap===0?h.round(Math.round(yn)-Kt,2):yn}function Fe(yn,Kt,zt){return zt&&yn===Kt?yn:Math.abs(yn-Kt)>=2?yt(yn):yn>Kt?Math.ceil(yn):Math.floor(yn)}var We=e.opacity(dr),Oe=We<1||Rr>.01?yt:Fe;te._context.staticPlot||(kt=Oe(kt,Ut,Je),Ut=Oe(Ut,kt,Je),Yt=Oe(Yt,vr,!Je),vr=Oe(vr,Yt,!Je));var de=Je?ee.c2p:Z.c2p,me;et.s0>0?me=et._sMax:et.s0<0?me=et._sMin:me=et.s1>0?et._sMax:et._sMin;function be(yn,Kt){if(!yn)return 0;var zt=Math.abs(Je?vr-Yt:Ut-kt),$t=Math.abs(Je?Ut-kt:vr-Yt),Ht=Oe(Math.abs(de(me,!0)-de(0,!0))),Tr=et.hasB?Math.min(zt/2,$t/2):Math.min(zt/2,Ht),qr;if(Kt==="%"){var ha=Math.min(50,yn);qr=zt*(ha/100)}else qr=yn;return Oe(Math.max(Math.min(qr,Tr),0))}var Ie=je||Ce?be(xe.cornerradiusvalue,xe.cornerradiusform):0,Xe,ht,bt="M"+kt+","+Yt+"V"+vr+"H"+Ut+"V"+Yt+"Z",Ct=0;if(Ie&&et.s){var Zt=M(et.s0)===0||M(et.s)===M(et.s0)?et.s1:et.s0;if(Ct=Oe(et.hasB?0:Math.abs(de(me,!0)-de(Zt,!0))),Ct0?Math.sqrt(Ct*(2*Ie-Ct)):0,Ia=Wt>0?Math.max:Math.min;Xe="M"+kt+","+Yt+"V"+(vr-mr*rr)+"H"+Ia(Ut-(Ie-Ct)*Wt,kt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ut+","+(vr-Ie*rr-ia)+"V"+(Yt+Ie*rr+ia)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ia(Ut-(Ie-Ct)*Wt,kt)+","+(Yt+mr*rr)+"Z"}else if(et.hasB)Xe="M"+(kt+Ie*Wt)+","+Yt+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+kt+","+(Yt+Ie*rr)+"V"+(vr-Ie*rr)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(kt+Ie*Wt)+","+vr+"H"+(Ut-Ie*Wt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ut+","+(vr-Ie*rr)+"V"+(Yt+Ie*rr)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(Ut-Ie*Wt)+","+Yt+"Z";else{ht=Math.abs(vr-Yt)+Ct;var La=ht0?Math.sqrt(Ct*(2*Ie-Ct)):0,Ga=rr>0?Math.max:Math.min;Xe="M"+(kt+La*Wt)+","+Yt+"V"+Ga(vr-(Ie-Ct)*rr,Yt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(kt+Ie*Wt-Aa)+","+vr+"H"+(Ut-Ie*Wt+Aa)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(Ut-La*Wt)+","+Ga(vr-(Ie-Ct)*rr,Yt)+"V"+Yt+"Z"}}else Xe=bt}else Xe=bt;var ba=d(A.ensureSingle(Ke,"path"),se,q,J);if(ba.style("vector-effect",Q?"none":"non-scaling-stroke").attr("d",isNaN((Ut-kt)*(vr-Yt))||hr&&te._context.staticPlot?"M0,0Z":Xe).call(t.setClipUrl,ue.layerClipId,te),!se.uniformtext.mode&&Ze){var Xa=t.makePointStyleFns(fe);t.singlePointStyle(et,ba,fe,Xa,te)}y(te,ue,Ke,re,nt,kt,Ut,Yt,vr,Ie,Ct,q,J),ue.layerClipId&&t.hideOutsideRangePoint(et,Ke.select("text"),ee,Z,fe.xcalendar,fe.ycalendar)});var De=fe.cliponaxis===!1;t.setClipUrl(ae,De?null:ue.layerClipId,te)});r.getComponentMethod("errorbars","plot")(te,V,ue,q)}function y(te,ue,ie,le,q,J,ee,Z,se,Q,V,re,ae){var fe=ue.xaxis,xe=ue.yaxis,Ae=te._fullLayout,Pe;function Ce(ht,bt,Ct){var Zt=A.ensureSingle(ht,"text").text(bt).attr({class:"bartext bartext-"+Pe,"text-anchor":"middle","data-notex":1}).call(t.font,Ct).call(E.convertToTspans,te);return Zt}var je=le[0].trace,at=je.orientation==="h",tt=P(Ae,le,q,fe,xe);Pe=N(je,q);var Je=re.mode==="stack"||re.mode==="relative",Ze=le[q],Me=!Je||Ze._outmost,we=Ze.hasB,he=Q&&Q-V>m;if(!tt||Pe==="none"||(Ze.isBlank||J===ee||Z===se)&&(Pe==="auto"||Pe==="inside")){ie.select("text").remove();return}var De=Ae.font,et=s.getBarColor(le[q],je),nt=s.getInsideTextFont(je,q,De,et),Ke=s.getOutsideTextFont(je,q,De),Et=je.insidetextanchor||"end",kt=ie.datum();at?fe.type==="log"&&kt.s0<=0&&(fe.range[0]0&&yt>0,Oe;he?we?Oe=R(vr-2*Q,hr,wr,yt,at)||R(vr,hr-2*Q,wr,yt,at):at?Oe=R(vr-(Q-V),hr,wr,yt,at)||R(vr,hr-2*(Q-V),wr,yt,at):Oe=R(vr,hr-(Q-V),wr,yt,at)||R(vr-2*(Q-V),hr,wr,yt,at):Oe=R(vr,hr,wr,yt,at),We&&Oe?Pe="inside":(Pe="outside",Rr.remove(),Rr=null)}else Pe="inside";if(!Rr){Fe=A.ensureUniformFontSize(te,Pe==="outside"?Ke:nt),Rr=Ce(ie,tt,Fe);var de=Rr.attr("transform");if(Rr.attr("transform",""),dr=t.bBox(Rr.node()),wr=dr.width,yt=dr.height,Rr.attr("transform",de),wr<=0||yt<=0){Rr.remove();return}}var me=je.textangle,be,Ie;Pe==="outside"?(Ie=je.constraintext==="both"||je.constraintext==="outside",be=O(J,ee,Z,se,dr,{isHorizontal:at,constrained:Ie,angle:me})):(Ie=je.constraintext==="both"||je.constraintext==="inside",be=F(J,ee,Z,se,dr,{isHorizontal:at,constrained:Ie,angle:me,anchor:Et,hasB:we,r:Q,overhead:V})),be.fontSize=Fe.size,o(je.type==="histogram"?"bar":je.type,be,Ae),Ze.transform=be;var Xe=d(Rr,Ae,re,ae);A.setTransormAndDisplay(Xe,be)}function R(te,ue,ie,le,q){if(te<0||ue<0)return!1;var J=ie<=te&&le<=ue,ee=ie<=ue&&le<=te,Z=q?te>=ie*(ue/le):ue>=le*(te/ie);return J||ee||Z}function I(te){return te==="auto"?0:te}function z(te,ue){var ie=Math.PI/180*ue,le=Math.abs(Math.sin(ie)),q=Math.abs(Math.cos(ie));return{x:te.width*q+te.height*le,y:te.width*le+te.height*q}}function F(te,ue,ie,le,q,J){var ee=!!J.isHorizontal,Z=!!J.constrained,se=J.angle||0,Q=J.anchor,V=Q==="end",re=Q==="start",ae=J.leftToRight||0,fe=(ae+1)/2,xe=1-fe,Ae=J.hasB,Pe=J.r,Ce=J.overhead,je=q.width,at=q.height,tt=Math.abs(ue-te),Je=Math.abs(le-ie),Ze=tt>2*m&&Je>2*m?m:0;tt-=2*Ze,Je-=2*Ze;var Me=I(se);se==="auto"&&!(je<=tt&&at<=Je)&&(je>tt||at>Je)&&(!(je>Je||at>tt)||jem){var et=B(te,ue,ie,le,we,Pe,Ce,ee,Ae);he=et.scale,De=et.pad}else he=1,Z&&(he=Math.min(1,tt/we.x,Je/we.y)),De=0;var nt=q.left*xe+q.right*fe,Ke=(q.top+q.bottom)/2,Et=(te+m)*xe+(ue-m)*fe,kt=(ie+le)/2,Ut=0,Yt=0;if(re||V){var vr=(ee?we.x:we.y)/2;Pe&&(V||Ae)&&(Ze+=De);var hr=ee?_(te,ue):_(ie,le);ee?re?(Et=te+hr*Ze,Ut=-hr*vr):(Et=ue-hr*Ze,Ut=hr*vr):re?(kt=ie+hr*Ze,Yt=-hr*vr):(kt=le-hr*Ze,Yt=hr*vr)}return{textX:nt,textY:Ke,targetX:Et,targetY:kt,anchorX:Ut,anchorY:Yt,scale:he,rotate:Me}}function B(te,ue,ie,le,q,J,ee,Z,se){var Q=Math.max(0,Math.abs(ue-te)-2*m),V=Math.max(0,Math.abs(le-ie)-2*m),re=J-m,ae=ee?re-Math.sqrt(re*re-(re-ee)*(re-ee)):re,fe=se?re*2:Z?re-ee:2*ae,xe=se?re*2:Z?2*ae:re-ee,Ae,Pe,Ce,je,at;return q.y/q.x>=V/(Q-fe)?je=V/q.y:q.y/q.x<=(V-xe)/Q?je=Q/q.x:!se&&Z?(Ae=q.x*q.x+q.y*q.y/4,Pe=-2*q.x*(Q-re)-q.y*(V/2-re),Ce=(Q-re)*(Q-re)+(V/2-re)*(V/2-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)):se?(Ae=(q.x*q.x+q.y*q.y)/4,Pe=-q.x*(Q/2-re)-q.y*(V/2-re),Ce=(Q/2-re)*(Q/2-re)+(V/2-re)*(V/2-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)):(Ae=q.x*q.x/4+q.y*q.y,Pe=-q.x*(Q/2-re)-2*q.y*(V-re),Ce=(Q/2-re)*(Q/2-re)+(V-re)*(V-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)),je=Math.min(1,je),Z?at=Math.max(0,re-Math.sqrt(Math.max(0,re*re-(re-(V-q.y*je)/2)*(re-(V-q.y*je)/2)))-ee):at=Math.max(0,re-Math.sqrt(Math.max(0,re*re-(re-(Q-q.x*je)/2)*(re-(Q-q.x*je)/2)))-ee),{scale:je,pad:at}}function O(te,ue,ie,le,q,J){var ee=!!J.isHorizontal,Z=!!J.constrained,se=J.angle||0,Q=q.width,V=q.height,re=Math.abs(ue-te),ae=Math.abs(le-ie),fe;ee?fe=ae>2*m?m:0:fe=re>2*m?m:0;var xe=1;Z&&(xe=ee?Math.min(1,ae/V):Math.min(1,re/Q));var Ae=I(se),Pe=z(q,Ae),Ce=(ee?Pe.x:Pe.y)/2,je=(q.left+q.right)/2,at=(q.top+q.bottom)/2,tt=(te+ue)/2,Je=(ie+le)/2,Ze=0,Me=0,we=ee?_(ue,te):_(ie,le);return ee?(tt=ue-we*fe,Ze=we*Ce):(Je=le+we*fe,Me=-we*Ce),{textX:je,textY:at,targetX:tt,targetY:Je,anchorX:Ze,anchorY:Me,scale:xe,rotate:Ae}}function P(te,ue,ie,le,q){var J=ue[0].trace,ee=J.texttemplate,Z;return ee?Z=U(te,ue,ie,le,q):J.textinfo?Z=X(ue,ie,le,q):Z=c.getValue(J.text,ie),c.coerceString(v,Z)}function N(te,ue){var ie=c.getValue(te.textposition,ue);return c.coerceEnumerated(T,ie)}function U(te,ue,ie,le,q){var J=ue[0].trace,ee=A.castOption(J,ie,"texttemplate");if(!ee)return"";var Z=J.type==="histogram",se=J.type==="waterfall",Q=J.type==="funnel",V=J.orientation==="h",re,ae,fe,xe;V?(re="y",ae=q,fe="x",xe=le):(re="x",ae=le,fe="y",xe=q);function Ae(Ze){return i(ae,ae.c2l(Ze),!0).text}function Pe(Ze){return i(xe,xe.c2l(Ze),!0).text}var Ce=ue[ie],je={};je.label=Ce.p,je.labelLabel=je[re+"Label"]=Ae(Ce.p);var at=A.castOption(J,Ce.i,"text");(at===0||at)&&(je.text=at),je.value=Ce.s,je.valueLabel=je[fe+"Label"]=Pe(Ce.s);var tt={};l(tt,J,Ce.i),(Z||tt.x===void 0)&&(tt.x=V?je.value:je.label),(Z||tt.y===void 0)&&(tt.y=V?je.label:je.value),(Z||tt.xLabel===void 0)&&(tt.xLabel=V?je.valueLabel:je.labelLabel),(Z||tt.yLabel===void 0)&&(tt.yLabel=V?je.labelLabel:je.valueLabel),se&&(je.delta=+Ce.rawS||Ce.s,je.deltaLabel=Pe(je.delta),je.final=Ce.v,je.finalLabel=Pe(je.final),je.initial=je.final-je.delta,je.initialLabel=Pe(je.initial)),Q&&(je.value=Ce.s,je.valueLabel=Pe(je.value),je.percentInitial=Ce.begR,je.percentInitialLabel=A.formatPercent(Ce.begR),je.percentPrevious=Ce.difR,je.percentPreviousLabel=A.formatPercent(Ce.difR),je.percentTotal=Ce.sumR,je.percenTotalLabel=A.formatPercent(Ce.sumR));var Je=A.castOption(J,Ce.i,"customdata");return Je&&(je.customdata=Je),A.texttemplateString(ee,je,te._d3locale,tt,je,J._meta||{})}function X(te,ue,ie,le){var q=te[0].trace,J=q.orientation==="h",ee=q.type==="waterfall",Z=q.type==="funnel";function se(Je){var Ze=J?le:ie;return i(Ze,Je,!0).text}function Q(Je){var Ze=J?ie:le;return i(Ze,+Je,!0).text}var V=q.textinfo,re=te[ue],ae=V.split("+"),fe=[],xe,Ae=function(Je){return ae.indexOf(Je)!==-1};if(Ae("label")&&fe.push(se(te[ue].p)),Ae("text")&&(xe=A.castOption(q,re.i,"text"),(xe===0||xe)&&fe.push(xe)),ee){var Pe=+re.rawS||re.s,Ce=re.v,je=Ce-Pe;Ae("initial")&&fe.push(Q(je)),Ae("delta")&&fe.push(Q(Pe)),Ae("final")&&fe.push(Q(Ce))}if(Z){Ae("value")&&fe.push(Q(re.s));var at=0;Ae("percent initial")&&at++,Ae("percent previous")&&at++,Ae("percent total")&&at++;var tt=at>1;Ae("percent initial")&&(xe=A.formatPercent(re.begR),tt&&(xe+=" of initial"),fe.push(xe)),Ae("percent previous")&&(xe=A.formatPercent(re.difR),tt&&(xe+=" of previous"),fe.push(xe)),Ae("percent total")&&(xe=A.formatPercent(re.sumR),tt&&(xe+=" of total"),fe.push(xe))}return fe.join("
")}H.exports={plot:g,toMoveInsideBar:F}}}),Y0=He({"src/traces/bar/hover.js"(Y,H){var h=xc(),x=qi(),A=zi(),E=Qr().fillText,e=P1().getLineWidth,t=wo().hoverLabelText,r=qo().BADNUM;function i(n,s,c,f,p){var v=a(n,s,c,f,p);if(v){var T=v.cd,l=T[0].trace,m=T[v.index];return v.color=o(l,m),x.getComponentMethod("errorbars","hoverInfo")(m,l,v),[v]}}function a(n,s,c,f,p){var v=n.cd,T=v[0].trace,l=v[0].t,m=f==="closest",w=T.type==="waterfall",S=n.maxHoverDistance,M=n.maxSpikeDistance,_,b,d,u,g,y,R;T.orientation==="h"?(_=c,b=s,d="y",u="x",g=le,y=te):(_=s,b=c,d="x",u="y",y=le,g=te);var I=T[d+"period"],z=m||I;function F(xe){return O(xe,-1)}function B(xe){return O(xe,1)}function O(xe,Ae){var Pe=xe.w;return xe[d]+Ae*Pe/2}function P(xe){return xe[d+"End"]-xe[d+"Start"]}var N=m?F:I?function(xe){return xe.p-P(xe)/2}:function(xe){return Math.min(F(xe),xe.p-l.bardelta/2)},U=m?B:I?function(xe){return xe.p+P(xe)/2}:function(xe){return Math.max(B(xe),xe.p+l.bardelta/2)};function X(xe,Ae,Pe){return p.finiteRange&&(Pe=0),h.inbox(xe-_,Ae-_,Pe+Math.min(1,Math.abs(Ae-xe)/R)-1)}function te(xe){return X(N(xe),U(xe),S)}function ue(xe){return X(F(xe),B(xe),M)}function ie(xe){var Ae=xe[u];if(w){var Pe=Math.abs(xe.rawS)||0;b>0?Ae+=Pe:b<0&&(Ae-=Pe)}return Ae}function le(xe){var Ae=b,Pe=xe.b,Ce=ie(xe);return h.inbox(Pe-Ae,Ce-Ae,S+(Ce-Ae)/(Ce-Pe)-1)}function q(xe){var Ae=b,Pe=xe.b,Ce=ie(xe);return h.inbox(Pe-Ae,Ce-Ae,M+(Ce-Ae)/(Ce-Pe)-1)}var J=n[d+"a"],ee=n[u+"a"];R=Math.abs(J.r2c(J.range[1])-J.r2c(J.range[0]));function Z(xe){return(g(xe)+y(xe))/2}var se=h.getDistanceFunction(f,g,y,Z);if(h.getClosest(v,se,n),n.index!==!1&&v[n.index].p!==r){z||(N=function(xe){return Math.min(F(xe),xe.p-l.bargroupwidth/2)},U=function(xe){return Math.max(B(xe),xe.p+l.bargroupwidth/2)});var Q=n.index,V=v[Q],re=T.base?V.b+V.s:V.s;n[u+"0"]=n[u+"1"]=ee.c2p(V[u],!0),n[u+"LabelVal"]=re;var ae=l.extents[l.extents.round(V.p)];n[d+"0"]=J.c2p(m?N(V):ae[0],!0),n[d+"1"]=J.c2p(m?U(V):ae[1],!0);var fe=V.orig_p!==void 0;return n[d+"LabelVal"]=fe?V.orig_p:V.p,n.labelLabel=t(J,n[d+"LabelVal"],T[d+"hoverformat"]),n.valueLabel=t(ee,n[u+"LabelVal"],T[u+"hoverformat"]),n.baseLabel=t(ee,V.b,T[u+"hoverformat"]),n.spikeDistance=(q(V)+ue(V))/2,n[d+"Spike"]=J.c2p(V.p,!0),E(V,T,n),n.hovertemplate=T.hovertemplate,n}}function o(n,s){var c=s.mcc||n.marker.color,f=s.mlcc||n.marker.line.color,p=e(n,s);if(A.opacity(c))return c;if(A.opacity(f)&&p)return f}H.exports={hoverPoints:i,hoverOnBars:a,getTraceColor:o}}}),c5=He({"src/traces/bar/event_data.js"(Y,H){H.exports=function(x,A,E){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),E.orientation==="h"?(x.label=x.y,x.value=x.x):(x.label=x.x,x.value=x.y),x}}}),$0=He({"src/traces/bar/select.js"(Y,H){H.exports=function(A,E){var e=A.cd,t=A.xaxis,r=A.yaxis,i=e[0].trace,a=i.type==="funnel",o=i.orientation==="h",n=[],s;if(E===!1)for(s=0;s0?(I="v",d>0?z=Math.min(g,u):z=Math.min(u)):d>0?(I="h",z=Math.min(g)):z=0;if(!z){c.visible=!1;return}c._length=z;var N=f("orientation",I);c._hasPreCompStats?N==="v"&&d===0?(f("x0",0),f("dx",1)):N==="h"&&b===0&&(f("y0",0),f("dy",1)):N==="v"&&d===0?f("x0"):N==="h"&&b===0&&f("y0");var U=x.getComponentMethod("calendars","handleTraceDefaults");U(s,c,["x","y"],p)}function o(s,c,f,p){var v=p.prefix,T=h.coerce2(s,c,r,"marker.outliercolor"),l=f("marker.line.outliercolor"),m="outliers";c._hasPreCompStats?m="all":(T||l)&&(m="suspectedoutliers");var w=f(v+"points",m);w?(f("jitter",w==="all"?.3:0),f("pointpos",w==="all"?-1.5:0),f("marker.symbol"),f("marker.opacity"),f("marker.size"),f("marker.angle"),f("marker.color",c.line.color),f("marker.line.color"),f("marker.line.width"),w==="suspectedoutliers"&&(f("marker.line.outliercolor",c.marker.color),f("marker.line.outlierwidth")),f("selected.marker.color"),f("unselected.marker.color"),f("selected.marker.size"),f("unselected.marker.size"),f("text"),f("hovertext")):delete c.marker;var S=f("hoveron");(S==="all"||S.indexOf("points")!==-1)&&f("hovertemplate"),h.coerceSelectionMarkerOpacity(c,f)}function n(s,c){var f,p;function v(w){return h.coerce(p._input,p,r,w)}for(var T=0;Tie.uf};if(M._hasPreCompStats){var Q=M[z],V=function(hr){return I.d2c((M[hr]||[])[y])},re=1/0,ae=-1/0;for(y=0;y=ie.q1&&ie.q3>=ie.med){var xe=V("lowerfence");ie.lf=xe!==e&&xe<=ie.q1?xe:p(ie,q,J);var Ae=V("upperfence");ie.uf=Ae!==e&&Ae>=ie.q3?Ae:v(ie,q,J);var Pe=V("mean");ie.mean=Pe!==e?Pe:J?E.mean(q,J):(ie.q1+ie.q3)/2;var Ce=V("sd");ie.sd=Pe!==e&&Ce>=0?Ce:J?E.stdev(q,J,ie.mean):ie.q3-ie.q1,ie.lo=T(ie),ie.uo=l(ie);var je=V("notchspan");je=je!==e&&je>0?je:m(ie,J),ie.ln=ie.med-je,ie.un=ie.med+je;var at=ie.lf,tt=ie.uf;M.boxpoints&&q.length&&(at=Math.min(at,q[0]),tt=Math.max(tt,q[J-1])),M.notched&&(at=Math.min(at,ie.ln),tt=Math.max(tt,ie.un)),ie.min=at,ie.max=tt}else{E.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ie.q1,"median = "+ie.med,"q3 = "+ie.q3].join(` +`));var Je;ie.med!==e?Je=ie.med:ie.q1!==e?ie.q3!==e?Je=(ie.q1+ie.q3)/2:Je=ie.q1:ie.q3!==e?Je=ie.q3:Je=0,ie.med=Je,ie.q1=ie.q3=Je,ie.lf=ie.uf=Je,ie.mean=ie.sd=Je,ie.ln=ie.un=Je,ie.min=ie.max=Je}re=Math.min(re,ie.min),ae=Math.max(ae,ie.max),ie.pts2=le.filter(se),u.push(ie)}}M._extremes[I._id]=x.findExtremes(I,[re,ae],{padded:!0})}else{var Ze=I.makeCalcdata(M,z),Me=i(te,ue),we=te.length,he=a(we);for(y=0;y=0&&De0){if(ie={},ie.pos=ie[B]=te[y],le=ie.pts=he[y].sort(c),q=ie[z]=le.map(f),J=q.length,ie.min=q[0],ie.max=q[J-1],ie.mean=E.mean(q,J),ie.sd=E.stdev(q,J,ie.mean)*M.sdmultiple,ie.med=E.interp(q,.5),J%2&&(Et||kt)){var Ut,Yt;Et?(Ut=q.slice(0,J/2),Yt=q.slice(J/2+1)):kt&&(Ut=q.slice(0,J/2+1),Yt=q.slice(J/2)),ie.q1=E.interp(Ut,.5),ie.q3=E.interp(Yt,.5)}else ie.q1=E.interp(q,.25),ie.q3=E.interp(q,.75);ie.lf=p(ie,q,J),ie.uf=v(ie,q,J),ie.lo=T(ie),ie.uo=l(ie);var vr=m(ie,J);ie.ln=ie.med-vr,ie.un=ie.med+vr,et=Math.min(et,ie.ln),nt=Math.max(nt,ie.un),ie.pts2=le.filter(se),u.push(ie)}M.notched&&E.isTypedArray(Ze)&&(Ze=Array.from(Ze)),M._extremes[I._id]=x.findExtremes(I,M.notched?Ze.concat([et,nt]):Ze,{padded:!0})}return s(u,M),u.length>0?(u[0].t={num:_[g],dPos:ue,posLetter:B,valLetter:z,labels:{med:t(S,"median:"),min:t(S,"min:"),q1:t(S,"q1:"),q3:t(S,"q3:"),max:t(S,"max:"),mean:M.boxmean==="sd"||M.sizemode==="sd"?t(S,"mean ± σ:").replace("σ",M.sdmultiple===1?"σ":M.sdmultiple+"σ"):t(S,"mean:"),lf:t(S,"lower fence:"),uf:t(S,"upper fence:")}},_[g]++,u):[{t:{empty:!0}}]};function r(w,S,M,_){var b=S in w,d=S+"0"in w,u="d"+S in w;if(b||d&&u){var g=M.makeCalcdata(w,S),y=A(w,M,S,g).vals;return[y,g]}var R;d?R=w[S+"0"]:"name"in w&&(M.type==="category"||h(w.name)&&["linear","log"].indexOf(M.type)!==-1||E.isDateTime(w.name)&&M.type==="date")?R=w.name:R=_;for(var I=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,w[S+"calendar"]),z=w._length,F=new Array(z),B=0;B1,d=1-s[r+"gap"],u=1-s[r+"groupgap"];for(p=0;p0;if(I==="positive"?(ie=z*(R?1:.5),J=q,le=J=B):I==="negative"?(ie=J=B,le=z*(R?1:.5),ee=q):(ie=le=z,J=ee=q),ae){var fe=g.pointpos,xe=g.jitter,Ae=g.marker.size/2,Pe=0;fe+xe>=0&&(Pe=q*(fe+xe),Pe>ie?(re=!0,Q=Ae,Z=Pe):Pe>J&&(Q=Ae,Z=ie)),Pe<=ie&&(Z=ie);var Ce=0;fe-xe<=0&&(Ce=-q*(fe-xe),Ce>le?(re=!0,V=Ae,se=Ce):Ce>ee&&(V=Ae,se=le)),Ce<=le&&(se=le)}else Z=ie,se=le;var je=new Array(T.length);for(v=0;vM.lo&&(N.so=!0)}return b});S.enter().append("path").classed("point",!0),S.exit().remove(),S.call(A.translatePoints,f,p)}function a(o,n,s,c){var f=n.val,p=n.pos,v=!!p.rangebreaks,T=c.bPos,l=c.bPosPxOffset||0,m=s.boxmean||(s.meanline||{}).visible,w,S;Array.isArray(c.bdPos)?(w=c.bdPos[0],S=c.bdPos[1]):(w=c.bdPos,S=c.bdPos);var M=o.selectAll("path.mean").data(s.type==="box"&&s.boxmean||s.type==="violin"&&s.box.visible&&s.meanline.visible?x.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(_){var b=p.c2l(_.pos+T,!0),d=p.l2p(b-w)+l,u=p.l2p(b+S)+l,g=v?(d+u)/2:p.l2p(b)+l,y=f.c2p(_.mean,!0),R=f.c2p(_.mean-_.sd,!0),I=f.c2p(_.mean+_.sd,!0);s.orientation==="h"?h.select(this).attr("d","M"+y+","+d+"V"+u+(m==="sd"?"m0,0L"+R+","+g+"L"+y+","+d+"L"+I+","+g+"Z":"")):h.select(this).attr("d","M"+d+","+y+"H"+u+(m==="sd"?"m0,0L"+g+","+R+"L"+d+","+y+"L"+g+","+I+"Z":""))})}H.exports={plot:t,plotBoxAndWhiskers:r,plotPoints:i,plotBoxMean:a}}}),z1=He({"src/traces/box/style.js"(Y,H){var h=yi(),x=zi(),A=Io();function E(t,r,i){var a=i||h.select(t).selectAll("g.trace.boxes");a.style("opacity",function(o){return o[0].trace.opacity}),a.each(function(o){var n=h.select(this),s=o[0].trace,c=s.line.width;function f(T,l,m,w){T.style("stroke-width",l+"px").call(x.stroke,m).call(x.fill,w)}var p=n.selectAll("path.box");if(s.type==="candlestick")p.each(function(T){if(!T.empty){var l=h.select(this),m=s[T.dir];f(l,m.line.width,m.line.color,m.fillcolor),l.style("opacity",s.selectedpoints&&!T.selected?.3:1)}});else{f(p,c,s.line.color,s.fillcolor),n.selectAll("path.mean").style({"stroke-width":c,"stroke-dasharray":2*c+"px,"+c+"px"}).call(x.stroke,s.line.color);var v=n.selectAll("path.point");A.pointStyle(v,s,t)}})}function e(t,r,i){var a=r[0].trace,o=i.selectAll("path.point");a.selectedpoints?A.selectedPointStyle(o,a):A.pointStyle(o,a,t)}H.exports={style:E,styleOnSelect:e}}}),Aw=He({"src/traces/box/hover.js"(Y,H){var h=wo(),x=Qr(),A=xc(),E=zi(),e=x.fillText;function t(a,o,n,s){var c=a.cd,f=c[0].trace,p=f.hoveron,v=[],T;return p.indexOf("boxes")!==-1&&(v=v.concat(r(a,o,n,s))),p.indexOf("points")!==-1&&(T=i(a,o,n)),s==="closest"?T?[T]:v:(T&&v.push(T),v)}function r(a,o,n,s){var c=a.cd,f=a.xa,p=a.ya,v=c[0].trace,T=c[0].t,l=v.type==="violin",m,w,S,M,_,b,d,u,g,y,R,I=T.bdPos,z,F,B=T.wHover,O=function(Ce){return S.c2l(Ce.pos)+T.bPos-S.c2l(b)};l&&v.side!=="both"?(v.side==="positive"&&(g=function(Ce){var je=O(Ce);return A.inbox(je,je+B,y)},z=I,F=0),v.side==="negative"&&(g=function(Ce){var je=O(Ce);return A.inbox(je-B,je,y)},z=0,F=I)):(g=function(Ce){var je=O(Ce);return A.inbox(je-B,je+B,y)},z=F=I);var P;l?P=function(Ce){return A.inbox(Ce.span[0]-_,Ce.span[1]-_,y)}:P=function(Ce){return A.inbox(Ce.min-_,Ce.max-_,y)},v.orientation==="h"?(_=o,b=n,d=P,u=g,m="y",S=p,w="x",M=f):(_=n,b=o,d=g,u=P,m="x",S=f,w="y",M=p);var N=Math.min(1,I/Math.abs(S.r2c(S.range[1])-S.r2c(S.range[0])));y=a.maxHoverDistance-N,R=a.maxSpikeDistance-N;function U(Ce){return(d(Ce)+u(Ce))/2}var X=A.getDistanceFunction(s,d,u,U);if(A.getClosest(c,X,a),a.index===!1)return[];var te=c[a.index],ue=v.line.color,ie=(v.marker||{}).color;E.opacity(ue)&&v.line.width?a.color=ue:E.opacity(ie)&&v.boxpoints?a.color=ie:a.color=v.fillcolor,a[m+"0"]=S.c2p(te.pos+T.bPos-F,!0),a[m+"1"]=S.c2p(te.pos+T.bPos+z,!0),a[m+"LabelVal"]=te.orig_p!==void 0?te.orig_p:te.pos;var le=m+"Spike";a.spikeDistance=U(te)*R/y,a[le]=S.c2p(te.pos,!0);var q=v.boxmean||v.sizemode==="sd"||(v.meanline||{}).visible,J=v.boxpoints||v.points,ee=J&&q?["max","uf","q3","med","mean","q1","lf","min"]:J&&!q?["max","uf","q3","med","q1","lf","min"]:!J&&q?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=M.range[1]0&&(i=!0);for(var s=0;st){var r=t-E[x];return E[x]=t,r}}else return E[x]=t,t;return 0},max:function(x,A,E,e){var t=e[A];if(h(t))if(t=Number(t),h(E[x])){if(E[x]d&&dE){var y=u===x?1:6,R=u===x?"M12":"M1";return function(I,z){var F=T.c2d(I,x,l),B=F.indexOf("-",y);B>0&&(F=F.substr(0,B));var O=T.d2c(F,0,l);if(Or?c>E?c>x*1.1?x:c>A*1.1?A:E:c>e?e:c>t?t:r:Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function n(c,f,p,v,T,l){if(v&&c>E){var m=s(f,T,l),w=s(p,T,l),S=c===x?0:1;return m[S]!==w[S]}return Math.floor(p/c)-Math.floor(f/c)>.1}function s(c,f,p){var v=f.c2d(c,x,p).split("-");return v[0]===""&&(v.unshift(),v[0]="-"+v[0]),v}}}),Pw=He({"src/traces/histogram/calc.js"(Y,H){var h=Vi(),x=Qr(),A=qi(),E=wo(),e=cm(),t=Ew(),r=kw(),i=Cw(),a=Lw();function o(p,v){var T=[],l=[],m=v.orientation==="h",w=E.getFromId(p,m?v.yaxis:v.xaxis),S=m?"y":"x",M={x:"y",y:"x"}[S],_=v[S+"calendar"],b=v.cumulative,d,u=n(p,v,w,S),g=u[0],y=u[1],R=typeof g.size=="string",I=[],z=R?I:g,F=[],B=[],O=[],P=0,N=v.histnorm,U=v.histfunc,X=N.indexOf("density")!==-1,te,ue,ie;b.enabled&&X&&(N=N.replace(/ ?density$/,""),X=!1);var le=U==="max"||U==="min",q=le?null:0,J=t.count,ee=r[N],Z=!1,se=function(we){return w.r2c(we,0,_)},Q;for(x.isArrayOrTypedArray(v[M])&&U!=="count"&&(Q=v[M],Z=U==="avg",J=t[U]),d=se(g.start),ue=se(g.end)+(d-E.tickIncrement(d,g.size,!1,_))/1e6;d=0&&ie=Je;d--)if(l[d]){Ze=d;break}for(d=Je;d<=Ze;d++)if(h(T[d])&&h(l[d])){var Me={p:T[d],s:l[d],b:0};b.enabled||(Me.pts=O[d],fe?Me.ph0=Me.ph1=O[d].length?y[O[d][0]]:T[d]:(v._computePh=!0,Me.ph0=je(I[d]),Me.ph1=je(I[d+1],!0))),tt.push(Me)}return tt.length===1&&(tt[0].width1=E.tickIncrement(tt[0].p,g.size,!1,_)-tt[0].p),e(tt,v),x.isArrayOrTypedArray(v.selectedpoints)&&x.tagSelected(tt,v,Pe),tt}function n(p,v,T,l,m){var w=l+"bins",S=p._fullLayout,M=v["_"+l+"bingroup"],_=S._histogramBinOpts[M],b=S.barmode==="overlay",d,u,g,y,R,I,z,F=function(Ce){return T.r2c(Ce,0,y)},B=function(Ce){return T.c2r(Ce,0,y)},O=T.type==="date"?function(Ce){return Ce||Ce===0?x.cleanDate(Ce,null,y):null}:function(Ce){return h(Ce)?Number(Ce):null};function P(Ce,je,at){je[Ce+"Found"]?(je[Ce]=O(je[Ce]),je[Ce]===null&&(je[Ce]=at[Ce])):(I[Ce]=je[Ce]=at[Ce],x.nestedProperty(u[0],w+"."+Ce).set(at[Ce]))}if(v["_"+l+"autoBinFinished"])delete v["_"+l+"autoBinFinished"];else{u=_.traces;var N=[],U=!0,X=!1,te=!1;for(d=0;d"u"){if(m)return[ie,R,!0];ie=s(p,v,T,l,w)}z=g.cumulative||{},z.enabled&&z.currentbin!=="include"&&(z.direction==="decreasing"?ie.start=B(E.tickIncrement(F(ie.start),ie.size,!0,y)):ie.end=B(E.tickIncrement(F(ie.end),ie.size,!1,y))),_.size=ie.size,_.sizeFound||(I.size=ie.size,x.nestedProperty(u[0],w+".size").set(ie.size)),P("start",_,ie),P("end",_,ie)}R=v["_"+l+"pos0"],delete v["_"+l+"pos0"];var q=v._input[w]||{},J=x.extendFlat({},_),ee=_.start,Z=T.r2l(q.start),se=Z!==void 0;if((_.startFound||se)&&Z!==T.r2l(ee)){var Q=se?Z:x.aggNums(Math.min,null,R),V={type:T.type==="category"||T.type==="multicategory"?"linear":T.type,r2l:T.r2l,dtick:_.size,tick0:ee,calendar:y,range:[Q,E.tickIncrement(Q,_.size,!1,y)].map(T.l2r)},re=E.tickFirst(V);re>T.r2l(Q)&&(re=E.tickIncrement(re,_.size,!0,y)),J.start=T.l2r(re),se||x.nestedProperty(v,w+".start").set(J.start)}var ae=_.end,fe=T.r2l(q.end),xe=fe!==void 0;if((_.endFound||xe)&&fe!==T.r2l(ae)){var Ae=xe?fe:x.aggNums(Math.max,null,R);J.end=T.l2r(Ae),xe||x.nestedProperty(v,w+".start").set(J.end)}var Pe="autobin"+l;return v._input[Pe]===!1&&(v._input[w]=x.extendFlat({},v[w]||{}),delete v._input[Pe],delete v[Pe]),[J,R]}function s(p,v,T,l,m){var w=p._fullLayout,S=c(p,v),M=!1,_=1/0,b=[v],d,u,g;for(d=0;d=0;l--)M(l);else if(v==="increasing"){for(l=1;l=0;l--)p[l]+=p[l+1];T==="exclude"&&(p.push(0),p.shift())}}H.exports={calc:o,calcAllAutoBins:n}}}),m5=He({"src/traces/histogram2d/calc.js"(Y,H){var h=Qr(),x=wo(),A=Ew(),E=kw(),e=Cw(),t=Lw(),r=Pw().calcAllAutoBins;H.exports=function(s,c){var f=x.getFromId(s,c.xaxis),p=x.getFromId(s,c.yaxis),v=c.xcalendar,T=c.ycalendar,l=function(Fe){return f.r2c(Fe,0,v)},m=function(Fe){return p.r2c(Fe,0,T)},w=function(Fe){return f.c2r(Fe,0,v)},S=function(Fe){return p.c2r(Fe,0,T)},M,_,b,d,u=r(s,c,f,"x"),g=u[0],y=u[1],R=r(s,c,p,"y"),I=R[0],z=R[1],F=c._length;y.length>F&&y.splice(F,y.length-F),z.length>F&&z.splice(F,z.length-F);var B=[],O=[],P=[],N=typeof g.size=="string",U=typeof I.size=="string",X=[],te=[],ue=N?X:g,ie=U?te:I,le=0,q=[],J=[],ee=c.histnorm,Z=c.histfunc,se=ee.indexOf("density")!==-1,Q=Z==="max"||Z==="min",V=Q?null:0,re=A.count,ae=E[ee],fe=!1,xe=[],Ae=[],Pe="z"in c?c.z:"marker"in c&&Array.isArray(c.marker.color)?c.marker.color:"";Pe&&Z!=="count"&&(fe=Z==="avg",re=A[Z]);var Ce=g.size,je=l(g.start),at=l(g.end)+(je-x.tickIncrement(je,Ce,!1,v))/1e6;for(M=je;M=0&&b=0&&dx;o++)a=e(r,i,E(a));return a>x&&h.log("interp2d didn't converge quickly",a),r};function e(t,r,i){var a=0,o,n,s,c,f,p,v,T,l,m,w,S,M;for(c=0;cS&&(a=Math.max(a,Math.abs(t[n][s]-w)/(M-S))))}return a}}}),U1=He({"src/traces/heatmap/find_empties.js"(Y,H){var h=Qr().maxRowLength;H.exports=function(A){var E=[],e={},t=[],r=A[0],i=[],a=[0,0,0],o=h(A),n,s,c,f,p,v,T,l;for(s=0;s=0;p--)f=t[p],s=f[0],c=f[1],v=((e[[s-1,c]]||a)[2]+(e[[s+1,c]]||a)[2]+(e[[s,c-1]]||a)[2]+(e[[s,c+1]]||a)[2])/20,v&&(T[f]=[s,c,v],t.splice(p,1),l=!0);if(!l)throw"findEmpties iterated with no new neighbors";for(f in T)e[f]=T[f],E.push(T[f])}return E.sort(function(m,w){return w[2]-m[2]})}}}),Iw=He({"src/traces/heatmap/make_bound_array.js"(Y,H){var h=qi(),x=Qr().isArrayOrTypedArray;H.exports=function(E,e,t,r,i,a){var o=[],n=h.traceIs(E,"contour"),s=h.traceIs(E,"histogram"),c,f,p,v=x(e)&&e.length>1;if(v&&!s&&a.type!=="category"){var T=e.length;if(T<=i){if(n)o=Array.from(e).slice(0,i);else if(i===1)a.type==="log"?o=[.5*e[0],2*e[0]]:o=[e[0]-.5,e[0]+.5];else if(a.type==="log"){for(o=[Math.pow(e[0],1.5)/Math.pow(e[1],.5)],p=1;p1){var ee=(J[J.length-1]-J[0])/(J.length-1),Z=Math.abs(ee/100);for(F=0;FZ)return!1}return!0}T._islinear=!1,l.type==="log"||m.type==="log"?M==="fast"&&P("log axis found"):N(_)?N(g)?T._islinear=!0:M==="fast"&&P("y scale is not linear"):M==="fast"&&P("x scale is not linear");var U=x.maxRowLength(z),X=T.xtype==="scaled"?"":_,te=n(T,X,b,d,U,l),ue=T.ytype==="scaled"?"":g,ie=n(T,ue,y,R,z.length,m);T._extremes[l._id]=A.findExtremes(l,te),T._extremes[m._id]=A.findExtremes(m,ie);var le={x:te,y:ie,z,text:T._text||T.text,hovertext:T._hovertext||T.hovertext};if(T.xperiodalignment&&u&&(le.orig_x=u),T.yperiodalignment&&I&&(le.orig_y=I),X&&X.length===te.length-1&&(le.xCenter=X),ue&&ue.length===ie.length-1&&(le.yCenter=ue),S&&(le.xRanges=B.xRanges,le.yRanges=B.yRanges,le.pts=B.pts),w||t(v,T,{vals:z,cLetter:"z"}),w&&T.contours&&T.contours.coloring==="heatmap"){var q={type:T.type==="contour"?"heatmap":"histogram2d",xcalendar:T.xcalendar,ycalendar:T.ycalendar};le.xfill=n(q,X,b,d,U,l),le.yfill=n(q,ue,y,R,z.length,m)}return[le]};function c(p){for(var v=[],T=p.length,l=0;l0;)se=g.c2p(N[ae]),ae--;for(se0;)re=y.c2p(U[ae]),ae--;re=g._length||se<=0||V>=y._length||re<=0;if(at){var tt=I.selectAll("image").data([]);tt.exit().remove(),m(I);return}var Je,Ze;Ae==="fast"?(Je=q,Ze=le):(Je=Ce,Ze=je);var Me=document.createElement("canvas");Me.width=Je,Me.height=Ze;var we=Me.getContext("2d",{willReadFrequently:!0}),he=n(F,{noNumericCheck:!0,returnArray:!0}),De,et;Ae==="fast"?(De=J?function(Ta){return q-1-Ta}:t.identity,et=ee?function(Ta){return le-1-Ta}:t.identity):(De=function(Ta){return t.constrain(Math.round(g.c2p(N[Ta])-Z),0,Ce)},et=function(Ta){return t.constrain(Math.round(y.c2p(U[Ta])-V),0,je)});var nt=et(0),Ke=[nt,nt],Et=J?0:1,kt=ee?0:1,Ut=0,Yt=0,vr=0,hr=0,Rr,dr,wr,yt,Fe;function We(Ta,Fn){if(Ta!==void 0){var mn=he(Ta);return mn[0]=Math.round(mn[0]),mn[1]=Math.round(mn[1]),mn[2]=Math.round(mn[2]),Ut+=Fn,Yt+=mn[0]*Fn,vr+=mn[1]*Fn,hr+=mn[2]*Fn,mn}return[0,0,0,0]}function Oe(Ta,Fn,mn,Kn){var ui=Ta[mn.bin0];if(ui===void 0)return We(void 0,1);var pi=Ta[mn.bin1],vi=Fn[mn.bin0],Li=Fn[mn.bin1],Ni=pi-ui||0,ci=vi-ui||0,bi;return pi===void 0?Li===void 0?bi=0:vi===void 0?bi=2*(Li-ui):bi=(2*Li-vi-ui)*2/3:Li===void 0?vi===void 0?bi=0:bi=(2*ui-pi-vi)*2/3:vi===void 0?bi=(2*Li-pi-ui)*2/3:bi=Li+ui-pi-vi,We(ui+mn.frac*Ni+Kn.frac*(ci+mn.frac*bi))}if(Ae!=="default"){var de=0,me;try{me=new Uint8Array(Je*Ze*4)}catch{me=new Array(Je*Ze*4)}if(Ae==="smooth"){var be=X||N,Ie=te||U,Xe=new Array(be.length),ht=new Array(Ie.length),bt=new Array(Ce),Ct=X?S:w,Zt=te?S:w,Wt,rr,Jt;for(ae=0;aeDa||Da>y._length))for(fe=qr;feKa||Ka>g._length)){var an=i({x:Ya,y:wa},F,_._fullLayout);an.x=Ya,an.y=wa;var mt=z.z[ae][fe];mt===void 0?(an.z="",an.zLabel=""):(an.z=mt,an.zLabel=e.tickText(Kt,mt,"hover").text);var ot=z.text&&z.text[ae]&&z.text[ae][fe];(ot===void 0||ot===!1)&&(ot=""),an.text=ot;var Lr=t.texttemplateString(Xa,an,_._fullLayout._d3locale,an,F._meta||{});if(Lr){var Er=Lr.split("
"),Mr=Er.length,br=0;for(xe=0;xe=m[0].length||R<0||R>m.length)return}else{if(h.inbox(i-T[0],i-T[T.length-1],0)>0||h.inbox(a-l[0],a-l[l.length-1],0)>0)return;if(s){var I;for(b=[2*T[0]-T[1]],I=1;I=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}}}),pm=He({"src/traces/contour/attributes.js"(Y,H){var h=K0(),x=bc(),A=_c(),E=A.axisHoverFormat,e=A.descriptionOnlyNumbers,t=eu(),r=Yf().dash,i=Mu(),a=Po().extendFlat,o=Y1(),n=o.COMPARISON_OPS2,s=o.INTERVAL_OPS,c=x.line;H.exports=a({z:h.z,x:h.x,x0:h.x0,dx:h.dx,y:h.y,y0:h.y0,dy:h.dy,xperiod:h.xperiod,yperiod:h.yperiod,xperiod0:x.xperiod0,yperiod0:x.yperiod0,xperiodalignment:h.xperiodalignment,yperiodalignment:h.yperiodalignment,text:h.text,hovertext:h.hovertext,transpose:h.transpose,xtype:h.xtype,ytype:h.ytype,xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z",1),hovertemplate:h.hovertemplate,texttemplate:a({},h.texttemplate,{}),textfont:a({},h.textfont,{}),hoverongaps:h.hoverongaps,connectgaps:a({},h.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:i({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:e("contour label")},operation:{valType:"enumerated",values:[].concat(n).concat(s),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:a({},c.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:r,smoothing:a({},c.smoothing,{}),editType:"plot"},zorder:x.zorder},t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))}}),Ow=He({"src/traces/histogram2dcontour/attributes.js"(Y,H){var h=Z1(),x=pm(),A=eu(),E=_c().axisHoverFormat,e=Po().extendFlat;H.exports=e({x:h.x,y:h.y,z:h.z,marker:h.marker,histnorm:h.histnorm,histfunc:h.histfunc,nbinsx:h.nbinsx,xbins:h.xbins,nbinsy:h.nbinsy,ybins:h.ybins,autobinx:h.autobinx,autobiny:h.autobiny,bingroup:h.bingroup,xbingroup:h.xbingroup,ybingroup:h.ybingroup,autocontour:x.autocontour,ncontours:x.ncontours,contours:x.contours,line:{color:x.line.color,width:e({},x.line.width,{dflt:.5}),dash:x.line.dash,smoothing:x.line.smoothing,editType:"plot"},xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z",1),hovertemplate:h.hovertemplate,texttemplate:x.texttemplate,textfont:x.textfont},A("",{cLetter:"z",editTypeOverride:"calc"}))}}),$1=He({"src/traces/contour/contours_defaults.js"(Y,H){H.exports=function(x,A,E,e){var t=e("contours.start"),r=e("contours.end"),i=t===!1||r===!1,a=E("contours.size"),o;i?o=A.autocontour=!0:o=E("autocontour",!1),(o||!a)&&E("ncontours")}}}),Bw=He({"src/traces/contour/label_defaults.js"(Y,H){var h=Qr();H.exports=function(A,E,e,t){t||(t={});var r=A("contours.showlabels");if(r){var i=E.font;h.coerceFont(A,"contours.labelfont",i,{overrideDflt:{color:e}}),A("contours.labelformat")}t.hasHover!==!1&&A("zhoverformat")}}}),K1=He({"src/traces/contour/style_defaults.js"(Y,H){var h=If(),x=Bw();H.exports=function(E,e,t,r,i){var a=t("contours.coloring"),o,n="";a==="fill"&&(o=t("contours.showlines")),o!==!1&&(a!=="lines"&&(n=t("line.color","#000")),t("line.width",.5),t("line.dash")),a!=="none"&&(E.showlegend!==!0&&(e.showlegend=!1),e._dfltShowLegend=!1,h(E,e,r,t,{prefix:"",cLetter:"z"})),t("line.smoothing"),x(t,r,n,i)}}}),C5=He({"src/traces/histogram2dcontour/defaults.js"(Y,H){var h=Qr(),x=Fw(),A=$1(),E=K1(),e=dm(),t=Ow();H.exports=function(i,a,o,n){function s(f,p){return h.coerce(i,a,t,f,p)}function c(f){return h.coerce2(i,a,t,f)}x(i,a,s,n),a.visible!==!1&&(A(i,a,s,c),E(i,a,s,n),s("xhoverformat"),s("yhoverformat"),s("hovertemplate"),a.contours&&a.contours.coloring==="heatmap"&&e(s,n))}}}),Nw=He({"src/traces/contour/set_contours.js"(Y,H){var h=wo(),x=Qr();H.exports=function(e,t){var r=e.contours;if(e.autocontour){var i=e.zmin,a=e.zmax;(e.zauto||i===void 0)&&(i=x.aggNums(Math.min,null,t)),(e.zauto||a===void 0)&&(a=x.aggNums(Math.max,null,t));var o=A(i,a,e.ncontours);r.size=o.dtick,r.start=h.tickFirst(o),o.range.reverse(),r.end=h.tickFirst(o),r.start===i&&(r.start+=r.size),r.end===a&&(r.end-=r.size),r.start>r.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),x.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if(r.type!=="constraint"){var n=r.start,s=r.end,c=e._input.contours;if(n>s&&(r.start=c.start=s,s=r.end=c.end=n,n=r.start),!(r.size>0)){var f;n===s?f=1:f=A(n,s,e.ncontours).dtick,c.size=r.size=f}}};function A(E,e,t){var r={type:"linear",range:[E,e]};return h.autoTicks(r,(e-E)/(t||15)),r}}}),gm=He({"src/traces/contour/end_plus.js"(Y,H){H.exports=function(x){return x.end+x.size/1e6}}}),Uw=He({"src/traces/contour/calc.js"(Y,H){var h=Eu(),x=j1(),A=Nw(),E=gm();H.exports=function(t,r){var i=x(t,r),a=i[0].z;A(r,a);var o=r.contours,n=h.extractOpts(r),s;if(o.coloring==="heatmap"&&n.auto&&r.autocontour===!1){var c=o.start,f=E(o),p=o.size||1,v=Math.floor((f-c)/p)+1;isFinite(p)||(p=1,v=1);var T=c-p/2,l=T+v*p;s=[T,l]}else s=a;return h.calc(t,r,{vals:s,cLetter:"z"}),i}}}),mm=He({"src/traces/contour/constants.js"(Y,H){H.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}}}),jw=He({"src/traces/contour/make_crossings.js"(Y,H){var h=mm();H.exports=function(E){var e=E[0].z,t=e.length,r=e[0].length,i=t===2||r===2,a,o,n,s,c,f,p,v,T;for(o=0;oA?0:1)+(E[0][1]>A?0:2)+(E[1][1]>A?0:4)+(E[1][0]>A?0:8);if(e===5||e===10){var t=(E[0][0]+E[0][1]+E[1][0]+E[1][1])/4;return A>t?e===5?713:1114:e===5?104:208}return e===15?0:e}}}),Vw=He({"src/traces/contour/find_all_paths.js"(Y,H){var h=Qr(),x=mm();H.exports=function(a,o,n){var s,c,f,p,v;for(o=o||.01,n=n||.01,f=0;f20?(f=x.CHOOSESADDLE[f][(p[0]||p[1])<0?0:1],i.crossings[c]=x.SADDLEREMAINDER[f]):delete i.crossings[c],p=x.NEWDELTA[f],!p){h.log("Found bad marching index:",f,a,i.level);break}v.push(r(i,a,p)),a[0]+=p[0],a[1]+=p[1],c=a.join(","),A(v[v.length-1],v[v.length-2],n,s)&&v.pop();var M=p[0]&&(a[0]<0||a[0]>l-2)||p[1]&&(a[1]<0||a[1]>T-2),_=a[0]===m[0]&&a[1]===m[1]&&p[0]===w[0]&&p[1]===w[1];if(_||o&&M)break;f=i.crossings[c]}S===1e4&&h.log("Infinite loop in contour?");var b=A(v[0],v[v.length-1],n,s),d=0,u=.2*i.smoothing,g=[],y=0,R,I,z,F,B,O,P,N,U,X,te;for(S=1;S=y;S--)if(R=g[S],R=y&&R+g[I]N&&U--,i.edgepaths[U]=te.concat(v,X));break}q||(i.edgepaths[N]=v.concat(X))}for(N=0;N20&&a?i===208||i===1114?n=o[0]===0?1:-1:s=o[1]===0?1:-1:x.BOTTOMSTART.indexOf(i)!==-1?s=1:x.LEFTSTART.indexOf(i)!==-1?n=1:x.TOPSTART.indexOf(i)!==-1?s=-1:n=-1,[n,s]}function r(i,a,o){var n=a[0]+Math.max(o[0],0),s=a[1]+Math.max(o[1],0),c=i.z[s][n],f=i.xaxis,p=i.yaxis;if(o[1]){var v=(i.level-c)/(i.z[s][n+1]-c),T=(v!==1?(1-v)*f.c2l(i.x[n]):0)+(v!==0?v*f.c2l(i.x[n+1]):0);return[f.c2p(f.l2c(T),!0),p.c2p(i.y[s],!0),n+v,s]}else{var l=(i.level-c)/(i.z[s+1][n]-c),m=(l!==1?(1-l)*p.c2l(i.y[s]):0)+(l!==0?l*p.c2l(i.y[s+1]):0);return[f.c2p(i.x[n],!0),p.c2p(p.l2c(m),!0),n,s+l]}}}}),L5=He({"src/traces/contour/constraint_mapping.js"(Y,H){var h=Y1(),x=Vi();H.exports={"[]":E("[]"),"][":E("]["),">":e(">"),"<":e("<"),"=":e("=")};function A(t,r){var i=Array.isArray(r),a;function o(n){return x(n)?+n:null}return h.COMPARISON_OPS2.indexOf(t)!==-1?a=o(i?r[0]:r):h.INTERVAL_OPS.indexOf(t)!==-1?a=i?[o(r[0]),o(r[1])]:[o(r),o(r)]:h.SET_OPS.indexOf(t)!==-1&&(a=i?r.map(o):[o(r)]),a}function E(t){return function(r){r=A(t,r);var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:i,end:a,size:a-i}}}function e(t){return function(r){return r=A(t,r),{start:r,end:1/0,size:1/0}}}}}),qw=He({"src/traces/contour/empty_pathinfo.js"(Y,H){var h=Qr(),x=L5(),A=gm();H.exports=function(e,t,r){for(var i=e.type==="constraint"?x[e._operation](e.value):e,a=i.size,o=[],n=A(i),s=r.trace._carpetTrace,c=s?{xaxis:s.aaxis,yaxis:s.baxis,x:r.a,y:r.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:r.x,y:r.y},f=i.start;f1e3){h.warn("Too many contours, clipping at 1000",e);break}return o}}}),Gw=He({"src/traces/contour/convert_to_constraints.js"(Y,H){var h=Qr();H.exports=function(A,E){var e,t,r,i=function(n){return n.reverse()},a=function(n){return n};switch(E){case"=":case"<":return A;case">":for(A.length!==1&&h.warn("Contour data invalid for the specified inequality operation."),t=A[0],e=0;er.level||r.starts.length&&t===r.level)}break;case"constraint":if(A.prefixBoundary=!1,A.edgepaths.length)return;var i=A.x.length,a=A.y.length,o=-1/0,n=1/0;for(e=0;e":s>o&&(A.prefixBoundary=!0);break;case"<":(so||A.starts.length&&f===n)&&(A.prefixBoundary=!0);break;case"][":c=Math.min(s[0],s[1]),f=Math.max(s[0],s[1]),co&&(A.prefixBoundary=!0);break}break}}}}),J1=He({"src/traces/contour/plot.js"(Y){var H=yi(),h=Qr(),x=Io(),A=Eu(),E=jl(),e=wo(),t=Nv(),r=q1(),i=jw(),a=Vw(),o=qw(),n=Gw(),s=Hw(),c=mm(),f=c.LABELOPTIMIZER;Y.plot=function(_,b,d,u){var g=b.xaxis,y=b.yaxis;h.makeTraceGroups(u,d,"contour").each(function(R){var I=H.select(this),z=R[0],F=z.trace,B=z.x,O=z.y,P=F.contours,N=o(P,b,z),U=h.ensureSingle(I,"g","heatmapcoloring"),X=[];P.coloring==="heatmap"&&(X=[R]),r(_,b,X,U),i(N),a(N);var te=g.c2p(B[0],!0),ue=g.c2p(B[B.length-1],!0),ie=y.c2p(O[0],!0),le=y.c2p(O[O.length-1],!0),q=[[te,le],[ue,le],[ue,ie],[te,ie]],J=N;P.type==="constraint"&&(J=n(N,P._operation)),p(I,q,P),v(I,J,q,P),l(I,N,_,z,P),w(I,b,_,z,q)})};function p(M,_,b){var d=h.ensureSingle(M,"g","contourbg"),u=d.selectAll("path").data(b.coloring==="fill"?[0]:[]);u.enter().append("path"),u.exit().remove(),u.attr("d","M"+_.join("L")+"Z").style("stroke","none")}function v(M,_,b,d){var u=d.coloring==="fill"||d.type==="constraint"&&d._operation!=="=",g="M"+b.join("L")+"Z";u&&s(_,d);var y=h.ensureSingle(M,"g","contourfill"),R=y.selectAll("path").data(u?_:[]);R.enter().append("path"),R.exit().remove(),R.each(function(I){var z=(I.prefixBoundary?g:"")+T(I,b);z?H.select(this).attr("d",z).style("stroke","none"):H.select(this).remove()})}function T(M,_){var b="",d=0,u=M.edgepaths.map(function(te,ue){return ue}),g=!0,y,R,I,z,F,B;function O(te){return Math.abs(te[1]-_[0][1])<.01}function P(te){return Math.abs(te[1]-_[2][1])<.01}function N(te){return Math.abs(te[0]-_[0][0])<.01}function U(te){return Math.abs(te[0]-_[2][0])<.01}for(;u.length;){for(B=x.smoothopen(M.edgepaths[d],M.smoothing),b+=g?B:B.replace(/^M/,"L"),u.splice(u.indexOf(d),1),y=M.edgepaths[d][M.edgepaths[d].length-1],z=-1,I=0;I<4;I++){if(!y){h.log("Missing end?",d,M);break}for(O(y)&&!U(y)?R=_[1]:N(y)?R=_[0]:P(y)?R=_[3]:U(y)&&(R=_[2]),F=0;F=0&&(R=X,z=F):Math.abs(y[1]-R[1])<.01?Math.abs(y[1]-X[1])<.01&&(X[0]-y[0])*(R[0]-X[0])>=0&&(R=X,z=F):h.log("endpt to newendpt is not vert. or horz.",y,R,X)}if(y=R,z>=0)break;b+="L"+R}if(z===M.edgepaths.length){h.log("unclosed perimeter path");break}d=z,g=u.indexOf(d)===-1,g&&(d=u[0],b+="Z")}for(d=0;df.MAXCOST*2)break;O&&(R/=2),y=z-R/2,I=y+R*1.5}if(B<=f.MAXCOST)return F};function m(M,_,b,d){var u=_.width/2,g=_.height/2,y=M.x,R=M.y,I=M.theta,z=Math.cos(I)*u,F=Math.sin(I)*u,B=(y>d.center?d.right-y:y-d.left)/(z+Math.abs(Math.sin(I)*g)),O=(R>d.middle?d.bottom-R:R-d.top)/(Math.abs(F)+Math.cos(I)*g);if(B<1||O<1)return 1/0;var P=f.EDGECOST*(1/(B-1)+1/(O-1));P+=f.ANGLECOST*I*I;for(var N=y-z,U=R-F,X=y+z,te=R+F,ue=0;ue=w)&&(r<=m&&(r=m),i>=w&&(i=w),o=Math.floor((i-r)/a)+1,n=0),l=0;lm&&(p.unshift(m),v.unshift(v[0])),p[p.length-1]2?s.value=s.value.slice(2):s.length===0?s.value=[0,1]:s.length<2?(c=parseFloat(s.value[0]),s.value=[c,c+1]):s.value=[parseFloat(s.value[0]),parseFloat(s.value[1])]:h(s.value)&&(c=parseFloat(s.value),s.value=[c,c+1])):(n("contours.value",0),h(s.value)||(r(s.value)?s.value=parseFloat(s.value[0]):s.value=0))}}}),R5=He({"src/traces/contour/defaults.js"(Y,H){var h=Qr(),x=F1(),A=xv(),E=Zw(),e=$1(),t=K1(),r=dm(),i=pm();H.exports=function(o,n,s,c){function f(l,m){return h.coerce(o,n,i,l,m)}function p(l){return h.coerce2(o,n,i,l)}var v=x(o,n,f,c);if(!v){n.visible=!1;return}A(o,n,c,f),f("xhoverformat"),f("yhoverformat"),f("text"),f("hovertext"),f("hoverongaps"),f("hovertemplate");var T=f("contours.type")==="constraint";f("connectgaps",h.isArray1D(n.z)),T?E(o,n,f,c,s):(e(o,n,f,p),t(o,n,f,c)),n.contours&&n.contours.coloring==="heatmap"&&r(f,c),f("zorder")}}}),D5=He({"src/traces/contour/index.js"(Y,H){H.exports={attributes:pm(),supplyDefaults:R5(),calc:Uw(),plot:J1().plot,style:Q1(),colorbar:e_(),hoverPoints:Xw(),moduleType:"trace",name:"contour",basePlotModule:cf(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}}}),z5=He({"lib/contour.js"(Y,H){H.exports=D5()}}),Yw=He({"src/traces/scatterternary/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=bc(),e=Ll(),t=eu(),r=Yf().dash,i=Po().extendFlat,a=E.marker,o=E.line,n=a.line;H.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:i({},E.mode,{dflt:"markers"}),text:i({},E.text,{}),texttemplate:x({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:i({},E.hovertext,{}),line:{color:o.color,width:o.width,dash:r,backoff:o.backoff,shape:i({},o.shape,{values:["linear","spline"]}),smoothing:o.smoothing,editType:"calc"},connectgaps:E.connectgaps,cliponaxis:E.cliponaxis,fill:i({},E.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:A(),marker:i({symbol:a.symbol,opacity:a.opacity,angle:a.angle,angleref:a.angleref,standoff:a.standoff,maxdisplayed:a.maxdisplayed,size:a.size,sizeref:a.sizeref,sizemin:a.sizemin,sizemode:a.sizemode,line:i({width:n.width,editType:"calc"},t("marker.line")),gradient:a.gradient,editType:"calc"},t("marker")),textfont:E.textfont,textposition:E.textposition,selected:E.selected,unselected:E.unselected,hoverinfo:i({},e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:E.hoveron,hovertemplate:h()}}}),F5=He({"src/traces/scatterternary/defaults.js"(Y,H){var h=Qr(),x=Uv(),A=cu(),E=Zh(),e=rv(),t=G0(),r=av(),i=bv(),a=Yw();H.exports=function(n,s,c,f){function p(M,_){return h.coerce(n,s,a,M,_)}var v=p("a"),T=p("b"),l=p("c"),m;if(v?(m=v.length,T?(m=Math.min(m,T.length),l&&(m=Math.min(m,l.length))):l?m=Math.min(m,l.length):m=0):T&&l&&(m=Math.min(T.length,l.length)),!m){s.visible=!1;return}s._length=m,p("sum"),p("text"),p("hovertext"),s.hoveron!=="fills"&&p("hovertemplate");var w=m"),i.hovertemplate=f.hovertemplate,r}}}),j5=He({"src/traces/scatterternary/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){if(A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),e[t]){var r=e[t];x.a=r.a,x.b=r.b,x.c=r.c}else x.a=A.a,x.b=A.b,x.c=A.c;return x}}}),V5=He({"src/plots/ternary/ternary.js"(Y,H){var h=yi(),x=Uf(),A=qi(),E=Qr(),e=E.strTranslate,t=E._,r=zi(),i=Io(),a=Nv(),o=Po().extendFlat,n=$u(),s=wo(),c=ph(),f=xc(),p=yv(),v=p.freeMode,T=p.rectMode,l=Ep(),m=Uc().prepSelect,w=Uc().selectOnClick,S=Uc().clearOutline,M=Uc().clearSelectionsCache,_=jf();function b(P,N){this.id=P.id,this.graphDiv=P.graphDiv,this.init(N),this.makeFramework(N),this.updateFx(N),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}H.exports=b;var d=b.prototype;d.init=function(P){this.container=P._ternarylayer,this.defs=P._defs,this.layoutId=P._uid,this.traceHash={},this.layers={}},d.plot=function(P,N){var U=this,X=N[U.id],te=N._size;U._hasClipOnAxisFalse=!1;for(var ue=0;ueu*J?(fe=J,ae=fe*u):(ae=q,fe=ae/u),xe=ie*ae/q,Ae=le*fe/J,V=N.l+N.w*te-ae/2,re=N.t+N.h*(1-ue)-fe/2,U.x0=V,U.y0=re,U.w=ae,U.h=fe,U.sum=ee,U.xaxis={type:"linear",range:[Z+2*Q-ee,ee-Z-2*se],domain:[te-xe/2,te+xe/2],_id:"x"},a(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(De){return De.a>=U.aaxis.range[0]&&De.a<=U.aaxis.range[1]&&De.b>=U.baxis.range[1]&&De.b<=U.baxis.range[0]&&De.c>=U.caxis.range[1]&&De.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[Z,ee-se-Q],domain:[ue-Ae/2,ue+Ae/2],_id:"y"},a(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Pe=U.yaxis.domain[0],Ce=U.aaxis=o({},P.aaxis,{range:[Z,ee-se-Q],side:"left",tickangle:(+P.aaxis.tickangle||0)-30,domain:[Pe,Pe+Ae*u],anchor:"free",position:0,_id:"y",_length:ae});a(Ce,U.graphDiv._fullLayout),Ce.setScale();var je=U.baxis=o({},P.baxis,{range:[ee-Z-Q,se],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:ae});a(je,U.graphDiv._fullLayout),je.setScale();var at=U.caxis=o({},P.caxis,{range:[ee-Z-se,Q],side:"right",tickangle:(+P.caxis.tickangle||0)+30,domain:[Pe,Pe+Ae*u],anchor:"free",position:0,_id:"y",_length:ae});a(at,U.graphDiv._fullLayout),at.setScale();var tt="M"+V+","+(re+fe)+"h"+ae+"l-"+ae/2+",-"+fe+"Z";U.clipDef.select("path").attr("d",tt),U.layers.plotbg.select("path").attr("d",tt);var Je="M0,"+fe+"h"+ae+"l-"+ae/2+",-"+fe+"Z";U.clipDefRelative.select("path").attr("d",Je);var Ze=e(V,re);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ze),U.clipDefRelative.select("path").attr("transform",null);var Me=e(V-je._offset,re+fe);U.layers.baxis.attr("transform",Me),U.layers.bgrid.attr("transform",Me);var we=e(V+ae/2,re)+"rotate(30)"+e(0,-Ce._offset);U.layers.aaxis.attr("transform",we),U.layers.agrid.attr("transform",we);var he=e(V+ae/2,re)+"rotate(-30)"+e(0,-at._offset);U.layers.caxis.attr("transform",he),U.layers.cgrid.attr("transform",he),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Ce.showline?"M"+V+","+(re+fe)+"l"+ae/2+",-"+fe:"M0,0").call(r.stroke,Ce.linecolor||"#000").style("stroke-width",(Ce.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",je.showline?"M"+V+","+(re+fe)+"h"+ae:"M0,0").call(r.stroke,je.linecolor||"#000").style("stroke-width",(je.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",at.showline?"M"+(V+ae/2)+","+re+"l"+ae/2+","+fe:"M0,0").call(r.stroke,at.linecolor||"#000").style("stroke-width",(at.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),i.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},d.drawAxes=function(P){var N=this,U=N.graphDiv,X=N.id.substr(7)+"title",te=N.layers,ue=N.aaxis,ie=N.baxis,le=N.caxis;if(N.drawAx(ue),N.drawAx(ie),N.drawAx(le),P){var q=Math.max(ue.showticklabels?ue.tickfont.size/2:0,(le.showticklabels?le.tickfont.size*.75:0)+(le.ticks==="outside"?le.ticklen*.87:0)),J=(ie.showticklabels?ie.tickfont.size:0)+(ie.ticks==="outside"?ie.ticklen:0)+3;te["a-title"]=l.draw(U,"a"+X,{propContainer:ue,propName:N.id+".aaxis.title",placeholder:t(U,"Click to enter Component A title"),attributes:{x:N.x0+N.w/2,y:N.y0-ue.title.font.size/3-q,"text-anchor":"middle"}}),te["b-title"]=l.draw(U,"b"+X,{propContainer:ie,propName:N.id+".baxis.title",placeholder:t(U,"Click to enter Component B title"),attributes:{x:N.x0-J,y:N.y0+N.h+ie.title.font.size*.83+J,"text-anchor":"middle"}}),te["c-title"]=l.draw(U,"c"+X,{propContainer:le,propName:N.id+".caxis.title",placeholder:t(U,"Click to enter Component C title"),attributes:{x:N.x0+N.w+J,y:N.y0+N.h+le.title.font.size*.83+J,"text-anchor":"middle"}})}},d.drawAx=function(P){var N=this,U=N.graphDiv,X=P._name,te=X.charAt(0),ue=P._id,ie=N.layers[X],le=30,q=te+"tickLayout",J=g(P);N[q]!==J&&(ie.selectAll("."+ue+"tick").remove(),N[q]=J),P.setScale();var ee=s.calcTicks(P),Z=s.clipEnds(P,ee),se=s.makeTransTickFn(P),Q=s.getTickSigns(P)[2],V=E.deg2rad(le),re=Q*(P.linewidth||1)/2,ae=Q*P.ticklen,fe=N.w,xe=N.h,Ae=te==="b"?"M0,"+re+"l"+Math.sin(V)*ae+","+Math.cos(V)*ae:"M"+re+",0l"+Math.cos(V)*ae+","+-Math.sin(V)*ae,Pe={a:"M0,0l"+xe+",-"+fe/2,b:"M0,0l-"+fe/2+",-"+xe,c:"M0,0l-"+xe+","+fe/2}[te];s.drawTicks(U,P,{vals:P.ticks==="inside"?Z:ee,layer:ie,path:Ae,transFn:se,crisp:!1}),s.drawGrid(U,P,{vals:Z,layer:N.layers[te+"grid"],path:Pe,transFn:se,crisp:!1}),s.drawLabels(U,P,{vals:ee,layer:ie,transFn:se,labelFns:s.makeLabelFns(P,0,le)})};function g(P){return P.ticks+String(P.ticklen)+String(P.showticklabels)}var y=_.MINZOOM/2+.87,R="m-0.87,.5h"+y+"v3h-"+(y+5.2)+"l"+(y/2+2.6)+",-"+(y*.87+4.5)+"l2.6,1.5l-"+y/2+","+y*.87+"Z",I="m0.87,.5h-"+y+"v3h"+(y+5.2)+"l-"+(y/2+2.6)+",-"+(y*.87+4.5)+"l-2.6,1.5l"+y/2+","+y*.87+"Z",z="m0,1l"+y/2+","+y*.87+"l2.6,-1.5l-"+(y/2+2.6)+",-"+(y*.87+4.5)+"l-"+(y/2+2.6)+","+(y*.87+4.5)+"l2.6,1.5l"+y/2+",-"+y*.87+"Z",F="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",B=!0;d.clearOutline=function(){M(this.dragOptions),S(this.dragOptions.gd)},d.initInteractions=function(){var P=this,N=P.layers.plotbg.select("path").node(),U=P.graphDiv,X=U._fullLayout._zoomlayer,te,ue;this.dragOptions={element:N,gd:U,plotinfo:{id:P.id,domain:U._fullLayout[P.id].domain,xaxis:P.xaxis,yaxis:P.yaxis},subplot:P.id,prepFn:function(Me,we,he){P.dragOptions.xaxes=[P.xaxis],P.dragOptions.yaxes=[P.yaxis],te=U._fullLayout._invScaleX,ue=U._fullLayout._invScaleY;var De=P.dragOptions.dragmode=U._fullLayout.dragmode;v(De)?P.dragOptions.minDrag=1:P.dragOptions.minDrag=void 0,De==="zoom"?(P.dragOptions.moveFn=je,P.dragOptions.clickFn=fe,P.dragOptions.doneFn=at,xe(Me,we,he)):De==="pan"?(P.dragOptions.moveFn=Je,P.dragOptions.clickFn=fe,P.dragOptions.doneFn=Ze,tt(),P.clearOutline(U)):(T(De)||v(De))&&m(Me,we,he,P.dragOptions,De)}};var ie,le,q,J,ee,Z,se,Q,V,re;function ae(Me){var we={};return we[P.id+".aaxis.min"]=Me.a,we[P.id+".baxis.min"]=Me.b,we[P.id+".caxis.min"]=Me.c,we}function fe(Me,we){var he=U._fullLayout.clickmode;O(U),Me===2&&(U.emit("plotly_doubleclick",null),A.call("_guiRelayout",U,ae({a:0,b:0,c:0}))),he.indexOf("select")>-1&&Me===1&&w(we,U,[P.xaxis],[P.yaxis],P.id,P.dragOptions),he.indexOf("event")>-1&&f.click(U,we,P.id)}function xe(Me,we,he){var De=N.getBoundingClientRect();ie=we-De.left,le=he-De.top,U._fullLayout._calcInverseTransform(U);var et=U._fullLayout._invTransform,nt=E.apply3DTransform(et)(ie,le);ie=nt[0],le=nt[1],q={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},ee=q,J=P.aaxis.range[1]-q.a,Z=x(P.graphDiv._fullLayout[P.id].bgcolor).getLuminance(),se="M0,"+P.h+"L"+P.w/2+", 0L"+P.w+","+P.h+"Z",Q=!1,V=X.append("path").attr("class","zoombox").attr("transform",e(P.x0,P.y0)).style({fill:Z>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),re=X.append("path").attr("class","zoombox-corners").attr("transform",e(P.x0,P.y0)).style({fill:r.background,stroke:r.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),P.clearOutline(U)}function Ae(Me,we){return 1-we/P.h}function Pe(Me,we){return 1-(Me+(P.h-we)/Math.sqrt(3))/P.w}function Ce(Me,we){return(Me-(P.h-we)/Math.sqrt(3))/P.w}function je(Me,we){var he=ie+Me*te,De=le+we*ue,et=Math.max(0,Math.min(1,Ae(ie,le),Ae(he,De))),nt=Math.max(0,Math.min(1,Pe(ie,le),Pe(he,De))),Ke=Math.max(0,Math.min(1,Ce(ie,le),Ce(he,De))),Et=(et/2+Ke)*P.w,kt=(1-et/2-nt)*P.w,Ut=(Et+kt)/2,Yt=kt-Et,vr=(1-et)*P.h,hr=vr-Yt/u;Yt<_.MINZOOM?(ee=q,V.attr("d",se),re.attr("d","M0,0Z")):(ee={a:q.a+et*J,b:q.b+nt*J,c:q.c+Ke*J},V.attr("d",se+"M"+Et+","+vr+"H"+kt+"L"+Ut+","+hr+"L"+Et+","+vr+"Z"),re.attr("d","M"+ie+","+le+F+"M"+Et+","+vr+R+"M"+kt+","+vr+I+"M"+Ut+","+hr+z)),Q||(V.transition().style("fill",Z>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),re.transition().style("opacity",1).duration(200),Q=!0),U.emit("plotly_relayouting",ae(ee))}function at(){O(U),ee!==q&&(A.call("_guiRelayout",U,ae(ee)),B&&U.data&&U._context.showTips&&(E.notifier(t(U,"Double-click to zoom back out"),"long"),B=!1))}function tt(){q={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},ee=q}function Je(Me,we){var he=Me/P.xaxis._m,De=we/P.yaxis._m;ee={a:q.a-De,b:q.b+(he+De)/2,c:q.c-(he-De)/2};var et=[ee.a,ee.b,ee.c].sort(E.sorterAsc),nt={a:et.indexOf(ee.a),b:et.indexOf(ee.b),c:et.indexOf(ee.c)};et[0]<0&&(et[1]+et[0]/2<0?(et[2]+=et[0]+et[1],et[0]=et[1]=0):(et[2]+=et[0]/2,et[1]+=et[0]/2,et[0]=0),ee={a:et[nt.a],b:et[nt.b],c:et[nt.c]},we=(q.a-ee.a)*P.yaxis._m,Me=(q.c-ee.c-q.b+ee.b)*P.xaxis._m);var Ke=e(P.x0+Me,P.y0+we);P.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ke);var Et=e(-Me,-we);P.clipDefRelative.select("path").attr("transform",Et),P.aaxis.range=[ee.a,P.sum-ee.b-ee.c],P.baxis.range=[P.sum-ee.a-ee.c,ee.b],P.caxis.range=[P.sum-ee.a-ee.b,ee.c],P.drawAxes(!1),P._hasClipOnAxisFalse&&P.plotContainer.select(".scatterlayer").selectAll(".trace").call(i.hideOutsideRangePoints,P),U.emit("plotly_relayouting",ae(ee))}function Ze(){A.call("_guiRelayout",U,ae(ee))}N.onmousemove=function(Me){f.hover(U,Me,P.id),U._fullLayout._lasthover=N,U._fullLayout._hoversubplot=P.id},N.onmouseout=function(Me){U._dragging||c.unhover(U,Me)},c.init(this.dragOptions)};function O(P){h.select(P).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}}}),$w=He({"src/plots/ternary/layout_attributes.js"(Y,H){var h=mf(),x=Ku().attributes,A=Kf(),E=Uu().overrideAll,e=Po().extendFlat,t={title:{text:A.title.text,font:A.title.font},color:A.color,tickmode:A.minor.tickmode,nticks:e({},A.nticks,{dflt:6,min:1}),tick0:A.tick0,dtick:A.dtick,tickvals:A.tickvals,ticktext:A.ticktext,ticks:A.ticks,ticklen:A.ticklen,tickwidth:A.tickwidth,tickcolor:A.tickcolor,ticklabelstep:A.ticklabelstep,showticklabels:A.showticklabels,labelalias:A.labelalias,showtickprefix:A.showtickprefix,tickprefix:A.tickprefix,showticksuffix:A.showticksuffix,ticksuffix:A.ticksuffix,showexponent:A.showexponent,exponentformat:A.exponentformat,minexponent:A.minexponent,separatethousands:A.separatethousands,tickfont:A.tickfont,tickangle:A.tickangle,tickformat:A.tickformat,tickformatstops:A.tickformatstops,hoverformat:A.hoverformat,showline:e({},A.showline,{dflt:!0}),linecolor:A.linecolor,linewidth:A.linewidth,showgrid:e({},A.showgrid,{dflt:!0}),gridcolor:A.gridcolor,gridwidth:A.gridwidth,griddash:A.griddash,layer:A.layer,min:{valType:"number",dflt:0,min:0}},r=H.exports=E({domain:x({name:"ternary"}),bgcolor:{valType:"color",dflt:h.background},sum:{valType:"number",dflt:1,min:0},aaxis:t,baxis:t,caxis:t},"plot","from-root");r.uirevision={valType:"any",editType:"none"},r.aaxis.uirevision=r.baxis.uirevision=r.caxis.uirevision={valType:"any",editType:"none"}}}),Yd=He({"src/plots/subplot_defaults.js"(Y,H){var h=Qr(),x=cl(),A=Ku().defaults;H.exports=function(e,t,r,i){var a=i.type,o=i.attributes,n=i.handleDefaults,s=i.partition||"x",c=t._subplots[a],f=c.length,p=f&&c[0].replace(/\d+$/,""),v,T;function l(M,_){return h.coerce(v,T,o,M,_)}for(var m=0;m=m&&(b.min=0,d.min=0,u.min=0,f.aaxis&&delete f.aaxis.min,f.baxis&&delete f.baxis.min,f.caxis&&delete f.caxis.min)}function c(f,p,v,T){var l=o[p._name];function m(g,y){return A.coerce(f,p,l,g,y)}m("uirevision",T.uirevision),p.type="linear";var w=m("color"),S=w!==l.color.dflt?w:v.font.color,M=p._name,_=M.charAt(0).toUpperCase(),b="Component "+_,d=m("title.text",b);p._hovertitle=d===b?d:_,A.coerceFont(m,"title.font",v.font,{overrideDflt:{size:A.bigFont(v.font.size),color:S}}),m("min"),i(f,p,m,"linear"),t(f,p,m,"linear"),e(f,p,m,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),r(f,p,m,{outerTicks:!0});var u=m("showticklabels");u&&(A.coerceFont(m,"tickfont",v.font,{overrideDflt:{color:S}}),m("tickangle"),m("tickformat")),a(f,p,m,{dfltColor:w,bgColor:v.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:l}),m("hoverformat"),m("layer")}}}),G5=He({"src/plots/ternary/index.js"(Y){var H=V5(),h=$f().getSubplotCalcData,x=Qr().counterRegex,A="ternary";Y.name=A;var E=Y.attr="subplot";Y.idRoot=A,Y.idRegex=Y.attrRegex=x(A);var e=Y.attributes={};e[E]={valType:"subplotid",dflt:"ternary",editType:"calc"},Y.layoutAttributes=$w(),Y.supplyLayoutDefaults=q5(),Y.plot=function(r){for(var i=r._fullLayout,a=r.calcdata,o=i._subplots[A],n=0;n0){var M=r.xa,_=r.ya,b,d,u,g,y;f.orientation==="h"?(y=i,b="y",u=_,d="x",g=M):(y=a,b="x",u=M,d="y",g=_);var R=c[r.index];if(y>=R.span[0]&&y<=R.span[1]){var I=x.extendFlat({},r),z=g.c2p(y,!0),F=e.getKdeValue(R,f,y),B=e.getPositionOnKdePath(R,f,z),O=u._offset,P=u._length;I[b+"0"]=B[0],I[b+"1"]=B[1],I[d+"0"]=I[d+"1"]=z,I[d+"Label"]=d+": "+A.hoverLabelText(g,y,f[d+"hoverformat"])+", "+c[0].t.labels.kde+" "+F.toFixed(3);for(var N=0,U=0;U path").each(function(v){if(!v.isBlank){var T=p.marker;h.select(this).call(A.fill,v.mc||T.color).call(A.stroke,v.mlc||T.line.color).call(x.dashLine,T.line.dash,v.mlw||T.line.width).style("opacity",p.selectedpoints&&!v.selected?E:1)}}),r(f,p,a),f.selectAll(".regions").each(function(){h.select(this).selectAll("path").style("stroke-width",0).call(A.fill,p.connector.fillcolor)}),f.selectAll(".lines").each(function(){var v=p.connector.line;x.lineGroupStyle(h.select(this).selectAll("path"),v.width,v.color,v.dash)})})}H.exports={style:i}}}),uk=He({"src/traces/funnel/hover.js"(Y,H){var h=zi().opacity,x=Y0().hoverOnBars,A=Qr().formatPercent;H.exports=function(t,r,i,a,o){var n=x(t,r,i,a,o);if(n){var s=n.cd,c=s[0].trace,f=c.orientation==="h",p=n.index,v=s[p],T=f?"x":"y";n[T+"LabelVal"]=v.s,n.percentInitial=v.begR,n.percentInitialLabel=A(v.begR,1),n.percentPrevious=v.difR,n.percentPreviousLabel=A(v.difR,1),n.percentTotal=v.sumR,n.percentTotalLabel=A(v.sumR,1);var l=v.hi||c.hoverinfo,m=[];if(l&&l!=="none"&&l!=="skip"){var w=l==="all",S=l.split("+"),M=function(_){return w||S.indexOf(_)!==-1};M("percent initial")&&m.push(n.percentInitialLabel+" of initial"),M("percent previous")&&m.push(n.percentPreviousLabel+" of previous"),M("percent total")&&m.push(n.percentTotalLabel+" of total")}return n.extraText=m.join("
"),n.color=E(c,v),[n]}};function E(e,t){var r=e.marker,i=t.mc||r.color,a=t.mlc||r.line.color,o=t.mlw||r.line.width;if(h(i))return i;if(h(a)&&o)return a}}}),ck=He({"src/traces/funnel/event_data.js"(Y,H){H.exports=function(x,A){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,"percentInitial"in A&&(x.percentInitial=A.percentInitial),"percentPrevious"in A&&(x.percentPrevious=A.percentPrevious),"percentTotal"in A&&(x.percentTotal=A.percentTotal),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x}}}),fk=He({"src/traces/funnel/index.js"(Y,H){H.exports={attributes:Qw(),layoutAttributes:e2(),supplyDefaults:t2().supplyDefaults,crossTraceDefaults:t2().crossTraceDefaults,supplyLayoutDefaults:ak(),calc:ik(),crossTraceCalc:ok(),plot:sk(),style:lk().style,hoverPoints:uk(),eventData:ck(),selectPoints:$0(),moduleType:"trace",name:"funnel",basePlotModule:cf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}}),hk=He({"lib/funnel.js"(Y,H){H.exports=fk()}}),vk=He({"src/traces/waterfall/constants.js"(Y,H){H.exports={eventDataKeys:["initial","delta","final"]}}}),r2=He({"src/traces/waterfall/attributes.js"(Y,H){var h=Vv(),x=bc().line,A=Ll(),E=_c().axisHoverFormat,e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=vk(),i=Po().extendFlat,a=zi();function o(n){return{marker:{color:i({},h.marker.color,{arrayOk:!1,editType:"style"}),line:{color:i({},h.marker.line.color,{arrayOk:!1,editType:"style"}),width:i({},h.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}H.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:h.x,x0:h.x0,dx:h.dx,y:h.y,y0:h.y0,dy:h.dy,xperiod:h.xperiod,yperiod:h.yperiod,xperiod0:h.xperiod0,yperiod0:h.yperiod0,xperiodalignment:h.xperiodalignment,yperiodalignment:h.yperiodalignment,xhoverformat:E("x"),yhoverformat:E("y"),hovertext:h.hovertext,hovertemplate:e({},{keys:r.eventDataKeys}),hoverinfo:i({},A.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:t({editType:"plot"},{keys:r.eventDataKeys.concat(["label"])}),text:h.text,textposition:h.textposition,insidetextanchor:h.insidetextanchor,textangle:h.textangle,textfont:h.textfont,insidetextfont:h.insidetextfont,outsidetextfont:h.outsidetextfont,constraintext:h.constraintext,cliponaxis:h.cliponaxis,orientation:h.orientation,offset:h.offset,width:h.width,increasing:o(),decreasing:o(),totals:o(),connector:{line:{color:i({},x.color,{dflt:a.defaultLine}),width:i({},x.width,{editType:"plot"}),dash:x.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:h.offsetgroup,alignmentgroup:h.alignmentgroup,zorder:h.zorder}}}),a2=He({"src/traces/waterfall/layout_attributes.js"(Y,H){H.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}}}),J0=He({"src/constants/delta.js"(Y,H){H.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}}}),n2=He({"src/traces/waterfall/defaults.js"(Y,H){var h=Qr(),x=Lp(),A=Yh().handleText,E=q0(),e=xv(),t=r2(),r=zi(),i=J0(),a=i.INCREASING.COLOR,o=i.DECREASING.COLOR,n="#4499FF";function s(p,v,T){p(v+".marker.color",T),p(v+".marker.line.color",r.defaultLine),p(v+".marker.line.width")}function c(p,v,T,l){function m(b,d){return h.coerce(p,v,t,b,d)}var w=E(p,v,l,m);if(!w){v.visible=!1;return}e(p,v,l,m),m("xhoverformat"),m("yhoverformat"),m("measure"),m("orientation",v.x&&!v.y?"h":"v"),m("base"),m("offset"),m("width"),m("text"),m("hovertext"),m("hovertemplate");var S=m("textposition");A(p,v,l,m,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),v.textposition!=="none"&&(m("texttemplate"),v.texttemplate||m("textinfo")),s(m,"increasing",a),s(m,"decreasing",o),s(m,"totals",n);var M=m("connector.visible");if(M){m("connector.mode");var _=m("connector.line.width");_&&(m("connector.line.color"),m("connector.line.dash"))}m("zorder")}function f(p,v){var T,l;function m(S){return h.coerce(l._input,l,t,S)}if(v.waterfallmode==="group")for(var w=0;w0&&(m?y+="M"+u[0]+","+g[1]+"V"+g[0]:y+="M"+u[1]+","+g[0]+"H"+u[0]),w!=="between"&&(_.isSum||b path").each(function(v){if(!v.isBlank){var T=p[v.dir].marker;h.select(this).call(A.fill,T.color).call(A.stroke,T.line.color).call(x.dashLine,T.line.dash,T.line.width).style("opacity",p.selectedpoints&&!v.selected?E:1)}}),r(f,p,a),f.selectAll(".lines").each(function(){var v=p.connector.line;x.lineGroupStyle(h.select(this).selectAll("path"),v.width,v.color,v.dash)})})}H.exports={style:i}}}),_k=He({"src/traces/waterfall/hover.js"(Y,H){var h=wo().hoverLabelText,x=zi().opacity,A=Y0().hoverOnBars,E=J0(),e={increasing:E.INCREASING.SYMBOL,decreasing:E.DECREASING.SYMBOL};H.exports=function(i,a,o,n,s){var c=A(i,a,o,n,s);if(!c)return;var f=c.cd,p=f[0].trace,v=p.orientation==="h",T=v?"x":"y",l=v?i.xa:i.ya;function m(R){return h(l,R,p[T+"hoverformat"])}var w=c.index,S=f[w],M=S.isSum?S.b+S.s:S.rawS;c.initial=S.b+S.s-M,c.delta=M,c.final=c.initial+c.delta;var _=m(Math.abs(c.delta));c.deltaLabel=M<0?"("+_+")":_,c.finalLabel=m(c.final),c.initialLabel=m(c.initial);var b=S.hi||p.hoverinfo,d=[];if(b&&b!=="none"&&b!=="skip"){var u=b==="all",g=b.split("+"),y=function(R){return u||g.indexOf(R)!==-1};S.isSum||(y("final")&&(v?!y("x"):!y("y"))&&d.push(c.finalLabel),y("delta")&&(M<0?d.push(c.deltaLabel+" "+e.decreasing):d.push(c.deltaLabel+" "+e.increasing)),y("initial")&&d.push("Initial: "+c.initialLabel))}return d.length&&(c.extraText=d.join("
")),c.color=t(p,S),[c]};function t(r,i){var a=r[i.dir].marker,o=a.color,n=a.line.color,s=a.line.width;if(x(o))return o;if(x(n)&&s)return n}}}),xk=He({"src/traces/waterfall/event_data.js"(Y,H){H.exports=function(x,A){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,"initial"in A&&(x.initial=A.initial),"delta"in A&&(x.delta=A.delta),"final"in A&&(x.final=A.final),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x}}}),bk=He({"src/traces/waterfall/index.js"(Y,H){H.exports={attributes:r2(),layoutAttributes:a2(),supplyDefaults:n2().supplyDefaults,crossTraceDefaults:n2().crossTraceDefaults,supplyLayoutDefaults:dk(),calc:pk(),crossTraceCalc:gk(),plot:mk(),style:yk().style,hoverPoints:_k(),eventData:xk(),selectPoints:$0(),moduleType:"trace",name:"waterfall",basePlotModule:cf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}}),wk=He({"lib/waterfall.js"(Y,H){H.exports=bk()}}),Q0=He({"src/traces/image/constants.js"(Y,H){H.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(h){return h.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(h){return h.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(h){return h.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(h){var x=h.slice(0,3);return x[1]=x[1]+"%",x[2]=x[2]+"%",x},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(h){var x=h.slice(0,4);return x[1]=x[1]+"%",x[2]=x[2]+"%",x},suffix:["°","%","%",""]}}}}}),i2=He({"src/traces/image/attributes.js"(Y,H){var h=Ll(),x=bc().zorder,A=us().hovertemplateAttrs,E=Po().extendFlat,e=Q0().colormodel,t=["rgb","rgba","rgba256","hsl","hsla"],r=[],i=[];for(o=0;o0)throw new Error("Invalid string. Length must be a multiple of 4");var p=c.indexOf("=");p===-1&&(p=f);var v=p===f?0:4-p%4;return[p,v]}function r(c){var f=t(c),p=f[0],v=f[1];return(p+v)*3/4-v}function i(c,f,p){return(f+p)*3/4-p}function a(c){var f,p=t(c),v=p[0],T=p[1],l=new x(i(c,v,T)),m=0,w=T>0?v-4:v,S;for(S=0;S>16&255,l[m++]=f>>8&255,l[m++]=f&255;return T===2&&(f=h[c.charCodeAt(S)]<<2|h[c.charCodeAt(S+1)]>>4,l[m++]=f&255),T===1&&(f=h[c.charCodeAt(S)]<<10|h[c.charCodeAt(S+1)]<<4|h[c.charCodeAt(S+2)]>>2,l[m++]=f>>8&255,l[m++]=f&255),l}function o(c){return H[c>>18&63]+H[c>>12&63]+H[c>>6&63]+H[c&63]}function n(c,f,p){for(var v,T=[],l=f;lw?w:m+l));return v===1?(f=c[p-1],T.push(H[f>>2]+H[f<<4&63]+"==")):v===2&&(f=(c[p-2]<<8)+c[p-1],T.push(H[f>>10]+H[f>>4&63]+H[f<<2&63]+"=")),T.join("")}}}),Sk=He({"node_modules/ieee754/index.js"(Y){Y.read=function(H,h,x,A,E){var e,t,r=E*8-A-1,i=(1<>1,o=-7,n=x?E-1:0,s=x?-1:1,c=H[h+n];for(n+=s,e=c&(1<<-o)-1,c>>=-o,o+=r;o>0;e=e*256+H[h+n],n+=s,o-=8);for(t=e&(1<<-o)-1,e>>=-o,o+=A;o>0;t=t*256+H[h+n],n+=s,o-=8);if(e===0)e=1-a;else{if(e===i)return t?NaN:(c?-1:1)*(1/0);t=t+Math.pow(2,A),e=e-a}return(c?-1:1)*t*Math.pow(2,e-A)},Y.write=function(H,h,x,A,E,e){var t,r,i,a=e*8-E-1,o=(1<>1,s=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=A?0:e-1,f=A?1:-1,p=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(r=isNaN(h)?1:0,t=o):(t=Math.floor(Math.log(h)/Math.LN2),h*(i=Math.pow(2,-t))<1&&(t--,i*=2),t+n>=1?h+=s/i:h+=s*Math.pow(2,1-n),h*i>=2&&(t++,i/=2),t+n>=o?(r=0,t=o):t+n>=1?(r=(h*i-1)*Math.pow(2,E),t=t+n):(r=h*Math.pow(2,n-1)*Math.pow(2,E),t=0));E>=8;H[x+c]=r&255,c+=f,r/=256,E-=8);for(t=t<0;H[x+c]=t&255,c+=f,t/=256,a-=8);H[x+c-f]|=p*128}}}),Dp=He({"node_modules/buffer/index.js"(Y){var H=Ak(),h=Sk(),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Y.Buffer=t,Y.SlowBuffer=T,Y.INSPECT_MAX_BYTES=50;var A=2147483647;Y.kMaxLength=A,t.TYPED_ARRAY_SUPPORT=E(),!t.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{const Me=new Uint8Array(1),we={foo:function(){return 42}};return Object.setPrototypeOf(we,Uint8Array.prototype),Object.setPrototypeOf(Me,we),Me.foo()===42}catch{return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}});function e(Me){if(Me>A)throw new RangeError('The value "'+Me+'" is invalid for option "size"');const we=new Uint8Array(Me);return Object.setPrototypeOf(we,t.prototype),we}function t(Me,we,he){if(typeof Me=="number"){if(typeof we=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return o(Me)}return r(Me,we,he)}t.poolSize=8192;function r(Me,we,he){if(typeof Me=="string")return n(Me,we);if(ArrayBuffer.isView(Me))return c(Me);if(Me==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me);if(je(Me,ArrayBuffer)||Me&&je(Me.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(Me,SharedArrayBuffer)||Me&&je(Me.buffer,SharedArrayBuffer)))return f(Me,we,he);if(typeof Me=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const De=Me.valueOf&&Me.valueOf();if(De!=null&&De!==Me)return t.from(De,we,he);const et=p(Me);if(et)return et;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Me[Symbol.toPrimitive]=="function")return t.from(Me[Symbol.toPrimitive]("string"),we,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me)}t.from=function(Me,we,he){return r(Me,we,he)},Object.setPrototypeOf(t.prototype,Uint8Array.prototype),Object.setPrototypeOf(t,Uint8Array);function i(Me){if(typeof Me!="number")throw new TypeError('"size" argument must be of type number');if(Me<0)throw new RangeError('The value "'+Me+'" is invalid for option "size"')}function a(Me,we,he){return i(Me),Me<=0?e(Me):we!==void 0?typeof he=="string"?e(Me).fill(we,he):e(Me).fill(we):e(Me)}t.alloc=function(Me,we,he){return a(Me,we,he)};function o(Me){return i(Me),e(Me<0?0:v(Me)|0)}t.allocUnsafe=function(Me){return o(Me)},t.allocUnsafeSlow=function(Me){return o(Me)};function n(Me,we){if((typeof we!="string"||we==="")&&(we="utf8"),!t.isEncoding(we))throw new TypeError("Unknown encoding: "+we);const he=l(Me,we)|0;let De=e(he);const et=De.write(Me,we);return et!==he&&(De=De.slice(0,et)),De}function s(Me){const we=Me.length<0?0:v(Me.length)|0,he=e(we);for(let De=0;De=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return Me|0}function T(Me){return+Me!=Me&&(Me=0),t.alloc(+Me)}t.isBuffer=function(we){return we!=null&&we._isBuffer===!0&&we!==t.prototype},t.compare=function(we,he){if(je(we,Uint8Array)&&(we=t.from(we,we.offset,we.byteLength)),je(he,Uint8Array)&&(he=t.from(he,he.offset,he.byteLength)),!t.isBuffer(we)||!t.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(we===he)return 0;let De=we.length,et=he.length;for(let nt=0,Ke=Math.min(De,et);ntet.length?(t.isBuffer(Ke)||(Ke=t.from(Ke)),Ke.copy(et,nt)):Uint8Array.prototype.set.call(et,Ke,nt);else if(t.isBuffer(Ke))Ke.copy(et,nt);else throw new TypeError('"list" argument must be an Array of Buffers');nt+=Ke.length}return et};function l(Me,we){if(t.isBuffer(Me))return Me.length;if(ArrayBuffer.isView(Me)||je(Me,ArrayBuffer))return Me.byteLength;if(typeof Me!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Me);const he=Me.length,De=arguments.length>2&&arguments[2]===!0;if(!De&&he===0)return 0;let et=!1;for(;;)switch(we){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return fe(Me).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he*2;case"hex":return he>>>1;case"base64":return Pe(Me).length;default:if(et)return De?-1:fe(Me).length;we=(""+we).toLowerCase(),et=!0}}t.byteLength=l;function m(Me,we,he){let De=!1;if((we===void 0||we<0)&&(we=0),we>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0,we>>>=0,he<=we))return"";for(Me||(Me="utf8");;)switch(Me){case"hex":return O(this,we,he);case"utf8":case"utf-8":return R(this,we,he);case"ascii":return F(this,we,he);case"latin1":case"binary":return B(this,we,he);case"base64":return y(this,we,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,we,he);default:if(De)throw new TypeError("Unknown encoding: "+Me);Me=(Me+"").toLowerCase(),De=!0}}t.prototype._isBuffer=!0;function w(Me,we,he){const De=Me[we];Me[we]=Me[he],Me[he]=De}t.prototype.swap16=function(){const we=this.length;if(we%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let he=0;hehe&&(we+=" ... "),""},x&&(t.prototype[x]=t.prototype.inspect),t.prototype.compare=function(we,he,De,et,nt){if(je(we,Uint8Array)&&(we=t.from(we,we.offset,we.byteLength)),!t.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof we);if(he===void 0&&(he=0),De===void 0&&(De=we?we.length:0),et===void 0&&(et=0),nt===void 0&&(nt=this.length),he<0||De>we.length||et<0||nt>this.length)throw new RangeError("out of range index");if(et>=nt&&he>=De)return 0;if(et>=nt)return-1;if(he>=De)return 1;if(he>>>=0,De>>>=0,et>>>=0,nt>>>=0,this===we)return 0;let Ke=nt-et,Et=De-he;const kt=Math.min(Ke,Et),Ut=this.slice(et,nt),Yt=we.slice(he,De);for(let vr=0;vr2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,at(he)&&(he=et?0:Me.length-1),he<0&&(he=Me.length+he),he>=Me.length){if(et)return-1;he=Me.length-1}else if(he<0)if(et)he=0;else return-1;if(typeof we=="string"&&(we=t.from(we,De)),t.isBuffer(we))return we.length===0?-1:M(Me,we,he,De,et);if(typeof we=="number")return we=we&255,typeof Uint8Array.prototype.indexOf=="function"?et?Uint8Array.prototype.indexOf.call(Me,we,he):Uint8Array.prototype.lastIndexOf.call(Me,we,he):M(Me,[we],he,De,et);throw new TypeError("val must be string, number or Buffer")}function M(Me,we,he,De,et){let nt=1,Ke=Me.length,Et=we.length;if(De!==void 0&&(De=String(De).toLowerCase(),De==="ucs2"||De==="ucs-2"||De==="utf16le"||De==="utf-16le")){if(Me.length<2||we.length<2)return-1;nt=2,Ke/=2,Et/=2,he/=2}function kt(Yt,vr){return nt===1?Yt[vr]:Yt.readUInt16BE(vr*nt)}let Ut;if(et){let Yt=-1;for(Ut=he;UtKe&&(he=Ke-Et),Ut=he;Ut>=0;Ut--){let Yt=!0;for(let vr=0;vret&&(De=et)):De=et;const nt=we.length;De>nt/2&&(De=nt/2);let Ke;for(Ke=0;Ke>>0,isFinite(De)?(De=De>>>0,et===void 0&&(et="utf8")):(et=De,De=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const nt=this.length-he;if((De===void 0||De>nt)&&(De=nt),we.length>0&&(De<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");let Ke=!1;for(;;)switch(et){case"hex":return _(this,we,he,De);case"utf8":case"utf-8":return b(this,we,he,De);case"ascii":case"latin1":case"binary":return d(this,we,he,De);case"base64":return u(this,we,he,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,we,he,De);default:if(Ke)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Ke=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function y(Me,we,he){return we===0&&he===Me.length?H.fromByteArray(Me):H.fromByteArray(Me.slice(we,he))}function R(Me,we,he){he=Math.min(Me.length,he);const De=[];let et=we;for(;et239?4:nt>223?3:nt>191?2:1;if(et+Et<=he){let kt,Ut,Yt,vr;switch(Et){case 1:nt<128&&(Ke=nt);break;case 2:kt=Me[et+1],(kt&192)===128&&(vr=(nt&31)<<6|kt&63,vr>127&&(Ke=vr));break;case 3:kt=Me[et+1],Ut=Me[et+2],(kt&192)===128&&(Ut&192)===128&&(vr=(nt&15)<<12|(kt&63)<<6|Ut&63,vr>2047&&(vr<55296||vr>57343)&&(Ke=vr));break;case 4:kt=Me[et+1],Ut=Me[et+2],Yt=Me[et+3],(kt&192)===128&&(Ut&192)===128&&(Yt&192)===128&&(vr=(nt&15)<<18|(kt&63)<<12|(Ut&63)<<6|Yt&63,vr>65535&&vr<1114112&&(Ke=vr))}}Ke===null?(Ke=65533,Et=1):Ke>65535&&(Ke-=65536,De.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),De.push(Ke),et+=Et}return z(De)}var I=4096;function z(Me){const we=Me.length;if(we<=I)return String.fromCharCode.apply(String,Me);let he="",De=0;for(;DeDe)&&(he=De);let et="";for(let nt=we;ntDe&&(we=De),he<0?(he+=De,he<0&&(he=0)):he>De&&(he=De),hehe)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(we,he,De){we=we>>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we],nt=1,Ke=0;for(;++Ke>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we+--he],nt=1;for(;he>0&&(nt*=256);)et+=this[we+--he]*nt;return et},t.prototype.readUint8=t.prototype.readUInt8=function(we,he){return we=we>>>0,he||N(we,1,this.length),this[we]},t.prototype.readUint16LE=t.prototype.readUInt16LE=function(we,he){return we=we>>>0,he||N(we,2,this.length),this[we]|this[we+1]<<8},t.prototype.readUint16BE=t.prototype.readUInt16BE=function(we,he){return we=we>>>0,he||N(we,2,this.length),this[we]<<8|this[we+1]},t.prototype.readUint32LE=t.prototype.readUInt32LE=function(we,he){return we=we>>>0,he||N(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+this[we+3]*16777216},t.prototype.readUint32BE=t.prototype.readUInt32BE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]*16777216+(this[we+1]<<16|this[we+2]<<8|this[we+3])},t.prototype.readBigUInt64LE=Je(function(we){we=we>>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=he+this[++we]*2**8+this[++we]*2**16+this[++we]*2**24,nt=this[++we]+this[++we]*2**8+this[++we]*2**16+De*2**24;return BigInt(et)+(BigInt(nt)<>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=he*2**24+this[++we]*2**16+this[++we]*2**8+this[++we],nt=this[++we]*2**24+this[++we]*2**16+this[++we]*2**8+De;return(BigInt(et)<>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we],nt=1,Ke=0;for(;++Ke=nt&&(et-=Math.pow(2,8*he)),et},t.prototype.readIntBE=function(we,he,De){we=we>>>0,he=he>>>0,De||N(we,he,this.length);let et=he,nt=1,Ke=this[we+--et];for(;et>0&&(nt*=256);)Ke+=this[we+--et]*nt;return nt*=128,Ke>=nt&&(Ke-=Math.pow(2,8*he)),Ke},t.prototype.readInt8=function(we,he){return we=we>>>0,he||N(we,1,this.length),this[we]&128?(255-this[we]+1)*-1:this[we]},t.prototype.readInt16LE=function(we,he){we=we>>>0,he||N(we,2,this.length);const De=this[we]|this[we+1]<<8;return De&32768?De|4294901760:De},t.prototype.readInt16BE=function(we,he){we=we>>>0,he||N(we,2,this.length);const De=this[we+1]|this[we]<<8;return De&32768?De|4294901760:De},t.prototype.readInt32LE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},t.prototype.readInt32BE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},t.prototype.readBigInt64LE=Je(function(we){we=we>>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=this[we+4]+this[we+5]*2**8+this[we+6]*2**16+(De<<24);return(BigInt(et)<>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=(he<<24)+this[++we]*2**16+this[++we]*2**8+this[++we];return(BigInt(et)<>>0,he||N(we,4,this.length),h.read(this,we,!0,23,4)},t.prototype.readFloatBE=function(we,he){return we=we>>>0,he||N(we,4,this.length),h.read(this,we,!1,23,4)},t.prototype.readDoubleLE=function(we,he){return we=we>>>0,he||N(we,8,this.length),h.read(this,we,!0,52,8)},t.prototype.readDoubleBE=function(we,he){return we=we>>>0,he||N(we,8,this.length),h.read(this,we,!1,52,8)};function U(Me,we,he,De,et,nt){if(!t.isBuffer(Me))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>et||weMe.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(we,he,De,et){if(we=+we,he=he>>>0,De=De>>>0,!et){const Et=Math.pow(2,8*De)-1;U(this,we,he,De,Et,0)}let nt=1,Ke=0;for(this[he]=we&255;++Ke>>0,De=De>>>0,!et){const Et=Math.pow(2,8*De)-1;U(this,we,he,De,Et,0)}let nt=De-1,Ke=1;for(this[he+nt]=we&255;--nt>=0&&(Ke*=256);)this[he+nt]=we/Ke&255;return he+De},t.prototype.writeUint8=t.prototype.writeUInt8=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,1,255,0),this[he]=we&255,he+1},t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,65535,0),this[he]=we&255,this[he+1]=we>>>8,he+2},t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,65535,0),this[he]=we>>>8,this[he+1]=we&255,he+2},t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,4294967295,0),this[he+3]=we>>>24,this[he+2]=we>>>16,this[he+1]=we>>>8,this[he]=we&255,he+4},t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,4294967295,0),this[he]=we>>>24,this[he+1]=we>>>16,this[he+2]=we>>>8,this[he+3]=we&255,he+4};function X(Me,we,he,De,et){se(we,De,et,Me,he,7);let nt=Number(we&BigInt(4294967295));Me[he++]=nt,nt=nt>>8,Me[he++]=nt,nt=nt>>8,Me[he++]=nt,nt=nt>>8,Me[he++]=nt;let Ke=Number(we>>BigInt(32)&BigInt(4294967295));return Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,he}function te(Me,we,he,De,et){se(we,De,et,Me,he,7);let nt=Number(we&BigInt(4294967295));Me[he+7]=nt,nt=nt>>8,Me[he+6]=nt,nt=nt>>8,Me[he+5]=nt,nt=nt>>8,Me[he+4]=nt;let Ke=Number(we>>BigInt(32)&BigInt(4294967295));return Me[he+3]=Ke,Ke=Ke>>8,Me[he+2]=Ke,Ke=Ke>>8,Me[he+1]=Ke,Ke=Ke>>8,Me[he]=Ke,he+8}t.prototype.writeBigUInt64LE=Je(function(we,he=0){return X(this,we,he,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeBigUInt64BE=Je(function(we,he=0){return te(this,we,he,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeIntLE=function(we,he,De,et){if(we=+we,he=he>>>0,!et){const kt=Math.pow(2,8*De-1);U(this,we,he,De,kt-1,-kt)}let nt=0,Ke=1,Et=0;for(this[he]=we&255;++nt>0)-Et&255;return he+De},t.prototype.writeIntBE=function(we,he,De,et){if(we=+we,he=he>>>0,!et){const kt=Math.pow(2,8*De-1);U(this,we,he,De,kt-1,-kt)}let nt=De-1,Ke=1,Et=0;for(this[he+nt]=we&255;--nt>=0&&(Ke*=256);)we<0&&Et===0&&this[he+nt+1]!==0&&(Et=1),this[he+nt]=(we/Ke>>0)-Et&255;return he+De},t.prototype.writeInt8=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,1,127,-128),we<0&&(we=255+we+1),this[he]=we&255,he+1},t.prototype.writeInt16LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,32767,-32768),this[he]=we&255,this[he+1]=we>>>8,he+2},t.prototype.writeInt16BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,32767,-32768),this[he]=we>>>8,this[he+1]=we&255,he+2},t.prototype.writeInt32LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,2147483647,-2147483648),this[he]=we&255,this[he+1]=we>>>8,this[he+2]=we>>>16,this[he+3]=we>>>24,he+4},t.prototype.writeInt32BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[he]=we>>>24,this[he+1]=we>>>16,this[he+2]=we>>>8,this[he+3]=we&255,he+4},t.prototype.writeBigInt64LE=Je(function(we,he=0){return X(this,we,he,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),t.prototype.writeBigInt64BE=Je(function(we,he=0){return te(this,we,he,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ue(Me,we,he,De,et,nt){if(he+De>Me.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function ie(Me,we,he,De,et){return we=+we,he=he>>>0,et||ue(Me,we,he,4),h.write(Me,we,he,De,23,4),he+4}t.prototype.writeFloatLE=function(we,he,De){return ie(this,we,he,!0,De)},t.prototype.writeFloatBE=function(we,he,De){return ie(this,we,he,!1,De)};function le(Me,we,he,De,et){return we=+we,he=he>>>0,et||ue(Me,we,he,8),h.write(Me,we,he,De,52,8),he+8}t.prototype.writeDoubleLE=function(we,he,De){return le(this,we,he,!0,De)},t.prototype.writeDoubleBE=function(we,he,De){return le(this,we,he,!1,De)},t.prototype.copy=function(we,he,De,et){if(!t.isBuffer(we))throw new TypeError("argument should be a Buffer");if(De||(De=0),!et&&et!==0&&(et=this.length),he>=we.length&&(he=we.length),he||(he=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),we.length-he>>0,De=De===void 0?this.length:De>>>0,we||(we=0);let nt;if(typeof we=="number")for(nt=he;nt2**32?et=ee(String(he)):typeof he=="bigint"&&(et=String(he),(he>BigInt(2)**BigInt(32)||he<-(BigInt(2)**BigInt(32)))&&(et=ee(et)),et+="n"),De+=` It must be ${we}. Received ${et}`,De},RangeError);function ee(Me){let we="",he=Me.length;const De=Me[0]==="-"?1:0;for(;he>=De+4;he-=3)we=`_${Me.slice(he-3,he)}${we}`;return`${Me.slice(0,he)}${we}`}function Z(Me,we,he){Q(we,"offset"),(Me[we]===void 0||Me[we+he]===void 0)&&V(we,Me.length-(he+1))}function se(Me,we,he,De,et,nt){if(Me>he||Me= 0${Ke} and < 2${Ke} ** ${(nt+1)*8}${Ke}`:Et=`>= -(2${Ke} ** ${(nt+1)*8-1}${Ke}) and < 2 ** ${(nt+1)*8-1}${Ke}`,new q.ERR_OUT_OF_RANGE("value",Et,Me)}Z(De,et,nt)}function Q(Me,we){if(typeof Me!="number")throw new q.ERR_INVALID_ARG_TYPE(we,"number",Me)}function V(Me,we,he){throw Math.floor(Me)!==Me?(Q(Me,he),new q.ERR_OUT_OF_RANGE("offset","an integer",Me)):we<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${we}`,Me)}var re=/[^+/0-9A-Za-z-_]/g;function ae(Me){if(Me=Me.split("=")[0],Me=Me.trim().replace(re,""),Me.length<2)return"";for(;Me.length%4!==0;)Me=Me+"=";return Me}function fe(Me,we){we=we||1/0;let he;const De=Me.length;let et=null;const nt=[];for(let Ke=0;Ke55295&&he<57344){if(!et){if(he>56319){(we-=3)>-1&&nt.push(239,191,189);continue}else if(Ke+1===De){(we-=3)>-1&&nt.push(239,191,189);continue}et=he;continue}if(he<56320){(we-=3)>-1&&nt.push(239,191,189),et=he;continue}he=(et-55296<<10|he-56320)+65536}else et&&(we-=3)>-1&&nt.push(239,191,189);if(et=null,he<128){if((we-=1)<0)break;nt.push(he)}else if(he<2048){if((we-=2)<0)break;nt.push(he>>6|192,he&63|128)}else if(he<65536){if((we-=3)<0)break;nt.push(he>>12|224,he>>6&63|128,he&63|128)}else if(he<1114112){if((we-=4)<0)break;nt.push(he>>18|240,he>>12&63|128,he>>6&63|128,he&63|128)}else throw new Error("Invalid code point")}return nt}function xe(Me){const we=[];for(let he=0;he>8,et=he%256,nt.push(et),nt.push(De);return nt}function Pe(Me){return H.toByteArray(ae(Me))}function Ce(Me,we,he,De){let et;for(et=0;et=we.length||et>=Me.length);++et)we[et+he]=Me[et];return et}function je(Me,we){return Me instanceof we||Me!=null&&Me.constructor!=null&&Me.constructor.name!=null&&Me.constructor.name===we.name}function at(Me){return Me!==Me}var tt=function(){const Me="0123456789abcdef",we=new Array(256);for(let he=0;he<16;++he){const De=he*16;for(let et=0;et<16;++et)we[De+et]=Me[he]+Me[et]}return we}();function Je(Me){return typeof BigInt>"u"?Ze:Me}function Ze(){throw new Error("BigInt not supported")}}}),r_=He({"node_modules/has-symbols/shams.js"(Y,H){H.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var x={},A=Symbol("test"),E=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(E)!=="[object Symbol]")return!1;var e=42;x[A]=e;for(var t in x)return!1;if(typeof Object.keys=="function"&&Object.keys(x).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(x).length!==0)return!1;var r=Object.getOwnPropertySymbols(x);if(r.length!==1||r[0]!==A||!Object.prototype.propertyIsEnumerable.call(x,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(x,A);if(i.value!==e||i.enumerable!==!0)return!1}return!0}}}),ym=He({"node_modules/has-tostringtag/shams.js"(Y,H){var h=r_();H.exports=function(){return h()&&!!Symbol.toStringTag}}}),s2=He({"node_modules/es-object-atoms/index.js"(Y,H){H.exports=Object}}),Mk=He({"node_modules/es-errors/index.js"(Y,H){H.exports=Error}}),Ek=He({"node_modules/es-errors/eval.js"(Y,H){H.exports=EvalError}}),kk=He({"node_modules/es-errors/range.js"(Y,H){H.exports=RangeError}}),Ck=He({"node_modules/es-errors/ref.js"(Y,H){H.exports=ReferenceError}}),l2=He({"node_modules/es-errors/syntax.js"(Y,H){H.exports=SyntaxError}}),eg=He({"node_modules/es-errors/type.js"(Y,H){H.exports=TypeError}}),Lk=He({"node_modules/es-errors/uri.js"(Y,H){H.exports=URIError}}),Pk=He({"node_modules/math-intrinsics/abs.js"(Y,H){H.exports=Math.abs}}),Ik=He({"node_modules/math-intrinsics/floor.js"(Y,H){H.exports=Math.floor}}),Rk=He({"node_modules/math-intrinsics/max.js"(Y,H){H.exports=Math.max}}),Dk=He({"node_modules/math-intrinsics/min.js"(Y,H){H.exports=Math.min}}),zk=He({"node_modules/math-intrinsics/pow.js"(Y,H){H.exports=Math.pow}}),Fk=He({"node_modules/math-intrinsics/round.js"(Y,H){H.exports=Math.round}}),Ok=He({"node_modules/math-intrinsics/isNaN.js"(Y,H){H.exports=Number.isNaN||function(x){return x!==x}}}),Bk=He({"node_modules/math-intrinsics/sign.js"(Y,H){var h=Ok();H.exports=function(A){return h(A)||A===0?A:A<0?-1:1}}}),Nk=He({"node_modules/gopd/gOPD.js"(Y,H){H.exports=Object.getOwnPropertyDescriptor}}),zp=He({"node_modules/gopd/index.js"(Y,H){var h=Nk();if(h)try{h([],"length")}catch{h=null}H.exports=h}}),_m=He({"node_modules/es-define-property/index.js"(Y,H){var h=Object.defineProperty||!1;if(h)try{h({},"a",{value:1})}catch{h=!1}H.exports=h}}),Uk=He({"node_modules/has-symbols/index.js"(Y,H){var h=typeof Symbol<"u"&&Symbol,x=r_();H.exports=function(){return typeof h!="function"||typeof Symbol!="function"||typeof h("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}}}),u2=He({"node_modules/get-proto/Reflect.getPrototypeOf.js"(Y,H){H.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),c2=He({"node_modules/get-proto/Object.getPrototypeOf.js"(Y,H){var h=s2();H.exports=h.getPrototypeOf||null}}),jk=He({"node_modules/function-bind/implementation.js"(Y,H){var h="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,A=Math.max,E="[object Function]",e=function(a,o){for(var n=[],s=0;s"u"||!b?h:b(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":_&&b?b([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?h:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?h:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":A,"%eval%":eval,"%EvalError%":E,"%Float16Array%":typeof Float16Array>"u"?h:Float16Array,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&b?b(b([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!b?h:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":x,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":e,"%ReferenceError%":t,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!b?h:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&b?b(""[Symbol.iterator]()):h,"%Symbol%":_?Symbol:h,"%SyntaxError%":r,"%ThrowTypeError%":M,"%TypedArray%":I,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":a,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":y,"%Function.prototype.apply%":g,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":d,"%Math.abs%":o,"%Math.floor%":n,"%Math.max%":s,"%Math.min%":c,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":v,"%Reflect.getPrototypeOf%":u};if(b)try{null.error}catch(Z){F=b(b(Z)),z["%Error.prototype%"]=F}var F,B=function Z(se){var Q;if(se==="%AsyncFunction%")Q=l("async function () {}");else if(se==="%GeneratorFunction%")Q=l("function* () {}");else if(se==="%AsyncGeneratorFunction%")Q=l("async function* () {}");else if(se==="%AsyncGenerator%"){var V=Z("%AsyncGeneratorFunction%");V&&(Q=V.prototype)}else if(se==="%AsyncIteratorPrototype%"){var re=Z("%AsyncGenerator%");re&&b&&(Q=b(re.prototype))}return z[se]=Q,Q},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=tg(),N=Xk(),U=P.call(y,Array.prototype.concat),X=P.call(g,Array.prototype.splice),te=P.call(y,String.prototype.replace),ue=P.call(y,String.prototype.slice),ie=P.call(y,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,J=function(se){var Q=ue(se,0,1),V=ue(se,-1);if(Q==="%"&&V!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&Q!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var re=[];return te(se,le,function(ae,fe,xe,Ae){re[re.length]=xe?te(Ae,q,"$1"):fe||ae}),re},ee=function(se,Q){var V=se,re;if(N(O,V)&&(re=O[V],V="%"+re[0]+"%"),N(z,V)){var ae=z[V];if(ae===R&&(ae=B(V)),typeof ae>"u"&&!Q)throw new i("intrinsic "+se+" exists, but is not available. Please file an issue!");return{alias:re,name:V,value:ae}}throw new r("intrinsic "+se+" does not exist!")};H.exports=function(se,Q){if(typeof se!="string"||se.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new i('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,se)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=J(se),re=V.length>0?V[0]:"",ae=ee("%"+re+"%",Q),fe=ae.name,xe=ae.value,Ae=!1,Pe=ae.alias;Pe&&(re=Pe[0],X(V,U([0,1],Pe)));for(var Ce=1,je=!0;Ce=V.length){var Ze=m(xe,at);je=!!Ze,je&&"get"in Ze&&!("originalValue"in Ze.get)?xe=Ze.get:xe=xe[at]}else je=N(xe,at),xe=xe[at];je&&!Ae&&(z[fe]=xe)}}return xe}}}),Zk=He({"node_modules/define-data-property/index.js"(Y,H){var h=_m(),x=l2(),A=eg(),E=zp();H.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new A("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new A("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new A("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new A("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new A("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new A("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,n=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!E&&E(t,r);if(h)h(t,r,{configurable:n===null&&c?c.configurable:!n,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:o===null&&c?c.writable:!o});else if(s||!a&&!o&&!n)t[r]=i;else throw new x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}}),h2=He({"node_modules/has-property-descriptors/index.js"(Y,H){var h=_m(),x=function(){return!!h};x.hasArrayLengthDefineBug=function(){if(!h)return null;try{return h([],"length",{value:1}).length!==1}catch{return!0}},H.exports=x}}),Yk=He({"node_modules/set-function-length/index.js"(Y,H){var h=n_(),x=Zk(),A=h2()(),E=zp(),e=eg(),t=h("%Math.floor%");H.exports=function(i,a){if(typeof i!="function")throw new e("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||t(a)!==a)throw new e("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],n=!0,s=!0;if("length"in i&&E){var c=E(i,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(s=!1)}return(n||s||!o)&&(A?x(i,"length",a,!0,!0):x(i,"length",a)),i}}}),xm=He({"node_modules/call-bind/index.js"(Y,H){var h=tg(),x=n_(),A=Yk(),E=eg(),e=x("%Function.prototype.apply%"),t=x("%Function.prototype.call%"),r=x("%Reflect.apply%",!0)||h.call(t,e),i=_m(),a=x("%Math.max%");H.exports=function(s){if(typeof s!="function")throw new E("a function is required");var c=r(h,t,arguments);return A(c,1+a(0,s.length-(arguments.length-1)),!0)};var o=function(){return r(h,e,arguments)};i?i(H.exports,"apply",{value:o}):H.exports.apply=o}}),rg=He({"node_modules/call-bind/callBound.js"(Y,H){var h=n_(),x=xm(),A=x(h("String.prototype.indexOf"));H.exports=function(e,t){var r=h(e,!!t);return typeof r=="function"&&A(e,".prototype.")>-1?x(r):r}}}),$k=He({"node_modules/is-arguments/index.js"(Y,H){var h=ym()(),x=rg(),A=x("Object.prototype.toString"),E=function(i){return h&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:A(i)==="[object Arguments]"},e=function(i){return E(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&A(i)!=="[object Array]"&&A(i.callee)==="[object Function]"},t=function(){return E(arguments)}();E.isLegacyArguments=e,H.exports=t?E:e}}),Kk=He({"node_modules/is-generator-function/index.js"(Y,H){var h=Object.prototype.toString,x=Function.prototype.toString,A=/^\s*(?:function)?\*/,E=ym()(),e=Object.getPrototypeOf,t=function(){if(!E)return!1;try{return Function("return function*() {}")()}catch{}},r;H.exports=function(a){if(typeof a!="function")return!1;if(A.test(x.call(a)))return!0;if(!E){var o=h.call(a);return o==="[object GeneratorFunction]"}if(!e)return!1;if(typeof r>"u"){var n=t();r=n?e(n):!1}return e(a)===r}}}),Jk=He({"node_modules/is-callable/index.js"(Y,H){var h=Function.prototype.toString,x=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,A,E;if(typeof x=="function"&&typeof Object.defineProperty=="function")try{A=Object.defineProperty({},"length",{get:function(){throw E}}),E={},x(function(){throw 42},null,A)}catch(m){m!==E&&(x=null)}else x=null;var e=/^\s*class\b/,t=function(w){try{var S=h.call(w);return e.test(S)}catch{return!1}},r=function(w){try{return t(w)?!1:(h.call(w),!0)}catch{return!1}},i=Object.prototype.toString,a="[object Object]",o="[object Function]",n="[object GeneratorFunction]",s="[object HTMLAllCollection]",c="[object HTML document.all class]",f="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),T=function(){return!1};typeof document=="object"&&(l=document.all,i.call(l)===i.call(document.all)&&(T=function(w){if((v||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=i.call(w);return(S===s||S===c||S===f||S===a)&&w("")==null}catch{}return!1}));var l;H.exports=x?function(w){if(T(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{x(w,null,A)}catch(S){if(S!==E)return!1}return!t(w)&&r(w)}:function(w){if(T(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(p)return r(w);if(t(w))return!1;var S=i.call(w);return S!==o&&S!==n&&!/^\[object HTML/.test(S)?!1:r(w)}}}),v2=He({"node_modules/for-each/index.js"(Y,H){var h=Jk(),x=Object.prototype.toString,A=Object.prototype.hasOwnProperty,E=function(a,o,n){for(var s=0,c=a.length;s=3&&(s=n),x.call(a)==="[object Array]"?E(a,o,s):typeof a=="string"?e(a,o,s):t(a,o,s)};H.exports=r}}),d2=He({"node_modules/available-typed-arrays/index.js"(Y,H){var h=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],x=typeof globalThis>"u"?window:globalThis;H.exports=function(){for(var E=[],e=0;e"u"?window:globalThis,a=x(),o=E("String.prototype.slice"),n=Object.getPrototypeOf,s=E("Array.prototype.indexOf",!0)||function(T,l){for(var m=0;m-1?l:l!=="Object"?!1:p(T)}return e?f(T):null}}}),eC=He({"node_modules/is-typed-array/index.js"(Y,H){var h=v2(),x=d2(),A=rg(),E=A("Object.prototype.toString"),e=ym()(),t=zp(),r=typeof globalThis>"u"?window:globalThis,i=x(),a=A("Array.prototype.indexOf",!0)||function(p,v){for(var T=0;T-1}return t?c(p):!1}}}),p2=He({"node_modules/util/support/types.js"(Y){var H=$k(),h=Kk(),x=Qk(),A=eC();function E(Ae){return Ae.call.bind(Ae)}var e=typeof BigInt<"u",t=typeof Symbol<"u",r=E(Object.prototype.toString),i=E(Number.prototype.valueOf),a=E(String.prototype.valueOf),o=E(Boolean.prototype.valueOf);e&&(n=E(BigInt.prototype.valueOf));var n;t&&(s=E(Symbol.prototype.valueOf));var s;function c(Ae,Pe){if(typeof Ae!="object")return!1;try{return Pe(Ae),!0}catch{return!1}}Y.isArgumentsObject=H,Y.isGeneratorFunction=h,Y.isTypedArray=A;function f(Ae){return typeof Promise<"u"&&Ae instanceof Promise||Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"&&typeof Ae.catch=="function"}Y.isPromise=f;function p(Ae){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ae):A(Ae)||X(Ae)}Y.isArrayBufferView=p;function v(Ae){return x(Ae)==="Uint8Array"}Y.isUint8Array=v;function T(Ae){return x(Ae)==="Uint8ClampedArray"}Y.isUint8ClampedArray=T;function l(Ae){return x(Ae)==="Uint16Array"}Y.isUint16Array=l;function m(Ae){return x(Ae)==="Uint32Array"}Y.isUint32Array=m;function w(Ae){return x(Ae)==="Int8Array"}Y.isInt8Array=w;function S(Ae){return x(Ae)==="Int16Array"}Y.isInt16Array=S;function M(Ae){return x(Ae)==="Int32Array"}Y.isInt32Array=M;function _(Ae){return x(Ae)==="Float32Array"}Y.isFloat32Array=_;function b(Ae){return x(Ae)==="Float64Array"}Y.isFloat64Array=b;function d(Ae){return x(Ae)==="BigInt64Array"}Y.isBigInt64Array=d;function u(Ae){return x(Ae)==="BigUint64Array"}Y.isBigUint64Array=u;function g(Ae){return r(Ae)==="[object Map]"}g.working=typeof Map<"u"&&g(new Map);function y(Ae){return typeof Map>"u"?!1:g.working?g(Ae):Ae instanceof Map}Y.isMap=y;function R(Ae){return r(Ae)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function I(Ae){return typeof Set>"u"?!1:R.working?R(Ae):Ae instanceof Set}Y.isSet=I;function z(Ae){return r(Ae)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function F(Ae){return typeof WeakMap>"u"?!1:z.working?z(Ae):Ae instanceof WeakMap}Y.isWeakMap=F;function B(Ae){return r(Ae)==="[object WeakSet]"}B.working=typeof WeakSet<"u"&&B(new WeakSet);function O(Ae){return B(Ae)}Y.isWeakSet=O;function P(Ae){return r(Ae)==="[object ArrayBuffer]"}P.working=typeof ArrayBuffer<"u"&&P(new ArrayBuffer);function N(Ae){return typeof ArrayBuffer>"u"?!1:P.working?P(Ae):Ae instanceof ArrayBuffer}Y.isArrayBuffer=N;function U(Ae){return r(Ae)==="[object DataView]"}U.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&U(new DataView(new ArrayBuffer(1),0,1));function X(Ae){return typeof DataView>"u"?!1:U.working?U(Ae):Ae instanceof DataView}Y.isDataView=X;var te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ue(Ae){return r(Ae)==="[object SharedArrayBuffer]"}function ie(Ae){return typeof te>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new te)),ue.working?ue(Ae):Ae instanceof te)}Y.isSharedArrayBuffer=ie;function le(Ae){return r(Ae)==="[object AsyncFunction]"}Y.isAsyncFunction=le;function q(Ae){return r(Ae)==="[object Map Iterator]"}Y.isMapIterator=q;function J(Ae){return r(Ae)==="[object Set Iterator]"}Y.isSetIterator=J;function ee(Ae){return r(Ae)==="[object Generator]"}Y.isGeneratorObject=ee;function Z(Ae){return r(Ae)==="[object WebAssembly.Module]"}Y.isWebAssemblyCompiledModule=Z;function se(Ae){return c(Ae,i)}Y.isNumberObject=se;function Q(Ae){return c(Ae,a)}Y.isStringObject=Q;function V(Ae){return c(Ae,o)}Y.isBooleanObject=V;function re(Ae){return e&&c(Ae,n)}Y.isBigIntObject=re;function ae(Ae){return t&&c(Ae,s)}Y.isSymbolObject=ae;function fe(Ae){return se(Ae)||Q(Ae)||V(Ae)||re(Ae)||ae(Ae)}Y.isBoxedPrimitive=fe;function xe(Ae){return typeof Uint8Array<"u"&&(N(Ae)||ie(Ae))}Y.isAnyArrayBuffer=xe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ae){Object.defineProperty(Y,Ae,{enumerable:!1,value:function(){throw new Error(Ae+" is not supported in userland")}})})}}),g2=He({"node_modules/util/support/isBufferBrowser.js"(Y,H){H.exports=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}}}),m2=He({"(disabled):node_modules/util/util.js"(Y){var H=Object.getOwnPropertyDescriptors||function(X){for(var te=Object.keys(X),ue={},ie=0;ie=ie)return J;switch(J){case"%s":return String(ue[te++]);case"%d":return Number(ue[te++]);case"%j":try{return JSON.stringify(ue[te++])}catch{return"[Circular]"}default:return J}}),q=ue[te];te"u")return function(){return Y.deprecate(U,X).apply(this,arguments)};var te=!1;function ue(){if(!te){if(process.throwDeprecation)throw new Error(X);process.traceDeprecation?console.trace(X):console.error(X),te=!0}return U.apply(this,arguments)}return ue};var x={},A=/^$/;E="false",E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),A=new RegExp("^"+E+"$","i");var E;Y.debuglog=function(U){if(U=U.toUpperCase(),!x[U])if(A.test(U)){var X=process.pid;x[U]=function(){var te=Y.format.apply(Y,arguments);console.error("%s %d: %s",U,X,te)}}else x[U]=function(){};return x[U]};function e(U,X){var te={seen:[],stylize:r};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),v(X)?te.showHidden=X:X&&Y._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=t),a(te,U,te.depth)}Y.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function t(U,X){var te=e.styles[X];return te?"\x1B["+e.colors[te][0]+"m"+U+"\x1B["+e.colors[te][1]+"m":U}function r(U,X){return U}function i(U){var X={};return U.forEach(function(te,ue){X[te]=!0}),X}function a(U,X,te){if(U.customInspect&&X&&g(X.inspect)&&X.inspect!==Y.inspect&&!(X.constructor&&X.constructor.prototype===X)){var ue=X.inspect(te,U);return w(ue)||(ue=a(U,ue,te)),ue}var ie=o(U,X);if(ie)return ie;var le=Object.keys(X),q=i(le);if(U.showHidden&&(le=Object.getOwnPropertyNames(X)),u(X)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return n(X);if(le.length===0){if(g(X)){var J=X.name?": "+X.name:"";return U.stylize("[Function"+J+"]","special")}if(_(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(d(X))return U.stylize(Date.prototype.toString.call(X),"date");if(u(X))return n(X)}var ee="",Z=!1,se=["{","}"];if(p(X)&&(Z=!0,se=["[","]"]),g(X)){var Q=X.name?": "+X.name:"";ee=" [Function"+Q+"]"}if(_(X)&&(ee=" "+RegExp.prototype.toString.call(X)),d(X)&&(ee=" "+Date.prototype.toUTCString.call(X)),u(X)&&(ee=" "+n(X)),le.length===0&&(!Z||X.length==0))return se[0]+ee+se[1];if(te<0)return _(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special");U.seen.push(X);var V;return Z?V=s(U,X,te,q,le):V=le.map(function(re){return c(U,X,te,q,re,Z)}),U.seen.pop(),f(V,ee,se)}function o(U,X){if(M(X))return U.stylize("undefined","undefined");if(w(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(te,"string")}if(m(X))return U.stylize(""+X,"number");if(v(X))return U.stylize(""+X,"boolean");if(T(X))return U.stylize("null","null")}function n(U){return"["+Error.prototype.toString.call(U)+"]"}function s(U,X,te,ue,ie){for(var le=[],q=0,J=X.length;q-1&&(le?J=J.split(` +`).map(function(Z){return" "+Z}).join(` +`).slice(2):J=` +`+J.split(` +`).map(function(Z){return" "+Z}).join(` +`))):J=U.stylize("[Circular]","special")),M(q)){if(le&&ie.match(/^\d+$/))return J;q=JSON.stringify(""+ie),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+J}function f(U,X,te){var ue=U.reduce(function(ie,le){return le.indexOf(` +`)>=0,ie+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?te[0]+(X===""?"":X+` + `)+" "+U.join(`, + `)+" "+te[1]:te[0]+X+" "+U.join(", ")+" "+te[1]}Y.types=p2();function p(U){return Array.isArray(U)}Y.isArray=p;function v(U){return typeof U=="boolean"}Y.isBoolean=v;function T(U){return U===null}Y.isNull=T;function l(U){return U==null}Y.isNullOrUndefined=l;function m(U){return typeof U=="number"}Y.isNumber=m;function w(U){return typeof U=="string"}Y.isString=w;function S(U){return typeof U=="symbol"}Y.isSymbol=S;function M(U){return U===void 0}Y.isUndefined=M;function _(U){return b(U)&&R(U)==="[object RegExp]"}Y.isRegExp=_,Y.types.isRegExp=_;function b(U){return typeof U=="object"&&U!==null}Y.isObject=b;function d(U){return b(U)&&R(U)==="[object Date]"}Y.isDate=d,Y.types.isDate=d;function u(U){return b(U)&&(R(U)==="[object Error]"||U instanceof Error)}Y.isError=u,Y.types.isNativeError=u;function g(U){return typeof U=="function"}Y.isFunction=g;function y(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U>"u"}Y.isPrimitive=y,Y.isBuffer=g2();function R(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var U=new Date,X=[I(U.getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":");return[U.getDate(),z[U.getMonth()],X].join(" ")}Y.log=function(){console.log("%s - %s",F(),Y.format.apply(Y,arguments))},Y.inherits=od(),Y._extend=function(U,X){if(!X||!b(X))return U;for(var te=Object.keys(X),ue=te.length;ue--;)U[te[ue]]=X[te[ue]];return U};function B(U,X){return Object.prototype.hasOwnProperty.call(U,X)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&X[O]){var te=X[O];if(typeof te!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(te,O,{value:te,enumerable:!1,writable:!1,configurable:!0}),te}function te(){for(var ue,ie,le=new Promise(function(ee,Z){ue=ee,ie=Z}),q=[],J=0;J0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(p){var v={data:p,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var v=this.head,T=""+v.data;v=v.next;)T+=p+v.data;return T}},{key:"concat",value:function(p){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(p>>>0),T=this.head,l=0;T;)s(T.data,v,l),l+=T.data.length,T=T.next;return v}},{key:"consume",value:function(p,v){var T;return pm.length?m.length:p;if(w===m.length?l+=m:l+=m.slice(0,p),p-=w,p===0){w===m.length?(++T,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=m.slice(w));break}++T}return this.length-=T,l}},{key:"_getBuffer",value:function(p){var v=i.allocUnsafe(p),T=this.head,l=1;for(T.data.copy(v),p-=T.data.length;T=T.next;){var m=T.data,w=p>m.length?m.length:p;if(m.copy(v,v.length-p,0,w),p-=w,p===0){w===m.length?(++l,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=m.slice(w));break}++l}return this.length-=l,v}},{key:n,value:function(p,v){return o(this,x({},v,{depth:0,customInspect:!1}))}}]),c}()}}),y2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js"(Y,H){function h(r,i){var a=this,o=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return o||n?(i?i(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(e,this,r)):process.nextTick(e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!i&&s?a._writableState?a._writableState.errorEmitted?process.nextTick(A,a):(a._writableState.errorEmitted=!0,process.nextTick(x,a,s)):process.nextTick(x,a,s):i?(process.nextTick(A,a),i(s)):process.nextTick(A,a)}),this)}function x(r,i){e(r,i),A(r)}function A(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function E(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function e(r,i){r.emit("error",i)}function t(r,i){var a=r._readableState,o=r._writableState;a&&a.autoDestroy||o&&o.autoDestroy?r.destroy(i):r.emit("error",i)}H.exports={destroy:h,undestroy:E,errorOrDestroy:t}}}),Fp=He({"node_modules/stream-browserify/node_modules/readable-stream/errors-browser.js"(Y,H){function h(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a}var x={};function A(i,a,o){o||(o=Error);function n(c,f,p){return typeof a=="string"?a:a(c,f,p)}var s=function(c){h(f,c);function f(p,v,T){return c.call(this,n(p,v,T))||this}return f}(o);s.prototype.name=o.name,s.prototype.code=i,x[i]=s}function E(i,a){if(Array.isArray(i)){var o=i.length;return i=i.map(function(n){return String(n)}),o>2?"one of ".concat(a," ").concat(i.slice(0,o-1).join(", "),", or ")+i[o-1]:o===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function e(i,a,o){return i.substr(0,a.length)===a}function t(i,a,o){return(o===void 0||o>i.length)&&(o=i.length),i.substring(o-a.length,o)===a}function r(i,a,o){return typeof o!="number"&&(o=0),o+a.length>i.length?!1:i.indexOf(a,o)!==-1}A("ERR_INVALID_OPT_VALUE",function(i,a){return'The value "'+a+'" is invalid for option "'+i+'"'},TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,o){var n;typeof a=="string"&&e(a,"not ")?(n="must not be",a=a.replace(/^not /,"")):n="must be";var s;if(t(i," argument"))s="The ".concat(i," ").concat(n," ").concat(E(a,"type"));else{var c=r(i,".")?"property":"argument";s='The "'.concat(i,'" ').concat(c," ").concat(n," ").concat(E(a,"type"))}return s+=". Received type ".concat(typeof o),s},TypeError),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),A("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),A("ERR_STREAM_PREMATURE_CLOSE","Premature close"),A("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),A("ERR_STREAM_WRITE_AFTER_END","write after end"),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),H.exports.codes=x}}),_2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/state.js"(Y,H){var h=Fp().codes.ERR_INVALID_OPT_VALUE;function x(E,e,t){return E.highWaterMark!=null?E.highWaterMark:e?E[t]:null}function A(E,e,t,r){var i=x(e,r,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=r?t:"highWaterMark";throw new h(a,i)}return Math.floor(i)}return E.objectMode?16:16*1024}H.exports={getHighWaterMark:A}}}),rC=He({"node_modules/util-deprecate/browser.js"(Y,H){H.exports=h;function h(A,E){if(x("noDeprecation"))return A;var e=!1;function t(){if(!e){if(x("throwDeprecation"))throw new Error(E);x("traceDeprecation")?console.trace(E):console.warn(E),e=!0}return A.apply(this,arguments)}return t}function x(A){try{if(!window.localStorage)return!1}catch{return!1}var E=window.localStorage[A];return E==null?!1:String(E).toLowerCase()==="true"}}}),x2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js"(Y,H){H.exports=d;function h(q){var J=this;this.next=null,this.entry=null,this.finish=function(){le(J,q)}}var x;d.WritableState=_;var A={deprecate:rC()},E=o2(),e=Dp().Buffer,t=window.Uint8Array||function(){};function r(q){return e.from(q)}function i(q){return e.isBuffer(q)||q instanceof t}var a=y2(),o=_2(),n=o.getHighWaterMark,s=Fp().codes,c=s.ERR_INVALID_ARG_TYPE,f=s.ERR_METHOD_NOT_IMPLEMENTED,p=s.ERR_MULTIPLE_CALLBACK,v=s.ERR_STREAM_CANNOT_PIPE,T=s.ERR_STREAM_DESTROYED,l=s.ERR_STREAM_NULL_VALUES,m=s.ERR_STREAM_WRITE_AFTER_END,w=s.ERR_UNKNOWN_ENCODING,S=a.errorOrDestroy;od()(d,E);function M(){}function _(q,J,ee){x=x||Op(),q=q||{},typeof ee!="boolean"&&(ee=J instanceof x),this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=n(this,q,"writableHighWaterMark",ee),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=q.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){B(J,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}_.prototype.getBuffer=function(){for(var J=this.bufferedRequest,ee=[];J;)ee.push(J),J=J.next;return ee},function(){try{Object.defineProperty(_.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var b;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(J){return b.call(this,J)?!0:this!==d?!1:J&&J._writableState instanceof _}})):b=function(J){return J instanceof this};function d(q){x=x||Op();var J=this instanceof x;if(!J&&!b.call(d,this))return new d(q);this._writableState=new _(q,this,J),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),E.call(this)}d.prototype.pipe=function(){S(this,new v)};function u(q,J){var ee=new m;S(q,ee),process.nextTick(J,ee)}function g(q,J,ee,Z){var se;return ee===null?se=new l:typeof ee!="string"&&!J.objectMode&&(se=new c("chunk",["string","Buffer"],ee)),se?(S(q,se),process.nextTick(Z,se),!1):!0}d.prototype.write=function(q,J,ee){var Z=this._writableState,se=!1,Q=!Z.objectMode&&i(q);return Q&&!e.isBuffer(q)&&(q=r(q)),typeof J=="function"&&(ee=J,J=null),Q?J="buffer":J||(J=Z.defaultEncoding),typeof ee!="function"&&(ee=M),Z.ending?u(this,ee):(Q||g(this,Z,q,ee))&&(Z.pendingcb++,se=R(this,Z,Q,q,J,ee)),se},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&N(this,q))},d.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=J.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((J+"").toLowerCase())>-1))throw new w(J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function y(q,J,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof J=="string"&&(J=e.from(J,ee)),J}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(q,J,ee,Z,se,Q){if(!ee){var V=y(J,Z,se);Z!==V&&(ee=!0,se="buffer",Z=V)}var re=J.objectMode?1:Z.length;J.length+=re;var ae=J.length>5===6?2:T>>4===14?3:T>>3===30?4:T>>6===2?-1:-2}function t(T,l,m){var w=l.length-1;if(w=0?(S>0&&(T.lastNeed=S-1),S):--w=0?(S>0&&(T.lastNeed=S-2),S):--w=0?(S>0&&(S===2?S=0:T.lastNeed=S-3),S):0))}function r(T,l,m){if((l[0]&192)!==128)return T.lastNeed=0,"�";if(T.lastNeed>1&&l.length>1){if((l[1]&192)!==128)return T.lastNeed=1,"�";if(T.lastNeed>2&&l.length>2&&(l[2]&192)!==128)return T.lastNeed=2,"�"}}function i(T){var l=this.lastTotal-this.lastNeed,m=r(this,T);if(m!==void 0)return m;if(this.lastNeed<=T.length)return T.copy(this.lastChar,l,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,l,0,T.length),this.lastNeed-=T.length}function a(T,l){var m=t(this,T,l);if(!this.lastNeed)return T.toString("utf8",l);this.lastTotal=m;var w=T.length-(m-this.lastNeed);return T.copy(this.lastChar,0,w),T.toString("utf8",l,w)}function o(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+"�":l}function n(T,l){if((T.length-l)%2===0){var m=T.toString("utf16le",l);if(m){var w=m.charCodeAt(m.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=T[T.length-1],T.toString("utf16le",l,T.length-1)}function s(T){var l=T&&T.length?this.write(T):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return l+this.lastChar.toString("utf16le",0,m)}return l}function c(T,l){var m=(T.length-l)%3;return m===0?T.toString("base64",l):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=T[T.length-1]:(this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1]),T.toString("base64",l,T.length-m))}function f(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+this.lastChar.toString("base64",0,3-this.lastNeed):l}function p(T){return T.toString(this.encoding)}function v(T){return T&&T.length?this.write(T):""}}}),i_=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(Y,H){var h=Fp().codes.ERR_STREAM_PREMATURE_CLOSE;function x(t){var r=!1;return function(){if(!r){r=!0;for(var i=arguments.length,a=new Array(i),o=0;o0)if(typeof V!="string"&&!xe.objectMode&&Object.getPrototypeOf(V)!==E.prototype&&(V=t(V)),ae)xe.endEmitted?M(Q,new l):y(Q,xe,V,!0);else if(xe.ended)M(Q,new v);else{if(xe.destroyed)return!1;xe.reading=!1,xe.decoder&&!re?(V=xe.decoder.write(V),xe.objectMode||V.length!==0?y(Q,xe,V,!1):N(Q,xe)):y(Q,xe,V,!1)}else ae||(xe.reading=!1,N(Q,xe))}return!xe.ended&&(xe.length=I?Q=I:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function F(Q,V){return Q<=0||V.length===0&&V.ended?0:V.objectMode?1:Q!==Q?V.flowing&&V.length?V.buffer.head.data.length:V.length:(Q>V.highWaterMark&&(V.highWaterMark=z(Q)),Q<=V.length?Q:V.ended?V.length:(V.needReadable=!0,0))}u.prototype.read=function(Q){a("read",Q),Q=parseInt(Q,10);var V=this._readableState,re=Q;if(Q!==0&&(V.emittedReadable=!1),Q===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return a("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?ee(this):O(this),null;if(Q=F(Q,V),Q===0&&V.ended)return V.length===0&&ee(this),null;var ae=V.needReadable;a("need readable",ae),(V.length===0||V.length-Q0?fe=J(Q,V):fe=null,fe===null?(V.needReadable=V.length<=V.highWaterMark,Q=0):(V.length-=Q,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),re!==Q&&V.ended&&ee(this)),fe!==null&&this.emit("data",fe),fe};function B(Q,V){if(a("onEofChunk"),!V.ended){if(V.decoder){var re=V.decoder.end();re&&re.length&&(V.buffer.push(re),V.length+=V.objectMode?1:re.length)}V.ended=!0,V.sync?O(Q):(V.needReadable=!1,V.emittedReadable||(V.emittedReadable=!0,P(Q)))}}function O(Q){var V=Q._readableState;a("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(a("emitReadable",V.flowing),V.emittedReadable=!0,process.nextTick(P,Q))}function P(Q){var V=Q._readableState;a("emitReadable_",V.destroyed,V.length,V.ended),!V.destroyed&&(V.length||V.ended)&&(Q.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,q(Q)}function N(Q,V){V.readingMore||(V.readingMore=!0,process.nextTick(U,Q,V))}function U(Q,V){for(;!V.reading&&!V.ended&&(V.length1&&se(ae.pipes,Q)!==-1)&&!je&&(a("false write response, pause",ae.awaitDrain),ae.awaitDrain++),re.pause())}function Je(he){a("onerror",he),we(),Q.removeListener("error",Je),x(Q,"error")===0&&M(Q,he)}b(Q,"error",Je);function Ze(){Q.removeListener("finish",Me),we()}Q.once("close",Ze);function Me(){a("onfinish"),Q.removeListener("close",Ze),we()}Q.once("finish",Me);function we(){a("unpipe"),re.unpipe(Q)}return Q.emit("pipe",re),ae.flowing||(a("pipe resume"),re.resume()),Q};function X(Q){return function(){var re=Q._readableState;a("pipeOnDrain",re.awaitDrain),re.awaitDrain&&re.awaitDrain--,re.awaitDrain===0&&x(Q,"data")&&(re.flowing=!0,q(Q))}}u.prototype.unpipe=function(Q){var V=this._readableState,re={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return Q&&Q!==V.pipes?this:(Q||(Q=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,Q&&Q.emit("unpipe",this,re),this);if(!Q){var ae=V.pipes,fe=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var xe=0;xe0,ae.flowing!==!1&&this.resume()):Q==="readable"&&!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,a("on readable",ae.length,ae.reading),ae.length?O(this):ae.reading||process.nextTick(ue,this)),re},u.prototype.addListener=u.prototype.on,u.prototype.removeListener=function(Q,V){var re=A.prototype.removeListener.call(this,Q,V);return Q==="readable"&&process.nextTick(te,this),re},u.prototype.removeAllListeners=function(Q){var V=A.prototype.removeAllListeners.apply(this,arguments);return(Q==="readable"||Q===void 0)&&process.nextTick(te,this),V};function te(Q){var V=Q._readableState;V.readableListening=Q.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:Q.listenerCount("data")>0&&Q.resume()}function ue(Q){a("readable nexttick read 0"),Q.read(0)}u.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(a("resume"),Q.flowing=!Q.readableListening,ie(this,Q)),Q.paused=!1,this};function ie(Q,V){V.resumeScheduled||(V.resumeScheduled=!0,process.nextTick(le,Q,V))}function le(Q,V){a("resume",V.reading),V.reading||Q.read(0),V.resumeScheduled=!1,Q.emit("resume"),q(Q),V.flowing&&!V.reading&&Q.read(0)}u.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(Q){var V=Q._readableState;for(a("flow",V.flowing);V.flowing&&Q.read()!==null;);}u.prototype.wrap=function(Q){var V=this,re=this._readableState,ae=!1;Q.on("end",function(){if(a("wrapped end"),re.decoder&&!re.ended){var Ae=re.decoder.end();Ae&&Ae.length&&V.push(Ae)}V.push(null)}),Q.on("data",function(Ae){if(a("wrapped data"),re.decoder&&(Ae=re.decoder.write(Ae)),!(re.objectMode&&Ae==null)&&!(!re.objectMode&&(!Ae||!Ae.length))){var Pe=V.push(Ae);Pe||(ae=!0,Q.pause())}});for(var fe in Q)this[fe]===void 0&&typeof Q[fe]=="function"&&(this[fe]=function(Pe){return function(){return Q[Pe].apply(Q,arguments)}}(fe));for(var xe=0;xe<_.length;xe++)Q.on(_[xe],this.emit.bind(this,_[xe]));return this._read=function(Ae){a("wrapped _read",Ae),ae&&(ae=!1,Q.resume())},this},typeof Symbol=="function"&&(u.prototype[Symbol.asyncIterator]=function(){return w===void 0&&(w=nC()),w(this)}),Object.defineProperty(u.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(u.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(u.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(V){this._readableState&&(this._readableState.flowing=V)}}),u._fromList=J,Object.defineProperty(u.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function J(Q,V){if(V.length===0)return null;var re;return V.objectMode?re=V.buffer.shift():!Q||Q>=V.length?(V.decoder?re=V.buffer.join(""):V.buffer.length===1?re=V.buffer.first():re=V.buffer.concat(V.length),V.buffer.clear()):re=V.buffer.consume(Q,V.decoder),re}function ee(Q){var V=Q._readableState;a("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,process.nextTick(Z,V,Q))}function Z(Q,V){if(a("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,V.readable=!1,V.emit("end"),Q.autoDestroy)){var re=V._writableState;(!re||re.autoDestroy&&re.finished)&&V.destroy()}}typeof Symbol=="function"&&(u.from=function(Q,V){return S===void 0&&(S=iC()),S(u,Q,V)});function se(Q,V){for(var re=0,ae=Q.length;re0;return i(m,S,M,function(_){T||(T=_),_&&l.forEach(a),!S&&(l.forEach(a),v(T))})});return f.reduce(o)}H.exports=s}}),lC=He({"node_modules/stream-browserify/index.js"(Y,H){H.exports=A;var h=Sp().EventEmitter,x=od();x(A,h),A.Readable=w2(),A.Writable=x2(),A.Duplex=Op(),A.Transform=T2(),A.PassThrough=oC(),A.finished=i_(),A.pipeline=sC(),A.Stream=A;function A(){h.call(this)}A.prototype.pipe=function(E,e){var t=this;function r(f){E.writable&&E.write(f)===!1&&t.pause&&t.pause()}t.on("data",r);function i(){t.readable&&t.resume&&t.resume()}E.on("drain",i),!E._isStdio&&(!e||e.end!==!1)&&(t.on("end",o),t.on("close",n));var a=!1;function o(){a||(a=!0,E.end())}function n(){a||(a=!0,typeof E.destroy=="function"&&E.destroy())}function s(f){if(c(),h.listenerCount(this,"error")===0)throw f}t.on("error",s),E.on("error",s);function c(){t.removeListener("data",r),E.removeListener("drain",i),t.removeListener("end",o),t.removeListener("close",n),t.removeListener("error",s),E.removeListener("error",s),t.removeListener("end",c),t.removeListener("close",c),E.removeListener("close",c)}return t.on("end",c),t.on("close",c),E.on("close",c),E.emit("pipe",t),E}}}),ag=He({"node_modules/util/util.js"(Y){var H=Object.getOwnPropertyDescriptors||function(X){for(var te=Object.keys(X),ue={},ie=0;ie=ie)return J;switch(J){case"%s":return String(ue[te++]);case"%d":return Number(ue[te++]);case"%j":try{return JSON.stringify(ue[te++])}catch{return"[Circular]"}default:return J}}),q=ue[te];te"u")return function(){return Y.deprecate(U,X).apply(this,arguments)};var te=!1;function ue(){if(!te){if(process.throwDeprecation)throw new Error(X);process.traceDeprecation?console.trace(X):console.error(X),te=!0}return U.apply(this,arguments)}return ue};var x={},A=/^$/;E="false",E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),A=new RegExp("^"+E+"$","i");var E;Y.debuglog=function(U){if(U=U.toUpperCase(),!x[U])if(A.test(U)){var X=process.pid;x[U]=function(){var te=Y.format.apply(Y,arguments);console.error("%s %d: %s",U,X,te)}}else x[U]=function(){};return x[U]};function e(U,X){var te={seen:[],stylize:r};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),v(X)?te.showHidden=X:X&&Y._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=t),a(te,U,te.depth)}Y.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function t(U,X){var te=e.styles[X];return te?"\x1B["+e.colors[te][0]+"m"+U+"\x1B["+e.colors[te][1]+"m":U}function r(U,X){return U}function i(U){var X={};return U.forEach(function(te,ue){X[te]=!0}),X}function a(U,X,te){if(U.customInspect&&X&&g(X.inspect)&&X.inspect!==Y.inspect&&!(X.constructor&&X.constructor.prototype===X)){var ue=X.inspect(te,U);return w(ue)||(ue=a(U,ue,te)),ue}var ie=o(U,X);if(ie)return ie;var le=Object.keys(X),q=i(le);if(U.showHidden&&(le=Object.getOwnPropertyNames(X)),u(X)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return n(X);if(le.length===0){if(g(X)){var J=X.name?": "+X.name:"";return U.stylize("[Function"+J+"]","special")}if(_(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(d(X))return U.stylize(Date.prototype.toString.call(X),"date");if(u(X))return n(X)}var ee="",Z=!1,se=["{","}"];if(p(X)&&(Z=!0,se=["[","]"]),g(X)){var Q=X.name?": "+X.name:"";ee=" [Function"+Q+"]"}if(_(X)&&(ee=" "+RegExp.prototype.toString.call(X)),d(X)&&(ee=" "+Date.prototype.toUTCString.call(X)),u(X)&&(ee=" "+n(X)),le.length===0&&(!Z||X.length==0))return se[0]+ee+se[1];if(te<0)return _(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special");U.seen.push(X);var V;return Z?V=s(U,X,te,q,le):V=le.map(function(re){return c(U,X,te,q,re,Z)}),U.seen.pop(),f(V,ee,se)}function o(U,X){if(M(X))return U.stylize("undefined","undefined");if(w(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(te,"string")}if(m(X))return U.stylize(""+X,"number");if(v(X))return U.stylize(""+X,"boolean");if(T(X))return U.stylize("null","null")}function n(U){return"["+Error.prototype.toString.call(U)+"]"}function s(U,X,te,ue,ie){for(var le=[],q=0,J=X.length;q-1&&(le?J=J.split(` +`).map(function(Z){return" "+Z}).join(` +`).slice(2):J=` +`+J.split(` +`).map(function(Z){return" "+Z}).join(` +`))):J=U.stylize("[Circular]","special")),M(q)){if(le&&ie.match(/^\d+$/))return J;q=JSON.stringify(""+ie),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+J}function f(U,X,te){var ue=U.reduce(function(ie,le){return le.indexOf(` +`)>=0,ie+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?te[0]+(X===""?"":X+` + `)+" "+U.join(`, + `)+" "+te[1]:te[0]+X+" "+U.join(", ")+" "+te[1]}Y.types=p2();function p(U){return Array.isArray(U)}Y.isArray=p;function v(U){return typeof U=="boolean"}Y.isBoolean=v;function T(U){return U===null}Y.isNull=T;function l(U){return U==null}Y.isNullOrUndefined=l;function m(U){return typeof U=="number"}Y.isNumber=m;function w(U){return typeof U=="string"}Y.isString=w;function S(U){return typeof U=="symbol"}Y.isSymbol=S;function M(U){return U===void 0}Y.isUndefined=M;function _(U){return b(U)&&R(U)==="[object RegExp]"}Y.isRegExp=_,Y.types.isRegExp=_;function b(U){return typeof U=="object"&&U!==null}Y.isObject=b;function d(U){return b(U)&&R(U)==="[object Date]"}Y.isDate=d,Y.types.isDate=d;function u(U){return b(U)&&(R(U)==="[object Error]"||U instanceof Error)}Y.isError=u,Y.types.isNativeError=u;function g(U){return typeof U=="function"}Y.isFunction=g;function y(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U>"u"}Y.isPrimitive=y,Y.isBuffer=g2();function R(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var U=new Date,X=[I(U.getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":");return[U.getDate(),z[U.getMonth()],X].join(" ")}Y.log=function(){console.log("%s - %s",F(),Y.format.apply(Y,arguments))},Y.inherits=od(),Y._extend=function(U,X){if(!X||!b(X))return U;for(var te=Object.keys(X),ue=te.length;ue--;)U[te[ue]]=X[te[ue]];return U};function B(U,X){return Object.prototype.hasOwnProperty.call(U,X)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&X[O]){var te=X[O];if(typeof te!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(te,O,{value:te,enumerable:!1,writable:!1,configurable:!0}),te}function te(){for(var ue,ie,le=new Promise(function(ee,Z){ue=ee,ie=Z}),q=[],J=0;J"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(m){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},o(m)}var n={},s,c;function f(m,w,S){S||(S=Error);function M(b,d,u){return typeof w=="string"?w:w(b,d,u)}var _=function(b){E(u,b);var d=t(u);function u(g,y,R){var I;return A(this,u),I=d.call(this,M(g,y,R)),I.code=m,I}return x(u)}(S);n[m]=_}function p(m,w){if(Array.isArray(m)){var S=m.length;return m=m.map(function(M){return String(M)}),S>2?"one of ".concat(w," ").concat(m.slice(0,S-1).join(", "),", or ")+m[S-1]:S===2?"one of ".concat(w," ").concat(m[0]," or ").concat(m[1]):"of ".concat(w," ").concat(m[0])}else return"of ".concat(w," ").concat(String(m))}function v(m,w,S){return m.substr(0,w.length)===w}function T(m,w,S){return(S===void 0||S>m.length)&&(S=m.length),m.substring(S-w.length,S)===w}function l(m,w,S){return typeof S!="number"&&(S=0),S+w.length>m.length?!1:m.indexOf(w,S)!==-1}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(m,w,S){s===void 0&&(s=wm()),s(typeof m=="string","'name' must be a string");var M;typeof w=="string"&&v(w,"not ")?(M="must not be",w=w.replace(/^not /,"")):M="must be";var _;if(T(m," argument"))_="The ".concat(m," ").concat(M," ").concat(p(w,"type"));else{var b=l(m,".")?"property":"argument";_='The "'.concat(m,'" ').concat(b," ").concat(M," ").concat(p(w,"type"))}return _+=". Received type ".concat(h(S)),_},TypeError),f("ERR_INVALID_ARG_VALUE",function(m,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=ag());var M=c.inspect(w);return M.length>128&&(M="".concat(M.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(S,". Received ").concat(M)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(m,w,S){var M;return S&&S.constructor&&S.constructor.name?M="instance of ".concat(S.constructor.name):M="type ".concat(h(S)),"Expected ".concat(m,' to be returned from the "').concat(w,'"')+" function but got ".concat(M,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var m=arguments.length,w=new Array(m),S=0;S0,"At least one arg needs to be specified");var M="The ",_=w.length;switch(w=w.map(function(b){return'"'.concat(b,'"')}),_){case 1:M+="".concat(w[0]," argument");break;case 2:M+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:M+=w.slice(0,_-1).join(", "),M+=", and ".concat(w[_-1]," arguments");break}return"".concat(M," must be specified")},TypeError),H.exports.codes=n}}),uC=He({"node_modules/assert/build/internal/assert/assertion_error.js"(Y,H){function h(N,U){var X=Object.keys(N);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(N);U&&(te=te.filter(function(ue){return Object.getOwnPropertyDescriptor(N,ue).enumerable})),X.push.apply(X,te)}return X}function x(N){for(var U=1;U"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(N){return Function.toString.call(N).indexOf("[native code]")!==-1}function T(N,U){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,ue){return te.__proto__=ue,te},T(N,U)}function l(N){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},l(N)}function m(N){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},m(N)}var w=ag(),S=w.inspect,M=A2(),_=M.codes.ERR_INVALID_ARG_TYPE;function b(N,U,X){return(X===void 0||X>N.length)&&(X=N.length),N.substring(X-U.length,X)===U}function d(N,U){if(U=Math.floor(U),N.length==0||U==0)return"";var X=N.length*U;for(U=Math.floor(Math.log(U)/Math.log(2));U;)N+=N,U--;return N+=N.substring(0,X-N.length),N}var u="",g="",y="",R="",I={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},z=10;function F(N){var U=Object.keys(N),X=Object.create(Object.getPrototypeOf(N));return U.forEach(function(te){X[te]=N[te]}),Object.defineProperty(X,"message",{value:N.message}),X}function B(N){return S(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O(N,U,X){var te="",ue="",ie=0,le="",q=!1,J=B(N),ee=J.split(` +`),Z=B(U).split(` +`),se=0,Q="";if(X==="strictEqual"&&m(N)==="object"&&m(U)==="object"&&N!==null&&U!==null&&(X="strictEqualObject"),ee.length===1&&Z.length===1&&ee[0]!==Z[0]){var V=ee[0].length+Z[0].length;if(V<=z){if((m(N)!=="object"||N===null)&&(m(U)!=="object"||U===null)&&(N!==0||U!==0))return"".concat(I[X],` + +`)+"".concat(ee[0]," !== ").concat(Z[0],` +`)}else if(X!=="strictEqualObject"){var re=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(V2&&(Q=` + `.concat(d(" ",se),"^"),se=0)}}}for(var ae=ee[ee.length-1],fe=Z[Z.length-1];ae===fe&&(se++<2?le=` + `.concat(ae).concat(le):te=ae,ee.pop(),Z.pop(),!(ee.length===0||Z.length===0));)ae=ee[ee.length-1],fe=Z[Z.length-1];var xe=Math.max(ee.length,Z.length);if(xe===0){var Ae=J.split(` +`);if(Ae.length>30)for(Ae[26]="".concat(u,"...").concat(R);Ae.length>27;)Ae.pop();return"".concat(I.notIdentical,` + +`).concat(Ae.join(` +`),` +`)}se>3&&(le=` +`.concat(u,"...").concat(R).concat(le),q=!0),te!==""&&(le=` + `.concat(te).concat(le),te="");var Pe=0,Ce=I[X]+` +`.concat(g,"+ actual").concat(R," ").concat(y,"- expected").concat(R),je=" ".concat(u,"...").concat(R," Lines skipped");for(se=0;se1&&se>2&&(at>4?(ue+=` +`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` + `.concat(Z[se-2]),Pe++),ue+=` + `.concat(Z[se-1]),Pe++),ie=se,te+=` +`.concat(y,"-").concat(R," ").concat(Z[se]),Pe++;else if(Z.length1&&se>2&&(at>4?(ue+=` +`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` + `.concat(ee[se-2]),Pe++),ue+=` + `.concat(ee[se-1]),Pe++),ie=se,ue+=` +`.concat(g,"+").concat(R," ").concat(ee[se]),Pe++;else{var tt=Z[se],Je=ee[se],Ze=Je!==tt&&(!b(Je,",")||Je.slice(0,-1)!==tt);Ze&&b(tt,",")&&tt.slice(0,-1)===Je&&(Ze=!1,Je+=","),Ze?(at>1&&se>2&&(at>4?(ue+=` +`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` + `.concat(ee[se-2]),Pe++),ue+=` + `.concat(ee[se-1]),Pe++),ie=se,ue+=` +`.concat(g,"+").concat(R," ").concat(Je),te+=` +`.concat(y,"-").concat(R," ").concat(tt),Pe+=2):(ue+=te,te="",(at===1||se===0)&&(ue+=` + `.concat(Je),Pe++))}if(Pe>20&&se30)for(V[26]="".concat(u,"...").concat(R);V.length>27;)V.pop();V.length===1?ie=X.call(this,"".concat(Q," ").concat(V[0])):ie=X.call(this,"".concat(Q,` + +`).concat(V.join(` +`),` +`))}else{var re=B(ee),ae="",fe=I[q];q==="notDeepEqual"||q==="notEqual"?(re="".concat(I[q],` + +`).concat(re),re.length>1024&&(re="".concat(re.slice(0,1021),"..."))):(ae="".concat(B(Z)),re.length>512&&(re="".concat(re.slice(0,509),"...")),ae.length>512&&(ae="".concat(ae.slice(0,509),"...")),q==="deepEqual"||q==="equal"?re="".concat(fe,` + +`).concat(re,` + +should equal + +`):ae=" ".concat(q," ").concat(ae)),ie=X.call(this,"".concat(re).concat(ae))}return Error.stackTraceLimit=se,ie.generatedMessage=!le,Object.defineProperty(s(ie),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),ie.code="ERR_ASSERTION",ie.actual=ee,ie.expected=Z,ie.operator=q,Error.captureStackTrace&&Error.captureStackTrace(s(ie),J),ie.stack,ie.name="AssertionError",n(ie)}return t(te,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:U,value:function(ie,le){return S(this,x(x({},le),{},{customInspect:!1,depth:0}))}}]),te}(c(Error),S.custom);H.exports=P}}),S2=He({"node_modules/object-keys/isArguments.js"(Y,H){var h=Object.prototype.toString;H.exports=function(A){var E=h.call(A),e=E==="[object Arguments]";return e||(e=E!=="[object Array]"&&A!==null&&typeof A=="object"&&typeof A.length=="number"&&A.length>=0&&h.call(A.callee)==="[object Function]"),e}}}),cC=He({"node_modules/object-keys/implementation.js"(Y,H){var h;Object.keys||(x=Object.prototype.hasOwnProperty,A=Object.prototype.toString,E=S2(),e=Object.prototype.propertyIsEnumerable,t=!e.call({toString:null},"toString"),r=e.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(c){var f=c.constructor;return f&&f.prototype===c},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},n=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!o["$"+c]&&x.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{a(window[c])}catch{return!0}}catch{return!0}return!1}(),s=function(c){if(typeof window>"u"||!n)return a(c);try{return a(c)}catch{return!1}},h=function(f){var p=f!==null&&typeof f=="object",v=A.call(f)==="[object Function]",T=E(f),l=p&&A.call(f)==="[object String]",m=[];if(!p&&!v&&!T)throw new TypeError("Object.keys called on a non-object");var w=r&&v;if(l&&f.length>0&&!x.call(f,0))for(var S=0;S0)for(var M=0;M2?arguments[2]:{},f=h(s);x&&(f=E.call(f,Object.getOwnPropertySymbols(s)));for(var p=0;pZe.length)&&(Me=Ze.length);for(var we=0,he=new Array(Me);we10)return!0;for(var Me=0;Me57)return!0}return Ze.length===10&&Ze>=Math.pow(2,32)}function P(Ze){return Object.keys(Ze).filter(O).concat(s(Ze).filter(Object.prototype.propertyIsEnumerable.bind(Ze)))}function N(Ze,Me){if(Ze===Me)return 0;for(var we=Ze.length,he=Me.length,De=0,et=Math.min(we,he);De1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee0)return t(o);if(s==="number"&&isNaN(o)===!1)return n.long?i(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function t(o){if(o=String(o),!(o.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(n){var s=parseFloat(n[1]),c=(n[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*e;case"days":case"day":case"d":return s*E;case"hours":case"hour":case"hrs":case"hr":case"h":return s*A;case"minutes":case"minute":case"mins":case"min":case"m":return s*x;case"seconds":case"second":case"secs":case"sec":case"s":return s*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function r(o){return o>=E?Math.round(o/E)+"d":o>=A?Math.round(o/A)+"h":o>=x?Math.round(o/x)+"m":o>=h?Math.round(o/h)+"s":o+"ms"}function i(o){return a(o,E,"day")||a(o,A,"hour")||a(o,x,"minute")||a(o,h,"second")||o+" ms"}function a(o,n,s){if(!(o=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Y.formatters.j=function(r){try{return JSON.stringify(r)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}};function x(r){var i=this.useColors;if(r[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+r[0]+(i?"%c ":" ")+"+"+Y.humanize(this.diff),!!i){var a="color: "+this.color;r.splice(1,0,a,"color: inherit");var o=0,n=0;r[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(o++,s==="%c"&&(n=o))}),r.splice(n,0,a)}}function A(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function E(r){try{r==null?Y.storage.removeItem("debug"):Y.storage.debug=r}catch{}}function e(){var r;try{r=Y.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=process.env.DEBUG),r}Y.enable(e());function t(){try{return window.localStorage}catch{}}}}),bC=He({"node_modules/stream-parser/index.js"(Y,H){var h=wm(),x=xC()("stream-parser");H.exports=r;var A=-1,E=0,e=1,t=2;function r(l){var m=l&&typeof l._transform=="function",w=l&&typeof l._write=="function";if(!m&&!w)throw new Error("must pass a Writable or Transform stream in");x("extending Parser into stream"),l._bytes=a,l._skipBytes=o,m&&(l._passthrough=n),m?l._transform=c:l._write=s}function i(l){x("initializing parser stream"),l._parserBytesLeft=0,l._parserBuffers=[],l._parserBuffered=0,l._parserState=A,l._parserCallback=null,typeof l.push=="function"&&(l._parserOutput=l.push.bind(l)),l._parserInit=!0}function a(l,m){h(!this._parserCallback,'there is already a "callback" set!'),h(isFinite(l)&&l>0,'can only buffer a finite number of bytes > 0, got "'+l+'"'),this._parserInit||i(this),x("buffering %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=E}function o(l,m){h(!this._parserCallback,'there is already a "callback" set!'),h(l>0,'can only skip > 0 bytes, got "'+l+'"'),this._parserInit||i(this),x("skipping %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=e}function n(l,m){h(!this._parserCallback,'There is already a "callback" set!'),h(l>0,'can only pass through > 0 bytes, got "'+l+'"'),this._parserInit||i(this),x("passing through %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=t}function s(l,m,w){this._parserInit||i(this),x("write(%o bytes)",l.length),typeof m=="function"&&(w=m),v(this,l,null,w)}function c(l,m,w){this._parserInit||i(this),x("transform(%o bytes)",l.length),typeof m!="function"&&(m=this._parserOutput),v(this,l,m,w)}function f(l,m,w,S){return l._parserBytesLeft<=0?S(new Error("got data but not currently parsing anything")):m.length<=l._parserBytesLeft?function(){return p(l,m,w,S)}:function(){var M=m.slice(0,l._parserBytesLeft);return p(l,M,w,function(_){if(_)return S(_);if(m.length>M.length)return function(){return f(l,m.slice(M.length),w,S)}})}}function p(l,m,w,S){if(l._parserBytesLeft-=m.length,x("%o bytes left for stream piece",l._parserBytesLeft),l._parserState===E?(l._parserBuffers.push(m),l._parserBuffered+=m.length):l._parserState===t&&w(m),l._parserBytesLeft===0){var M=l._parserCallback;if(M&&l._parserState===E&&l._parserBuffers.length>1&&(m=Buffer.concat(l._parserBuffers,l._parserBuffered)),l._parserState!==E&&(m=null),l._parserCallback=null,l._parserBuffered=0,l._parserState=A,l._parserBuffers.splice(0),M){var _=[];m&&_.push(m),w&&_.push(w);var b=M.length>_.length;b&&_.push(T(S));var d=M.apply(l,_);if(!b||S===d)return S}}else return S}var v=T(f);function T(l){return function(){for(var m=l.apply(this,arguments);typeof m=="function";)m=m();return m}}}}),ku=He({"node_modules/probe-image-size/lib/common.js"(Y){var H=lC().Transform,h=bC();function x(){H.call(this,{readableObjectMode:!0})}x.prototype=Object.create(H.prototype),x.prototype.constructor=x,h(x.prototype),Y.ParserStream=x,Y.sliceEq=function(E,e,t){for(var r=e,i=0;i>4&15,f=n[4]&15,p=n[5]>>4&15,v=h(n,6),T=8,l=0;lv.width||p.width===v.width&&p.height>v.height?p:v}),c=n.reduce(function(p,v){return p.height>v.height||p.height===v.height&&p.width>v.width?p:v}),f;return s.width>c.height||s.width===c.height&&s.height>c.width?f=s:f=c,f}H.exports.readSizeFromMeta=function(n){var s={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(a(n,s),!!s.sizes.length){var c=o(s.sizes),f=1;s.transforms.forEach(function(v){var T={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(v.type==="imir"&&(v.value===0?f=l[f]:(f=l[f],f=T[f],f=T[f])),v.type==="irot")for(var m=0;m0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,E)}},A.prototype.read_uint16=function(E){var e=this.input;if(E+2>e.length)throw h("unexpected EOF","EBADDATA");return this.big_endian?e[E]*256+e[E+1]:e[E]+e[E+1]*256},A.prototype.read_uint32=function(E){var e=this.input;if(E+4>e.length)throw h("unexpected EOF","EBADDATA");return this.big_endian?e[E]*16777216+e[E+1]*65536+e[E+2]*256+e[E+3]:e[E]+e[E+1]*256+e[E+2]*65536+e[E+3]*16777216},A.prototype.is_subifd_link=function(E,e){return E===0&&e===34665||E===0&&e===34853||E===34665&&e===40965},A.prototype.exif_format_length=function(E){switch(E){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},A.prototype.exif_format_read=function(E,e){var t;switch(E){case 1:case 2:return t=this.input[e],t;case 6:return t=this.input[e],t|(t&128)*33554430;case 3:return t=this.read_uint16(e),t;case 8:return t=this.read_uint16(e),t|(t&32768)*131070;case 4:return t=this.read_uint32(e),t;case 9:return t=this.read_uint32(e),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},A.prototype.scan_ifd=function(E,e,t){var r=this.read_uint16(e);e+=2;for(var i=0;ithis.input.length)throw h("unexpected EOF","EBADDATA");for(var v=[],T=f,l=0;l0&&(this.ifds_to_read.push({id:a,offset:v[0]}),p=!0);var w={is_big_endian:this.big_endian,ifd:E,tag:a,format:o,count:n,entry_offset:e+this.start,data_length:c,data_offset:f+this.start,value:v,is_subifd_link:p};if(t(w)===!1){this.aborted=!0;return}e+=12}E===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},H.exports.ExifParser=A,H.exports.get_orientation=function(E){var e=0;try{return new A(E,0,E.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return e=t.value[0],!1}),e}catch{return-1}}}}),TC=He({"node_modules/probe-image-size/lib/parse_sync/avif.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=wC(),e=s_(),t=h("ftyp");H.exports=function(r){if(x(r,4,t)){var i=E.unbox(r,0);if(i){var a=E.getMimeType(i.data);if(a){for(var o,n=i.end;;){var s=E.unbox(r,n);if(!s)break;if(n=s.end,s.boxtype==="mdat")return;if(s.boxtype==="meta"){o=s.data;break}}if(o){var c=E.readSizeFromMeta(o);if(c){var f={width:c.width,height:c.height,type:a.type,mime:a.mime,wUnits:"px",hUnits:"px"};if(c.variants.length>1&&(f.variants=c.variants),c.orientation&&(f.orientation=c.orientation),c.exif_location&&c.exif_location.offset+c.exif_location.length<=r.length){var p=A(r,c.exif_location.offset),v=r.slice(c.exif_location.offset+p+4,c.exif_location.offset+c.exif_location.length),T=e.get_orientation(v);T>0&&(f.orientation=T)}return f}}}}}}}}),AC=He({"node_modules/probe-image-size/lib/parse_sync/bmp.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt16LE,E=h("BM");H.exports=function(e){if(!(e.length<26)&&x(e,0,E))return{width:A(e,18),height:A(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}}),SC=He({"node_modules/probe-image-size/lib/parse_sync/gif.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt16LE,E=h("GIF87a"),e=h("GIF89a");H.exports=function(t){if(!(t.length<10)&&!(!x(t,0,E)&&!x(t,0,e)))return{width:A(t,6),height:A(t,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}}}),MC=He({"node_modules/probe-image-size/lib/parse_sync/ico.js"(Y,H){var h=ku().readUInt16LE,x=0,A=1,E=16;H.exports=function(e){var t=h(e,0),r=h(e,2),i=h(e,4);if(!(t!==x||r!==A||!i)){for(var a=[],o={width:0,height:0},n=0;no.width||c>o.height)&&(o=f)}return{width:o.width,height:o.height,variants:a,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}}}),EC=He({"node_modules/probe-image-size/lib/parse_sync/jpeg.js"(Y,H){var h=ku().readUInt16BE,x=ku().str2arr,A=ku().sliceEq,E=s_(),e=x("Exif\0\0");H.exports=function(t){if(!(t.length<2)&&!(t[0]!==255||t[1]!==216||t[2]!==255))for(var r=2;;){for(;;){if(t.length-r<2)return;if(t[r++]===255)break}for(var i=t[r++],a;i===255;)i=t[r++];if(208<=i&&i<=217||i===1)a=0;else if(192<=i&&i<=254){if(t.length-r<2)return;a=h(t,r)-2,r+=2}else return;if(i===217||i===218)return;var o;if(i===225&&a>=10&&A(t,r,e)&&(o=E.get_orientation(t.slice(r+6,r+a))),a>=5&&192<=i&&i<=207&&i!==196&&i!==200&&i!==204){if(t.length-r0&&(n.orientation=o),n}r+=a}}}}),kC=He({"node_modules/probe-image-size/lib/parse_sync/png.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=h(`‰PNG\r + +`),e=h("IHDR");H.exports=function(t){if(!(t.length<24)&&x(t,0,E)&&x(t,12,e))return{width:A(t,16),height:A(t,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}}),CC=He({"node_modules/probe-image-size/lib/parse_sync/psd.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=h("8BPS\0");H.exports=function(e){if(!(e.length<22)&&x(e,0,E))return{width:A(e,18),height:A(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}}),LC=He({"node_modules/probe-image-size/lib/parse_sync/svg.js"(Y,H){function h(s){return s===32||s===9||s===13||s===10}function x(s){return typeof s=="number"&&isFinite(s)&&s>0}function A(s){var c=0,f=s.length;for(s[0]===239&&s[1]===187&&s[2]===191&&(c=3);c]*>/,e=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,t=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,i=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,a=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(s){var c=s.match(t),f=s.match(r),p=s.match(i);return{width:c&&(c[1]||c[2]),height:f&&(f[1]||f[2]),viewbox:p&&(p[1]||p[2])}}function n(s){return a.test(s)?s.match(a)[0]:"px"}H.exports=function(s){if(A(s)){for(var c="",f=0;f>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(n,s){return{width:(n[s+6]<<16|n[s+5]<<8|n[s+4])+1,height:(n[s+9]<n.length)){for(;s+8=10?c=c||i(n,s+8):v==="VP8L"&&T>=9?c=c||a(n,s+8):v==="VP8X"&&T>=10?c=c||o(n,s+8):v==="EXIF"&&(f=e.get_orientation(n.slice(s+8,s+8+T)),s=1/0),s+=8+T}if(c)return f>0&&(c.orientation=f),c}}}}}),RC=He({"node_modules/probe-image-size/lib/parsers_sync.js"(Y,H){H.exports={avif:TC(),bmp:AC(),gif:SC(),ico:MC(),jpeg:EC(),png:kC(),psd:CC(),svg:LC(),tiff:PC(),webp:IC()}}}),DC=He({"node_modules/probe-image-size/sync.js"(Y,H){var h=RC();function x(A){for(var E=Object.keys(h),e=0;e0;)R=c.c2p(M+B*u),B--;for(B=0;z===void 0&&B0;)F=f.c2p(_+B*g),B--;if(Rq[0];if(J||ee){var Z=y+P/2,se=z+N/2;ie+="transform:"+A(Z+"px",se+"px")+"scale("+(J?-1:1)+","+(ee?-1:1)+")"+A(-Z+"px",-se+"px")+";"}}ue.attr("style",ie);var Q=new Promise(function(V){if(m._hasZ)V();else if(m._hasSource)if(m._canvas&&m._canvas.el.width===b&&m._canvas.el.height===d&&m._canvas.source===m.source)V();else{var re=document.createElement("canvas");re.width=b,re.height=d;var ae=re.getContext("2d",{willReadFrequently:!0});m._image=m._image||new Image;var fe=m._image;fe.onload=function(){ae.drawImage(fe,0,0),m._canvas={el:re,source:m.source},V()},fe.setAttribute("src",m.source)}}).then(function(){var V,re;if(m._hasZ)re=te(function(xe,Ae){var Pe=S[Ae][xe];return x.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),V=re.toDataURL("image/png");else if(m._hasSource)if(w)V=m.source;else{var ae=m._canvas.el.getContext("2d",{willReadFrequently:!0}),fe=ae.getImageData(0,0,b,d).data;re=te(function(xe,Ae){var Pe=4*(Ae*b+xe);return[fe[Pe],fe[Pe+1],fe[Pe+2],fe[Pe+3]]}),V=re.toDataURL("image/png")}ue.attr({"xlink:href":V,height:N,width:P,x:y,y:z})});a._promises.push(Q)})}}}),BC=He({"src/traces/image/style.js"(Y,H){var h=yi();H.exports=function(A){h.select(A).selectAll(".im image").style("opacity",function(E){return E[0].trace.opacity})}}}),NC=He({"src/traces/image/hover.js"(Y,H){var h=xc(),x=Qr(),A=x.isArrayOrTypedArray,E=Q0();H.exports=function(t,r,i){var a=t.cd[0],o=a.trace,n=t.xa,s=t.ya;if(!(h.inbox(r-a.x0,r-(a.x0+a.w*o.dx),0)>0||h.inbox(i-a.y0,i-(a.y0+a.h*o.dy),0)>0)){var c=Math.floor((r-a.x0)/o.dx),f=Math.floor(Math.abs(i-a.y0)/o.dy),p;if(o._hasZ?p=a.z[f][c]:o._hasSource&&(p=o._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(c,f,1,1).data),!!p){var v=a.hi||o.hoverinfo,T;if(v){var l=v.split("+");l.indexOf("all")!==-1&&(l=["color"]),l.indexOf("color")!==-1&&(T=!0)}var m=E.colormodel[o.colormodel],w=m.colormodel||o.colormodel,S=w.length,M=o._scaler(p),_=m.suffix,b=[];(o.hovertemplate||T)&&(b.push("["+[M[0]+_[0],M[1]+_[1],M[2]+_[2]].join(", ")),S===4&&b.push(", "+M[3]+_[3]),b.push("]"),b=b.join(""),t.extraText=w.toUpperCase()+": "+b);var d;A(o.hovertext)&&A(o.hovertext[f])?d=o.hovertext[f][c]:A(o.text)&&A(o.text[f])&&(d=o.text[f][c]);var u=s.c2p(a.y0+(f+.5)*o.dy),g=a.x0+(c+.5)*o.dx,y=a.y0+(f+.5)*o.dy,R="["+p.slice(0,o.colormodel.length).join(", ")+"]";return[x.extendFlat(t,{index:[f,c],x0:n.c2p(a.x0+c*o.dx),x1:n.c2p(a.x0+(c+1)*o.dx),y0:u,y1:u,color:M,xVal:g,xLabelVal:g,yVal:y,yLabelVal:y,zLabelVal:R,text:d,hovertemplateLabels:{zLabel:R,colorLabel:b,"color[0]Label":M[0]+_[0],"color[1]Label":M[1]+_[1],"color[2]Label":M[2]+_[2],"color[3]Label":M[3]+_[3]}})]}}}}}),UC=He({"src/traces/image/event_data.js"(Y,H){H.exports=function(x,A){return"xVal"in A&&(x.x=A.xVal),"yVal"in A&&(x.y=A.yVal),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x.color=A.color,x.colormodel=A.trace.colormodel,x.z||(x.z=A.color),x}}}),jC=He({"src/traces/image/index.js"(Y,H){H.exports={attributes:i2(),supplyDefaults:Tk(),calc:FC(),plot:OC(),style:BC(),hoverPoints:NC(),eventData:UC(),moduleType:"trace",name:"image",basePlotModule:cf(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}}}),VC=He({"lib/image.js"(Y,H){H.exports=jC()}}),Bp=He({"src/traces/pie/attributes.js"(Y,H){var h=Ll(),x=Ku().attributes,A=Mu(),E=mf(),e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=Po().extendFlat,i=Yf().pattern,a=A({editType:"plot",arrayOk:!0,colorEditType:"plot"});H.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:E.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:i,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:r({},h.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:e({},{keys:["label","color","value","percent","text"]}),texttemplate:t({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:r({},a,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:r({},a,{}),outsidetextfont:r({},a,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:r({},a,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:x({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}}}),Np=He({"src/traces/pie/defaults.js"(Y,H){var h=Vi(),x=Qr(),A=Bp(),E=Ku().defaults,e=Yh().handleText,t=Qr().coercePattern;function r(o,n){var s=x.isArrayOrTypedArray(o),c=x.isArrayOrTypedArray(n),f=Math.min(s?o.length:1/0,c?n.length:1/0);if(isFinite(f)||(f=0),f&&c){for(var p,v=0;v0){p=!0;break}}p||(f=0)}return{hasLabels:s,hasValues:c,len:f}}function i(o,n,s,c,f){var p=c("marker.line.width");p&&c("marker.line.color",f?void 0:s.paper_bgcolor);var v=c("marker.colors");t(c,"marker.pattern",v),o.marker&&!n.marker.pattern.fgcolor&&(n.marker.pattern.fgcolor=o.marker.colors),n.marker.pattern.bgcolor||(n.marker.pattern.bgcolor=s.paper_bgcolor)}function a(o,n,s,c){function f(y,R){return x.coerce(o,n,A,y,R)}var p=f("labels"),v=f("values"),T=r(p,v),l=T.len;if(n._hasLabels=T.hasLabels,n._hasValues=T.hasValues,!n._hasLabels&&n._hasValues&&(f("label0"),f("dlabel")),!l){n.visible=!1;return}n._length=l,i(o,n,c,f,!0),f("scalegroup");var m=f("text"),w=f("texttemplate"),S;if(w||(S=f("textinfo",x.isArrayOrTypedArray(m)?"text+percent":"percent")),f("hovertext"),f("hovertemplate"),w||S&&S!=="none"){var M=f("textposition");e(o,n,c,f,M,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var _=Array.isArray(M)||M==="auto",b=_||M==="outside";b&&f("automargin"),(M==="inside"||M==="auto"||Array.isArray(M))&&f("insidetextorientation")}else S==="none"&&f("textposition","none");E(n,c,f);var d=f("hole"),u=f("title.text");if(u){var g=f("title.position",d?"middle center":"top center");!d&&g==="middle center"&&(n.title.position="top center"),x.coerceFont(f,"title.font",c.font)}f("sort"),f("direction"),f("rotation"),f("pull")}H.exports={handleLabelsAndValues:r,handleMarkerDefaults:i,supplyDefaults:a}}}),l_=He({"src/traces/pie/layout_attributes.js"(Y,H){H.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),qC=He({"src/traces/pie/layout_defaults.js"(Y,H){var h=Qr(),x=l_();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("hiddenlabels"),t("piecolorway",e.colorway),t("extendpiecolors")}}}),ng=He({"src/traces/pie/calc.js"(Y,H){var h=Vi(),x=Uf(),A=zi(),E={};function e(a,o){var n=[],s=a._fullLayout,c=s.hiddenlabels||[],f=o.labels,p=o.marker.colors||[],v=o.values,T=o._length,l=o._hasValues&&T,m,w;if(o.dlabel)for(f=new Array(T),m=0;m=0});var R=o.type==="funnelarea"?b:o.sort;return R&&n.sort(function(I,z){return z.v-I.v}),n[0]&&(n[0].vTotal=_),n}function t(a){return function(n,s){return!n||(n=x(n),!n.isValid())?!1:(n=A.addOpacity(n,n.getAlpha()),a[s]||(a[s]=n),n)}}function r(a,o){var n=(o||{}).type;n||(n="pie");var s=a._fullLayout,c=a.calcdata,f=s[n+"colorway"],p=s["_"+n+"colormap"];s["extend"+n+"colors"]&&(f=i(f,E));for(var v=0,T=0;T0&&(et+=kt*he.pxmid[0],nt+=kt*he.pxmid[1])}he.cxFinal=et,he.cyFinal=nt;function Ut(yt,Fe,We,Oe){var de=Oe*(Fe[0]-yt[0]),me=Oe*(Fe[1]-yt[1]);return"a"+Oe*fe.r+","+Oe*fe.r+" 0 "+he.largeArc+(We?" 1 ":" 0 ")+de+","+me}var Yt=xe.hole;if(he.v===fe.vTotal){var vr="M"+(et+he.px0[0])+","+(nt+he.px0[1])+Ut(he.px0,he.pxmid,!0,1)+Ut(he.pxmid,he.px0,!0,1)+"Z";Yt?Et.attr("d","M"+(et+Yt*he.px0[0])+","+(nt+Yt*he.px0[1])+Ut(he.px0,he.pxmid,!1,Yt)+Ut(he.pxmid,he.px0,!1,Yt)+"Z"+vr):Et.attr("d",vr)}else{var hr=Ut(he.px0,he.px1,!0,1);if(Yt){var Rr=1-Yt;Et.attr("d","M"+(et+Yt*he.px1[0])+","+(nt+Yt*he.px1[1])+Ut(he.px1,he.px0,!1,Yt)+"l"+Rr*he.px0[0]+","+Rr*he.px0[1]+hr+"Z")}else Et.attr("d","M"+et+","+nt+"l"+he.px0[0]+","+he.px0[1]+hr+"Z")}le(J,he,fe);var dr=f.castOption(xe.textposition,he.pts),wr=Ke.selectAll("g.slicetext").data(he.text&&dr!=="none"?[0]:[]);wr.enter().append("g").classed("slicetext",!0),wr.exit().remove(),wr.each(function(){var yt=t.ensureSingle(h.select(this),"text","",function(Xe){Xe.attr("data-notex",1)}),Fe=t.ensureUniformFontSize(J,dr==="outside"?w(xe,he,se.font):S(xe,he,se.font));yt.text(he.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(e.font,Fe).call(a.convertToTspans,J);var We=e.bBox(yt.node()),Oe;if(dr==="outside")Oe=z(We,he);else if(Oe=_(We,he,fe),dr==="auto"&&Oe.scale<1){var de=t.ensureUniformFontSize(J,xe.outsidetextfont);yt.call(e.font,de),We=e.bBox(yt.node()),Oe=z(We,he)}var me=Oe.textPosAngle,be=me===void 0?he.pxmid:ie(fe.r,me);if(Oe.targetX=et+be[0]*Oe.rCenter+(Oe.x||0),Oe.targetY=nt+be[1]*Oe.rCenter+(Oe.y||0),q(Oe,We),Oe.outside){var Ie=Oe.targetY;he.yLabelMin=Ie-We.height/2,he.yLabelMid=Ie,he.yLabelMax=Ie+We.height/2,he.labelExtraX=0,he.labelExtraY=0,Ce=!0}Oe.fontSize=Fe.size,n(xe.type,Oe,se),re[De].transform=Oe,t.setTransormAndDisplay(yt,Oe)})});var je=h.select(this).selectAll("g.titletext").data(xe.title.text?[0]:[]);if(je.enter().append("g").classed("titletext",!0),je.exit().remove(),je.each(function(){var he=t.ensureSingle(h.select(this),"text","",function(nt){nt.attr("data-notex",1)}),De=xe.title.text;xe._meta&&(De=t.templateString(De,xe._meta)),he.text(De).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(e.font,xe.title.font).call(a.convertToTspans,J);var et;xe.title.position==="middle center"?et=F(fe):et=B(fe,Q),he.attr("transform",i(et.x,et.y)+r(Math.min(1,et.scale))+i(et.tx,et.ty))}),Ce&&U(Pe,xe),l(Ae,xe),Ce&&xe.automargin){var at=e.bBox(ae.node()),tt=xe.domain,Je=Q.w*(tt.x[1]-tt.x[0]),Ze=Q.h*(tt.y[1]-tt.y[0]),Me=(.5*Je-fe.r)/Q.w,we=(.5*Ze-fe.r)/Q.h;x.autoMargin(J,"pie."+xe.uid+".automargin",{xl:tt.x[0]-Me,xr:tt.x[1]+Me,yb:tt.y[0]-we,yt:tt.y[1]+we,l:Math.max(fe.cx-fe.r-at.left,0),r:Math.max(at.right-(fe.cx+fe.r),0),b:Math.max(at.bottom-(fe.cy+fe.r),0),t:Math.max(fe.cy-fe.r-at.top,0),pad:5})}})});setTimeout(function(){V.selectAll("tspan").each(function(){var re=h.select(this);re.attr("dy")&&re.attr("dy",re.attr("dy"))})},0)}function l(J,ee){J.each(function(Z){var se=h.select(this);if(!Z.labelExtraX&&!Z.labelExtraY){se.select("path.textline").remove();return}var Q=se.select("g.slicetext text");Z.transform.targetX+=Z.labelExtraX,Z.transform.targetY+=Z.labelExtraY,t.setTransormAndDisplay(Q,Z.transform);var V=Z.cxFinal+Z.pxmid[0],re=Z.cyFinal+Z.pxmid[1],ae="M"+V+","+re,fe=(Z.yLabelMax-Z.yLabelMin)*(Z.pxmid[0]<0?-1:1)/4;if(Z.labelExtraX){var xe=Z.labelExtraX*Z.pxmid[1]/Z.pxmid[0],Ae=Z.yLabelMid+Z.labelExtraY-(Z.cyFinal+Z.pxmid[1]);Math.abs(xe)>Math.abs(Ae)?ae+="l"+Ae*Z.pxmid[0]/Z.pxmid[1]+","+Ae+"H"+(V+Z.labelExtraX+fe):ae+="l"+Z.labelExtraX+","+xe+"v"+(Ae-xe)+"h"+fe}else ae+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+fe;t.ensureSingle(se,"path","textline").call(E.stroke,ee.outsidetextfont.color).attr({"stroke-width":Math.min(2,ee.outsidetextfont.size/8),d:ae,fill:"none"})})}function m(J,ee,Z){var se=Z[0],Q=se.cx,V=se.cy,re=se.trace,ae=re.type==="funnelarea";"_hasHoverLabel"in re||(re._hasHoverLabel=!1),"_hasHoverEvent"in re||(re._hasHoverEvent=!1),J.on("mouseover",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index];if(!(ee._dragging||xe.hovermode===!1)){var Pe=Ae.hoverinfo;if(Array.isArray(Pe)&&(Pe=A.castHoverinfo({hoverinfo:[f.castOption(Pe,fe.pts)],_module:re._module},xe,0)),Pe==="all"&&(Pe="label+text+value+percent+name"),Ae.hovertemplate||Pe!=="none"&&Pe!=="skip"&&Pe){var Ce=fe.rInscribed||0,je=Q+fe.pxmid[0]*(1-Ce),at=V+fe.pxmid[1]*(1-Ce),tt=xe.separators,Je=[];if(Pe&&Pe.indexOf("label")!==-1&&Je.push(fe.label),fe.text=f.castOption(Ae.hovertext||Ae.text,fe.pts),Pe&&Pe.indexOf("text")!==-1){var Ze=fe.text;t.isValidTextValue(Ze)&&Je.push(Ze)}fe.value=fe.v,fe.valueLabel=f.formatPieValue(fe.v,tt),Pe&&Pe.indexOf("value")!==-1&&Je.push(fe.valueLabel),fe.percent=fe.v/se.vTotal,fe.percentLabel=f.formatPiePercent(fe.percent,tt),Pe&&Pe.indexOf("percent")!==-1&&Je.push(fe.percentLabel);var Me=Ae.hoverlabel,we=Me.font,he=[];A.loneHover({trace:re,x0:je-Ce*se.r,x1:je+Ce*se.r,y:at,_x0:ae?Q+fe.TL[0]:je-Ce*se.r,_x1:ae?Q+fe.TR[0]:je+Ce*se.r,_y0:ae?V+fe.TL[1]:at-Ce*se.r,_y1:ae?V+fe.BL[1]:at+Ce*se.r,text:Je.join("
"),name:Ae.hovertemplate||Pe.indexOf("name")!==-1?Ae.name:void 0,idealAlign:fe.pxmid[0]<0?"left":"right",color:f.castOption(Me.bgcolor,fe.pts)||fe.color,borderColor:f.castOption(Me.bordercolor,fe.pts),fontFamily:f.castOption(we.family,fe.pts),fontSize:f.castOption(we.size,fe.pts),fontColor:f.castOption(we.color,fe.pts),nameLength:f.castOption(Me.namelength,fe.pts),textAlign:f.castOption(Me.align,fe.pts),hovertemplate:f.castOption(Ae.hovertemplate,fe.pts),hovertemplateLabels:fe,eventData:[p(fe,Ae)]},{container:xe._hoverlayer.node(),outerContainer:xe._paper.node(),gd:ee,inOut_bbox:he}),fe.bbox=he[0],re._hasHoverLabel=!0}re._hasHoverEvent=!0,ee.emit("plotly_hover",{points:[p(fe,Ae)],event:h.event})}}),J.on("mouseout",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index],Pe=h.select(this).datum();re._hasHoverEvent&&(fe.originalEvent=h.event,ee.emit("plotly_unhover",{points:[p(Pe,Ae)],event:h.event}),re._hasHoverEvent=!1),re._hasHoverLabel&&(A.loneUnhover(xe._hoverlayer.node()),re._hasHoverLabel=!1)}),J.on("click",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index];ee._dragging||xe.hovermode===!1||(ee._hoverdata=[p(fe,Ae)],A.click(ee,h.event))})}function w(J,ee,Z){var se=f.castOption(J.outsidetextfont.color,ee.pts)||f.castOption(J.textfont.color,ee.pts)||Z.color,Q=f.castOption(J.outsidetextfont.family,ee.pts)||f.castOption(J.textfont.family,ee.pts)||Z.family,V=f.castOption(J.outsidetextfont.size,ee.pts)||f.castOption(J.textfont.size,ee.pts)||Z.size,re=f.castOption(J.outsidetextfont.weight,ee.pts)||f.castOption(J.textfont.weight,ee.pts)||Z.weight,ae=f.castOption(J.outsidetextfont.style,ee.pts)||f.castOption(J.textfont.style,ee.pts)||Z.style,fe=f.castOption(J.outsidetextfont.variant,ee.pts)||f.castOption(J.textfont.variant,ee.pts)||Z.variant,xe=f.castOption(J.outsidetextfont.textcase,ee.pts)||f.castOption(J.textfont.textcase,ee.pts)||Z.textcase,Ae=f.castOption(J.outsidetextfont.lineposition,ee.pts)||f.castOption(J.textfont.lineposition,ee.pts)||Z.lineposition,Pe=f.castOption(J.outsidetextfont.shadow,ee.pts)||f.castOption(J.textfont.shadow,ee.pts)||Z.shadow;return{color:se,family:Q,size:V,weight:re,style:ae,variant:fe,textcase:xe,lineposition:Ae,shadow:Pe}}function S(J,ee,Z){var se=f.castOption(J.insidetextfont.color,ee.pts);!se&&J._input.textfont&&(se=f.castOption(J._input.textfont.color,ee.pts));var Q=f.castOption(J.insidetextfont.family,ee.pts)||f.castOption(J.textfont.family,ee.pts)||Z.family,V=f.castOption(J.insidetextfont.size,ee.pts)||f.castOption(J.textfont.size,ee.pts)||Z.size,re=f.castOption(J.insidetextfont.weight,ee.pts)||f.castOption(J.textfont.weight,ee.pts)||Z.weight,ae=f.castOption(J.insidetextfont.style,ee.pts)||f.castOption(J.textfont.style,ee.pts)||Z.style,fe=f.castOption(J.insidetextfont.variant,ee.pts)||f.castOption(J.textfont.variant,ee.pts)||Z.variant,xe=f.castOption(J.insidetextfont.textcase,ee.pts)||f.castOption(J.textfont.textcase,ee.pts)||Z.textcase,Ae=f.castOption(J.insidetextfont.lineposition,ee.pts)||f.castOption(J.textfont.lineposition,ee.pts)||Z.lineposition,Pe=f.castOption(J.insidetextfont.shadow,ee.pts)||f.castOption(J.textfont.shadow,ee.pts)||Z.shadow;return{color:se||E.contrast(ee.color),family:Q,size:V,weight:re,style:ae,variant:fe,textcase:xe,lineposition:Ae,shadow:Pe}}function M(J,ee){for(var Z,se,Q=0;Q=-4;Me-=2)Ze(Math.PI*Me,"tan");for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+1),"tan")}if(Pe||je){for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+1.5),"rad");for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+.5),"rad")}}if(ae||at||Pe){var we=Math.sqrt(J.width*J.width+J.height*J.height);if(Je={scale:Q*se*2/we,rCenter:1-Q,rotate:0},Je.textPosAngle=(ee.startangle+ee.stopangle)/2,Je.scale>=1)return Je;tt.push(Je)}(at||je)&&(Je=d(J,se,re,fe,xe),Je.textPosAngle=(ee.startangle+ee.stopangle)/2,tt.push(Je)),(at||Ce)&&(Je=u(J,se,re,fe,xe),Je.textPosAngle=(ee.startangle+ee.stopangle)/2,tt.push(Je));for(var he=0,De=0,et=0;et=1)break}return tt[he]}function b(J,ee){var Z=J.startangle,se=J.stopangle;return Z>ee&&ee>se||Z0?1:-1)/2,y:V/(1+Z*Z/(se*se)),outside:!0}}function F(J){var ee=Math.sqrt(J.titleBox.width*J.titleBox.width+J.titleBox.height*J.titleBox.height);return{x:J.cx,y:J.cy,scale:J.trace.hole*J.r*2/ee,tx:0,ty:-J.titleBox.height/2+J.trace.title.font.size}}function B(J,ee){var Z=1,se=1,Q,V=J.trace,re={x:J.cx,y:J.cy},ae={tx:0,ty:0};ae.ty+=V.title.font.size,Q=N(V),V.title.position.indexOf("top")!==-1?(re.y-=(1+Q)*J.r,ae.ty-=J.titleBox.height):V.title.position.indexOf("bottom")!==-1&&(re.y+=(1+Q)*J.r);var fe=O(J.r,J.trace.aspectratio),xe=ee.w*(V.domain.x[1]-V.domain.x[0])/2;return V.title.position.indexOf("left")!==-1?(xe=xe+fe,re.x-=(1+Q)*fe,ae.tx+=J.titleBox.width/2):V.title.position.indexOf("center")!==-1?xe*=2:V.title.position.indexOf("right")!==-1&&(xe=xe+fe,re.x+=(1+Q)*fe,ae.tx-=J.titleBox.width/2),Z=xe/J.titleBox.width,se=P(J,ee)/J.titleBox.height,{x:re.x,y:re.y,scale:Math.min(Z,se),tx:ae.tx,ty:ae.ty}}function O(J,ee){return J/(ee===void 0?1:ee)}function P(J,ee){var Z=J.trace,se=ee.h*(Z.domain.y[1]-Z.domain.y[0]);return Math.min(J.titleBox.height,se/2)}function N(J){var ee=J.pull;if(!ee)return 0;var Z;if(t.isArrayOrTypedArray(ee))for(ee=0,Z=0;Zee&&(ee=J.pull[Z]);return ee}function U(J,ee){var Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at;function tt(we,he){return we.pxmid[1]-he.pxmid[1]}function Je(we,he){return he.pxmid[1]-we.pxmid[1]}function Ze(we,he){he||(he={});var De=he.labelExtraY+(se?he.yLabelMax:he.yLabelMin),et=se?we.yLabelMin:we.yLabelMax,nt=se?we.yLabelMax:we.yLabelMin,Ke=we.cyFinal+re(we.px0[1],we.px1[1]),Et=De-et,kt,Ut,Yt,vr,hr,Rr;if(Et*fe>0&&(we.labelExtraY=Et),!!t.isArrayOrTypedArray(ee.pull))for(Ut=0;Ut=(f.castOption(ee.pull,Yt.pts)||0))&&((we.pxmid[1]-Yt.pxmid[1])*fe>0?(vr=Yt.cyFinal+re(Yt.px0[1],Yt.px1[1]),Et=vr-et-we.labelExtraY,Et*fe>0&&(we.labelExtraY+=Et)):(nt+we.labelExtraY-Ke)*fe>0&&(kt=3*ae*Math.abs(Ut-Pe.indexOf(we)),hr=Yt.cxFinal+V(Yt.px0[0],Yt.px1[0]),Rr=hr+kt-(we.cxFinal+we.pxmid[0])-we.labelExtraX,Rr*ae>0&&(we.labelExtraX+=Rr)))}for(se=0;se<2;se++)for(Q=se?tt:Je,re=se?Math.max:Math.min,fe=se?1:-1,Z=0;Z<2;Z++){for(V=Z?Math.max:Math.min,ae=Z?1:-1,xe=J[se][Z],xe.sort(Q),Ae=J[1-se][Z],Pe=Ae.concat(xe),je=[],Ce=0;Ce1?(xe=Z.r,Ae=xe/Q.aspectratio):(Ae=Z.r,xe=Ae*Q.aspectratio),xe*=(1+Q.baseratio)/2,fe=xe*Ae}re=Math.min(re,fe/Z.vTotal)}for(se=0;seee.vTotal/2?1:0,xe.halfangle=Math.PI*Math.min(xe.v/ee.vTotal,.5),xe.ring=1-se.hole,xe.rInscribed=I(xe,ee))}function ie(J,ee){return[J*Math.sin(ee),-J*Math.cos(ee)]}function le(J,ee,Z){var se=J._fullLayout,Q=Z.trace,V=Q.texttemplate,re=Q.textinfo;if(!V&&re&&re!=="none"){var ae=re.split("+"),fe=function(he){return ae.indexOf(he)!==-1},xe=fe("label"),Ae=fe("text"),Pe=fe("value"),Ce=fe("percent"),je=se.separators,at;if(at=xe?[ee.label]:[],Ae){var tt=f.getFirstFilled(Q.text,ee.pts);v(tt)&&at.push(tt)}Pe&&at.push(f.formatPieValue(ee.v,je)),Ce&&at.push(f.formatPiePercent(ee.v/Z.vTotal,je)),ee.text=at.join("
")}function Je(he){return{label:he.label,value:he.v,valueLabel:f.formatPieValue(he.v,se.separators),percent:he.v/Z.vTotal,percentLabel:f.formatPiePercent(he.v/Z.vTotal,se.separators),color:he.color,text:he.text,customdata:t.castOption(Q,he.i,"customdata")}}if(V){var Ze=t.castOption(Q,ee.i,"texttemplate");if(!Ze)ee.text="";else{var Me=Je(ee),we=f.getFirstFilled(Q.text,ee.pts);(v(we)||we==="")&&(Me.text=we),ee.text=t.texttemplateString(Ze,Me,J._fullLayout._d3locale,Me,Q._meta||{})}}}function q(J,ee){var Z=J.rotate*Math.PI/180,se=Math.cos(Z),Q=Math.sin(Z),V=(ee.left+ee.right)/2,re=(ee.top+ee.bottom)/2;J.textX=V*se-re*Q,J.textY=V*Q+re*se,J.noCenter=!0}H.exports={plot:T,formatSliceLabel:le,transformInsideText:_,determineInsideTextFont:S,positionTitleOutside:B,prerenderTitles:M,layoutAreas:X,attachFxHandlers:m,computeTransform:q}}}),HC=He({"src/traces/pie/style.js"(Y,H){var h=yi(),x=V0(),A=gh().resizeText;H.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");A(e,t,"pie"),t.each(function(r){var i=r[0],a=i.trace,o=h.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(n){h.select(this).call(x,n,a,e)})})}}}),WC=He({"src/traces/pie/base_plot.js"(Y){var H=$u();Y.name="pie",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),XC=He({"src/traces/pie/index.js"(Y,H){H.exports={attributes:Bp(),supplyDefaults:Np().supplyDefaults,supplyLayoutDefaults:qC(),layoutAttributes:l_(),calc:ng().calc,crossTraceCalc:ng().crossTraceCalc,plot:u_().plot,style:HC(),styleOne:V0(),moduleType:"trace",name:"pie",basePlotModule:WC(),categories:["pie-like","pie","showLegend"],meta:{}}}}),ZC=He({"lib/pie.js"(Y,H){H.exports=XC()}}),YC=He({"src/traces/sunburst/base_plot.js"(Y){var H=$u();Y.name="sunburst",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),L2=He({"src/traces/sunburst/constants.js"(Y,H){H.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}}}),Tm=He({"src/traces/sunburst/attributes.js"(Y,H){var h=Ll(),x=us().hovertemplateAttrs,A=us().texttemplateAttrs,E=eu(),e=Ku().attributes,t=Bp(),r=L2(),i=Po().extendFlat,a=Yf().pattern;H.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:i({colors:{valType:"data_array",editType:"calc"},line:{color:i({},t.marker.line.color,{dflt:null}),width:i({},t.marker.line.width,{dflt:1}),editType:"calc"},pattern:a,editType:"calc"},E("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:t.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:A({editType:"plot"},{keys:r.eventDataKeys.concat(["label","value"])}),hovertext:t.hovertext,hoverinfo:i({},h.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:x({},{keys:r.eventDataKeys}),textfont:t.textfont,insidetextorientation:t.insidetextorientation,insidetextfont:t.insidetextfont,outsidetextfont:i({},t.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:t.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:e({name:"sunburst",trace:!0,editType:"calc"})}}}),P2=He({"src/traces/sunburst/layout_attributes.js"(Y,H){H.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),$C=He({"src/traces/sunburst/defaults.js"(Y,H){var h=Qr(),x=Tm(),A=Ku().defaults,E=Yh().handleText,e=Np().handleMarkerDefaults,t=Eu(),r=t.hasColorscale,i=t.handleDefaults;H.exports=function(o,n,s,c){function f(S,M){return h.coerce(o,n,x,S,M)}var p=f("labels"),v=f("parents");if(!p||!p.length||!v||!v.length){n.visible=!1;return}var T=f("values");T&&T.length?f("branchvalues"):f("count"),f("level"),f("maxdepth"),e(o,n,c,f);var l=n._hasColorscale=r(o,"marker","colors")||(o.marker||{}).coloraxis;l&&i(o,n,c,f,{prefix:"marker.",cLetter:"c"}),f("leaf.opacity",l?1:.7);var m=f("text");f("texttemplate"),n.texttemplate||f("textinfo",h.isArrayOrTypedArray(m)?"text+label":"label"),f("hovertext"),f("hovertemplate");var w="auto";E(o,n,c,f,w,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),f("insidetextorientation"),f("sort"),f("rotation"),f("root.color"),A(n,c,f),n._length=null}}}),KC=He({"src/traces/sunburst/layout_defaults.js"(Y,H){var h=Qr(),x=P2();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("sunburstcolorway",e.colorway),t("extendsunburstcolors")}}}),Am=He({"node_modules/d3-hierarchy/dist/d3-hierarchy.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(Oe,de){return Oe.parent===de.parent?1:2}function A(Oe){return Oe.reduce(E,0)/Oe.length}function E(Oe,de){return Oe+de.x}function e(Oe){return 1+Oe.reduce(t,0)}function t(Oe,de){return Math.max(Oe,de.y)}function r(Oe){for(var de;de=Oe.children;)Oe=de[0];return Oe}function i(Oe){for(var de;de=Oe.children;)Oe=de[de.length-1];return Oe}function a(){var Oe=x,de=1,me=1,be=!1;function Ie(Xe){var ht,bt=0;Xe.eachAfter(function(Jt){var mr=Jt.children;mr?(Jt.x=A(mr),Jt.y=e(mr)):(Jt.x=ht?bt+=Oe(Jt,ht):0,Jt.y=0,ht=Jt)});var Ct=r(Xe),Zt=i(Xe),Wt=Ct.x-Oe(Ct,Zt)/2,rr=Zt.x+Oe(Zt,Ct)/2;return Xe.eachAfter(be?function(Jt){Jt.x=(Jt.x-Xe.x)*de,Jt.y=(Xe.y-Jt.y)*me}:function(Jt){Jt.x=(Jt.x-Wt)/(rr-Wt)*de,Jt.y=(1-(Xe.y?Jt.y/Xe.y:1))*me})}return Ie.separation=function(Xe){return arguments.length?(Oe=Xe,Ie):Oe},Ie.size=function(Xe){return arguments.length?(be=!1,de=+Xe[0],me=+Xe[1],Ie):be?null:[de,me]},Ie.nodeSize=function(Xe){return arguments.length?(be=!0,de=+Xe[0],me=+Xe[1],Ie):be?[de,me]:null},Ie}function o(Oe){var de=0,me=Oe.children,be=me&&me.length;if(!be)de=1;else for(;--be>=0;)de+=me[be].value;Oe.value=de}function n(){return this.eachAfter(o)}function s(Oe){var de=this,me,be=[de],Ie,Xe,ht;do for(me=be.reverse(),be=[];de=me.pop();)if(Oe(de),Ie=de.children,Ie)for(Xe=0,ht=Ie.length;Xe=0;--Ie)me.push(be[Ie]);return this}function f(Oe){for(var de=this,me=[de],be=[],Ie,Xe,ht;de=me.pop();)if(be.push(de),Ie=de.children,Ie)for(Xe=0,ht=Ie.length;Xe=0;)me+=be[Ie].value;de.value=me})}function v(Oe){return this.eachBefore(function(de){de.children&&de.children.sort(Oe)})}function T(Oe){for(var de=this,me=l(de,Oe),be=[de];de!==me;)de=de.parent,be.push(de);for(var Ie=be.length;Oe!==me;)be.splice(Ie,0,Oe),Oe=Oe.parent;return be}function l(Oe,de){if(Oe===de)return Oe;var me=Oe.ancestors(),be=de.ancestors(),Ie=null;for(Oe=me.pop(),de=be.pop();Oe===de;)Ie=Oe,Oe=me.pop(),de=be.pop();return Ie}function m(){for(var Oe=this,de=[Oe];Oe=Oe.parent;)de.push(Oe);return de}function w(){var Oe=[];return this.each(function(de){Oe.push(de)}),Oe}function S(){var Oe=[];return this.eachBefore(function(de){de.children||Oe.push(de)}),Oe}function M(){var Oe=this,de=[];return Oe.each(function(me){me!==Oe&&de.push({source:me.parent,target:me})}),de}function _(Oe,de){var me=new y(Oe),be=+Oe.value&&(me.value=Oe.value),Ie,Xe=[me],ht,bt,Ct,Zt;for(de==null&&(de=d);Ie=Xe.pop();)if(be&&(Ie.value=+Ie.data.value),(bt=de(Ie.data))&&(Zt=bt.length))for(Ie.children=new Array(Zt),Ct=Zt-1;Ct>=0;--Ct)Xe.push(ht=Ie.children[Ct]=new y(bt[Ct])),ht.parent=Ie,ht.depth=Ie.depth+1;return me.eachBefore(g)}function b(){return _(this).eachBefore(u)}function d(Oe){return Oe.children}function u(Oe){Oe.data=Oe.data.data}function g(Oe){var de=0;do Oe.height=de;while((Oe=Oe.parent)&&Oe.height<++de)}function y(Oe){this.data=Oe,this.depth=this.height=0,this.parent=null}y.prototype=_.prototype={constructor:y,count:n,each:s,eachAfter:f,eachBefore:c,sum:p,sort:v,path:T,ancestors:m,descendants:w,leaves:S,links:M,copy:b};var R=Array.prototype.slice;function I(Oe){for(var de=Oe.length,me,be;de;)be=Math.random()*de--|0,me=Oe[de],Oe[de]=Oe[be],Oe[be]=me;return Oe}function z(Oe){for(var de=0,me=(Oe=I(R.call(Oe))).length,be=[],Ie,Xe;de0&&me*me>be*be+Ie*Ie}function P(Oe,de){for(var me=0;meCt?(Ie=(Zt+Ct-Xe)/(2*Zt),bt=Math.sqrt(Math.max(0,Ct/Zt-Ie*Ie)),me.x=Oe.x-Ie*be-bt*ht,me.y=Oe.y-Ie*ht+bt*be):(Ie=(Zt+Xe-Ct)/(2*Zt),bt=Math.sqrt(Math.max(0,Xe/Zt-Ie*Ie)),me.x=de.x+Ie*be-bt*ht,me.y=de.y+Ie*ht+bt*be)):(me.x=de.x+me.r,me.y=de.y)}function ie(Oe,de){var me=Oe.r+de.r-1e-6,be=de.x-Oe.x,Ie=de.y-Oe.y;return me>0&&me*me>be*be+Ie*Ie}function le(Oe){var de=Oe._,me=Oe.next._,be=de.r+me.r,Ie=(de.x*me.r+me.x*de.r)/be,Xe=(de.y*me.r+me.y*de.r)/be;return Ie*Ie+Xe*Xe}function q(Oe){this._=Oe,this.next=null,this.previous=null}function J(Oe){if(!(Ie=Oe.length))return 0;var de,me,be,Ie,Xe,ht,bt,Ct,Zt,Wt,rr;if(de=Oe[0],de.x=0,de.y=0,!(Ie>1))return de.r;if(me=Oe[1],de.x=-me.r,me.x=de.r,me.y=0,!(Ie>2))return de.r+me.r;ue(me,de,be=Oe[2]),de=new q(de),me=new q(me),be=new q(be),de.next=be.previous=me,me.next=de.previous=be,be.next=me.previous=de;e:for(bt=3;bt0)throw new Error("cycle");return bt}return me.id=function(be){return arguments.length?(Oe=se(be),me):Oe},me.parentId=function(be){return arguments.length?(de=se(be),me):de},me}function he(Oe,de){return Oe.parent===de.parent?1:2}function De(Oe){var de=Oe.children;return de?de[0]:Oe.t}function et(Oe){var de=Oe.children;return de?de[de.length-1]:Oe.t}function nt(Oe,de,me){var be=me/(de.i-Oe.i);de.c-=be,de.s+=me,Oe.c+=be,de.z+=me,de.m+=me}function Ke(Oe){for(var de=0,me=0,be=Oe.children,Ie=be.length,Xe;--Ie>=0;)Xe=be[Ie],Xe.z+=de,Xe.m+=de,de+=Xe.s+(me+=Xe.c)}function Et(Oe,de,me){return Oe.a.parent===de.parent?Oe.a:me}function kt(Oe,de){this._=Oe,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=de}kt.prototype=Object.create(y.prototype);function Ut(Oe){for(var de=new kt(Oe,0),me,be=[de],Ie,Xe,ht,bt;me=be.pop();)if(Xe=me._.children)for(me.children=new Array(bt=Xe.length),ht=bt-1;ht>=0;--ht)be.push(Ie=me.children[ht]=new kt(Xe[ht],ht)),Ie.parent=me;return(de.parent=new kt(null,0)).children=[de],de}function Yt(){var Oe=he,de=1,me=1,be=null;function Ie(Zt){var Wt=Ut(Zt);if(Wt.eachAfter(Xe),Wt.parent.m=-Wt.z,Wt.eachBefore(ht),be)Zt.eachBefore(Ct);else{var rr=Zt,Jt=Zt,mr=Zt;Zt.eachBefore(function(Ga){Ga.xJt.x&&(Jt=Ga),Ga.depth>mr.depth&&(mr=Ga)});var ia=rr===Jt?1:Oe(rr,Jt)/2,Ia=ia-rr.x,La=de/(Jt.x+ia+Ia),Aa=me/(mr.depth||1);Zt.eachBefore(function(Ga){Ga.x=(Ga.x+Ia)*La,Ga.y=Ga.depth*Aa})}return Zt}function Xe(Zt){var Wt=Zt.children,rr=Zt.parent.children,Jt=Zt.i?rr[Zt.i-1]:null;if(Wt){Ke(Zt);var mr=(Wt[0].z+Wt[Wt.length-1].z)/2;Jt?(Zt.z=Jt.z+Oe(Zt._,Jt._),Zt.m=Zt.z-mr):Zt.z=mr}else Jt&&(Zt.z=Jt.z+Oe(Zt._,Jt._));Zt.parent.A=bt(Zt,Jt,Zt.parent.A||rr[0])}function ht(Zt){Zt._.x=Zt.z+Zt.parent.m,Zt.m+=Zt.parent.m}function bt(Zt,Wt,rr){if(Wt){for(var Jt=Zt,mr=Zt,ia=Wt,Ia=Jt.parent.children[0],La=Jt.m,Aa=mr.m,Ga=ia.m,ba=Ia.m,Xa;ia=et(ia),Jt=De(Jt),ia&&Jt;)Ia=De(Ia),mr=et(mr),mr.a=Zt,Xa=ia.z+Ga-Jt.z-La+Oe(ia._,Jt._),Xa>0&&(nt(Et(ia,Zt,rr),Zt,Xa),La+=Xa,Aa+=Xa),Ga+=ia.m,La+=Jt.m,ba+=Ia.m,Aa+=mr.m;ia&&!et(mr)&&(mr.t=ia,mr.m+=Ga-Aa),Jt&&!De(Ia)&&(Ia.t=Jt,Ia.m+=La-ba,rr=Zt)}return rr}function Ct(Zt){Zt.x*=de,Zt.y=Zt.depth*me}return Ie.separation=function(Zt){return arguments.length?(Oe=Zt,Ie):Oe},Ie.size=function(Zt){return arguments.length?(be=!1,de=+Zt[0],me=+Zt[1],Ie):be?null:[de,me]},Ie.nodeSize=function(Zt){return arguments.length?(be=!0,de=+Zt[0],me=+Zt[1],Ie):be?[de,me]:null},Ie}function vr(Oe,de,me,be,Ie){for(var Xe=Oe.children,ht,bt=-1,Ct=Xe.length,Zt=Oe.value&&(Ie-me)/Oe.value;++btGa&&(Ga=Zt),Kt=La*La*yn,ba=Math.max(Ga/Kt,Kt/Aa),ba>Xa){La-=Zt;break}Xa=ba}ht.push(Ct={value:La,dice:mr1?be:1)},me}(hr);function wr(){var Oe=dr,de=!1,me=1,be=1,Ie=[0],Xe=Q,ht=Q,bt=Q,Ct=Q,Zt=Q;function Wt(Jt){return Jt.x0=Jt.y0=0,Jt.x1=me,Jt.y1=be,Jt.eachBefore(rr),Ie=[0],de&&Jt.eachBefore(Pe),Jt}function rr(Jt){var mr=Ie[Jt.depth],ia=Jt.x0+mr,Ia=Jt.y0+mr,La=Jt.x1-mr,Aa=Jt.y1-mr;La=Jt-1){var Ga=Xe[rr];Ga.x0=ia,Ga.y0=Ia,Ga.x1=La,Ga.y1=Aa;return}for(var ba=Zt[rr],Xa=mr/2+ba,yn=rr+1,Kt=Jt-1;yn>>1;Zt[zt]Aa-Ia){var Tr=(ia*Ht+La*$t)/mr;Wt(rr,yn,$t,ia,Ia,Tr,Aa),Wt(yn,Jt,Ht,Tr,Ia,La,Aa)}else{var qr=(Ia*Ht+Aa*$t)/mr;Wt(rr,yn,$t,ia,Ia,La,qr),Wt(yn,Jt,Ht,ia,qr,La,Aa)}}}function Fe(Oe,de,me,be,Ie){(Oe.depth&1?vr:Ce)(Oe,de,me,be,Ie)}var We=function Oe(de){function me(be,Ie,Xe,ht,bt){if((Ct=be._squarify)&&Ct.ratio===de)for(var Ct,Zt,Wt,rr,Jt=-1,mr,ia=Ct.length,Ia=be.value;++Jt1?be:1)},me}(hr);h.cluster=a,h.hierarchy=_,h.pack=ae,h.packEnclose=z,h.packSiblings=ee,h.partition=je,h.stratify=we,h.tree=Yt,h.treemap=wr,h.treemapBinary=yt,h.treemapDice=Ce,h.treemapResquarify=We,h.treemapSlice=vr,h.treemapSliceDice=Fe,h.treemapSquarify=dr,Object.defineProperty(h,"__esModule",{value:!0})})}}),Sm=He({"src/traces/sunburst/calc.js"(Y){var H=Am(),h=Vi(),x=Qr(),A=Eu().makeColorScaleFuncFromTrace,E=ng().makePullColorFn,e=ng().generateExtendedColors,t=Eu().calc,r=qo().ALMOST_EQUAL,i={},a={},o={};Y.calc=function(s,c){var f=s._fullLayout,p=c.ids,v=x.isArrayOrTypedArray(p),T=c.labels,l=c.parents,m=c.values,w=x.isArrayOrTypedArray(m),S=[],M={},_={},b=function(ee,Z){M[ee]?M[ee].push(Z):M[ee]=[Z],_[Z]=1},d=function(ee){return ee||typeof ee=="number"},u=function(ee){return!w||h(m[ee])&&m[ee]>=0},g,y,R;v?(g=Math.min(p.length,l.length),y=function(ee){return d(p[ee])&&u(ee)},R=function(ee){return String(p[ee])}):(g=Math.min(T.length,l.length),y=function(ee){return d(T[ee])&&u(ee)},R=function(ee){return String(T[ee])}),w&&(g=Math.min(g,m.length));for(var I=0;I1){for(var N=x.randstr(),U=0;U>8&15|H>>4&240,H>>4&15|H&240,(H&15)<<4|H&15,1):h===8?Mm(H>>24&255,H>>16&255,H>>8&255,(H&255)/255):h===4?Mm(H>>12&15|H>>8&240,H>>8&15|H>>4&240,H>>4&15|H&240,((H&15)<<4|H&15)/255):null):(H=j2.exec(Y))?new Jf(H[1],H[2],H[3],1):(H=V2.exec(Y))?new Jf(H[1]*255/100,H[2]*255/100,H[3]*255/100,1):(H=q2.exec(Y))?Mm(H[1],H[2],H[3],H[4]):(H=G2.exec(Y))?Mm(H[1]*255/100,H[2]*255/100,H[3]*255/100,H[4]):(H=H2.exec(Y))?O2(H[1],H[2]/100,H[3]/100,1):(H=W2.exec(Y))?O2(H[1],H[2]/100,H[3]/100,H[4]):d_.hasOwnProperty(Y)?D2(d_[Y]):Y==="transparent"?new Jf(NaN,NaN,NaN,0):null}function D2(Y){return new Jf(Y>>16&255,Y>>8&255,Y&255,1)}function Mm(Y,H,h,x){return x<=0&&(Y=H=h=NaN),new Jf(Y,H,h,x)}function f_(Y){return Y instanceof sd||(Y=og(Y)),Y?(Y=Y.rgb(),new Jf(Y.r,Y.g,Y.b,Y.opacity)):new Jf}function Em(Y,H,h,x){return arguments.length===1?f_(Y):new Jf(Y,H,h,x??1)}function Jf(Y,H,h,x){this.r=+Y,this.g=+H,this.b=+h,this.opacity=+x}function z2(){return`#${Kd(this.r)}${Kd(this.g)}${Kd(this.b)}`}function eL(){return`#${Kd(this.r)}${Kd(this.g)}${Kd(this.b)}${Kd((isNaN(this.opacity)?1:this.opacity)*255)}`}function F2(){const Y=km(this.opacity);return`${Y===1?"rgb(":"rgba("}${$d(this.r)}, ${$d(this.g)}, ${$d(this.b)}${Y===1?")":`, ${Y})`}`}function km(Y){return isNaN(Y)?1:Math.max(0,Math.min(1,Y))}function $d(Y){return Math.max(0,Math.min(255,Math.round(Y)||0))}function Kd(Y){return Y=$d(Y),(Y<16?"0":"")+Y.toString(16)}function O2(Y,H,h,x){return x<=0?Y=H=h=NaN:h<=0||h>=1?Y=H=NaN:H<=0&&(Y=NaN),new lv(Y,H,h,x)}function B2(Y){if(Y instanceof lv)return new lv(Y.h,Y.s,Y.l,Y.opacity);if(Y instanceof sd||(Y=og(Y)),!Y)return new lv;if(Y instanceof lv)return Y;Y=Y.rgb();var H=Y.r/255,h=Y.g/255,x=Y.b/255,A=Math.min(H,h,x),E=Math.max(H,h,x),e=NaN,t=E-A,r=(E+A)/2;return t?(H===E?e=(h-x)/t+(h0&&r<1?0:e,new lv(e,t,r,Y.opacity)}function h_(Y,H,h,x){return arguments.length===1?B2(Y):new lv(Y,H,h,x??1)}function lv(Y,H,h,x){this.h=+Y,this.s=+H,this.l=+h,this.opacity=+x}function N2(Y){return Y=(Y||0)%360,Y<0?Y+360:Y}function Cm(Y){return Math.max(0,Math.min(1,Y||0))}function v_(Y,H,h){return(Y<60?H+(h-H)*Y/60:Y<180?h:Y<240?H+(h-H)*(240-Y)/60:H)*255}var ld,Jd,Qd,jp,uv,U2,j2,V2,q2,G2,H2,W2,d_,p_=bl({"node_modules/d3-color/src/color.js"(){c_(),ld=.7,Jd=1/ld,Qd="\\s*([+-]?\\d+)\\s*",jp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U2=/^#([0-9a-f]{3,8})$/,j2=new RegExp(`^rgb\\(${Qd},${Qd},${Qd}\\)$`),V2=new RegExp(`^rgb\\(${uv},${uv},${uv}\\)$`),q2=new RegExp(`^rgba\\(${Qd},${Qd},${Qd},${jp}\\)$`),G2=new RegExp(`^rgba\\(${uv},${uv},${uv},${jp}\\)$`),H2=new RegExp(`^hsl\\(${jp},${uv},${uv}\\)$`),W2=new RegExp(`^hsla\\(${jp},${uv},${uv},${jp}\\)$`),d_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Up(sd,og,{copy(Y){return Object.assign(new this.constructor,this,Y)},displayable(){return this.rgb().displayable()},hex:I2,formatHex:I2,formatHex8:JC,formatHsl:QC,formatRgb:R2,toString:R2}),Up(Jf,Em,ig(sd,{brighter(Y){return Y=Y==null?Jd:Math.pow(Jd,Y),new Jf(this.r*Y,this.g*Y,this.b*Y,this.opacity)},darker(Y){return Y=Y==null?ld:Math.pow(ld,Y),new Jf(this.r*Y,this.g*Y,this.b*Y,this.opacity)},rgb(){return this},clamp(){return new Jf($d(this.r),$d(this.g),$d(this.b),km(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:z2,formatHex:z2,formatHex8:eL,formatRgb:F2,toString:F2})),Up(lv,h_,ig(sd,{brighter(Y){return Y=Y==null?Jd:Math.pow(Jd,Y),new lv(this.h,this.s,this.l*Y,this.opacity)},darker(Y){return Y=Y==null?ld:Math.pow(ld,Y),new lv(this.h,this.s,this.l*Y,this.opacity)},rgb(){var Y=this.h%360+(this.h<0)*360,H=isNaN(Y)||isNaN(this.s)?0:this.s,h=this.l,x=h+(h<.5?h:1-h)*H,A=2*h-x;return new Jf(v_(Y>=240?Y-240:Y+120,A,x),v_(Y,A,x),v_(Y<120?Y+240:Y-120,A,x),this.opacity)},clamp(){return new lv(N2(this.h),Cm(this.s),Cm(this.l),km(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const Y=km(this.opacity);return`${Y===1?"hsl(":"hsla("}${N2(this.h)}, ${Cm(this.s)*100}%, ${Cm(this.l)*100}%${Y===1?")":`, ${Y})`}`}}))}}),g_,m_,X2=bl({"node_modules/d3-color/src/math.js"(){g_=Math.PI/180,m_=180/Math.PI}});function Z2(Y){if(Y instanceof Tv)return new Tv(Y.l,Y.a,Y.b,Y.opacity);if(Y instanceof qv)return Y2(Y);Y instanceof Jf||(Y=f_(Y));var H=w_(Y.r),h=w_(Y.g),x=w_(Y.b),A=__((.2225045*H+.7168786*h+.0606169*x)/S_),E,e;return H===h&&h===x?E=e=A:(E=__((.4360747*H+.3850649*h+.1430804*x)/A_),e=__((.0139322*H+.0971045*h+.7141733*x)/M_)),new Tv(116*A-16,500*(E-A),200*(A-e),Y.opacity)}function y_(Y,H,h,x){return arguments.length===1?Z2(Y):new Tv(Y,H,h,x??1)}function Tv(Y,H,h,x){this.l=+Y,this.a=+H,this.b=+h,this.opacity=+x}function __(Y){return Y>$2?Math.pow(Y,.3333333333333333):Y/k_+E_}function x_(Y){return Y>ep?Y*Y*Y:k_*(Y-E_)}function b_(Y){return 255*(Y<=.0031308?12.92*Y:1.055*Math.pow(Y,.4166666666666667)-.055)}function w_(Y){return(Y/=255)<=.04045?Y/12.92:Math.pow((Y+.055)/1.055,2.4)}function tL(Y){if(Y instanceof qv)return new qv(Y.h,Y.c,Y.l,Y.opacity);if(Y instanceof Tv||(Y=Z2(Y)),Y.a===0&&Y.b===0)return new qv(NaN,0=1?(h=1,H-1):Math.floor(h*H),A=Y[x],E=Y[x+1],e=x>0?Y[x-1]:2*A-E,t=x()=>Y}});function r3(Y,H){return function(h){return Y+h*H}}function iL(Y,H,h){return Y=Math.pow(Y,h),H=Math.pow(H,h)-Y,h=1/h,function(x){return Math.pow(Y+x*H,h)}}function Im(Y,H){var h=H-Y;return h?r3(Y,h>180||h<-180?h-360*Math.round(h/360):h):ug(isNaN(Y)?H:Y)}function oL(Y){return(Y=+Y)==1?Qf:function(H,h){return h-H?iL(H,h,Y):ug(isNaN(H)?h:H)}}function Qf(Y,H){var h=H-Y;return h?r3(Y,h):ug(isNaN(Y)?H:Y)}var Gp=bl({"node_modules/d3-interpolate/src/color.js"(){t3()}});function a3(Y){return function(H){var h=H.length,x=new Array(h),A=new Array(h),E=new Array(h),e,t;for(e=0;eh&&(E=H.slice(h,E),t[e]?t[e]+=E:t[++e]=E),(x=x[0])===(A=A[0])?t[e]?t[e]+=A:t[++e]=A:(t[++e]=null,r.push({i:e,x:Av(x,A)})),h=Fm.lastIndex;return h180?a+=360:a-i>180&&(i+=360),n.push({i:o.push(A(o)+"rotate(",null,x)-2,x:Av(i,a)})):a&&o.push(A(o)+"rotate("+a+x)}function t(i,a,o,n){i!==a?n.push({i:o.push(A(o)+"skewX(",null,x)-2,x:Av(i,a)}):a&&o.push(A(o)+"skewX("+a+x)}function r(i,a,o,n,s,c){if(i!==o||a!==n){var f=s.push(A(s)+"scale(",null,",",null,")");c.push({i:f-4,x:Av(i,o)},{i:f-2,x:Av(a,n)})}else(o!==1||n!==1)&&s.push(A(s)+"scale("+o+","+n+")")}return function(i,a){var o=[],n=[];return i=Y(i),a=Y(a),E(i.translateX,i.translateY,a.translateX,a.translateY,o,n),e(i.rotate,a.rotate,o,n),t(i.skewX,a.skewX,o,n),r(i.scaleX,i.scaleY,a.scaleX,a.scaleY,o,n),i=a=null,function(s){for(var c=-1,f=n.length,p;++cOm,interpolateArray:()=>sL,interpolateBasis:()=>J2,interpolateBasisClosed:()=>Q2,interpolateCubehelix:()=>L3,interpolateCubehelixLong:()=>P3,interpolateDate:()=>c3,interpolateDiscrete:()=>cL,interpolateHcl:()=>E3,interpolateHclLong:()=>k3,interpolateHsl:()=>A3,interpolateHslLong:()=>S3,interpolateHue:()=>hL,interpolateLab:()=>SL,interpolateNumber:()=>Av,interpolateNumberArray:()=>z_,interpolateObject:()=>h3,interpolateRgb:()=>Rm,interpolateRgbBasis:()=>n3,interpolateRgbBasisClosed:()=>i3,interpolateRound:()=>dL,interpolateString:()=>d3,interpolateTransformCss:()=>y3,interpolateTransformSvg:()=>_3,interpolateZoom:()=>w3,piecewise:()=>CL,quantize:()=>PL});var Hp=bl({"node_modules/d3-interpolate/src/index.js"(){Bm(),u3(),D_(),e3(),f3(),fL(),vL(),Dm(),F_(),v3(),pL(),p3(),xL(),TL(),o3(),AL(),ML(),EL(),kL(),LL(),IL()}}),B_=He({"src/traces/sunburst/fill_one.js"(Y,H){var h=Io(),x=zi();H.exports=function(E,e,t,r,i){var a=e.data.data,o=a.i,n=i||a.color;if(o>=0){e.i=a.i;var s=t.marker;s.pattern?(!s.colors||!s.pattern.shape)&&(s.color=n,e.color=n):(s.color=n,e.color=n),h.pointStyle(E,t,r,e)}else x.fill(E,n)}}}),I3=He({"src/traces/sunburst/style.js"(Y,H){var h=yi(),x=zi(),A=Qr(),E=gh().resizeText,e=B_();function t(i){var a=i._fullLayout._sunburstlayer.selectAll(".trace");E(i,a,"sunburst"),a.each(function(o){var n=h.select(this),s=o[0],c=s.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(f){h.select(this).call(r,f,c,i)})})}function r(i,a,o,n){var s=a.data.data,c=!a.children,f=s.i,p=A.castOption(o,f,"marker.line.color")||x.defaultLine,v=A.castOption(o,f,"marker.line.width")||0;i.call(e,a,o,n).style("stroke-width",v).call(x.stroke,p).style("opacity",c?o.leaf.opacity:null)}H.exports={style:t,styleOne:r}}}),ud=He({"src/traces/sunburst/helpers.js"(Y){var H=Qr(),h=zi(),x=mv(),A=Hd();Y.findEntryWithLevel=function(r,i){var a;return i&&r.eachAfter(function(o){if(Y.getPtId(o)===i)return a=o.copy()}),a||r},Y.findEntryWithChild=function(r,i){var a;return r.eachAfter(function(o){for(var n=o.children||[],s=0;s0)},Y.getMaxDepth=function(r){return r.maxdepth>=0?r.maxdepth:1/0},Y.isHeader=function(r,i){return!(Y.isLeaf(r)||r.depth===i._maxDepth-1)};function t(r){return r.data.data.pid}Y.getParent=function(r,i){return Y.findEntryWithLevel(r,t(i))},Y.listPath=function(r,i){var a=r.parent;if(!a)return[];var o=i?[a.data[i]]:[a];return Y.listPath(a,i).concat(o)},Y.getPath=function(r){return Y.listPath(r,"label").join("/")+"/"},Y.formatValue=A.formatPieValue,Y.formatPercent=function(r,i){var a=H.formatPercent(r,0);return a==="0%"&&(a=A.formatPiePercent(r,i)),a}}}),jm=He({"src/traces/sunburst/fx.js"(Y,H){var h=yi(),x=qi(),A=Dh().appendArrayPointValue,E=xc(),e=Qr(),t=O0(),r=ud(),i=Hd(),a=i.formatPieValue;H.exports=function(s,c,f,p,v){var T=p[0],l=T.trace,m=T.hierarchy,w=l.type==="sunburst",S=l.type==="treemap"||l.type==="icicle";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1);var M=function(d){var u=f._fullLayout;if(!(f._dragging||u.hovermode===!1)){var g=f._fullData[l.index],y=d.data.data,R=y.i,I=r.isHierarchyRoot(d),z=r.getParent(m,d),F=r.getValue(d),B=function(re){return e.castOption(g,R,re)},O=B("hovertemplate"),P=E.castHoverinfo(g,u,R),N=u.separators,U;if(O||P&&P!=="none"&&P!=="skip"){var X,te;w&&(X=T.cx+d.pxmid[0]*(1-d.rInscribed),te=T.cy+d.pxmid[1]*(1-d.rInscribed)),S&&(X=d._hoverX,te=d._hoverY);var ue={},ie=[],le=[],q=function(re){return ie.indexOf(re)!==-1};P&&(ie=P==="all"?g._module.attributes.hoverinfo.flags:P.split("+")),ue.label=y.label,q("label")&&ue.label&&le.push(ue.label),y.hasOwnProperty("v")&&(ue.value=y.v,ue.valueLabel=a(ue.value,N),q("value")&&le.push(ue.valueLabel)),ue.currentPath=d.currentPath=r.getPath(d.data),q("current path")&&!I&&le.push(ue.currentPath);var J,ee=[],Z=function(){ee.indexOf(J)===-1&&(le.push(J),ee.push(J))};ue.percentParent=d.percentParent=F/r.getValue(z),ue.parent=d.parentString=r.getPtLabel(z),q("percent parent")&&(J=r.formatPercent(ue.percentParent,N)+" of "+ue.parent,Z()),ue.percentEntry=d.percentEntry=F/r.getValue(c),ue.entry=d.entry=r.getPtLabel(c),q("percent entry")&&!I&&!d.onPathbar&&(J=r.formatPercent(ue.percentEntry,N)+" of "+ue.entry,Z()),ue.percentRoot=d.percentRoot=F/r.getValue(m),ue.root=d.root=r.getPtLabel(m),q("percent root")&&!I&&(J=r.formatPercent(ue.percentRoot,N)+" of "+ue.root,Z()),ue.text=B("hovertext")||B("text"),q("text")&&(J=ue.text,e.isValidTextValue(J)&&le.push(J)),U=[o(d,g,v.eventDataKeys)];var se={trace:g,y:te,_x0:d._x0,_x1:d._x1,_y0:d._y0,_y1:d._y1,text:le.join("
"),name:O||q("name")?g.name:void 0,color:B("hoverlabel.bgcolor")||y.color,borderColor:B("hoverlabel.bordercolor"),fontFamily:B("hoverlabel.font.family"),fontSize:B("hoverlabel.font.size"),fontColor:B("hoverlabel.font.color"),fontWeight:B("hoverlabel.font.weight"),fontStyle:B("hoverlabel.font.style"),fontVariant:B("hoverlabel.font.variant"),nameLength:B("hoverlabel.namelength"),textAlign:B("hoverlabel.align"),hovertemplate:O,hovertemplateLabels:ue,eventData:U};w&&(se.x0=X-d.rInscribed*d.rpx1,se.x1=X+d.rInscribed*d.rpx1,se.idealAlign=d.pxmid[0]<0?"left":"right"),S&&(se.x=X,se.idealAlign=X<0?"left":"right");var Q=[];E.loneHover(se,{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:f,inOut_bbox:Q}),U[0].bbox=Q[0],l._hasHoverLabel=!0}if(S){var V=s.select("path.surface");v.styleOne(V,d,g,f,{hovered:!0})}l._hasHoverEvent=!0,f.emit("plotly_hover",{points:U||[o(d,g,v.eventDataKeys)],event:h.event})}},_=function(d){var u=f._fullLayout,g=f._fullData[l.index],y=h.select(this).datum();if(l._hasHoverEvent&&(d.originalEvent=h.event,f.emit("plotly_unhover",{points:[o(y,g,v.eventDataKeys)],event:h.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(E.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1),S){var R=s.select("path.surface");v.styleOne(R,y,g,f,{hovered:!1})}},b=function(d){var u=f._fullLayout,g=f._fullData[l.index],y=w&&(r.isHierarchyRoot(d)||r.isLeaf(d)),R=r.getPtId(d),I=r.isEntry(d)?r.findEntryWithChild(m,R):r.findEntryWithLevel(m,R),z=r.getPtId(I),F={points:[o(d,g,v.eventDataKeys)],event:h.event};y||(F.nextLevel=z);var B=t.triggerHandler(f,"plotly_"+l.type+"click",F);if(B!==!1&&u.hovermode&&(f._hoverdata=[o(d,g,v.eventDataKeys)],E.click(f,h.event)),!y&&B!==!1&&!f._dragging&&!f._transitioning){x.call("_storeDirectGUIEdit",g,u._tracePreGUI[g.uid],{level:g.level});var O={data:[{level:z}],traces:[l.index]},P={frame:{redraw:!1,duration:v.transitionTime},transition:{duration:v.transitionTime,easing:v.transitionEasing},mode:"immediate",fromcurrent:!0};E.loneUnhover(u._hoverlayer.node()),x.call("animate",f,O,P)}};s.on("mouseover",M),s.on("mouseout",_),s.on("click",b)};function o(n,s,c){for(var f=n.data.data,p={curveNumber:s.index,pointNumber:f.i,data:s._input,fullData:s},v=0;vnt.x1?2*Math.PI:0)+re;Ke=he.rpx1je?2*Math.PI:0)+re;et={x0:Ke,x1:Ke}}else et={rpx0:ie,rpx1:ie},E.extendFlat(et,we(he));else et={rpx0:0,rpx1:0};else et={x0:re,x1:re};return x(et,nt)}function Me(he){var De=ee[T.getPtId(he)],et,nt=he.transform;if(De)et=De;else if(et={rpx1:he.rpx1,transform:{textPosAngle:nt.textPosAngle,scale:0,rotate:nt.rotate,rCenter:nt.rCenter,x:nt.x,y:nt.y}},J)if(he.parent)if(je){var Ke=he.x1>je?2*Math.PI:0;et.x0=et.x1=Ke}else E.extendFlat(et,we(he));else et.x0=et.x1=re;else et.x0=et.x1=re;var Et=x(et.transform.textPosAngle,he.transform.textPosAngle),kt=x(et.rpx1,he.rpx1),Ut=x(et.x0,he.x0),Yt=x(et.x1,he.x1),vr=x(et.transform.scale,nt.scale),hr=x(et.transform.rotate,nt.rotate),Rr=nt.rCenter===0?3:et.transform.rCenter===0?1/3:1,dr=x(et.transform.rCenter,nt.rCenter),wr=function(yt){return dr(Math.pow(yt,Rr))};return function(yt){var Fe=kt(yt);Ut(yt),Yt(yt);var We=wr(yt),Oe=Et(yt),de={rpx1:Fe,transform:{textPosAngle:Oe,rCenter:We,x:nt.x,y:nt.y}};return r(B.type,nt,y),{transform:{targetX:Pe(de),targetY:Ce(de),scale:vr(yt),rotate:hr(yt),rCenter:We}}}}function we(he){var De=he.parent,et=ee[T.getPtId(De)],nt={};if(et){var Ke=De.children,Et=Ke.indexOf(he),kt=Ke.length,Ut=x(et.x0,et.x1);nt.x0=Ut(Et/kt),nt.x1=Ut(Et/kt)}else nt.x0=nt.x1=0;return nt}}function m(_){return h.partition().size([2*Math.PI,_.height+1])(_)}Y.formatSliceLabel=function(_,b,d,u,g){var y=d.texttemplate,R=d.textinfo;if(!y&&(!R||R==="none"))return"";var I=g.separators,z=u[0],F=_.data.data,B=z.hierarchy,O=T.isHierarchyRoot(_),P=T.getParent(B,_),N=T.getValue(_);if(!y){var U=R.split("+"),X=function(Q){return U.indexOf(Q)!==-1},te=[],ue;if(X("label")&&F.label&&te.push(F.label),F.hasOwnProperty("v")&&X("value")&&te.push(T.formatValue(F.v,I)),!O){X("current path")&&te.push(T.getPath(_.data));var ie=0;X("percent parent")&&ie++,X("percent entry")&&ie++,X("percent root")&&ie++;var le=ie>1;if(ie){var q,J=function(Q){ue=T.formatPercent(q,I),le&&(ue+=" of "+Q),te.push(ue)};X("percent parent")&&!O&&(q=N/T.getValue(P),J("parent")),X("percent entry")&&(q=N/T.getValue(b),J("entry")),X("percent root")&&(q=N/T.getValue(B),J("root"))}}return X("text")&&(ue=E.castOption(d,F.i,"text"),E.isValidTextValue(ue)&&te.push(ue)),te.join("
")}var ee=E.castOption(d,F.i,"texttemplate");if(!ee)return"";var Z={};F.label&&(Z.label=F.label),F.hasOwnProperty("v")&&(Z.value=F.v,Z.valueLabel=T.formatValue(F.v,I)),Z.currentPath=T.getPath(_.data),O||(Z.percentParent=N/T.getValue(P),Z.percentParentLabel=T.formatPercent(Z.percentParent,I),Z.parent=T.getPtLabel(P)),Z.percentEntry=N/T.getValue(b),Z.percentEntryLabel=T.formatPercent(Z.percentEntry,I),Z.entry=T.getPtLabel(b),Z.percentRoot=N/T.getValue(B),Z.percentRootLabel=T.formatPercent(Z.percentRoot,I),Z.root=T.getPtLabel(B),F.hasOwnProperty("color")&&(Z.color=F.color);var se=E.castOption(d,F.i,"text");return(E.isValidTextValue(se)||se==="")&&(Z.text=se),Z.customdata=E.castOption(d,F.i,"customdata"),E.texttemplateString(ee,Z,g._d3locale,Z,d._meta||{})};function w(_){return _.rpx0===0&&E.isFullCircle([_.x0,_.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(_.halfangle)),_.ring/2))}function S(_){return M(_.rpx1,_.transform.textPosAngle)}function M(_,b){return[_*Math.sin(b),-_*Math.cos(b)]}}}),RL=He({"src/traces/sunburst/index.js"(Y,H){H.exports={moduleType:"trace",name:"sunburst",basePlotModule:YC(),categories:[],animatable:!0,attributes:Tm(),layoutAttributes:P2(),supplyDefaults:$C(),supplyLayoutDefaults:KC(),calc:Sm().calc,crossTraceCalc:Sm().crossTraceCalc,plot:N_().plot,style:I3().style,colorbar:ch(),meta:{}}}}),DL=He({"lib/sunburst.js"(Y,H){H.exports=RL()}}),zL=He({"src/traces/treemap/base_plot.js"(Y){var H=$u();Y.name="treemap",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),Wp=He({"src/traces/treemap/constants.js"(Y,H){H.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}}}),U_=He({"src/traces/treemap/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=eu(),E=Ku().attributes,e=Bp(),t=Tm(),r=Wp(),i=Po().extendFlat,a=Yf().pattern;H.exports={labels:t.labels,parents:t.parents,values:t.values,branchvalues:t.branchvalues,count:t.count,level:t.level,maxdepth:t.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:i({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:t.marker.colors,pattern:a,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:t.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},A("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:i({},e.textfont,{}),editType:"calc"},text:e.text,textinfo:t.textinfo,texttemplate:x({editType:"plot"},{keys:r.eventDataKeys.concat(["label","value"])}),hovertext:e.hovertext,hoverinfo:t.hoverinfo,hovertemplate:h({},{keys:r.eventDataKeys}),textfont:e.textfont,insidetextfont:e.insidetextfont,outsidetextfont:i({},e.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:e.sort,root:t.root,domain:E({name:"treemap",trace:!0,editType:"calc"})}}}),R3=He({"src/traces/treemap/layout_attributes.js"(Y,H){H.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),FL=He({"src/traces/treemap/defaults.js"(Y,H){var h=Qr(),x=U_(),A=zi(),E=Ku().defaults,e=Yh().handleText,t=Ip().TEXTPAD,r=Np().handleMarkerDefaults,i=Eu(),a=i.hasColorscale,o=i.handleDefaults;H.exports=function(s,c,f,p){function v(g,y){return h.coerce(s,c,x,g,y)}var T=v("labels"),l=v("parents");if(!T||!T.length||!l||!l.length){c.visible=!1;return}var m=v("values");m&&m.length?v("branchvalues"):v("count"),v("level"),v("maxdepth");var w=v("tiling.packing");w==="squarify"&&v("tiling.squarifyratio"),v("tiling.flip"),v("tiling.pad");var S=v("text");v("texttemplate"),c.texttemplate||v("textinfo",h.isArrayOrTypedArray(S)?"text+label":"label"),v("hovertext"),v("hovertemplate");var M=v("pathbar.visible"),_="auto";e(s,c,p,v,_,{hasPathbar:M,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),v("textposition");var b=c.textposition.indexOf("bottom")!==-1;r(s,c,p,v);var d=c._hasColorscale=a(s,"marker","colors")||(s.marker||{}).coloraxis;d?o(s,c,p,v,{prefix:"marker.",cLetter:"c"}):v("marker.depthfade",!(c.marker.colors||[]).length);var u=c.textfont.size*2;v("marker.pad.t",b?u/4:u),v("marker.pad.l",u/4),v("marker.pad.r",u/4),v("marker.pad.b",b?u:u/4),v("marker.cornerradius"),c._hovered={marker:{line:{width:2,color:A.contrast(p.paper_bgcolor)}}},M&&(v("pathbar.thickness",c.pathbar.textfont.size+2*t),v("pathbar.side"),v("pathbar.edgeshape")),v("sort"),v("root.color"),E(c,p,v),c._length=null}}}),OL=He({"src/traces/treemap/layout_defaults.js"(Y,H){var h=Qr(),x=R3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("treemapcolorway",e.colorway),t("extendtreemapcolors")}}}),D3=He({"src/traces/treemap/calc.js"(Y){var H=Sm();Y.calc=function(h,x){return H.calc(h,x)},Y.crossTraceCalc=function(h){return H._runCrossTraceCalc("treemap",h)}}}),z3=He({"src/traces/treemap/flip_tree.js"(Y,H){H.exports=function h(x,A,E){var e;E.swapXY&&(e=x.x0,x.x0=x.y0,x.y0=e,e=x.x1,x.x1=x.y1,x.y1=e),E.flipX&&(e=x.x0,x.x0=A[0]-x.x1,x.x1=A[0]-e),E.flipY&&(e=x.y0,x.y0=A[1]-x.y1,x.y1=A[1]-e);var t=x.children;if(t)for(var r=0;r0)for(var u=0;u").join(" ")||"";var le=x.ensureSingle(ue,"g","slicetext"),q=x.ensureSingle(le,"text","",function(ee){ee.attr("data-notex",1)}),J=x.ensureUniformFontSize(s,i.determineTextFont(B,te,z.font,{onPathbar:!0}));q.text(te._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(A.font,J).call(E.convertToTspans,s),te.textBB=A.bBox(q.node()),te.transform=_(te,{fontSize:J.size,onPathbar:!0}),te.transform.fontSize=J.size,d?q.transition().attrTween("transform",function(ee){var Z=y(ee,o,R,[l,m]);return function(se){return b(Z(se))}}):q.attr("transform",b(te))})}}}),NL=He({"src/traces/treemap/plot_one.js"(Y,H){var h=yi(),x=(Hp(),Bv(rp)).interpolate,A=ud(),E=Qr(),e=Ip().TEXTPAD,t=Rp(),r=t.toMoveInsideBar,i=gh(),a=i.recordMinTextSize,o=Wp(),n=BL();function s(c){return A.isHierarchyRoot(c)?"":A.getPtId(c)}H.exports=function(f,p,v,T,l){var m=f._fullLayout,w=p[0],S=w.trace,M=S.type,_=M==="icicle",b=w.hierarchy,d=A.findEntryWithLevel(b,S.level),u=h.select(v),g=u.selectAll("g.pathbar"),y=u.selectAll("g.slice");if(!d){g.remove(),y.remove();return}var R=A.isHierarchyRoot(d),I=!m.uniformtext.mode&&A.hasTransition(T),z=A.getMaxDepth(S),F=function(dr){return dr.data.depth-d.data.depth-1?N+te:-(X+te):0,ie={x0:U,x1:U,y0:ue,y1:ue+X},le=function(dr,wr,yt){var Fe=S.tiling.pad,We=function(be){return be-Fe<=wr.x0},Oe=function(be){return be+Fe>=wr.x1},de=function(be){return be-Fe<=wr.y0},me=function(be){return be+Fe>=wr.y1};return dr.x0===wr.x0&&dr.x1===wr.x1&&dr.y0===wr.y0&&dr.y1===wr.y1?{x0:dr.x0,x1:dr.x1,y0:dr.y0,y1:dr.y1}:{x0:We(dr.x0-Fe)?0:Oe(dr.x0-Fe)?yt[0]:dr.x0,x1:We(dr.x1+Fe)?0:Oe(dr.x1+Fe)?yt[0]:dr.x1,y0:de(dr.y0-Fe)?0:me(dr.y0-Fe)?yt[1]:dr.y0,y1:de(dr.y1+Fe)?0:me(dr.y1+Fe)?yt[1]:dr.y1}},q=null,J={},ee={},Z=null,se=function(dr,wr){return wr?J[s(dr)]:ee[s(dr)]},Q=function(dr,wr,yt,Fe){if(wr)return J[s(b)]||ie;var We=ee[S.level]||yt;return F(dr)?le(dr,We,Fe):{}};w.hasMultipleRoots&&R&&z++,S._maxDepth=z,S._backgroundColor=m.paper_bgcolor,S._entryDepth=d.data.depth,S._atRootLevel=R;var V=-P/2+B.l+B.w*(O.x[1]+O.x[0])/2,re=-N/2+B.t+B.h*(1-(O.y[1]+O.y[0])/2),ae=function(dr){return V+dr},fe=function(dr){return re+dr},xe=fe(0),Ae=ae(0),Pe=function(dr){return Ae+dr},Ce=function(dr){return xe+dr};function je(dr,wr){return dr+","+wr}var at=Pe(0),tt=function(dr){dr.x=Math.max(at,dr.x)},Je=S.pathbar.edgeshape,Ze=function(dr){var wr=Pe(Math.max(Math.min(dr.x0,dr.x0),0)),yt=Pe(Math.min(Math.max(dr.x1,dr.x1),U)),Fe=Ce(dr.y0),We=Ce(dr.y1),Oe=X/2,de={},me={};de.x=wr,me.x=yt,de.y=me.y=(Fe+We)/2;var be={x:wr,y:Fe},Ie={x:yt,y:Fe},Xe={x:yt,y:We},ht={x:wr,y:We};return Je===">"?(be.x-=Oe,Ie.x-=Oe,Xe.x-=Oe,ht.x-=Oe):Je==="/"?(Xe.x-=Oe,ht.x-=Oe,de.x-=Oe/2,me.x-=Oe/2):Je==="\\"?(be.x-=Oe,Ie.x-=Oe,de.x-=Oe/2,me.x-=Oe/2):Je==="<"&&(de.x-=Oe,me.x-=Oe),tt(be),tt(ht),tt(de),tt(Ie),tt(Xe),tt(me),"M"+je(be.x,be.y)+"L"+je(Ie.x,Ie.y)+"L"+je(me.x,me.y)+"L"+je(Xe.x,Xe.y)+"L"+je(ht.x,ht.y)+"L"+je(de.x,de.y)+"Z"},Me=S[_?"tiling":"marker"].pad,we=function(dr){return S.textposition.indexOf(dr)!==-1},he=we("top"),De=we("left"),et=we("right"),nt=we("bottom"),Ke=function(dr){var wr=ae(dr.x0),yt=ae(dr.x1),Fe=fe(dr.y0),We=fe(dr.y1),Oe=yt-wr,de=We-Fe;if(!Oe||!de)return"";var me=S.marker.cornerradius||0,be=Math.min(me,Oe/2,de/2);be&&dr.data&&dr.data.data&&dr.data.data.label&&(he&&(be=Math.min(be,Me.t)),De&&(be=Math.min(be,Me.l)),et&&(be=Math.min(be,Me.r)),nt&&(be=Math.min(be,Me.b)));var Ie=function(Xe,ht){return be?"a"+je(be,be)+" 0 0 1 "+je(Xe,ht):""};return"M"+je(wr,Fe+be)+Ie(be,-be)+"L"+je(yt-be,Fe)+Ie(be,be)+"L"+je(yt,We-be)+Ie(-be,be)+"L"+je(wr+be,We)+Ie(-be,-be)+"Z"},Et=function(dr,wr){var yt=dr.x0,Fe=dr.x1,We=dr.y0,Oe=dr.y1,de=dr.textBB,me=he||wr.isHeader&&!nt,be=me?"start":nt?"end":"middle",Ie=we("right"),Xe=we("left")||wr.onPathbar,ht=Xe?-1:Ie?1:0;if(wr.isHeader){if(yt+=(_?Me:Me.l)-e,Fe-=(_?Me:Me.r)-e,yt>=Fe){var bt=(yt+Fe)/2;yt=bt,Fe=bt}var Ct;nt?(Ct=Oe-(_?Me:Me.b),We-1,flipY:O.tiling.flip.indexOf("y")>-1,pad:{inner:O.tiling.pad,top:O.marker.pad.t,left:O.marker.pad.l,right:O.marker.pad.r,bottom:O.marker.pad.b}}),ue=te.descendants(),ie=1/0,le=-1/0;ue.forEach(function(se){var Q=se.depth;Q>=O._maxDepth?(se.x0=se.x1=(se.x0+se.x1)/2,se.y0=se.y1=(se.y0+se.y1)/2):(ie=Math.min(ie,Q),le=Math.max(le,Q))}),v=v.data(ue,i.getPtId),O._maxVisibleLayers=isFinite(le)?le-ie+1:0,v.enter().append("g").classed("slice",!0),u(v,n,I,[l,m],M),v.order();var q=null;if(d&&R){var J=i.getPtId(R);v.each(function(se){q===null&&i.getPtId(se)===J&&(q={x0:se.x0,x1:se.x1,y0:se.y0,y1:se.y1})})}var ee=function(){return q||{x0:0,x1:l,y0:0,y1:m}},Z=v;return d&&(Z=Z.transition().each("end",function(){var se=h.select(this);i.setSliceCursor(se,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),Z.each(function(se){var Q=i.isHeader(se,O);se._x0=w(se.x0),se._x1=w(se.x1),se._y0=S(se.y0),se._y1=S(se.y1),se._hoverX=w(se.x1-O.marker.pad.r),se._hoverY=S(U?se.y1-O.marker.pad.b/2:se.y0+O.marker.pad.t/2);var V=h.select(this),re=x.ensureSingle(V,"path","surface",function(Ce){Ce.style("pointer-events",z?"none":"all")});d?re.transition().attrTween("d",function(Ce){var je=g(Ce,n,ee(),[l,m]);return function(at){return M(je(at))}}):re.attr("d",M),V.call(a,p,c,f,{styleOne:t,eventDataKeys:r.eventDataKeys,transitionTime:r.CLICK_TRANSITION_TIME,transitionEasing:r.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,c,{isTransitioning:c._transitioning}),re.call(t,se,O,c,{hovered:!1}),se.x0===se.x1||se.y0===se.y1?se._text="":Q?se._text=X?"":i.getPtLabel(se)||"":se._text=o(se,p,O,f,F)||"";var ae=x.ensureSingle(V,"g","slicetext"),fe=x.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),xe=x.ensureUniformFontSize(c,i.determineTextFont(O,se,F.font)),Ae=se._text||" ",Pe=Q&&Ae.indexOf("
")===-1;fe.text(Ae).classed("slicetext",!0).attr("text-anchor",N?"end":P||Pe?"start":"middle").call(A.font,xe).call(E.convertToTspans,c),se.textBB=A.bBox(fe.node()),se.transform=_(se,{fontSize:xe.size,isHeader:Q}),se.transform.fontSize=xe.size,d?fe.transition().attrTween("transform",function(Ce){var je=y(Ce,n,ee(),[l,m]);return function(at){return b(je(at))}}):fe.attr("transform",b(se))}),q}}}),jL=He({"src/traces/treemap/plot.js"(Y,H){var h=O3(),x=UL();H.exports=function(E,e,t,r){return h(E,e,t,r,{type:"treemap",drawDescendants:x})}}}),VL=He({"src/traces/treemap/index.js"(Y,H){H.exports={moduleType:"trace",name:"treemap",basePlotModule:zL(),categories:[],animatable:!0,attributes:U_(),layoutAttributes:R3(),supplyDefaults:FL(),supplyLayoutDefaults:OL(),calc:D3().calc,crossTraceCalc:D3().crossTraceCalc,plot:jL(),style:j_().style,colorbar:ch(),meta:{}}}}),qL=He({"lib/treemap.js"(Y,H){H.exports=VL()}}),GL=He({"src/traces/icicle/base_plot.js"(Y){var H=$u();Y.name="icicle",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),B3=He({"src/traces/icicle/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=eu(),E=Ku().attributes,e=Bp(),t=Tm(),r=U_(),i=Wp(),a=Po().extendFlat,o=Yf().pattern;H.exports={labels:t.labels,parents:t.parents,values:t.values,branchvalues:t.branchvalues,count:t.count,level:t.level,maxdepth:t.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:r.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:a({colors:t.marker.colors,line:t.marker.line,pattern:o,editType:"calc"},A("marker",{colorAttr:"colors",anim:!1})),leaf:t.leaf,pathbar:r.pathbar,text:e.text,textinfo:t.textinfo,texttemplate:x({editType:"plot"},{keys:i.eventDataKeys.concat(["label","value"])}),hovertext:e.hovertext,hoverinfo:t.hoverinfo,hovertemplate:h({},{keys:i.eventDataKeys}),textfont:e.textfont,insidetextfont:e.insidetextfont,outsidetextfont:r.outsidetextfont,textposition:r.textposition,sort:e.sort,root:t.root,domain:E({name:"icicle",trace:!0,editType:"calc"})}}}),N3=He({"src/traces/icicle/layout_attributes.js"(Y,H){H.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),HL=He({"src/traces/icicle/defaults.js"(Y,H){var h=Qr(),x=B3(),A=zi(),E=Ku().defaults,e=Yh().handleText,t=Ip().TEXTPAD,r=Np().handleMarkerDefaults,i=Eu(),a=i.hasColorscale,o=i.handleDefaults;H.exports=function(s,c,f,p){function v(b,d){return h.coerce(s,c,x,b,d)}var T=v("labels"),l=v("parents");if(!T||!T.length||!l||!l.length){c.visible=!1;return}var m=v("values");m&&m.length?v("branchvalues"):v("count"),v("level"),v("maxdepth"),v("tiling.orientation"),v("tiling.flip"),v("tiling.pad");var w=v("text");v("texttemplate"),c.texttemplate||v("textinfo",h.isArrayOrTypedArray(w)?"text+label":"label"),v("hovertext"),v("hovertemplate");var S=v("pathbar.visible"),M="auto";e(s,c,p,v,M,{hasPathbar:S,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),v("textposition"),r(s,c,p,v);var _=c._hasColorscale=a(s,"marker","colors")||(s.marker||{}).coloraxis;_&&o(s,c,p,v,{prefix:"marker.",cLetter:"c"}),v("leaf.opacity",_?1:.7),c._hovered={marker:{line:{width:2,color:A.contrast(p.paper_bgcolor)}}},S&&(v("pathbar.thickness",c.pathbar.textfont.size+2*t),v("pathbar.side"),v("pathbar.edgeshape")),v("sort"),v("root.color"),E(c,p,v),c._length=null}}}),WL=He({"src/traces/icicle/layout_defaults.js"(Y,H){var h=Qr(),x=N3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("iciclecolorway",e.colorway),t("extendiciclecolors")}}}),U3=He({"src/traces/icicle/calc.js"(Y){var H=Sm();Y.calc=function(h,x){return H.calc(h,x)},Y.crossTraceCalc=function(h){return H._runCrossTraceCalc("icicle",h)}}}),XL=He({"src/traces/icicle/partition.js"(Y,H){var h=Am(),x=z3();H.exports=function(E,e,t){var r=t.flipX,i=t.flipY,a=t.orientation==="h",o=t.maxDepth,n=e[0],s=e[1];o&&(n=(E.height+1)*e[0]/Math.min(E.height+1,o),s=(E.height+1)*e[1]/Math.min(E.height+1,o));var c=h.partition().padding(t.pad.inner).size(a?[e[1],n]:[e[0],s])(E);return(a||r||i)&&x(c,e,{swapXY:a,flipX:r,flipY:i}),c}}}),j3=He({"src/traces/icicle/style.js"(Y,H){var h=yi(),x=zi(),A=Qr(),E=gh().resizeText,e=B_();function t(i){var a=i._fullLayout._iciclelayer.selectAll(".trace");E(i,a,"icicle"),a.each(function(o){var n=h.select(this),s=o[0],c=s.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(f){h.select(this).call(r,f,c,i)})})}function r(i,a,o,n){var s=a.data.data,c=!a.children,f=s.i,p=A.castOption(o,f,"marker.line.color")||x.defaultLine,v=A.castOption(o,f,"marker.line.width")||0;i.call(e,a,o,n).style("stroke-width",v).call(x.stroke,p).style("opacity",c?o.leaf.opacity:null)}H.exports={style:t,styleOne:r}}}),ZL=He({"src/traces/icicle/draw_descendants.js"(Y,H){var h=yi(),x=Qr(),A=Io(),E=jl(),e=XL(),t=j3().styleOne,r=Wp(),i=ud(),a=jm(),o=N_().formatSliceLabel,n=!1;H.exports=function(c,f,p,v,T){var l=T.width,m=T.height,w=T.viewX,S=T.viewY,M=T.pathSlice,_=T.toMoveInsideSlice,b=T.strTransform,d=T.hasTransition,u=T.handleSlicesExit,g=T.makeUpdateSliceInterpolator,y=T.makeUpdateTextInterpolator,R=T.prevEntry,I={},z=c._context.staticPlot,F=c._fullLayout,B=f[0],O=B.trace,P=O.textposition.indexOf("left")!==-1,N=O.textposition.indexOf("right")!==-1,U=O.textposition.indexOf("bottom")!==-1,X=e(p,[l,m],{flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1,orientation:O.tiling.orientation,pad:{inner:O.tiling.pad},maxDepth:O._maxDepth}),te=X.descendants(),ue=1/0,ie=-1/0;te.forEach(function(Z){var se=Z.depth;se>=O._maxDepth?(Z.x0=Z.x1=(Z.x0+Z.x1)/2,Z.y0=Z.y1=(Z.y0+Z.y1)/2):(ue=Math.min(ue,se),ie=Math.max(ie,se))}),v=v.data(te,i.getPtId),O._maxVisibleLayers=isFinite(ie)?ie-ue+1:0,v.enter().append("g").classed("slice",!0),u(v,n,I,[l,m],M),v.order();var le=null;if(d&&R){var q=i.getPtId(R);v.each(function(Z){le===null&&i.getPtId(Z)===q&&(le={x0:Z.x0,x1:Z.x1,y0:Z.y0,y1:Z.y1})})}var J=function(){return le||{x0:0,x1:l,y0:0,y1:m}},ee=v;return d&&(ee=ee.transition().each("end",function(){var Z=h.select(this);i.setSliceCursor(Z,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ee.each(function(Z){Z._x0=w(Z.x0),Z._x1=w(Z.x1),Z._y0=S(Z.y0),Z._y1=S(Z.y1),Z._hoverX=w(Z.x1-O.tiling.pad),Z._hoverY=S(U?Z.y1-O.tiling.pad/2:Z.y0+O.tiling.pad/2);var se=h.select(this),Q=x.ensureSingle(se,"path","surface",function(fe){fe.style("pointer-events",z?"none":"all")});d?Q.transition().attrTween("d",function(fe){var xe=g(fe,n,J(),[l,m],{orientation:O.tiling.orientation,flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1});return function(Ae){return M(xe(Ae))}}):Q.attr("d",M),se.call(a,p,c,f,{styleOne:t,eventDataKeys:r.eventDataKeys,transitionTime:r.CLICK_TRANSITION_TIME,transitionEasing:r.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,c,{isTransitioning:c._transitioning}),Q.call(t,Z,O,c,{hovered:!1}),Z.x0===Z.x1||Z.y0===Z.y1?Z._text="":Z._text=o(Z,p,O,f,F)||"";var V=x.ensureSingle(se,"g","slicetext"),re=x.ensureSingle(V,"text","",function(fe){fe.attr("data-notex",1)}),ae=x.ensureUniformFontSize(c,i.determineTextFont(O,Z,F.font));re.text(Z._text||" ").classed("slicetext",!0).attr("text-anchor",N?"end":P?"start":"middle").call(A.font,ae).call(E.convertToTspans,c),Z.textBB=A.bBox(re.node()),Z.transform=_(Z,{fontSize:ae.size}),Z.transform.fontSize=ae.size,d?re.transition().attrTween("transform",function(fe){var xe=y(fe,n,J(),[l,m]);return function(Ae){return b(xe(Ae))}}):re.attr("transform",b(Z))}),le}}}),YL=He({"src/traces/icicle/plot.js"(Y,H){var h=O3(),x=ZL();H.exports=function(E,e,t,r){return h(E,e,t,r,{type:"icicle",drawDescendants:x})}}}),$L=He({"src/traces/icicle/index.js"(Y,H){H.exports={moduleType:"trace",name:"icicle",basePlotModule:GL(),categories:[],animatable:!0,attributes:B3(),layoutAttributes:N3(),supplyDefaults:HL(),supplyLayoutDefaults:WL(),calc:U3().calc,crossTraceCalc:U3().crossTraceCalc,plot:YL(),style:j3().style,colorbar:ch(),meta:{}}}}),KL=He({"lib/icicle.js"(Y,H){H.exports=$L()}}),JL=He({"src/traces/funnelarea/base_plot.js"(Y){var H=$u();Y.name="funnelarea",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),V3=He({"src/traces/funnelarea/attributes.js"(Y,H){var h=Bp(),x=Ll(),A=Ku().attributes,E=us().hovertemplateAttrs,e=us().texttemplateAttrs,t=Po().extendFlat;H.exports={labels:h.labels,label0:h.label0,dlabel:h.dlabel,values:h.values,marker:{colors:h.marker.colors,line:{color:t({},h.marker.line.color,{dflt:null}),width:t({},h.marker.line.width,{dflt:1}),editType:"calc"},pattern:h.marker.pattern,editType:"calc"},text:h.text,hovertext:h.hovertext,scalegroup:t({},h.scalegroup,{}),textinfo:t({},h.textinfo,{flags:["label","text","value","percent"]}),texttemplate:e({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:t({},x.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:E({},{keys:["label","color","value","text","percent"]}),textposition:t({},h.textposition,{values:["inside","none"],dflt:"inside"}),textfont:h.textfont,insidetextfont:h.insidetextfont,title:{text:h.title.text,font:h.title.font,position:t({},h.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:A({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}}}),q3=He({"src/traces/funnelarea/layout_attributes.js"(Y,H){var h=l_().hiddenlabels;H.exports={hiddenlabels:h,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),QL=He({"src/traces/funnelarea/defaults.js"(Y,H){var h=Qr(),x=V3(),A=Ku().defaults,E=Yh().handleText,e=Np().handleLabelsAndValues,t=Np().handleMarkerDefaults;H.exports=function(i,a,o,n){function s(M,_){return h.coerce(i,a,x,M,_)}var c=s("labels"),f=s("values"),p=e(c,f),v=p.len;if(a._hasLabels=p.hasLabels,a._hasValues=p.hasValues,!a._hasLabels&&a._hasValues&&(s("label0"),s("dlabel")),!v){a.visible=!1;return}a._length=v,t(i,a,n,s),s("scalegroup");var T=s("text"),l=s("texttemplate"),m;if(l||(m=s("textinfo",Array.isArray(T)?"text+percent":"percent")),s("hovertext"),s("hovertemplate"),l||m&&m!=="none"){var w=s("textposition");E(i,a,n,s,w,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else m==="none"&&s("textposition","none");A(a,n,s);var S=s("title.text");S&&(s("title.position"),h.coerceFont(s,"title.font",n.font)),s("aspectratio"),s("baseratio")}}}),e6=He({"src/traces/funnelarea/layout_defaults.js"(Y,H){var h=Qr(),x=q3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("hiddenlabels"),t("funnelareacolorway",e.colorway),t("extendfunnelareacolors")}}}),G3=He({"src/traces/funnelarea/calc.js"(Y,H){var h=ng();function x(E,e){return h.calc(E,e)}function A(E){h.crossTraceCalc(E,{type:"funnelarea"})}H.exports={calc:x,crossTraceCalc:A}}}),t6=He({"src/traces/funnelarea/plot.js"(Y,H){var h=yi(),x=Io(),A=Qr(),E=A.strScale,e=A.strTranslate,t=jl(),r=Rp(),i=r.toMoveInsideBar,a=gh(),o=a.recordMinTextSize,n=a.clearMinTextSize,s=Hd(),c=u_(),f=c.attachFxHandlers,p=c.determineInsideTextFont,v=c.layoutAreas,T=c.prerenderTitles,l=c.positionTitleOutside,m=c.formatSliceLabel;H.exports=function(b,d){var u=b._context.staticPlot,g=b._fullLayout;n("funnelarea",g),T(d,b),v(d,g._size),A.makeTraceGroups(g._funnelarealayer,d,"trace").each(function(y){var R=h.select(this),I=y[0],z=I.trace;M(y),R.each(function(){var F=h.select(this).selectAll("g.slice").data(y);F.enter().append("g").classed("slice",!0),F.exit().remove(),F.each(function(O,P){if(O.hidden){h.select(this).selectAll("path,g").remove();return}O.pointNumber=O.i,O.curveNumber=z.index;var N=I.cx,U=I.cy,X=h.select(this),te=X.selectAll("path.surface").data([O]);te.enter().append("path").classed("surface",!0).style({"pointer-events":u?"none":"all"}),X.call(f,b,y);var ue="M"+(N+O.TR[0])+","+(U+O.TR[1])+w(O.TR,O.BR)+w(O.BR,O.BL)+w(O.BL,O.TL)+"Z";te.attr("d",ue),m(b,O,I);var ie=s.castOption(z.textposition,O.pts),le=X.selectAll("g.slicetext").data(O.text&&ie!=="none"?[0]:[]);le.enter().append("g").classed("slicetext",!0),le.exit().remove(),le.each(function(){var q=A.ensureSingle(h.select(this),"text","",function(ae){ae.attr("data-notex",1)}),J=A.ensureUniformFontSize(b,p(z,O,g.font));q.text(O.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(x.font,J).call(t.convertToTspans,b);var ee=x.bBox(q.node()),Z,se,Q,V=Math.min(O.BL[1],O.BR[1])+U,re=Math.max(O.TL[1],O.TR[1])+U;se=Math.max(O.TL[0],O.BL[0])+N,Q=Math.min(O.TR[0],O.BR[0])+N,Z=i(se,Q,V,re,ee,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),Z.fontSize=J.size,o(z.type,Z,g),y[P].transform=Z,A.setTransormAndDisplay(q,Z)})});var B=h.select(this).selectAll("g.titletext").data(z.title.text?[0]:[]);B.enter().append("g").classed("titletext",!0),B.exit().remove(),B.each(function(){var O=A.ensureSingle(h.select(this),"text","",function(U){U.attr("data-notex",1)}),P=z.title.text;z._meta&&(P=A.templateString(P,z._meta)),O.text(P).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(x.font,z.title.font).call(t.convertToTspans,b);var N=l(I,g._size);O.attr("transform",e(N.x,N.y)+E(Math.min(1,N.scale))+e(N.tx,N.ty))})})})};function w(_,b){var d=b[0]-_[0],u=b[1]-_[1];return"l"+d+","+u}function S(_,b){return[.5*(_[0]+b[0]),.5*(_[1]+b[1])]}function M(_){if(!_.length)return;var b=_[0],d=b.trace,u=d.aspectratio,g=d.baseratio;g>.999&&(g=.999);var y=Math.pow(g,2),R=b.vTotal,I=R*y/(1-y),z=R,F=I/R;function B(){var fe=Math.sqrt(F);return{x:fe,y:-fe}}function O(){var fe=B();return[fe.x,fe.y]}var P,N=[];N.push(O());var U,X;for(U=_.length-1;U>-1;U--)if(X=_[U],!X.hidden){var te=X.v/z;F+=te,N.push(O())}var ue=1/0,ie=-1/0;for(U=0;U-1;U--)if(X=_[U],!X.hidden){V+=1;var re=N[V][0],ae=N[V][1];X.TL=[-re,ae],X.TR=[re,ae],X.BL=se,X.BR=Q,X.pxmid=S(X.TR,X.BR),se=X.TL,Q=X.TR}}}}),r6=He({"src/traces/funnelarea/style.js"(Y,H){var h=yi(),x=V0(),A=gh().resizeText;H.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");A(e,t,"funnelarea"),t.each(function(r){var i=r[0],a=i.trace,o=h.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(n){h.select(this).call(x,n,a,e)})})}}}),a6=He({"src/traces/funnelarea/index.js"(Y,H){H.exports={moduleType:"trace",name:"funnelarea",basePlotModule:JL(),categories:["pie-like","funnelarea","showLegend"],attributes:V3(),layoutAttributes:q3(),supplyDefaults:QL(),supplyLayoutDefaults:e6(),calc:G3().calc,crossTraceCalc:G3().crossTraceCalc,plot:t6(),style:r6(),styleOne:V0(),meta:{}}}}),n6=He({"lib/funnelarea.js"(Y,H){H.exports=a6()}}),eh=He({"stackgl_modules/index.js"(Y,H){(function(){var h={1964:function(e,t,r){e.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},4793:function(e,t,r){function i(de,me){if(!(de instanceof me))throw new TypeError("Cannot call a class as a function")}function a(de,me){for(var be=0;beb)throw new RangeError('The value "'+de+'" is invalid for option "size"');var me=new Uint8Array(de);return Object.setPrototypeOf(me,g.prototype),me}function g(de,me,be){if(typeof de=="number"){if(typeof me=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(de)}return y(de,me,be)}g.poolSize=8192;function y(de,me,be){if(typeof de=="string")return F(de,me);if(ArrayBuffer.isView(de))return O(de);if(de==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(de));if(wr(de,ArrayBuffer)||de&&wr(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wr(de,SharedArrayBuffer)||de&&wr(de.buffer,SharedArrayBuffer)))return P(de,me,be);if(typeof de=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ie=de.valueOf&&de.valueOf();if(Ie!=null&&Ie!==de)return g.from(Ie,me,be);var Xe=N(de);if(Xe)return Xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof de[Symbol.toPrimitive]=="function")return g.from(de[Symbol.toPrimitive]("string"),me,be);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(de))}g.from=function(de,me,be){return y(de,me,be)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function R(de){if(typeof de!="number")throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function I(de,me,be){return R(de),de<=0?u(de):me!==void 0?typeof be=="string"?u(de).fill(me,be):u(de).fill(me):u(de)}g.alloc=function(de,me,be){return I(de,me,be)};function z(de){return R(de),u(de<0?0:U(de)|0)}g.allocUnsafe=function(de){return z(de)},g.allocUnsafeSlow=function(de){return z(de)};function F(de,me){if((typeof me!="string"||me==="")&&(me="utf8"),!g.isEncoding(me))throw new TypeError("Unknown encoding: "+me);var be=X(de,me)|0,Ie=u(be),Xe=Ie.write(de,me);return Xe!==be&&(Ie=Ie.slice(0,Xe)),Ie}function B(de){for(var me=de.length<0?0:U(de.length)|0,be=u(me),Ie=0;Ie=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return de|0}g.isBuffer=function(me){return me!=null&&me._isBuffer===!0&&me!==g.prototype},g.compare=function(me,be){if(wr(me,Uint8Array)&&(me=g.from(me,me.offset,me.byteLength)),wr(be,Uint8Array)&&(be=g.from(be,be.offset,be.byteLength)),!g.isBuffer(me)||!g.isBuffer(be))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(me===be)return 0;for(var Ie=me.length,Xe=be.length,ht=0,bt=Math.min(Ie,Xe);htXe.length?(g.isBuffer(bt)||(bt=g.from(bt)),bt.copy(Xe,ht)):Uint8Array.prototype.set.call(Xe,bt,ht);else if(g.isBuffer(bt))bt.copy(Xe,ht);else throw new TypeError('"list" argument must be an Array of Buffers');ht+=bt.length}return Xe};function X(de,me){if(g.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||wr(de,ArrayBuffer))return de.byteLength;if(typeof de!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(de));var be=de.length,Ie=arguments.length>2&&arguments[2]===!0;if(!Ie&&be===0)return 0;for(var Xe=!1;;)switch(me){case"ascii":case"latin1":case"binary":return be;case"utf8":case"utf-8":return Yt(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be*2;case"hex":return be>>>1;case"base64":return Rr(de).length;default:if(Xe)return Ie?-1:Yt(de).length;me=(""+me).toLowerCase(),Xe=!0}}g.byteLength=X;function te(de,me,be){var Ie=!1;if((me===void 0||me<0)&&(me=0),me>this.length||((be===void 0||be>this.length)&&(be=this.length),be<=0)||(be>>>=0,me>>>=0,be<=me))return"";for(de||(de="utf8");;)switch(de){case"hex":return Ae(this,me,be);case"utf8":case"utf-8":return V(this,me,be);case"ascii":return fe(this,me,be);case"latin1":case"binary":return xe(this,me,be);case"base64":return Q(this,me,be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,me,be);default:if(Ie)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Ie=!0}}g.prototype._isBuffer=!0;function ue(de,me,be){var Ie=de[me];de[me]=de[be],de[be]=Ie}g.prototype.swap16=function(){var me=this.length;if(me%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var be=0;bebe&&(me+=" ... "),""},_&&(g.prototype[_]=g.prototype.inspect),g.prototype.compare=function(me,be,Ie,Xe,ht){if(wr(me,Uint8Array)&&(me=g.from(me,me.offset,me.byteLength)),!g.isBuffer(me))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(me));if(be===void 0&&(be=0),Ie===void 0&&(Ie=me?me.length:0),Xe===void 0&&(Xe=0),ht===void 0&&(ht=this.length),be<0||Ie>me.length||Xe<0||ht>this.length)throw new RangeError("out of range index");if(Xe>=ht&&be>=Ie)return 0;if(Xe>=ht)return-1;if(be>=Ie)return 1;if(be>>>=0,Ie>>>=0,Xe>>>=0,ht>>>=0,this===me)return 0;for(var bt=ht-Xe,Ct=Ie-be,Zt=Math.min(bt,Ct),Wt=this.slice(Xe,ht),rr=me.slice(be,Ie),Jt=0;Jt2147483647?be=2147483647:be<-2147483648&&(be=-2147483648),be=+be,yt(be)&&(be=Xe?0:de.length-1),be<0&&(be=de.length+be),be>=de.length){if(Xe)return-1;be=de.length-1}else if(be<0)if(Xe)be=0;else return-1;if(typeof me=="string"&&(me=g.from(me,Ie)),g.isBuffer(me))return me.length===0?-1:le(de,me,be,Ie,Xe);if(typeof me=="number")return me=me&255,typeof Uint8Array.prototype.indexOf=="function"?Xe?Uint8Array.prototype.indexOf.call(de,me,be):Uint8Array.prototype.lastIndexOf.call(de,me,be):le(de,[me],be,Ie,Xe);throw new TypeError("val must be string, number or Buffer")}function le(de,me,be,Ie,Xe){var ht=1,bt=de.length,Ct=me.length;if(Ie!==void 0&&(Ie=String(Ie).toLowerCase(),Ie==="ucs2"||Ie==="ucs-2"||Ie==="utf16le"||Ie==="utf-16le")){if(de.length<2||me.length<2)return-1;ht=2,bt/=2,Ct/=2,be/=2}function Zt(ia,Ia){return ht===1?ia[Ia]:ia.readUInt16BE(Ia*ht)}var Wt;if(Xe){var rr=-1;for(Wt=be;Wtbt&&(be=bt-Ct),Wt=be;Wt>=0;Wt--){for(var Jt=!0,mr=0;mrXe&&(Ie=Xe)):Ie=Xe;var ht=me.length;Ie>ht/2&&(Ie=ht/2);var bt;for(bt=0;bt>>0,isFinite(Ie)?(Ie=Ie>>>0,Xe===void 0&&(Xe="utf8")):(Xe=Ie,Ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ht=this.length-be;if((Ie===void 0||Ie>ht)&&(Ie=ht),me.length>0&&(Ie<0||be<0)||be>this.length)throw new RangeError("Attempt to write outside buffer bounds");Xe||(Xe="utf8");for(var bt=!1;;)switch(Xe){case"hex":return q(this,me,be,Ie);case"utf8":case"utf-8":return J(this,me,be,Ie);case"ascii":case"latin1":case"binary":return ee(this,me,be,Ie);case"base64":return Z(this,me,be,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,me,be,Ie);default:if(bt)throw new TypeError("Unknown encoding: "+Xe);Xe=(""+Xe).toLowerCase(),bt=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(de,me,be){return me===0&&be===de.length?S.fromByteArray(de):S.fromByteArray(de.slice(me,be))}function V(de,me,be){be=Math.min(de.length,be);for(var Ie=[],Xe=me;Xe239?4:ht>223?3:ht>191?2:1;if(Xe+Ct<=be){var Zt=void 0,Wt=void 0,rr=void 0,Jt=void 0;switch(Ct){case 1:ht<128&&(bt=ht);break;case 2:Zt=de[Xe+1],(Zt&192)===128&&(Jt=(ht&31)<<6|Zt&63,Jt>127&&(bt=Jt));break;case 3:Zt=de[Xe+1],Wt=de[Xe+2],(Zt&192)===128&&(Wt&192)===128&&(Jt=(ht&15)<<12|(Zt&63)<<6|Wt&63,Jt>2047&&(Jt<55296||Jt>57343)&&(bt=Jt));break;case 4:Zt=de[Xe+1],Wt=de[Xe+2],rr=de[Xe+3],(Zt&192)===128&&(Wt&192)===128&&(rr&192)===128&&(Jt=(ht&15)<<18|(Zt&63)<<12|(Wt&63)<<6|rr&63,Jt>65535&&Jt<1114112&&(bt=Jt))}}bt===null?(bt=65533,Ct=1):bt>65535&&(bt-=65536,Ie.push(bt>>>10&1023|55296),bt=56320|bt&1023),Ie.push(bt),Xe+=Ct}return ae(Ie)}var re=4096;function ae(de){var me=de.length;if(me<=re)return String.fromCharCode.apply(String,de);for(var be="",Ie=0;IeIe)&&(be=Ie);for(var Xe="",ht=me;htIe&&(me=Ie),be<0?(be+=Ie,be<0&&(be=0)):be>Ie&&(be=Ie),bebe)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(me,be,Ie){me=me>>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me],ht=1,bt=0;++bt>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me+--be],ht=1;be>0&&(ht*=256);)Xe+=this[me+--be]*ht;return Xe},g.prototype.readUint8=g.prototype.readUInt8=function(me,be){return me=me>>>0,be||Ce(me,1,this.length),this[me]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(me,be){return me=me>>>0,be||Ce(me,2,this.length),this[me]|this[me+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(me,be){return me=me>>>0,be||Ce(me,2,this.length),this[me]<<8|this[me+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),(this[me]|this[me+1]<<8|this[me+2]<<16)+this[me+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]*16777216+(this[me+1]<<16|this[me+2]<<8|this[me+3])},g.prototype.readBigUInt64LE=We(function(me){me=me>>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=be+this[++me]*Math.pow(2,8)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,24),ht=this[++me]+this[++me]*Math.pow(2,8)+this[++me]*Math.pow(2,16)+Ie*Math.pow(2,24);return BigInt(Xe)+(BigInt(ht)<>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=be*Math.pow(2,24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+this[++me],ht=this[++me]*Math.pow(2,24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+Ie;return(BigInt(Xe)<>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me],ht=1,bt=0;++bt=ht&&(Xe-=Math.pow(2,8*be)),Xe},g.prototype.readIntBE=function(me,be,Ie){me=me>>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=be,ht=1,bt=this[me+--Xe];Xe>0&&(ht*=256);)bt+=this[me+--Xe]*ht;return ht*=128,bt>=ht&&(bt-=Math.pow(2,8*be)),bt},g.prototype.readInt8=function(me,be){return me=me>>>0,be||Ce(me,1,this.length),this[me]&128?(255-this[me]+1)*-1:this[me]},g.prototype.readInt16LE=function(me,be){me=me>>>0,be||Ce(me,2,this.length);var Ie=this[me]|this[me+1]<<8;return Ie&32768?Ie|4294901760:Ie},g.prototype.readInt16BE=function(me,be){me=me>>>0,be||Ce(me,2,this.length);var Ie=this[me+1]|this[me]<<8;return Ie&32768?Ie|4294901760:Ie},g.prototype.readInt32LE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]|this[me+1]<<8|this[me+2]<<16|this[me+3]<<24},g.prototype.readInt32BE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]<<24|this[me+1]<<16|this[me+2]<<8|this[me+3]},g.prototype.readBigInt64LE=We(function(me){me=me>>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=this[me+4]+this[me+5]*Math.pow(2,8)+this[me+6]*Math.pow(2,16)+(Ie<<24);return(BigInt(Xe)<>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=(be<<24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+this[++me];return(BigInt(Xe)<>>0,be||Ce(me,4,this.length),M.read(this,me,!0,23,4)},g.prototype.readFloatBE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),M.read(this,me,!1,23,4)},g.prototype.readDoubleLE=function(me,be){return me=me>>>0,be||Ce(me,8,this.length),M.read(this,me,!0,52,8)},g.prototype.readDoubleBE=function(me,be){return me=me>>>0,be||Ce(me,8,this.length),M.read(this,me,!1,52,8)};function je(de,me,be,Ie,Xe,ht){if(!g.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(me>Xe||mede.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,Ie=Ie>>>0,!Xe){var ht=Math.pow(2,8*Ie)-1;je(this,me,be,Ie,ht,0)}var bt=1,Ct=0;for(this[be]=me&255;++Ct>>0,Ie=Ie>>>0,!Xe){var ht=Math.pow(2,8*Ie)-1;je(this,me,be,Ie,ht,0)}var bt=Ie-1,Ct=1;for(this[be+bt]=me&255;--bt>=0&&(Ct*=256);)this[be+bt]=me/Ct&255;return be+Ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,1,255,0),this[be]=me&255,be+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,65535,0),this[be]=me&255,this[be+1]=me>>>8,be+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,65535,0),this[be]=me>>>8,this[be+1]=me&255,be+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,4294967295,0),this[be+3]=me>>>24,this[be+2]=me>>>16,this[be+1]=me>>>8,this[be]=me&255,be+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,4294967295,0),this[be]=me>>>24,this[be+1]=me>>>16,this[be+2]=me>>>8,this[be+3]=me&255,be+4};function at(de,me,be,Ie,Xe){nt(me,Ie,Xe,de,be,7);var ht=Number(me&BigInt(4294967295));de[be++]=ht,ht=ht>>8,de[be++]=ht,ht=ht>>8,de[be++]=ht,ht=ht>>8,de[be++]=ht;var bt=Number(me>>BigInt(32)&BigInt(4294967295));return de[be++]=bt,bt=bt>>8,de[be++]=bt,bt=bt>>8,de[be++]=bt,bt=bt>>8,de[be++]=bt,be}function tt(de,me,be,Ie,Xe){nt(me,Ie,Xe,de,be,7);var ht=Number(me&BigInt(4294967295));de[be+7]=ht,ht=ht>>8,de[be+6]=ht,ht=ht>>8,de[be+5]=ht,ht=ht>>8,de[be+4]=ht;var bt=Number(me>>BigInt(32)&BigInt(4294967295));return de[be+3]=bt,bt=bt>>8,de[be+2]=bt,bt=bt>>8,de[be+1]=bt,bt=bt>>8,de[be]=bt,be+8}g.prototype.writeBigUInt64LE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return at(this,me,be,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tt(this,me,be,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,!Xe){var ht=Math.pow(2,8*Ie-1);je(this,me,be,Ie,ht-1,-ht)}var bt=0,Ct=1,Zt=0;for(this[be]=me&255;++bt>0)-Zt&255;return be+Ie},g.prototype.writeIntBE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,!Xe){var ht=Math.pow(2,8*Ie-1);je(this,me,be,Ie,ht-1,-ht)}var bt=Ie-1,Ct=1,Zt=0;for(this[be+bt]=me&255;--bt>=0&&(Ct*=256);)me<0&&Zt===0&&this[be+bt+1]!==0&&(Zt=1),this[be+bt]=(me/Ct>>0)-Zt&255;return be+Ie},g.prototype.writeInt8=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,1,127,-128),me<0&&(me=255+me+1),this[be]=me&255,be+1},g.prototype.writeInt16LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,32767,-32768),this[be]=me&255,this[be+1]=me>>>8,be+2},g.prototype.writeInt16BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,32767,-32768),this[be]=me>>>8,this[be+1]=me&255,be+2},g.prototype.writeInt32LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,2147483647,-2147483648),this[be]=me&255,this[be+1]=me>>>8,this[be+2]=me>>>16,this[be+3]=me>>>24,be+4},g.prototype.writeInt32BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,2147483647,-2147483648),me<0&&(me=4294967295+me+1),this[be]=me>>>24,this[be+1]=me>>>16,this[be+2]=me>>>8,this[be+3]=me&255,be+4},g.prototype.writeBigInt64LE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return at(this,me,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tt(this,me,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(de,me,be,Ie,Xe,ht){if(be+Ie>de.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("Index out of range")}function Ze(de,me,be,Ie,Xe){return me=+me,be=be>>>0,Xe||Je(de,me,be,4),M.write(de,me,be,Ie,23,4),be+4}g.prototype.writeFloatLE=function(me,be,Ie){return Ze(this,me,be,!0,Ie)},g.prototype.writeFloatBE=function(me,be,Ie){return Ze(this,me,be,!1,Ie)};function Me(de,me,be,Ie,Xe){return me=+me,be=be>>>0,Xe||Je(de,me,be,8),M.write(de,me,be,Ie,52,8),be+8}g.prototype.writeDoubleLE=function(me,be,Ie){return Me(this,me,be,!0,Ie)},g.prototype.writeDoubleBE=function(me,be,Ie){return Me(this,me,be,!1,Ie)},g.prototype.copy=function(me,be,Ie,Xe){if(!g.isBuffer(me))throw new TypeError("argument should be a Buffer");if(Ie||(Ie=0),!Xe&&Xe!==0&&(Xe=this.length),be>=me.length&&(be=me.length),be||(be=0),Xe>0&&Xe=this.length)throw new RangeError("Index out of range");if(Xe<0)throw new RangeError("sourceEnd out of bounds");Xe>this.length&&(Xe=this.length),me.length-be>>0,Ie=Ie===void 0?this.length:Ie>>>0,me||(me=0);var bt;if(typeof me=="number")for(bt=be;btMath.pow(2,32)?Xe=De(String(be)):typeof be=="bigint"&&(Xe=String(be),(be>Math.pow(BigInt(2),BigInt(32))||be<-Math.pow(BigInt(2),BigInt(32)))&&(Xe=De(Xe)),Xe+="n"),Ie+=" It must be ".concat(me,". Received ").concat(Xe),Ie},RangeError);function De(de){for(var me="",be=de.length,Ie=de[0]==="-"?1:0;be>=Ie+4;be-=3)me="_".concat(de.slice(be-3,be)).concat(me);return"".concat(de.slice(0,be)).concat(me)}function et(de,me,be){Ke(me,"offset"),(de[me]===void 0||de[me+be]===void 0)&&Et(me,de.length-(be+1))}function nt(de,me,be,Ie,Xe,ht){if(de>be||de= 0".concat(bt," and < 2").concat(bt," ** ").concat((ht+1)*8).concat(bt):Ct=">= -(2".concat(bt," ** ").concat((ht+1)*8-1).concat(bt,") and < 2 ** ")+"".concat((ht+1)*8-1).concat(bt),new we.ERR_OUT_OF_RANGE("value",Ct,de)}et(Ie,Xe,ht)}function Ke(de,me){if(typeof de!="number")throw new we.ERR_INVALID_ARG_TYPE(me,"number",de)}function Et(de,me,be){throw Math.floor(de)!==de?(Ke(de,be),new we.ERR_OUT_OF_RANGE("offset","an integer",de)):me<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(me),de)}var kt=/[^+/0-9A-Za-z-_]/g;function Ut(de){if(de=de.split("=")[0],de=de.trim().replace(kt,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function Yt(de,me){me=me||1/0;for(var be,Ie=de.length,Xe=null,ht=[],bt=0;bt55295&&be<57344){if(!Xe){if(be>56319){(me-=3)>-1&&ht.push(239,191,189);continue}else if(bt+1===Ie){(me-=3)>-1&&ht.push(239,191,189);continue}Xe=be;continue}if(be<56320){(me-=3)>-1&&ht.push(239,191,189),Xe=be;continue}be=(Xe-55296<<10|be-56320)+65536}else Xe&&(me-=3)>-1&&ht.push(239,191,189);if(Xe=null,be<128){if((me-=1)<0)break;ht.push(be)}else if(be<2048){if((me-=2)<0)break;ht.push(be>>6|192,be&63|128)}else if(be<65536){if((me-=3)<0)break;ht.push(be>>12|224,be>>6&63|128,be&63|128)}else if(be<1114112){if((me-=4)<0)break;ht.push(be>>18|240,be>>12&63|128,be>>6&63|128,be&63|128)}else throw new Error("Invalid code point")}return ht}function vr(de){for(var me=[],be=0;be>8,Xe=be%256,ht.push(Xe),ht.push(Ie);return ht}function Rr(de){return S.toByteArray(Ut(de))}function dr(de,me,be,Ie){var Xe;for(Xe=0;Xe=me.length||Xe>=de.length);++Xe)me[Xe+be]=de[Xe];return Xe}function wr(de,me){return de instanceof me||de!=null&&de.constructor!=null&&de.constructor.name!=null&&de.constructor.name===me.name}function yt(de){return de!==de}var Fe=function(){for(var de="0123456789abcdef",me=new Array(256),be=0;be<16;++be)for(var Ie=be*16,Xe=0;Xe<16;++Xe)me[Ie+Xe]=de[be]+de[Xe];return me}();function We(de){return typeof BigInt>"u"?Oe:de}function Oe(){throw new Error("BigInt not supported")}},9216:function(e){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/,i=/android|ipad|playbook|silk/i;function a(o){o||(o={});var n=o.ua;if(!n&&typeof navigator<"u"&&(n=navigator.userAgent),n&&n.headers&&typeof n.headers["user-agent"]=="string"&&(n=n.headers["user-agent"]),typeof n!="string")return!1;var s=t.test(n)&&!r.test(n)||!!o.tablet&&i.test(n);return!s&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&n.indexOf("Macintosh")!==-1&&n.indexOf("Safari")!==-1&&(s=!0),s}},6296:function(e,t,r){e.exports=c;var i=r(7261),a=r(9977),o=r(1811);function n(f,p){this._controllerNames=Object.keys(f),this._controllerList=this._controllerNames.map(function(v){return f[v]}),this._mode=p,this._active=f[p],this._active||(this._mode="turntable",this._active=f.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=n.prototype;s.flush=function(f){for(var p=this._controllerList,v=0;v"u"?r(1538):WeakMap,a=r(2762),o=r(8116),n=new i;function s(c){var f=n.get(c),p=f&&(f._triangleBuffer.handle||f._triangleBuffer.buffer);if(!p||!c.isBuffer(p)){var v=a(c,new Float32Array([-1,-1,-1,4,4,-1]));f=o(c,[{buffer:v,type:c.FLOAT,size:2}]),f._triangleBuffer=v,n.set(c,f)}f.bind(),c.drawArrays(c.TRIANGLES,0,3),f.unbind()}e.exports=s},1085:function(e,t,r){var i=r(1371);e.exports=a;function a(o,n,s){n=typeof n=="number"?n:1,s=s||": ";var c=o.split(/\r?\n/),f=String(c.length+n-1).length;return c.map(function(p,v){var T=v+n,l=String(T).length,m=i(T,f-l);return m+s+p}).join(` +`)}},3952:function(e,t,r){e.exports=o;var i=r(3250);function a(n,s){for(var c=new Array(s+1),f=0;f0)throw new Error("Invalid string. Length must be a multiple of 4");var M=w.indexOf("=");M===-1&&(M=S);var _=M===S?0:4-M%4;return[M,_]}function f(w){var S=c(w),M=S[0],_=S[1];return(M+_)*3/4-_}function p(w,S,M){return(S+M)*3/4-M}function v(w){var S,M=c(w),_=M[0],b=M[1],d=new a(p(w,_,b)),u=0,g=b>0?_-4:_,y;for(y=0;y>16&255,d[u++]=S>>8&255,d[u++]=S&255;return b===2&&(S=i[w.charCodeAt(y)]<<2|i[w.charCodeAt(y+1)]>>4,d[u++]=S&255),b===1&&(S=i[w.charCodeAt(y)]<<10|i[w.charCodeAt(y+1)]<<4|i[w.charCodeAt(y+2)]>>2,d[u++]=S>>8&255,d[u++]=S&255),d}function T(w){return r[w>>18&63]+r[w>>12&63]+r[w>>6&63]+r[w&63]}function l(w,S,M){for(var _,b=[],d=S;dg?g:u+d));return _===1?(S=w[M-1],b.push(r[S>>2]+r[S<<4&63]+"==")):_===2&&(S=(w[M-2]<<8)+w[M-1],b.push(r[S>>10]+r[S>>4&63]+r[S<<2&63]+"=")),b.join("")}},3865:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]).add(n[0].mul(o[1])),o[1].mul(n[1]))}},1318:function(e){e.exports=t;function t(r,i){return r[0].mul(i[1]).cmp(i[0].mul(r[1]))}},8697:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]),o[1].mul(n[0]))}},7842:function(e,t,r){var i=r(6330),a=r(1533),o=r(2651),n=r(6768),s=r(869),c=r(8697);e.exports=f;function f(p,v){if(i(p))return v?c(p,f(v)):[p[0].clone(),p[1].clone()];var T=0,l,m;if(a(p))l=p.clone();else if(typeof p=="string")l=n(p);else{if(p===0)return[o(0),o(1)];if(p===Math.floor(p))l=o(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),T-=256;l=o(p)}}if(i(v))l.mul(v[1]),m=v[0].clone();else if(a(v))m=v.clone();else if(typeof v=="string")m=n(v);else if(!v)m=o(1);else if(v===Math.floor(v))m=o(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),T+=256;m=o(v)}return T>0?l=l.ushln(T):T<0&&(m=m.ushln(-T)),s(l,m)}},6330:function(e,t,r){var i=r(1533);e.exports=a;function a(o){return Array.isArray(o)&&o.length===2&&i(o[0])&&i(o[1])}},5716:function(e,t,r){var i=r(6859);e.exports=a;function a(o){return o.cmp(new i(0))}},1369:function(e,t,r){var i=r(5716);e.exports=a;function a(o){var n=o.length,s=o.words,c=0;if(n===1)c=s[0];else if(n===2)c=s[0]+s[1]*67108864;else for(var f=0;f20?52:c+32}},1533:function(e,t,r){r(6859),e.exports=i;function i(a){return a&&typeof a=="object"&&!!a.words}},2651:function(e,t,r){var i=r(6859),a=r(2361);e.exports=o;function o(n){var s=a.exponent(n);return s<52?new i(n):new i(n*Math.pow(2,52-s)).ushln(s-52)}},869:function(e,t,r){var i=r(2651),a=r(5716);e.exports=o;function o(n,s){var c=a(n),f=a(s);if(c===0)return[i(0),i(1)];if(f===0)return[i(0),i(0)];f<0&&(n=n.neg(),s=s.neg());var p=n.gcd(s);return p.cmpn(1)?[n.div(p),s.div(p)]:[n,s]}},6768:function(e,t,r){var i=r(6859);e.exports=a;function a(o){return new i(o)}},6504:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[0]),o[1].mul(n[1]))}},7721:function(e,t,r){var i=r(5716);e.exports=a;function a(o){return i(o[0])*i(o[1])}},5572:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]).sub(o[1].mul(n[0])),o[1].mul(n[1]))}},946:function(e,t,r){var i=r(1369),a=r(4025);e.exports=o;function o(n){var s=n[0],c=n[1];if(s.cmpn(0)===0)return 0;var f=s.abs().divmod(c.abs()),p=f.div,v=i(p),T=f.mod,l=s.negative!==c.negative?-1:1;if(T.cmpn(0)===0)return l*v;if(v){var m=a(v)+4,w=i(T.ushln(m).divRound(c));return l*(v+w*Math.pow(2,-m))}else{var S=c.bitLength()-T.bitLength()+53,w=i(T.ushln(S).divRound(c));return S<1023?l*w*Math.pow(2,-S):(w*=Math.pow(2,-1023),l*w*Math.pow(2,1023-S))}}},2478:function(e){function t(s,c,f,p,v){for(var T=v+1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w>=0?(T=l,v=l-1):p=l+1}return T}function r(s,c,f,p,v){for(var T=v+1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w>0?(T=l,v=l-1):p=l+1}return T}function i(s,c,f,p,v){for(var T=p-1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w<0?(T=l,p=l+1):v=l-1}return T}function a(s,c,f,p,v){for(var T=p-1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w<=0?(T=l,p=l+1):v=l-1}return T}function o(s,c,f,p,v){for(;p<=v;){var T=p+v>>>1,l=s[T],m=f!==void 0?f(l,c):l-c;if(m===0)return T;m<=0?p=T+1:v=T-1}return-1}function n(s,c,f,p,v,T){return typeof f=="function"?T(s,c,f,p===void 0?0:p|0,v===void 0?s.length-1:v|0):T(s,c,void 0,f===void 0?0:f|0,p===void 0?s.length-1:p|0)}e.exports={ge:function(s,c,f,p,v){return n(s,c,f,p,v,t)},gt:function(s,c,f,p,v){return n(s,c,f,p,v,r)},lt:function(s,c,f,p,v){return n(s,c,f,p,v,i)},le:function(s,c,f,p,v){return n(s,c,f,p,v,a)},eq:function(s,c,f,p,v){return n(s,c,f,p,v,o)}}},8828:function(e,t){"use restrict";var r=32;t.INT_BITS=r,t.INT_MAX=2147483647,t.INT_MIN=-1<0)-(o<0)},t.abs=function(o){var n=o>>r-1;return(o^n)-n},t.min=function(o,n){return n^(o^n)&-(o65535)<<4,o>>>=n,s=(o>255)<<3,o>>>=s,n|=s,s=(o>15)<<2,o>>>=s,n|=s,s=(o>3)<<1,o>>>=s,n|=s,n|o>>1},t.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},t.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function i(o){var n=32;return o&=-o,o&&n--,o&65535&&(n-=16),o&16711935&&(n-=8),o&252645135&&(n-=4),o&858993459&&(n-=2),o&1431655765&&(n-=1),n}t.countTrailingZeros=i,t.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},t.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},t.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var a=new Array(256);(function(o){for(var n=0;n<256;++n){var s=n,c=n,f=7;for(s>>>=1;s;s>>>=1)c<<=1,c|=s&1,--f;o[n]=c<>>8&255]<<16|a[o>>>16&255]<<8|a[o>>>24&255]},t.interleave2=function(o,n){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o|n<<1},t.deinterleave2=function(o,n){return o=o>>>n&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},t.interleave3=function(o,n,s){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,o|=n<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,o|s<<2},t.deinterleave3=function(o,n){return o=o>>>n&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},t.nextCombination=function(o){var n=o|o-1;return n+1|(~n&-~n)-1>>>i(o)+1}},6859:function(e,t,r){e=r.nmd(e),function(i,a){function o(O,P){if(!O)throw new Error(P||"Assertion failed")}function n(O,P){O.super_=P;var N=function(){};N.prototype=P.prototype,O.prototype=new N,O.prototype.constructor=O}function s(O,P,N){if(s.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((P==="le"||P==="be")&&(N=P,P=10),this._init(O||0,P||10,N||"be"))}typeof i=="object"?i.exports=s:a.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=r(7790).Buffer}catch{}s.isBN=function(P){return P instanceof s?!0:P!==null&&typeof P=="object"&&P.constructor.wordSize===s.wordSize&&Array.isArray(P.words)},s.max=function(P,N){return P.cmp(N)>0?P:N},s.min=function(P,N){return P.cmp(N)<0?P:N},s.prototype._init=function(P,N,U){if(typeof P=="number")return this._initNumber(P,N,U);if(typeof P=="object")return this._initArray(P,N,U);N==="hex"&&(N=16),o(N===(N|0)&&N>=2&&N<=36),P=P.toString().replace(/\s+/g,"");var X=0;P[0]==="-"&&(X++,this.negative=1),X=0;X-=3)ue=P[X]|P[X-1]<<8|P[X-2]<<16,this.words[te]|=ue<>>26-ie&67108863,ie+=24,ie>=26&&(ie-=26,te++);else if(U==="le")for(X=0,te=0;X>>26-ie&67108863,ie+=24,ie>=26&&(ie-=26,te++);return this.strip()};function f(O,P){var N=O.charCodeAt(P);return N>=65&&N<=70?N-55:N>=97&&N<=102?N-87:N-48&15}function p(O,P,N){var U=f(O,N);return N-1>=P&&(U|=f(O,N-1)<<4),U}s.prototype._parseHex=function(P,N,U){this.length=Math.ceil((P.length-N)/6),this.words=new Array(this.length);for(var X=0;X=N;X-=2)ie=p(P,N,X)<=18?(te-=18,ue+=1,this.words[ue]|=ie>>>26):te+=8;else{var le=P.length-N;for(X=le%2===0?N+1:N;X=18?(te-=18,ue+=1,this.words[ue]|=ie>>>26):te+=8}this.strip()};function v(O,P,N,U){for(var X=0,te=Math.min(O.length,N),ue=P;ue=49?X+=ie-49+10:ie>=17?X+=ie-17+10:X+=ie}return X}s.prototype._parseBase=function(P,N,U){this.words=[0],this.length=1;for(var X=0,te=1;te<=67108863;te*=N)X++;X--,te=te/N|0;for(var ue=P.length-U,ie=ue%X,le=Math.min(ue,ue-ie)+U,q=0,J=U;J1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(P,N){P=P||10,N=N|0||1;var U;if(P===16||P==="hex"){U="";for(var X=0,te=0,ue=0;ue>>24-X&16777215,te!==0||ue!==this.length-1?U=T[6-le.length]+le+U:U=le+U,X+=2,X>=26&&(X-=26,ue--)}for(te!==0&&(U=te.toString(16)+U);U.length%N!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(P===(P|0)&&P>=2&&P<=36){var q=l[P],J=m[P];U="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var Z=ee.modn(J).toString(P);ee=ee.idivn(J),ee.isZero()?U=Z+U:U=T[q-Z.length]+Z+U}for(this.isZero()&&(U="0"+U);U.length%N!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}o(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-P:P},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(P,N){return o(typeof c<"u"),this.toArrayLike(c,P,N)},s.prototype.toArray=function(P,N){return this.toArrayLike(Array,P,N)},s.prototype.toArrayLike=function(P,N,U){var X=this.byteLength(),te=U||Math.max(1,X);o(X<=te,"byte array longer than desired length"),o(te>0,"Requested array length <= 0"),this.strip();var ue=N==="le",ie=new P(te),le,q,J=this.clone();if(ue){for(q=0;!J.isZero();q++)le=J.andln(255),J.iushrn(8),ie[q]=le;for(;q=4096&&(U+=13,N>>>=13),N>=64&&(U+=7,N>>>=7),N>=8&&(U+=4,N>>>=4),N>=2&&(U+=2,N>>>=2),U+N},s.prototype._zeroBits=function(P){if(P===0)return 26;var N=P,U=0;return(N&8191)===0&&(U+=13,N>>>=13),(N&127)===0&&(U+=7,N>>>=7),(N&15)===0&&(U+=4,N>>>=4),(N&3)===0&&(U+=2,N>>>=2),(N&1)===0&&U++,U},s.prototype.bitLength=function(){var P=this.words[this.length-1],N=this._countBits(P);return(this.length-1)*26+N};function w(O){for(var P=new Array(O.bitLength()),N=0;N>>X}return P}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,N=0;NP.length?this.clone().ior(P):P.clone().ior(this)},s.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},s.prototype.iuand=function(P){var N;this.length>P.length?N=P:N=this;for(var U=0;UP.length?this.clone().iand(P):P.clone().iand(this)},s.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},s.prototype.iuxor=function(P){var N,U;this.length>P.length?(N=this,U=P):(N=P,U=this);for(var X=0;XP.length?this.clone().ixor(P):P.clone().ixor(this)},s.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},s.prototype.inotn=function(P){o(typeof P=="number"&&P>=0);var N=Math.ceil(P/26)|0,U=P%26;this._expand(N),U>0&&N--;for(var X=0;X0&&(this.words[X]=~this.words[X]&67108863>>26-U),this.strip()},s.prototype.notn=function(P){return this.clone().inotn(P)},s.prototype.setn=function(P,N){o(typeof P=="number"&&P>=0);var U=P/26|0,X=P%26;return this._expand(U+1),N?this.words[U]=this.words[U]|1<P.length?(U=this,X=P):(U=P,X=this);for(var te=0,ue=0;ue>>26;for(;te!==0&&ue>>26;if(this.length=U.length,te!==0)this.words[this.length]=te,this.length++;else if(U!==this)for(;ueP.length?this.clone().iadd(P):P.clone().iadd(this)},s.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var N=this.iadd(P);return P.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var U=this.cmp(P);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,te;U>0?(X=this,te=P):(X=P,te=this);for(var ue=0,ie=0;ie>26,this.words[ie]=N&67108863;for(;ue!==0&&ie>26,this.words[ie]=N&67108863;if(ue===0&&ie>>26,ee=le&67108863,Z=Math.min(q,P.length-1),se=Math.max(0,q-O.length+1);se<=Z;se++){var Q=q-se|0;X=O.words[Q]|0,te=P.words[se]|0,ue=X*te+ee,J+=ue/67108864|0,ee=ue&67108863}N.words[q]=ee|0,le=J|0}return le!==0?N.words[q]=le|0:N.length--,N.strip()}var M=function(P,N,U){var X=P.words,te=N.words,ue=U.words,ie=0,le,q,J,ee=X[0]|0,Z=ee&8191,se=ee>>>13,Q=X[1]|0,V=Q&8191,re=Q>>>13,ae=X[2]|0,fe=ae&8191,xe=ae>>>13,Ae=X[3]|0,Pe=Ae&8191,Ce=Ae>>>13,je=X[4]|0,at=je&8191,tt=je>>>13,Je=X[5]|0,Ze=Je&8191,Me=Je>>>13,we=X[6]|0,he=we&8191,De=we>>>13,et=X[7]|0,nt=et&8191,Ke=et>>>13,Et=X[8]|0,kt=Et&8191,Ut=Et>>>13,Yt=X[9]|0,vr=Yt&8191,hr=Yt>>>13,Rr=te[0]|0,dr=Rr&8191,wr=Rr>>>13,yt=te[1]|0,Fe=yt&8191,We=yt>>>13,Oe=te[2]|0,de=Oe&8191,me=Oe>>>13,be=te[3]|0,Ie=be&8191,Xe=be>>>13,ht=te[4]|0,bt=ht&8191,Ct=ht>>>13,Zt=te[5]|0,Wt=Zt&8191,rr=Zt>>>13,Jt=te[6]|0,mr=Jt&8191,ia=Jt>>>13,Ia=te[7]|0,La=Ia&8191,Aa=Ia>>>13,Ga=te[8]|0,ba=Ga&8191,Xa=Ga>>>13,yn=te[9]|0,Kt=yn&8191,zt=yn>>>13;U.negative=P.negative^N.negative,U.length=19,le=Math.imul(Z,dr),q=Math.imul(Z,wr),q=q+Math.imul(se,dr)|0,J=Math.imul(se,wr);var $t=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+($t>>>26)|0,$t&=67108863,le=Math.imul(V,dr),q=Math.imul(V,wr),q=q+Math.imul(re,dr)|0,J=Math.imul(re,wr),le=le+Math.imul(Z,Fe)|0,q=q+Math.imul(Z,We)|0,q=q+Math.imul(se,Fe)|0,J=J+Math.imul(se,We)|0;var Ht=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,le=Math.imul(fe,dr),q=Math.imul(fe,wr),q=q+Math.imul(xe,dr)|0,J=Math.imul(xe,wr),le=le+Math.imul(V,Fe)|0,q=q+Math.imul(V,We)|0,q=q+Math.imul(re,Fe)|0,J=J+Math.imul(re,We)|0,le=le+Math.imul(Z,de)|0,q=q+Math.imul(Z,me)|0,q=q+Math.imul(se,de)|0,J=J+Math.imul(se,me)|0;var Tr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,le=Math.imul(Pe,dr),q=Math.imul(Pe,wr),q=q+Math.imul(Ce,dr)|0,J=Math.imul(Ce,wr),le=le+Math.imul(fe,Fe)|0,q=q+Math.imul(fe,We)|0,q=q+Math.imul(xe,Fe)|0,J=J+Math.imul(xe,We)|0,le=le+Math.imul(V,de)|0,q=q+Math.imul(V,me)|0,q=q+Math.imul(re,de)|0,J=J+Math.imul(re,me)|0,le=le+Math.imul(Z,Ie)|0,q=q+Math.imul(Z,Xe)|0,q=q+Math.imul(se,Ie)|0,J=J+Math.imul(se,Xe)|0;var qr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(qr>>>26)|0,qr&=67108863,le=Math.imul(at,dr),q=Math.imul(at,wr),q=q+Math.imul(tt,dr)|0,J=Math.imul(tt,wr),le=le+Math.imul(Pe,Fe)|0,q=q+Math.imul(Pe,We)|0,q=q+Math.imul(Ce,Fe)|0,J=J+Math.imul(Ce,We)|0,le=le+Math.imul(fe,de)|0,q=q+Math.imul(fe,me)|0,q=q+Math.imul(xe,de)|0,J=J+Math.imul(xe,me)|0,le=le+Math.imul(V,Ie)|0,q=q+Math.imul(V,Xe)|0,q=q+Math.imul(re,Ie)|0,J=J+Math.imul(re,Xe)|0,le=le+Math.imul(Z,bt)|0,q=q+Math.imul(Z,Ct)|0,q=q+Math.imul(se,bt)|0,J=J+Math.imul(se,Ct)|0;var ha=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(ha>>>26)|0,ha&=67108863,le=Math.imul(Ze,dr),q=Math.imul(Ze,wr),q=q+Math.imul(Me,dr)|0,J=Math.imul(Me,wr),le=le+Math.imul(at,Fe)|0,q=q+Math.imul(at,We)|0,q=q+Math.imul(tt,Fe)|0,J=J+Math.imul(tt,We)|0,le=le+Math.imul(Pe,de)|0,q=q+Math.imul(Pe,me)|0,q=q+Math.imul(Ce,de)|0,J=J+Math.imul(Ce,me)|0,le=le+Math.imul(fe,Ie)|0,q=q+Math.imul(fe,Xe)|0,q=q+Math.imul(xe,Ie)|0,J=J+Math.imul(xe,Xe)|0,le=le+Math.imul(V,bt)|0,q=q+Math.imul(V,Ct)|0,q=q+Math.imul(re,bt)|0,J=J+Math.imul(re,Ct)|0,le=le+Math.imul(Z,Wt)|0,q=q+Math.imul(Z,rr)|0,q=q+Math.imul(se,Wt)|0,J=J+Math.imul(se,rr)|0;var Gr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,le=Math.imul(he,dr),q=Math.imul(he,wr),q=q+Math.imul(De,dr)|0,J=Math.imul(De,wr),le=le+Math.imul(Ze,Fe)|0,q=q+Math.imul(Ze,We)|0,q=q+Math.imul(Me,Fe)|0,J=J+Math.imul(Me,We)|0,le=le+Math.imul(at,de)|0,q=q+Math.imul(at,me)|0,q=q+Math.imul(tt,de)|0,J=J+Math.imul(tt,me)|0,le=le+Math.imul(Pe,Ie)|0,q=q+Math.imul(Pe,Xe)|0,q=q+Math.imul(Ce,Ie)|0,J=J+Math.imul(Ce,Xe)|0,le=le+Math.imul(fe,bt)|0,q=q+Math.imul(fe,Ct)|0,q=q+Math.imul(xe,bt)|0,J=J+Math.imul(xe,Ct)|0,le=le+Math.imul(V,Wt)|0,q=q+Math.imul(V,rr)|0,q=q+Math.imul(re,Wt)|0,J=J+Math.imul(re,rr)|0,le=le+Math.imul(Z,mr)|0,q=q+Math.imul(Z,ia)|0,q=q+Math.imul(se,mr)|0,J=J+Math.imul(se,ia)|0;var wa=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(wa>>>26)|0,wa&=67108863,le=Math.imul(nt,dr),q=Math.imul(nt,wr),q=q+Math.imul(Ke,dr)|0,J=Math.imul(Ke,wr),le=le+Math.imul(he,Fe)|0,q=q+Math.imul(he,We)|0,q=q+Math.imul(De,Fe)|0,J=J+Math.imul(De,We)|0,le=le+Math.imul(Ze,de)|0,q=q+Math.imul(Ze,me)|0,q=q+Math.imul(Me,de)|0,J=J+Math.imul(Me,me)|0,le=le+Math.imul(at,Ie)|0,q=q+Math.imul(at,Xe)|0,q=q+Math.imul(tt,Ie)|0,J=J+Math.imul(tt,Xe)|0,le=le+Math.imul(Pe,bt)|0,q=q+Math.imul(Pe,Ct)|0,q=q+Math.imul(Ce,bt)|0,J=J+Math.imul(Ce,Ct)|0,le=le+Math.imul(fe,Wt)|0,q=q+Math.imul(fe,rr)|0,q=q+Math.imul(xe,Wt)|0,J=J+Math.imul(xe,rr)|0,le=le+Math.imul(V,mr)|0,q=q+Math.imul(V,ia)|0,q=q+Math.imul(re,mr)|0,J=J+Math.imul(re,ia)|0,le=le+Math.imul(Z,La)|0,q=q+Math.imul(Z,Aa)|0,q=q+Math.imul(se,La)|0,J=J+Math.imul(se,Aa)|0;var Da=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Da>>>26)|0,Da&=67108863,le=Math.imul(kt,dr),q=Math.imul(kt,wr),q=q+Math.imul(Ut,dr)|0,J=Math.imul(Ut,wr),le=le+Math.imul(nt,Fe)|0,q=q+Math.imul(nt,We)|0,q=q+Math.imul(Ke,Fe)|0,J=J+Math.imul(Ke,We)|0,le=le+Math.imul(he,de)|0,q=q+Math.imul(he,me)|0,q=q+Math.imul(De,de)|0,J=J+Math.imul(De,me)|0,le=le+Math.imul(Ze,Ie)|0,q=q+Math.imul(Ze,Xe)|0,q=q+Math.imul(Me,Ie)|0,J=J+Math.imul(Me,Xe)|0,le=le+Math.imul(at,bt)|0,q=q+Math.imul(at,Ct)|0,q=q+Math.imul(tt,bt)|0,J=J+Math.imul(tt,Ct)|0,le=le+Math.imul(Pe,Wt)|0,q=q+Math.imul(Pe,rr)|0,q=q+Math.imul(Ce,Wt)|0,J=J+Math.imul(Ce,rr)|0,le=le+Math.imul(fe,mr)|0,q=q+Math.imul(fe,ia)|0,q=q+Math.imul(xe,mr)|0,J=J+Math.imul(xe,ia)|0,le=le+Math.imul(V,La)|0,q=q+Math.imul(V,Aa)|0,q=q+Math.imul(re,La)|0,J=J+Math.imul(re,Aa)|0,le=le+Math.imul(Z,ba)|0,q=q+Math.imul(Z,Xa)|0,q=q+Math.imul(se,ba)|0,J=J+Math.imul(se,Xa)|0;var Ya=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,le=Math.imul(vr,dr),q=Math.imul(vr,wr),q=q+Math.imul(hr,dr)|0,J=Math.imul(hr,wr),le=le+Math.imul(kt,Fe)|0,q=q+Math.imul(kt,We)|0,q=q+Math.imul(Ut,Fe)|0,J=J+Math.imul(Ut,We)|0,le=le+Math.imul(nt,de)|0,q=q+Math.imul(nt,me)|0,q=q+Math.imul(Ke,de)|0,J=J+Math.imul(Ke,me)|0,le=le+Math.imul(he,Ie)|0,q=q+Math.imul(he,Xe)|0,q=q+Math.imul(De,Ie)|0,J=J+Math.imul(De,Xe)|0,le=le+Math.imul(Ze,bt)|0,q=q+Math.imul(Ze,Ct)|0,q=q+Math.imul(Me,bt)|0,J=J+Math.imul(Me,Ct)|0,le=le+Math.imul(at,Wt)|0,q=q+Math.imul(at,rr)|0,q=q+Math.imul(tt,Wt)|0,J=J+Math.imul(tt,rr)|0,le=le+Math.imul(Pe,mr)|0,q=q+Math.imul(Pe,ia)|0,q=q+Math.imul(Ce,mr)|0,J=J+Math.imul(Ce,ia)|0,le=le+Math.imul(fe,La)|0,q=q+Math.imul(fe,Aa)|0,q=q+Math.imul(xe,La)|0,J=J+Math.imul(xe,Aa)|0,le=le+Math.imul(V,ba)|0,q=q+Math.imul(V,Xa)|0,q=q+Math.imul(re,ba)|0,J=J+Math.imul(re,Xa)|0,le=le+Math.imul(Z,Kt)|0,q=q+Math.imul(Z,zt)|0,q=q+Math.imul(se,Kt)|0,J=J+Math.imul(se,zt)|0;var Ka=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ka>>>26)|0,Ka&=67108863,le=Math.imul(vr,Fe),q=Math.imul(vr,We),q=q+Math.imul(hr,Fe)|0,J=Math.imul(hr,We),le=le+Math.imul(kt,de)|0,q=q+Math.imul(kt,me)|0,q=q+Math.imul(Ut,de)|0,J=J+Math.imul(Ut,me)|0,le=le+Math.imul(nt,Ie)|0,q=q+Math.imul(nt,Xe)|0,q=q+Math.imul(Ke,Ie)|0,J=J+Math.imul(Ke,Xe)|0,le=le+Math.imul(he,bt)|0,q=q+Math.imul(he,Ct)|0,q=q+Math.imul(De,bt)|0,J=J+Math.imul(De,Ct)|0,le=le+Math.imul(Ze,Wt)|0,q=q+Math.imul(Ze,rr)|0,q=q+Math.imul(Me,Wt)|0,J=J+Math.imul(Me,rr)|0,le=le+Math.imul(at,mr)|0,q=q+Math.imul(at,ia)|0,q=q+Math.imul(tt,mr)|0,J=J+Math.imul(tt,ia)|0,le=le+Math.imul(Pe,La)|0,q=q+Math.imul(Pe,Aa)|0,q=q+Math.imul(Ce,La)|0,J=J+Math.imul(Ce,Aa)|0,le=le+Math.imul(fe,ba)|0,q=q+Math.imul(fe,Xa)|0,q=q+Math.imul(xe,ba)|0,J=J+Math.imul(xe,Xa)|0,le=le+Math.imul(V,Kt)|0,q=q+Math.imul(V,zt)|0,q=q+Math.imul(re,Kt)|0,J=J+Math.imul(re,zt)|0;var an=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(an>>>26)|0,an&=67108863,le=Math.imul(vr,de),q=Math.imul(vr,me),q=q+Math.imul(hr,de)|0,J=Math.imul(hr,me),le=le+Math.imul(kt,Ie)|0,q=q+Math.imul(kt,Xe)|0,q=q+Math.imul(Ut,Ie)|0,J=J+Math.imul(Ut,Xe)|0,le=le+Math.imul(nt,bt)|0,q=q+Math.imul(nt,Ct)|0,q=q+Math.imul(Ke,bt)|0,J=J+Math.imul(Ke,Ct)|0,le=le+Math.imul(he,Wt)|0,q=q+Math.imul(he,rr)|0,q=q+Math.imul(De,Wt)|0,J=J+Math.imul(De,rr)|0,le=le+Math.imul(Ze,mr)|0,q=q+Math.imul(Ze,ia)|0,q=q+Math.imul(Me,mr)|0,J=J+Math.imul(Me,ia)|0,le=le+Math.imul(at,La)|0,q=q+Math.imul(at,Aa)|0,q=q+Math.imul(tt,La)|0,J=J+Math.imul(tt,Aa)|0,le=le+Math.imul(Pe,ba)|0,q=q+Math.imul(Pe,Xa)|0,q=q+Math.imul(Ce,ba)|0,J=J+Math.imul(Ce,Xa)|0,le=le+Math.imul(fe,Kt)|0,q=q+Math.imul(fe,zt)|0,q=q+Math.imul(xe,Kt)|0,J=J+Math.imul(xe,zt)|0;var mt=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(mt>>>26)|0,mt&=67108863,le=Math.imul(vr,Ie),q=Math.imul(vr,Xe),q=q+Math.imul(hr,Ie)|0,J=Math.imul(hr,Xe),le=le+Math.imul(kt,bt)|0,q=q+Math.imul(kt,Ct)|0,q=q+Math.imul(Ut,bt)|0,J=J+Math.imul(Ut,Ct)|0,le=le+Math.imul(nt,Wt)|0,q=q+Math.imul(nt,rr)|0,q=q+Math.imul(Ke,Wt)|0,J=J+Math.imul(Ke,rr)|0,le=le+Math.imul(he,mr)|0,q=q+Math.imul(he,ia)|0,q=q+Math.imul(De,mr)|0,J=J+Math.imul(De,ia)|0,le=le+Math.imul(Ze,La)|0,q=q+Math.imul(Ze,Aa)|0,q=q+Math.imul(Me,La)|0,J=J+Math.imul(Me,Aa)|0,le=le+Math.imul(at,ba)|0,q=q+Math.imul(at,Xa)|0,q=q+Math.imul(tt,ba)|0,J=J+Math.imul(tt,Xa)|0,le=le+Math.imul(Pe,Kt)|0,q=q+Math.imul(Pe,zt)|0,q=q+Math.imul(Ce,Kt)|0,J=J+Math.imul(Ce,zt)|0;var ot=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(ot>>>26)|0,ot&=67108863,le=Math.imul(vr,bt),q=Math.imul(vr,Ct),q=q+Math.imul(hr,bt)|0,J=Math.imul(hr,Ct),le=le+Math.imul(kt,Wt)|0,q=q+Math.imul(kt,rr)|0,q=q+Math.imul(Ut,Wt)|0,J=J+Math.imul(Ut,rr)|0,le=le+Math.imul(nt,mr)|0,q=q+Math.imul(nt,ia)|0,q=q+Math.imul(Ke,mr)|0,J=J+Math.imul(Ke,ia)|0,le=le+Math.imul(he,La)|0,q=q+Math.imul(he,Aa)|0,q=q+Math.imul(De,La)|0,J=J+Math.imul(De,Aa)|0,le=le+Math.imul(Ze,ba)|0,q=q+Math.imul(Ze,Xa)|0,q=q+Math.imul(Me,ba)|0,J=J+Math.imul(Me,Xa)|0,le=le+Math.imul(at,Kt)|0,q=q+Math.imul(at,zt)|0,q=q+Math.imul(tt,Kt)|0,J=J+Math.imul(tt,zt)|0;var Lr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,le=Math.imul(vr,Wt),q=Math.imul(vr,rr),q=q+Math.imul(hr,Wt)|0,J=Math.imul(hr,rr),le=le+Math.imul(kt,mr)|0,q=q+Math.imul(kt,ia)|0,q=q+Math.imul(Ut,mr)|0,J=J+Math.imul(Ut,ia)|0,le=le+Math.imul(nt,La)|0,q=q+Math.imul(nt,Aa)|0,q=q+Math.imul(Ke,La)|0,J=J+Math.imul(Ke,Aa)|0,le=le+Math.imul(he,ba)|0,q=q+Math.imul(he,Xa)|0,q=q+Math.imul(De,ba)|0,J=J+Math.imul(De,Xa)|0,le=le+Math.imul(Ze,Kt)|0,q=q+Math.imul(Ze,zt)|0,q=q+Math.imul(Me,Kt)|0,J=J+Math.imul(Me,zt)|0;var Er=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Er>>>26)|0,Er&=67108863,le=Math.imul(vr,mr),q=Math.imul(vr,ia),q=q+Math.imul(hr,mr)|0,J=Math.imul(hr,ia),le=le+Math.imul(kt,La)|0,q=q+Math.imul(kt,Aa)|0,q=q+Math.imul(Ut,La)|0,J=J+Math.imul(Ut,Aa)|0,le=le+Math.imul(nt,ba)|0,q=q+Math.imul(nt,Xa)|0,q=q+Math.imul(Ke,ba)|0,J=J+Math.imul(Ke,Xa)|0,le=le+Math.imul(he,Kt)|0,q=q+Math.imul(he,zt)|0,q=q+Math.imul(De,Kt)|0,J=J+Math.imul(De,zt)|0;var Mr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,le=Math.imul(vr,La),q=Math.imul(vr,Aa),q=q+Math.imul(hr,La)|0,J=Math.imul(hr,Aa),le=le+Math.imul(kt,ba)|0,q=q+Math.imul(kt,Xa)|0,q=q+Math.imul(Ut,ba)|0,J=J+Math.imul(Ut,Xa)|0,le=le+Math.imul(nt,Kt)|0,q=q+Math.imul(nt,zt)|0,q=q+Math.imul(Ke,Kt)|0,J=J+Math.imul(Ke,zt)|0;var br=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(br>>>26)|0,br&=67108863,le=Math.imul(vr,ba),q=Math.imul(vr,Xa),q=q+Math.imul(hr,ba)|0,J=Math.imul(hr,Xa),le=le+Math.imul(kt,Kt)|0,q=q+Math.imul(kt,zt)|0,q=q+Math.imul(Ut,Kt)|0,J=J+Math.imul(Ut,zt)|0;var Or=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Or>>>26)|0,Or&=67108863,le=Math.imul(vr,Kt),q=Math.imul(vr,zt),q=q+Math.imul(hr,Kt)|0,J=Math.imul(hr,zt);var jr=(ie+le|0)+((q&8191)<<13)|0;return ie=(J+(q>>>13)|0)+(jr>>>26)|0,jr&=67108863,ue[0]=$t,ue[1]=Ht,ue[2]=Tr,ue[3]=qr,ue[4]=ha,ue[5]=Gr,ue[6]=wa,ue[7]=Da,ue[8]=Ya,ue[9]=Ka,ue[10]=an,ue[11]=mt,ue[12]=ot,ue[13]=Lr,ue[14]=Er,ue[15]=Mr,ue[16]=br,ue[17]=Or,ue[18]=jr,ie!==0&&(ue[19]=ie,U.length++),U};Math.imul||(M=S);function _(O,P,N){N.negative=P.negative^O.negative,N.length=O.length+P.length;for(var U=0,X=0,te=0;te>>26)|0,X+=ue>>>26,ue&=67108863}N.words[te]=ie,U=ue,ue=X}return U!==0?N.words[te]=U:N.length--,N.strip()}function b(O,P,N){var U=new d;return U.mulp(O,P,N)}s.prototype.mulTo=function(P,N){var U,X=this.length+P.length;return this.length===10&&P.length===10?U=M(this,P,N):X<63?U=S(this,P,N):X<1024?U=_(this,P,N):U=b(this,P,N),U};function d(O,P){this.x=O,this.y=P}d.prototype.makeRBT=function(P){for(var N=new Array(P),U=s.prototype._countBits(P)-1,X=0;X>=1;return X},d.prototype.permute=function(P,N,U,X,te,ue){for(var ie=0;ie>>1)te++;return 1<>>13,U[2*ue+1]=te&8191,te=te>>>13;for(ue=2*N;ue>=26,N+=X/67108864|0,N+=te>>>26,this.words[U]=te&67108863}return N!==0&&(this.words[U]=N,this.length++),this},s.prototype.muln=function(P){return this.clone().imuln(P)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(P){var N=w(P);if(N.length===0)return new s(1);for(var U=this,X=0;X=0);var N=P%26,U=(P-N)/26,X=67108863>>>26-N<<26-N,te;if(N!==0){var ue=0;for(te=0;te>>26-N}ue&&(this.words[te]=ue,this.length++)}if(U!==0){for(te=this.length-1;te>=0;te--)this.words[te+U]=this.words[te];for(te=0;te=0);var X;N?X=(N-N%26)/26:X=0;var te=P%26,ue=Math.min((P-te)/26,this.length),ie=67108863^67108863>>>te<ue)for(this.length-=ue,q=0;q=0&&(J!==0||q>=X);q--){var ee=this.words[q]|0;this.words[q]=J<<26-te|ee>>>te,J=ee&ie}return le&&J!==0&&(le.words[le.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(P,N,U){return o(this.negative===0),this.iushrn(P,N,U)},s.prototype.shln=function(P){return this.clone().ishln(P)},s.prototype.ushln=function(P){return this.clone().iushln(P)},s.prototype.shrn=function(P){return this.clone().ishrn(P)},s.prototype.ushrn=function(P){return this.clone().iushrn(P)},s.prototype.testn=function(P){o(typeof P=="number"&&P>=0);var N=P%26,U=(P-N)/26,X=1<=0);var N=P%26,U=(P-N)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(N!==0&&U++,this.length=Math.min(U,this.length),N!==0){var X=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},s.prototype.isubn=function(P){if(o(typeof P=="number"),o(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(le/67108864|0),this.words[te+U]=ue&67108863}for(;te>26,this.words[te+U]=ue&67108863;if(ie===0)return this.strip();for(o(ie===-1),ie=0,te=0;te>26,this.words[te]=ue&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(P,N){var U=this.length-P.length,X=this.clone(),te=P,ue=te.words[te.length-1]|0,ie=this._countBits(ue);U=26-ie,U!==0&&(te=te.ushln(U),X.iushln(U),ue=te.words[te.length-1]|0);var le=X.length-te.length,q;if(N!=="mod"){q=new s(null),q.length=le+1,q.words=new Array(q.length);for(var J=0;J=0;Z--){var se=(X.words[te.length+Z]|0)*67108864+(X.words[te.length+Z-1]|0);for(se=Math.min(se/ue|0,67108863),X._ishlnsubmul(te,se,Z);X.negative!==0;)se--,X.negative=0,X._ishlnsubmul(te,1,Z),X.isZero()||(X.negative^=1);q&&(q.words[Z]=se)}return q&&q.strip(),X.strip(),N!=="div"&&U!==0&&X.iushrn(U),{div:q||null,mod:X}},s.prototype.divmod=function(P,N,U){if(o(!P.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var X,te,ue;return this.negative!==0&&P.negative===0?(ue=this.neg().divmod(P,N),N!=="mod"&&(X=ue.div.neg()),N!=="div"&&(te=ue.mod.neg(),U&&te.negative!==0&&te.iadd(P)),{div:X,mod:te}):this.negative===0&&P.negative!==0?(ue=this.divmod(P.neg(),N),N!=="mod"&&(X=ue.div.neg()),{div:X,mod:ue.mod}):(this.negative&P.negative)!==0?(ue=this.neg().divmod(P.neg(),N),N!=="div"&&(te=ue.mod.neg(),U&&te.negative!==0&&te.isub(P)),{div:ue.div,mod:te}):P.length>this.length||this.cmp(P)<0?{div:new s(0),mod:this}:P.length===1?N==="div"?{div:this.divn(P.words[0]),mod:null}:N==="mod"?{div:null,mod:new s(this.modn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new s(this.modn(P.words[0]))}:this._wordDiv(P,N)},s.prototype.div=function(P){return this.divmod(P,"div",!1).div},s.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},s.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},s.prototype.divRound=function(P){var N=this.divmod(P);if(N.mod.isZero())return N.div;var U=N.div.negative!==0?N.mod.isub(P):N.mod,X=P.ushrn(1),te=P.andln(1),ue=U.cmp(X);return ue<0||te===1&&ue===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},s.prototype.modn=function(P){o(P<=67108863);for(var N=(1<<26)%P,U=0,X=this.length-1;X>=0;X--)U=(N*U+(this.words[X]|0))%P;return U},s.prototype.idivn=function(P){o(P<=67108863);for(var N=0,U=this.length-1;U>=0;U--){var X=(this.words[U]|0)+N*67108864;this.words[U]=X/P|0,N=X%P}return this.strip()},s.prototype.divn=function(P){return this.clone().idivn(P)},s.prototype.egcd=function(P){o(P.negative===0),o(!P.isZero());var N=this,U=P.clone();N.negative!==0?N=N.umod(P):N=N.clone();for(var X=new s(1),te=new s(0),ue=new s(0),ie=new s(1),le=0;N.isEven()&&U.isEven();)N.iushrn(1),U.iushrn(1),++le;for(var q=U.clone(),J=N.clone();!N.isZero();){for(var ee=0,Z=1;(N.words[0]&Z)===0&&ee<26;++ee,Z<<=1);if(ee>0)for(N.iushrn(ee);ee-- >0;)(X.isOdd()||te.isOdd())&&(X.iadd(q),te.isub(J)),X.iushrn(1),te.iushrn(1);for(var se=0,Q=1;(U.words[0]&Q)===0&&se<26;++se,Q<<=1);if(se>0)for(U.iushrn(se);se-- >0;)(ue.isOdd()||ie.isOdd())&&(ue.iadd(q),ie.isub(J)),ue.iushrn(1),ie.iushrn(1);N.cmp(U)>=0?(N.isub(U),X.isub(ue),te.isub(ie)):(U.isub(N),ue.isub(X),ie.isub(te))}return{a:ue,b:ie,gcd:U.iushln(le)}},s.prototype._invmp=function(P){o(P.negative===0),o(!P.isZero());var N=this,U=P.clone();N.negative!==0?N=N.umod(P):N=N.clone();for(var X=new s(1),te=new s(0),ue=U.clone();N.cmpn(1)>0&&U.cmpn(1)>0;){for(var ie=0,le=1;(N.words[0]&le)===0&&ie<26;++ie,le<<=1);if(ie>0)for(N.iushrn(ie);ie-- >0;)X.isOdd()&&X.iadd(ue),X.iushrn(1);for(var q=0,J=1;(U.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(U.iushrn(q);q-- >0;)te.isOdd()&&te.iadd(ue),te.iushrn(1);N.cmp(U)>=0?(N.isub(U),X.isub(te)):(U.isub(N),te.isub(X))}var ee;return N.cmpn(1)===0?ee=X:ee=te,ee.cmpn(0)<0&&ee.iadd(P),ee},s.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var N=this.clone(),U=P.clone();N.negative=0,U.negative=0;for(var X=0;N.isEven()&&U.isEven();X++)N.iushrn(1),U.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;U.isEven();)U.iushrn(1);var te=N.cmp(U);if(te<0){var ue=N;N=U,U=ue}else if(te===0||U.cmpn(1)===0)break;N.isub(U)}while(!0);return U.iushln(X)},s.prototype.invm=function(P){return this.egcd(P).a.umod(P)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(P){return this.words[0]&P},s.prototype.bincn=function(P){o(typeof P=="number");var N=P%26,U=(P-N)/26,X=1<>>26,ie&=67108863,this.words[ue]=ie}return te!==0&&(this.words[ue]=te,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(P){var N=P<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var U;if(this.length>1)U=1;else{N&&(P=-P),o(P<=67108863,"Number is too big");var X=this.words[0]|0;U=X===P?0:XP.length)return 1;if(this.length=0;U--){var X=this.words[U]|0,te=P.words[U]|0;if(X!==te){Xte&&(N=1);break}}return N},s.prototype.gtn=function(P){return this.cmpn(P)===1},s.prototype.gt=function(P){return this.cmp(P)===1},s.prototype.gten=function(P){return this.cmpn(P)>=0},s.prototype.gte=function(P){return this.cmp(P)>=0},s.prototype.ltn=function(P){return this.cmpn(P)===-1},s.prototype.lt=function(P){return this.cmp(P)===-1},s.prototype.lten=function(P){return this.cmpn(P)<=0},s.prototype.lte=function(P){return this.cmp(P)<=0},s.prototype.eqn=function(P){return this.cmpn(P)===0},s.prototype.eq=function(P){return this.cmp(P)===0},s.red=function(P){return new F(P)},s.prototype.toRed=function(P){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},s.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(P){return this.red=P,this},s.prototype.forceRed=function(P){return o(!this.red,"Already a number in reduction context"),this._forceRed(P)},s.prototype.redAdd=function(P){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},s.prototype.redIAdd=function(P){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},s.prototype.redSub=function(P){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},s.prototype.redISub=function(P){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},s.prototype.redShl=function(P){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},s.prototype.redMul=function(P){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},s.prototype.redIMul=function(P){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},s.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(P){return o(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var u={k256:null,p224:null,p192:null,p25519:null};function g(O,P){this.name=O,this.p=new s(P,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}g.prototype._tmp=function(){var P=new s(null);return P.words=new Array(Math.ceil(this.n/13)),P},g.prototype.ireduce=function(P){var N=P,U;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),U=N.bitLength();while(U>this.n);var X=U0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},g.prototype.split=function(P,N){P.iushrn(this.n,0,N)},g.prototype.imulK=function(P){return P.imul(this.k)};function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(y,g),y.prototype.split=function(P,N){for(var U=4194303,X=Math.min(P.length,9),te=0;te>>22,ue=ie}ue>>>=22,P.words[te-10]=ue,ue===0&&P.length>10?P.length-=10:P.length-=9},y.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var N=0,U=0;U>>=26,P.words[U]=te,N=X}return N!==0&&(P.words[P.length++]=N),P},s._prime=function(P){if(u[P])return u[P];var N;if(P==="k256")N=new y;else if(P==="p224")N=new R;else if(P==="p192")N=new I;else if(P==="p25519")N=new z;else throw new Error("Unknown prime "+P);return u[P]=N,N};function F(O){if(typeof O=="string"){var P=s._prime(O);this.m=P.p,this.prime=P}else o(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}F.prototype._verify1=function(P){o(P.negative===0,"red works only with positives"),o(P.red,"red works only with red numbers")},F.prototype._verify2=function(P,N){o((P.negative|N.negative)===0,"red works only with positives"),o(P.red&&P.red===N.red,"red works only with red numbers")},F.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):P.umod(this.m)._forceRed(this)},F.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},F.prototype.add=function(P,N){this._verify2(P,N);var U=P.add(N);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},F.prototype.iadd=function(P,N){this._verify2(P,N);var U=P.iadd(N);return U.cmp(this.m)>=0&&U.isub(this.m),U},F.prototype.sub=function(P,N){this._verify2(P,N);var U=P.sub(N);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},F.prototype.isub=function(P,N){this._verify2(P,N);var U=P.isub(N);return U.cmpn(0)<0&&U.iadd(this.m),U},F.prototype.shl=function(P,N){return this._verify1(P),this.imod(P.ushln(N))},F.prototype.imul=function(P,N){return this._verify2(P,N),this.imod(P.imul(N))},F.prototype.mul=function(P,N){return this._verify2(P,N),this.imod(P.mul(N))},F.prototype.isqr=function(P){return this.imul(P,P.clone())},F.prototype.sqr=function(P){return this.mul(P,P)},F.prototype.sqrt=function(P){if(P.isZero())return P.clone();var N=this.m.andln(3);if(o(N%2===1),N===3){var U=this.m.add(new s(1)).iushrn(2);return this.pow(P,U)}for(var X=this.m.subn(1),te=0;!X.isZero()&&X.andln(1)===0;)te++,X.iushrn(1);o(!X.isZero());var ue=new s(1).toRed(this),ie=ue.redNeg(),le=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new s(2*q*q).toRed(this);this.pow(q,le).cmp(ie)!==0;)q.redIAdd(ie);for(var J=this.pow(q,X),ee=this.pow(P,X.addn(1).iushrn(1)),Z=this.pow(P,X),se=te;Z.cmp(ue)!==0;){for(var Q=Z,V=0;Q.cmp(ue)!==0;V++)Q=Q.redSqr();o(V=0;te--){for(var J=N.words[te],ee=q-1;ee>=0;ee--){var Z=J>>ee&1;if(ue!==X[0]&&(ue=this.sqr(ue)),Z===0&&ie===0){le=0;continue}ie<<=1,ie|=Z,le++,!(le!==U&&(te!==0||ee!==0))&&(ue=this.mul(ue,X[ie]),le=0,ie=0)}q=26}return ue},F.prototype.convertTo=function(P){var N=P.umod(this.m);return N===P?N.clone():N},F.prototype.convertFrom=function(P){var N=P.clone();return N.red=null,N},s.mont=function(P){return new B(P)};function B(O){F.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(B,F),B.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},B.prototype.convertFrom=function(P){var N=this.imod(P.mul(this.rinv));return N.red=null,N},B.prototype.imul=function(P,N){if(P.isZero()||N.isZero())return P.words[0]=0,P.length=1,P;var U=P.imul(N),X=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=U.isub(X).iushrn(this.shift),ue=te;return te.cmp(this.m)>=0?ue=te.isub(this.m):te.cmpn(0)<0&&(ue=te.iadd(this.m)),ue._forceRed(this)},B.prototype.mul=function(P,N){if(P.isZero()||N.isZero())return new s(0)._forceRed(this);var U=P.mul(N),X=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=U.isub(X).iushrn(this.shift),ue=te;return te.cmp(this.m)>=0?ue=te.isub(this.m):te.cmpn(0)<0&&(ue=te.iadd(this.m)),ue._forceRed(this)},B.prototype.invm=function(P){var N=this.imod(P._invmp(this.m).mul(this.r2));return N._forceRed(this)}}(e,this)},6204:function(e){e.exports=t;function t(r){var i,a,o,n=r.length,s=0;for(i=0;i>>1;if(!(d<=0)){var u,g=i.mallocDouble(2*d*_),y=i.mallocInt32(_);if(_=s(m,d,g,y),_>0){if(d===1&&M)a.init(_),u=a.sweepComplete(d,S,0,_,g,y,0,_,g,y);else{var R=i.mallocDouble(2*d*b),I=i.mallocInt32(b);b=s(w,d,R,I),b>0&&(a.init(_+b),d===1?u=a.sweepBipartite(d,S,0,_,g,y,0,b,R,I):u=o(d,S,M,_,g,y,b,R,I),i.free(R),i.free(I))}i.free(g),i.free(y)}return u}}}var f;function p(m,w){f.push([m,w])}function v(m){return f=[],c(m,m,p,!0),f}function T(m,w){return f=[],c(m,w,p,!1),f}function l(m,w,S){switch(arguments.length){case 1:return v(m);case 2:return typeof w=="function"?c(m,m,w,!0):T(m,w);case 3:return c(m,w,S,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(e,t){function r(){function o(c,f,p,v,T,l,m,w,S,M,_){for(var b=2*c,d=v,u=b*v;dS-w?o(c,f,p,v,T,l,m,w,S,M,_):n(c,f,p,v,T,l,m,w,S,M,_)}return s}function i(){function o(p,v,T,l,m,w,S,M,_,b,d){for(var u=2*p,g=l,y=u*l;gb-_?l?o(p,v,T,m,w,S,M,_,b,d,u):n(p,v,T,m,w,S,M,_,b,d,u):l?s(p,v,T,m,w,S,M,_,b,d,u):c(p,v,T,m,w,S,M,_,b,d,u)}return f}function a(o){return o?r():i()}t.partial=a(!1),t.full=a(!0)},7150:function(e,t,r){e.exports=O;var i=r(1888),a=r(8828),o=r(2455),n=o.partial,s=o.full,c=r(855),f=r(3545),p=r(8105),v=128,T=1<<22,l=1<<22,m=p("!(lo>=p0)&&!(p1>=hi)"),w=p("lo===p0"),S=p("lo0;){J-=1;var se=J*d,Q=y[se],V=y[se+1],re=y[se+2],ae=y[se+3],fe=y[se+4],xe=y[se+5],Ae=J*u,Pe=R[Ae],Ce=R[Ae+1],je=xe&1,at=!!(xe&16),tt=te,Je=ue,Ze=le,Me=q;if(je&&(tt=le,Je=q,Ze=te,Me=ue),!(xe&2&&(re=S(P,Q,V,re,tt,Je,Ce),V>=re))&&!(xe&4&&(V=M(P,Q,V,re,tt,Je,Pe),V>=re))){var we=re-V,he=fe-ae;if(at){if(P*we*(we+he)p&&T[b+f]>M;--_,b-=m){for(var d=b,u=b+m,g=0;g>>1,M=2*c,_=S,b=T[M*S+f];m=R?(_=y,b=R):g>=z?(_=u,b=g):(_=I,b=z):R>=z?(_=y,b=R):z>=g?(_=u,b=g):(_=I,b=z);for(var O=M*(w-1),P=M*_,F=0;F=p0)&&!(p1>=hi)":f};function r(p){return t[p]}function i(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u];if(R===S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function a(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u];if(RI;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function o(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+g];if(R<=S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function n(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+g];if(R<=S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function s(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u],I=m[_+g];if(R<=S&&S<=I)if(d===y)d+=1,b+=M;else{for(var z=0;M>z;++z){var F=m[_+z];m[_+z]=m[b],m[b++]=F}var B=w[y];w[y]=w[d],w[d++]=B}}return d}function c(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u],I=m[_+g];if(Rz;++z){var F=m[_+z];m[_+z]=m[b],m[b++]=F}var B=w[y];w[y]=w[d],w[d++]=B}}return d}function f(p,v,T,l,m,w,S,M){for(var _=2*p,b=_*T,d=b,u=T,g=v,y=p+v,R=T;l>R;++R,b+=_){var I=m[b+g],z=m[b+y];if(!(I>=S)&&!(M>=z))if(u===R)u+=1,d+=_;else{for(var F=0;_>F;++F){var B=m[b+F];m[b+F]=m[d],m[d++]=B}var O=w[R];w[R]=w[u],w[u++]=O}}return u}},4192:function(e){e.exports=r;var t=32;function r(v,T){T<=4*t?i(0,T-1,v):p(0,T-1,v)}function i(v,T,l){for(var m=2*(v+1),w=v+1;w<=T;++w){for(var S=l[m++],M=l[m++],_=w,b=m-2;_-- >v;){var d=l[b-2],u=l[b-1];if(dl[T+1]:!0}function f(v,T,l,m){v*=2;var w=m[v];return w>1,_=M-m,b=M+m,d=w,u=_,g=M,y=b,R=S,I=v+1,z=T-1,F=0;c(d,u,l)&&(F=d,d=u,u=F),c(y,R,l)&&(F=y,y=R,R=F),c(d,g,l)&&(F=d,d=g,g=F),c(u,g,l)&&(F=u,u=g,g=F),c(d,y,l)&&(F=d,d=y,y=F),c(g,y,l)&&(F=g,g=y,y=F),c(u,R,l)&&(F=u,u=R,R=F),c(u,g,l)&&(F=u,u=g,g=F),c(y,R,l)&&(F=y,y=R,R=F);for(var B=l[2*u],O=l[2*u+1],P=l[2*y],N=l[2*y+1],U=2*d,X=2*g,te=2*R,ue=2*w,ie=2*M,le=2*S,q=0;q<2;++q){var J=l[U+q],ee=l[X+q],Z=l[te+q];l[ue+q]=J,l[ie+q]=ee,l[le+q]=Z}o(_,v,l),o(b,T,l);for(var se=I;se<=z;++se)if(f(se,B,O,l))se!==I&&a(se,I,l),++I;else if(!f(se,P,N,l))for(;;)if(f(z,P,N,l)){f(z,B,O,l)?(n(se,I,z,l),++I,--z):(a(se,z,l),--z);break}else{if(--z>>1;o(m,ee);for(var Z=0,se=0,ie=0;ie=n)Q=Q-n|0,S(p,v,se--,Q);else if(Q>=0)S(c,f,Z--,Q);else if(Q<=-n){Q=-Q-n|0;for(var V=0;V>>1;o(m,ee);for(var Z=0,se=0,Q=0,ie=0;ie>1===m[2*ie+3]>>1&&(re=2,ie+=1),V<0){for(var ae=-(V>>1)-1,fe=0;fe>1)-1;re===0?S(c,f,Z--,ae):re===1?S(p,v,se--,ae):re===2&&S(T,l,Q--,ae)}}}function d(g,y,R,I,z,F,B,O,P,N,U,X){var te=0,ue=2*g,ie=y,le=y+g,q=1,J=1;I?J=n:q=n;for(var ee=z;ee>>1;o(m,V);for(var re=0,ee=0;ee=n?(fe=!I,Z-=n):(fe=!!I,Z-=1),fe)M(c,f,re++,Z);else{var xe=X[Z],Ae=ue*Z,Pe=U[Ae+y+1],Ce=U[Ae+y+1+g];e:for(var je=0;je>>1;o(m,Z);for(var se=0,le=0;le=n)c[se++]=q-n;else{q-=1;var V=U[q],re=te*q,ae=N[re+y+1],fe=N[re+y+1+g];e:for(var xe=0;xe=0;--xe)if(c[xe]===q){for(var je=xe+1;je0;){for(var m=c.pop(),v=c.pop(),w=-1,S=-1,T=p[v],_=1;_=0||(s.flip(v,m),a(n,s,c,w,v,S),a(n,s,c,v,S,w),a(n,s,c,S,m,w),a(n,s,c,m,w,S))}}},5023:function(e,t,r){var i=r(2478);e.exports=f;function a(p,v,T,l,m,w,S){this.cells=p,this.neighbor=v,this.flags=l,this.constraint=T,this.active=m,this.next=w,this.boundary=S}var o=a.prototype;function n(p,v){return p[0]-v[0]||p[1]-v[1]||p[2]-v[2]}o.locate=function(){var p=[0,0,0];return function(v,T,l){var m=v,w=T,S=l;return T0||S.length>0;){for(;w.length>0;){var u=w.pop();if(M[u]!==-m){M[u]=m,_[u];for(var g=0;g<3;++g){var y=d[3*u+g];y>=0&&M[y]===0&&(b[3*u+g]?S.push(y):(w.push(y),M[y]=m))}}}var R=S;S=w,w=R,S.length=0,m=-m}var I=c(_,M,v);return T?I.concat(l.boundary):I}},8902:function(e,t,r){var i=r(2478),a=r(3250)[3],o=0,n=1,s=2;e.exports=S;function c(M,_,b,d,u){this.a=M,this.b=_,this.idx=b,this.lowerIds=d,this.upperIds=u}function f(M,_,b,d){this.a=M,this.b=_,this.type=b,this.idx=d}function p(M,_){var b=M.a[0]-_.a[0]||M.a[1]-_.a[1]||M.type-_.type;return b||M.type!==o&&(b=a(M.a,M.b,_.b),b)?b:M.idx-_.idx}function v(M,_){return a(M.a,M.b,_)}function T(M,_,b,d,u){for(var g=i.lt(_,d,v),y=i.gt(_,d,v),R=g;R1&&a(b[z[B-2]],b[z[B-1]],d)>0;)M.push([z[B-1],z[B-2],u]),B-=1;z.length=B,z.push(u);for(var F=I.upperIds,B=F.length;B>1&&a(b[F[B-2]],b[F[B-1]],d)<0;)M.push([F[B-2],F[B-1],u]),B-=1;F.length=B,F.push(u)}}function l(M,_){var b;return M.a[0]<_.a[0]?b=a(M.a,M.b,_.a):b=a(_.b,_.a,M.a),b||(_.b[0]I[0]&&u.push(new f(I,R,s,g),new f(R,I,n,g))}u.sort(p);for(var z=u[0].a[0]-(1+Math.abs(u[0].a[0]))*Math.pow(2,-52),F=[new c([z,1],[z,0],-1,[],[])],B=[],g=0,O=u.length;g=0}}(),o.removeTriangle=function(c,f,p){var v=this.stars;n(v[c],f,p),n(v[f],p,c),n(v[p],c,f)},o.addTriangle=function(c,f,p){var v=this.stars;v[c].push(f,p),v[f].push(p,c),v[p].push(c,f)},o.opposite=function(c,f){for(var p=this.stars[f],v=1,T=p.length;v=0;--P){var J=B[P];N=J[0];var ee=z[N],Z=ee[0],se=ee[1],Q=I[Z],V=I[se];if((Q[0]-V[0]||Q[1]-V[1])<0){var re=Z;Z=se,se=re}ee[0]=Z;var ae=ee[1]=J[1],fe;for(O&&(fe=ee[2]);P>0&&B[P-1][0]===N;){var J=B[--P],xe=J[1];O?z.push([ae,xe,fe]):z.push([ae,xe]),ae=xe}O?z.push([ae,se,fe]):z.push([ae,se])}return U}function _(I,z,F){for(var B=z.length,O=new i(B),P=[],N=0;Nz[2]?1:0)}function u(I,z,F){if(I.length!==0){if(z)for(var B=0;B0||N.length>0}function R(I,z,F){var B;if(F){B=z;for(var O=new Array(z.length),P=0;PM+1)throw new Error(w+" map requires nshades to be at least size "+m.length);Array.isArray(f.alpha)?f.alpha.length!==2?_=[1,1]:_=f.alpha.slice():typeof f.alpha=="number"?_=[f.alpha,f.alpha]:_=[1,1],p=m.map(function(R){return Math.round(R.index*M)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var d=m.map(function(R,I){var z=m[I].index,F=m[I].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=_[0]+(_[1]-_[0])*z),F}),u=[];for(b=0;b=0}function f(p,v,T,l){var m=i(v,T,l);if(m===0){var w=a(i(p,v,T)),S=a(i(p,v,l));if(w===S){if(w===0){var M=c(p,v,T),_=c(p,v,l);return M===_?0:M?1:-1}return 0}else{if(S===0)return w>0||c(p,v,l)?-1:1;if(w===0)return S>0||c(p,v,T)?1:-1}return a(S-w)}var b=i(p,v,T);if(b>0)return m>0&&i(p,v,l)>0?1:-1;if(b<0)return m>0||i(p,v,l)>0?1:-1;var d=i(p,v,l);return d>0||c(p,v,T)?1:-1}},8572:function(e){e.exports=function(r){return r<0?-1:r>0?1:0}},8507:function(e){e.exports=i;var t=Math.min;function r(a,o){return a-o}function i(a,o){var n=a.length,s=a.length-o.length;if(s)return s;switch(n){case 0:return 0;case 1:return a[0]-o[0];case 2:return a[0]+a[1]-o[0]-o[1]||t(a[0],a[1])-t(o[0],o[1]);case 3:var c=a[0]+a[1],f=o[0]+o[1];if(s=c+a[2]-(f+o[2]),s)return s;var p=t(a[0],a[1]),v=t(o[0],o[1]);return t(p,a[2])-t(v,o[2])||t(p+a[2],c)-t(v+o[2],f);case 4:var T=a[0],l=a[1],m=a[2],w=a[3],S=o[0],M=o[1],_=o[2],b=o[3];return T+l+m+w-(S+M+_+b)||t(T,l,m,w)-t(S,M,_,b,S)||t(T+l,T+m,T+w,l+m,l+w,m+w)-t(S+M,S+_,S+b,M+_,M+b,_+b)||t(T+l+m,T+l+w,T+m+w,l+m+w)-t(S+M+_,S+M+b,S+_+b,M+_+b);default:for(var d=a.slice().sort(r),u=o.slice().sort(r),g=0;gr[a][0]&&(a=o);return ia?[[a],[i]]:[[i]]}},4750:function(e,t,r){e.exports=a;var i=r(3090);function a(o){var n=i(o),s=n.length;if(s<=2)return[];for(var c=new Array(s),f=n[s-1],p=0;p=f[S]&&(w+=1);l[m]=w}}return c}function s(c,f){try{return i(c,!0)}catch{var p=a(c);if(p.length<=f)return[];var v=o(c,p),T=i(v,!0);return n(T,p)}}},4769:function(e){function t(i,a,o,n,s,c){var f=6*s*s-6*s,p=3*s*s-4*s+1,v=-6*s*s+6*s,T=3*s*s-2*s;if(i.length){c||(c=new Array(i.length));for(var l=i.length-1;l>=0;--l)c[l]=f*i[l]+p*a[l]+v*o[l]+T*n[l];return c}return f*i+p*a+v*o[l]+T*n}function r(i,a,o,n,s,c){var f=s-1,p=s*s,v=f*f,T=(1+2*s)*v,l=s*v,m=p*(3-2*s),w=p*f;if(i.length){c||(c=new Array(i.length));for(var S=i.length-1;S>=0;--S)c[S]=T*i[S]+l*a[S]+m*o[S]+w*n[S];return c}return T*i+l*a+m*o+w*n}e.exports=r,e.exports.derivative=t},7642:function(e,t,r){var i=r(8954),a=r(1682);e.exports=c;function o(f,p){this.point=f,this.index=p}function n(f,p){for(var v=f.point,T=p.point,l=v.length,m=0;m=2)return!1;F[O]=P}return!0}):z=z.filter(function(F){for(var B=0;B<=T;++B){var O=g[F[B]];if(O<0)return!1;F[B]=O}return!0}),T&1)for(var w=0;w>>31},e.exports.exponent=function(o){var n=e.exports.hi(o);return(n<<1>>>21)-1023},e.exports.fraction=function(o){var n=e.exports.lo(o),s=e.exports.hi(o),c=s&(1<<20)-1;return s&2146435072&&(c+=1048576),[n,c]},e.exports.denormalized=function(o){var n=e.exports.hi(o);return!(n&2146435072)}},1338:function(e){function t(a,o,n){var s=a[n]|0;if(s<=0)return[];var c=new Array(s),f;if(n===a.length-1)for(f=0;f"u"&&(o=0),typeof a){case"number":if(a>0)return r(a|0,o);break;case"object":if(typeof a.length=="number")return t(a,o,0);break}return[]}e.exports=i},3134:function(e,t,r){e.exports=a;var i=r(1682);function a(o,n){var s=o.length;if(typeof n!="number"){n=0;for(var c=0;c=T-1)for(var b=w.length-1,u=p-v[T-1],d=0;d=T-1){var _=w.length-1;p-v[T-1];for(var b=0;b=0;--T)if(p[--v])return!1;return!0},s.jump=function(p){var v=this.lastT(),T=this.dimension;if(!(p0;--d)l.push(o(M[d-1],_[d-1],arguments[d])),m.push(0)}},s.push=function(p){var v=this.lastT(),T=this.dimension;if(!(p1e-6?1/S:0;this._time.push(p);for(var u=T;u>0;--u){var g=o(_[u-1],b[u-1],arguments[u]);l.push(g),m.push((g-l[w++])*d)}}},s.set=function(p){var v=this.dimension;if(!(p0;--M)T.push(o(w[M-1],S[M-1],arguments[M])),l.push(0)}},s.move=function(p){var v=this.lastT(),T=this.dimension;if(!(p<=v||arguments.length!==T+1)){var l=this._state,m=this._velocity,w=l.length-this.dimension,S=this.bounds,M=S[0],_=S[1],b=p-v,d=b>1e-6?1/b:0;this._time.push(p);for(var u=T;u>0;--u){var g=arguments[u];l.push(o(M[u-1],_[u-1],l[w++]+g)),m.push(g*d)}}},s.idle=function(p){var v=this.lastT();if(!(p=0;--d)l.push(o(M[d],_[d],l[w]+b*m[w])),m.push(0),w+=1}};function c(p){for(var v=new Array(p),T=0;T=0;--I){var u=g[I];y[I]<=0?g[I]=new i(u._color,u.key,u.value,g[I+1],u.right,u._count+1):g[I]=new i(u._color,u.key,u.value,u.left,g[I+1],u._count+1)}for(var I=g.length-1;I>1;--I){var z=g[I-1],u=g[I];if(z._color===r||u._color===r)break;var F=g[I-2];if(F.left===z)if(z.left===u){var B=F.right;if(B&&B._color===t)z._color=r,F.right=o(r,B),F._color=t,I-=1;else{if(F._color=t,F.left=z.right,z._color=r,z.right=F,g[I-2]=z,g[I-1]=u,n(F),n(z),I>=3){var O=g[I-3];O.left===F?O.left=z:O.right=z}break}}else{var B=F.right;if(B&&B._color===t)z._color=r,F.right=o(r,B),F._color=t,I-=1;else{if(z.right=u.left,F._color=t,F.left=u.right,u._color=r,u.left=z,u.right=F,g[I-2]=u,g[I-1]=z,n(F),n(z),n(u),I>=3){var O=g[I-3];O.left===F?O.left=u:O.right=u}break}}else if(z.right===u){var B=F.left;if(B&&B._color===t)z._color=r,F.left=o(r,B),F._color=t,I-=1;else{if(F._color=t,F.right=z.left,z._color=r,z.left=F,g[I-2]=z,g[I-1]=u,n(F),n(z),I>=3){var O=g[I-3];O.right===F?O.right=z:O.left=z}break}}else{var B=F.left;if(B&&B._color===t)z._color=r,F.left=o(r,B),F._color=t,I-=1;else{if(z.left=u.right,F._color=t,F.right=u.left,u._color=r,u.right=z,u.left=F,g[I-2]=u,g[I-1]=z,n(F),n(z),n(u),I>=3){var O=g[I-3];O.right===F?O.right=u:O.left=u}break}}}return g[0]._color=r,new s(d,g[0])};function f(_,b){if(b.left){var d=f(_,b.left);if(d)return d}var d=_(b.key,b.value);if(d)return d;if(b.right)return f(_,b.right)}function p(_,b,d,u){var g=b(_,u.key);if(g<=0){if(u.left){var y=p(_,b,d,u.left);if(y)return y}var y=d(u.key,u.value);if(y)return y}if(u.right)return p(_,b,d,u.right)}function v(_,b,d,u,g){var y=d(_,g.key),R=d(b,g.key),I;if(y<=0&&(g.left&&(I=v(_,b,d,u,g.left),I)||R>0&&(I=u(g.key,g.value),I)))return I;if(R>0&&g.right)return v(_,b,d,u,g.right)}c.forEach=function(b,d,u){if(this.root)switch(arguments.length){case 1:return f(b,this.root);case 2:return p(d,this._compare,b,this.root);case 3:return this._compare(d,u)>=0?void 0:v(d,u,this._compare,b,this.root)}},Object.defineProperty(c,"begin",{get:function(){for(var _=[],b=this.root;b;)_.push(b),b=b.left;return new T(this,_)}}),Object.defineProperty(c,"end",{get:function(){for(var _=[],b=this.root;b;)_.push(b),b=b.right;return new T(this,_)}}),c.at=function(_){if(_<0)return new T(this,[]);for(var b=this.root,d=[];;){if(d.push(b),b.left){if(_=b.right._count)break;b=b.right}else break}return new T(this,[])},c.ge=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y<=0&&(g=u.length),y<=0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.gt=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y<0&&(g=u.length),y<0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.lt=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y>0&&(g=u.length),y<=0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.le=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y>=0&&(g=u.length),y<0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.find=function(_){for(var b=this._compare,d=this.root,u=[];d;){var g=b(_,d.key);if(u.push(d),g===0)return new T(this,u);g<=0?d=d.left:d=d.right}return new T(this,[])},c.remove=function(_){var b=this.find(_);return b?b.remove():this},c.get=function(_){for(var b=this._compare,d=this.root;d;){var u=b(_,d.key);if(u===0)return d.value;u<=0?d=d.left:d=d.right}};function T(_,b){this.tree=_,this._stack=b}var l=T.prototype;Object.defineProperty(l,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(l,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),l.clone=function(){return new T(this.tree,this._stack.slice())};function m(_,b){_.key=b.key,_.value=b.value,_.left=b.left,_.right=b.right,_._color=b._color,_._count=b._count}function w(_){for(var b,d,u,g,y=_.length-1;y>=0;--y){if(b=_[y],y===0){b._color=r;return}if(d=_[y-1],d.left===b){if(u=d.right,u.right&&u.right._color===t){if(u=d.right=a(u),g=u.right=a(u.right),d.right=u.left,u.left=d,u.right=g,u._color=d._color,b._color=r,d._color=r,g._color=r,n(d),n(u),y>1){var R=_[y-2];R.left===d?R.left=u:R.right=u}_[y-1]=u;return}else if(u.left&&u.left._color===t){if(u=d.right=a(u),g=u.left=a(u.left),d.right=g.left,u.left=g.right,g.left=d,g.right=u,g._color=d._color,d._color=r,u._color=r,b._color=r,n(d),n(u),n(g),y>1){var R=_[y-2];R.left===d?R.left=g:R.right=g}_[y-1]=g;return}if(u._color===r)if(d._color===t){d._color=r,d.right=o(t,u);return}else{d.right=o(t,u);continue}else{if(u=a(u),d.right=u.left,u.left=d,u._color=d._color,d._color=t,n(d),n(u),y>1){var R=_[y-2];R.left===d?R.left=u:R.right=u}_[y-1]=u,_[y]=d,y+1<_.length?_[y+1]=b:_.push(b),y=y+2}}else{if(u=d.left,u.left&&u.left._color===t){if(u=d.left=a(u),g=u.left=a(u.left),d.left=u.right,u.right=d,u.left=g,u._color=d._color,b._color=r,d._color=r,g._color=r,n(d),n(u),y>1){var R=_[y-2];R.right===d?R.right=u:R.left=u}_[y-1]=u;return}else if(u.right&&u.right._color===t){if(u=d.left=a(u),g=u.right=a(u.right),d.left=g.right,u.right=g.left,g.right=d,g.left=u,g._color=d._color,d._color=r,u._color=r,b._color=r,n(d),n(u),n(g),y>1){var R=_[y-2];R.right===d?R.right=g:R.left=g}_[y-1]=g;return}if(u._color===r)if(d._color===t){d._color=r,d.left=o(t,u);return}else{d.left=o(t,u);continue}else{if(u=a(u),d.left=u.right,u.right=d,u._color=d._color,d._color=t,n(d),n(u),y>1){var R=_[y-2];R.right===d?R.right=u:R.left=u}_[y-1]=u,_[y]=d,y+1<_.length?_[y+1]=b:_.push(b),y=y+2}}}}l.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var b=new Array(_.length),d=_[_.length-1];b[b.length-1]=new i(d._color,d.key,d.value,d.left,d.right,d._count);for(var u=_.length-2;u>=0;--u){var d=_[u];d.left===_[u+1]?b[u]=new i(d._color,d.key,d.value,b[u+1],d.right,d._count):b[u]=new i(d._color,d.key,d.value,d.left,b[u+1],d._count)}if(d=b[b.length-1],d.left&&d.right){var g=b.length;for(d=d.left;d.right;)b.push(d),d=d.right;var y=b[g-1];b.push(new i(d._color,y.key,y.value,d.left,d.right,d._count)),b[g-1].key=d.key,b[g-1].value=d.value;for(var u=b.length-2;u>=g;--u)d=b[u],b[u]=new i(d._color,d.key,d.value,d.left,b[u+1],d._count);b[g-1].left=b[g]}if(d=b[b.length-1],d._color===t){var R=b[b.length-2];R.left===d?R.left=null:R.right===d&&(R.right=null),b.pop();for(var u=0;u0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(l,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(l,"index",{get:function(){var _=0,b=this._stack;if(b.length===0){var d=this.tree.root;return d?d._count:0}else b[b.length-1].left&&(_=b[b.length-1].left._count);for(var u=b.length-2;u>=0;--u)b[u+1]===b[u].right&&(++_,b[u].left&&(_+=b[u].left._count));return _},enumerable:!0}),l.next=function(){var _=this._stack;if(_.length!==0){var b=_[_.length-1];if(b.right)for(b=b.right;b;)_.push(b),b=b.left;else for(_.pop();_.length>0&&_[_.length-1].right===b;)b=_[_.length-1],_.pop()}},Object.defineProperty(l,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var b=_.length-1;b>0;--b)if(_[b-1].left===_[b])return!0;return!1}}),l.update=function(_){var b=this._stack;if(b.length===0)throw new Error("Can't update empty node!");var d=new Array(b.length),u=b[b.length-1];d[d.length-1]=new i(u._color,u.key,_,u.left,u.right,u._count);for(var g=b.length-2;g>=0;--g)u=b[g],u.left===b[g+1]?d[g]=new i(u._color,u.key,u.value,d[g+1],u.right,u._count):d[g]=new i(u._color,u.key,u.value,u.left,d[g+1],u._count);return new s(this.tree._compare,d[0])},l.prev=function(){var _=this._stack;if(_.length!==0){var b=_[_.length-1];if(b.left)for(b=b.left;b;)_.push(b),b=b.right;else for(_.pop();_.length>0&&_[_.length-1].left===b;)b=_[_.length-1],_.pop()}},Object.defineProperty(l,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var b=_.length-1;b>0;--b)if(_[b-1].right===_[b])return!0;return!1}});function S(_,b){return _b?1:0}function M(_){return new s(_||S,null)}},3837:function(e,t,r){e.exports=I;var i=r(4935),a=r(501),o=r(5304),n=r(6429),s=r(6444),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),f=ArrayBuffer,p=DataView;function v(z){return f.isView(z)&&!(z instanceof p)}function T(z){return Array.isArray(z)||v(z)}function l(z,F){return z[0]=F[0],z[1]=F[1],z[2]=F[2],z}function m(z){this.gl=z,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],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=[0,0,0],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=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=o(z)}var w=m.prototype;w.update=function(z){z=z||{};function F(Z,se,Q){if(Q in z){var V=z[Q],re=this[Q],ae;(Z?T(V)&&T(V[0]):T(V))?this[Q]=ae=[se(V[0]),se(V[1]),se(V[2])]:this[Q]=ae=[se(V),se(V),se(V)];for(var fe=0;fe<3;++fe)if(ae[fe]!==re[fe])return!0}return!1}var B=F.bind(this,!1,Number),O=F.bind(this,!1,Boolean),P=F.bind(this,!1,String),N=F.bind(this,!0,function(Z){if(T(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),U,X=!1,te=!1;if("bounds"in z)for(var ue=z.bounds,ie=0;ie<2;++ie)for(var le=0;le<3;++le)ue[ie][le]!==this.bounds[ie][le]&&(te=!0),this.bounds[ie][le]=ue[ie][le];if("ticks"in z){U=z.ticks,X=!0,this.autoTicks=!1;for(var ie=0;ie<3;++ie)this.tickSpacing[ie]=0}else B("tickSpacing")&&(this.autoTicks=!0,te=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),te=!0,X=!0,this._firstInit=!1),te&&this.autoTicks&&(U=s.create(this.bounds,this.tickSpacing),X=!0),X){for(var ie=0;ie<3;++ie)U[ie].sort(function(se,Q){return se.x-Q.x});s.equal(U,this.ticks)?X=!1:this.ticks=U}O("tickEnable"),P("tickFont")&&(X=!0),P("tickFontStyle")&&(X=!0),P("tickFontWeight")&&(X=!0),P("tickFontVariant")&&(X=!0),B("tickSize"),B("tickAngle"),B("tickPad"),N("tickColor");var q=P("labels");P("labelFont")&&(q=!0),P("labelFontStyle")&&(q=!0),P("labelFontWeight")&&(q=!0),P("labelFontVariant")&&(q=!0),O("labelEnable"),B("labelSize"),B("labelPad"),N("labelColor"),O("lineEnable"),O("lineMirror"),B("lineWidth"),N("lineColor"),O("lineTickEnable"),O("lineTickMirror"),B("lineTickLength"),B("lineTickWidth"),N("lineTickColor"),O("gridEnable"),B("gridWidth"),N("gridColor"),O("zeroEnable"),N("zeroLineColor"),B("zeroLineWidth"),O("backgroundEnable"),N("backgroundColor");var J=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ee=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||X)&&this._text.update(this.bounds,this.labels,J,this.ticks,ee):this._text=i(this.gl,this.bounds,this.labels,J,this.ticks,ee),this._lines&&X&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=a(this.gl,this.bounds,this.ticks))};function S(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new S,new S,new S];function _(z,F,B,O,P){for(var N=z.primalOffset,U=z.primalMinor,X=z.mirrorOffset,te=z.mirrorMinor,ue=O[F],ie=0;ie<3;++ie)if(F!==ie){var le=N,q=X,J=U,ee=te;ue&1<0?(J[ie]=-1,ee[ie]=0):(J[ie]=0,ee[ie]=1)}}var b=[0,0,0],d={model:c,view:c,projection:c,_ortho:!1};w.isOpaque=function(){return!0},w.isTransparent=function(){return!1},w.drawTransparent=function(z){};var u=0,g=[0,0,0],y=[0,0,0],R=[0,0,0];w.draw=function(z){z=z||d;for(var Q=this.gl,F=z.model||c,B=z.view||c,O=z.projection||c,P=this.bounds,N=z._ortho||!1,U=n(F,B,O,P,N),X=U.cubeEdges,te=U.axis,ue=B[12],ie=B[13],le=B[14],q=B[15],J=N?2:1,ee=J*this.pixelRatio*(O[3]*ue+O[7]*ie+O[11]*le+O[15]*q)/Q.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=X[Z],this.lastCubeProps.axis[Z]=te[Z];for(var se=M,Z=0;Z<3;++Z)_(M[Z],Z,this.bounds,X,te);for(var Q=this.gl,V=b,Z=0;Z<3;++Z)this.backgroundEnable[Z]?V[Z]=te[Z]:V[Z]=0;this._background.draw(F,B,O,P,V,this.backgroundColor),this._lines.bind(F,B,O,this);for(var Z=0;Z<3;++Z){var re=[0,0,0];te[Z]>0?re[Z]=P[1][Z]:re[Z]=P[0][Z];for(var ae=0;ae<2;++ae){var fe=(Z+1+ae)%3,xe=(Z+1+(ae^1))%3;this.gridEnable[fe]&&this._lines.drawGrid(fe,xe,this.bounds,re,this.gridColor[fe],this.gridWidth[fe]*this.pixelRatio)}for(var ae=0;ae<2;++ae){var fe=(Z+1+ae)%3,xe=(Z+1+(ae^1))%3;this.zeroEnable[xe]&&Math.min(P[0][xe],P[1][xe])<=0&&Math.max(P[0][xe],P[1][xe])>=0&&this._lines.drawZero(fe,xe,this.bounds,re,this.zeroLineColor[xe],this.zeroLineWidth[xe]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var Ae=l(g,se[Z].primalMinor),Pe=l(y,se[Z].mirrorMinor),Ce=this.lineTickLength,ae=0;ae<3;++ae){var je=ee/F[5*ae];Ae[ae]*=Ce[ae]*je,Pe[ae]*=Ce[ae]*je}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,se[Z].primalOffset,Ae,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,se[Z].mirrorOffset,Pe,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,B,O,this.pixelRatio);var at,tt=.5,Je,Ze;function Me(Ke){Ze=[0,0,0],Ze[Ke]=1}function we(Ke,Et,kt){var Ut=(Ke+1)%3,Yt=(Ke+2)%3,vr=Et[Ut],hr=Et[Yt],Rr=kt[Ut],dr=kt[Yt];if(vr>0&&dr>0){Me(Ut);return}else if(vr>0&&dr<0){Me(Ut);return}else if(vr<0&&dr>0){Me(Ut);return}else if(vr<0&&dr<0){Me(Ut);return}else if(hr>0&&Rr>0){Me(Yt);return}else if(hr>0&&Rr<0){Me(Yt);return}else if(hr<0&&Rr>0){Me(Yt);return}else if(hr<0&&Rr<0){Me(Yt);return}}for(var Z=0;Z<3;++Z){for(var he=se[Z].primalMinor,De=se[Z].mirrorMinor,et=l(R,se[Z].primalOffset),ae=0;ae<3;++ae)this.lineTickEnable[Z]&&(et[ae]+=ee*he[ae]*Math.max(this.lineTickLength[ae],0)/F[5*ae]);var nt=[0,0,0];if(nt[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,Je=1,at=[this.tickAlign[Z],tt,Je],at[0]==="auto"?at[0]=u:at[0]=parseInt(""+at[0]),Ze=[0,0,0],we(Z,he,De);for(var ae=0;ae<3;++ae)et[ae]+=ee*he[ae]*this.tickPad[ae]/F[5*ae];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],et,this.tickColor[Z],nt,Ze,at)}if(this.labelEnable[Z]){Je=0,Ze=[0,0,0],this.labels[Z].length>4&&(Me(Z),Je=1),at=[this.labelAlign[Z],tt,Je],at[0]==="auto"?at[0]=u:at[0]=parseInt(""+at[0]);for(var ae=0;ae<3;++ae)et[ae]+=ee*he[ae]*this.labelPad[ae]/F[5*ae];et[Z]+=.5*(P[0][Z]+P[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],et,this.labelColor[Z],[0,0,0],Ze,at)}}this._text.unbind()},w.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function I(z,F){var B=new m(z);return B.update(F),B}},5304:function(e,t,r){e.exports=c;var i=r(2762),a=r(8116),o=r(1879).bg;function n(f,p,v,T){this.gl=f,this.buffer=p,this.vao=v,this.shader=T}var s=n.prototype;s.draw=function(f,p,v,T,l,m){for(var w=!1,S=0;S<3;++S)w=w||l[S];if(w){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:f,view:p,projection:v,bounds:T,enable:l,colors:m},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function c(f){for(var p=[],v=[],T=0,l=0;l<3;++l)for(var m=(l+1)%3,w=(l+2)%3,S=[0,0,0],M=[0,0,0],_=-1;_<=1;_+=2){v.push(T,T+2,T+1,T+1,T+2,T+3),S[l]=_,M[l]=_;for(var b=-1;b<=1;b+=2){S[m]=b;for(var d=-1;d<=1;d+=2)S[w]=d,p.push(S[0],S[1],S[2],M[0],M[1],M[2]),T+=1}var u=m;m=w,w=u}var g=i(f,new Float32Array(p)),y=i(f,new Uint16Array(v),f.ELEMENT_ARRAY_BUFFER),R=a(f,[{buffer:g,type:f.FLOAT,size:3,offset:0,stride:24},{buffer:g,type:f.FLOAT,size:3,offset:12,stride:24}],y),I=o(f);return I.attributes.position.location=0,I.attributes.normal.location=1,new n(f,g,R,I)}},6429:function(e,t,r){e.exports=_;var i=r(8828),a=r(6760),o=r(5202),n=r(3250),s=new Array(16),c=new Array(8),f=new Array(8),p=new Array(3),v=[0,0,0];(function(){for(var b=0;b<8;++b)c[b]=[1,1,1,1],f[b]=[1,1,1]})();function T(b,d,u){for(var g=0;g<4;++g){b[g]=u[12+g];for(var y=0;y<3;++y)b[g]+=d[y]*u[4*y+g]}}var l=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function m(b){for(var d=0;dte&&(B|=1<te){B|=1<f[I][1])&&(se=I);for(var Q=-1,I=0;I<3;++I){var V=se^1<f[re][0]&&(re=V)}}var ae=w;ae[0]=ae[1]=ae[2]=0,ae[i.log2(Q^se)]=se&Q,ae[i.log2(se^re)]=se&re;var fe=re^7;fe===B||fe===Z?(fe=Q^7,ae[i.log2(re^fe)]=fe&re):ae[i.log2(Q^fe)]=fe&Q;for(var xe=S,Ae=B,N=0;N<3;++N)Ae&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? + b - PI : + b; +} + +float look_horizontal_or_vertical(float a, float ratio) { + // ratio controls the ratio between being horizontal to (vertical + horizontal) + // if ratio is set to 0.5 then it is 50%, 50%. + // when using a higher ratio e.g. 0.75 the result would + // likely be more horizontal than vertical. + + float b = positive_angle(a); + + return + (b < ( ratio) * HALF_PI) ? 0.0 : + (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : + (b < (2.0 + ratio) * HALF_PI) ? 0.0 : + (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : + 0.0; +} + +float roundTo(float a, float b) { + return float(b * floor((a + 0.5 * b) / b)); +} + +float look_round_n_directions(float a, int n) { + float b = positive_angle(a); + float div = TWO_PI / float(n); + float c = roundTo(b, div); + return look_upwards(c); +} + +float applyAlignOption(float rawAngle, float delta) { + return + (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions + (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical + (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis + (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards + (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal + rawAngle; // otherwise return back raw input angle +} + +bool isAxisTitle = (axis.x == 0.0) && + (axis.y == 0.0) && + (axis.z == 0.0); + +void main() { + //Compute world offset + float axisDistance = position.z; + vec3 dataPosition = axisDistance * axis + offset; + + float beta = angle; // i.e. user defined attributes for each tick + + float axisAngle; + float clipAngle; + float flip; + + if (enableAlign) { + axisAngle = (isAxisTitle) ? HALF_PI : + computeViewAngle(dataPosition, dataPosition + axis); + clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); + + axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; + clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; + + flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), + vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; + + beta += applyAlignOption(clipAngle, flip * PI); + } + + //Compute plane offset + vec2 planeCoord = position.xy * pixelScale; + + mat2 planeXform = scale * mat2( + cos(beta), sin(beta), + -sin(beta), cos(beta) + ); + + vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; + + //Compute clip position + vec3 clipPosition = project(dataPosition); + + //Apply text offset in clip coordinates + clipPosition += vec3(viewOffset, 0.0); + + //Done + gl_Position = vec4(clipPosition, 1.0); +} +`]),c=i([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 color; +void main() { + gl_FragColor = color; +}`]);t.Q=function(v){return a(v,s,c,null,[{name:"position",type:"vec3"}])};var f=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec3 normal; + +uniform mat4 model, view, projection; +uniform vec3 enable; +uniform vec3 bounds[2]; + +varying vec3 colorChannel; + +void main() { + + vec3 signAxis = sign(bounds[1] - bounds[0]); + + vec3 realNormal = signAxis * normal; + + if(dot(realNormal, enable) > 0.0) { + vec3 minRange = min(bounds[0], bounds[1]); + vec3 maxRange = max(bounds[0], bounds[1]); + vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); + gl_Position = projection * (view * (model * vec4(nPosition, 1.0))); + } else { + gl_Position = vec4(0,0,0,0); + } + + colorChannel = abs(realNormal); +} +`]),p=i([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 colors[3]; + +varying vec3 colorChannel; + +void main() { + gl_FragColor = colorChannel.x * colors[0] + + colorChannel.y * colors[1] + + colorChannel.z * colors[2]; +}`]);t.bg=function(v){return a(v,f,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(e,t,r){e.exports=m;var i=r(2762),a=r(8116),o=r(4359),n=r(1879).Q,s=window||process.global||{},c=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};var f=3;function p(w,S,M,_){this.gl=w,this.shader=S,this.buffer=M,this.vao=_,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=p.prototype,T=[0,0];v.bind=function(w,S,M,_){this.vao.bind(),this.shader.bind();var b=this.shader.uniforms;b.model=w,b.view=S,b.projection=M,b.pixelScale=_,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},v.unbind=function(){this.vao.unbind()},v.update=function(w,S,M,_,b){var d=[];function u(N,U,X,te,ue,ie){var le=[X.style,X.weight,X.variant,X.family].join("_"),q=c[le];q||(q=c[le]={});var J=q[U];J||(J=q[U]=l(U,{triangles:!0,font:X.family,fontStyle:X.style,fontWeight:X.weight,fontVariant:X.variant,textAlign:"center",textBaseline:"middle",lineSpacing:ue,styletags:ie}));for(var ee=(te||12)/12,Z=J.positions,se=J.cells,Q=0,V=se.length;Q=0;--ae){var fe=Z[re[ae]];d.push(ee*fe[0],-ee*fe[1],N)}}for(var g=[0,0,0],y=[0,0,0],R=[0,0,0],I=[0,0,0],z=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},B=0;B<3;++B){R[B]=d.length/f|0,u(.5*(w[0][B]+w[1][B]),S[B],M[B],12,z,F),I[B]=(d.length/f|0)-R[B],g[B]=d.length/f|0;for(var O=0;O<_[B].length;++O)if(_[B][O].text){var P={family:_[B][O].font||b[B].family,style:b[B].fontStyle||b[B].style,weight:b[B].fontWeight||b[B].weight,variant:b[B].fontVariant||b[B].variant};u(_[B][O].x,_[B][O].text,P,_[B][O].fontSize||12,z,F)}y[B]=(d.length/f|0)-g[B]}this.buffer.update(d),this.tickOffset=g,this.tickCount=y,this.labelOffset=R,this.labelCount=I},v.drawTicks=function(w,S,M,_,b,d,u,g){this.tickCount[w]&&(this.shader.uniforms.axis=d,this.shader.uniforms.color=b,this.shader.uniforms.angle=M,this.shader.uniforms.scale=S,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=u,this.shader.uniforms.alignOpt=g,this.vao.draw(this.gl.TRIANGLES,this.tickCount[w],this.tickOffset[w]))},v.drawLabel=function(w,S,M,_,b,d,u,g){this.labelCount[w]&&(this.shader.uniforms.axis=d,this.shader.uniforms.color=b,this.shader.uniforms.angle=M,this.shader.uniforms.scale=S,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=u,this.shader.uniforms.alignOpt=g,this.vao.draw(this.gl.TRIANGLES,this.labelCount[w],this.labelOffset[w]))},v.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function l(w,S){try{return o(w,S)}catch(M){return console.warn('error vectorizing text:"'+w+'" error:',M),{cells:[],positions:[]}}}function m(w,S,M,_,b,d){var u=i(w),g=a(w,[{buffer:u,size:3}]),y=n(w);y.attributes.position.location=0;var R=new p(w,y,u,g);return R.update(S,M,_,b,d),R}},6444:function(e,t){t.create=i,t.equal=a;function r(o,n){var s=o+"",c=s.indexOf("."),f=0;c>=0&&(f=s.length-c-1);var p=Math.pow(10,f),v=Math.round(o*n*p),T=v+"";if(T.indexOf("e")>=0)return T;var l=v/p,m=v%p;v<0?(l=-Math.ceil(l)|0,m=-m|0):(l=Math.floor(l)|0,m=m|0);var w=""+l;if(v<0&&(w="-"+w),f){for(var S=""+m;S.length=o[0][c];--p)f.push({x:p*n[c],text:r(n[c],p)});s.push(f)}return s}function a(o,n){for(var s=0;s<3;++s){if(o[s].length!==n[s].length)return!1;for(var c=0;cw)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return l.bufferSubData(m,_,M),w}function p(l,m){for(var w=i.malloc(l.length,m),S=l.length,M=0;M=0;--S){if(m[S]!==w)return!1;w*=l[S]}return!0}c.update=function(l,m){if(typeof m!="number"&&(m=-1),this.bind(),typeof l=="object"&&typeof l.shape<"u"){var w=l.dtype;if(n.indexOf(w)<0&&(w="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var S=gl.getExtension("OES_element_index_uint");S&&w!=="uint16"?w="uint32":w="uint16"}if(w===l.dtype&&v(l.shape,l.stride))l.offset===0&&l.data.length===l.shape[0]?this.length=f(this.gl,this.type,this.length,this.usage,l.data,m):this.length=f(this.gl,this.type,this.length,this.usage,l.data.subarray(l.offset,l.shape[0]),m);else{var M=i.malloc(l.size,w),_=o(M,l.shape);a.assign(_,l),m<0?this.length=f(this.gl,this.type,this.length,this.usage,M,m):this.length=f(this.gl,this.type,this.length,this.usage,M.subarray(0,l.size),m),i.free(M)}}else if(Array.isArray(l)){var b;this.type===this.gl.ELEMENT_ARRAY_BUFFER?b=p(l,"uint16"):b=p(l,"float32"),m<0?this.length=f(this.gl,this.type,this.length,this.usage,b,m):this.length=f(this.gl,this.type,this.length,this.usage,b.subarray(0,l.length),m),i.free(b)}else if(typeof l=="object"&&typeof l.length=="number")this.length=f(this.gl,this.type,this.length,this.usage,l,m);else if(typeof l=="number"||l===void 0){if(m>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");l=l|0,l<=0&&(l=1),this.gl.bufferData(this.type,l|0,this.usage),this.length=l}else throw new Error("gl-buffer: Invalid data type")};function T(l,m,w,S){if(w=w||l.ARRAY_BUFFER,S=S||l.DYNAMIC_DRAW,w!==l.ARRAY_BUFFER&&w!==l.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(S!==l.DYNAMIC_DRAW&&S!==l.STATIC_DRAW&&S!==l.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var M=l.createBuffer(),_=new s(l,w,M,0,S);return _.update(m),_}e.exports=T},6405:function(e,t,r){var i=r(2931);e.exports=function(o,n){var s=o.positions,c=o.vectors,f={positions:[],vertexIntensity:[],vertexIntensityBounds:o.vertexIntensityBounds,vectors:[],cells:[],coneOffset:o.coneOffset,colormap:o.colormap};if(o.positions.length===0)return n&&(n[0]=[0,0,0],n[1]=[0,0,0]),f;for(var p=0,v=1/0,T=-1/0,l=1/0,m=-1/0,w=1/0,S=-1/0,M=null,_=null,b=[],d=1/0,u=!1,g=o.coneSizemode==="raw",y=0;yp&&(p=i.length(I)),y&&!g){var z=2*i.distance(M,R)/(i.length(_)+i.length(I));z?(d=Math.min(d,z),u=!1):u=!0}u||(M=R,_=I),b.push(I)}var F=[v,l,w],B=[T,m,S];n&&(n[0]=F,n[1]=B),p===0&&(p=1);var O=1/p;isFinite(d)||(d=1),f.vectorScale=d;var P=o.coneSize||(g?1:.5);o.absoluteConeSize&&(P=o.absoluteConeSize*O),f.coneScale=P;for(var y=0,N=0;y=1},l.isTransparent=function(){return this.opacity<1},l.pickSlots=1,l.setPickBase=function(b){this.pickId=b};function m(b){for(var d=p({colormap:b,nshades:256,format:"rgba"}),u=new Uint8Array(256*4),g=0;g<256;++g){for(var y=d[g],R=0;R<3;++R)u[4*g+R]=y[R];u[4*g+3]=y[3]*255}return f(u,[256,256,4],[4,0,1])}function w(b){for(var d=b.length,u=new Array(d),g=0;g0){var N=this.triShader;N.bind(),N.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||v,g=b.view||v,y=b.projection||v,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],I=0;I<3;++I)R[0][I]=Math.max(R[0][I],this.clipBounds[0][I]),R[1][I]=Math.min(R[1][I],this.clipBounds[1][I]);this._model=[].slice.call(u),this._view=[].slice.call(g),this._projection=[].slice.call(y),this._resolution=[d.drawingBufferWidth,d.drawingBufferHeight];var z={model:u,view:g,projection:y,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],g=this.positions[u[1]].slice(0,3),y={position:g,dataCoordinate:g,index:Math.floor(u[1]/48)};return this.traceType==="cone"?y.index=Math.floor(u[1]/48):this.traceType==="streamtube"&&(y.intensity=this.intensity[u[1]],y.velocity=this.vectors[u[1]].slice(0,3),y.divergence=this.vectors[u[1]][3],y.index=d),y},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 S(b,d){var u=i(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=i(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 _(b,d,u){var g=u.shaders;arguments.length===1&&(d=b,b=d.gl);var y=S(b,g),R=M(b,g),I=n(b,f(new Uint8Array([255,255,255,255]),[1,1,4]));I.generateMipmap(),I.minFilter=b.LINEAR_MIPMAP_LINEAR,I.magFilter=b.LINEAR;var z=a(b),F=a(b),B=a(b),O=a(b),P=a(b),N=o(b,[{buffer:z,type:b.FLOAT,size:4},{buffer:P,type:b.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:B,type:b.FLOAT,size:4},{buffer:O,type:b.FLOAT,size:2},{buffer:F,type:b.FLOAT,size:4}]),U=new T(b,I,y,R,z,F,P,B,O,N,u.traceType||"cone");return U.update(d),U}e.exports=_},614:function(e,t,r){var i=r(3236),a=i([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec3 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, coneScale, coneOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * conePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(conePosition, 1.0); + vec4 t_position = view * conePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = conePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),o=i([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),n=i([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float vectorScale, coneScale, coneOffset; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + gl_Position = projection * (view * conePosition); + f_id = id; + f_position = position.xyz; +} +`]),s=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},t.pickShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(e){e.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(e,t,r){var i=r(737);e.exports=function(o){return i[o]}},9165:function(e,t,r){e.exports=T;var i=r(2762),a=r(8116),o=r(3436),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(l,m,w,S){this.gl=l,this.shader=S,this.buffer=m,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 c=s.prototype;c.isOpaque=function(){return!this.hasAlpha},c.isTransparent=function(){return this.hasAlpha},c.drawTransparent=c.draw=function(l){var m=this.gl,w=this.shader.uniforms;this.shader.bind();var S=w.view=l.view||n,M=w.projection=l.projection||n;w.model=l.model||n,w.clipBounds=this.clipBounds,w.opacity=this.opacity;var _=S[12],b=S[13],d=S[14],u=S[15],g=l._ortho||!1,y=g?2:1,R=y*this.pixelRatio*(M[3]*_+M[7]*b+M[11]*d+M[15]*u)/m.drawingBufferHeight;this.vao.bind();for(var I=0;I<3;++I)m.lineWidth(this.lineWidth[I]*this.pixelRatio),w.capSize=this.capSize[I]*R,this.lineCount[I]&&m.drawArrays(m.LINES,this.lineOffset[I],this.lineCount[I]);this.vao.unbind()};function f(l,m){for(var w=0;w<3;++w)l[0][w]=Math.min(l[0][w],m[w]),l[1][w]=Math.max(l[1][w],m[w])}var p=function(){for(var l=new Array(3),m=0;m<3;++m){for(var w=[],S=1;S<=2;++S)for(var M=-1;M<=1;M+=2){var _=(S+m)%3,b=[0,0,0];b[_]=M,w.push(b)}l[m]=w}return l}();function v(l,m,w,S){for(var M=p[S],_=0;_0){var z=g.slice();z[d]+=R[1][d],M.push(g[0],g[1],g[2],I[0],I[1],I[2],I[3],0,0,0,z[0],z[1],z[2],I[0],I[1],I[2],I[3],0,0,0),f(this.bounds,z),b+=2+v(M,z,I,d)}}}this.lineCount[d]=b-this.lineOffset[d]}this.buffer.update(M)}},c.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(l){var m=l.gl,w=i(m),S=a(m,[{buffer:w,type:m.FLOAT,size:3,offset:0,stride:40},{buffer:w,type:m.FLOAT,size:4,offset:12,stride:40},{buffer:w,type:m.FLOAT,size:3,offset:28,stride:40}]),M=o(m);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var _=new s(m,w,S,M);return _.update(l),_}},3436:function(e,t,r){var i=r(3236),a=r(9405),o=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, offset; +attribute vec4 color; +uniform mat4 model, view, projection; +uniform float capSize; +varying vec4 fragColor; +varying vec3 fragPosition; + +void main() { + vec4 worldPosition = model * vec4(position, 1.0); + worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); + gl_Position = projection * (view * worldPosition); + fragColor = color; + fragPosition = position; +}`]),n=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float opacity; +varying vec3 fragPosition; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], fragPosition) || + fragColor.a * opacity == 0. + ) discard; + + gl_FragColor = opacity * fragColor; +}`]);e.exports=function(s){return a(s,o,n,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(e,t,r){var i=r(7766);e.exports=b;var a=null,o,n,s,c;function f(d){var u=d.getParameter(d.FRAMEBUFFER_BINDING),g=d.getParameter(d.RENDERBUFFER_BINDING),y=d.getParameter(d.TEXTURE_BINDING_2D);return[u,g,y]}function p(d,u){d.bindFramebuffer(d.FRAMEBUFFER,u[0]),d.bindRenderbuffer(d.RENDERBUFFER,u[1]),d.bindTexture(d.TEXTURE_2D,u[2])}function v(d,u){var g=d.getParameter(u.MAX_COLOR_ATTACHMENTS_WEBGL);a=new Array(g+1);for(var y=0;y<=g;++y){for(var R=new Array(g),I=0;I1&&F.drawBuffersWEBGL(a[z]);var U=g.getExtension("WEBGL_depth_texture");U?B?d.depth=l(g,R,I,U.UNSIGNED_INT_24_8_WEBGL,g.DEPTH_STENCIL,g.DEPTH_STENCIL_ATTACHMENT):O&&(d.depth=l(g,R,I,g.UNSIGNED_SHORT,g.DEPTH_COMPONENT,g.DEPTH_ATTACHMENT)):O&&B?d._depth_rb=m(g,R,I,g.DEPTH_STENCIL,g.DEPTH_STENCIL_ATTACHMENT):O?d._depth_rb=m(g,R,I,g.DEPTH_COMPONENT16,g.DEPTH_ATTACHMENT):B&&(d._depth_rb=m(g,R,I,g.STENCIL_INDEX,g.STENCIL_ATTACHMENT));var X=g.checkFramebufferStatus(g.FRAMEBUFFER);if(X!==g.FRAMEBUFFER_COMPLETE){d._destroyed=!0,g.bindFramebuffer(g.FRAMEBUFFER,null),g.deleteFramebuffer(d.handle),d.handle=null,d.depth&&(d.depth.dispose(),d.depth=null),d._depth_rb&&(g.deleteRenderbuffer(d._depth_rb),d._depth_rb=null);for(var N=0;NR||g<0||g>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");d._shape[0]=u,d._shape[1]=g;for(var I=f(y),z=0;zI||g<0||g>I)throw new Error("gl-fbo: Parameters are too large for FBO");y=y||{};var z=1;if("color"in y){if(z=Math.max(y.color|0,0),z<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(z>1)if(R){if(z>d.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+z+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=d.UNSIGNED_BYTE,B=d.getExtension("OES_texture_float");if(y.float&&z>0){if(!B)throw new Error("gl-fbo: Context does not support floating point textures");F=d.FLOAT}else y.preferFloat&&z>0&&B&&(F=d.FLOAT);var O=!0;"depth"in y&&(O=!!y.depth);var P=!1;return"stencil"in y&&(P=!!y.stencil),new S(d,u,g,F,z,O,P,R)}},2992:function(e,t,r){var i=r(3387).sprintf,a=r(5171),o=r(1848),n=r(1085);e.exports=s;function s(c,f,p){var v=o(f)||"of unknown name (see npm glsl-shader-name)",T="unknown type";p!==void 0&&(T=p===a.FRAGMENT_SHADER?"fragment":"vertex");for(var l=i(`Error compiling %s shader %s: +`,T,v),m=i("%s%s",l,c),w=c.split(` +`),S={},M=0;M max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D dashTexture; +uniform float dashScale; +uniform float opacity; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], worldPosition) || + fragColor.a * opacity == 0. + ) discard; + + float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; + if(dashWeight < 0.5) { + discard; + } + gl_FragColor = fragColor * opacity; +} +`]),s=i([`precision highp float; +#define GLSLIFY 1 + +#define FLOAT_MAX 1.70141184e38 +#define FLOAT_MIN 1.17549435e-38 + +// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl +vec4 packFloat(float v) { + float av = abs(v); + + //Handle special cases + if(av < FLOAT_MIN) { + return vec4(0.0, 0.0, 0.0, 0.0); + } else if(v > FLOAT_MAX) { + return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; + } else if(v < -FLOAT_MAX) { + return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; + } + + vec4 c = vec4(0,0,0,0); + + //Compute exponent and mantissa + float e = floor(log2(av)); + float m = av * pow(2.0, -e) - 1.0; + + //Unpack mantissa + c[1] = floor(128.0 * m); + m -= c[1] / 128.0; + c[2] = floor(32768.0 * m); + m -= c[2] / 32768.0; + c[3] = floor(8388608.0 * m); + + //Unpack exponent + float ebias = e + 127.0; + c[0] = floor(ebias / 2.0); + ebias -= c[0] * 2.0; + c[1] += floor(ebias) * 128.0; + + //Unpack sign bit + c[0] += 128.0 * step(0.0, -v); + + //Scale back to range + return c / 255.0; +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform float pickId; +uniform vec3 clipBounds[2]; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; + + gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); +}`]),c=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];t.createShader=function(f){return a(f,o,n,null,c)},t.createPickShader=function(f){return a(f,o,s,null,c)}},5714:function(e,t,r){e.exports=d;var i=r(2762),a=r(8116),o=r(7766),n=new Uint8Array(4),s=new Float32Array(n.buffer);function c(u,g,y,R){return n[0]=R,n[1]=y,n[2]=g,n[3]=u,s[0]}var f=r(2478),p=r(9618),v=r(7319),T=v.createShader,l=v.createPickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function w(u,g){for(var y=0,R=0;R<3;++R){var I=u[R]-g[R];y+=I*I}return Math.sqrt(y)}function S(u){for(var g=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],y=0;y<3;++y)g[0][y]=Math.max(u[0][y],g[0][y]),g[1][y]=Math.min(u[1][y],g[1][y]);return g}function M(u,g,y,R){this.arcLength=u,this.position=g,this.index=y,this.dataCoordinate=R}function _(u,g,y,R,I,z){this.gl=u,this.shader=g,this.pickShader=y,this.buffer=R,this.vao=I,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=z,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=_.prototype;b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(u){this.pickId=u},b.drawTransparent=b.draw=function(u){if(this.vertexCount){var g=this.gl,y=this.shader,R=this.vao;y.bind(),y.uniforms={model:u.model||m,view:u.view||m,projection:u.projection||m,clipBounds:S(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[g.drawingBufferWidth,g.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(g.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.drawPick=function(u){if(this.vertexCount){var g=this.gl,y=this.pickShader,R=this.vao;y.bind(),y.uniforms={model:u.model||m,view:u.view||m,projection:u.projection||m,pickId:this.pickId,clipBounds:S(this.clipBounds),screenShape:[g.drawingBufferWidth,g.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(g.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.update=function(u){var g,y;this.dirty=!0;var R=!!u.connectGaps;"dashScale"in u&&(this.dashScale=u.dashScale),this.hasAlpha=!1,"opacity"in u&&(this.opacity=+u.opacity,this.opacity<1&&(this.hasAlpha=!0));var I=[],z=[],F=[],B=0,O=0,P=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],N=u.position||u.positions;if(N){var U=u.color||u.colors||[0,0,0,1],X=u.lineWidth||1,te=!1;e:for(g=1;g0){for(var le=0;le<24;++le)I.push(I[I.length-12]);O+=2,te=!0}continue e}P[0][y]=Math.min(P[0][y],ue[y],ie[y]),P[1][y]=Math.max(P[1][y],ue[y],ie[y])}var q,J;Array.isArray(U[0])?(q=U.length>g-1?U[g-1]:U.length>0?U[U.length-1]:[0,0,0,1],J=U.length>g?U[g]:U.length>0?U[U.length-1]:[0,0,0,1]):q=J=U,q.length===3&&(q=[q[0],q[1],q[2],1]),J.length===3&&(J=[J[0],J[1],J[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var ee;Array.isArray(X)?ee=X.length>g-1?X[g-1]:X.length>0?X[X.length-1]:[0,0,0,1]:ee=X;var Z=B;if(B+=w(ue,ie),te){for(y=0;y<2;++y)I.push(ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,ee,q[0],q[1],q[2],q[3]);O+=2,te=!1}I.push(ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,ee,q[0],q[1],q[2],q[3],ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,-ee,q[0],q[1],q[2],q[3],ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],B,-ee,J[0],J[1],J[2],J[3],ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],B,ee,J[0],J[1],J[2],J[3]),O+=4}}if(this.buffer.update(I),z.push(B),F.push(N[N.length-1].slice()),this.bounds=P,this.vertexCount=O,this.points=F,this.arcLength=z,"dashes"in u){var se=u.dashes,Q=se.slice();for(Q.unshift(0),g=1;g1.0001)return null;y+=g[M]}return Math.abs(y-1)>.001?null:[_,c(p,g),g]}},840:function(e,t,r){var i=r(3236),a=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, normal; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model + , view + , projection + , inverseModel; +uniform vec3 eyePosition + , lightPosition; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +vec4 project(vec3 p) { + return projection * (view * (model * vec4(p, 1.0))); +} + +void main() { + gl_Position = project(position); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * vec4(position , 1.0); + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + f_color = color; + f_data = position; + f_uv = uv; +} +`]),o=i([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness + , fresnel + , kambient + , kdiffuse + , kspecular; +uniform sampler2D texture; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (f_color.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], f_data) + ) discard; + + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d + + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * f_color.a; +} +`]),n=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model, view, projection; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_color = color; + f_data = position; + f_uv = uv; +}`]),s=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; + + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),c=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; +attribute float pointSize; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + } + gl_PointSize = pointSize; + f_color = color; + f_uv = uv; +}`]),f=i([`precision highp float; +#define GLSLIFY 1 + +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); + if(dot(pointR, pointR) > 0.25) { + discard; + } + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),p=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 id; + +uniform mat4 model, view, projection; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_id = id; + f_position = position; +}`]),v=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]),T=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute float pointSize; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0, 0.0, 0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + gl_PointSize = pointSize; + } + f_id = id; + f_position = position; +}`]),l=i([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; + +uniform mat4 model, view, projection; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); +}`]),m=i([`precision highp float; +#define GLSLIFY 1 + +uniform vec3 contourColor; + +void main() { + gl_FragColor = vec4(contourColor, 1.0); +} +`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.wireShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.pointShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},t.pickShader={vertex:p,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},t.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},t.contourShader={vertex:l,fragment:m,attributes:[{name:"position",type:"vec3"}]}},7201:function(e,t,r){var i=1e-6,a=1e-6,o=r(9405),n=r(2762),s=r(8116),c=r(7766),f=r(8406),p=r(6760),v=r(7608),T=r(9618),l=r(6729),m=r(7765),w=r(1888),S=r(840),M=r(7626),_=S.meshShader,b=S.wireShader,d=S.pointShader,u=S.pickShader,g=S.pointPickShader,y=S.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function I(le,q,J,ee,Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at,tt,Je,Ze,Me,we,he,De,et,nt,Ke){this.gl=le,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=ee,this.pointShader=Z,this.pickShader=se,this.pointPickShader=Q,this.contourShader=V,this.trianglePositions=re,this.triangleColors=fe,this.triangleNormals=Ae,this.triangleUVs=xe,this.triangleIds=ae,this.triangleVAO=Pe,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ce,this.edgeColors=at,this.edgeUVs=tt,this.edgeIds=je,this.edgeVAO=Je,this.edgeCount=0,this.pointPositions=Ze,this.pointColors=we,this.pointUVs=he,this.pointSizes=De,this.pointIds=Me,this.pointVAO=et,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=nt,this.contourVAO=Ke,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!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.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var z=I.prototype;z.isOpaque=function(){return!this.hasAlpha},z.isTransparent=function(){return this.hasAlpha},z.pickSlots=1,z.setPickBase=function(le){this.pickId=le};function F(le,q){if(!q||!q.length)return 1;for(var J=0;Jle&&J>0){var ee=(q[J][0]-le)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-ee)+ee*q[J-1][1]}}return 1}function B(le,q){for(var J=l({colormap:le,nshades:256,format:"rgba"}),ee=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var se=J[Z],Q=0;Q<3;++Q)ee[4*Z+Q]=se[Q];q?ee[4*Z+3]=255*F(Z/255,q):ee[4*Z+3]=255*se[3]}return T(ee,[256,256,4],[4,0,1])}function O(le){for(var q=le.length,J=new Array(q),ee=0;ee0){var Ae=this.triShader;Ae.bind(),Ae.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ae=this.lineShader;Ae.bind(),Ae.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ae=this.pointShader;Ae.bind(),Ae.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ae=this.contourShader;Ae.bind(),Ae.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},z.drawPick=function(le){le=le||{};for(var q=this.gl,J=le.model||R,ee=le.view||R,Z=le.projection||R,se=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)se[0][Q]=Math.max(se[0][Q],this.clipBounds[0][Q]),se[1][Q]=Math.min(se[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(J),this._view=[].slice.call(ee),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:J,view:ee,projection:Z,clipBounds:se,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},z.pick=function(le){if(!le||le.id!==this.pickId)return null;for(var q=le.value[0]+256*le.value[1]+65536*le.value[2],J=this.cells[q],ee=this.positions,Z=new Array(J.length),se=0;seMath.abs(u))l.rotate(R,0,0,-d*g*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var I=-_.zoomSpeed*y*u/window.innerHeight*(R-l.lastT())/20;l.pan(R,0,0,w*(Math.exp(I)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(e,t,r){var i=r(3236),a=r(9405),o=i([`precision mediump float; +#define GLSLIFY 1 +attribute vec2 position; +varying vec2 uv; +void main() { + uv = position; + gl_Position = vec4(position, 0, 1); +}`]),n=i([`precision mediump float; +#define GLSLIFY 1 + +uniform sampler2D accumBuffer; +varying vec2 uv; + +void main() { + vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); + gl_FragColor = min(vec4(1,1,1,1), accum); +}`]);e.exports=function(s){return a(s,o,n,null,[{name:"position",type:"vec2"}])}},4100:function(e,t,r){var i=r(4437),a=r(3837),o=r(5445),n=r(4449),s=r(3589),c=r(2260),f=r(7169),p=r(351),v=r(4772),T=r(4040),l=r(799),m=r(9216)({tablet:!0,featureDetect:!0});e.exports={createScene:b,createCamera:i};function w(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function S(u,g){var y=null;try{y=u.getContext("webgl",g),y||(y=u.getContext("experimental-webgl",g))}catch{return null}return y}function M(u){var g=Math.round(Math.log(Math.abs(u))/Math.log(10));if(g<0){var y=Math.round(Math.pow(10,-g));return Math.ceil(u*y)/y}else if(g>0){var y=Math.round(Math.pow(10,g));return Math.ceil(u/y)*y}return Math.ceil(u)}function _(u){return typeof u=="boolean"?u:!0}function b(u){u=u||{},u.camera=u.camera||{};var g=u.canvas;if(!g)if(g=document.createElement("canvas"),u.container){var y=u.container;y.appendChild(g)}else document.body.appendChild(g);var R=u.gl;if(R||(u.glOptions&&(m=!!u.glOptions.preserveDrawingBuffer),R=S(g,u.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:m})),!R)throw new Error("webgl not supported");var I=u.bounds||[[-10,-10,-10],[10,10,10]],z=new w,F=c(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!m}),B=l(R),O=u.cameraObject&&u.cameraObject._ortho===!0||u.camera.projection&&u.camera.projection.type==="orthographic"||!1,P={eye:u.camera.eye||[2,0,0],center:u.camera.center||[0,0,0],up:u.camera.up||[0,1,0],zoomMin:u.camera.zoomMax||.1,zoomMax:u.camera.zoomMin||100,mode:u.camera.mode||"turntable",_ortho:O},N=u.axes||{},U=a(R,N);U.enable=!N.disable;var X=u.spikes||{},te=n(R,X),ue=[],ie=[],le=[],q=[],J=!0,Q=!0,ee=new Array(16),Z=new Array(16),se={view:null,projection:ee,model:Z,_ortho:!1},Q=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=u.cameraObject||i(g,P),ae={gl:R,contextLost:!1,pixelRatio:u.pixelRatio||1,canvas:g,selection:z,camera:re,axes:U,axesPixels:null,spikes:te,bounds:I,objects:ue,shape:V,aspect:u.aspectRatio||[1,1,1],pickRadius:u.pickRadius||10,zNear:u.zNear||.01,zFar:u.zFar||1e3,fovy:u.fovy||Math.PI/4,clearColor:u.clearColor||[0,0,0,0],autoResize:_(u.autoResize),autoBounds:_(u.autoBounds),autoScale:!!u.autoScale,autoCenter:_(u.autoCenter),clipToBounds:_(u.clipToBounds),snapToData:!!u.snapToData,onselect:u.onselect||null,onrender:u.onrender||null,onclick:u.onclick||null,cameraParams:se,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Ze){this.aspect[0]=Ze.x,this.aspect[1]=Ze.y,this.aspect[2]=Ze.z,Q=!0},setBounds:function(Ze,Me){this.bounds[0][Ze]=Me.min,this.bounds[1][Ze]=Me.max},setClearColor:function(Ze){this.clearColor=Ze},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},fe=[R.drawingBufferWidth/ae.pixelRatio|0,R.drawingBufferHeight/ae.pixelRatio|0];function xe(){if(!ae._stopped&&ae.autoResize){var Ze=g.parentNode,Me=1,we=1;Ze&&Ze!==document.body?(Me=Ze.clientWidth,we=Ze.clientHeight):(Me=window.innerWidth,we=window.innerHeight);var he=Math.ceil(Me*ae.pixelRatio)|0,De=Math.ceil(we*ae.pixelRatio)|0;if(he!==g.width||De!==g.height){g.width=he,g.height=De;var et=g.style;et.position=et.position||"absolute",et.left="0px",et.top="0px",et.width=Me+"px",et.height=we+"px",J=!0}}}ae.autoResize&&xe(),window.addEventListener("resize",xe);function Ae(){for(var Ze=ue.length,Me=q.length,we=0;we0&&le[Me-1]===0;)le.pop(),q.pop().dispose()}ae.update=function(Ze){ae._stopped||(J=!0,Q=!0)},ae.add=function(Ze){ae._stopped||(Ze.axes=U,ue.push(Ze),ie.push(-1),J=!0,Q=!0,Ae())},ae.remove=function(Ze){if(!ae._stopped){var Me=ue.indexOf(Ze);Me<0||(ue.splice(Me,1),ie.pop(),J=!0,Q=!0,Ae())}},ae.dispose=function(){if(!ae._stopped&&(ae._stopped=!0,window.removeEventListener("resize",xe),g.removeEventListener("webglcontextlost",Pe),ae.mouseListener.enabled=!1,!ae.contextLost)){U.dispose(),te.dispose();for(var Ze=0;Zez.distance)continue;for(var kt=0;kt1e-6?(m=Math.acos(w),S=Math.sin(m),M=Math.sin((1-o)*m)/S,_=Math.sin(o*m)/S):(M=1-o,_=o),r[0]=M*n+_*p,r[1]=M*s+_*v,r[2]=M*c+_*T,r[3]=M*f+_*l,r}},5964:function(e){e.exports=function(t){return!t&&t!==0?"":t.toString()}},9366:function(e,t,r){var i=r(4359);e.exports=o;var a={};function o(n,s,c){var f=[s.style,s.weight,s.variant,s.family].join("_"),p=a[f];if(p||(p=a[f]={}),n in p)return p[n];var v={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}};v.triangles=!0;var T=i(n,v);v.triangles=!1;var l=i(n,v),m,w;if(c&&c!==1){for(m=0;m max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform vec4 highlightId; +uniform float highlightScale; +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = 1.0; + if(distance(highlightId, id) < 0.0001) { + scale = highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1); + vec4 viewPosition = view * worldPosition; + viewPosition = viewPosition / viewPosition.w; + vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),n=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float highlightScale, pixelRatio; +uniform vec4 highlightId; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = pixelRatio; + if(distance(highlightId.bgr, id.bgr) < 0.001) { + scale *= highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1.0); + vec4 viewPosition = view * worldPosition; + vec4 clipPosition = projection * viewPosition; + clipPosition /= clipPosition.w; + + gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),s=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform float highlightScale; +uniform vec4 highlightId; +uniform vec3 axes[2]; +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float scale, pixelRatio; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float lscale = pixelRatio * scale; + if(distance(highlightId, id) < 0.0001) { + lscale *= highlightScale; + } + + vec4 clipCenter = projection * (view * (model * vec4(position, 1))); + vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; + vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1))); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = dataPosition; + } +} +`]),c=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float opacity; + +varying vec4 interpColor; +varying vec3 dataCoordinate; + +void main() { + if ( + outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || + interpColor.a * opacity == 0. + ) discard; + gl_FragColor = interpColor * opacity; +} +`]),f=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float pickGroup; + +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; + + gl_FragColor = vec4(pickGroup, pickId.bgr); +}`]),p=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],v={vertex:o,fragment:c,attributes:p},T={vertex:n,fragment:c,attributes:p},l={vertex:s,fragment:c,attributes:p},m={vertex:o,fragment:f,attributes:p},w={vertex:n,fragment:f,attributes:p},S={vertex:s,fragment:f,attributes:p};function M(_,b){var d=i(_,b),u=d.attributes;return u.position.location=0,u.color.location=1,u.glyph.location=2,u.id.location=3,d}t.createPerspective=function(_){return M(_,v)},t.createOrtho=function(_){return M(_,T)},t.createProject=function(_){return M(_,l)},t.createPickPerspective=function(_){return M(_,m)},t.createPickOrtho=function(_){return M(_,w)},t.createPickProject=function(_){return M(_,S)}},8418:function(e,t,r){var i=r(5219),a=r(2762),o=r(8116),n=r(1888),s=r(6760),c=r(1283),f=r(9366),p=r(5964),v=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,l=DataView;function m(Z){return T.isView(Z)&&!(Z instanceof l)}function w(Z){return Array.isArray(Z)||m(Z)}e.exports=ee;function S(Z,se){var Q=Z[0],V=Z[1],re=Z[2],ae=Z[3];return Z[0]=se[0]*Q+se[4]*V+se[8]*re+se[12]*ae,Z[1]=se[1]*Q+se[5]*V+se[9]*re+se[13]*ae,Z[2]=se[2]*Q+se[6]*V+se[10]*re+se[14]*ae,Z[3]=se[3]*Q+se[7]*V+se[11]*re+se[15]*ae,Z}function M(Z,se,Q,V){return S(V,V),S(V,V),S(V,V)}function _(Z,se){this.index=Z,this.dataCoordinate=this.position=se}function b(Z){return Z===!0||Z>1?1:Z}function d(Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je){this.gl=Z,this.pixelRatio=1,this.shader=se,this.orthoShader=Q,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=ae,this.glyphBuffer=fe,this.idBuffer=xe,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=Pe,this.pickOrthoShader=Ce,this.pickProjectShader=je,this.points=[],this._selectResult=new _(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(Z){this.pickId=Z},u.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},u.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var g=[0,0],y=[0,0,0],R=[0,0,0],I=[0,0,0,1],z=[0,0,0,1],F=v.slice(),B=[0,0,0],O=[[0,0,0],[0,0,0]];function P(Z){return Z[0]=Z[1]=Z[2]=0,Z}function N(Z,se){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[3]=1,Z}function U(Z,se,Q,V){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[Q]=V,Z}function X(Z){for(var se=O,Q=0;Q<2;++Q)for(var V=0;V<3;++V)se[Q][V]=Math.max(Math.min(Z[Q][V],1e8),-1e8);return se}function te(Z,se,Q,V){var re=se.axesProject,ae=se.gl,fe=Z.uniforms,xe=Q.model||v,Ae=Q.view||v,Pe=Q.projection||v,Ce=se.axesBounds,je=X(se.clipBounds),at;se.axes&&se.axes.lastCubeProps?at=se.axes.lastCubeProps.axis:at=[1,1,1],g[0]=2/ae.drawingBufferWidth,g[1]=2/ae.drawingBufferHeight,Z.bind(),fe.view=Ae,fe.projection=Pe,fe.screenSize=g,fe.highlightId=se.highlightId,fe.highlightScale=se.highlightScale,fe.clipBounds=je,fe.pickGroup=se.pickId/255,fe.pixelRatio=V;for(var tt=0;tt<3;++tt)if(re[tt]){fe.scale=se.projectScale[tt],fe.opacity=se.projectOpacity[tt];for(var Je=F,Ze=0;Ze<16;++Ze)Je[Ze]=0;for(var Ze=0;Ze<4;++Ze)Je[5*Ze]=1;Je[5*tt]=0,at[tt]<0?Je[12+tt]=Ce[0][tt]:Je[12+tt]=Ce[1][tt],s(Je,xe,Je),fe.model=Je;var Me=(tt+1)%3,we=(tt+2)%3,he=P(y),De=P(R);he[Me]=1,De[we]=1;var et=M(Pe,Ae,xe,N(I,he)),nt=M(Pe,Ae,xe,N(z,De));if(Math.abs(et[1])>Math.abs(nt[1])){var Ke=et;et=nt,nt=Ke,Ke=he,he=De,De=Ke;var Et=Me;Me=we,we=Et}et[0]<0&&(he[Me]=-1),nt[1]>0&&(De[we]=-1);for(var kt=0,Ut=0,Ze=0;Ze<4;++Ze)kt+=Math.pow(xe[4*Me+Ze],2),Ut+=Math.pow(xe[4*we+Ze],2);he[Me]/=Math.sqrt(kt),De[we]/=Math.sqrt(Ut),fe.axes[0]=he,fe.axes[1]=De,fe.fragClipBounds[0]=U(B,je[0],tt,-1e8),fe.fragClipBounds[1]=U(B,je[1],tt,1e8),se.vao.bind(),se.vao.draw(ae.TRIANGLES,se.vertexCount),se.lineWidth>0&&(ae.lineWidth(se.lineWidth*V),se.vao.draw(ae.LINES,se.lineVertexCount,se.vertexCount)),se.vao.unbind()}}var ue=[-1e8,-1e8,-1e8],ie=[1e8,1e8,1e8],le=[ue,ie];function q(Z,se,Q,V,re,ae,fe){var xe=Q.gl;if((ae===Q.projectHasAlpha||fe)&&te(se,Q,V,re),ae===Q.hasAlpha||fe){Z.bind();var Ae=Z.uniforms;Ae.model=V.model||v,Ae.view=V.view||v,Ae.projection=V.projection||v,g[0]=2/xe.drawingBufferWidth,g[1]=2/xe.drawingBufferHeight,Ae.screenSize=g,Ae.highlightId=Q.highlightId,Ae.highlightScale=Q.highlightScale,Ae.fragClipBounds=le,Ae.clipBounds=Q.axes.bounds,Ae.opacity=Q.opacity,Ae.pickGroup=Q.pickId/255,Ae.pixelRatio=re,Q.vao.bind(),Q.vao.draw(xe.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(xe.lineWidth(Q.lineWidth*re),Q.vao.draw(xe.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}u.draw=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!1,!1)},u.drawTransparent=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!0,!1)},u.drawPick=function(Z){var se=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(se,this.pickProjectShader,this,Z,1,!0,!0)},u.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var se=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(se>=this.pointCount||se<0)return null;var Q=this.points[se],V=this._selectResult;V.index=se;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=Q[re];return V},u.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var se=Z.index,Q=se&255,V=se>>8&255,re=se>>16&255;this.highlightId=[Q/255,V/255,re/255,0]}};function J(Z,se,Q,V){var re;w(Z)?se0){var wr=0,yt=we,Fe=[0,0,0,1],We=[0,0,0,1],Oe=w(at)&&w(at[0]),de=w(Ze)&&w(Ze[0]);e:for(var V=0;V0?1-Ut[0][0]:Ct<0?1+Ut[1][0]:1,Zt*=Zt>0?1-Ut[0][1]:Zt<0?1+Ut[1][1]:1;for(var Wt=[Ct,Zt],Ia=Et.cells||[],La=Et.positions||[],nt=0;ntthis.buffer.length){a.free(this.buffer);for(var w=this.buffer=a.mallocUint8(n(m*l*4)),S=0;Sw)for(l=w;lm)for(l=m;l=0){for(var O=B.type.charAt(B.type.length-1)|0,P=new Array(O),N=0;N=0;)U+=1;z[F]=U}var X=new Array(w.length);function te(){_.program=n.program(b,_._vref,_._fref,I,z);for(var ue=0;ue=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new i("","Invalid data type for attribute "+_+": "+b);s(p,v,d[0],l,u,m,_)}else if(b.indexOf("mat")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new i("","Invalid data type for attribute "+_+": "+b);c(p,v,d,l,u,m,_)}else throw new i("","Unknown data type for attribute "+_+": "+b);break}}return m}},3327:function(e,t,r){var i=r(216),a=r(8866);e.exports=s;function o(c){return function(){return c}}function n(c,f){for(var p=new Array(c),v=0;v4)throw new a("","Invalid data type");switch(U.charAt(0)){case"b":case"i":c["uniform"+X+"iv"](v[z],F);break;case"v":c["uniform"+X+"fv"](v[z],F);break;default:throw new a("","Unrecognized data type for vector "+name+": "+U)}}else if(U.indexOf("mat")===0&&U.length===4){if(X=U.charCodeAt(U.length-1)-48,X<2||X>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+U);c["uniformMatrix"+X+"fv"](v[z],!1,F);break}else throw new a("","Unknown uniform data type for "+name+": "+U)}}}}}function m(b,d){if(typeof d!="object")return[[b,d]];var u=[];for(var g in d){var y=d[g],R=b;parseInt(g)+""===g?R+="["+g+"]":R+="."+g,typeof y=="object"?u.push.apply(u,m(R,y)):u.push([R,y])}return u}function w(b){switch(b){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var d=b.indexOf("vec");if(0<=d&&d<=1&&b.length===4+d){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new a("","Invalid data type");return b.charAt(0)==="b"?n(u,!1):n(u,0)}else if(b.indexOf("mat")===0&&b.length===4){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+b);return n(u*u,0)}else throw new a("","Unknown uniform data type for "+name+": "+b)}}function S(b,d,u){if(typeof u=="object"){var g=M(u);Object.defineProperty(b,d,{get:o(g),set:l(u),enumerable:!0,configurable:!1})}else v[u]?Object.defineProperty(b,d,{get:T(u),set:l(u),enumerable:!0,configurable:!1}):b[d]=w(p[u].type)}function M(b){var d;if(Array.isArray(b)){d=new Array(b.length);for(var u=0;u1){p[0]in c||(c[p[0]]=[]),c=c[p[0]];for(var v=1;v1)for(var m=0;m"u"?r(606):WeakMap,n=new o,s=0;function c(S,M,_,b,d,u,g){this.id=S,this.src=M,this.type=_,this.shader=b,this.count=u,this.programs=[],this.cache=g}c.prototype.dispose=function(){if(--this.count===0){for(var S=this.cache,M=S.gl,_=this.programs,b=0,d=_.length;b 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, tubeScale; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * tubePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(tubePosition, 1.0); + vec4 t_position = view * tubePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = tubePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),o=i([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),n=i([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float tubeScale; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + gl_Position = projection * (view * tubePosition); + f_id = id; + f_position = position.xyz; +} +`]),s=i([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},t.pickShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(e,t,r){var i=r(2931),a=r(9970),o=["xyz","xzy","yxz","yzx","zxy","zyx"],n=function(w,S,M,_){for(var b=w.points,d=w.velocities,u=w.divergences,g=[],y=[],R=[],I=[],z=[],F=[],B=0,O=0,P=a.create(),N=a.create(),U=8,X=0;X0)for(var le=0;leS)return _-1}return _},f=function(w,S,M){return wM?M:w},p=function(w,S,M){var _=S.vectors,b=S.meshgrid,d=w[0],u=w[1],g=w[2],y=b[0].length,R=b[1].length,I=b[2].length,z=c(b[0],d),F=c(b[1],u),B=c(b[2],g),O=z+1,P=F+1,N=B+1;if(z=f(z,0,y-1),O=f(O,0,y-1),F=f(F,0,R-1),P=f(P,0,R-1),B=f(B,0,I-1),N=f(N,0,I-1),z<0||F<0||B<0||O>y-1||P>R-1||N>I-1)return i.create();var U=b[0][z],X=b[0][O],te=b[1][F],ue=b[1][P],ie=b[2][B],le=b[2][N],q=(d-U)/(X-U),J=(u-te)/(ue-te),ee=(g-ie)/(le-ie);isFinite(q)||(q=.5),isFinite(J)||(J=.5),isFinite(ee)||(ee=.5);var Z,se,Q,V,re,ae;switch(M.reversedX&&(z=y-1-z,O=y-1-O),M.reversedY&&(F=R-1-F,P=R-1-P),M.reversedZ&&(B=I-1-B,N=I-1-N),M.filled){case 5:re=B,ae=N,Q=F*I,V=P*I,Z=z*I*R,se=O*I*R;break;case 4:re=B,ae=N,Z=z*I,se=O*I,Q=F*I*y,V=P*I*y;break;case 3:Q=F,V=P,re=B*R,ae=N*R,Z=z*R*I,se=O*R*I;break;case 2:Q=F,V=P,Z=z*R,se=O*R,re=B*R*y,ae=N*R*y;break;case 1:Z=z,se=O,re=B*y,ae=N*y,Q=F*y*I,V=P*y*I;break;default:Z=z,se=O,Q=F*y,V=P*y,re=B*y*R,ae=N*y*R;break}var fe=_[Z+Q+re],xe=_[Z+Q+ae],Ae=_[Z+V+re],Pe=_[Z+V+ae],Ce=_[se+Q+re],je=_[se+Q+ae],at=_[se+V+re],tt=_[se+V+ae],Je=i.create(),Ze=i.create(),Me=i.create(),we=i.create();i.lerp(Je,fe,Ce,q),i.lerp(Ze,xe,je,q),i.lerp(Me,Ae,at,q),i.lerp(we,Pe,tt,q);var he=i.create(),De=i.create();i.lerp(he,Je,Me,J),i.lerp(De,Ze,we,J);var et=i.create();return i.lerp(et,he,De,ee),et},v=function(w){var S=1/0;w.sort(function(d,u){return d-u});for(var M=w.length,_=1;_O||ttP||JeN)},X=i.distance(S[0],S[1]),te=10*X/_,ue=te*te,ie=1,le=0,q=M.length;q>1&&(ie=T(M));for(var J=0;Jle&&(le=fe),re.push(fe),I.push({points:Z,velocities:se,divergences:re});for(var xe=0;xe<_*100&&Z.length<_&&U(ee);){xe++;var Ae=i.clone(Q),Pe=i.squaredLength(Ae);if(Pe===0)break;if(Pe>ue&&i.scale(Ae,Ae,te/Math.sqrt(Pe)),i.add(Ae,Ae,ee),Q=y(Ae),i.squaredDistance(V,Ae)-ue>-1e-4*ue){Z.push(Ae),V=Ae,se.push(Q);var ae=R(Ae,Q),fe=i.length(ae);isFinite(fe)&&fe>le&&(le=fe),re.push(fe)}ee=Ae}}var Ce=s(I,w.colormap,le,ie);return d?Ce.tubeScale=d:(le===0&&(le=1),Ce.tubeScale=b*.5*ie/le),Ce};var l=r(6740),m=r(6405).createMesh;e.exports.createTubeMesh=function(w,S){return m(w,S,{shaders:l,traceType:"streamtube"})}},990:function(e,t,r){var i=r(9405),a=r(3236),o=a([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute vec3 f; +attribute vec3 normal; + +uniform vec3 objectOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 lightPosition, eyePosition; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 localCoordinate = vec3(uv.zw, f.x); + worldCoordinate = objectOffset + localCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0); + vec4 clipPosition = projection * (view * worldPosition); + gl_Position = clipPosition; + kill = f.y; + value = f.z; + planeCoordinate = uv.xy; + + vColor = texture2D(colormap, vec2(value, value)); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * worldPosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + lightDirection = lightPosition - cameraCoordinate.xyz; + eyeDirection = eyePosition - cameraCoordinate.xyz; + surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); +} +`]),n=a([`precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float beckmannSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness) { + return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 lowerBound, upperBound; +uniform float contourTint; +uniform vec4 contourColor; +uniform sampler2D colormap; +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform float vertexColor; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + if ( + kill > 0.0 || + vColor.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) + ) discard; + + vec3 N = normalize(surfaceNormal); + vec3 V = normalize(eyeDirection); + vec3 L = normalize(lightDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = max(beckmannSpecular(L, V, N, roughness), 0.); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + //decide how to interpolate color — in vertex or in fragment + vec4 surfaceColor = + step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + + step(.5, vertexColor) * vColor; + + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; +} +`]),s=a([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute float f; + +uniform vec3 objectOffset; +uniform mat3 permutation; +uniform mat4 model, view, projection; +uniform float height, zOffset; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 dataCoordinate = permutation * vec3(uv.xy, height); + worldCoordinate = objectOffset + dataCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0); + + vec4 clipPosition = projection * (view * worldPosition); + clipPosition.z += zOffset; + + gl_Position = clipPosition; + value = f + objectOffset.z; + kill = -1.0; + planeCoordinate = uv.zw; + + vColor = texture2D(colormap, vec2(value, value)); + + //Don't do lighting for contours + surfaceNormal = vec3(1,0,0); + eyeDirection = vec3(0,1,0); + lightDirection = vec3(0,0,1); +} +`]),c=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec2 shape; +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 surfaceNormal; + +vec2 splitFloat(float v) { + float vh = 255.0 * v; + float upper = floor(vh); + float lower = fract(vh); + return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); +} + +void main() { + if ((kill > 0.0) || + (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; + + vec2 ux = splitFloat(planeCoordinate.x / shape.x); + vec2 uy = splitFloat(planeCoordinate.y / shape.y); + gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); +} +`]);t.createShader=function(f){var p=i(f,o,n,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},t.createPickShader=function(f){var p=i(f,o,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},t.createContourShader=function(f){var p=i(f,s,n,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},t.createPickContourShader=function(f){var p=i(f,s,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499:function(e,t,r){e.exports=se;var i=r(8828),a=r(2762),o=r(8116),n=r(7766),s=r(1888),c=r(6729),f=r(5298),p=r(9994),v=r(9618),T=r(3711),l=r(6760),m=r(7608),w=r(2478),S=r(6199),M=r(990),_=M.createShader,b=M.createContourShader,d=M.createPickShader,u=M.createPickContourShader,g=40,y=[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]],I=[[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 Q=0;Q<3;++Q){var V=I[Q],re=(Q+1)%3,ae=(Q+2)%3;V[re+0]=1,V[ae+3]=1,V[Q+6]=1}})();function z(Q,V,re,ae,fe){this.position=Q,this.index=V,this.uv=re,this.level=ae,this.dataCoordinate=fe}var F=256;function B(Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at,tt,Je,Ze,Me){this.gl=Q,this.shape=V,this.bounds=re,this.objectOffset=Me,this.intensityBounds=[],this._shader=ae,this._pickShader=fe,this._coordinateBuffer=xe,this._vao=Ae,this._colorMap=Pe,this._contourShader=Ce,this._contourPickShader=je,this._contourBuffer=at,this._contourVAO=tt,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=Je,this._dynamicVAO=Ze,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=[v(s.mallocFloat(1024),[0,0]),v(s.mallocFloat(1024),[0,0]),v(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=B.prototype;O.genColormap=function(Q,V){var re=!1,ae=p([c({colormap:Q,nshades:F,format:"rgba"}).map(function(fe,xe){var Ae=V?P(xe/255,V):fe[3];return Ae<1&&(re=!0),[fe[0],fe[1],fe[2],255*Ae]})]);return f.divseq(ae,255),this.hasAlphaScale=re,ae},O.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},O.isOpaque=function(){return!this.isTransparent()},O.pickSlots=1,O.setPickBase=function(Q){this.pickId=Q};function P(Q,V){if(!V||!V.length)return 1;for(var re=0;reQ&&re>0){var ae=(V[re][0]-Q)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-ae)+ae*V[re-1][1]}}return 1}var N=[0,0,0],U={showSurface:!1,showContour:!1,projections:[y.slice(),y.slice(),y.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function X(Q,V){var re,ae,fe,xe=V.axes&&V.axes.lastCubeProps.axis||N,Ae=V.showSurface,Pe=V.showContour;for(re=0;re<3;++re)for(Ae=Ae||V.surfaceProject[re],ae=0;ae<3;++ae)Pe=Pe||V.contourProject[re][ae];for(re=0;re<3;++re){var Ce=U.projections[re];for(ae=0;ae<16;++ae)Ce[ae]=0;for(ae=0;ae<4;++ae)Ce[5*ae]=1;Ce[5*re]=0,Ce[12+re]=V.axesBounds[+(xe[re]>0)][re],l(Ce,Q.model,Ce);var je=U.clipBounds[re];for(fe=0;fe<2;++fe)for(ae=0;ae<3;++ae)je[fe][ae]=Q.clipBounds[fe][ae];je[0][re]=-1e8,je[1][re]=1e8}return U.showSurface=Ae,U.showContour=Pe,U}var te={model:y,view:y,projection:y,inverseModel:y.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},ue=y.slice(),ie=[1,0,0,0,1,0,0,0,1];function le(Q,V){Q=Q||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var ae=te;ae.model=Q.model||y,ae.view=Q.view||y,ae.projection=Q.projection||y,ae.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ae.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ae.objectOffset=this.objectOffset,ae.contourColor=this.contourColor[0],ae.inverseModel=m(ae.inverseModel,ae.model);for(var fe=0;fe<2;++fe)for(var xe=ae.clipBounds[fe],Ae=0;Ae<3;++Ae)xe[Ae]=Math.min(Math.max(this.clipBounds[fe][Ae],-1e8),1e8);ae.kambient=this.ambientLight,ae.kdiffuse=this.diffuseLight,ae.kspecular=this.specularLight,ae.roughness=this.roughness,ae.fresnel=this.fresnel,ae.opacity=this.opacity,ae.height=0,ae.permutation=ie,ae.vertexColor=this.vertexColor;var Pe=ue;for(l(Pe,ae.view,ae.model),l(Pe,ae.projection,Pe),m(Pe,Pe),fe=0;fe<3;++fe)ae.eyePosition[fe]=Pe[12+fe]/Pe[15];var Ce=Pe[15];for(fe=0;fe<3;++fe)Ce+=this.lightPosition[fe]*Pe[4*fe+3];for(fe=0;fe<3;++fe){var je=Pe[12+fe];for(Ae=0;Ae<3;++Ae)je+=Pe[4*Ae+fe]*this.lightPosition[Ae];ae.lightPosition[fe]=je/Ce}var at=X(ae,this);if(at.showSurface){for(this._shader.bind(),this._shader.uniforms=ae,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),fe=0;fe<3;++fe)!this.surfaceProject[fe]||!this.vertexCount||(this._shader.uniforms.model=at.projections[fe],this._shader.uniforms.clipBounds=at.clipBounds[fe],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(at.showContour){var tt=this._contourShader;ae.kambient=1,ae.kdiffuse=0,ae.kspecular=0,ae.opacity=1,tt.bind(),tt.uniforms=ae;var Je=this._contourVAO;for(Je.bind(),fe=0;fe<3;++fe)for(tt.uniforms.permutation=I[fe],re.lineWidth(this.contourWidth[fe]*this.pixelRatio),Ae=0;Ae>4)/16)/255,fe=Math.floor(ae),xe=ae-fe,Ae=V[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,Pe=Math.floor(Ae),Ce=Ae-Pe;fe+=1,Pe+=1;var je=re.position;je[0]=je[1]=je[2]=0;for(var at=0;at<2;++at)for(var tt=at?xe:1-xe,Je=0;Je<2;++Je)for(var Ze=Je?Ce:1-Ce,Me=fe+at,we=Pe+Je,he=tt*Ze,De=0;De<3;++De)je[De]+=this._field[De].get(Me,we)*he;for(var et=this._pickResult.level,nt=0;nt<3;++nt)if(et[nt]=w.le(this.contourLevels[nt],je[nt]),et[nt]<0)this.contourLevels[nt].length>0&&(et[nt]=0);else if(et[nt]Math.abs(Et-je[nt])&&(et[nt]+=1)}for(re.index[0]=xe<.5?fe:fe+1,re.index[1]=Ce<.5?Pe:Pe+1,re.uv[0]=ae/V[0],re.uv[1]=Ae/V[1],De=0;De<3;++De)re.dataCoordinate[De]=this._field[De].get(re.index[0],re.index[1]);return re},O.padField=function(Q,V){var re=V.shape.slice(),ae=Q.shape.slice();f.assign(Q.lo(1,1).hi(re[0],re[1]),V),f.assign(Q.lo(1).hi(re[0],1),V.hi(re[0],1)),f.assign(Q.lo(1,ae[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),f.assign(Q.lo(0,1).hi(1,re[1]),V.hi(1)),f.assign(Q.lo(ae[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),Q.set(0,0,V.get(0,0)),Q.set(0,ae[1]-1,V.get(0,re[1]-1)),Q.set(ae[0]-1,0,V.get(re[0]-1,0)),Q.set(ae[0]-1,ae[1]-1,V.get(re[0]-1,re[1]-1))};function J(Q,V){return Array.isArray(Q)?[V(Q[0]),V(Q[1]),V(Q[2])]:[V(Q),V(Q),V(Q)]}function ee(Q){return Array.isArray(Q)?Q.length===3?[Q[0],Q[1],Q[2],1]:[Q[0],Q[1],Q[2],Q[3]]:[0,0,0,1]}function Z(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[ee(Q[0]),ee(Q[1]),ee(Q[2])];var V=ee(Q);return[V.slice(),V.slice(),V.slice()]}}O.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=J(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=J(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=J(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=Z(Q.contourColor)),"contourProject"in Q&&(this.contourProject=J(Q.contourProject,function(an){return J(an,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=Z(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=J(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=J(Q.dynamicWidth,Number)),"opacity"in Q&&(this.opacity=Q.opacity),"opacityscale"in Q&&(this.opacityscale=Q.opacityscale),"colorBounds"in Q&&(this.colorBounds=Q.colorBounds),"vertexColor"in Q&&(this.vertexColor=Q.vertexColor?1:0),"colormap"in Q&&this._colorMap.setPixels(this.genColormap(Q.colormap,this.opacityscale));var V=Q.field||Q.coords&&Q.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ae=(V.shape[0]+2)*(V.shape[1]+2);ae>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(i.nextPow2(ae))),this._field[2]=v(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var fe=this.shape,xe=0;xe<2;++xe)this._field[2].size>this._field[xe].data.length&&(s.freeFloat(this._field[xe].data),this._field[xe].data=s.mallocFloat(this._field[2].size)),this._field[xe]=v(this._field[xe].data,[fe[0]+2,fe[1]+2]);if(Q.coords){var Ae=Q.coords;if(!Array.isArray(Ae)||Ae.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(xe=0;xe<2;++xe){var Pe=Ae[xe];for(Je=0;Je<2;++Je)if(Pe.shape[Je]!==fe[Je])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[xe],Pe)}}else if(Q.ticks){var Ce=Q.ticks;if(!Array.isArray(Ce)||Ce.length!==2)throw new Error("gl-surface: invalid ticks");for(xe=0;xe<2;++xe){var je=Ce[xe];if((Array.isArray(je)||je.length)&&(je=v(je)),je.shape[0]!==fe[xe])throw new Error("gl-surface: invalid tick length");var at=v(je.data,fe);at.stride[xe]=je.stride[0],at.stride[xe^1]=0,this.padField(this._field[xe],at)}}else{for(xe=0;xe<2;++xe){var tt=[0,0];tt[xe]=1,this._field[xe]=v(this._field[xe].data,[fe[0]+2,fe[1]+2],tt,0)}this._field[0].set(0,0,0);for(var Je=0;Je0){for(var Ya=0;Ya<5;++Ya)rr.pop();Oe-=1}continue e}}}Ia.push(Oe)}this._contourOffsets[Jt]=ia,this._contourCounts[Jt]=Ia}var Ka=s.mallocFloat(rr.length);for(xe=0;xez||R<0||R>z)throw new Error("gl-texture2d: Invalid texture size");return g._shape=[y,R],g.bind(),I.texImage2D(I.TEXTURE_2D,0,g.format,y,R,0,g.format,g.type,null),g._mipLevels=[0],g}function l(g,y,R,I,z,F){this.gl=g,this.handle=y,this.format=z,this.type=F,this._shape=[R,I],this._mipLevels=[0],this._magFilter=g.NEAREST,this._minFilter=g.NEAREST,this._wrapS=g.CLAMP_TO_EDGE,this._wrapT=g.CLAMP_TO_EDGE,this._anisoSamples=1;var B=this,O=[this._wrapS,this._wrapT];Object.defineProperties(O,[{get:function(){return B._wrapS},set:function(N){return B.wrapS=N}},{get:function(){return B._wrapT},set:function(N){return B.wrapT=N}}]),this._wrapVector=O;var P=[this._shape[0],this._shape[1]];Object.defineProperties(P,[{get:function(){return B._shape[0]},set:function(N){return B.width=N}},{get:function(){return B._shape[1]},set:function(N){return B.height=N}}]),this._shapeVector=P}var m=l.prototype;Object.defineProperties(m,{minFilter:{get:function(){return this._minFilter},set:function(g){this.bind();var y=this.gl;if(this.type===y.FLOAT&&n.indexOf(g)>=0&&(y.getExtension("OES_texture_float_linear")||(g=y.NEAREST)),s.indexOf(g)<0)throw new Error("gl-texture2d: Unknown filter mode "+g);return y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,g),this._minFilter=g}},magFilter:{get:function(){return this._magFilter},set:function(g){this.bind();var y=this.gl;if(this.type===y.FLOAT&&n.indexOf(g)>=0&&(y.getExtension("OES_texture_float_linear")||(g=y.NEAREST)),s.indexOf(g)<0)throw new Error("gl-texture2d: Unknown filter mode "+g);return y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,g),this._magFilter=g}},mipSamples:{get:function(){return this._anisoSamples},set:function(g){var y=this._anisoSamples;if(this._anisoSamples=Math.max(g,1)|0,y!==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(g){if(this.bind(),c.indexOf(g)<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,g),this._wrapS=g}},wrapT:{get:function(){return this._wrapT},set:function(g){if(this.bind(),c.indexOf(g)<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,g),this._wrapT=g}},wrap:{get:function(){return this._wrapVector},set:function(g){if(Array.isArray(g)||(g=[g,g]),g.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var y=0;y<2;++y)if(c.indexOf(g[y])<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);this._wrapS=g[0],this._wrapT=g[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),g}},shape:{get:function(){return this._shapeVector},set:function(g){if(!Array.isArray(g))g=[g|0,g|0];else if(g.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,g[0]|0,g[1]|0),[g[0]|0,g[1]|0]}},width:{get:function(){return this._shape[0]},set:function(g){return g=g|0,T(this,g,this._shape[1]),g}},height:{get:function(){return this._shape[1]},set:function(g){return g=g|0,T(this,this._shape[0],g),g}}}),m.bind=function(g){var y=this.gl;return g!==void 0&&y.activeTexture(y.TEXTURE0+(g|0)),y.bindTexture(y.TEXTURE_2D,this.handle),g!==void 0?g|0:y.getParameter(y.ACTIVE_TEXTURE)-y.TEXTURE0},m.dispose=function(){this.gl.deleteTexture(this.handle)},m.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var g=Math.min(this._shape[0],this._shape[1]),y=0;g>0;++y,g>>>=1)this._mipLevels.indexOf(y)<0&&this._mipLevels.push(y)},m.setPixels=function(g,y,R,I){var z=this.gl;this.bind(),Array.isArray(y)?(I=R,R=y[1]|0,y=y[0]|0):(y=y||0,R=R||0),I=I||0;var F=p(g)?g:g.raw;if(F){var B=this._mipLevels.indexOf(I)<0;B?(z.texImage2D(z.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(I)):z.texSubImage2D(z.TEXTURE_2D,I,y,R,this.format,this.type,F)}else if(g.shape&&g.stride&&g.data){if(g.shape.length<2||y+g.shape[1]>this._shape[1]>>>I||R+g.shape[0]>this._shape[0]>>>I||y<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");S(z,y,R,I,this.format,this.type,this._mipLevels,g)}else throw new Error("gl-texture2d: Unsupported data type")};function w(g,y){return g.length===3?y[2]===1&&y[1]===g[0]*g[2]&&y[0]===g[2]:y[0]===1&&y[1]===g[0]}function S(g,y,R,I,z,F,B,O){var P=O.dtype,N=O.shape.slice();if(N.length<2||N.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var U=0,X=0,te=w(N,O.stride.slice());if(P==="float32"?U=g.FLOAT:P==="float64"?(U=g.FLOAT,te=!1,P="float32"):P==="uint8"?U=g.UNSIGNED_BYTE:(U=g.UNSIGNED_BYTE,te=!1,P="uint8"),N.length===2)X=g.LUMINANCE,N=[N[0],N[1],1],O=i(O.data,N,[O.stride[0],O.stride[1],1],O.offset);else if(N.length===3){if(N[2]===1)X=g.ALPHA;else if(N[2]===2)X=g.LUMINANCE_ALPHA;else if(N[2]===3)X=g.RGB;else if(N[2]===4)X=g.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");N[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((X===g.LUMINANCE||X===g.ALPHA)&&(z===g.LUMINANCE||z===g.ALPHA)&&(X=z),X!==z)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ue=O.size,ie=B.indexOf(I)<0;if(ie&&B.push(I),U===F&&te)O.offset===0&&O.data.length===ue?ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,O.data):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,O.data):ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,O.data.subarray(O.offset,O.offset+ue)):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,O.data.subarray(O.offset,O.offset+ue));else{var le;F===g.FLOAT?le=o.mallocFloat32(ue):le=o.mallocUint8(ue);var q=i(le,N,[N[2],N[2]*N[0],1]);U===g.FLOAT&&F===g.UNSIGNED_BYTE?v(q,O):a.assign(q,O),ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,le.subarray(0,ue)):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,le.subarray(0,ue)),F===g.FLOAT?o.freeFloat32(le):o.freeUint8(le)}}function M(g){var y=g.createTexture();return g.bindTexture(g.TEXTURE_2D,y),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE),y}function _(g,y,R,I,z){var F=g.getParameter(g.MAX_TEXTURE_SIZE);if(y<0||y>F||R<0||R>F)throw new Error("gl-texture2d: Invalid texture shape");if(z===g.FLOAT&&!g.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var B=M(g);return g.texImage2D(g.TEXTURE_2D,0,I,y,R,0,I,z,null),new l(g,B,y,R,I,z)}function b(g,y,R,I,z,F){var B=M(g);return g.texImage2D(g.TEXTURE_2D,0,z,z,F,y),new l(g,B,R,I,z,F)}function d(g,y){var R=y.dtype,I=y.shape.slice(),z=g.getParameter(g.MAX_TEXTURE_SIZE);if(I[0]<0||I[0]>z||I[1]<0||I[1]>z)throw new Error("gl-texture2d: Invalid texture size");var F=w(I,y.stride.slice()),B=0;R==="float32"?B=g.FLOAT:R==="float64"?(B=g.FLOAT,F=!1,R="float32"):R==="uint8"?B=g.UNSIGNED_BYTE:(B=g.UNSIGNED_BYTE,F=!1,R="uint8");var O=0;if(I.length===2)O=g.LUMINANCE,I=[I[0],I[1],1],y=i(y.data,I,[y.stride[0],y.stride[1],1],y.offset);else if(I.length===3)if(I[2]===1)O=g.ALPHA;else if(I[2]===2)O=g.LUMINANCE_ALPHA;else if(I[2]===3)O=g.RGB;else if(I[2]===4)O=g.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");B===g.FLOAT&&!g.getExtension("OES_texture_float")&&(B=g.UNSIGNED_BYTE,F=!1);var P,N,U=y.size;if(F)y.offset===0&&y.data.length===U?P=y.data:P=y.data.subarray(y.offset,y.offset+U);else{var X=[I[2],I[2]*I[0],1];N=o.malloc(U,R);var te=i(N,I,X,0);(R==="float32"||R==="float64")&&B===g.UNSIGNED_BYTE?v(te,y):a.assign(te,y),P=N.subarray(0,U)}var ue=M(g);return g.texImage2D(g.TEXTURE_2D,0,O,I[0],I[1],0,O,B,P),F||o.free(N),new l(g,ue,I[0],I[1],O,B)}function u(g){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(n||f(g),typeof arguments[1]=="number")return _(g,arguments[1],arguments[2],arguments[3]||g.RGBA,arguments[4]||g.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(g,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||g.RGBA,arguments[3]||g.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var y=arguments[1],R=p(y)?y:y.raw;if(R)return b(g,R,y.width|0,y.height|0,arguments[2]||g.RGBA,arguments[3]||g.UNSIGNED_BYTE);if(y.shape&&y.data&&y.stride)return d(g,y)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(e){function t(r,i,a){i?i.bind():r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,null);var o=r.getParameter(r.MAX_VERTEX_ATTRIBS)|0;if(a){if(a.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var n=0;n1?0:Math.acos(v)}},9226:function(e){e.exports=t;function t(r,i){return r[0]=Math.ceil(i[0]),r[1]=Math.ceil(i[1]),r[2]=Math.ceil(i[2]),r}},3126:function(e){e.exports=t;function t(r){var i=new Float32Array(3);return i[0]=r[0],i[1]=r[1],i[2]=r[2],i}},3990:function(e){e.exports=t;function t(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r}},1091:function(e){e.exports=t;function t(){var r=new Float32Array(3);return r[0]=0,r[1]=0,r[2]=0,r}},5911:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2];return r[0]=n*p-s*f,r[1]=s*c-o*p,r[2]=o*f-n*c,r}},5455:function(e,t,r){e.exports=r(7056)},7056:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2];return Math.sqrt(a*a+o*o+n*n)}},4008:function(e,t,r){e.exports=r(6690)},6690:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]/a[0],r[1]=i[1]/a[1],r[2]=i[2]/a[2],r}},244:function(e){e.exports=t;function t(r,i){return r[0]*i[0]+r[1]*i[1]+r[2]*i[2]}},2613:function(e){e.exports=1e-6},9922:function(e,t,r){e.exports=a;var i=r(2613);function a(o,n){var s=o[0],c=o[1],f=o[2],p=n[0],v=n[1],T=n[2];return Math.abs(s-p)<=i*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(c-v)<=i*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(f-T)<=i*Math.max(1,Math.abs(f),Math.abs(T))}},9265:function(e){e.exports=t;function t(r,i){return r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2]}},2681:function(e){e.exports=t;function t(r,i){return r[0]=Math.floor(i[0]),r[1]=Math.floor(i[1]),r[2]=Math.floor(i[2]),r}},5137:function(e,t,r){e.exports=a;var i=r(1091)();function a(o,n,s,c,f,p){var v,T;for(n||(n=3),s||(s=0),c?T=Math.min(c*n+s,o.length):T=o.length,v=s;v0&&(s=1/Math.sqrt(s),r[0]=i[0]*s,r[1]=i[1]*s,r[2]=i[2]*s),r}},7636:function(e){e.exports=t;function t(r,i){i=i||1;var a=Math.random()*2*Math.PI,o=Math.random()*2-1,n=Math.sqrt(1-o*o)*i;return r[0]=Math.cos(a)*n,r[1]=Math.sin(a)*n,r[2]=o*i,r}},6894:function(e){e.exports=t;function t(r,i,a,o){var n=a[1],s=a[2],c=i[1]-n,f=i[2]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=i[0],r[1]=n+c*v-f*p,r[2]=s+c*p+f*v,r}},109:function(e){e.exports=t;function t(r,i,a,o){var n=a[0],s=a[2],c=i[0]-n,f=i[2]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=n+f*p+c*v,r[1]=i[1],r[2]=s+f*v-c*p,r}},8692:function(e){e.exports=t;function t(r,i,a,o){var n=a[0],s=a[1],c=i[0]-n,f=i[1]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=n+c*v-f*p,r[1]=s+c*p+f*v,r[2]=i[2],r}},2447:function(e){e.exports=t;function t(r,i){return r[0]=Math.round(i[0]),r[1]=Math.round(i[1]),r[2]=Math.round(i[2]),r}},6621:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a,r[1]=i[1]*a,r[2]=i[2]*a,r}},8489:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i[0]+a[0]*o,r[1]=i[1]+a[1]*o,r[2]=i[2]+a[2]*o,r}},1463:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i,r[1]=a,r[2]=o,r}},6141:function(e,t,r){e.exports=r(2953)},5486:function(e,t,r){e.exports=r(3066)},2953:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2];return a*a+o*o+n*n}},3066:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2];return i*i+a*a+o*o}},2229:function(e,t,r){e.exports=r(6843)},6843:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]-a[0],r[1]=i[1]-a[1],r[2]=i[2]-a[2],r}},492:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2];return r[0]=o*a[0]+n*a[3]+s*a[6],r[1]=o*a[1]+n*a[4]+s*a[7],r[2]=o*a[2]+n*a[5]+s*a[8],r}},5673:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[3]*o+a[7]*n+a[11]*s+a[15];return c=c||1,r[0]=(a[0]*o+a[4]*n+a[8]*s+a[12])/c,r[1]=(a[1]*o+a[5]*n+a[9]*s+a[13])/c,r[2]=(a[2]*o+a[6]*n+a[10]*s+a[14])/c,r}},264:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2],v=a[3],T=v*o+f*s-p*n,l=v*n+p*o-c*s,m=v*s+c*n-f*o,w=-c*o-f*n-p*s;return r[0]=T*v+w*-c+l*-p-m*-f,r[1]=l*v+w*-f+m*-c-T*-p,r[2]=m*v+w*-p+T*-f-l*-c,r}},4361:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]+a[0],r[1]=i[1]+a[1],r[2]=i[2]+a[2],r[3]=i[3]+a[3],r}},2335:function(e){e.exports=t;function t(r){var i=new Float32Array(4);return i[0]=r[0],i[1]=r[1],i[2]=r[2],i[3]=r[3],i}},2933:function(e){e.exports=t;function t(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r}},7536:function(e){e.exports=t;function t(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},4691:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2],s=i[3]-r[3];return Math.sqrt(a*a+o*o+n*n+s*s)}},1373:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]/a[0],r[1]=i[1]/a[1],r[2]=i[2]/a[2],r[3]=i[3]/a[3],r}},3750:function(e){e.exports=t;function t(r,i){return r[0]*i[0]+r[1]*i[1]+r[2]*i[2]+r[3]*i[3]}},3390:function(e){e.exports=t;function t(r,i,a,o){var n=new Float32Array(4);return n[0]=r,n[1]=i,n[2]=a,n[3]=o,n}},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)}},4494:function(e){e.exports=t;function t(r,i){return r[0]=1/i[0],r[1]=1/i[1],r[2]=1/i[2],r[3]=1/i[3],r}},6808:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2],n=r[3];return Math.sqrt(i*i+a*a+o*o+n*n)}},2573:function(e){e.exports=t;function t(r,i,a,o){var n=i[0],s=i[1],c=i[2],f=i[3];return r[0]=n+o*(a[0]-n),r[1]=s+o*(a[1]-s),r[2]=c+o*(a[2]-c),r[3]=f+o*(a[3]-f),r}},160:function(e){e.exports=t;function t(r,i,a){return r[0]=Math.max(i[0],a[0]),r[1]=Math.max(i[1],a[1]),r[2]=Math.max(i[2],a[2]),r[3]=Math.max(i[3],a[3]),r}},2334:function(e){e.exports=t;function t(r,i,a){return r[0]=Math.min(i[0],a[0]),r[1]=Math.min(i[1],a[1]),r[2]=Math.min(i[2],a[2]),r[3]=Math.min(i[3],a[3]),r}},3576:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a[0],r[1]=i[1]*a[1],r[2]=i[2]*a[2],r[3]=i[3]*a[3],r}},1498:function(e){e.exports=t;function t(r,i){return r[0]=-i[0],r[1]=-i[1],r[2]=-i[2],r[3]=-i[3],r}},5177:function(e){e.exports=t;function t(r,i){var a=i[0],o=i[1],n=i[2],s=i[3],c=a*a+o*o+n*n+s*s;return c>0&&(c=1/Math.sqrt(c),r[0]=a*c,r[1]=o*c,r[2]=n*c,r[3]=s*c),r}},9131:function(e,t,r){var i=r(5177),a=r(9288);e.exports=o;function o(n,s){return s=s||1,n[0]=Math.random(),n[1]=Math.random(),n[2]=Math.random(),n[3]=Math.random(),i(n,n),a(n,n,s),n}},9288:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a,r[1]=i[1]*a,r[2]=i[2]*a,r[3]=i[3]*a,r}},4844:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i[0]+a[0]*o,r[1]=i[1]+a[1]*o,r[2]=i[2]+a[2]*o,r[3]=i[3]+a[3]*o,r}},4578:function(e){e.exports=t;function t(r,i,a,o,n){return r[0]=i,r[1]=a,r[2]=o,r[3]=n,r}},7960:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2],s=i[3]-r[3];return a*a+o*o+n*n+s*s}},483:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2],n=r[3];return i*i+a*a+o*o+n*n}},6860:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]-a[0],r[1]=i[1]-a[1],r[2]=i[2]-a[2],r[3]=i[3]-a[3],r}},5352:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=i[3];return r[0]=a[0]*o+a[4]*n+a[8]*s+a[12]*c,r[1]=a[1]*o+a[5]*n+a[9]*s+a[13]*c,r[2]=a[2]*o+a[6]*n+a[10]*s+a[14]*c,r[3]=a[3]*o+a[7]*n+a[11]*s+a[15]*c,r}},4041:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2],v=a[3],T=v*o+f*s-p*n,l=v*n+p*o-c*s,m=v*s+c*n-f*o,w=-c*o-f*n-p*s;return r[0]=T*v+w*-c+l*-p-m*-f,r[1]=l*v+w*-f+m*-c-T*-p,r[2]=m*v+w*-p+T*-f-l*-c,r[3]=i[3],r}},1848:function(e,t,r){var i=r(4905),a=r(6468);e.exports=o;function o(n){for(var s=Array.isArray(n)?n:i(n),c=0;c0)continue;De=Me.slice(0,1).join("")}return Q(De),te+=De.length,P=P.slice(De.length),P.length}while(!0)}function at(){return/[^a-fA-F0-9]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function tt(){return B==="."||/[eE]/.test(B)?(P.push(B),F=w,O=B,I+1):B==="x"&&P.length===1&&P[0]==="0"?(F=u,P.push(B),O=B,I+1):/[^\d]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function Je(){return B==="f"&&(P.push(B),O=B,I+=1),/[eE]/.test(B)||(B==="-"||B==="+")&&/[eE]/.test(O)?(P.push(B),O=B,I+1):/[^\d]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function Ze(){if(/[^\d\w_]/.test(B)){var Me=P.join("");return se[Me]?F=_:Z[Me]?F=M:F=S,Q(P.join("")),F=c,I}return P.push(B),O=B,I+1}}},3508:function(e,t,r){var i=r(6852);i=i.slice().filter(function(a){return!/^(gl\_|texture)/.test(a)}),e.exports=i.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(e){e.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(e,t,r){var i=r(620);e.exports=i.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"])},620:function(e){e.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(e,t,r){var i=r(5874);e.exports=a;function a(o,n){var s=i(n),c=[];return c=c.concat(s(o)),c=c.concat(s(null)),c}},3236:function(e){e.exports=function(t){typeof t=="string"&&(t=[t]);for(var r=[].slice.call(arguments,1),i=[],a=0;a>1,T=-7,l=a?n-1:0,m=a?-1:1,w=r[i+l];for(l+=m,s=w&(1<<-T)-1,w>>=-T,T+=f;T>0;s=s*256+r[i+l],l+=m,T-=8);for(c=s&(1<<-T)-1,s>>=-T,T+=o;T>0;c=c*256+r[i+l],l+=m,T-=8);if(s===0)s=1-v;else{if(s===p)return c?NaN:(w?-1:1)*(1/0);c=c+Math.pow(2,o),s=s-v}return(w?-1:1)*c*Math.pow(2,s-o)},t.write=function(r,i,a,o,n,s){var c,f,p,v=s*8-n-1,T=(1<>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,S=o?1:-1,M=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(f=isNaN(i)?1:0,c=T):(c=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-c))<1&&(c--,p*=2),c+l>=1?i+=m/p:i+=m*Math.pow(2,1-l),i*p>=2&&(c++,p/=2),c+l>=T?(f=0,c=T):c+l>=1?(f=(i*p-1)*Math.pow(2,n),c=c+l):(f=i*Math.pow(2,l-1)*Math.pow(2,n),c=0));n>=8;r[a+w]=f&255,w+=S,f/=256,n-=8);for(c=c<0;r[a+w]=c&255,w+=S,c/=256,v-=8);r[a+w-S]|=M*128}},8954:function(e,t,r){e.exports=l;var i=r(3250),a=r(6803).Fw;function o(m,w,S){this.vertices=m,this.adjacent=w,this.boundary=S,this.lastVisited=-1}o.prototype.flip=function(){var m=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=m;var w=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=w};function n(m,w,S){this.vertices=m,this.cell=w,this.index=S}function s(m,w){return a(m.vertices,w.vertices)}function c(m){return function(){var w=this.tuple;return m.apply(this,w)}}function f(m){var w=i[m+1];return w||(w=i),c(w)}var p=[];function v(m,w,S){this.dimension=m,this.vertices=w,this.simplices=S,this.interior=S.filter(function(b){return!b.boundary}),this.tuple=new Array(m+1);for(var M=0;M<=m;++M)this.tuple[M]=this.vertices[M];var _=p[m];_||(_=p[m]=f(m)),this.orient=_}var T=v.prototype;T.handleBoundaryDegeneracy=function(m,w){var S=this.dimension,M=this.vertices.length-1,_=this.tuple,b=this.vertices,d=[m];for(m.lastVisited=-M;d.length>0;){m=d.pop();for(var u=m.adjacent,g=0;g<=S;++g){var y=u[g];if(!(!y.boundary||y.lastVisited<=-M)){for(var R=y.vertices,I=0;I<=S;++I){var z=R[I];z<0?_[I]=w:_[I]=b[z]}var F=this.orient();if(F>0)return y;y.lastVisited=-M,F===0&&d.push(y)}}}return null},T.walk=function(m,w){var S=this.vertices.length-1,M=this.dimension,_=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 g=u.vertices,y=u.adjacent,R=0;R<=M;++R)b[R]=_[g[R]];u.lastVisited=S;for(var R=0;R<=M;++R){var I=y[R];if(!(I.lastVisited>=S)){var z=b[R];b[R]=m;var F=this.orient();if(b[R]=z,F<0){u=I;continue e}else I.boundary?I.lastVisited=-S:I.lastVisited=S}}return}return u},T.addPeaks=function(m,w){var S=this.vertices.length-1,M=this.dimension,_=this.vertices,b=this.tuple,d=this.interior,u=this.simplices,g=[w];w.lastVisited=S,w.vertices[w.vertices.indexOf(-1)]=S,w.boundary=!1,d.push(w);for(var y=[];g.length>0;){var w=g.pop(),R=w.vertices,I=w.adjacent,z=R.indexOf(S);if(!(z<0)){for(var F=0;F<=M;++F)if(F!==z){var B=I[F];if(!(!B.boundary||B.lastVisited>=S)){var O=B.vertices;if(B.lastVisited!==-S){for(var P=0,N=0;N<=M;++N)O[N]<0?(P=N,b[N]=m):b[N]=_[O[N]];var U=this.orient();if(U>0){O[P]=S,B.boundary=!1,d.push(B),g.push(B),B.lastVisited=S;continue}else B.lastVisited=-S}var X=B.adjacent,te=R.slice(),ue=I.slice(),ie=new o(te,ue,!0);u.push(ie);var le=X.indexOf(w);if(!(le<0)){X[le]=ie,ue[z]=B,te[F]=-1,ue[F]=w,I[F]=ie,ie.flip();for(var N=0;N<=M;++N){var q=te[N];if(!(q<0||q===S)){for(var J=new Array(M-1),ee=0,Z=0;Z<=M;++Z){var se=te[Z];se<0||Z===N||(J[ee++]=se)}y.push(new n(J,ie,N))}}}}}}}y.sort(s);for(var F=0;F+1=0?d[g++]=u[R]:y=R&1;if(y===(m&1)){var I=d[0];d[0]=d[1],d[1]=I}w.push(d)}}return w};function l(m,w){var S=m.length;if(S===0)throw new Error("Must have at least d+1 points");var M=m[0].length;if(S<=M)throw new Error("Must input at least d+1 points");var _=m.slice(0,M+1),b=i.apply(void 0,_);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 g=new o(d,new Array(M+1),!1),y=g.adjacent,R=new Array(M+2),u=0;u<=M;++u){for(var I=d.slice(),z=0;z<=M;++z)z===u&&(I[z]=-1);var F=I[0];I[0]=I[1],I[1]=F;var B=new o(I,new Array(M+1),!0);y[u]=B,R[u]=B}R[M+1]=g;for(var u=0;u<=M;++u)for(var I=y[u].vertices,O=y[u].adjacent,z=0;z<=M;++z){var P=I[z];if(P<0){O[z]=g;continue}for(var N=0;N<=M;++N)y[N].vertices.indexOf(P)<0&&(O[z]=y[N])}for(var U=new v(M,_,R),X=!!w,u=M+1;u3*(R+1)?v(this,y):this.left.insert(y):this.left=b([y]);else if(y[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?v(this,y):this.right.insert(y):this.right=b([y]);else{var I=i.ge(this.leftPoints,y,M),z=i.ge(this.rightPoints,y,_);this.leftPoints.splice(I,0,y),this.rightPoints.splice(z,0,y)}},c.remove=function(y){var R=this.count-this.leftPoints;if(y[1]3*(R-1))return T(this,y);var z=this.left.remove(y);return z===n?(this.left=null,this.count-=1,o):(z===o&&(this.count-=1),z)}else if(y[0]>this.mid){if(!this.right)return a;var F=this.left?this.left.count:0;if(4*F>3*(R-1))return T(this,y);var z=this.right.remove(y);return z===n?(this.right=null,this.count-=1,o):(z===o&&(this.count-=1),z)}else{if(this.count===1)return this.leftPoints[0]===y?n:a;if(this.leftPoints.length===1&&this.leftPoints[0]===y){if(this.left&&this.right){for(var B=this,O=this.left;O.right;)B=O,O=O.right;if(B===this)O.right=this.right;else{var P=this.left,z=this.right;B.count-=O.count,B.right=O.left,O.left=P,O.right=z}f(this,O),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?f(this,this.left):f(this,this.right);return o}for(var P=i.ge(this.leftPoints,y,M);P=0&&y[z][1]>=R;--z){var F=I(y[z]);if(F)return F}}function w(y,R){for(var I=0;Ithis.mid){if(this.right){var I=this.right.queryPoint(y,R);if(I)return I}return m(this.rightPoints,y,R)}else return w(this.leftPoints,R)},c.queryInterval=function(y,R,I){if(ythis.mid&&this.right){var z=this.right.queryInterval(y,R,I);if(z)return z}return Rthis.mid?m(this.rightPoints,y,I):w(this.leftPoints,I)};function S(y,R){return y-R}function M(y,R){var I=y[0]-R[0];return I||y[1]-R[1]}function _(y,R){var I=y[1]-R[1];return I||y[0]-R[0]}function b(y){if(y.length===0)return null;for(var R=[],I=0;I>1],F=[],B=[],O=[],I=0;I13)&&i!==32&&i!==133&&i!==160&&i!==5760&&i!==6158&&(i<8192||i>8205)&&i!==8232&&i!==8233&&i!==8239&&i!==8287&&i!==8288&&i!==12288&&i!==65279)return!1;return!0}},395:function(e){function t(r,i,a){return r*(1-a)+i*a}e.exports=t},2652:function(e,t,r){var i=r(4335),a=r(6864),o=r(1903),n=r(9921),s=r(7608),c=r(5665),f={length:r(1387),normalize:r(3536),dot:r(244),cross:r(5911)},p=a(),v=a(),T=[0,0,0,0],l=[[0,0,0],[0,0,0],[0,0,0]],m=[0,0,0];e.exports=function(b,d,u,g,y,R){if(d||(d=[0,0,0]),u||(u=[0,0,0]),g||(g=[0,0,0]),y||(y=[0,0,0,1]),R||(R=[0,0,0,1]),!i(p,b)||(o(v,p),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(n(v)<1e-8)))return!1;var I=p[3],z=p[7],F=p[11],B=p[12],O=p[13],P=p[14],N=p[15];if(I!==0||z!==0||F!==0){T[0]=I,T[1]=z,T[2]=F,T[3]=N;var U=s(v,v);if(!U)return!1;c(v,v),w(y,T,v)}else y[0]=y[1]=y[2]=0,y[3]=1;if(d[0]=B,d[1]=O,d[2]=P,S(l,p),u[0]=f.length(l[0]),f.normalize(l[0],l[0]),g[0]=f.dot(l[0],l[1]),M(l[1],l[1],l[0],1,-g[0]),u[1]=f.length(l[1]),f.normalize(l[1],l[1]),g[0]/=u[1],g[1]=f.dot(l[0],l[2]),M(l[2],l[2],l[0],1,-g[1]),g[2]=f.dot(l[1],l[2]),M(l[2],l[2],l[1],1,-g[2]),u[2]=f.length(l[2]),f.normalize(l[2],l[2]),g[1]/=u[2],g[2]/=u[2],f.cross(m,l[1],l[2]),f.dot(l[0],m)<0)for(var X=0;X<3;X++)u[X]*=-1,l[X][0]*=-1,l[X][1]*=-1,l[X][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+l[0][0]-l[1][1]-l[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-l[0][0]+l[1][1]-l[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-l[0][0]-l[1][1]+l[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+l[0][0]+l[1][1]+l[2][2],0)),l[2][1]>l[1][2]&&(R[0]=-R[0]),l[0][2]>l[2][0]&&(R[1]=-R[1]),l[1][0]>l[0][1]&&(R[2]=-R[2]),!0};function w(_,b,d){var u=b[0],g=b[1],y=b[2],R=b[3];return _[0]=d[0]*u+d[4]*g+d[8]*y+d[12]*R,_[1]=d[1]*u+d[5]*g+d[9]*y+d[13]*R,_[2]=d[2]*u+d[6]*g+d[10]*y+d[14]*R,_[3]=d[3]*u+d[7]*g+d[11]*y+d[15]*R,_}function S(_,b){_[0][0]=b[0],_[0][1]=b[1],_[0][2]=b[2],_[1][0]=b[4],_[1][1]=b[5],_[1][2]=b[6],_[2][0]=b[8],_[2][1]=b[9],_[2][2]=b[10]}function M(_,b,d,u,g){_[0]=b[0]*u+d[0]*g,_[1]=b[1]*u+d[1]*g,_[2]=b[2]*u+d[2]*g}},4335:function(e){e.exports=function(r,i){var a=i[15];if(a===0)return!1;for(var o=1/a,n=0;n<16;n++)r[n]=i[n]*o;return!0}},7442:function(e,t,r){var i=r(6658),a=r(7182),o=r(2652),n=r(9921),s=r(8648),c=T(),f=T(),p=T();e.exports=v;function v(w,S,M,_){if(n(S)===0||n(M)===0)return!1;var b=o(S,c.translate,c.scale,c.skew,c.perspective,c.quaternion),d=o(M,f.translate,f.scale,f.skew,f.perspective,f.quaternion);return!b||!d?!1:(i(p.translate,c.translate,f.translate,_),i(p.skew,c.skew,f.skew,_),i(p.scale,c.scale,f.scale,_),i(p.perspective,c.perspective,f.perspective,_),s(p.quaternion,c.quaternion,f.quaternion,_),a(w,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function T(){return{translate:l(),scale:l(1),skew:l(),perspective:m(),quaternion:m()}}function l(w){return[w||0,w||0,w||0]}function m(){return[0,0,0,1]}},7182:function(e,t,r){var i={identity:r(7894),translate:r(7656),multiply:r(6760),create:r(6864),scale:r(2504),fromRotationTranslation:r(6743)};i.create();var a=i.create();e.exports=function(n,s,c,f,p,v){return i.identity(n),i.fromRotationTranslation(n,v,s),n[3]=p[0],n[7]=p[1],n[11]=p[2],n[15]=p[3],i.identity(a),f[2]!==0&&(a[9]=f[2],i.multiply(n,n,a)),f[1]!==0&&(a[9]=0,a[8]=f[1],i.multiply(n,n,a)),f[0]!==0&&(a[8]=0,a[4]=f[0],i.multiply(n,n,a)),i.scale(n,n,c),n}},1811:function(e,t,r){var i=r(2478),a=r(7442),o=r(7608),n=r(5567),s=r(2408),c=r(7089),f=r(6582),p=r(7656);r(2504);var v=r(3536),T=[0,0,0];e.exports=S;function l(M){this._components=M.slice(),this._time=[0],this.prevMatrix=M.slice(),this.nextMatrix=M.slice(),this.computedMatrix=M.slice(),this.computedInverse=M.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var m=l.prototype;m.recalcMatrix=function(M){var _=this._time,b=i.le(_,M),d=this.computedMatrix;if(!(b<0)){var u=this._components;if(b===_.length-1)for(var g=16*b,y=0;y<16;++y)d[y]=u[g++];else{for(var R=_[b+1]-_[b],g=16*b,I=this.prevMatrix,z=!0,y=0;y<16;++y)I[y]=u[g++];for(var F=this.nextMatrix,y=0;y<16;++y)F[y]=u[g++],z=z&&I[y]===F[y];if(R<1e-6||z)for(var y=0;y<16;++y)d[y]=I[y];else a(d,I,F,(M-_[b])/R)}var B=this.computedUp;B[0]=d[1],B[1]=d[5],B[2]=d[9],v(B,B);var O=this.computedInverse;o(O,d);var P=this.computedEye,N=O[15];P[0]=O[12]/N,P[1]=O[13]/N,P[2]=O[14]/N;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),y=0;y<3;++y)U[y]=P[y]-d[2+4*y]*X}},m.idle=function(M){if(!(M1&&i(o[f[l-2]],o[f[l-1]],T)<=0;)l-=1,f.pop();for(f.push(v),l=p.length;l>1&&i(o[p[l-2]],o[p[l-1]],T)>=0;)l-=1,p.pop();p.push(v)}for(var m=new Array(p.length+f.length-2),w=0,s=0,S=f.length;s0;--M)m[w++]=p[M];return m}},351:function(e,t,r){e.exports=a;var i=r(4687);function a(o,n){n||(n=o,o=window);var s=0,c=0,f=0,p={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function T(y){var R=!1;return"altKey"in y&&(R=R||y.altKey!==p.alt,p.alt=!!y.altKey),"shiftKey"in y&&(R=R||y.shiftKey!==p.shift,p.shift=!!y.shiftKey),"ctrlKey"in y&&(R=R||y.ctrlKey!==p.control,p.control=!!y.ctrlKey),"metaKey"in y&&(R=R||y.metaKey!==p.meta,p.meta=!!y.metaKey),R}function l(y,R){var I=i.x(R),z=i.y(R);"buttons"in R&&(y=R.buttons|0),(y!==s||I!==c||z!==f||T(R))&&(s=y|0,c=I||0,f=z||0,n&&n(s,c,f,p))}function m(y){l(0,y)}function w(){(s||c||f||p.shift||p.alt||p.meta||p.control)&&(c=f=0,s=0,p.shift=p.alt=p.control=p.meta=!1,n&&n(0,0,0,p))}function S(y){T(y)&&n&&n(s,c,f,p)}function M(y){i.buttons(y)===0?l(0,y):l(s,y)}function _(y){l(s|i.buttons(y),y)}function b(y){l(s&~i.buttons(y),y)}function d(){v||(v=!0,o.addEventListener("mousemove",M),o.addEventListener("mousedown",_),o.addEventListener("mouseup",b),o.addEventListener("mouseleave",m),o.addEventListener("mouseenter",m),o.addEventListener("mouseout",m),o.addEventListener("mouseover",m),o.addEventListener("blur",w),o.addEventListener("keyup",S),o.addEventListener("keydown",S),o.addEventListener("keypress",S),o!==window&&(window.addEventListener("blur",w),window.addEventListener("keyup",S),window.addEventListener("keydown",S),window.addEventListener("keypress",S)))}function u(){v&&(v=!1,o.removeEventListener("mousemove",M),o.removeEventListener("mousedown",_),o.removeEventListener("mouseup",b),o.removeEventListener("mouseleave",m),o.removeEventListener("mouseenter",m),o.removeEventListener("mouseout",m),o.removeEventListener("mouseover",m),o.removeEventListener("blur",w),o.removeEventListener("keyup",S),o.removeEventListener("keydown",S),o.removeEventListener("keypress",S),o!==window&&(window.removeEventListener("blur",w),window.removeEventListener("keyup",S),window.removeEventListener("keydown",S),window.removeEventListener("keypress",S)))}d();var g={element:o};return Object.defineProperties(g,{enabled:{get:function(){return v},set:function(y){y?d():u()},enumerable:!0},buttons:{get:function(){return s},enumerable:!0},x:{get:function(){return c},enumerable:!0},y:{get:function(){return f},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),g}},24:function(e){var t={left:0,top:0};e.exports=r;function r(a,o,n){o=o||a.currentTarget||a.srcElement,Array.isArray(n)||(n=[0,0]);var s=a.clientX||0,c=a.clientY||0,f=i(o);return n[0]=s-f.left,n[1]=c-f.top,n}function i(a){return a===window||a===document||a===document.body?t:a.getBoundingClientRect()}},4687:function(e,t){function r(n){if(typeof n=="object"){if("buttons"in n)return n.buttons;if("which"in n){var s=n.which;if(s===2)return 4;if(s===3)return 2;if(s>0)return 1<=0)return 1<0){if(ue=1,q[ee++]=p(d[R],w,S,M),R+=U,_>0)for(te=1,I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++),ee+=1,R+=U,te=2;te<_;++te)I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==V&&f(J[ee+se],Ce,N,F,Pe,V,w,S,M)),ee+=1,R+=U;for(R+=X,ee=0,je=se,se=Q,Q=je,je=re,re=ae,ae=je,je=xe,xe=Ae,Ae=je,ue=2;ue0)for(te=1,I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,O,N,fe,Pe,w,S,M)),ee+=1,R+=U,te=2;te<_;++te)I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,O,N,fe,Pe,w,S,M),Pe!==V&&f(J[ee+se],Ce,N,F,Pe,V,w,S,M)),ee+=1,R+=U;ue&1&&(ee=0),je=se,se=Q,Q=je,je=re,re=ae,ae=je,je=xe,xe=Ae,Ae=je,R+=X}}T(J),T(q)}},"false,1,0":function(c,f,p,v,T){return function(m,w,S,M){var _=m.shape[0]|0,b=m.shape[1]|0,d=m.data,u=m.offset|0,g=m.stride[0]|0,y=m.stride[1]|0,R=u,I,z=-g|0,F=0,B=-y|0,O=0,P=-g-y|0,N=0,U=y|0,X=g-y*b|0,te=0,ue=0,ie=0,le=2*b|0,q=v(le),J=v(le),ee=0,Z=0,se=-1,Q=-1,V=0,re=-b|0,ae=b|0,fe=0,xe=-b-1|0,Ae=b-1|0,Pe=0,Ce=0,je=0;for(ue=0;ue0){if(te=1,q[ee++]=p(d[R],w,S,M),R+=U,b>0)for(ue=1,I=d[R],Z=q[ee]=p(I,w,S,M),fe=q[ee+re],V=q[ee+se],Pe=q[ee+xe],(Z!==fe||Z!==V||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,fe,V,Pe,w,S,M),Ce=J[ee]=ie++),ee+=1,R+=U,ue=2;ue0)for(ue=1,I=d[R],Z=q[ee]=p(I,w,S,M),fe=q[ee+re],V=q[ee+se],Pe=q[ee+xe],(Z!==fe||Z!==V||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,fe,V,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,N,F,Pe,fe,w,S,M)),ee+=1,R+=U,ue=2;ue 0"),typeof s.vertex!="function"&&c("Must specify vertex creation function"),typeof s.cell!="function"&&c("Must specify cell creation function"),typeof s.phase!="function"&&c("Must specify phase function");for(var T=s.getters||[],l=new Array(p),m=0;m=0?l[m]=!0:l[m]=!1;return o(s.vertex,s.cell,s.phase,v,f,l)}},6199:function(e,t,r){var i=r(1338),a={zero:function(S,M,_,b){var d=S[0],u=_[0];b|=0;var g=0,y=u;for(g=0;g2&&g[1]>2&&b(u.pick(-1,-1).lo(1,1).hi(g[0]-2,g[1]-2),d.pick(-1,-1,0).lo(1,1).hi(g[0]-2,g[1]-2),d.pick(-1,-1,1).lo(1,1).hi(g[0]-2,g[1]-2)),g[1]>2&&(_(u.pick(0,-1).lo(1).hi(g[1]-2),d.pick(0,-1,1).lo(1).hi(g[1]-2)),M(d.pick(0,-1,0).lo(1).hi(g[1]-2))),g[1]>2&&(_(u.pick(g[0]-1,-1).lo(1).hi(g[1]-2),d.pick(g[0]-1,-1,1).lo(1).hi(g[1]-2)),M(d.pick(g[0]-1,-1,0).lo(1).hi(g[1]-2))),g[0]>2&&(_(u.pick(-1,0).lo(1).hi(g[0]-2),d.pick(-1,0,0).lo(1).hi(g[0]-2)),M(d.pick(-1,0,1).lo(1).hi(g[0]-2))),g[0]>2&&(_(u.pick(-1,g[1]-1).lo(1).hi(g[0]-2),d.pick(-1,g[1]-1,0).lo(1).hi(g[0]-2)),M(d.pick(-1,g[1]-1,1).lo(1).hi(g[0]-2))),d.set(0,0,0,0),d.set(0,0,1,0),d.set(g[0]-1,0,0,0),d.set(g[0]-1,0,1,0),d.set(0,g[1]-1,0,0),d.set(0,g[1]-1,1,0),d.set(g[0]-1,g[1]-1,0,0),d.set(g[0]-1,g[1]-1,1,0),d}}function w(S){var M=S.join(),g=p[M];if(g)return g;for(var _=S.length,b=[v,T],d=1;d<=_;++d)b.push(l(d));var u=m,g=u.apply(void 0,b);return p[M]=g,g}e.exports=function(M,_,b){if(Array.isArray(b)||(typeof b=="string"?b=i(_.dimension,b):b=i(_.dimension,"clamp")),_.size===0)return M;if(_.dimension===0)return M.set(0),M;var d=w(b);return d(M,_)}},4317:function(e){function t(n,s){var c=Math.floor(s),f=s-c,p=0<=c&&c0;){O<64?(_=O,O=0):(_=64,O-=64);for(var P=p[1]|0;P>0;){P<64?(b=P,P=0):(b=64,P-=64),l=F+O*u+P*g,S=B+O*R+P*I;var N=0,U=0,X=0,te=y,ue=u-d*y,ie=g-_*u,le=z,q=R-d*z,J=I-_*R;for(X=0;X0;){I<64?(_=I,I=0):(_=64,I-=64);for(var z=p[0]|0;z>0;){z<64?(M=z,z=0):(M=64,z-=64),l=y+I*d+z*b,S=R+I*g+z*u;var F=0,B=0,O=d,P=b-_*d,N=g,U=u-_*g;for(B=0;B0;){B<64?(b=B,B=0):(b=64,B-=64);for(var O=p[0]|0;O>0;){O<64?(M=O,O=0):(M=64,O-=64);for(var P=p[1]|0;P>0;){P<64?(_=P,P=0):(_=64,P-=64),l=z+B*g+O*d+P*u,S=F+B*I+O*y+P*R;var N=0,U=0,X=0,te=g,ue=d-b*g,ie=u-M*d,le=I,q=y-b*I,J=R-M*y;for(X=0;X<_;++X){for(U=0;Um;){N=0,U=F-_;t:for(O=0;Ote)break t;U+=y,N+=R}for(N=F,U=F-_,O=0;O>1,P=O-z,N=O+z,U=F,X=P,te=O,ue=N,ie=B,le=w+1,q=S-1,J=!0,ee,Z,se,Q,V,re,ae,fe,xe,Ae=0,Pe=0,Ce=0,je,at,tt,Je,Ze,Me,we,he,De,et,nt,Ke,Et,kt,Ut,Yt,vr=g,hr=T(vr),Rr=T(vr);at=b*U,tt=b*X,Yt=_;e:for(je=0;je0){Z=U,U=X,X=Z;break e}if(Ce<0)break e;Yt+=R}at=b*ue,tt=b*ie,Yt=_;e:for(je=0;je0){Z=ue,ue=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}at=b*U,tt=b*te,Yt=_;e:for(je=0;je0){Z=U,U=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*te,Yt=_;e:for(je=0;je0){Z=X,X=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*U,tt=b*ue,Yt=_;e:for(je=0;je0){Z=U,U=ue,ue=Z;break e}if(Ce<0)break e;Yt+=R}at=b*te,tt=b*ue,Yt=_;e:for(je=0;je0){Z=te,te=ue,ue=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*ie,Yt=_;e:for(je=0;je0){Z=X,X=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*te,Yt=_;e:for(je=0;je0){Z=X,X=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*ue,tt=b*ie,Yt=_;e:for(je=0;je0){Z=ue,ue=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}for(at=b*U,tt=b*X,Je=b*te,Ze=b*ue,Me=b*ie,we=b*F,he=b*O,De=b*B,Ut=0,Yt=_,je=0;je0)q--;else if(Ce<0){for(at=b*re,tt=b*le,Je=b*q,Yt=_,je=0;je0)for(;;){ae=_+q*b,Ut=0;e:for(je=0;je0){if(--qB){e:for(;;){for(ae=_+le*b,Ut=0,Yt=_,je=0;je1&&m?S(l,m[0],m[1]):S(l)}var f={"uint32,1,0":function(v,T){return function(l){var m=l.data,w=l.offset|0,S=l.shape,M=l.stride,_=M[0]|0,b=S[0]|0,d=M[1]|0,u=S[1]|0,g=d,y=d,R=1;b<=32?v(0,b-1,m,w,_,d,b,u,g,y,R):T(0,b-1,m,w,_,d,b,u,g,y,R)}}};function p(v,T){var l=[T,v].join(","),m=f[l],w=n(v,T),S=c(v,T,w);return m(w,S)}e.exports=p},446:function(e,t,r){var i=r(7640),a={};function o(n){var s=n.order,c=n.dtype,f=[s,c],p=f.join(":"),v=a[p];return v||(a[p]=v=i(s,c)),v(n),n}e.exports=o},9618:function(e,t,r){var i=r(7163),a=typeof Float64Array<"u";function o(T,l){return T[0]-l[0]}function n(){var T=this.stride,l=new Array(T.length),m;for(m=0;m=0&&(d=_|0,b+=g*d,u-=d),new w(this.data,u,g,b)},S.step=function(_){var b=this.shape[0],d=this.stride[0],u=this.offset,g=0,y=Math.ceil;return typeof _=="number"&&(g=_|0,g<0?(u+=d*(b-1),b=y(-b/g)):b=y(b/g),d*=g),new w(this.data,b,d,u)},S.transpose=function(_){_=_===void 0?0:_|0;var b=this.shape,d=this.stride;return new w(this.data,b[_],d[_],this.offset)},S.pick=function(_){var b=[],d=[],u=this.offset;typeof _=="number"&&_>=0?u=u+this.stride[0]*_|0:(b.push(this.shape[0]),d.push(this.stride[0]));var g=l[b.length+1];return g(this.data,b,d,u)},function(_,b,d,u){return new w(_,b[0],d[0],u)}},2:function(T,l,m){function w(M,_,b,d,u,g){this.data=M,this.shape=[_,b],this.stride=[d,u],this.offset=g|0}var S=w.prototype;return S.dtype=T,S.dimension=2,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(S,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),S.set=function(_,b,d){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b,d):this.data[this.offset+this.stride[0]*_+this.stride[1]*b]=d},S.get=function(_,b){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b):this.data[this.offset+this.stride[0]*_+this.stride[1]*b]},S.index=function(_,b){return this.offset+this.stride[0]*_+this.stride[1]*b},S.hi=function(_,b){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof b!="number"||b<0?this.shape[1]:b|0,this.stride[0],this.stride[1],this.offset)},S.lo=function(_,b){var d=this.offset,u=0,g=this.shape[0],y=this.shape[1],R=this.stride[0],I=this.stride[1];return typeof _=="number"&&_>=0&&(u=_|0,d+=R*u,g-=u),typeof b=="number"&&b>=0&&(u=b|0,d+=I*u,y-=u),new w(this.data,g,y,R,I,d)},S.step=function(_,b){var d=this.shape[0],u=this.shape[1],g=this.stride[0],y=this.stride[1],R=this.offset,I=0,z=Math.ceil;return typeof _=="number"&&(I=_|0,I<0?(R+=g*(d-1),d=z(-d/I)):d=z(d/I),g*=I),typeof b=="number"&&(I=b|0,I<0?(R+=y*(u-1),u=z(-u/I)):u=z(u/I),y*=I),new w(this.data,d,u,g,y,R)},S.transpose=function(_,b){_=_===void 0?0:_|0,b=b===void 0?1:b|0;var d=this.shape,u=this.stride;return new w(this.data,d[_],d[b],u[_],u[b],this.offset)},S.pick=function(_,b){var d=[],u=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(d.push(this.shape[0]),u.push(this.stride[0])),typeof b=="number"&&b>=0?g=g+this.stride[1]*b|0:(d.push(this.shape[1]),u.push(this.stride[1]));var y=l[d.length+1];return y(this.data,d,u,g)},function(_,b,d,u){return new w(_,b[0],b[1],d[0],d[1],u)}},3:function(T,l,m){function w(M,_,b,d,u,g,y,R){this.data=M,this.shape=[_,b,d],this.stride=[u,g,y],this.offset=R|0}var S=w.prototype;return S.dtype=T,S.dimension=3,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(S,"order",{get:function(){var _=Math.abs(this.stride[0]),b=Math.abs(this.stride[1]),d=Math.abs(this.stride[2]);return _>b?b>d?[2,1,0]:_>d?[1,2,0]:[1,0,2]:_>d?[2,0,1]:d>b?[0,1,2]:[0,2,1]}}),S.set=function(_,b,d,u){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d,u):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d]=u},S.get=function(_,b,d){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d]},S.index=function(_,b,d){return this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d},S.hi=function(_,b,d){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|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)},S.lo=function(_,b,d){var u=this.offset,g=0,y=this.shape[0],R=this.shape[1],I=this.shape[2],z=this.stride[0],F=this.stride[1],B=this.stride[2];return typeof _=="number"&&_>=0&&(g=_|0,u+=z*g,y-=g),typeof b=="number"&&b>=0&&(g=b|0,u+=F*g,R-=g),typeof d=="number"&&d>=0&&(g=d|0,u+=B*g,I-=g),new w(this.data,y,R,I,z,F,B,u)},S.step=function(_,b,d){var u=this.shape[0],g=this.shape[1],y=this.shape[2],R=this.stride[0],I=this.stride[1],z=this.stride[2],F=this.offset,B=0,O=Math.ceil;return typeof _=="number"&&(B=_|0,B<0?(F+=R*(u-1),u=O(-u/B)):u=O(u/B),R*=B),typeof b=="number"&&(B=b|0,B<0?(F+=I*(g-1),g=O(-g/B)):g=O(g/B),I*=B),typeof d=="number"&&(B=d|0,B<0?(F+=z*(y-1),y=O(-y/B)):y=O(y/B),z*=B),new w(this.data,u,g,y,R,I,z,F)},S.transpose=function(_,b,d){_=_===void 0?0:_|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0;var u=this.shape,g=this.stride;return new w(this.data,u[_],u[b],u[d],g[_],g[b],g[d],this.offset)},S.pick=function(_,b,d){var u=[],g=[],y=this.offset;typeof _=="number"&&_>=0?y=y+this.stride[0]*_|0:(u.push(this.shape[0]),g.push(this.stride[0])),typeof b=="number"&&b>=0?y=y+this.stride[1]*b|0:(u.push(this.shape[1]),g.push(this.stride[1])),typeof d=="number"&&d>=0?y=y+this.stride[2]*d|0:(u.push(this.shape[2]),g.push(this.stride[2]));var R=l[u.length+1];return R(this.data,u,g,y)},function(_,b,d,u){return new w(_,b[0],b[1],b[2],d[0],d[1],d[2],u)}},4:function(T,l,m){function w(M,_,b,d,u,g,y,R,I,z){this.data=M,this.shape=[_,b,d,u],this.stride=[g,y,R,I],this.offset=z|0}var S=w.prototype;return S.dtype=T,S.dimension=4,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(S,"order",{get:m}),S.set=function(_,b,d,u,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]=g},S.get=function(_,b,d,u){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]},S.index=function(_,b,d,u){return this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u},S.hi=function(_,b,d,u){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|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)},S.lo=function(_,b,d,u){var g=this.offset,y=0,R=this.shape[0],I=this.shape[1],z=this.shape[2],F=this.shape[3],B=this.stride[0],O=this.stride[1],P=this.stride[2],N=this.stride[3];return typeof _=="number"&&_>=0&&(y=_|0,g+=B*y,R-=y),typeof b=="number"&&b>=0&&(y=b|0,g+=O*y,I-=y),typeof d=="number"&&d>=0&&(y=d|0,g+=P*y,z-=y),typeof u=="number"&&u>=0&&(y=u|0,g+=N*y,F-=y),new w(this.data,R,I,z,F,B,O,P,N,g)},S.step=function(_,b,d,u){var g=this.shape[0],y=this.shape[1],R=this.shape[2],I=this.shape[3],z=this.stride[0],F=this.stride[1],B=this.stride[2],O=this.stride[3],P=this.offset,N=0,U=Math.ceil;return typeof _=="number"&&(N=_|0,N<0?(P+=z*(g-1),g=U(-g/N)):g=U(g/N),z*=N),typeof b=="number"&&(N=b|0,N<0?(P+=F*(y-1),y=U(-y/N)):y=U(y/N),F*=N),typeof d=="number"&&(N=d|0,N<0?(P+=B*(R-1),R=U(-R/N)):R=U(R/N),B*=N),typeof u=="number"&&(N=u|0,N<0?(P+=O*(I-1),I=U(-I/N)):I=U(I/N),O*=N),new w(this.data,g,y,R,I,z,F,B,O,P)},S.transpose=function(_,b,d,u){_=_===void 0?0:_|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0,u=u===void 0?3:u|0;var g=this.shape,y=this.stride;return new w(this.data,g[_],g[b],g[d],g[u],y[_],y[b],y[d],y[u],this.offset)},S.pick=function(_,b,d,u){var g=[],y=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|0:(g.push(this.shape[0]),y.push(this.stride[0])),typeof b=="number"&&b>=0?R=R+this.stride[1]*b|0:(g.push(this.shape[1]),y.push(this.stride[1])),typeof d=="number"&&d>=0?R=R+this.stride[2]*d|0:(g.push(this.shape[2]),y.push(this.stride[2])),typeof u=="number"&&u>=0?R=R+this.stride[3]*u|0:(g.push(this.shape[3]),y.push(this.stride[3]));var I=l[g.length+1];return I(this.data,g,y,R)},function(_,b,d,u){return new w(_,b[0],b[1],b[2],b[3],d[0],d[1],d[2],d[3],u)}},5:function(l,m,w){function S(_,b,d,u,g,y,R,I,z,F,B,O){this.data=_,this.shape=[b,d,u,g,y],this.stride=[R,I,z,F,B],this.offset=O|0}var M=S.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,g,y,R){return l==="generic"?this.data.set(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y,R):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y]=R},M.get=function(b,d,u,g,y){return l==="generic"?this.data.get(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y]},M.index=function(b,d,u,g,y){return this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y},M.hi=function(b,d,u,g,y){return new S(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 g!="number"||g<0?this.shape[3]:g|0,typeof y!="number"||y<0?this.shape[4]:y|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(b,d,u,g,y){var R=this.offset,I=0,z=this.shape[0],F=this.shape[1],B=this.shape[2],O=this.shape[3],P=this.shape[4],N=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],ue=this.stride[4];return typeof b=="number"&&b>=0&&(I=b|0,R+=N*I,z-=I),typeof d=="number"&&d>=0&&(I=d|0,R+=U*I,F-=I),typeof u=="number"&&u>=0&&(I=u|0,R+=X*I,B-=I),typeof g=="number"&&g>=0&&(I=g|0,R+=te*I,O-=I),typeof y=="number"&&y>=0&&(I=y|0,R+=ue*I,P-=I),new S(this.data,z,F,B,O,P,N,U,X,te,ue,R)},M.step=function(b,d,u,g,y){var R=this.shape[0],I=this.shape[1],z=this.shape[2],F=this.shape[3],B=this.shape[4],O=this.stride[0],P=this.stride[1],N=this.stride[2],U=this.stride[3],X=this.stride[4],te=this.offset,ue=0,ie=Math.ceil;return typeof b=="number"&&(ue=b|0,ue<0?(te+=O*(R-1),R=ie(-R/ue)):R=ie(R/ue),O*=ue),typeof d=="number"&&(ue=d|0,ue<0?(te+=P*(I-1),I=ie(-I/ue)):I=ie(I/ue),P*=ue),typeof u=="number"&&(ue=u|0,ue<0?(te+=N*(z-1),z=ie(-z/ue)):z=ie(z/ue),N*=ue),typeof g=="number"&&(ue=g|0,ue<0?(te+=U*(F-1),F=ie(-F/ue)):F=ie(F/ue),U*=ue),typeof y=="number"&&(ue=y|0,ue<0?(te+=X*(B-1),B=ie(-B/ue)):B=ie(B/ue),X*=ue),new S(this.data,R,I,z,F,B,O,P,N,U,X,te)},M.transpose=function(b,d,u,g,y){b=b===void 0?0:b|0,d=d===void 0?1:d|0,u=u===void 0?2:u|0,g=g===void 0?3:g|0,y=y===void 0?4:y|0;var R=this.shape,I=this.stride;return new S(this.data,R[b],R[d],R[u],R[g],R[y],I[b],I[d],I[u],I[g],I[y],this.offset)},M.pick=function(b,d,u,g,y){var R=[],I=[],z=this.offset;typeof b=="number"&&b>=0?z=z+this.stride[0]*b|0:(R.push(this.shape[0]),I.push(this.stride[0])),typeof d=="number"&&d>=0?z=z+this.stride[1]*d|0:(R.push(this.shape[1]),I.push(this.stride[1])),typeof u=="number"&&u>=0?z=z+this.stride[2]*u|0:(R.push(this.shape[2]),I.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(R.push(this.shape[3]),I.push(this.stride[3])),typeof y=="number"&&y>=0?z=z+this.stride[4]*y|0:(R.push(this.shape[4]),I.push(this.stride[4]));var F=m[R.length+1];return F(this.data,R,I,z)},function(b,d,u,g){return new S(b,d[0],d[1],d[2],d[3],d[4],u[0],u[1],u[2],u[3],u[4],g)}}};function c(T,l){var m=l===-1?"T":String(l),w=s[m];return l===-1?w(T):l===0?w(T,p[T][0]):w(T,p[T],n)}function f(T){if(i(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 p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(T,l,m,w){if(T===void 0){var u=p.array[0];return u([])}else typeof T=="number"&&(T=[T]);l===void 0&&(l=[T.length]);var S=l.length;if(m===void 0){m=new Array(S);for(var M=S-1,_=1;M>=0;--M)m[M]=_,_*=l[M]}if(w===void 0){w=0;for(var M=0;M>>0;e.exports=n;function n(s,c){if(isNaN(s)||isNaN(c))return NaN;if(s===c)return s;if(s===0)return c<0?-a:a;var f=i.hi(s),p=i.lo(s);return c>s==s>0?p===o?(f+=1,p=0):p+=1:p===0?(p=o,f-=1):p-=1,i.pack(p,f)}},8406:function(e,t){var r=1e-6,i=1e-6;t.vertexNormals=function(a,o,n){for(var s=o.length,c=new Array(s),f=n===void 0?r:n,p=0;pf)for(var R=c[l],I=1/Math.sqrt(d*g),y=0;y<3;++y){var z=(y+1)%3,F=(y+2)%3;R[y]+=I*(u[z]*b[F]-u[F]*b[z])}}for(var p=0;pf)for(var I=1/Math.sqrt(B),y=0;y<3;++y)R[y]*=I;else for(var y=0;y<3;++y)R[y]=0}return c},t.faceNormals=function(a,o,n){for(var s=a.length,c=new Array(s),f=n===void 0?i:n,p=0;pf?M=1/Math.sqrt(M):M=0;for(var l=0;l<3;++l)S[l]*=M;c[p]=S}return c}},4081:function(e){e.exports=t;function t(r,i,a,o,n,s,c,f,p,v){var T=i+s+v;if(l>0){var l=Math.sqrt(T+1);r[0]=.5*(c-p)/l,r[1]=.5*(f-o)/l,r[2]=.5*(a-s)/l,r[3]=.5*l}else{var m=Math.max(i,s,v),l=Math.sqrt(2*m-T+1);i>=m?(r[0]=.5*l,r[1]=.5*(n+a)/l,r[2]=.5*(f+o)/l,r[3]=.5*(c-p)/l):s>=m?(r[0]=.5*(a+n)/l,r[1]=.5*l,r[2]=.5*(p+c)/l,r[3]=.5*(f-o)/l):(r[0]=.5*(o+f)/l,r[1]=.5*(c+p)/l,r[2]=.5*l,r[3]=.5*(a-n)/l)}return r}},9977:function(e,t,r){e.exports=l;var i=r(9215),a=r(6582),o=r(7399),n=r(7608),s=r(4081);function c(m,w,S){return Math.sqrt(Math.pow(m,2)+Math.pow(w,2)+Math.pow(S,2))}function f(m,w,S,M){return Math.sqrt(Math.pow(m,2)+Math.pow(w,2)+Math.pow(S,2)+Math.pow(M,2))}function p(m,w){var S=w[0],M=w[1],_=w[2],b=w[3],d=f(S,M,_,b);d>1e-6?(m[0]=S/d,m[1]=M/d,m[2]=_/d,m[3]=b/d):(m[0]=m[1]=m[2]=0,m[3]=1)}function v(m,w,S){this.radius=i([S]),this.center=i(w),this.rotation=i(m),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=v.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(m){this.radius.curve(m),this.center.curve(m),this.rotation.curve(m);var w=this.computedRotation;p(w,w);var S=this.computedMatrix;o(S,w);var M=this.computedCenter,_=this.computedEye,b=this.computedUp,d=Math.exp(this.computedRadius[0]);_[0]=M[0]+d*S[2],_[1]=M[1]+d*S[6],_[2]=M[2]+d*S[10],b[0]=S[1],b[1]=S[5],b[2]=S[9];for(var u=0;u<3;++u){for(var g=0,y=0;y<3;++y)g+=S[u+4*y]*_[y];S[12+u]=-g}},T.getMatrix=function(m,w){this.recalcMatrix(m);var S=this.computedMatrix;if(w){for(var M=0;M<16;++M)w[M]=S[M];return w}return S},T.idle=function(m){this.center.idle(m),this.radius.idle(m),this.rotation.idle(m)},T.flush=function(m){this.center.flush(m),this.radius.flush(m),this.rotation.flush(m)},T.pan=function(m,w,S,M){w=w||0,S=S||0,M=M||0,this.recalcMatrix(m);var _=this.computedMatrix,b=_[1],d=_[5],u=_[9],g=c(b,d,u);b/=g,d/=g,u/=g;var y=_[0],R=_[4],I=_[8],z=y*b+R*d+I*u;y-=b*z,R-=d*z,I-=u*z;var F=c(y,R,I);y/=F,R/=F,I/=F,_[2],_[6],_[10];var B=y*w+b*S,O=R*w+d*S,P=I*w+u*S;this.center.move(m,B,O,P);var N=Math.exp(this.computedRadius[0]);N=Math.max(1e-4,N+M),this.radius.set(m,Math.log(N))},T.rotate=function(m,w,S,M){this.recalcMatrix(m),w=w||0,S=S||0;var _=this.computedMatrix,b=_[0],d=_[4],u=_[8],g=_[1],y=_[5],R=_[9],I=_[2],z=_[6],F=_[10],B=w*b+S*g,O=w*d+S*y,P=w*u+S*R,N=-(z*P-F*O),U=-(F*B-I*P),X=-(I*O-z*B),te=Math.sqrt(Math.max(0,1-Math.pow(N,2)-Math.pow(U,2)-Math.pow(X,2))),ue=f(N,U,X,te);ue>1e-6?(N/=ue,U/=ue,X/=ue,te/=ue):(N=U=X=0,te=1);var ie=this.computedRotation,le=ie[0],q=ie[1],J=ie[2],ee=ie[3],Z=le*te+ee*N+q*X-J*U,se=q*te+ee*U+J*N-le*X,Q=J*te+ee*X+le*U-q*N,V=ee*te-le*N-q*U-J*X;if(M){N=I,U=z,X=F;var re=Math.sin(M)/c(N,U,X);N*=re,U*=re,X*=re,te=Math.cos(w),Z=Z*te+V*N+se*X-Q*U,se=se*te+V*U+Q*N-Z*X,Q=Q*te+V*X+Z*U-se*N,V=V*te-Z*N-se*U-Q*X}var ae=f(Z,se,Q,V);ae>1e-6?(Z/=ae,se/=ae,Q/=ae,V/=ae):(Z=se=Q=0,V=1),this.rotation.set(m,Z,se,Q,V)},T.lookAt=function(m,w,S,M){this.recalcMatrix(m),S=S||this.computedCenter,w=w||this.computedEye,M=M||this.computedUp;var _=this.computedMatrix;a(_,w,S,M);var b=this.computedRotation;s(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(b,b),this.rotation.set(m,b[0],b[1],b[2],b[3]);for(var d=0,u=0;u<3;++u)d+=Math.pow(S[u]-w[u],2);this.radius.set(m,.5*Math.log(Math.max(d,1e-6))),this.center.set(m,S[0],S[1],S[2])},T.translate=function(m,w,S,M){this.center.move(m,w||0,S||0,M||0)},T.setMatrix=function(m,w){var S=this.computedRotation;s(S,w[0],w[1],w[2],w[4],w[5],w[6],w[8],w[9],w[10]),p(S,S),this.rotation.set(m,S[0],S[1],S[2],S[3]);var M=this.computedMatrix;n(M,w);var _=M[15];if(Math.abs(_)>1e-6){var b=M[12]/_,d=M[13]/_,u=M[14]/_;this.recalcMatrix(m);var g=Math.exp(this.computedRadius[0]);this.center.set(m,b-M[2]*g,d-M[6]*g,u-M[10]*g),this.radius.idle(m)}else this.center.idle(m),this.radius.idle(m)},T.setDistance=function(m,w){w>0&&this.radius.set(m,Math.log(w))},T.setDistanceLimits=function(m,w){m>0?m=Math.log(m):m=-1/0,w>0?w=Math.log(w):w=1/0,w=Math.max(w,m),this.radius.bounds[0][0]=m,this.radius.bounds[1][0]=w},T.getDistanceLimits=function(m){var w=this.radius.bounds;return m?(m[0]=Math.exp(w[0][0]),m[1]=Math.exp(w[1][0]),m):[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(m){var w=this.lastT(),S=m.center;S&&this.center.set(w,S[0],S[1],S[2]);var M=m.rotation;M&&this.rotation.set(w,M[0],M[1],M[2],M[3]);var _=m.distance;_&&_>0&&this.radius.set(w,Math.log(_)),this.setDistanceLimits(m.zoomMin,m.zoomMax)};function l(m){m=m||{};var w=m.center||[0,0,0],S=m.rotation||[0,0,0,1],M=m.radius||1;w=[].slice.call(w,0,3),S=[].slice.call(S,0,4),p(S,S);var _=new v(S,w,Math.log(M));return _.setDistanceLimits(m.zoomMin,m.zoomMax),("eye"in m||"up"in m)&&_.lookAt(0,m.eye,m.center,m.up),_}},1371:function(e,t,r){var i=r(3233);e.exports=function(o,n,s){return s=typeof s<"u"?s+"":" ",i(s,n)+o}},3202:function(e){e.exports=function(r,i){i||(i=[0,""]),r=String(r);var a=parseFloat(r,10);return i[0]=a,i[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i}},3088:function(e,t,r){e.exports=a;var i=r(3140);function a(o,n){for(var s=n.length|0,c=o.length,f=[new Array(s),new Array(s)],p=0;p0){y=f[z][u][0],I=z;break}R=y[I^1];for(var F=0;F<2;++F)for(var B=f[F][u],O=0;O0&&(y=P,R=N,I=F)}return g||y&&l(y,I),R}function w(d,u){var g=f[u][d][0],y=[d];l(g,u);for(var R=g[u^1];;){for(;R!==d;)y.push(R),R=m(y[y.length-2],R,!1);if(f[0][d].length+f[1][d].length===0)break;var I=y[y.length-1],z=d,F=y[1],B=m(I,z,!0);if(i(n[I],n[z],n[F],n[B])<0)break;y.push(d),R=m(I,z)}return y}function S(d,u){return u[1]===u[u.length-1]}for(var p=0;p0;){f[0][p].length;var b=w(p,M);S(_,b)?_.push.apply(_,b):(_.length>0&&T.push(_),_=b)}_.length>0&&T.push(_)}return T}},5609:function(e,t,r){e.exports=a;var i=r(3134);function a(o,n){for(var s=i(o,n.length),c=new Array(n.length),f=new Array(n.length),p=[],v=0;v0;){var l=p.pop();c[l]=!1;for(var m=s[l],v=0;v0}_=_.filter(b);for(var d=_.length,u=new Array(d),g=new Array(d),M=0;M0;){var re=se.pop(),ae=te[re];c(ae,function(Ce,je){return Ce-je});var fe=ae.length,xe=Q[re],Ae;if(xe===0){var B=_[re];Ae=[B]}for(var M=0;M=0)&&(Q[Pe]=xe^1,se.push(Pe),xe===0)){var B=_[Pe];Z(B)||(B.reverse(),Ae.push(B))}}xe===0&&V.push(Ae)}return V}},5085:function(e,t,r){e.exports=m;var i=r(3250)[3],a=r(4209),o=r(3352),n=r(2478);function s(){return!0}function c(w){return function(S,M){var _=w[S];return _?!!_.queryPoint(M,s):!1}}function f(w){for(var S={},M=0;M0&&S[_]===M[0])b=w[_-1];else return 1;for(var d=1;b;){var u=b.key,g=i(M,u[0],u[1]);if(u[0][0]0)d=-1,b=b.right;else return 0;else if(g>0)b=b.left;else if(g<0)d=1,b=b.right;else return 0}return d}}function v(w){return 1}function T(w){return function(M){return w(M[0],M[1])?0:1}}function l(w,S){return function(_){return w(_[0],_[1])?0:S(_)}}function m(w){for(var S=w.length,M=[],_=[],b=0;b=v?(u=1,y=v+2*m+S):(u=-m/v,y=m*u+S)):(u=0,w>=0?(g=0,y=S):-w>=l?(g=1,y=l+2*w+S):(g=-w/l,y=w*g+S));else if(g<0)g=0,m>=0?(u=0,y=S):-m>=v?(u=1,y=v+2*m+S):(u=-m/v,y=m*u+S);else{var R=1/d;u*=R,g*=R,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S}else{var I,z,F,B;u<0?(I=T+m,z=l+w,z>I?(F=z-I,B=v-2*T+l,F>=B?(u=1,g=0,y=v+2*m+S):(u=F/B,g=1-u,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)):(u=0,z<=0?(g=1,y=l+2*w+S):w>=0?(g=0,y=S):(g=-w/l,y=w*g+S))):g<0?(I=T+w,z=v+m,z>I?(F=z-I,B=v-2*T+l,F>=B?(g=1,u=0,y=l+2*w+S):(g=F/B,u=1-g,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)):(g=0,z<=0?(u=1,y=v+2*m+S):m>=0?(u=0,y=S):(u=-m/v,y=m*u+S))):(F=l+w-T-m,F<=0?(u=0,g=1,y=l+2*w+S):(B=v-2*T+l,F>=B?(u=1,g=0,y=v+2*m+S):(u=F/B,g=1-u,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)))}for(var O=1-u-g,p=0;p0){var l=s[f-1];if(i(v,l)===0&&o(l)!==T){f-=1;continue}}s[f++]=v}}return s.length=f,s}},3233:function(e){var t="",r;e.exports=i;function i(a,o){if(typeof a!="string")throw new TypeError("expected a string");if(o===1)return a;if(o===2)return a+a;var n=a.length*o;if(r!==a||typeof r>"u")r=a,t="";else if(t.length>=n)return t.substr(0,n);for(;n>t.length&&o>1;)o&1&&(t+=a),o>>=1,a+=a;return t+=a,t=t.substr(0,n),t}},3025:function(e,t,r){e.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(e){e.exports=t;function t(r){for(var i=r.length,a=r[r.length-1],o=i,n=i-2;n>=0;--n){var s=a,c=r[n];a=s+c;var f=a-s,p=c-f;p&&(r[--o]=a,a=p)}for(var v=0,n=o;n0){if(z<=0)return F;B=I+z}else if(I<0){if(z>=0)return F;B=-(I+z)}else return F;var O=f*B;return F>=O||F<=-O?F:w(g,y,R)},function(g,y,R,I){var z=g[0]-I[0],F=y[0]-I[0],B=R[0]-I[0],O=g[1]-I[1],P=y[1]-I[1],N=R[1]-I[1],U=g[2]-I[2],X=y[2]-I[2],te=R[2]-I[2],ue=F*N,ie=B*P,le=B*O,q=z*N,J=z*P,ee=F*O,Z=U*(ue-ie)+X*(le-q)+te*(J-ee),se=(Math.abs(ue)+Math.abs(ie))*Math.abs(U)+(Math.abs(le)+Math.abs(q))*Math.abs(X)+(Math.abs(J)+Math.abs(ee))*Math.abs(te),Q=p*se;return Z>Q||-Z>Q?Z:S(g,y,R,I)}];function _(u){var g=M[u.length];return g||(g=M[u.length]=m(u.length)),g.apply(void 0,u)}function b(u,g,y,R,I,z,F){return function(O,P,N,U,X){switch(arguments.length){case 0:case 1:return 0;case 2:return R(O,P);case 3:return I(O,P,N);case 4:return z(O,P,N,U);case 5:return F(O,P,N,U,X)}for(var te=new Array(arguments.length),ue=0;ue0&&v>0||p<0&&v<0)return!1;var T=i(c,n,s),l=i(f,n,s);return T>0&&l>0||T<0&&l<0?!1:p===0&&v===0&&T===0&&l===0?a(n,s,c,f):!0}},8545:function(e){e.exports=r;function t(i,a){var o=i+a,n=o-i,s=o-n,c=a-n,f=i-s,p=f+c;return p?[p,o]:[o]}function r(i,a){var o=i.length|0,n=a.length|0;if(o===1&&n===1)return t(i[0],-a[0]);var s=o+n,c=new Array(s),f=0,p=0,v=0,T=Math.abs,l=i[p],m=T(l),w=-a[v],S=T(w),M,_;m=n?(M=l,p+=1,p=n?(M=l,p+=1,p"u"&&(M=s(m));var _=m.length;if(_===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var b=c(w,+S),d=f(m,M),u=p(d,w,b,+S),g=v(d,w.length|0),y=n(M)(m,d.data,g,b),R=T(d),I=[].slice.call(u.data,0,u.shape[0]);return a.free(b),a.free(d.data),a.free(u.data),a.free(g),{cells:y,vertexIds:R,vertexWeights:I}}},1570:function(e){e.exports=r;var t=[function(){function a(o,n,s,c){for(var f=o.length,p=[],v=0;v>1,w=s[2*m+1];if(w===v)return m;v>1,w=s[2*m+1];if(w===v)return m;v>1,w=s[2*m+1];if(w===v)return m;v0)-(o<0)},t.abs=function(o){var n=o>>r-1;return(o^n)-n},t.min=function(o,n){return n^(o^n)&-(o65535)<<4,o>>>=n,s=(o>255)<<3,o>>>=s,n|=s,s=(o>15)<<2,o>>>=s,n|=s,s=(o>3)<<1,o>>>=s,n|=s,n|o>>1},t.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},t.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function i(o){var n=32;return o&=-o,o&&n--,o&65535&&(n-=16),o&16711935&&(n-=8),o&252645135&&(n-=4),o&858993459&&(n-=2),o&1431655765&&(n-=1),n}t.countTrailingZeros=i,t.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},t.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},t.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var a=new Array(256);(function(o){for(var n=0;n<256;++n){var s=n,c=n,f=7;for(s>>>=1;s;s>>>=1)c<<=1,c|=s&1,--f;o[n]=c<>>8&255]<<16|a[o>>>16&255]<<8|a[o>>>24&255]},t.interleave2=function(o,n){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o|n<<1},t.deinterleave2=function(o,n){return o=o>>>n&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},t.interleave3=function(o,n,s){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,o|=n<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,o|s<<2},t.deinterleave3=function(o,n){return o=o>>>n&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},t.nextCombination=function(o){var n=o|o-1;return n+1|(~n&-~n)-1>>>i(o)+1}},2014:function(e,t,r){"use restrict";var i=r(3105),a=r(4623);function o(u){for(var g=0,y=Math.max,R=0,I=u.length;R>1,F=c(u[z],g);F<=0?(F===0&&(I=z),y=z+1):F>0&&(R=z-1)}return I}t.findCell=T;function l(u,g){for(var y=new Array(u.length),R=0,I=y.length;R=u.length||c(u[te],z)!==0););}return y}t.incidence=l;function m(u,g){if(!g)return l(v(S(u,0)),u);for(var y=new Array(g),R=0;R>>P&1&&O.push(I[P]);g.push(O)}return p(g)}t.explode=w;function S(u,g){if(g<0)return[];for(var y=[],R=(1<>1:(le>>1)-1}function R(le){for(var q=g(le);;){var J=q,ee=2*le+1,Z=2*(le+1),se=le;if(ee0;){var J=y(le);if(J>=0){var ee=g(J);if(q0){var le=O[0];return u(0,U-1),U-=1,R(0),le}return-1}function F(le,q){var J=O[le];return m[J]===q?le:(m[J]=-1/0,I(le),z(),m[J]=q,U+=1,I(U-1))}function B(le){if(!w[le]){w[le]=!0;var q=T[le],J=l[le];T[J]>=0&&(T[J]=q),l[q]>=0&&(l[q]=J),P[q]>=0&&F(P[q],d(q)),P[J]>=0&&F(P[J],d(J))}}for(var O=[],P=new Array(p),S=0;S>1;S>=0;--S)R(S);for(;;){var X=z();if(X<0||m[X]>f)break;B(X)}for(var te=[],S=0;S=0&&J>=0&&q!==J){var ee=P[q],Z=P[J];ee!==Z&&ie.push([ee,Z])}}),a.unique(a.normalize(ie)),{positions:te,edges:ie}}},1303:function(e,t,r){e.exports=o;var i=r(3250);function a(n,s){var c,f;if(s[0][0]s[1][0])c=s[1],f=s[0];else{var p=Math.min(n[0][1],n[1][1]),v=Math.max(n[0][1],n[1][1]),T=Math.min(s[0][1],s[1][1]),l=Math.max(s[0][1],s[1][1]);return vl?p-l:v-l}var m,w;n[0][1]s[1][0])c=s[1],f=s[0];else return a(s,n);var p,v;if(n[0][0]n[1][0])p=n[1],v=n[0];else return-a(n,s);var T=i(c,f,v),l=i(c,f,p);if(T<0){if(l<=0)return T}else if(T>0){if(l>=0)return T}else if(l)return l;if(T=i(v,p,f),l=i(v,p,c),T<0){if(l<=0)return T}else if(T>0){if(l>=0)return T}else if(l)return l;return f[0]-v[0]}},4209:function(e,t,r){e.exports=l;var i=r(2478),a=r(3840),o=r(3250),n=r(1303);function s(m,w,S){this.slabs=m,this.coordinates=w,this.horizontal=S}var c=s.prototype;function f(m,w){return m.y-w}function p(m,w){for(var S=null;m;){var M=m.key,_,b;M[0][0]0)if(w[0]!==M[1][0])S=m,m=m.right;else{var u=p(m.right,w);if(u)return u;m=m.left}else{if(w[0]!==M[1][0])return m;var u=p(m.right,w);if(u)return u;m=m.left}}return S}c.castUp=function(m){var w=i.le(this.coordinates,m[0]);if(w<0)return-1;this.slabs[w];var S=p(this.slabs[w],m),M=-1;if(S&&(M=S.value),this.coordinates[w]===m[0]){var _=null;if(S&&(_=S.key),w>0){var b=p(this.slabs[w-1],m);b&&(_?n(b.key,_)>0&&(_=b.key,M=b.value):(M=b.value,_=b.key))}var d=this.horizontal[w];if(d.length>0){var u=i.ge(d,m[1],f);if(u=d.length)return M;g=d[u]}}if(g.start)if(_){var y=o(_[0],_[1],[m[0],g.y]);_[0][0]>_[1][0]&&(y=-y),y>0&&(M=g.index)}else M=g.index;else g.y!==m[1]&&(M=g.index)}}}return M};function v(m,w,S,M){this.y=m,this.index=w,this.start=S,this.closed=M}function T(m,w,S,M){this.x=m,this.segment=w,this.create=S,this.index=M}function l(m){for(var w=m.length,S=2*w,M=new Array(S),_=0;_1&&(w=1);for(var S=1-w,M=p.length,_=new Array(M),b=0;b0||m>0&&_<0){var b=n(w,_,S,m);T.push(b),l.push(b.slice())}_<0?l.push(S.slice()):_>0?T.push(S.slice()):(T.push(S.slice()),l.push(S.slice())),m=_}return{positive:T,negative:l}}function c(p,v){for(var T=[],l=o(p[p.length-1],v),m=p[p.length-1],w=p[0],S=0;S0||l>0&&M<0)&&T.push(n(m,M,w,l)),M>=0&&T.push(w.slice()),l=M}return T}function f(p,v){for(var T=[],l=o(p[p.length-1],v),m=p[p.length-1],w=p[0],S=0;S0||l>0&&M<0)&&T.push(n(m,M,w,l)),M<=0&&T.push(w.slice()),l=M}return T}},3387:function(e,t,r){var i;(function(){var a={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(p){return s(f(p),arguments)}function n(p,v){return o.apply(null,[p].concat(v||[]))}function s(p,v){var T=1,l=p.length,m,w="",S,M,_,b,d,u,g,y;for(S=0;S=0),_.type){case"b":m=parseInt(m,10).toString(2);break;case"c":m=String.fromCharCode(parseInt(m,10));break;case"d":case"i":m=parseInt(m,10);break;case"j":m=JSON.stringify(m,null,_.width?parseInt(_.width):0);break;case"e":m=_.precision?parseFloat(m).toExponential(_.precision):parseFloat(m).toExponential();break;case"f":m=_.precision?parseFloat(m).toFixed(_.precision):parseFloat(m);break;case"g":m=_.precision?String(Number(m.toPrecision(_.precision))):parseFloat(m);break;case"o":m=(parseInt(m,10)>>>0).toString(8);break;case"s":m=String(m),m=_.precision?m.substring(0,_.precision):m;break;case"t":m=String(!!m),m=_.precision?m.substring(0,_.precision):m;break;case"T":m=Object.prototype.toString.call(m).slice(8,-1).toLowerCase(),m=_.precision?m.substring(0,_.precision):m;break;case"u":m=parseInt(m,10)>>>0;break;case"v":m=m.valueOf(),m=_.precision?m.substring(0,_.precision):m;break;case"x":m=(parseInt(m,10)>>>0).toString(16);break;case"X":m=(parseInt(m,10)>>>0).toString(16).toUpperCase();break}a.json.test(_.type)?w+=m:(a.number.test(_.type)&&(!g||_.sign)?(y=g?"+":"-",m=m.toString().replace(a.sign,"")):y="",d=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",u=_.width-(y+m).length,b=_.width&&u>0?d.repeat(u):"",w+=_.align?y+m+b:d==="0"?y+b+m:b+y+m)}return w}var c=Object.create(null);function f(p){if(c[p])return c[p];for(var v=p,T,l=[],m=0;v;){if((T=a.text.exec(v))!==null)l.push(T[0]);else if((T=a.modulo.exec(v))!==null)l.push("%");else if((T=a.placeholder.exec(v))!==null){if(T[2]){m|=1;var w=[],S=T[2],M=[];if((M=a.key.exec(S))!==null)for(w.push(M[1]);(S=S.substring(M[0].length))!=="";)if((M=a.key_access.exec(S))!==null)w.push(M[1]);else if((M=a.index_access.exec(S))!==null)w.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=w}else m|=2;if(m===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");l.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");v=v.substring(T[0].length)}return c[p]=l}t.sprintf=o,t.vsprintf=n,typeof window<"u"&&(window.sprintf=o,window.vsprintf=n,i=(function(){return{sprintf:o,vsprintf:n}}).call(t,r,t,e),i!==void 0&&(e.exports=i))})()},3711:function(e,t,r){e.exports=f;var i=r(2640),a=r(781),o={"2d":function(p,v,T){var l=p({order:v,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(w,S,M,_){return w>_|0},vertex:function(w,S,M,_,b,d,u,g,y,R,I,z,F){var B=(u<<0)+(g<<1)+(y<<2)+(R<<3)|0;if(!(B===0||B===15))switch(B){case 0:I.push([w-.5,S-.5]);break;case 1:I.push([w-.25-.25*(_+M-2*F)/(M-_),S-.25-.25*(b+M-2*F)/(M-b)]);break;case 2:I.push([w-.75-.25*(-_-M+2*F)/(_-M),S-.25-.25*(d+_-2*F)/(_-d)]);break;case 3:I.push([w-.5,S-.5-.5*(b+M+d+_-4*F)/(M-b+_-d)]);break;case 4:I.push([w-.25-.25*(d+b-2*F)/(b-d),S-.75-.25*(-b-M+2*F)/(b-M)]);break;case 5:I.push([w-.5-.5*(_+M+d+b-4*F)/(M-_+b-d),S-.5]);break;case 6:I.push([w-.5-.25*(-_-M+d+b)/(_-M+b-d),S-.5-.25*(-b-M+d+_)/(b-M+_-d)]);break;case 7:I.push([w-.75-.25*(d+b-2*F)/(b-d),S-.75-.25*(d+_-2*F)/(_-d)]);break;case 8:I.push([w-.75-.25*(-d-b+2*F)/(d-b),S-.75-.25*(-d-_+2*F)/(d-_)]);break;case 9:I.push([w-.5-.25*(_+M+-d-b)/(M-_+d-b),S-.5-.25*(b+M+-d-_)/(M-b+d-_)]);break;case 10:I.push([w-.5-.5*(-_-M+-d-b+4*F)/(_-M+d-b),S-.5]);break;case 11:I.push([w-.25-.25*(-d-b+2*F)/(d-b),S-.75-.25*(b+M-2*F)/(M-b)]);break;case 12:I.push([w-.5,S-.5-.5*(-b-M+-d-_+4*F)/(b-M+d-_)]);break;case 13:I.push([w-.75-.25*(_+M-2*F)/(M-_),S-.25-.25*(-d-_+2*F)/(d-_)]);break;case 14:I.push([w-.25-.25*(-_-M+2*F)/(_-M),S-.25-.25*(-b-M+2*F)/(b-M)]);break;case 15:I.push([w-.5,S-.5]);break}},cell:function(w,S,M,_,b,d,u,g,y){b?g.push([w,S]):g.push([S,w])}});return function(m,w){var S=[],M=[];return l(m,S,M,w),{positions:S,cells:M}}}};function n(p,v){var T=p.length+"d",l=o[T];if(l)return l(i,p,v)}function s(p,v){for(var T=a(p,v),l=T.length,m=new Array(l),w=new Array(l),S=0;SMath.max(_,b)?d[2]=1:_>Math.max(M,b)?d[0]=1:d[1]=1;for(var u=0,g=0,y=0;y<3;++y)u+=S[y]*S[y],g+=d[y]*S[y];for(var y=0;y<3;++y)d[y]-=g/u*S[y];return s(d,d),d}function T(S,M,_,b,d,u,g,y){this.center=i(_),this.up=i(b),this.right=i(d),this.radius=i([u]),this.angle=i([g,y]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(S,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var l=T.prototype;l.setDistanceLimits=function(S,M){S>0?S=Math.log(S):S=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,S),this.radius.bounds[0][0]=S,this.radius.bounds[1][0]=M},l.getDistanceLimits=function(S){var M=this.radius.bounds[0];return S?(S[0]=Math.exp(M[0][0]),S[1]=Math.exp(M[1][0]),S):[Math.exp(M[0][0]),Math.exp(M[1][0])]},l.recalcMatrix=function(S){this.center.curve(S),this.up.curve(S),this.right.curve(S),this.radius.curve(S),this.angle.curve(S);for(var M=this.computedUp,_=this.computedRight,b=0,d=0,u=0;u<3;++u)d+=M[u]*_[u],b+=M[u]*M[u];for(var g=Math.sqrt(b),y=0,u=0;u<3;++u)_[u]-=M[u]*d/b,y+=_[u]*_[u],M[u]/=g;for(var R=Math.sqrt(y),u=0;u<3;++u)_[u]/=R;var I=this.computedToward;n(I,M,_),s(I,I);for(var z=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],B=this.computedAngle[1],O=Math.cos(F),P=Math.sin(F),N=Math.cos(B),U=Math.sin(B),X=this.computedCenter,te=O*N,ue=P*N,ie=U,le=-O*U,q=-P*U,J=N,ee=this.computedEye,Z=this.computedMatrix,u=0;u<3;++u){var se=te*_[u]+ue*I[u]+ie*M[u];Z[4*u+1]=le*_[u]+q*I[u]+J*M[u],Z[4*u+2]=se,Z[4*u+3]=0}var Q=Z[1],V=Z[5],re=Z[9],ae=Z[2],fe=Z[6],xe=Z[10],Ae=V*xe-re*fe,Pe=re*ae-Q*xe,Ce=Q*fe-V*ae,je=f(Ae,Pe,Ce);Ae/=je,Pe/=je,Ce/=je,Z[0]=Ae,Z[4]=Pe,Z[8]=Ce;for(var u=0;u<3;++u)ee[u]=X[u]+Z[2+4*u]*z;for(var u=0;u<3;++u){for(var y=0,at=0;at<3;++at)y+=Z[u+4*at]*ee[at];Z[12+u]=-y}Z[15]=1},l.getMatrix=function(S,M){this.recalcMatrix(S);var _=this.computedMatrix;if(M){for(var b=0;b<16;++b)M[b]=_[b];return M}return _};var m=[0,0,0];l.rotate=function(S,M,_,b){if(this.angle.move(S,M,_),b){this.recalcMatrix(S);var d=this.computedMatrix;m[0]=d[2],m[1]=d[6],m[2]=d[10];for(var u=this.computedUp,g=this.computedRight,y=this.computedToward,R=0;R<3;++R)d[4*R]=u[R],d[4*R+1]=g[R],d[4*R+2]=y[R];o(d,d,b,m);for(var R=0;R<3;++R)u[R]=d[4*R],g[R]=d[4*R+1];this.up.set(S,u[0],u[1],u[2]),this.right.set(S,g[0],g[1],g[2])}},l.pan=function(S,M,_,b){M=M||0,_=_||0,b=b||0,this.recalcMatrix(S);var d=this.computedMatrix;Math.exp(this.computedRadius[0]);var u=d[1],g=d[5],y=d[9],R=f(u,g,y);u/=R,g/=R,y/=R;var I=d[0],z=d[4],F=d[8],B=I*u+z*g+F*y;I-=u*B,z-=g*B,F-=y*B;var O=f(I,z,F);I/=O,z/=O,F/=O;var P=I*M+u*_,N=z*M+g*_,U=F*M+y*_;this.center.move(S,P,N,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+b),this.radius.set(S,Math.log(X))},l.translate=function(S,M,_,b){this.center.move(S,M||0,_||0,b||0)},l.setMatrix=function(S,M,_,b){var d=1;typeof _=="number"&&(d=_|0),(d<0||d>3)&&(d=1);var u=(d+2)%3;M||(this.recalcMatrix(S),M=this.computedMatrix);var g=M[d],y=M[d+4],R=M[d+8];if(b){var z=Math.abs(g),F=Math.abs(y),B=Math.abs(R),O=Math.max(z,F,B);z===O?(g=g<0?-1:1,y=R=0):B===O?(R=R<0?-1:1,g=y=0):(y=y<0?-1:1,g=R=0)}else{var I=f(g,y,R);g/=I,y/=I,R/=I}var P=M[u],N=M[u+4],U=M[u+8],X=P*g+N*y+U*R;P-=g*X,N-=y*X,U-=R*X;var te=f(P,N,U);P/=te,N/=te,U/=te;var ue=y*U-R*N,ie=R*P-g*U,le=g*N-y*P,q=f(ue,ie,le);ue/=q,ie/=q,le/=q,this.center.jump(S,Me,we,he),this.radius.idle(S),this.up.jump(S,g,y,R),this.right.jump(S,P,N,U);var J,ee;if(d===2){var Z=M[1],se=M[5],Q=M[9],V=Z*P+se*N+Q*U,re=Z*ue+se*ie+Q*le;Ae<0?J=-Math.PI/2:J=Math.PI/2,ee=Math.atan2(re,V)}else{var ae=M[2],fe=M[6],xe=M[10],Ae=ae*g+fe*y+xe*R,Pe=ae*P+fe*N+xe*U,Ce=ae*ue+fe*ie+xe*le;J=Math.asin(p(Ae)),ee=Math.atan2(Ce,Pe)}this.angle.jump(S,ee,J),this.recalcMatrix(S);var je=M[2],at=M[6],tt=M[10],Je=this.computedMatrix;a(Je,M);var Ze=Je[15],Me=Je[12]/Ze,we=Je[13]/Ze,he=Je[14]/Ze,De=Math.exp(this.computedRadius[0]);this.center.jump(S,Me-je*De,we-at*De,he-tt*De)},l.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},l.idle=function(S){this.center.idle(S),this.up.idle(S),this.right.idle(S),this.radius.idle(S),this.angle.idle(S)},l.flush=function(S){this.center.flush(S),this.up.flush(S),this.right.flush(S),this.radius.flush(S),this.angle.flush(S)},l.setDistance=function(S,M){M>0&&this.radius.set(S,Math.log(M))},l.lookAt=function(S,M,_,b){this.recalcMatrix(S),M=M||this.computedEye,_=_||this.computedCenter,b=b||this.computedUp;var d=b[0],u=b[1],g=b[2],y=f(d,u,g);if(!(y<1e-6)){d/=y,u/=y,g/=y;var R=M[0]-_[0],I=M[1]-_[1],z=M[2]-_[2],F=f(R,I,z);if(!(F<1e-6)){R/=F,I/=F,z/=F;var B=this.computedRight,O=B[0],P=B[1],N=B[2],U=d*O+u*P+g*N;O-=U*d,P-=U*u,N-=U*g;var X=f(O,P,N);if(!(X<.01&&(O=u*z-g*I,P=g*R-d*z,N=d*I-u*R,X=f(O,P,N),X<1e-6))){O/=X,P/=X,N/=X,this.up.set(S,d,u,g),this.right.set(S,O,P,N),this.center.set(S,_[0],_[1],_[2]),this.radius.set(S,Math.log(F));var te=u*N-g*P,ue=g*O-d*N,ie=d*P-u*O,le=f(te,ue,ie);te/=le,ue/=le,ie/=le;var q=d*R+u*I+g*z,J=O*R+P*I+N*z,ee=te*R+ue*I+ie*z,Z=Math.asin(p(q)),se=Math.atan2(ee,J),Q=this.angle._state,V=Q[Q.length-1],re=Q[Q.length-2];V=V%(2*Math.PI);var ae=Math.abs(V+2*Math.PI-se),fe=Math.abs(V-se),xe=Math.abs(V-2*Math.PI-se);ae0?N.pop():new ArrayBuffer(O)}t.mallocArrayBuffer=m;function w(B){return new Uint8Array(m(B),0,B)}t.mallocUint8=w;function S(B){return new Uint16Array(m(2*B),0,B)}t.mallocUint16=S;function M(B){return new Uint32Array(m(4*B),0,B)}t.mallocUint32=M;function _(B){return new Int8Array(m(B),0,B)}t.mallocInt8=_;function b(B){return new Int16Array(m(2*B),0,B)}t.mallocInt16=b;function d(B){return new Int32Array(m(4*B),0,B)}t.mallocInt32=d;function u(B){return new Float32Array(m(4*B),0,B)}t.mallocFloat32=t.mallocFloat=u;function g(B){return new Float64Array(m(8*B),0,B)}t.mallocFloat64=t.mallocDouble=g;function y(B){return n?new Uint8ClampedArray(m(B),0,B):w(B)}t.mallocUint8Clamped=y;function R(B){return s?new BigUint64Array(m(8*B),0,B):null}t.mallocBigUint64=R;function I(B){return c?new BigInt64Array(m(8*B),0,B):null}t.mallocBigInt64=I;function z(B){return new DataView(m(B),0,B)}t.mallocDataView=z;function F(B){B=i.nextPow2(B);var O=i.log2(B),P=v[O];return P.length>0?P.pop():new o(B)}t.mallocBuffer=F,t.clearCache=function(){for(var O=0;O<32;++O)f.UINT8[O].length=0,f.UINT16[O].length=0,f.UINT32[O].length=0,f.INT8[O].length=0,f.INT16[O].length=0,f.INT32[O].length=0,f.FLOAT[O].length=0,f.DOUBLE[O].length=0,f.BIGUINT64[O].length=0,f.BIGINT64[O].length=0,f.UINT8C[O].length=0,p[O].length=0,v[O].length=0}},1755:function(e){"use restrict";e.exports=t;function t(i){this.roots=new Array(i),this.ranks=new Array(i);for(var a=0;a",N="",U=P.length,X=N.length,te=F[0]===m||F[0]===M,ue=0,ie=-X;ue>-1&&(ue=B.indexOf(P,ue),!(ue===-1||(ie=B.indexOf(N,ue+U),ie===-1)||ie<=ue));){for(var le=ue;le=ie)O[le]=null,B=B.substr(0,le)+" "+B.substr(le+1);else if(O[le]!==null){var q=O[le].indexOf(F[0]);q===-1?O[le]+=F:te&&(O[le]=O[le].substr(0,q+1)+(1+parseInt(O[le][q+1]))+O[le].substr(q+2))}var J=ue+U,ee=B.substr(J,ie-J),Z=ee.indexOf(P);Z!==-1?ue=Z:ue=ie+X}return O}function d(z,F,B){for(var O=F.textAlign||"start",P=F.textBaseline||"alphabetic",N=[1<<30,1<<30],U=[0,0],X=z.length,te=0;te/g,` +`):B=B.replace(/\/g," ");var U="",X=[];for(V=0;V-1?parseInt(he[1+nt]):0,kt=Ke>-1?parseInt(De[1+Ke]):0;Et!==kt&&(et=et.replace(Ce(),"?px "),fe*=Math.pow(.75,kt-Et),et=et.replace("?px ",Ce())),ae+=.25*q*(kt-Et)}if(N.superscripts===!0){var Ut=he.indexOf(m),Yt=De.indexOf(m),vr=Ut>-1?parseInt(he[1+Ut]):0,hr=Yt>-1?parseInt(De[1+Yt]):0;vr!==hr&&(et=et.replace(Ce(),"?px "),fe*=Math.pow(.75,hr-vr),et=et.replace("?px ",Ce())),ae-=.25*q*(hr-vr)}if(N.bolds===!0){var Rr=he.indexOf(p)>-1,dr=De.indexOf(p)>-1;!Rr&&dr&&(wr?et=et.replace("italic ","italic bold "):et="bold "+et),Rr&&!dr&&(et=et.replace("bold ",""))}if(N.italics===!0){var wr=he.indexOf(T)>-1,yt=De.indexOf(T)>-1;!wr&&yt&&(et="italic "+et),wr&&!yt&&(et=et.replace("italic ",""))}F.font=et}for(Q=0;Q0&&(P=O.size),O.lineSpacing&&O.lineSpacing>0&&(N=O.lineSpacing),O.styletags&&O.styletags.breaklines&&(U.breaklines=!!O.styletags.breaklines),O.styletags&&O.styletags.bolds&&(U.bolds=!!O.styletags.bolds),O.styletags&&O.styletags.italics&&(U.italics=!!O.styletags.italics),O.styletags&&O.styletags.subscripts&&(U.subscripts=!!O.styletags.subscripts),O.styletags&&O.styletags.superscripts&&(U.superscripts=!!O.styletags.superscripts)),B.font=[O.fontStyle,O.fontVariant,O.fontWeight,P+"px",O.font].filter(function(te){return te}).join(" "),B.textAlign="start",B.textBaseline="alphabetic",B.direction="ltr";var X=u(F,B,z,P,N,U);return R(X,O,P)}},1538:function(e){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function r(g){g.permitHostObjects___&&g.permitHostObjects___(r)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=r);var i=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var o=new a,n=Object.freeze({});if(o.set(n,1),o.get(n)!==1)i=!0;else{e.exports=WeakMap;return}}}var s=Object.getOwnPropertyNames,c=Object.defineProperty,f=Object.isExtensible,p="weakmap:",v=p+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var T=new ArrayBuffer(25),l=new Uint8Array(T);crypto.getRandomValues(l),v=p+"rand:"+Array.prototype.map.call(l,function(g){return(g%36).toString(36)}).join("")+"___"}function m(g){return!(g.substr(0,p.length)==p&&g.substr(g.length-3)==="___")}if(c(Object,"getOwnPropertyNames",{value:function(y){return s(y).filter(m)}}),"getPropertyNames"in Object){var w=Object.getPropertyNames;c(Object,"getPropertyNames",{value:function(y){return w(y).filter(m)}})}function S(g){if(g!==Object(g))throw new TypeError("Not an object: "+g);var y=g[v];if(y&&y.key===g)return y;if(f(g)){y={key:g};try{return c(g,v,{value:y,writable:!1,enumerable:!1,configurable:!1}),y}catch{return}}}(function(){var g=Object.freeze;c(Object,"freeze",{value:function(z){return S(z),g(z)}});var y=Object.seal;c(Object,"seal",{value:function(z){return S(z),y(z)}});var R=Object.preventExtensions;c(Object,"preventExtensions",{value:function(z){return S(z),R(z)}})})();function M(g){return g.prototype=null,Object.freeze(g)}var _=!1;function b(){!_&&typeof console<"u"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var d=0,u=function(){this instanceof u||b();var g=[],y=[],R=d++;function I(O,P){var N,U=S(O);return U?R in U?U[R]:P:(N=g.indexOf(O),N>=0?y[N]:P)}function z(O){var P=S(O);return P?R in P:g.indexOf(O)>=0}function F(O,P){var N,U=S(O);return U?U[R]=P:(N=g.indexOf(O),N>=0?y[N]=P:(N=g.length,y[N]=P,g[N]=O)),this}function B(O){var P=S(O),N,U;return P?R in P&&delete P[R]:(N=g.indexOf(O),N<0?!1:(U=g.length-1,g[N]=void 0,y[N]=y[U],g[N]=g[U],g.length=U,y.length=U,!0))}return Object.create(u.prototype,{get___:{value:M(I)},has___:{value:M(z)},set___:{value:M(F)},delete___:{value:M(B)}})};u.prototype=Object.create(Object.prototype,{get:{value:function(y,R){return this.get___(y,R)},writable:!0,configurable:!0},has:{value:function(y){return this.has___(y)},writable:!0,configurable:!0},set:{value:function(y,R){return this.set___(y,R)},writable:!0,configurable:!0},delete:{value:function(y){return this.delete___(y)},writable:!0,configurable:!0}}),typeof a=="function"?function(){i&&typeof Proxy<"u"&&(Proxy=void 0);function g(){this instanceof u||b();var y=new a,R=void 0,I=!1;function z(P,N){return R?y.has(P)?y.get(P):R.get___(P,N):y.get(P,N)}function F(P){return y.has(P)||(R?R.has___(P):!1)}var B;i?B=function(P,N){return y.set(P,N),y.has(P)||(R||(R=new u),R.set(P,N)),this}:B=function(P,N){if(I)try{y.set(P,N)}catch{R||(R=new u),R.set___(P,N)}else y.set(P,N);return this};function O(P){var N=!!y.delete(P);return R&&R.delete___(P)||N}return Object.create(u.prototype,{get___:{value:M(z)},has___:{value:M(F)},set___:{value:M(B)},delete___:{value:M(O)},permitHostObjects___:{value:M(function(P){if(P===r)I=!0;else throw new Error("bogus call to permitHostObjects___")})}})}g.prototype=u.prototype,e.exports=g,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),e.exports=u)})()},236:function(e,t,r){var i=r(8284);e.exports=a;function a(){var o={};return function(n){if((typeof n!="object"||n===null)&&typeof n!="function")throw new Error("Weakmap-shim: Key must be object");var s=n.valueOf(o);return s&&s.identity===o?s:i(n,o)}}},8284:function(e){e.exports=t;function t(r,i){var a={identity:i},o=r.valueOf;return Object.defineProperty(r,"valueOf",{value:function(n){return n!==i?o.apply(this,arguments):a},writable:!0}),a}},606:function(e,t,r){var i=r(236);e.exports=a;function a(){var o=i();return{get:function(n,s){var c=o(n);return c.hasOwnProperty("value")?c.value:s},set:function(n,s){return o(n).value=s,this},has:function(n){return"value"in o(n)},delete:function(n){return delete o(n).value}}}},3349:function(e){function t(){return function(s,c,f,p,v,T){var l=s[0],m=f[0],w=[0],S=m;p|=0;var M=0,_=m;for(M=0;M=0!=d>=0&&v.push(w[0]+.5+.5*(b+d)/(b-d))}p+=_,++w[0]}}}function r(){return t()}var i=r;function a(s){var c={};return function(p,v,T){var l=p.dtype,m=p.order,w=[l,m.join()].join(),S=c[w];return S||(c[w]=S=s([l,m])),S(p.shape.slice(0),p.data,p.stride,p.offset|0,v,T)}}function o(s){return a(i.bind(void 0,s))}function n(s){return o({funcName:s.funcName})}e.exports=n({funcName:"zeroCrossings"})},781:function(e,t,r){e.exports=a;var i=r(3349);function a(o,n){var s=[];return n=+n||0,i(o.hi(o.shape[0]-1),s,n),s}},7790:function(){}},x={};function A(e){var t=x[e];if(t!==void 0)return t.exports;var r=x[e]={id:e,loaded:!1,exports:{}};return h[e].call(r.exports,r,r.exports,A),r.loaded=!0,r.exports}(function(){A.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){A.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}();var E=A(1964);H.exports=E})()}}),H3=He({"node_modules/color-name/index.js"(Y,H){H.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]}}}),i6=He({"node_modules/color-normalize/node_modules/color-parse/index.js"(Y,H){var h=H3();H.exports=A;var x={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function A(E){var e,t=[],r=1,i;if(typeof E=="string")if(E=E.toLowerCase(),h[E])t=h[E].slice(),i="rgb";else if(E==="transparent")r=0,i="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(E)){var a=E.slice(1),o=a.length,n=o<=4;r=1,n?(t=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===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)],o===8&&(r=parseInt(a[6]+a[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),i="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],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;t=e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,T){if(/%$/.test(v))return T===o?parseFloat(v)/100:a==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(a[T]==="h"){if(/deg$/.test(v))return parseFloat(v);if(x[v]!==void 0)return x[v]}return parseFloat(v)}),s===a&&t.push(1),r=c||t[o]===void 0?1:t[o],t=t.slice(0,o)}else E.length>10&&/[0-9](?:\s|\/)/.test(E)&&(t=E.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=E.match(/([a-z])/ig).join("").toLowerCase());else isNaN(E)?Array.isArray(E)||E.length?(t=[E[0],E[1],E[2]],i="rgb",r=E.length===4?E[3]:1):E instanceof Object&&(E.r!=null||E.red!=null||E.R!=null?(i="rgb",t=[E.r||E.red||E.R||0,E.g||E.green||E.G||0,E.b||E.blue||E.B||0]):(i="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)):(i="rgb",t=[E>>>16,(E&65280)>>>8,E&255]);return{space:i,values:t,alpha:r}}}}),o6=He({"node_modules/color-normalize/node_modules/color-rgba/index.js"(Y,H){var h=i6();H.exports=function(E){Array.isArray(E)&&E.raw&&(E=String.raw.apply(null,arguments));var e,t=h(E);if(!t.space)return[];var r=[0,0,0],i=t.space[0]==="h"?[360,100,100]:[255,255,255];return e=Array(3),e[0]=Math.min(Math.max(t.values[0],r[0]),i[0]),e[1]=Math.min(Math.max(t.values[1],r[1]),i[1]),e[2]=Math.min(Math.max(t.values[2],r[2]),i[2]),t.space[0]==="h"&&(e=x(e)),e.push(Math.min(Math.max(t.alpha,0),1)),e};function x(A){var E=A[0]/360,e=A[1]/100,t=A[2]/100,r,i,a,o,n,s=0;if(e===0)return n=t*255,[n,n,n];for(i=t<.5?t*(1+e):t+e-t*e,r=2*t-i,o=[0,0,0];s<3;)a=E+1/3*-(s-1),a<0?a++:a>1&&a--,n=6*a<1?r+(i-r)*6*a:2*a<1?i:3*a<2?r+(i-r)*(2/3-a)*6:r,o[s++]=n*255;return o}}}),Vm=He({"node_modules/clamp/index.js"(Y,H){H.exports=h;function h(x,A,E){return AE?E:x:xA?A:x}}}),V_=He({"node_modules/dtype/index.js"(Y,H){H.exports=function(h){switch(h){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}}}}),ap=He({"node_modules/color-normalize/index.js"(Y,H){var h=o6(),x=Vm(),A=V_();H.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=A(r),a=new i(4),o=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=h(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,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(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))}}}),cd=He({"src/lib/str2rgbarray.js"(Y,H){var h=ap();function x(A){return A?h(A):[0,0,0,1]}H.exports=x}}),fd=He({"src/lib/gl_format_color.js"(Y,H){var h=Vi(),x=Uf(),A=ap(),E=Eu(),e=mf().defaultLine,t=Lf().isArrayOrTypedArray,r=A(e),i=1;function a(f,p){var v=f;return v[3]*=p,v}function o(f){if(h(f))return r;var p=A(f);return p.length?p:r}function n(f){return h(f)?f:i}function s(f,p,v){var T=f.color;T&&T._inputArray&&(T=T._inputArray);var l=t(T),m=t(p),w=E.extractOpts(f),S=[],M,_,b,d,u;if(w.colorscale!==void 0?M=E.makeColorScaleFuncFromTrace(f):M=o,l?_=function(y,R){return y[R]===void 0?r:A(M(y[R]))}:_=o,m?b=function(y,R){return y[R]===void 0?i:n(y[R])}:b=n,l||m)for(var g=0;g0){var v=i.c2l(f);i._lowerLogErrorBound||(i._lowerLogErrorBound=v),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,v)}}else o[n]=[-s[0]*r,s[1]*r]}return o}function A(e){for(var t=0;t-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 S(R){var I=0,z=0,F=[I,z];if(Array.isArray(R))for(var B=0;B=0){var X=T(N.position,N.delaunayColor,N.delaunayAxis);X.opacity=R.opacity,this.delaunayMesh?this.delaunayMesh.update(X):(X.gl=I,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)},v.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 y(R,I){var z=new p(R,I.uid);return z.update(I),z}H.exports=y}}),X3=He({"src/traces/scatter3d/attributes.js"(Y,H){var h=bc(),x=Mu(),A=eu(),E=_c().axisHoverFormat,e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=Ll(),i=W3(),a=q_(),o=Po().extendFlat,n=Uu().overrideAll,s=jd(),c=h.line,f=h.marker,p=f.line,v=o({width:c.width,dash:{valType:"enumerated",values:s(i),dflt:"solid"}},A("line"));function T(m){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 l=H.exports=n({x:h.x,y:h.y,z:{valType:"data_array"},text:o({},h.text,{}),texttemplate:t({},{}),hovertext:o({},h.hovertext,{}),hovertemplate:e(),xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z"),mode:o({},h.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:T(),y:T(),z:T()},connectgaps:h.connectgaps,line:v,marker:o({symbol:{valType:"enumerated",values:s(a),dflt:"circle",arrayOk:!0},size:o({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:o({},f.opacity,{arrayOk:!1}),colorbar:f.colorbar,line:o({width:o({},p.width,{arrayOk:!1})},A("marker.line"))},A("marker")),textposition:o({},h.textposition,{dflt:"top center"}),textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:r.opacity,hoverinfo:o({},r.hoverinfo)},"calc","nested");l.x.editType=l.y.editType=l.z.editType="calc+clearAxisTypes"}}),u6=He({"src/traces/scatter3d/defaults.js"(Y,H){var h=qi(),x=Qr(),A=cu(),E=Zh(),e=rv(),t=av(),r=X3();H.exports=function(o,n,s,c){function f(M,_){return x.coerce(o,n,r,M,_)}var p=i(o,n,f,c);if(!p){n.visible=!1;return}f("text"),f("hovertext"),f("hovertemplate"),f("xhoverformat"),f("yhoverformat"),f("zhoverformat"),f("mode"),A.hasMarkers(n)&&E(o,n,s,c,f,{noSelect:!0,noAngle:!0}),A.hasLines(n)&&(f("connectgaps"),e(o,n,s,c,f)),A.hasText(n)&&(f("texttemplate"),t(o,n,c,f,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var v=(n.line||{}).color,T=(n.marker||{}).color;f("surfaceaxis")>=0&&f("surfacecolor",v||T);for(var l=["x","y","z"],m=0;m<3;++m){var w="projection."+l[m];f(w+".show")&&(f(w+".opacity"),f(w+".scale"))}var S=h.getComponentMethod("errorbars","supplyDefaults");S(o,n,v||T||s,{axis:"z"}),S(o,n,v||T||s,{axis:"y",inherit:"z"}),S(o,n,v||T||s,{axis:"x",inherit:"z"})};function i(a,o,n,s){var c=0,f=n("x"),p=n("y"),v=n("z"),T=h.getComponentMethod("calendars","handleTraceDefaults");return T(a,o,["x","y","z"],s),f&&p&&v&&(c=Math.min(f.length,p.length,v.length),o._length=o._xlength=o._ylength=o._zlength=c),c}}}),c6=He({"src/traces/scatter3d/calc.js"(Y,H){var h=jv(),x=nv();H.exports=function(E,e){var t=[{x:!1,y:!1,trace:e,t:{}}];return h(t,e),x(E,e),t}}}),f6=He({"node_modules/get-canvas-context/index.js"(Y,H){H.exports=h;function h(x,A){if(typeof x!="string")throw new TypeError("must specify type string");if(A=A||{},typeof document>"u"&&!A.canvas)return null;var E=A.canvas||document.createElement("canvas");typeof A.width=="number"&&(E.width=A.width),typeof A.height=="number"&&(E.height=A.height);var e=A,t;try{var r=[x];x.indexOf("webgl")===0&&r.push("experimental-"+x);for(var i=0;i/g," "));o[n]=p,s.tickmode=c}}r.ticks=o;for(var n=0;n<3;++n){.5*(t.glplot.bounds[0][n]+t.glplot.bounds[1][n]);for(var v=0;v<2;++v)r.bounds[v][n]=t.glplot.bounds[v][n]}t.contourLevels=E(o)}}}),g6=He({"src/plots/gl3d/scene.js"(Y,H){var h=eh().gl_plot3d,x=h.createCamera,A=h.createScene,E=h6(),e=u1(),t=qi(),r=Qr(),i=r.preserveDrawingBuffer(),a=wo(),o=xc(),n=cd(),s=Z3(),c=fw(),f=v6(),p=d6(),v=p6(),T=gv().applyAutorangeOptions,l,m,w=!1;function S(z,F){var B=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",B.appendChild(P),this.svgContainer=P,B.id=z.id,B.style.position="absolute",B.style.top=B.style.left="0px",B.style.width=B.style.height="100%",O.appendChild(B),this.fullLayout=F,this.id=z.id||"scene",this.fullSceneLayout=F[this.id],this.plotArgs=[[],{},{}],this.axesOptions=f(F,F[this.id]),this.spikeOptions=p(F[this.id]),this.container=B,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=S.prototype;M.prepareOptions=function(){var z=this,F={canvas:z.canvas,gl:z.gl,glOptions:{preserveDrawingBuffer:i,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(!m&&(l=document.createElement("canvas"),m=E({canvas:l,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!m))throw new Error("error creating static canvas/context for image server");F.gl=m,F.canvas=l}return F};var _=!0;M.tryCreatePlot=function(){var z=this,F=z.prepareOptions(),B=!0;try{z.glplot=A(F)}catch{if(z.staticMode||!_||i)B=!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{i=F.glOptions.preserveDrawingBuffer=!0,z.glplot=A(F)}catch{i=F.glOptions.preserveDrawingBuffer=!1,B=!1}}}return _=!1,B},M.initializeGLCamera=function(){var z=this,F=z.fullSceneLayout.camera,B=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:B,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 B=z.graphDiv,O=B.layout,P=function(){var U={};return z.isCameraChanged(O)&&(U[z.id+".camera"]=z.getCamera()),z.isAspectChanged(O)&&(U[z.id+".aspectratio"]=z.glplot.getAspectratio(),O[z.id].aspectmode!=="manual"&&(z.fullSceneLayout.aspectmode=O[z.id].aspectmode=U[z.id+".aspectmode"]="manual")),U},N=function(U){if(U.fullSceneLayout.dragmode!==!1){var X=P();U.saveLayout(O),U.graphDiv.emit("plotly_relayout",X)}};return z.glplot.canvas&&(z.glplot.canvas.addEventListener("mouseup",function(){N(z)}),z.glplot.canvas.addEventListener("touchstart",function(){w=!0}),z.glplot.canvas.addEventListener("wheel",function(U){if(B._context._scrollZoom.gl3d){if(z.camera._ortho){var X=U.deltaX>U.deltaY?1.1:.9090909090909091,te=z.glplot.getAspectratio();z.glplot.setAspectratio({x:X*te.x,y:X*te.y,z:X*te.z})}N(z)}},e?{passive:!1}:!1),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var U=P();z.graphDiv.emit("plotly_relayouting",U)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(U){B&&B.emit&&B.emit("plotly_webglcontextlost",{event:U,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,B,O=z.svgContainer,P=z.container.getBoundingClientRect();F._fullLayout._calcInverseTransform(F);var N=F._fullLayout._invScaleX,U=F._fullLayout._invScaleY,X=P.width*N,te=P.height*U;O.setAttributeNS(null,"viewBox","0 0 "+X+" "+te),O.setAttributeNS(null,"width",X),O.setAttributeNS(null,"height",te),v(z),z.glplot.axes.update(z.axesOptions);for(var ue=Object.keys(z.traces),ie=null,le=z.glplot.selection,q=0;q")):B.type==="isosurface"||B.type==="volume"?(Q.valueLabel=a.hoverLabelText(z._mockAxis,z._mockAxis.d2l(le.traceCoordinate[3]),B.valuehoverformat),xe.push("value: "+Q.valueLabel),le.textLabel&&xe.push(le.textLabel),fe=xe.join("
")):fe=le.textLabel;var Ae={x:le.traceCoordinate[0],y:le.traceCoordinate[1],z:le.traceCoordinate[2],data:Z._input,fullData:Z,curveNumber:Z.index,pointNumber:se};o.appendArrayPointValue(Ae,Z,se),B._module.eventData&&(Ae=Z._module.eventData(Ae,le,Z,{},se));var Pe={points:[Ae]};if(z.fullSceneLayout.hovermode){var Ce=[];o.loneHover({trace:Z,x:(.5+.5*ee[0]/ee[3])*X,y:(.5-.5*ee[1]/ee[3])*te,xLabel:Q.xLabel,yLabel:Q.yLabel,zLabel:Q.zLabel,text:fe,name:ie.name,color:o.castHoverOption(Z,se,"bgcolor")||ie.color,borderColor:o.castHoverOption(Z,se,"bordercolor"),fontFamily:o.castHoverOption(Z,se,"font.family"),fontSize:o.castHoverOption(Z,se,"font.size"),fontColor:o.castHoverOption(Z,se,"font.color"),nameLength:o.castHoverOption(Z,se,"namelength"),textAlign:o.castHoverOption(Z,se,"align"),hovertemplate:r.castOption(Z,se,"hovertemplate"),hovertemplateLabels:r.extendFlat({},Ae,Q),eventData:[Ae]},{container:O,gd:F,inOut_bbox:Ce}),Ae.bbox=Ce[0]}le.distance<5&&(le.buttons||w)?F.emit("plotly_click",Pe):F.emit("plotly_hover",Pe),this.oldEventData=Pe}else o.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,B){for(var O=z.fullSceneLayout,P=0;P<3;P++){var N=b[P],U=N.charAt(0),X=O[N],te=F[U],ue=F[U+"calendar"],ie=F["_"+U+"length"];if(!r.isArrayOrTypedArray(te))B[0][P]=Math.min(B[0][P],0),B[1][P]=Math.max(B[1][P],ie-1);else for(var le,q=0;q<(ie||te.length);q++)if(r.isArrayOrTypedArray(te[q]))for(var J=0;JZ[1][U])Z[0][U]=-1,Z[1][U]=1;else{var je=Z[1][U]-Z[0][U];Z[0][U]-=je/32,Z[1][U]+=je/32}if(Q=[Z[0][U],Z[1][U]],Q=T(Q,te),Z[0][U]=Q[0],Z[1][U]=Q[1],te.isReversed()){var at=Z[0][U];Z[0][U]=Z[1][U],Z[1][U]=at}}else Q=te.range,Z[0][U]=te.r2l(Q[0]),Z[1][U]=te.r2l(Q[1]);Z[0][U]===Z[1][U]&&(Z[0][U]-=1,Z[1][U]+=1),te.range=[Z[0][U],Z[1][U]],te.limitRange(),O.glplot.setBounds(U,{min:te.range[0]*J[U],max:te.range[1]*J[U]})}var tt,Je=ie.aspectmode;if(Je==="cube")tt=[1,1,1];else if(Je==="manual"){var Ze=ie.aspectratio;tt=[Ze.x,Ze.y,Ze.z]}else if(Je==="auto"||Je==="data"){var Me=[1,1,1];for(U=0;U<3;++U){te=ie[b[U]],ue=te.type;var we=se[ue];Me[U]=Math.pow(we.acc,1/we.count)/J[U]}Je==="data"||Math.max.apply(null,Me)/Math.min.apply(null,Me)<=4?tt=Me:tt=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ie.aspectratio.x=le.aspectratio.x=tt[0],ie.aspectratio.y=le.aspectratio.y=tt[1],ie.aspectratio.z=le.aspectratio.z=tt[2],O.glplot.setAspectratio(ie.aspectratio),O.viewInitial.aspectratio||(O.viewInitial.aspectratio={x:ie.aspectratio.x,y:ie.aspectratio.y,z:ie.aspectratio.z}),O.viewInitial.aspectmode||(O.viewInitial.aspectmode=ie.aspectmode);var he=ie.domain||null,De=F._size||null;if(he&&De){var et=O.container.style;et.position="absolute",et.left=De.l+he.x[0]*De.w+"px",et.top=De.t+(1-he.y[1])*De.h+"px",et.width=De.w*(he.x[1]-he.x[0])+"px",et.height=De.h*(he.y[1]-he.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 g(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 y(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()),y(z.camera)},M.setViewport=function(z){var F=this,B=z.camera;F.camera.lookAt.apply(this,g(B)),F.glplot.setAspectratio(z.aspectratio);var O=B.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,B=F.getCamera(),O=r.nestedProperty(z,F.id+".camera"),P=O.get();function N(ue,ie,le,q){var J=["up","center","eye"],ee=["x","y","z"];return ie[J[le]]&&ue[J[le]][ee[q]]===ie[J[le]][ee[q]]}var U=!1;if(P===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!N(B,P,X,te)){U=!0;break}(!P.projection||B.projection&&B.projection.type!==P.projection.type)&&(U=!0)}return U},M.isAspectChanged=function(z){var F=this,B=F.glplot.getAspectratio(),O=r.nestedProperty(z,F.id+".aspectratio"),P=O.get();return P===void 0||P.x!==B.x||P.y!==B.y||P.z!==B.z},M.saveLayout=function(z){var F=this,B=F.fullLayout,O,P,N,U,X,te,ue=F.isCameraChanged(z),ie=F.isAspectChanged(z),le=ue||ie;if(le){var q={};if(ue&&(O=F.getCamera(),P=r.nestedProperty(z,F.id+".camera"),N=P.get(),q[F.id+".camera"]=N),ie&&(U=F.glplot.getAspectratio(),X=r.nestedProperty(z,F.id+".aspectratio"),te=X.get(),q[F.id+".aspectratio"]=te),t.call("_storeDirectGUIEdit",z,B._preGUI,q),ue){P.set(O);var J=r.nestedProperty(B,F.id+".camera");J.set(O)}if(ie){X.set(U);var ee=r.nestedProperty(B,F.id+".aspectratio");ee.set(U),F.glplot.redraw()}}return le},M.updateFx=function(z,F){var B=this,O=B.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=B.graphDiv,N=P._fullLayout,U=B.fullSceneLayout.camera,X=U.up.x,te=U.up.y,ue=U.up.z;if(ue/Math.sqrt(X*X+te*te+ue*ue)<.999){var ie=B.id+".camera.up",le={x:0,y:0,z:1},q={};q[ie]=le;var J=P.layout;t.call("_storeDirectGUIEdit",J,N._preGUI,q),U.up=le,r.nestedProperty(J,ie).set(le)}}else O.keyBindingMode=z;B.fullSceneLayout.hovermode=F};function R(z,F,B){for(var O=0,P=B-1;O0)for(var X=255/U,te=0;te<3;++te)z[N+te]=Math.min(X*z[N+te],255)}}M.toImage=function(z){var F=this;z||(z="png"),F.staticMode&&F.container.appendChild(l),F.glplot.redraw();var B=F.glplot.gl,O=B.drawingBufferWidth,P=B.drawingBufferHeight;B.bindFramebuffer(B.FRAMEBUFFER,null);var N=new Uint8Array(O*P*4);B.readPixels(0,0,O,P,B.RGBA,B.UNSIGNED_BYTE,N),R(N,O,P),I(N,O,P);var U=document.createElement("canvas");U.width=O,U.height=P;var X=U.getContext("2d",{willReadFrequently:!0}),te=X.createImageData(O,P);te.data.set(N),X.putImageData(te,0,0);var ue;switch(z){case"jpeg":ue=U.toDataURL("image/jpeg");break;case"webp":ue=U.toDataURL("image/webp");break;default:ue=U.toDataURL("image/png")}return F.staticMode&&F.container.removeChild(l),ue},M.setConvert=function(){for(var z=this,F=0;F<3;F++){var B=z.fullSceneLayout[b[F]];a.setConvert(B,z.fullLayout),B.setScale=r.noop}},M.make4thDimension=function(){var z=this,F=z.graphDiv,B=F._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},a.setConvert(z._mockAxis,B)},H.exports=S}}),m6=He({"src/plots/gl3d/layout/attributes.js"(Y,H){H.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}}}),Y3=He({"src/plots/gl3d/layout/axis_attributes.js"(Y,H){var h=zi(),x=Kf(),A=Po().extendFlat,E=Uu().overrideAll;H.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:h.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:A({},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:A({},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:A({},x.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:x.gridwidth,zeroline:x.zeroline,zerolinecolor:x.zerolinecolor,zerolinewidth:x.zerolinewidth},"plot","from-root")}}),$3=He({"src/plots/gl3d/layout/layout_attributes.js"(Y,H){var h=Y3(),x=Ku().attributes,A=Po().extendFlat,E=Qr().counterRegex;function e(t,r,i){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:i,editType:"camera"},editType:"camera"}}H.exports={_arrayAttrRegexps:[E("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:A(e(0,0,1),{}),center:A(e(0,0,0),{}),eye:A(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:h,yaxis:h,zaxis:h,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"}}}),y6=He({"src/plots/gl3d/layout/axis_defaults.js"(Y,H){var h=Uf().mix,x=Qr(),A=cl(),E=Y3(),e=uw(),t=lm(),r=["xaxis","yaxis","zaxis"],i=13600/187;H.exports=function(o,n,s){var c,f;function p(l,m){return x.coerce(c,f,E,l,m)}for(var v=0;v1;function p(v){if(!f){var T=h.validate(n[v],t[v]);if(T)return n[v]}}E(n,s,c,{type:i,attributes:t,handleDefaults:a,fullLayout:s,font:s.font,fullData:c,getDfltFromLayout:p,autotypenumbersDflt:s.autotypenumbers,paper_bgcolor:s.paper_bgcolor,calendar:s.calendar})};function a(o,n,s,c){for(var f=s("bgcolor"),p=x.combine(f,c.paper_bgcolor),v=["up","center","eye"],T=0;T.999)&&(M="turntable")}else M="turntable";s("dragmode",M),s("hovermode",c.getDfltFromLayout("hovermode"))}}}),np=He({"src/plots/gl3d/index.js"(Y){var H=Uu().overrideAll,h=Bd(),x=g6(),A=$f().getSubplotData,E=Qr(),e=Xh(),t="gl3d",r="scene";Y.name=t,Y.attr=r,Y.idRoot=r,Y.idRegex=Y.attrRegex=E.counterRegex("scene"),Y.attributes=m6(),Y.layoutAttributes=$3(),Y.baseLayoutAttrOverrides=H({hoverlabel:h.hoverlabel},"plot","nested"),Y.supplyLayoutDefaults=_6(),Y.plot=function(a){for(var o=a._fullLayout,n=a._fullData,s=o._subplots[t],c=0;c0){R=c[I];break}return R}function T(g,y){if(!(g<1||y<1)){for(var R=p(g),I=p(y),z=1,F=0;FS;)I--,I/=v(I),I++,I1?z:1};function M(g,y,R){var I=R[8]+R[2]*y[0]+R[5]*y[1];return g[0]=(R[6]+R[0]*y[0]+R[3]*y[1])/I,g[1]=(R[7]+R[1]*y[0]+R[4]*y[1])/I,g}function _(g,y,R){return b(g,y,M,R),g}function b(g,y,R,I){for(var z=[0,0],F=g.shape[0],B=g.shape[1],O=0;O0&&this.contourStart[I]!==null&&this.contourEnd[I]!==null&&this.contourEnd[I]>this.contourStart[I]))for(y[I]=!0,z=this.contourStart[I];zte&&(this.minValues[N]=te),this.maxValues[N]c&&(i.isomin=null,i.isomax=null);var f=n("x"),p=n("y"),v=n("z"),T=n("value");if(!f||!f.length||!p||!p.length||!v||!v.length||!T||!T.length){i.visible=!1;return}var l=x.getComponentMethod("calendars","handleTraceDefaults");l(r,i,["x","y","z"],o),n("valuehoverformat"),["x","y","z"].forEach(function(M){n(M+"hoverformat");var _="caps."+M,b=n(_+".show");b&&n(_+".fill");var d="slices."+M,u=n(d+".show");u&&(n(d+".fill"),n(d+".locations"))});var m=n("spaceframe.show");m&&n("spaceframe.fill");var w=n("surface.show");w&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var S=n("contour.show");S&&(n("contour.color"),n("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){n(M)}),E(r,i,o,n,{prefix:"",cLetter:"c"}),i._length=null}H.exports={supplyDefaults:e,supplyIsoDefaults:t}}}),H_=He({"src/traces/streamtube/calc.js"(Y,H){var h=Qr(),x=Ch();function A(r,i){i._len=Math.min(i.u.length,i.v.length,i.w.length,i.x.length,i.y.length,i.z.length),i._u=t(i.u,i._len),i._v=t(i.v,i._len),i._w=t(i.w,i._len),i._x=t(i.x,i._len),i._y=t(i.y,i._len),i._z=t(i.z,i._len);var a=E(i);i._gridFill=a.fill,i._Xs=a.Xs,i._Ys=a.Ys,i._Zs=a.Zs,i._len=a.len;var o=0,n,s,c;i.starts&&(n=t(i.starts.x||[]),s=t(i.starts.y||[]),c=t(i.starts.z||[]),o=Math.min(n.length,s.length,c.length)),i._startsX=n||[],i._startsY=s||[],i._startsZ=c||[];var f=0,p=1/0,v;for(v=0;v1&&(u=i[n-1],y=a[n-1],I=o[n-1]),s=0;su?"-":"+")+"x"),S=S.replace("y",(g>y?"-":"+")+"y"),S=S.replace("z",(R>I?"-":"+")+"z");var O=function(){n=0,z=[],F=[],B=[]};(!n||n0;p--){var v=Math.min(f[p],f[p-1]),T=Math.max(f[p],f[p-1]);if(T>v&&v-1}function re(yt,Fe){return yt===null?Fe:yt}function ae(yt,Fe,We){ue();var Oe=[Fe],de=[We];if(Z>=1)Oe=[Fe],de=[We];else if(Z>0){var me=Q(Fe,We);Oe=me.xyzv,de=me.abc}for(var be=0;be-1?We[Xe]:te(ht,bt,Ct);Wt>-1?Ie[Xe]=Wt:Ie[Xe]=le(ht,bt,Ct,re(yt,Zt))}q(Ie[0],Ie[1],Ie[2])}}function fe(yt,Fe,We){var Oe=function(de,me,be){ae(yt,[Fe[de],Fe[me],Fe[be]],[We[de],We[me],We[be]])};Oe(0,1,2),Oe(2,3,0)}function xe(yt,Fe,We){var Oe=function(de,me,be){ae(yt,[Fe[de],Fe[me],Fe[be]],[We[de],We[me],We[be]])};Oe(0,1,2),Oe(3,0,1),Oe(2,3,0),Oe(1,2,3)}function Ae(yt,Fe,We,Oe){var de=yt[3];deOe&&(de=Oe);for(var me=(yt[3]-de)/(yt[3]-Fe[3]+1e-9),be=[],Ie=0;Ie<4;Ie++)be[Ie]=(1-me)*yt[Ie]+me*Fe[Ie];return be}function Pe(yt,Fe,We){return yt>=Fe&&yt<=We}function Ce(yt){var Fe=.001*(O-B);return yt>=B-Fe&&yt<=O+Fe}function je(yt){for(var Fe=[],We=0;We<4;We++){var Oe=yt[We];Fe.push([c._x[Oe],c._y[Oe],c._z[Oe],c._value[Oe]])}return Fe}var at=3;function tt(yt,Fe,We,Oe,de,me){me||(me=1),We=[-1,-1,-1];var be=!1,Ie=[Pe(Fe[0][3],Oe,de),Pe(Fe[1][3],Oe,de),Pe(Fe[2][3],Oe,de)];if(!Ie[0]&&!Ie[1]&&!Ie[2])return!1;var Xe=function(bt,Ct,Zt){return Ce(Ct[0][3])&&Ce(Ct[1][3])&&Ce(Ct[2][3])?(ae(bt,Ct,Zt),!0):meIe?[z,me]:[me,F];Ut(Fe,Xe[0],Xe[1])}}var ht=[[Math.min(B,F),Math.max(B,F)],[Math.min(z,O),Math.max(z,O)]];["x","y","z"].forEach(function(bt){for(var Ct=[],Zt=0;Zt0&&(Ia.push(Ga.id),bt==="x"?La.push([Ga.distRatio,0,0]):bt==="y"?La.push([0,Ga.distRatio,0]):La.push([0,0,Ga.distRatio]))}else bt==="x"?ia=Rr(1,u-1):bt==="y"?ia=Rr(1,g-1):ia=Rr(1,y-1);Ia.length>0&&(bt==="x"?Ct[Wt]=Yt(yt,Ia,rr,Jt,La,Ct[Wt]):bt==="y"?Ct[Wt]=vr(yt,Ia,rr,Jt,La,Ct[Wt]):Ct[Wt]=hr(yt,Ia,rr,Jt,La,Ct[Wt]),Wt++),ia.length>0&&(bt==="x"?Ct[Wt]=et(yt,ia,rr,Jt,Ct[Wt]):bt==="y"?Ct[Wt]=nt(yt,ia,rr,Jt,Ct[Wt]):Ct[Wt]=Ke(yt,ia,rr,Jt,Ct[Wt]),Wt++)}var ba=c.caps[bt];ba.show&&ba.fill&&(se(ba.fill),bt==="x"?Ct[Wt]=et(yt,[0,u-1],rr,Jt,Ct[Wt]):bt==="y"?Ct[Wt]=nt(yt,[0,g-1],rr,Jt,Ct[Wt]):Ct[Wt]=Ke(yt,[0,y-1],rr,Jt,Ct[Wt]),Wt++)}}),w===0&&ie(),c._meshX=P,c._meshY=N,c._meshZ=U,c._meshIntensity=X,c._Xs=_,c._Ys=b,c._Zs=d}return wr(),c}function s(c,f){var p=c.glplot.gl,v=h({gl:p}),T=new i(c,v,f.uid);return v._trace=T,T.update(f),c.glplot.add(v),T}H.exports={findNearestOnAxis:r,generateIsoMeshes:n,createIsosurfaceTrace:s}}}),M6=He({"src/traces/isosurface/index.js"(Y,H){H.exports={attributes:G_(),supplyDefaults:J3().supplyDefaults,calc:Q3(),colorbar:{min:"cmin",max:"cmax"},plot:W_().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),E6=He({"lib/isosurface.js"(Y,H){H.exports=M6()}}),eT=He({"src/traces/volume/attributes.js"(Y,H){var h=eu(),x=G_(),A=qm(),E=Ll(),e=Po().extendFlat,t=Uu().overrideAll,r=H.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},h("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:x.colorbar,opacity:x.opacity,opacityscale:A.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"}}),k6=He({"src/traces/volume/defaults.js"(Y,H){var h=Qr(),x=eT(),A=J3().supplyIsoDefaults,E=K3().opacityscaleDefaults;H.exports=function(t,r,i,a){function o(n,s){return h.coerce(t,r,x,n,s)}A(t,r,i,a,o),E(t,r,a,o)}}}),C6=He({"src/traces/volume/convert.js"(Y,H){var h=eh().gl_mesh3d,x=fd().parseColorScale,A=Qr().isArrayOrTypedArray,E=cd(),e=Eu().extractOpts,t=fg(),r=W_().findNearestOnAxis,i=W_().generateIsoMeshes;function a(s,c,f){this.scene=s,this.uid=f,this.mesh=c,this.name="",this.data=null,this.showContour=!1}var o=a.prototype;o.handlePick=function(s){if(s.object===this.mesh){var c=s.data.index,f=this.data._meshX[c],p=this.data._meshY[c],v=this.data._meshZ[c],T=this.data._Ys.length,l=this.data._Zs.length,m=r(f,this.data._Xs).id,w=r(p,this.data._Ys).id,S=r(v,this.data._Zs).id,M=s.index=S+l*w+l*T*m;s.traceCoordinate=[this.data._meshX[M],this.data._meshY[M],this.data._meshZ[M],this.data._value[M]];var _=this.data.hovertext||this.data.text;return A(_)&&_[M]!==void 0?s.textLabel=_[M]:_&&(s.textLabel=_),!0}},o.update=function(s){var c=this.scene,f=c.fullSceneLayout;this.data=i(s);function p(w,S,M,_){return S.map(function(b){return w.d2l(b,0,_)*M})}var v=t(p(f.xaxis,s._meshX,c.dataScale[0],s.xcalendar),p(f.yaxis,s._meshY,c.dataScale[1],s.ycalendar),p(f.zaxis,s._meshZ,c.dataScale[2],s.zcalendar)),T=t(s._meshI,s._meshJ,s._meshK),l={positions:v,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},m=e(s);l.vertexIntensity=s._meshIntensity,l.vertexIntensityBounds=[m.min,m.max],l.colormap=x(s),this.mesh.update(l)},o.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function n(s,c){var f=s.glplot.gl,p=h({gl:f}),v=new a(s,p,c.uid);return p._trace=v,v.update(c),s.glplot.add(p),v}H.exports=n}}),L6=He({"src/traces/volume/index.js"(Y,H){H.exports={attributes:eT(),supplyDefaults:k6(),calc:Q3(),colorbar:{min:"cmin",max:"cmax"},plot:C6(),moduleType:"trace",name:"volume",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),P6=He({"lib/volume.js"(Y,H){H.exports=L6()}}),I6=He({"src/traces/mesh3d/defaults.js"(Y,H){var h=qi(),x=Qr(),A=If(),E=cg();H.exports=function(t,r,i,a){function o(p,v){return x.coerce(t,r,E,p,v)}function n(p){var v=p.map(function(T){var l=o(T);return l&&x.isArrayOrTypedArray(l)?l:null});return v.every(function(T){return T&&T.length===v[0].length})&&v}var s=n(["x","y","z"]);if(!s){r.visible=!1;return}if(n(["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 c=h.getComponentMethod("calendars","handleTraceDefaults");c(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(p){o(p)});var f=o("contour.show");f&&(o("contour.color"),o("contour.width")),"intensity"in t?(o("intensity"),o("intensitymode"),A(t,r,a,o,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?o("facecolor"):"vertexcolor"in t?o("vertexcolor"):o("color",i)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),r._length=null}}}),R6=He({"src/traces/mesh3d/calc.js"(Y,H){var h=Ch();H.exports=function(A,E){E.intensity&&h(A,E,{vals:E.intensity,containerStr:"",cLetter:"c"})}}}),D6=He({"src/traces/mesh3d/convert.js"(Y,H){var h=eh().gl_mesh3d,x=eh().delaunay_triangulate,A=eh().alpha_shape,E=eh().convex_hull,e=fd().parseColorScale,t=Qr().isArrayOrTypedArray,r=cd(),i=Eu().extractOpts,a=fg();function o(l,m,w){this.scene=l,this.uid=w,this.mesh=m,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n=o.prototype;n.handlePick=function(l){if(l.object===this.mesh){var m=l.index=l.data.index;l.data._cellCenter?l.traceCoordinate=l.data.dataCoordinate:l.traceCoordinate=[this.data.x[m],this.data.y[m],this.data.z[m]];var w=this.data.hovertext||this.data.text;return t(w)&&w[m]!==void 0?l.textLabel=w[m]:w&&(l.textLabel=w),!0}};function s(l){for(var m=[],w=l.length,S=0;S=m-.5)return!1;return!0}n.update=function(l){var m=this.scene,w=m.fullSceneLayout;this.data=l;var S=l.x.length,M=a(c(w.xaxis,l.x,m.dataScale[0],l.xcalendar),c(w.yaxis,l.y,m.dataScale[1],l.ycalendar),c(w.zaxis,l.z,m.dataScale[2],l.zcalendar)),_;if(l.i&&l.j&&l.k){if(l.i.length!==l.j.length||l.j.length!==l.k.length||!v(l.i,S)||!v(l.j,S)||!v(l.k,S))return;_=a(f(l.i),f(l.j),f(l.k))}else l.alphahull===0?_=E(M):l.alphahull>0?_=A(l.alphahull,M):_=p(l.delaunayaxis,M);var b={positions:M,cells:_,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=i(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)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(l,m){var w=l.glplot.gl,S=h({gl:w}),M=new o(l,S,m.uid);return S._trace=M,M.update(m),l.glplot.add(S),M}H.exports=T}}),z6=He({"src/traces/mesh3d/index.js"(Y,H){H.exports={attributes:cg(),supplyDefaults:I6(),calc:R6(),colorbar:{min:"cmin",max:"cmax"},plot:D6(),moduleType:"trace",name:"mesh3d",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),F6=He({"lib/mesh3d.js"(Y,H){H.exports=z6()}}),tT=He({"src/traces/cone/attributes.js"(Y,H){var h=eu(),x=_c().axisHoverFormat,A=us().hovertemplateAttrs,E=cg(),e=Ll(),t=Po().extendFlat,r={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:A({editType:"calc"},{keys:["norm"]}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:t({},e.showlegend,{dflt:!1})};t(r,h("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var i=["opacity","lightposition","lighting"];i.forEach(function(a){r[a]=E[a]}),r.hoverinfo=t({},e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),H.exports=r}}),O6=He({"src/traces/cone/defaults.js"(Y,H){var h=Qr(),x=If(),A=tT();H.exports=function(e,t,r,i){function a(T,l){return h.coerce(e,t,A,T,l)}var o=a("u"),n=a("v"),s=a("w"),c=a("x"),f=a("y"),p=a("z");if(!o||!o.length||!n||!n.length||!s||!s.length||!c||!c.length||!f||!f.length||!p||!p.length){t.visible=!1;return}var v=a("sizemode");a("sizeref",v==="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,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),t._length=null}}}),B6=He({"src/traces/cone/calc.js"(Y,H){var h=Ch();H.exports=function(A,E){for(var e=E.u,t=E.v,r=E.w,i=Math.min(E.x.length,E.y.length,E.z.length,e.length,t.length,r.length),a=-1/0,o=1/0,n=0;n2?v=f.slice(1,p-1):p===2?v=[(f[0]+f[1])/2]:v=f,v}function n(f){var p=f.length;return p===1?[.5,.5]:[f[1]-f[0],f[p-1]-f[p-2]]}function s(f,p){var v=f.fullSceneLayout,T=f.dataScale,l=p._len,m={};function w(le,q){var J=v[q],ee=T[r[q]];return A.simpleMap(le,function(Z){return J.d2l(Z)*ee})}if(m.vectors=t(w(p._u,"xaxis"),w(p._v,"yaxis"),w(p._w,"zaxis"),l),!l)return{positions:[],cells:[]};var S=w(p._Xs,"xaxis"),M=w(p._Ys,"yaxis"),_=w(p._Zs,"zaxis");m.meshgrid=[S,M,_],m.gridFill=p._gridFill;var b=p._slen;if(b)m.startingPositions=t(w(p._startsX,"xaxis"),w(p._startsY,"yaxis"),w(p._startsZ,"zaxis"));else{for(var d=M[0],u=o(S),g=o(_),y=new Array(u.length*g.length),R=0,I=0;Id&&(d=R[0]),R[1]u&&(u=R[1])}function y(R){switch(R.type){case"GeometryCollection":R.geometries.forEach(y);break;case"Point":g(R.coordinates);break;case"MultiPoint":R.coordinates.forEach(g);break}}w.arcs.forEach(function(R){for(var I=-1,z=R.length,F;++Id&&(d=F[0]),F[1]u&&(u=F[1])});for(M in w.objects)y(w.objects[M]);return[_,b,d,u]}function e(w,S){for(var M,_=w.length,b=_-S;b<--_;)M=w[b],w[b++]=w[_],w[_]=M}function t(w,S){return typeof S=="string"&&(S=w.objects[S]),S.type==="GeometryCollection"?{type:"FeatureCollection",features:S.geometries.map(function(M){return r(w,M)})}:r(w,S)}function r(w,S){var M=S.id,_=S.bbox,b=S.properties==null?{}:S.properties,d=i(w,S);return M==null&&_==null?{type:"Feature",properties:b,geometry:d}:_==null?{type:"Feature",id:M,properties:b,geometry:d}:{type:"Feature",id:M,bbox:_,properties:b,geometry:d}}function i(w,S){var M=A(w.transform),_=w.arcs;function b(I,z){z.length&&z.pop();for(var F=_[I<0?~I:I],B=0,O=F.length;B1)_=s(w,S,M);else for(b=0,_=new Array(d=w.arcs.length);b1)for(var z=1,F=g(R[0]),B,O;zF&&(O=R[0],R[0]=R[z],R[z]=O,F=B);return R}).filter(function(y){return y.length>0})}}function v(w,S){for(var M=0,_=w.length;M<_;){var b=M+_>>>1;w[b]=2))throw new Error("n must be ≥2");y=w.bbox||E(w);var M=y[0],_=y[1],b=y[2],d=y[3],u;S={scale:[b-M?(b-M)/(u-1):1,d-_?(d-_)/(u-1):1],translate:[M,_]}}else y=w.bbox;var g=l(S),y,R,I=w.objects,z={};function F(P){return g(P)}function B(P){var N;switch(P.type){case"GeometryCollection":N={type:"GeometryCollection",geometries:P.geometries.map(B)};break;case"Point":N={type:"Point",coordinates:F(P.coordinates)};break;case"MultiPoint":N={type:"MultiPoint",coordinates:P.coordinates.map(F)};break;default:return P}return P.id!=null&&(N.id=P.id),P.bbox!=null&&(N.bbox=P.bbox),P.properties!=null&&(N.properties=P.properties),N}function O(P){var N=0,U=1,X=P.length,te,ue=new Array(X);for(ue[0]=g(P[0],0);++N0&&(E.push(e),e=[])}return e.length>0&&E.push(e),E},Y.makeLine=function(h){return h.length===1?{type:"LineString",coordinates:h[0]}:{type:"MultiLineString",coordinates:h}},Y.makePolygon=function(h){if(h.length===1)return{type:"Polygon",coordinates:h};for(var x=new Array(h.length),A=0;Ae(B,z)),F)}function r(I,z,F={}){for(const O of I){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;Pr(B,z)),F)}function a(I,z,F={}){if(I.length<2)throw new Error("coordinates must be an array of two or more positions");return A({type:"LineString",coordinates:I},z,F)}function o(I,z,F={}){return n(I.map(B=>a(B,z)),F)}function n(I,z={}){const F={type:"FeatureCollection"};return z.id&&(F.id=z.id),z.bbox&&(F.bbox=z.bbox),F.features=I,F}function s(I,z,F={}){return A({type:"MultiLineString",coordinates:I},z,F)}function c(I,z,F={}){return A({type:"MultiPoint",coordinates:I},z,F)}function f(I,z,F={}){return A({type:"MultiPolygon",coordinates:I},z,F)}function p(I,z,F={}){return A({type:"GeometryCollection",geometries:I},z,F)}function v(I,z=0){if(z&&!(z>=0))throw new Error("precision must be a positive number");const F=Math.pow(10,z||0);return Math.round(I*F)/F}function T(I,z="kilometers"){const F=h[z];if(!F)throw new Error(z+" units is invalid");return I*F}function l(I,z="kilometers"){const F=h[z];if(!F)throw new Error(z+" units is invalid");return I/F}function m(I,z){return M(l(I,z))}function w(I){let z=I%360;return z<0&&(z+=360),z}function S(I){return I=I%360,I>180?I-360:I<-180?I+360:I}function M(I){return I%(2*Math.PI)*180/Math.PI}function _(I){return I%360*Math.PI/180}function b(I,z="kilometers",F="kilometers"){if(!(I>=0))throw new Error("length must be a positive number");return T(l(I,z),F)}function d(I,z="meters",F="kilometers"){if(!(I>=0))throw new Error("area must be a positive number");const B=x[z];if(!B)throw new Error("invalid original units");const O=x[F];if(!O)throw new Error("invalid final units");return I/B*O}function u(I){return!isNaN(I)&&I!==null&&!Array.isArray(I)}function g(I){return I!==null&&typeof I=="object"&&!Array.isArray(I)}function y(I){if(!I)throw new Error("bbox is required");if(!Array.isArray(I))throw new Error("bbox must be an Array");if(I.length!==4&&I.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");I.forEach(z=>{if(!u(z))throw new Error("bbox must only contain numbers")})}function R(I){if(!I)throw new Error("id is required");if(["string","number"].indexOf(typeof I)===-1)throw new Error("id must be a number or a string")}Y.areaFactors=x,Y.azimuthToBearing=S,Y.bearingToAzimuth=w,Y.convertArea=d,Y.convertLength=b,Y.degreesToRadians=_,Y.earthRadius=H,Y.factors=h,Y.feature=A,Y.featureCollection=n,Y.geometry=E,Y.geometryCollection=p,Y.isNumber=u,Y.isObject=g,Y.lengthToDegrees=m,Y.lengthToRadians=l,Y.lineString=a,Y.lineStrings=o,Y.multiLineString=s,Y.multiPoint=c,Y.multiPolygon=f,Y.point=e,Y.points=t,Y.polygon=r,Y.polygons=i,Y.radiansToDegrees=M,Y.radiansToLength=T,Y.round=v,Y.validateBBox=y,Y.validateId=R}}),$_=He({"node_modules/@turf/meta/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=Y_();function h(l,m,w){if(l!==null)for(var S,M,_,b,d,u,g,y=0,R=0,I,z=l.type,F=z==="FeatureCollection",B=z==="Feature",O=F?l.features.length:1,P=0;Pu||F>g||B>y){d=R,u=S,g=F,y=B,_=0;return}var O=H.lineString.call(void 0,[d,R],w.properties);if(m(O,S,M,B,_)===!1)return!1;_++,d=R})===!1)return!1}}})}function c(l,m,w){var S=w,M=!1;return s(l,function(_,b,d,u,g){M===!1&&w===void 0?S=_:S=m(S,_,b,d,u,g),M=!0}),S}function f(l,m){if(!l)throw new Error("geojson is required");o(l,function(w,S,M){if(w.geometry!==null){var _=w.geometry.type,b=w.geometry.coordinates;switch(_){case"LineString":if(m(w,S,M,0,0)===!1)return!1;break;case"Polygon":for(var d=0;do+A(n),0)}function A(a){let o=0,n;switch(a.type){case"Polygon":return E(a.coordinates);case"MultiPolygon":for(n=0;n0){o+=Math.abs(r(a[0]));for(let n=1;n=o?(s+2)%o:s+2],v=c[0]*t,T=f[1]*t,l=p[0]*t;n+=(l-v)*Math.sin(T),s++}return n*e}var i=x;Y.area=x,Y.default=i}}),$6=He({"node_modules/@turf/centroid/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=Y_(),h=$_();function x(E,e={}){let t=0,r=0,i=0;return h.coordEach.call(void 0,E,function(a){t+=a[0],r+=a[1],i++},!0),H.point.call(void 0,[t/i,r/i],e.properties)}var A=x;Y.centroid=x,Y.default=A}}),K6=He({"node_modules/@turf/bbox/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=$_();function h(A,E={}){if(A.bbox!=null&&E.recompute!==!0)return A.bbox;const e=[1/0,1/0,-1/0,-1/0];return H.coordEach.call(void 0,A,t=>{e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]0&&z[F+1][0]<0)return F;return null}switch(b==="RUS"||b==="FJI"?u=function(z){var F;if(I(z)===null)F=z;else for(F=new Array(z.length),R=0;RF?B[O++]=[z[R][0]+360,z[R][1]]:R===F?(B[O++]=z[R],B[O++]=[z[R][0],-90]):B[O++]=z[R];var P=o.tester(B);P.pts.pop(),d.push(P)}:u=function(z){d.push(o.tester(z))},M.type){case"MultiPolygon":for(g=0;g<_.length;g++)for(y=0;y<_[g].length;y++)u(_[g][y]);break;case"Polygon":for(g=0;g<_.length;g++)u(_[g]);break}return d}function v(S){var M=S.geojson,_=window.PlotlyGeoAssets||{},b=typeof M=="string"?_[M]:M;return i(b)?b:(r.error("Oops ... something went wrong when fetching "+M),!1)}function T(S){var M=S[0].trace,_=v(M);if(!_)return!1;var b={},d=[],u;for(u=0;u0?P.properties.ct=l(P):P.properties.ct=[NaN,NaN],B.fIn=z,B.fOut=P,d.push(P)}else r.log(["Location",B.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete b[F]}switch(_.type){case"FeatureCollection":var R=_.features;for(u=0;ud&&(d=y,_=g)}else _=M;return E(_).geometry.coordinates}function m(S){var M=window.PlotlyGeoAssets||{},_=[];function b(R){return new Promise(function(I,z){h.json(R,function(F,B){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]=B,I(B)})})}function d(R){return new Promise(function(I,z){var F=0,B=setInterval(function(){if(M[R]&&M[R]!=="pending")return clearInterval(B),I(M[R]);if(F>100)return clearInterval(B),z("Unexpected error while fetching from "+R);F++},50)})}for(var u=0;u")}}}),Q6=He({"src/traces/scattergeo/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){x.lon=A.lon,x.lat=A.lat,x.location=A.loc?A.loc:null;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x}}}),eP=He({"src/traces/scattergeo/select.js"(Y,H){var h=cu(),x=qo().BADNUM;H.exports=function(E,e){var t=E.cd,r=E.xaxis,i=E.yaxis,a=[],o=t[0].trace,n,s,c,f,p,v=!h.hasMarkers(o)&&!h.hasText(o);if(v)return[];if(e===!1)for(p=0;pZ?1:ee>=Z?0:NaN}function A(ee){return ee.length===1&&(ee=E(ee)),{left:function(Z,se,Q,V){for(Q==null&&(Q=0),V==null&&(V=Z.length);Q>>1;ee(Z[re],se)<0?Q=re+1:V=re}return Q},right:function(Z,se,Q,V){for(Q==null&&(Q=0),V==null&&(V=Z.length);Q>>1;ee(Z[re],se)>0?V=re:Q=re+1}return Q}}}function E(ee){return function(Z,se){return x(ee(Z),se)}}var e=A(x),t=e.right,r=e.left;function i(ee,Z){Z==null&&(Z=a);for(var se=0,Q=ee.length-1,V=ee[0],re=new Array(Q<0?0:Q);seee?1:Z>=ee?0:NaN}function s(ee){return ee===null?NaN:+ee}function c(ee,Z){var se=ee.length,Q=0,V=-1,re=0,ae,fe,xe=0;if(Z==null)for(;++V1)return xe/(Q-1)}function f(ee,Z){var se=c(ee,Z);return se&&Math.sqrt(se)}function p(ee,Z){var se=ee.length,Q=-1,V,re,ae;if(Z==null){for(;++Q=V)for(re=ae=V;++QV&&(re=V),ae=V)for(re=ae=V;++QV&&(re=V),ae0)return[ee];if((Q=Z0)for(ee=Math.ceil(ee/fe),Z=Math.floor(Z/fe),ae=new Array(re=Math.ceil(Z-ee+1));++V=0?(re>=M?10:re>=_?5:re>=b?2:1)*Math.pow(10,V):-Math.pow(10,-V)/(re>=M?10:re>=_?5:re>=b?2:1)}function g(ee,Z,se){var Q=Math.abs(Z-ee)/Math.max(0,se),V=Math.pow(10,Math.floor(Math.log(Q)/Math.LN10)),re=Q/V;return re>=M?V*=10:re>=_?V*=5:re>=b&&(V*=2),ZCe;)je.pop(),--at;var tt=new Array(at+1),Je;for(re=0;re<=at;++re)Je=tt[re]=[],Je.x0=re>0?je[re-1]:Pe,Je.x1=re=1)return+se(ee[Q-1],Q-1,ee);var Q,V=(Q-1)*Z,re=Math.floor(V),ae=+se(ee[re],re,ee),fe=+se(ee[re+1],re+1,ee);return ae+(fe-ae)*(V-re)}}function z(ee,Z,se){return ee=l.call(ee,s).sort(x),Math.ceil((se-Z)/(2*(I(ee,.75)-I(ee,.25))*Math.pow(ee.length,-1/3)))}function F(ee,Z,se){return Math.ceil((se-Z)/(3.5*f(ee)*Math.pow(ee.length,-1/3)))}function B(ee,Z){var se=ee.length,Q=-1,V,re;if(Z==null){for(;++Q=V)for(re=V;++Qre&&(re=V)}else for(;++Q=V)for(re=V;++Qre&&(re=V);return re}function O(ee,Z){var se=ee.length,Q=se,V=-1,re,ae=0;if(Z==null)for(;++V=0;)for(ae=ee[Z],se=ae.length;--se>=0;)re[--V]=ae[se];return re}function U(ee,Z){var se=ee.length,Q=-1,V,re;if(Z==null){for(;++Q=V)for(re=V;++QV&&(re=V)}else for(;++Q=V)for(re=V;++QV&&(re=V);return re}function X(ee,Z){for(var se=Z.length,Q=new Array(se);se--;)Q[se]=ee[Z[se]];return Q}function te(ee,Z){if(se=ee.length){var se,Q=0,V=0,re,ae=ee[V];for(Z==null&&(Z=x);++Q0?1:Qt<0?-1:0},d=Math.sqrt,u=Math.tan;function g(Qt){return Qt>1?0:Qt<-1?a:Math.acos(Qt)}function y(Qt){return Qt>1?o:Qt<-1?-o:Math.asin(Qt)}function R(Qt){return(Qt=_(Qt/2))*Qt}function I(){}function z(Qt,yr){Qt&&B.hasOwnProperty(Qt.type)&&B[Qt.type](Qt,yr)}var F={Feature:function(Qt,yr){z(Qt.geometry,yr)},FeatureCollection:function(Qt,yr){for(var $r=Qt.features,Vr=-1,ma=$r.length;++Vr=0?1:-1,ma=Vr*$r,tn=l(yr),Ja=_(yr),Ln=q*Ja,On=le*tn+Ln*l(ma),Qn=Ln*Vr*_(ma);U.add(T(Qn,On)),ie=Qt,le=tn,q=Ja}function V(Qt){return X.reset(),N(Qt,J),X*2}function re(Qt){return[T(Qt[1],Qt[0]),y(Qt[2])]}function ae(Qt){var yr=Qt[0],$r=Qt[1],Vr=l($r);return[Vr*l(yr),Vr*_(yr),_($r)]}function fe(Qt,yr){return Qt[0]*yr[0]+Qt[1]*yr[1]+Qt[2]*yr[2]}function xe(Qt,yr){return[Qt[1]*yr[2]-Qt[2]*yr[1],Qt[2]*yr[0]-Qt[0]*yr[2],Qt[0]*yr[1]-Qt[1]*yr[0]]}function Ae(Qt,yr){Qt[0]+=yr[0],Qt[1]+=yr[1],Qt[2]+=yr[2]}function Pe(Qt,yr){return[Qt[0]*yr,Qt[1]*yr,Qt[2]*yr]}function Ce(Qt){var yr=d(Qt[0]*Qt[0]+Qt[1]*Qt[1]+Qt[2]*Qt[2]);Qt[0]/=yr,Qt[1]/=yr,Qt[2]/=yr}var je,at,tt,Je,Ze,Me,we,he,De=A(),et,nt,Ke={point:Et,lineStart:Ut,lineEnd:Yt,polygonStart:function(){Ke.point=vr,Ke.lineStart=hr,Ke.lineEnd=Rr,De.reset(),J.polygonStart()},polygonEnd:function(){J.polygonEnd(),Ke.point=Et,Ke.lineStart=Ut,Ke.lineEnd=Yt,U<0?(je=-(tt=180),at=-(Je=90)):De>r?Je=90:De<-r&&(at=-90),nt[0]=je,nt[1]=tt},sphere:function(){je=-(tt=180),at=-(Je=90)}};function Et(Qt,yr){et.push(nt=[je=Qt,tt=Qt]),yrJe&&(Je=yr)}function kt(Qt,yr){var $r=ae([Qt*f,yr*f]);if(he){var Vr=xe(he,$r),ma=[Vr[1],-Vr[0],0],tn=xe(ma,Vr);Ce(tn),tn=re(tn);var Ja=Qt-Ze,Ln=Ja>0?1:-1,On=tn[0]*c*Ln,Qn,_n=p(Ja)>180;_n^(Ln*ZeJe&&(Je=Qn)):(On=(On+360)%360-180,_n^(Ln*ZeJe&&(Je=yr))),_n?Qtdr(je,tt)&&(tt=Qt):dr(Qt,tt)>dr(je,tt)&&(je=Qt):tt>=je?(Qttt&&(tt=Qt)):Qt>Ze?dr(je,Qt)>dr(je,tt)&&(tt=Qt):dr(Qt,tt)>dr(je,tt)&&(je=Qt)}else et.push(nt=[je=Qt,tt=Qt]);yrJe&&(Je=yr),he=$r,Ze=Qt}function Ut(){Ke.point=kt}function Yt(){nt[0]=je,nt[1]=tt,Ke.point=Et,he=null}function vr(Qt,yr){if(he){var $r=Qt-Ze;De.add(p($r)>180?$r+($r>0?360:-360):$r)}else Me=Qt,we=yr;J.point(Qt,yr),kt(Qt,yr)}function hr(){J.lineStart()}function Rr(){vr(Me,we),J.lineEnd(),p(De)>r&&(je=-(tt=180)),nt[0]=je,nt[1]=tt,he=null}function dr(Qt,yr){return(yr-=Qt)<0?yr+360:yr}function wr(Qt,yr){return Qt[0]-yr[0]}function yt(Qt,yr){return Qt[0]<=Qt[1]?Qt[0]<=yr&&yr<=Qt[1]:yrdr(Vr[0],Vr[1])&&(Vr[1]=ma[1]),dr(ma[0],Vr[1])>dr(Vr[0],Vr[1])&&(Vr[0]=ma[0])):tn.push(Vr=ma);for(Ja=-1/0,$r=tn.length-1,yr=0,Vr=tn[$r];yr<=$r;Vr=ma,++yr)ma=tn[yr],(Ln=dr(Vr[1],ma[0]))>Ja&&(Ja=Ln,je=ma[0],tt=Vr[1])}return et=nt=null,je===1/0||at===1/0?[[NaN,NaN],[NaN,NaN]]:[[je,at],[tt,Je]]}var We,Oe,de,me,be,Ie,Xe,ht,bt,Ct,Zt,Wt,rr,Jt,mr,ia,Ia={sphere:I,point:La,lineStart:Ga,lineEnd:yn,polygonStart:function(){Ia.lineStart=Kt,Ia.lineEnd=zt},polygonEnd:function(){Ia.lineStart=Ga,Ia.lineEnd=yn}};function La(Qt,yr){Qt*=f,yr*=f;var $r=l(yr);Aa($r*l(Qt),$r*_(Qt),_(yr))}function Aa(Qt,yr,$r){++We,de+=(Qt-de)/We,me+=(yr-me)/We,be+=($r-be)/We}function Ga(){Ia.point=ba}function ba(Qt,yr){Qt*=f,yr*=f;var $r=l(yr);Jt=$r*l(Qt),mr=$r*_(Qt),ia=_(yr),Ia.point=Xa,Aa(Jt,mr,ia)}function Xa(Qt,yr){Qt*=f,yr*=f;var $r=l(yr),Vr=$r*l(Qt),ma=$r*_(Qt),tn=_(yr),Ja=T(d((Ja=mr*tn-ia*ma)*Ja+(Ja=ia*Vr-Jt*tn)*Ja+(Ja=Jt*ma-mr*Vr)*Ja),Jt*Vr+mr*ma+ia*tn);Oe+=Ja,Ie+=Ja*(Jt+(Jt=Vr)),Xe+=Ja*(mr+(mr=ma)),ht+=Ja*(ia+(ia=tn)),Aa(Jt,mr,ia)}function yn(){Ia.point=La}function Kt(){Ia.point=$t}function zt(){Ht(Wt,rr),Ia.point=La}function $t(Qt,yr){Wt=Qt,rr=yr,Qt*=f,yr*=f,Ia.point=Ht;var $r=l(yr);Jt=$r*l(Qt),mr=$r*_(Qt),ia=_(yr),Aa(Jt,mr,ia)}function Ht(Qt,yr){Qt*=f,yr*=f;var $r=l(yr),Vr=$r*l(Qt),ma=$r*_(Qt),tn=_(yr),Ja=mr*tn-ia*ma,Ln=ia*Vr-Jt*tn,On=Jt*ma-mr*Vr,Qn=d(Ja*Ja+Ln*Ln+On*On),_n=y(Qn),qn=Qn&&-_n/Qn;bt+=qn*Ja,Ct+=qn*Ln,Zt+=qn*On,Oe+=_n,Ie+=_n*(Jt+(Jt=Vr)),Xe+=_n*(mr+(mr=ma)),ht+=_n*(ia+(ia=tn)),Aa(Jt,mr,ia)}function Tr(Qt){We=Oe=de=me=be=Ie=Xe=ht=bt=Ct=Zt=0,N(Qt,Ia);var yr=bt,$r=Ct,Vr=Zt,ma=yr*yr+$r*$r+Vr*Vr;return maa?Qt+Math.round(-Qt/s)*s:Qt,yr]}Gr.invert=Gr;function wa(Qt,yr,$r){return(Qt%=s)?yr||$r?ha(Ya(Qt),Ka(yr,$r)):Ya(Qt):yr||$r?Ka(yr,$r):Gr}function Da(Qt){return function(yr,$r){return yr+=Qt,[yr>a?yr-s:yr<-a?yr+s:yr,$r]}}function Ya(Qt){var yr=Da(Qt);return yr.invert=Da(-Qt),yr}function Ka(Qt,yr){var $r=l(Qt),Vr=_(Qt),ma=l(yr),tn=_(yr);function Ja(Ln,On){var Qn=l(On),_n=l(Ln)*Qn,qn=_(Ln)*Qn,En=_(On),dn=En*$r+_n*Vr;return[T(qn*ma-dn*tn,_n*$r-En*Vr),y(dn*ma+qn*tn)]}return Ja.invert=function(Ln,On){var Qn=l(On),_n=l(Ln)*Qn,qn=_(Ln)*Qn,En=_(On),dn=En*ma-qn*tn;return[T(qn*ma+En*tn,_n*$r+dn*Vr),y(dn*$r-_n*Vr)]},Ja}function an(Qt){Qt=wa(Qt[0]*f,Qt[1]*f,Qt.length>2?Qt[2]*f:0);function yr($r){return $r=Qt($r[0]*f,$r[1]*f),$r[0]*=c,$r[1]*=c,$r}return yr.invert=function($r){return $r=Qt.invert($r[0]*f,$r[1]*f),$r[0]*=c,$r[1]*=c,$r},yr}function mt(Qt,yr,$r,Vr,ma,tn){if($r){var Ja=l(yr),Ln=_(yr),On=Vr*$r;ma==null?(ma=yr+Vr*s,tn=yr-On/2):(ma=ot(Ja,ma),tn=ot(Ja,tn),(Vr>0?matn)&&(ma+=Vr*s));for(var Qn,_n=ma;Vr>0?_n>tn:_n1&&Qt.push(Qt.pop().concat(Qt.shift()))},result:function(){var $r=Qt;return Qt=[],yr=null,$r}}}function Mr(Qt,yr){return p(Qt[0]-yr[0])=0;--Ln)ma.point((qn=_n[Ln])[0],qn[1]);else Vr(En.x,En.p.x,-1,ma);En=En.p}En=En.o,_n=En.z,dn=!dn}while(!En.v);ma.lineEnd()}}}function jr(Qt){if(yr=Qt.length){for(var yr,$r=0,Vr=Qt[0],ma;++$r=0?1:-1,vs=Is*hs,Rs=vs>a,Yo=Hi*ao;if(Dr.add(T(Yo*Is*_(vs),Fi*Fo+Yo*l(vs))),Ja+=Rs?hs+Is*s:hs,Rs^dn>=$r^ii>=$r){var sl=xe(ae(En),ae(Wi));Ce(sl);var nl=xe(tn,sl);Ce(nl);var Ls=(Rs^hs>=0?-1:1)*y(nl[2]);(Vr>Ls||Vr===Ls&&(sl[0]||sl[1]))&&(Ln+=Rs^hs>=0?1:-1)}}return(Ja<-r||Ja0){for(On||(ma.polygonStart(),On=!0),ma.lineStart(),Fo=0;Fo1&&Wn&2&&ao.push(ao.pop().concat(ao.shift())),_n.push(ao.filter(At))}}return En}}function At(Qt){return Qt.length>1}function or(Qt,yr){return((Qt=Qt.x)[0]<0?Qt[1]-o-r:o-Qt[1])-((yr=yr.x)[0]<0?yr[1]-o-r:o-yr[1])}var Ar=ta(function(){return!0},oa,Sa,[-a,-o]);function oa(Qt){var yr=NaN,$r=NaN,Vr=NaN,ma;return{lineStart:function(){Qt.lineStart(),ma=1},point:function(tn,Ja){var Ln=tn>0?a:-a,On=p(tn-yr);p(On-a)0?o:-o),Qt.point(Vr,$r),Qt.lineEnd(),Qt.lineStart(),Qt.point(Ln,$r),Qt.point(tn,$r),ma=0):Vr!==Ln&&On>=a&&(p(yr-Vr)r?v((_(yr)*(tn=l(Vr))*_($r)-_(Vr)*(ma=l(yr))*_(Qt))/(ma*tn*Ja)):(yr+Vr)/2}function Sa(Qt,yr,$r,Vr){var ma;if(Qt==null)ma=$r*o,Vr.point(-a,ma),Vr.point(0,ma),Vr.point(a,ma),Vr.point(a,0),Vr.point(a,-ma),Vr.point(0,-ma),Vr.point(-a,-ma),Vr.point(-a,0),Vr.point(-a,ma);else if(p(Qt[0]-yr[0])>r){var tn=Qt[0]0,ma=p(yr)>r;function tn(_n,qn,En,dn){mt(dn,Qt,$r,En,_n,qn)}function Ja(_n,qn){return l(_n)*l(qn)>yr}function Ln(_n){var qn,En,dn,ai,Hi;return{lineStart:function(){ai=dn=!1,Hi=1},point:function(Fi,Zi){var Wi=[Fi,Zi],ii,Wn=Ja(Fi,Zi),ao=Vr?Wn?0:Qn(Fi,Zi):Wn?Qn(Fi+(Fi<0?a:-a),Zi):0;if(!qn&&(ai=dn=Wn)&&_n.lineStart(),Wn!==dn&&(ii=On(qn,Wi),(!ii||Mr(qn,ii)||Mr(Wi,ii))&&(Wi[2]=1)),Wn!==dn)Hi=0,Wn?(_n.lineStart(),ii=On(Wi,qn),_n.point(ii[0],ii[1])):(ii=On(qn,Wi),_n.point(ii[0],ii[1],2),_n.lineEnd()),qn=ii;else if(ma&&qn&&Vr^Wn){var Fo;!(ao&En)&&(Fo=On(Wi,qn,!0))&&(Hi=0,Vr?(_n.lineStart(),_n.point(Fo[0][0],Fo[0][1]),_n.point(Fo[1][0],Fo[1][1]),_n.lineEnd()):(_n.point(Fo[1][0],Fo[1][1]),_n.lineEnd(),_n.lineStart(),_n.point(Fo[0][0],Fo[0][1],3)))}Wn&&(!qn||!Mr(qn,Wi))&&_n.point(Wi[0],Wi[1]),qn=Wi,dn=Wn,En=ao},lineEnd:function(){dn&&_n.lineEnd(),qn=null},clean:function(){return Hi|(ai&&dn)<<1}}}function On(_n,qn,En){var dn=ae(_n),ai=ae(qn),Hi=[1,0,0],Fi=xe(dn,ai),Zi=fe(Fi,Fi),Wi=Fi[0],ii=Zi-Wi*Wi;if(!ii)return!En&&_n;var Wn=yr*Zi/ii,ao=-yr*Wi/ii,Fo=xe(Hi,Fi),hs=Pe(Hi,Wn),Is=Pe(Fi,ao);Ae(hs,Is);var vs=Fo,Rs=fe(hs,vs),Yo=fe(vs,vs),sl=Rs*Rs-Yo*(fe(hs,hs)-1);if(!(sl<0)){var nl=d(sl),Ls=Pe(vs,(-Rs-nl)/Yo);if(Ae(Ls,hs),Ls=re(Ls),!En)return Ls;var wi=_n[0],go=qn[0],ws=_n[1],os=qn[1],Hl;go0^Ls[1]<(p(Ls[0]-wi)a^(wi<=Ls[0]&&Ls[0]<=go)){var Xl=Pe(vs,(-Rs+nl)/Yo);return Ae(Xl,hs),[Ls,re(Xl)]}}}function Qn(_n,qn){var En=Vr?Qt:a-Qt,dn=0;return _n<-En?dn|=1:_n>En&&(dn|=2),qn<-En?dn|=4:qn>En&&(dn|=8),dn}return ta(Ja,Ln,tn,Vr?[0,-Qt]:[-a,Qt-a])}function ra(Qt,yr,$r,Vr,ma,tn){var Ja=Qt[0],Ln=Qt[1],On=yr[0],Qn=yr[1],_n=0,qn=1,En=On-Ja,dn=Qn-Ln,ai;if(ai=$r-Ja,!(!En&&ai>0)){if(ai/=En,En<0){if(ai<_n)return;ai0){if(ai>qn)return;ai>_n&&(_n=ai)}if(ai=ma-Ja,!(!En&&ai<0)){if(ai/=En,En<0){if(ai>qn)return;ai>_n&&(_n=ai)}else if(En>0){if(ai<_n)return;ai0)){if(ai/=dn,dn<0){if(ai<_n)return;ai0){if(ai>qn)return;ai>_n&&(_n=ai)}if(ai=tn-Ln,!(!dn&&ai<0)){if(ai/=dn,dn<0){if(ai>qn)return;ai>_n&&(_n=ai)}else if(dn>0){if(ai<_n)return;ai0&&(Qt[0]=Ja+_n*En,Qt[1]=Ln+_n*dn),qn<1&&(yr[0]=Ja+qn*En,yr[1]=Ln+qn*dn),!0}}}}}var Ta=1e9,Fn=-Ta;function mn(Qt,yr,$r,Vr){function ma(Qn,_n){return Qt<=Qn&&Qn<=$r&&yr<=_n&&_n<=Vr}function tn(Qn,_n,qn,En){var dn=0,ai=0;if(Qn==null||(dn=Ja(Qn,qn))!==(ai=Ja(_n,qn))||On(Qn,_n)<0^qn>0)do En.point(dn===0||dn===3?Qt:$r,dn>1?Vr:yr);while((dn=(dn+qn+4)%4)!==ai);else En.point(_n[0],_n[1])}function Ja(Qn,_n){return p(Qn[0]-Qt)0?0:3:p(Qn[0]-$r)0?2:1:p(Qn[1]-yr)0?1:0:_n>0?3:2}function Ln(Qn,_n){return On(Qn.x,_n.x)}function On(Qn,_n){var qn=Ja(Qn,1),En=Ja(_n,1);return qn!==En?qn-En:qn===0?_n[1]-Qn[1]:qn===1?Qn[0]-_n[0]:qn===2?Qn[1]-_n[1]:_n[0]-Qn[0]}return function(Qn){var _n=Qn,qn=Er(),En,dn,ai,Hi,Fi,Zi,Wi,ii,Wn,ao,Fo,hs={point:Is,lineStart:sl,lineEnd:nl,polygonStart:Rs,polygonEnd:Yo};function Is(wi,go){ma(wi,go)&&_n.point(wi,go)}function vs(){for(var wi=0,go=0,ws=dn.length;goVr&&(Xu-uc)*(Vr-Xl)>(ll-Xl)*(Qt-uc)&&++wi:ll<=Vr&&(Xu-uc)*(Vr-Xl)<(ll-Xl)*(Qt-uc)&&--wi;return wi}function Rs(){_n=qn,En=[],dn=[],Fo=!0}function Yo(){var wi=vs(),go=Fo&&wi,ws=(En=x.merge(En)).length;(go||ws)&&(Qn.polygonStart(),go&&(Qn.lineStart(),tn(null,null,1,Qn),Qn.lineEnd()),ws&&Or(En,Ln,wi,tn,Qn),Qn.polygonEnd()),_n=Qn,En=dn=ai=null}function sl(){hs.point=Ls,dn&&dn.push(ai=[]),ao=!0,Wn=!1,Wi=ii=NaN}function nl(){En&&(Ls(Hi,Fi),Zi&&Wn&&qn.rejoin(),En.push(qn.result())),hs.point=Is,Wn&&_n.lineEnd()}function Ls(wi,go){var ws=ma(wi,go);if(dn&&ai.push([wi,go]),ao)Hi=wi,Fi=go,Zi=ws,ao=!1,ws&&(_n.lineStart(),_n.point(wi,go));else if(ws&&Wn)_n.point(wi,go);else{var os=[Wi=Math.max(Fn,Math.min(Ta,Wi)),ii=Math.max(Fn,Math.min(Ta,ii))],Hl=[wi=Math.max(Fn,Math.min(Ta,wi)),go=Math.max(Fn,Math.min(Ta,go))];ra(os,Hl,Qt,yr,$r,Vr)?(Wn||(_n.lineStart(),_n.point(os[0],os[1])),_n.point(Hl[0],Hl[1]),ws||_n.lineEnd(),Fo=!1):ws&&(_n.lineStart(),_n.point(wi,go),Fo=!1)}Wi=wi,ii=go,Wn=ws}return hs}}function Kn(){var Qt=0,yr=0,$r=960,Vr=500,ma,tn,Ja;return Ja={stream:function(Ln){return ma&&tn===Ln?ma:ma=mn(Qt,yr,$r,Vr)(tn=Ln)},extent:function(Ln){return arguments.length?(Qt=+Ln[0][0],yr=+Ln[0][1],$r=+Ln[1][0],Vr=+Ln[1][1],ma=tn=null,Ja):[[Qt,yr],[$r,Vr]]}}}var ui=A(),pi,vi,Li,Ni={sphere:I,point:I,lineStart:ci,lineEnd:I,polygonStart:I,polygonEnd:I};function ci(){Ni.point=ho,Ni.lineEnd=bi}function bi(){Ni.point=Ni.lineEnd=I}function ho(Qt,yr){Qt*=f,yr*=f,pi=Qt,vi=_(yr),Li=l(yr),Ni.point=Bo}function Bo(Qt,yr){Qt*=f,yr*=f;var $r=_(yr),Vr=l(yr),ma=p(Qt-pi),tn=l(ma),Ja=_(ma),Ln=Vr*Ja,On=Li*$r-vi*Vr*tn,Qn=vi*$r+Li*Vr*tn;ui.add(T(d(Ln*Ln+On*On),Qn)),pi=Qt,vi=$r,Li=Vr}function gs(Qt){return ui.reset(),N(Qt,Ni),+ui}var ro=[null,null],Ei={type:"LineString",coordinates:ro};function Ri(Qt,yr){return ro[0]=Qt,ro[1]=yr,gs(Ei)}var xo={Feature:function(Qt,yr){return bo(Qt.geometry,yr)},FeatureCollection:function(Qt,yr){for(var $r=Qt.features,Vr=-1,ma=$r.length;++Vr0&&(ma=Ri(Qt[tn],Qt[tn-1]),ma>0&&$r<=ma&&Vr<=ma&&($r+Vr-ma)*(1-Math.pow(($r-Vr)/ma,2))r}).map(En)).concat(x.range(m(tn/Qn)*Qn,ma,Qn).filter(function(ii){return p(ii%qn)>r}).map(dn))}return Zi.lines=function(){return Wi().map(function(ii){return{type:"LineString",coordinates:ii}})},Zi.outline=function(){return{type:"Polygon",coordinates:[ai(Vr).concat(Hi(Ja).slice(1),ai($r).reverse().slice(1),Hi(Ln).reverse().slice(1))]}},Zi.extent=function(ii){return arguments.length?Zi.extentMajor(ii).extentMinor(ii):Zi.extentMinor()},Zi.extentMajor=function(ii){return arguments.length?(Vr=+ii[0][0],$r=+ii[1][0],Ln=+ii[0][1],Ja=+ii[1][1],Vr>$r&&(ii=Vr,Vr=$r,$r=ii),Ln>Ja&&(ii=Ln,Ln=Ja,Ja=ii),Zi.precision(Fi)):[[Vr,Ln],[$r,Ja]]},Zi.extentMinor=function(ii){return arguments.length?(yr=+ii[0][0],Qt=+ii[1][0],tn=+ii[0][1],ma=+ii[1][1],yr>Qt&&(ii=yr,yr=Qt,Qt=ii),tn>ma&&(ii=tn,tn=ma,ma=ii),Zi.precision(Fi)):[[yr,tn],[Qt,ma]]},Zi.step=function(ii){return arguments.length?Zi.stepMajor(ii).stepMinor(ii):Zi.stepMinor()},Zi.stepMajor=function(ii){return arguments.length?(_n=+ii[0],qn=+ii[1],Zi):[_n,qn]},Zi.stepMinor=function(ii){return arguments.length?(On=+ii[0],Qn=+ii[1],Zi):[On,Qn]},Zi.precision=function(ii){return arguments.length?(Fi=+ii,En=kn(tn,ma,90),dn=fi(yr,Qt,Fi),ai=kn(Ln,Ja,90),Hi=fi(Vr,$r,Fi),Zi):Fi},Zi.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function Ss(){return Fs()()}function Gi(Qt,yr){var $r=Qt[0]*f,Vr=Qt[1]*f,ma=yr[0]*f,tn=yr[1]*f,Ja=l(Vr),Ln=_(Vr),On=l(tn),Qn=_(tn),_n=Ja*l($r),qn=Ja*_($r),En=On*l(ma),dn=On*_(ma),ai=2*y(d(R(tn-Vr)+Ja*On*R(ma-$r))),Hi=_(ai),Fi=ai?function(Zi){var Wi=_(Zi*=ai)/Hi,ii=_(ai-Zi)/Hi,Wn=ii*_n+Wi*En,ao=ii*qn+Wi*dn,Fo=ii*Ln+Wi*Qn;return[T(ao,Wn)*c,T(Fo,d(Wn*Wn+ao*ao))*c]}:function(){return[$r*c,Vr*c]};return Fi.distance=ai,Fi}function js(Qt){return Qt}var No=A(),es=A(),Vs,hi,so,Oi,Zo={point:I,lineStart:I,lineEnd:I,polygonStart:function(){Zo.lineStart=qs,Zo.lineEnd=wl},polygonEnd:function(){Zo.lineStart=Zo.lineEnd=Zo.point=I,No.add(p(es)),es.reset()},result:function(){var Qt=No/2;return No.reset(),Qt}};function qs(){Zo.point=Di}function Di(Qt,yr){Zo.point=ys,Vs=so=Qt,hi=Oi=yr}function ys(Qt,yr){es.add(Oi*Qt-so*yr),so=Qt,Oi=yr}function wl(){ys(Vs,hi)}var Xs=1/0,Vl=Xs,rl=-Xs,Cs=rl,ql={point:ju,lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I,result:function(){var Qt=[[Xs,Vl],[rl,Cs]];return rl=Cs=-(Vl=Xs=1/0),Qt}};function ju(Qt,yr){Qtrl&&(rl=Qt),yrCs&&(Cs=yr)}var Vu=0,yu=0,jc=0,ff=0,_s=0,Cu=0,Vc=0,Pl=0,Tl=0,Il,_u,Os,Al,Uo={point:bs,lineStart:qu,lineEnd:Zs,polygonStart:function(){Uo.lineStart=_f,Uo.lineEnd=zo},polygonEnd:function(){Uo.point=bs,Uo.lineStart=qu,Uo.lineEnd=Zs},result:function(){var Qt=Tl?[Vc/Tl,Pl/Tl]:Cu?[ff/Cu,_s/Cu]:jc?[Vu/jc,yu/jc]:[NaN,NaN];return Vu=yu=jc=ff=_s=Cu=Vc=Pl=Tl=0,Qt}};function bs(Qt,yr){Vu+=Qt,yu+=yr,++jc}function qu(){Uo.point=Zl}function Zl(Qt,yr){Uo.point=Ju,bs(Os=Qt,Al=yr)}function Ju(Qt,yr){var $r=Qt-Os,Vr=yr-Al,ma=d($r*$r+Vr*Vr);ff+=ma*(Os+Qt)/2,_s+=ma*(Al+yr)/2,Cu+=ma,bs(Os=Qt,Al=yr)}function Zs(){Uo.point=bs}function _f(){Uo.point=Rf}function zo(){is(Il,_u)}function Rf(Qt,yr){Uo.point=is,bs(Il=Os=Qt,_u=Al=yr)}function is(Qt,yr){var $r=Qt-Os,Vr=yr-Al,ma=d($r*$r+Vr*Vr);ff+=ma*(Os+Qt)/2,_s+=ma*(Al+yr)/2,Cu+=ma,ma=Al*Qt-Os*yr,Vc+=ma*(Os+Qt),Pl+=ma*(Al+yr),Tl+=ma*3,bs(Os=Qt,Al=yr)}function Bi(Qt){this._context=Qt}Bi.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,yr){switch(this._point){case 0:{this._context.moveTo(Qt,yr),this._point=1;break}case 1:{this._context.lineTo(Qt,yr);break}default:{this._context.moveTo(Qt+this._radius,yr),this._context.arc(Qt,yr,this._radius,0,s);break}}},result:I};var hc=A(),xu,dl,qc,Qu,wc,Sl={point:I,lineStart:function(){Sl.point=hf},lineEnd:function(){xu&&Yc(dl,qc),Sl.point=I},polygonStart:function(){xu=!0},polygonEnd:function(){xu=null},result:function(){var Qt=+hc;return hc.reset(),Qt}};function hf(Qt,yr){Sl.point=Yc,dl=Qu=Qt,qc=wc=yr}function Yc(Qt,yr){Qu-=Qt,wc-=yr,hc.add(d(Qu*Qu+wc*wc)),Qu=Qt,wc=yr}function Tc(){this._string=[]}Tc.prototype={_radius:4.5,_circle:ec(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,yr){switch(this._point){case 0:{this._string.push("M",Qt,",",yr),this._point=1;break}case 1:{this._string.push("L",Qt,",",yr);break}default:{this._circle==null&&(this._circle=ec(this._radius)),this._string.push("M",Qt,",",yr,this._circle);break}}},result:function(){if(this._string.length){var Qt=this._string.join("");return this._string=[],Qt}else return null}};function ec(Qt){return"m0,"+Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+-2*Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+2*Qt+"z"}function Gc(Qt,yr){var $r=4.5,Vr,ma;function tn(Ja){return Ja&&(typeof $r=="function"&&ma.pointRadius(+$r.apply(this,arguments)),N(Ja,Vr(ma))),ma.result()}return tn.area=function(Ja){return N(Ja,Vr(Zo)),Zo.result()},tn.measure=function(Ja){return N(Ja,Vr(Sl)),Sl.result()},tn.bounds=function(Ja){return N(Ja,Vr(ql)),ql.result()},tn.centroid=function(Ja){return N(Ja,Vr(Uo)),Uo.result()},tn.projection=function(Ja){return arguments.length?(Vr=Ja==null?(Qt=null,js):(Qt=Ja).stream,tn):Qt},tn.context=function(Ja){return arguments.length?(ma=Ja==null?(yr=null,new Tc):new Bi(yr=Ja),typeof $r!="function"&&ma.pointRadius($r),tn):yr},tn.pointRadius=function(Ja){return arguments.length?($r=typeof Ja=="function"?Ja:(ma.pointRadius(+Ja),+Ja),tn):$r},tn.projection(Qt).context(yr)}function Hc(Qt){return{stream:bu(Qt)}}function bu(Qt){return function(yr){var $r=new $c;for(var Vr in Qt)$r[Vr]=Qt[Vr];return $r.stream=yr,$r}}function $c(){}$c.prototype={constructor:$c,point:function(Qt,yr){this.stream.point(Qt,yr)},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 Gu(Qt,yr,$r){var Vr=Qt.clipExtent&&Qt.clipExtent();return Qt.scale(150).translate([0,0]),Vr!=null&&Qt.clipExtent(null),N($r,Qt.stream(ql)),yr(ql.result()),Vr!=null&&Qt.clipExtent(Vr),Qt}function Lu(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=yr[1][0]-yr[0][0],tn=yr[1][1]-yr[0][1],Ja=Math.min(ma/(Vr[1][0]-Vr[0][0]),tn/(Vr[1][1]-Vr[0][1])),Ln=+yr[0][0]+(ma-Ja*(Vr[1][0]+Vr[0][0]))/2,On=+yr[0][1]+(tn-Ja*(Vr[1][1]+Vr[0][1]))/2;Qt.scale(150*Ja).translate([Ln,On])},$r)}function Ml(Qt,yr,$r){return Lu(Qt,[[0,0],yr],$r)}function lc(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=+yr,tn=ma/(Vr[1][0]-Vr[0][0]),Ja=(ma-tn*(Vr[1][0]+Vr[0][0]))/2,Ln=-tn*Vr[0][1];Qt.scale(150*tn).translate([Ja,Ln])},$r)}function Wc(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=+yr,tn=ma/(Vr[1][1]-Vr[0][1]),Ja=-tn*Vr[0][0],Ln=(ma-tn*(Vr[1][1]+Vr[0][1]))/2;Qt.scale(150*tn).translate([Ja,Ln])},$r)}var Ms=16,Lc=l(30*f);function xf(Qt,yr){return+yr?Ac(Qt,yr):Kc(Qt)}function Kc(Qt){return bu({point:function(yr,$r){yr=Qt(yr,$r),this.stream.point(yr[0],yr[1])}})}function Ac(Qt,yr){function $r(Vr,ma,tn,Ja,Ln,On,Qn,_n,qn,En,dn,ai,Hi,Fi){var Zi=Qn-Vr,Wi=_n-ma,ii=Zi*Zi+Wi*Wi;if(ii>4*yr&&Hi--){var Wn=Ja+En,ao=Ln+dn,Fo=On+ai,hs=d(Wn*Wn+ao*ao+Fo*Fo),Is=y(Fo/=hs),vs=p(p(Fo)-1)yr||p((Zi*nl+Wi*Ls)/ii-.5)>.3||Ja*En+Ln*dn+On*ai2?wi[2]%360*f:0,nl()):[Ln*c,On*c,Qn*c]},Yo.angle=function(wi){return arguments.length?(qn=wi%360*f,nl()):qn*c},Yo.reflectX=function(wi){return arguments.length?(En=wi?-1:1,nl()):En<0},Yo.reflectY=function(wi){return arguments.length?(dn=wi?-1:1,nl()):dn<0},Yo.precision=function(wi){return arguments.length?(Fo=xf(hs,ao=wi*wi),Ls()):d(ao)},Yo.fitExtent=function(wi,go){return Lu(Yo,wi,go)},Yo.fitSize=function(wi,go){return Ml(Yo,wi,go)},Yo.fitWidth=function(wi,go){return lc(Yo,wi,go)},Yo.fitHeight=function(wi,go){return Wc(Yo,wi,go)};function nl(){var wi=el($r,0,0,En,dn,qn).apply(null,yr(tn,Ja)),go=(qn?el:Qc)($r,Vr-wi[0],ma-wi[1],En,dn,qn);return _n=wa(Ln,On,Qn),hs=ha(yr,go),Is=ha(_n,hs),Fo=xf(hs,ao),Ls()}function Ls(){return vs=Rs=null,Yo}return function(){return yr=Qt.apply(this,arguments),Yo.invert=yr.invert&&sl,nl()}}function Bs(Qt){var yr=0,$r=a/3,Vr=tc(Qt),ma=Vr(yr,$r);return ma.parallels=function(tn){return arguments.length?Vr(yr=tn[0]*f,$r=tn[1]*f):[yr*c,$r*c]},ma}function Hu(Qt){var yr=l(Qt);function $r(Vr,ma){return[Vr*yr,_(ma)/yr]}return $r.invert=function(Vr,ma){return[Vr/yr,y(ma*yr)]},$r}function Gl(Qt,yr){var $r=_(Qt),Vr=($r+_(yr))/2;if(p(Vr)=.12&&Fi<.234&&Hi>=-.425&&Hi<-.214?ma:Fi>=.166&&Fi<.234&&Hi>=-.214&&Hi<-.115?Ja:$r).invert(En)},_n.stream=function(En){return Qt&&yr===En?Qt:Qt=vc([$r.stream(yr=En),ma.stream(En),Ja.stream(En)])},_n.precision=function(En){return arguments.length?($r.precision(En),ma.precision(En),Ja.precision(En),qn()):$r.precision()},_n.scale=function(En){return arguments.length?($r.scale(En),ma.scale(En*.35),Ja.scale(En),_n.translate($r.translate())):$r.scale()},_n.translate=function(En){if(!arguments.length)return $r.translate();var dn=$r.scale(),ai=+En[0],Hi=+En[1];return Vr=$r.translate(En).clipExtent([[ai-.455*dn,Hi-.238*dn],[ai+.455*dn,Hi+.238*dn]]).stream(Qn),tn=ma.translate([ai-.307*dn,Hi+.201*dn]).clipExtent([[ai-.425*dn+r,Hi+.12*dn+r],[ai-.214*dn-r,Hi+.234*dn-r]]).stream(Qn),Ln=Ja.translate([ai-.205*dn,Hi+.212*dn]).clipExtent([[ai-.214*dn+r,Hi+.166*dn+r],[ai-.115*dn-r,Hi+.234*dn-r]]).stream(Qn),qn()},_n.fitExtent=function(En,dn){return Lu(_n,En,dn)},_n.fitSize=function(En,dn){return Ml(_n,En,dn)},_n.fitWidth=function(En,dn){return lc(_n,En,dn)},_n.fitHeight=function(En,dn){return Wc(_n,En,dn)};function qn(){return Qt=yr=null,_n}return _n.scale(1070)}function rc(Qt){return function(yr,$r){var Vr=l(yr),ma=l($r),tn=Qt(Vr*ma);return[tn*ma*_(yr),tn*_($r)]}}function Pc(Qt){return function(yr,$r){var Vr=d(yr*yr+$r*$r),ma=Qt(Vr),tn=_(ma),Ja=l(ma);return[T(yr*tn,Vr*Ja),y(Vr&&$r*tn/Vr)]}}var bf=rc(function(Qt){return d(2/(1+Qt))});bf.invert=Pc(function(Qt){return 2*y(Qt/2)});function Vf(){return ru(bf).scale(124.75).clipAngle(180-.001)}var dc=rc(function(Qt){return(Qt=g(Qt))&&Qt/_(Qt)});dc.invert=Pc(function(Qt){return Qt});function Ic(){return ru(dc).scale(79.4188).clipAngle(180-.001)}function fu(Qt,yr){return[Qt,S(u((o+yr)/2))]}fu.invert=function(Qt,yr){return[Qt,2*v(w(yr))-o]};function Rc(){return Rl(fu).scale(961/s)}function Rl(Qt){var yr=ru(Qt),$r=yr.center,Vr=yr.scale,ma=yr.translate,tn=yr.clipExtent,Ja=null,Ln,On,Qn;yr.scale=function(qn){return arguments.length?(Vr(qn),_n()):Vr()},yr.translate=function(qn){return arguments.length?(ma(qn),_n()):ma()},yr.center=function(qn){return arguments.length?($r(qn),_n()):$r()},yr.clipExtent=function(qn){return arguments.length?(qn==null?Ja=Ln=On=Qn=null:(Ja=+qn[0][0],Ln=+qn[0][1],On=+qn[1][0],Qn=+qn[1][1]),_n()):Ja==null?null:[[Ja,Ln],[On,Qn]]};function _n(){var qn=a*Vr(),En=yr(an(yr.rotate()).invert([0,0]));return tn(Ja==null?[[En[0]-qn,En[1]-qn],[En[0]+qn,En[1]+qn]]:Qt===fu?[[Math.max(En[0]-qn,Ja),Ln],[Math.min(En[0]+qn,On),Qn]]:[[Ja,Math.max(En[1]-qn,Ln)],[On,Math.min(En[1]+qn,Qn)]])}return _n()}function pc(Qt){return u((o+Qt)/2)}function ef(Qt,yr){var $r=l(Qt),Vr=Qt===yr?_(Qt):S($r/l(yr))/S(pc(yr)/pc(Qt)),ma=$r*M(pc(Qt),Vr)/Vr;if(!Vr)return fu;function tn(Ja,Ln){ma>0?Ln<-o+r&&(Ln=-o+r):Ln>o-r&&(Ln=o-r);var On=ma/M(pc(Ln),Vr);return[On*_(Vr*Ja),ma-On*l(Vr*Ja)]}return tn.invert=function(Ja,Ln){var On=ma-Ln,Qn=b(Vr)*d(Ja*Ja+On*On),_n=T(Ja,p(On))*b(On);return On*Vr<0&&(_n-=a*b(Ja)*b(On)),[_n/Vr,2*v(M(ma/Qn,1/Vr))-o]},tn}function gc(){return Bs(ef).scale(109.5).parallels([30,30])}function Gs(Qt,yr){return[Qt,yr]}Gs.invert=Gs;function nu(){return ru(Gs).scale(152.63)}function wu(Qt,yr){var $r=l(Qt),Vr=Qt===yr?_(Qt):($r-l(yr))/(yr-Qt),ma=$r/Vr+Qt;if(p(Vr)r&&--Vr>0);return[Qt/(.8707+(tn=$r*$r)*(-.131979+tn*(-.013791+tn*tn*tn*(.003971-.001529*tn)))),$r]};function Ru(){return ru(Wu).scale(175.295)}function al(Qt,yr){return[l(yr)*_(Qt),_(yr)]}al.invert=Pc(y);function Yl(){return ru(al).scale(249.5).clipAngle(90+r)}function Ks(Qt,yr){var $r=l(yr),Vr=1+l(Qt)*$r;return[$r*_(Qt)/Vr,_(yr)/Vr]}Ks.invert=Pc(function(Qt){return 2*v(Qt)});function nc(){return ru(Ks).scale(250).clipAngle(142)}function Du(Qt,yr){return[S(u((o+yr)/2)),-Qt]}Du.invert=function(Qt,yr){return[-yr,2*v(w(Qt))-o]};function Zc(){var Qt=Rl(Du),yr=Qt.center,$r=Qt.rotate;return Qt.center=function(Vr){return arguments.length?yr([-Vr[1],Vr[0]]):(Vr=yr(),[Vr[1],-Vr[0]])},Qt.rotate=function(Vr){return arguments.length?$r([Vr[0],Vr[1],Vr.length>2?Vr[2]+90:90]):(Vr=$r(),[Vr[0],Vr[1],Vr[2]-90])},$r([0,0,90]).scale(159.155)}h.geoAlbers=Ys,h.geoAlbersUsa=Pu,h.geoArea=V,h.geoAzimuthalEqualArea=Vf,h.geoAzimuthalEqualAreaRaw=bf,h.geoAzimuthalEquidistant=Ic,h.geoAzimuthalEquidistantRaw=dc,h.geoBounds=Fe,h.geoCentroid=Tr,h.geoCircle=Lr,h.geoClipAntimeridian=Ar,h.geoClipCircle=za,h.geoClipExtent=Kn,h.geoClipRectangle=mn,h.geoConicConformal=gc,h.geoConicConformalRaw=ef,h.geoConicEqualArea=au,h.geoConicEqualAreaRaw=Gl,h.geoConicEquidistant=Xc,h.geoConicEquidistantRaw=wu,h.geoContains=Mo,h.geoDistance=Ri,h.geoEqualEarth=wf,h.geoEqualEarthRaw=Ec,h.geoEquirectangular=nu,h.geoEquirectangularRaw=Gs,h.geoGnomonic=tf,h.geoGnomonicRaw=Fl,h.geoGraticule=Fs,h.geoGraticule10=Ss,h.geoIdentity=vu,h.geoInterpolate=Gi,h.geoLength=gs,h.geoMercator=Rc,h.geoMercatorRaw=fu,h.geoNaturalEarth1=Ru,h.geoNaturalEarth1Raw=Wu,h.geoOrthographic=Yl,h.geoOrthographicRaw=al,h.geoPath=Gc,h.geoProjection=ru,h.geoProjectionMutator=tc,h.geoRotation=an,h.geoStereographic=nc,h.geoStereographicRaw=Ks,h.geoStream=N,h.geoTransform=Hc,h.geoTransverseMercator=Zc,h.geoTransverseMercatorRaw=Du,Object.defineProperty(h,"__esModule",{value:!0})})}}),tP=He({"node_modules/d3-geo-projection/dist/d3-geo-projection.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,oT(),Hm()):x(h.d3=h.d3||{},h.d3,h.d3)})(Y,function(h,x,A){var E=Math.abs,e=Math.atan,t=Math.atan2,r=Math.cos,i=Math.exp,a=Math.floor,o=Math.log,n=Math.max,s=Math.min,c=Math.pow,f=Math.round,p=Math.sign||function(Ve){return Ve>0?1:Ve<0?-1:0},v=Math.sin,T=Math.tan,l=1e-6,m=1e-12,w=Math.PI,S=w/2,M=w/4,_=Math.SQRT1_2,b=F(2),d=F(w),u=w*2,g=180/w,y=w/180;function R(Ve){return Ve?Ve/Math.sin(Ve):1}function I(Ve){return Ve>1?S:Ve<-1?-S:Math.asin(Ve)}function z(Ve){return Ve>1?0:Ve<-1?w:Math.acos(Ve)}function F(Ve){return Ve>0?Math.sqrt(Ve):0}function B(Ve){return Ve=i(2*Ve),(Ve-1)/(Ve+1)}function O(Ve){return(i(Ve)-i(-Ve))/2}function P(Ve){return(i(Ve)+i(-Ve))/2}function N(Ve){return o(Ve+F(Ve*Ve+1))}function U(Ve){return o(Ve+F(Ve*Ve-1))}function X(Ve){var Ye=T(Ve/2),it=2*o(r(Ve/2))/(Ye*Ye);function vt(St,_t){var Lt=r(St),nr=r(_t),cr=v(_t),gr=nr*Lt,Cr=-((1-gr?o((1+gr)/2)/(1-gr):-.5)+it/(1+gr));return[Cr*nr*v(St),Cr*cr]}return vt.invert=function(St,_t){var Lt=F(St*St+_t*_t),nr=-Ve/2,cr=50,gr;if(!Lt)return[0,0];do{var Cr=nr/2,Wr=r(Cr),ua=v(Cr),va=ua/Wr,Ma=-o(E(Wr));nr-=gr=(2/va*Ma-it*va-Lt)/(-Ma/(ua*ua)+1-it/(2*Wr*Wr))*(Wr<0?.7:1)}while(E(gr)>l&&--cr>0);var en=v(nr);return[t(St*en,Lt*r(nr)),I(_t*en/Lt)]},vt}function te(){var Ve=S,Ye=x.geoProjectionMutator(X),it=Ye(Ve);return it.radius=function(vt){return arguments.length?Ye(Ve=vt*y):Ve*g},it.scale(179.976).clipAngle(147)}function ue(Ve,Ye){var it=r(Ye),vt=R(z(it*r(Ve/=2)));return[2*it*v(Ve)*vt,v(Ye)*vt]}ue.invert=function(Ve,Ye){if(!(Ve*Ve+4*Ye*Ye>w*w+l)){var it=Ve,vt=Ye,St=25;do{var _t=v(it),Lt=v(it/2),nr=r(it/2),cr=v(vt),gr=r(vt),Cr=v(2*vt),Wr=cr*cr,ua=gr*gr,va=Lt*Lt,Ma=1-ua*nr*nr,en=Ma?z(gr*nr)*F(Pn=1/Ma):Pn=0,Pn,Tn=2*en*gr*Lt-Ve,In=en*cr-Ye,oi=Pn*(ua*va+en*gr*nr*Wr),Si=Pn*(.5*_t*Cr-en*2*cr*Lt),_i=Pn*.25*(Cr*Lt-en*cr*ua*_t),Ki=Pn*(Wr*nr+en*va*gr),Go=Si*_i-Ki*oi;if(!Go)break;var Ho=(In*Si-Tn*Ki)/Go,Ao=(Tn*_i-In*oi)/Go;it-=Ho,vt-=Ao}while((E(Ho)>l||E(Ao)>l)&&--St>0);return[it,vt]}};function ie(){return x.geoProjection(ue).scale(152.63)}function le(Ve){var Ye=v(Ve),it=r(Ve),vt=Ve>=0?1:-1,St=T(vt*Ve),_t=(1+Ye-it)/2;function Lt(nr,cr){var gr=r(cr),Cr=r(nr/=2);return[(1+gr)*v(nr),(vt*cr>-t(Cr,St)-.001?0:-vt*10)+_t+v(cr)*it-(1+gr)*Ye*Cr]}return Lt.invert=function(nr,cr){var gr=0,Cr=0,Wr=50;do{var ua=r(gr),va=v(gr),Ma=r(Cr),en=v(Cr),Pn=1+Ma,Tn=Pn*va-nr,In=_t+en*it-Pn*Ye*ua-cr,oi=Pn*ua/2,Si=-va*en,_i=Ye*Pn*va/2,Ki=it*Ma+Ye*ua*en,Go=Si*_i-Ki*oi,Ho=(In*Si-Tn*Ki)/Go/2,Ao=(Tn*_i-In*oi)/Go;E(Ao)>2&&(Ao/=2),gr-=Ho,Cr-=Ao}while((E(Ho)>l||E(Ao)>l)&&--Wr>0);return vt*Cr>-t(r(gr),St)-.001?[gr*2,Cr]:null},Lt}function q(){var Ve=20*y,Ye=Ve>=0?1:-1,it=T(Ye*Ve),vt=x.geoProjectionMutator(le),St=vt(Ve),_t=St.stream;return St.parallel=function(Lt){return arguments.length?(it=T((Ye=(Ve=Lt*y)>=0?1:-1)*Ve),vt(Ve)):Ve*g},St.stream=function(Lt){var nr=St.rotate(),cr=_t(Lt),gr=(St.rotate([0,0]),_t(Lt)),Cr=St.precision();return St.rotate(nr),cr.sphere=function(){gr.polygonStart(),gr.lineStart();for(var Wr=Ye*-180;Ye*Wr<180;Wr+=Ye*90)gr.point(Wr,Ye*90);if(Ve)for(;Ye*(Wr-=3*Ye*Cr)>=-180;)gr.point(Wr,Ye*-t(r(Wr*y/2),it)*g);gr.lineEnd(),gr.polygonEnd()},cr},St.scale(218.695).center([0,28.0974])}function J(Ve,Ye){var it=T(Ye/2),vt=F(1-it*it),St=1+vt*r(Ve/=2),_t=v(Ve)*vt/St,Lt=it/St,nr=_t*_t,cr=Lt*Lt;return[4/3*_t*(3+nr-3*cr),4/3*Lt*(3+3*nr-cr)]}J.invert=function(Ve,Ye){if(Ve*=3/8,Ye*=3/8,!Ve&&E(Ye)>1)return null;var it=Ve*Ve,vt=Ye*Ye,St=1+it+vt,_t=F((St-F(St*St-4*Ye*Ye))/2),Lt=I(_t)/3,nr=_t?U(E(Ye/_t))/3:N(E(Ve))/3,cr=r(Lt),gr=P(nr),Cr=gr*gr-cr*cr;return[p(Ve)*2*t(O(nr)*cr,.25-Cr),p(Ye)*2*t(gr*v(Lt),.25+Cr)]};function ee(){return x.geoProjection(J).scale(66.1603)}var Z=F(8),se=o(1+b);function Q(Ve,Ye){var it=E(Ye);return itm&&--vt>0);return[Ve/(r(it)*(Z-1/v(it))),p(Ye)*it]};function V(){return x.geoProjection(Q).scale(112.314)}function re(Ve){var Ye=2*w/Ve;function it(vt,St){var _t=x.geoAzimuthalEquidistantRaw(vt,St);if(E(vt)>S){var Lt=t(_t[1],_t[0]),nr=F(_t[0]*_t[0]+_t[1]*_t[1]),cr=Ye*f((Lt-S)/Ye)+S,gr=t(v(Lt-=cr),2-r(Lt));Lt=cr+I(w/nr*v(gr))-gr,_t[0]=nr*r(Lt),_t[1]=nr*v(Lt)}return _t}return it.invert=function(vt,St){var _t=F(vt*vt+St*St);if(_t>S){var Lt=t(St,vt),nr=Ye*f((Lt-S)/Ye)+S,cr=Lt>nr?-1:1,gr=_t*r(nr-Lt),Cr=1/T(cr*z((gr-w)/F(w*(w-2*gr)+_t*_t)));Lt=nr+2*e((Cr+cr*F(Cr*Cr-3))/3),vt=_t*r(Lt),St=_t*v(Lt)}return x.geoAzimuthalEquidistantRaw.invert(vt,St)},it}function ae(){var Ve=5,Ye=x.geoProjectionMutator(re),it=Ye(Ve),vt=it.stream,St=.01,_t=-r(St*y),Lt=v(St*y);return it.lobes=function(nr){return arguments.length?Ye(Ve=+nr):Ve},it.stream=function(nr){var cr=it.rotate(),gr=vt(nr),Cr=(it.rotate([0,0]),vt(nr));return it.rotate(cr),gr.sphere=function(){Cr.polygonStart(),Cr.lineStart();for(var Wr=0,ua=360/Ve,va=2*w/Ve,Ma=90-180/Ve,en=S;Wr0&&E(St)>l);return vt<0?NaN:it}function Ce(Ve,Ye,it){return Ye===void 0&&(Ye=40),it===void 0&&(it=m),function(vt,St,_t,Lt){var nr,cr,gr;_t=_t===void 0?0:+_t,Lt=Lt===void 0?0:+Lt;for(var Cr=0;Crnr){_t-=cr/=2,Lt-=gr/=2;continue}nr=Ma;var en=(_t>0?-1:1)*it,Pn=(Lt>0?-1:1)*it,Tn=Ve(_t+en,Lt),In=Ve(_t,Lt+Pn),oi=(Tn[0]-Wr[0])/en,Si=(Tn[1]-Wr[1])/en,_i=(In[0]-Wr[0])/Pn,Ki=(In[1]-Wr[1])/Pn,Go=Ki*oi-Si*_i,Ho=(E(Go)<.5?.5:1)/Go;if(cr=(va*_i-ua*Ki)*Ho,gr=(ua*Si-va*oi)*Ho,_t+=cr,Lt+=gr,E(cr)0&&(nr[1]*=1+cr/1.5*nr[0]*nr[0]),nr}return vt.invert=Ce(vt),vt}function at(){return x.geoProjection(je()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function tt(Ve,Ye){var it=Ve*v(Ye),vt=30,St;do Ye-=St=(Ye+v(Ye)-it)/(1+r(Ye));while(E(St)>l&&--vt>0);return Ye/2}function Je(Ve,Ye,it){function vt(St,_t){return[Ve*St*r(_t=tt(it,_t)),Ye*v(_t)]}return vt.invert=function(St,_t){return _t=I(_t/Ye),[St/(Ve*r(_t)),I((2*_t+v(2*_t))/it)]},vt}var Ze=Je(b/S,b,w);function Me(){return x.geoProjection(Ze).scale(169.529)}var we=2.00276,he=1.11072;function De(Ve,Ye){var it=tt(w,Ye);return[we*Ve/(1/r(Ye)+he/r(it)),(Ye+b*v(it))/we]}De.invert=function(Ve,Ye){var it=we*Ye,vt=Ye<0?-M:M,St=25,_t,Lt;do Lt=it-b*v(vt),vt-=_t=(v(2*vt)+2*vt-w*v(Lt))/(2*r(2*vt)+2+w*r(Lt)*b*r(vt));while(E(_t)>l&&--St>0);return Lt=it-b*v(vt),[Ve*(1/r(Lt)+he/r(vt))/we,Lt]};function et(){return x.geoProjection(De).scale(160.857)}function nt(Ve){var Ye=0,it=x.geoProjectionMutator(Ve),vt=it(Ye);return vt.parallel=function(St){return arguments.length?it(Ye=St*y):Ye*g},vt}function Ke(Ve,Ye){return[Ve*r(Ye),Ye]}Ke.invert=function(Ve,Ye){return[Ve/r(Ye),Ye]};function Et(){return x.geoProjection(Ke).scale(152.63)}function kt(Ve){if(!Ve)return Ke;var Ye=1/T(Ve);function it(vt,St){var _t=Ye+Ve-St,Lt=_t&&vt*r(St)/_t;return[_t*v(Lt),Ye-_t*r(Lt)]}return it.invert=function(vt,St){var _t=F(vt*vt+(St=Ye-St)*St),Lt=Ye+Ve-_t;return[_t/r(Lt)*t(vt,St),Lt]},it}function Ut(){return nt(kt).scale(123.082).center([0,26.1441]).parallel(45)}function Yt(Ve){function Ye(it,vt){var St=S-vt,_t=St&&it*Ve*v(St)/St;return[St*v(_t)/Ve,S-St*r(_t)]}return Ye.invert=function(it,vt){var St=it*Ve,_t=S-vt,Lt=F(St*St+_t*_t),nr=t(St,_t);return[(Lt?Lt/v(Lt):1)*nr/Ve,S-Lt]},Ye}function vr(){var Ve=.5,Ye=x.geoProjectionMutator(Yt),it=Ye(Ve);return it.fraction=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(158.837)}var hr=Je(1,4/w,w);function Rr(){return x.geoProjection(hr).scale(152.63)}function dr(Ve,Ye,it,vt,St,_t){var Lt=r(_t),nr;if(E(Ve)>1||E(_t)>1)nr=z(it*St+Ye*vt*Lt);else{var cr=v(Ve/2),gr=v(_t/2);nr=2*I(F(cr*cr+Ye*vt*gr*gr))}return E(nr)>l?[nr,t(vt*v(_t),Ye*St-it*vt*Lt)]:[0,0]}function wr(Ve,Ye,it){return z((Ve*Ve+Ye*Ye-it*it)/(2*Ve*Ye))}function yt(Ve){return Ve-2*w*a((Ve+w)/(2*w))}function Fe(Ve,Ye,it){for(var vt=[[Ve[0],Ve[1],v(Ve[1]),r(Ve[1])],[Ye[0],Ye[1],v(Ye[1]),r(Ye[1])],[it[0],it[1],v(it[1]),r(it[1])]],St=vt[2],_t,Lt=0;Lt<3;++Lt,St=_t)_t=vt[Lt],St.v=dr(_t[1]-St[1],St[3],St[2],_t[3],_t[2],_t[0]-St[0]),St.point=[0,0];var nr=wr(vt[0].v[0],vt[2].v[0],vt[1].v[0]),cr=wr(vt[0].v[0],vt[1].v[0],vt[2].v[0]),gr=w-nr;vt[2].point[1]=0,vt[0].point[0]=-(vt[1].point[0]=vt[0].v[0]/2);var Cr=[vt[2].point[0]=vt[0].point[0]+vt[2].v[0]*r(nr),2*(vt[0].point[1]=vt[1].point[1]=vt[2].v[0]*v(nr))];function Wr(ua,va){var Ma=v(va),en=r(va),Pn=new Array(3),Tn;for(Tn=0;Tn<3;++Tn){var In=vt[Tn];if(Pn[Tn]=dr(va-In[1],In[3],In[2],en,Ma,ua-In[0]),!Pn[Tn][0])return In.point;Pn[Tn][1]=yt(Pn[Tn][1]-In.v[1])}var oi=Cr.slice();for(Tn=0;Tn<3;++Tn){var Si=Tn==2?0:Tn+1,_i=wr(vt[Tn].v[0],Pn[Tn][0],Pn[Si][0]);Pn[Tn][1]<0&&(_i=-_i),Tn?Tn==1?(_i=cr-_i,oi[0]-=Pn[Tn][0]*r(_i),oi[1]-=Pn[Tn][0]*v(_i)):(_i=gr-_i,oi[0]+=Pn[Tn][0]*r(_i),oi[1]+=Pn[Tn][0]*v(_i)):(oi[0]+=Pn[Tn][0]*r(_i),oi[1]-=Pn[Tn][0]*v(_i))}return oi[0]/=3,oi[1]/=3,oi}return Wr}function We(Ve){return Ve[0]*=y,Ve[1]*=y,Ve}function Oe(){return de([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function de(Ve,Ye,it){var vt=x.geoCentroid({type:"MultiPoint",coordinates:[Ve,Ye,it]}),St=[-vt[0],-vt[1]],_t=x.geoRotation(St),Lt=Fe(We(_t(Ve)),We(_t(Ye)),We(_t(it)));Lt.invert=Ce(Lt);var nr=x.geoProjection(Lt).rotate(St),cr=nr.center;return delete nr.rotate,nr.center=function(gr){return arguments.length?cr(_t(gr)):_t.invert(cr())},nr.clipAngle(90)}function me(Ve,Ye){var it=F(1-v(Ye));return[2/d*Ve*it,d*(1-it)]}me.invert=function(Ve,Ye){var it=(it=Ye/d-1)*it;return[it>0?Ve*F(w/it)/2:0,I(1-it)]};function be(){return x.geoProjection(me).scale(95.6464).center([0,30])}function Ie(Ve){var Ye=T(Ve);function it(vt,St){return[vt,(vt?vt/v(vt):1)*(v(St)*r(vt)-Ye*r(St))]}return it.invert=Ye?function(vt,St){vt&&(St*=v(vt)/vt);var _t=r(vt);return[vt,2*t(F(_t*_t+Ye*Ye-St*St)-_t,Ye-St)]}:function(vt,St){return[vt,I(vt?St*T(vt)/vt:St)]},it}function Xe(){return nt(Ie).scale(249.828).clipAngle(90)}var ht=F(3);function bt(Ve,Ye){return[ht*Ve*(2*r(2*Ye/3)-1)/d,ht*d*v(Ye/3)]}bt.invert=function(Ve,Ye){var it=3*I(Ye/(ht*d));return[d*Ve/(ht*(2*r(2*it/3)-1)),it]};function Ct(){return x.geoProjection(bt).scale(156.19)}function Zt(Ve){var Ye=r(Ve);function it(vt,St){return[vt*Ye,v(St)/Ye]}return it.invert=function(vt,St){return[vt/Ye,I(St*Ye)]},it}function Wt(){return nt(Zt).parallel(38.58).scale(195.044)}function rr(Ve){var Ye=r(Ve);function it(vt,St){return[vt*Ye,(1+Ye)*T(St/2)]}return it.invert=function(vt,St){return[vt/Ye,e(St/(1+Ye))*2]},it}function Jt(){return nt(rr).scale(124.75)}function mr(Ve,Ye){var it=F(8/(3*w));return[it*Ve*(1-E(Ye)/w),it*Ye]}mr.invert=function(Ve,Ye){var it=F(8/(3*w)),vt=Ye/it;return[Ve/(it*(1-E(vt)/w)),vt]};function ia(){return x.geoProjection(mr).scale(165.664)}function Ia(Ve,Ye){var it=F(4-3*v(E(Ye)));return[2/F(6*w)*Ve*it,p(Ye)*F(2*w/3)*(2-it)]}Ia.invert=function(Ve,Ye){var it=2-E(Ye)/F(2*w/3);return[Ve*F(6*w)/(2*it),p(Ye)*I((4-it*it)/3)]};function La(){return x.geoProjection(Ia).scale(165.664)}function Aa(Ve,Ye){var it=F(w*(4+w));return[2/it*Ve*(1+F(1-4*Ye*Ye/(w*w))),4/it*Ye]}Aa.invert=function(Ve,Ye){var it=F(w*(4+w))/2;return[Ve*it/(1+F(1-Ye*Ye*(4+w)/(4*w))),Ye*it/2]};function Ga(){return x.geoProjection(Aa).scale(180.739)}function ba(Ve,Ye){var it=(2+S)*v(Ye);Ye/=2;for(var vt=0,St=1/0;vt<10&&E(St)>l;vt++){var _t=r(Ye);Ye-=St=(Ye+v(Ye)*(_t+2)-it)/(2*_t*(1+_t))}return[2/F(w*(4+w))*Ve*(1+r(Ye)),2*F(w/(4+w))*v(Ye)]}ba.invert=function(Ve,Ye){var it=Ye*F((4+w)/w)/2,vt=I(it),St=r(vt);return[Ve/(2/F(w*(4+w))*(1+St)),I((vt+it*(St+2))/(2+S))]};function Xa(){return x.geoProjection(ba).scale(180.739)}function yn(Ve,Ye){return[Ve*(1+r(Ye))/F(2+w),2*Ye/F(2+w)]}yn.invert=function(Ve,Ye){var it=F(2+w),vt=Ye*it/2;return[it*Ve/(1+r(vt)),vt]};function Kt(){return x.geoProjection(yn).scale(173.044)}function zt(Ve,Ye){for(var it=(1+S)*v(Ye),vt=0,St=1/0;vt<10&&E(St)>l;vt++)Ye-=St=(Ye+v(Ye)-it)/(1+r(Ye));return it=F(2+w),[Ve*(1+r(Ye))/it,2*Ye/it]}zt.invert=function(Ve,Ye){var it=1+S,vt=F(it/2);return[Ve*2*vt/(1+r(Ye*=vt)),I((Ye+v(Ye))/it)]};function $t(){return x.geoProjection(zt).scale(173.044)}var Ht=3+2*b;function Tr(Ve,Ye){var it=v(Ve/=2),vt=r(Ve),St=F(r(Ye)),_t=r(Ye/=2),Lt=v(Ye)/(_t+b*vt*St),nr=F(2/(1+Lt*Lt)),cr=F((b*_t+(vt+it)*St)/(b*_t+(vt-it)*St));return[Ht*(nr*(cr-1/cr)-2*o(cr)),Ht*(nr*Lt*(cr+1/cr)-2*e(Lt))]}Tr.invert=function(Ve,Ye){if(!(_t=J.invert(Ve/1.2,Ye*1.065)))return null;var it=_t[0],vt=_t[1],St=20,_t;Ve/=Ht,Ye/=Ht;do{var Lt=it/2,nr=vt/2,cr=v(Lt),gr=r(Lt),Cr=v(nr),Wr=r(nr),ua=r(vt),va=F(ua),Ma=Cr/(Wr+b*gr*va),en=Ma*Ma,Pn=F(2/(1+en)),Tn=b*Wr+(gr+cr)*va,In=b*Wr+(gr-cr)*va,oi=Tn/In,Si=F(oi),_i=Si-1/Si,Ki=Si+1/Si,Go=Pn*_i-2*o(Si)-Ve,Ho=Pn*Ma*Ki-2*e(Ma)-Ye,Ao=Cr&&_*va*cr*en/Cr,Ko=(b*gr*Wr+va)/(2*(Wr+b*gr*va)*(Wr+b*gr*va)*va),Js=-.5*Ma*Pn*Pn*Pn,Hs=Js*Ao,ko=Js*Ko,Co=(Co=2*Wr+b*va*(gr-cr))*Co*Si,fl=(b*gr*Wr*va+ua)/Co,Dl=-(b*cr*Cr)/(va*Co),ou=_i*Hs-2*fl/Si+Pn*(fl+fl/oi),pe=_i*ko-2*Dl/Si+Pn*(Dl+Dl/oi),Le=Ma*Ki*Hs-2*Ao/(1+en)+Pn*Ki*Ao+Pn*Ma*(fl-fl/oi),$e=Ma*Ki*ko-2*Ko/(1+en)+Pn*Ki*Ko+Pn*Ma*(Dl-Dl/oi),dt=pe*Le-$e*ou;if(!dt)break;var gt=(Ho*pe-Go*$e)/dt,Tt=(Go*Le-Ho*ou)/dt;it-=gt,vt=n(-S,s(S,vt-Tt))}while((E(gt)>l||E(Tt)>l)&&--St>0);return E(E(vt)-S)vt){var Wr=F(Cr),ua=t(gr,cr),va=it*f(ua/it),Ma=ua-va,en=Ve*r(Ma),Pn=(Ve*v(Ma)-Ma*v(en))/(S-en),Tn=Mr(Ma,Pn),In=(w-Ve)/br(Tn,en,w);cr=Wr;var oi=50,Si;do cr-=Si=(Ve+br(Tn,en,cr)*In-Wr)/(Tn(cr)*In);while(E(Si)>l&&--oi>0);gr=Ma*v(cr),crvt){var cr=F(nr),gr=t(Lt,_t),Cr=it*f(gr/it),Wr=gr-Cr;_t=cr*r(Wr),Lt=cr*v(Wr);for(var ua=_t-S,va=v(_t),Ma=Lt/va,en=_tl||E(Ma)>l)&&--en>0);return[Wr,ua]},cr}var Dr=jr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Hr(){return x.geoProjection(Dr).scale(149.995)}var na=jr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function ta(){return x.geoProjection(na).scale(153.93)}var At=jr(5/6*w,-.62636,-.0344,0,1.3493,-.05524,0,.045);function or(){return x.geoProjection(At).scale(130.945)}function Ar(Ve,Ye){var it=Ve*Ve,vt=Ye*Ye;return[Ve*(1-.162388*vt)*(.87-952426e-9*it*it),Ye*(1+vt/12)]}Ar.invert=function(Ve,Ye){var it=Ve,vt=Ye,St=50,_t;do{var Lt=vt*vt;vt-=_t=(vt*(1+Lt/12)-Ye)/(1+Lt/4)}while(E(_t)>l&&--St>0);St=50,Ve/=1-.162388*Lt;do{var nr=(nr=it*it)*nr;it-=_t=(it*(.87-952426e-9*nr)-Ve)/(.87-.00476213*nr)}while(E(_t)>l&&--St>0);return[it,vt]};function oa(){return x.geoProjection(Ar).scale(131.747)}var ga=jr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sa(){return x.geoProjection(ga).scale(131.087)}function za(Ve){var Ye=Ve(S,0)[0]-Ve(-S,0)[0];function it(vt,St){var _t=vt>0?-.5:.5,Lt=Ve(vt+_t*w,St);return Lt[0]-=_t*Ye,Lt}return Ve.invert&&(it.invert=function(vt,St){var _t=vt>0?-.5:.5,Lt=Ve.invert(vt+_t*Ye,St),nr=Lt[0]-_t*w;return nr<-w?nr+=2*w:nr>w&&(nr-=2*w),Lt[0]=nr,Lt}),it}function ra(Ve,Ye){var it=p(Ve),vt=p(Ye),St=r(Ye),_t=r(Ve)*St,Lt=v(Ve)*St,nr=v(vt*Ye);Ve=E(t(Lt,nr)),Ye=I(_t),E(Ve-S)>l&&(Ve%=S);var cr=Ta(Ve>w/4?S-Ve:Ve,Ye);return Ve>w/4&&(nr=cr[0],cr[0]=-cr[1],cr[1]=-nr),cr[0]*=it,cr[1]*=-vt,cr}ra.invert=function(Ve,Ye){E(Ve)>1&&(Ve=p(Ve)*2-Ve),E(Ye)>1&&(Ye=p(Ye)*2-Ye);var it=p(Ve),vt=p(Ye),St=-it*Ve,_t=-vt*Ye,Lt=_t/St<1,nr=Fn(Lt?_t:St,Lt?St:_t),cr=nr[0],gr=nr[1],Cr=r(gr);return Lt&&(cr=-S-cr),[it*(t(v(cr)*Cr,-v(gr))+w),vt*I(r(cr)*Cr)]};function Ta(Ve,Ye){if(Ye===S)return[0,0];var it=v(Ye),vt=it*it,St=vt*vt,_t=1+St,Lt=1+3*St,nr=1-St,cr=I(1/F(_t)),gr=nr+vt*_t*cr,Cr=(1-it)/gr,Wr=F(Cr),ua=Cr*_t,va=F(ua),Ma=Wr*nr,en,Pn;if(Ve===0)return[0,-(Ma+vt*va)];var Tn=r(Ye),In=1/Tn,oi=2*it*Tn,Si=(-3*vt+cr*Lt)*oi,_i=(-gr*Tn-(1-it)*Si)/(gr*gr),Ki=.5*_i/Wr,Go=nr*Ki-2*vt*Wr*oi,Ho=vt*_t*_i+Cr*Lt*oi,Ao=-In*oi,Ko=-In*Ho,Js=-2*In*Go,Hs=4*Ve/w,ko;if(Ve>.222*w||Ye.175*w){if(en=(Ma+vt*F(ua*(1+St)-Ma*Ma))/(1+St),Ve>w/4)return[en,en];var Co=en,fl=.5*en;en=.5*(fl+Co),Pn=50;do{var Dl=F(ua-en*en),ou=en*(Js+Ao*Dl)+Ko*I(en/va)-Hs;if(!ou)break;ou<0?fl=en:Co=en,en=.5*(fl+Co)}while(E(Co-fl)>l&&--Pn>0)}else{en=l,Pn=25;do{var pe=en*en,Le=F(ua-pe),$e=Js+Ao*Le,dt=en*$e+Ko*I(en/va)-Hs,gt=$e+(Ko-Ao*pe)/Le;en-=ko=Le?dt/gt:0}while(E(ko)>l&&--Pn>0)}return[en,-Ma-vt*F(ua-en*en)]}function Fn(Ve,Ye){for(var it=0,vt=1,St=.5,_t=50;;){var Lt=St*St,nr=F(St),cr=I(1/F(1+Lt)),gr=1-Lt+St*(1+Lt)*cr,Cr=(1-nr)/gr,Wr=F(Cr),ua=Cr*(1+Lt),va=Wr*(1-Lt),Ma=ua-Ve*Ve,en=F(Ma),Pn=Ye+va+St*en;if(E(vt-it)0?it=St:vt=St,St=.5*(it+vt)}if(!_t)return null;var Tn=I(nr),In=r(Tn),oi=1/In,Si=2*nr*In,_i=(-3*St+cr*(1+3*Lt))*Si,Ki=(-gr*In-(1-nr)*_i)/(gr*gr),Go=.5*Ki/Wr,Ho=(1-Lt)*Go-2*St*Wr*Si,Ao=-2*oi*Ho,Ko=-oi*Si,Js=-oi*(St*(1+Lt)*Ki+Cr*(1+3*Lt)*Si);return[w/4*(Ve*(Ao+Ko*en)+Js*I(Ve/F(ua))),Tn]}function mn(){return x.geoProjection(za(ra)).scale(239.75)}function Kn(Ve,Ye,it){var vt,St,_t;return Ve?(vt=ui(Ve,it),Ye?(St=ui(Ye,1-it),_t=St[1]*St[1]+it*vt[0]*vt[0]*St[0]*St[0],[[vt[0]*St[2]/_t,vt[1]*vt[2]*St[0]*St[1]/_t],[vt[1]*St[1]/_t,-vt[0]*vt[2]*St[0]*St[2]/_t],[vt[2]*St[1]*St[2]/_t,-it*vt[0]*vt[1]*St[0]/_t]]):[[vt[0],0],[vt[1],0],[vt[2],0]]):(St=ui(Ye,1-it),[[0,St[0]/St[1]],[1/St[1],0],[St[2]/St[1],0]])}function ui(Ve,Ye){var it,vt,St,_t,Lt;if(Ye=1-l)return it=(1-Ye)/4,vt=P(Ve),_t=B(Ve),St=1/vt,Lt=vt*O(Ve),[_t+it*(Lt-Ve)/(vt*vt),St-it*_t*St*(Lt-Ve),St+it*_t*St*(Lt+Ve),2*e(i(Ve))-S+it*(Lt-Ve)/vt];var nr=[1,0,0,0,0,0,0,0,0],cr=[F(Ye),0,0,0,0,0,0,0,0],gr=0;for(vt=F(1-Ye),Lt=1;E(cr[gr]/nr[gr])>l&&gr<8;)it=nr[gr++],cr[gr]=(it-vt)/2,nr[gr]=(it+vt)/2,vt=F(it*vt),Lt*=2;St=Lt*nr[gr]*Ve;do _t=cr[gr]*v(vt=St)/nr[gr],St=(I(_t)+St)/2;while(--gr);return[v(St),_t=r(St),_t/r(St-vt),St]}function pi(Ve,Ye,it){var vt=E(Ve),St=E(Ye),_t=O(St);if(vt){var Lt=1/v(vt),nr=1/(T(vt)*T(vt)),cr=-(nr+it*(_t*_t*Lt*Lt)-1+it),gr=(it-1)*nr,Cr=(-cr+F(cr*cr-4*gr))/2;return[vi(e(1/F(Cr)),it)*p(Ve),vi(e(F((Cr/nr-1)/it)),1-it)*p(Ye)]}return[0,vi(e(_t),1-it)*p(Ye)]}function vi(Ve,Ye){if(!Ye)return Ve;if(Ye===1)return o(T(Ve/2+M));for(var it=1,vt=F(1-Ye),St=F(Ye),_t=0;E(St)>l;_t++){if(Ve%w){var Lt=e(vt*T(Ve)/it);Lt<0&&(Lt+=w),Ve+=Lt+~~(Ve/w)*w}else Ve+=Ve;St=(it+vt)/2,vt=F(it*vt),St=((it=St)-vt)/2}return Ve/(c(2,_t)*it)}function Li(Ve,Ye){var it=(b-1)/(b+1),vt=F(1-it*it),St=vi(S,vt*vt),_t=-1,Lt=o(T(w/4+E(Ye)/2)),nr=i(_t*Lt)/F(it),cr=Ni(nr*r(_t*Ve),nr*v(_t*Ve)),gr=pi(cr[0],cr[1],vt*vt);return[-gr[1],(Ye>=0?1:-1)*(.5*St-gr[0])]}function Ni(Ve,Ye){var it=Ve*Ve,vt=Ye+1,St=1-it-Ye*Ye;return[.5*((Ve>=0?S:-S)-t(St,2*Ve)),-.25*o(St*St+4*it)+.5*o(vt*vt+it)]}function ci(Ve,Ye){var it=Ye[0]*Ye[0]+Ye[1]*Ye[1];return[(Ve[0]*Ye[0]+Ve[1]*Ye[1])/it,(Ve[1]*Ye[0]-Ve[0]*Ye[1])/it]}Li.invert=function(Ve,Ye){var it=(b-1)/(b+1),vt=F(1-it*it),St=vi(S,vt*vt),_t=-1,Lt=Kn(.5*St-Ye,-Ve,vt*vt),nr=ci(Lt[0],Lt[1]),cr=t(nr[1],nr[0])/_t;return[cr,2*e(i(.5/_t*o(it*nr[0]*nr[0]+it*nr[1]*nr[1])))-S]};function bi(){return x.geoProjection(za(Li)).scale(151.496)}function ho(Ve){var Ye=v(Ve),it=r(Ve),vt=Bo(Ve);vt.invert=Bo(-Ve);function St(_t,Lt){var nr=vt(_t,Lt);_t=nr[0],Lt=nr[1];var cr=v(Lt),gr=r(Lt),Cr=r(_t),Wr=z(Ye*cr+it*gr*Cr),ua=v(Wr),va=E(ua)>l?Wr/ua:1;return[va*it*v(_t),(E(_t)>S?va:-va)*(Ye*gr-it*cr*Cr)]}return St.invert=function(_t,Lt){var nr=F(_t*_t+Lt*Lt),cr=-v(nr),gr=r(nr),Cr=nr*gr,Wr=-Lt*cr,ua=nr*Ye,va=F(Cr*Cr+Wr*Wr-ua*ua),Ma=t(Cr*ua+Wr*va,Wr*ua-Cr*va),en=(nr>S?-1:1)*t(_t*cr,nr*r(Ma)*gr+Lt*v(Ma)*cr);return vt.invert(en,Ma)},St}function Bo(Ve){var Ye=v(Ve),it=r(Ve);return function(vt,St){var _t=r(St),Lt=r(vt)*_t,nr=v(vt)*_t,cr=v(St);return[t(nr,Lt*it-cr*Ye),I(cr*it+Lt*Ye)]}}function gs(){var Ve=0,Ye=x.geoProjectionMutator(ho),it=Ye(Ve),vt=it.rotate,St=it.stream,_t=x.geoCircle();return it.parallel=function(Lt){if(!arguments.length)return Ve*g;var nr=it.rotate();return Ye(Ve=Lt*y).rotate(nr)},it.rotate=function(Lt){return arguments.length?(vt.call(it,[Lt[0],Lt[1]-Ve*g]),_t.center([-Lt[0],-Lt[1]]),it):(Lt=vt.call(it),Lt[1]+=Ve*g,Lt)},it.stream=function(Lt){return Lt=St(Lt),Lt.sphere=function(){Lt.polygonStart();var nr=.01,cr=_t.radius(90-nr)().coordinates[0],gr=cr.length-1,Cr=-1,Wr;for(Lt.lineStart();++Cr=0;)Lt.point((Wr=cr[Cr])[0],Wr[1]);Lt.lineEnd(),Lt.polygonEnd()},Lt},it.scale(79.4187).parallel(45).clipAngle(180-.001)}var ro=3,Ei=I(1-1/ro)*g,Ri=Zt(0);function xo(Ve){var Ye=Ei*y,it=me(w,Ye)[0]-me(-w,Ye)[0],vt=Ri(0,Ye)[1],St=me(0,Ye)[1],_t=d-St,Lt=u/Ve,nr=4/u,cr=vt+_t*_t*4/u;function gr(Cr,Wr){var ua,va=E(Wr);if(va>Ye){var Ma=s(Ve-1,n(0,a((Cr+w)/Lt)));Cr+=w*(Ve-1)/Ve-Ma*Lt,ua=me(Cr,va),ua[0]=ua[0]*u/it-u*(Ve-1)/(2*Ve)+Ma*u/Ve,ua[1]=vt+(ua[1]-St)*4*_t/u,Wr<0&&(ua[1]=-ua[1])}else ua=Ri(Cr,Wr);return ua[0]*=nr,ua[1]/=cr,ua}return gr.invert=function(Cr,Wr){Cr/=nr,Wr*=cr;var ua=E(Wr);if(ua>vt){var va=s(Ve-1,n(0,a((Cr+w)/Lt)));Cr=(Cr+w*(Ve-1)/Ve-va*Lt)*it/u;var Ma=me.invert(Cr,.25*(ua-vt)*u/_t+St);return Ma[0]-=w*(Ve-1)/Ve-va*Lt,Wr<0&&(Ma[1]=-Ma[1]),Ma}return Ri.invert(Cr,Wr)},gr}function So(Ve,Ye){return[Ve,Ye&1?90-l:Ei]}function bo(Ve,Ye){return[Ve,Ye&1?-90+l:-Ei]}function Ui(Ve){return[Ve[0]*(1-l),Ve[1]]}function no(Ve){var Ye=[].concat(A.range(-180,180+Ve/2,Ve).map(So),A.range(180,-180-Ve/2,-Ve).map(bo));return{type:"Polygon",coordinates:[Ve===180?Ye.map(Ui):Ye]}}function cs(){var Ve=4,Ye=x.geoProjectionMutator(xo),it=Ye(Ve),vt=it.stream;return it.lobes=function(St){return arguments.length?Ye(Ve=+St):Ve},it.stream=function(St){var _t=it.rotate(),Lt=vt(St),nr=(it.rotate([0,0]),vt(St));return it.rotate(_t),Lt.sphere=function(){x.geoStream(no(180/Ve),nr)},Lt},it.scale(239.75)}function ks(Ve){var Ye=1+Ve,it=v(1/Ye),vt=I(it),St=2*F(w/(_t=w+4*vt*Ye)),_t,Lt=.5*St*(Ye+F(Ve*(2+Ve))),nr=Ve*Ve,cr=Ye*Ye;function gr(Cr,Wr){var ua=1-v(Wr),va,Ma;if(ua&&ua<2){var en=S-Wr,Pn=25,Tn;do{var In=v(en),oi=r(en),Si=vt+t(In,Ye-oi),_i=1+cr-2*Ye*oi;en-=Tn=(en-nr*vt-Ye*In+_i*Si-.5*ua*_t)/(2*Ye*In*Si)}while(E(Tn)>m&&--Pn>0);va=St*F(_i),Ma=Cr*Si/w}else va=St*(Ve+ua),Ma=Cr*vt/w;return[va*v(Ma),Lt-va*r(Ma)]}return gr.invert=function(Cr,Wr){var ua=Cr*Cr+(Wr-=Lt)*Wr,va=(1+cr-ua/(St*St))/(2*Ye),Ma=z(va),en=v(Ma),Pn=vt+t(en,Ye-va);return[I(Cr/F(ua))*w/Pn,I(1-2*(Ma-nr*vt-Ye*en+(1+cr-2*Ye*va)*Pn)/_t)]},gr}function ms(){var Ve=1,Ye=x.geoProjectionMutator(ks),it=Ye(Ve);return it.ratio=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(167.774).center([0,18.67])}var Mo=.7109889596207567,kn=.0528035274542;function fi(Ve,Ye){return Ye>-Mo?(Ve=Ze(Ve,Ye),Ve[1]+=kn,Ve):Ke(Ve,Ye)}fi.invert=function(Ve,Ye){return Ye>-Mo?Ze.invert(Ve,Ye-kn):Ke.invert(Ve,Ye)};function Fs(){return x.geoProjection(fi).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ss(Ve,Ye){return E(Ye)>Mo?(Ve=Ze(Ve,Ye),Ve[1]-=Ye>0?kn:-kn,Ve):Ke(Ve,Ye)}Ss.invert=function(Ve,Ye){return E(Ye)>Mo?Ze.invert(Ve,Ye+(Ye>0?kn:-kn)):Ke.invert(Ve,Ye)};function Gi(){return x.geoProjection(Ss).scale(152.63)}function js(Ve,Ye,it,vt){var St=F(4*w/(2*it+(1+Ve-Ye/2)*v(2*it)+(Ve+Ye)/2*v(4*it)+Ye/2*v(6*it))),_t=F(vt*v(it)*F((1+Ve*r(2*it)+Ye*r(4*it))/(1+Ve+Ye))),Lt=it*cr(1);function nr(Wr){return F(1+Ve*r(2*Wr)+Ye*r(4*Wr))}function cr(Wr){var ua=Wr*it;return(2*ua+(1+Ve-Ye/2)*v(2*ua)+(Ve+Ye)/2*v(4*ua)+Ye/2*v(6*ua))/it}function gr(Wr){return nr(Wr)*v(Wr)}var Cr=function(Wr,ua){var va=it*Pe(cr,Lt*v(ua)/it,ua/w);isNaN(va)&&(va=it*p(ua));var Ma=St*nr(va);return[Ma*_t*Wr/w*r(va),Ma/_t*v(va)]};return Cr.invert=function(Wr,ua){var va=Pe(gr,ua*_t/St);return[Wr*w/(r(va)*St*_t*nr(va)),I(it*cr(va/it)/Lt)]},it===0&&(St=F(vt/w),Cr=function(Wr,ua){return[Wr*St,v(ua)/St]},Cr.invert=function(Wr,ua){return[Wr/St,I(ua*St)]}),Cr}function No(){var Ve=1,Ye=0,it=45*y,vt=2,St=x.geoProjectionMutator(js),_t=St(Ve,Ye,it,vt);return _t.a=function(Lt){return arguments.length?St(Ve=+Lt,Ye,it,vt):Ve},_t.b=function(Lt){return arguments.length?St(Ve,Ye=+Lt,it,vt):Ye},_t.psiMax=function(Lt){return arguments.length?St(Ve,Ye,it=+Lt*y,vt):it*g},_t.ratio=function(Lt){return arguments.length?St(Ve,Ye,it,vt=+Lt):vt},_t.scale(180.739)}function es(Ve,Ye,it,vt,St,_t,Lt,nr,cr,gr,Cr){if(Cr.nanEncountered)return NaN;var Wr,ua,va,Ma,en,Pn,Tn,In,oi,Si;if(Wr=it-Ye,ua=Ve(Ye+Wr*.25),va=Ve(it-Wr*.25),isNaN(ua)){Cr.nanEncountered=!0;return}if(isNaN(va)){Cr.nanEncountered=!0;return}return Ma=Wr*(vt+4*ua+St)/12,en=Wr*(St+4*va+_t)/12,Pn=Ma+en,Si=(Pn-Lt)/15,gr>cr?(Cr.maxDepthCount++,Pn+Si):Math.abs(Si)>1;do cr[Pn]>va?en=Pn:Ma=Pn,Pn=Ma+en>>1;while(Pn>Ma);var Tn=cr[Pn+1]-cr[Pn];return Tn&&(Tn=(va-cr[Pn+1])/Tn),(Pn+1+Tn)/Lt}var Wr=2*Cr(1)/w*_t/it,ua=function(va,Ma){var en=Cr(E(v(Ma))),Pn=vt(en)*va;return en/=Wr,[Pn,Ma>=0?en:-en]};return ua.invert=function(va,Ma){var en;return Ma*=Wr,E(Ma)<1&&(en=p(Ma)*I(St(E(Ma))*_t)),[va/vt(E(Ma)),en]},ua}function so(){var Ve=0,Ye=2.5,it=1.183136,vt=x.geoProjectionMutator(hi),St=vt(Ve,Ye,it);return St.alpha=function(_t){return arguments.length?vt(Ve=+_t,Ye,it):Ve},St.k=function(_t){return arguments.length?vt(Ve,Ye=+_t,it):Ye},St.gamma=function(_t){return arguments.length?vt(Ve,Ye,it=+_t):it},St.scale(152.63)}function Oi(Ve,Ye){return E(Ve[0]-Ye[0])=0;--cr)it=Ve[1][cr],vt=it[0][0],St=it[0][1],_t=it[1][1],Lt=it[2][0],nr=it[2][1],Ye.push(Zo([[Lt-l,nr-l],[Lt-l,_t+l],[vt+l,_t+l],[vt+l,St-l]],30));return{type:"Polygon",coordinates:[A.merge(Ye)]}}function Di(Ve,Ye,it){var vt,St;function _t(cr,gr){for(var Cr=gr<0?-1:1,Wr=Ye[+(gr<0)],ua=0,va=Wr.length-1;uaWr[ua][2][0];++ua);var Ma=Ve(cr-Wr[ua][1][0],gr);return Ma[0]+=Ve(Wr[ua][1][0],Cr*gr>Cr*Wr[ua][0][1]?Wr[ua][0][1]:gr)[0],Ma}it?_t.invert=it(_t):Ve.invert&&(_t.invert=function(cr,gr){for(var Cr=St[+(gr<0)],Wr=Ye[+(gr<0)],ua=0,va=Cr.length;uaMa&&(en=va,va=Ma,Ma=en),[[Wr,va],[ua,Ma]]})}),Lt):Ye.map(function(gr){return gr.map(function(Cr){return[[Cr[0][0]*g,Cr[0][1]*g],[Cr[1][0]*g,Cr[1][1]*g],[Cr[2][0]*g,Cr[2][1]*g]]})})},Ye!=null&&Lt.lobes(Ye),Lt}var ys=[[[[-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 wl(){return Di(De,ys).scale(160.857)}var Xs=[[[[-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 Di(Ss,Xs).scale(152.63)}var rl=[[[[-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 Cs(){return Di(Ze,rl).scale(169.529)}var ql=[[[[-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 ju(){return Di(Ze,ql).scale(169.529).rotate([20,0])}var Vu=[[[[-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 yu(){return Di(fi,Vu,Ce).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var jc=[[[[-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 ff(){return Di(Ke,jc).scale(152.63).rotate([-20,0])}function _s(Ve,Ye){return[3/u*Ve*F(w*w/3-Ye*Ye),Ye]}_s.invert=function(Ve,Ye){return[u/3*Ve/F(w*w/3-Ye*Ye),Ye]};function Cu(){return x.geoProjection(_s).scale(158.837)}function Vc(Ve){function Ye(it,vt){if(E(E(vt)-S)2)return null;it/=2,vt/=2;var _t=it*it,Lt=vt*vt,nr=2*vt/(1+_t+Lt);return nr=c((1+nr)/(1-nr),1/Ve),[t(2*it,1-_t-Lt)/Ve,I((nr-1)/(nr+1))]},Ye}function Pl(){var Ve=.5,Ye=x.geoProjectionMutator(Vc),it=Ye(Ve);return it.spacing=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(124.75)}var Tl=w/b;function Il(Ve,Ye){return[Ve*(1+F(r(Ye)))/2,Ye/(r(Ye/2)*r(Ve/6))]}Il.invert=function(Ve,Ye){var it=E(Ve),vt=E(Ye),St=l,_t=S;vtl||E(Pn)>l)&&--St>0);return St&&[it,vt]};function Al(){return x.geoProjection(Os).scale(139.98)}function Uo(Ve,Ye){return[v(Ve)/r(Ye),T(Ye)*r(Ve)]}Uo.invert=function(Ve,Ye){var it=Ve*Ve,vt=Ye*Ye,St=vt+1,_t=it+St,Lt=Ve?_*F((_t-F(_t*_t-4*it))/it):1/F(St);return[I(Ve*Lt),p(Ye)*z(Lt)]};function bs(){return x.geoProjection(Uo).scale(144.049).clipAngle(90-.001)}function qu(Ve){var Ye=r(Ve),it=T(M+Ve/2);function vt(St,_t){var Lt=_t-Ve,nr=E(Lt)=0;)Cr=Ve[gr],Wr=Cr[0]+nr*(va=Wr)-cr*ua,ua=Cr[1]+nr*ua+cr*va;return Wr=nr*(va=Wr)-cr*ua,ua=nr*ua+cr*va,[Wr,ua]}return it.invert=function(vt,St){var _t=20,Lt=vt,nr=St;do{for(var cr=Ye,gr=Ve[cr],Cr=gr[0],Wr=gr[1],ua=0,va=0,Ma;--cr>=0;)gr=Ve[cr],ua=Cr+Lt*(Ma=ua)-nr*va,va=Wr+Lt*va+nr*Ma,Cr=gr[0]+Lt*(Ma=Cr)-nr*Wr,Wr=gr[1]+Lt*Wr+nr*Ma;ua=Cr+Lt*(Ma=ua)-nr*va,va=Wr+Lt*va+nr*Ma,Cr=Lt*(Ma=Cr)-nr*Wr-vt,Wr=Lt*Wr+nr*Ma-St;var en=ua*ua+va*va,Pn,Tn;Lt-=Pn=(Cr*ua+Wr*va)/en,nr-=Tn=(Wr*ua-Cr*va)/en}while(E(Pn)+E(Tn)>l*l&&--_t>0);if(_t){var In=F(Lt*Lt+nr*nr),oi=2*e(In*.5),Si=v(oi);return[t(Lt*Si,In*r(oi)),In?I(nr*Si/In):0]}},it}var zo=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Rf=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],is=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Bi=[[.9245,0],[0,0],[.01943,0]],hc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function xu(){return Sl(zo,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function dl(){return Sl(Rf,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function qc(){return Sl(is,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Qu(){return Sl(Bi,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function wc(){return Sl(hc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Sl(Ve,Ye){var it=x.geoProjection(_f(Ve)).rotate(Ye).clipAngle(90),vt=x.geoRotation(Ye),St=it.center;return delete it.rotate,it.center=function(_t){return arguments.length?St(vt(_t)):vt.invert(St())},it}var hf=F(6),Yc=F(7);function Tc(Ve,Ye){var it=I(7*v(Ye)/(3*hf));return[hf*Ve*(2*r(2*it/3)-1)/Yc,9*v(it/3)/Yc]}Tc.invert=function(Ve,Ye){var it=3*I(Ye*Yc/9);return[Ve*Yc/(hf*(2*r(2*it/3)-1)),I(v(it)*3*hf/7)]};function ec(){return x.geoProjection(Tc).scale(164.859)}function Gc(Ve,Ye){for(var it=(1+_)*v(Ye),vt=Ye,St=0,_t;St<25&&(vt-=_t=(v(vt/2)+v(vt)-it)/(.5*r(vt/2)+r(vt)),!(E(_t)m&&--vt>0);return _t=it*it,Lt=_t*_t,nr=_t*Lt,[Ve/(.84719-.13063*_t+nr*nr*(-.04515+.05494*_t-.02326*Lt+.00331*nr)),it]};function Lu(){return x.geoProjection(Gu).scale(175.295)}function Ml(Ve,Ye){return[Ve*(1+r(Ye))/2,2*(Ye-T(Ye/2))]}Ml.invert=function(Ve,Ye){for(var it=Ye/2,vt=0,St=1/0;vt<10&&E(St)>l;++vt){var _t=r(Ye/2);Ye-=St=(Ye-T(Ye/2)-it)/(1-.5/(_t*_t))}return[2*Ve/(1+r(Ye)),Ye]};function lc(){return x.geoProjection(Ml).scale(152.63)}var Wc=[[[[-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 Ms(){return Di(fe(1/0),Wc).rotate([20,0]).scale(152.63)}function Lc(Ve,Ye){var it=v(Ye),vt=r(Ye),St=p(Ve);if(Ve===0||E(Ye)===S)return[0,Ye];if(Ye===0)return[Ve,0];if(E(Ve)===S)return[Ve*vt,S*it];var _t=w/(2*Ve)-2*Ve/w,Lt=2*Ye/w,nr=(1-Lt*Lt)/(it-Lt),cr=_t*_t,gr=nr*nr,Cr=1+cr/gr,Wr=1+gr/cr,ua=(_t*it/nr-_t/2)/Cr,va=(gr*it/cr+nr/2)/Wr,Ma=ua*ua+vt*vt/Cr,en=va*va-(gr*it*it/cr+nr*it-1)/Wr;return[S*(ua+F(Ma)*St),S*(va+F(en<0?0:en)*p(-Ye*_t)*St)]}Lc.invert=function(Ve,Ye){Ve/=S,Ye/=S;var it=Ve*Ve,vt=Ye*Ye,St=it+vt,_t=w*w;return[Ve?(St-1+F((1-St)*(1-St)+4*it))/(2*Ve)*S:0,Pe(function(Lt){return St*(w*v(Lt)-2*Lt)*w+4*Lt*Lt*(Ye-v(Lt))+2*w*Lt-_t*Ye},0)]};function xf(){return x.geoProjection(Lc).scale(127.267)}var Kc=1.0148,Ac=.23185,Jc=-.14499,tu=.02406,Qc=Kc,el=5*Ac,ru=7*Jc,tc=9*tu,Bs=1.790857183;function Hu(Ve,Ye){var it=Ye*Ye;return[Ve,Ye*(Kc+it*it*(Ac+it*(Jc+tu*it)))]}Hu.invert=function(Ve,Ye){Ye>Bs?Ye=Bs:Ye<-Bs&&(Ye=-Bs);var it=Ye,vt;do{var St=it*it;it-=vt=(it*(Kc+St*St*(Ac+St*(Jc+tu*St)))-Ye)/(Qc+St*St*(el+St*(ru+tc*St)))}while(E(vt)>l);return[Ve,it]};function Gl(){return x.geoProjection(Hu).scale(139.319)}function au(Ve,Ye){if(E(Ye)l&&--St>0);return Lt=T(vt),[(E(Ye)=0;)if(vt=Ye[nr],it[0]===vt[0]&&it[1]===vt[1]){if(_t)return[_t,it];_t=it}}}function Rl(Ve){for(var Ye=Ve.length,it=[],vt=Ve[Ye-1],St=0;St0?[-vt[0],0]:[180-vt[0],180])};var Ye=gc.map(function(it){return{face:it,project:Ve(it)}});return[-1,0,0,1,0,1,4,5].forEach(function(it,vt){var St=Ye[it];St&&(St.children||(St.children=[])).push(Ye[vt])}),dc(Ye[0],function(it,vt){return Ye[it<-w/2?vt<0?6:4:it<0?vt<0?2:0:itvt^va>vt&&it<(ua-gr)*(vt-Cr)/(va-Cr)+gr&&(St=!St)}return St}function Fl(Ve,Ye){var it=Ye.stream,vt;if(!it)throw new Error("invalid projection");switch(Ve&&Ve.type){case"Feature":vt=vu;break;case"FeatureCollection":vt=tf;break;default:vt=Ru;break}return vt(Ve,it)}function tf(Ve,Ye){return{type:"FeatureCollection",features:Ve.features.map(function(it){return vu(it,Ye)})}}function vu(Ve,Ye){return{type:"Feature",id:Ve.id,properties:Ve.properties,geometry:Ru(Ve.geometry,Ye)}}function Wu(Ve,Ye){return{type:"GeometryCollection",geometries:Ve.geometries.map(function(it){return Ru(it,Ye)})}}function Ru(Ve,Ye){if(!Ve)return null;if(Ve.type==="GeometryCollection")return Wu(Ve,Ye);var it;switch(Ve.type){case"Point":it=Ks;break;case"MultiPoint":it=Ks;break;case"LineString":it=nc;break;case"MultiLineString":it=nc;break;case"Polygon":it=Du;break;case"MultiPolygon":it=Du;break;case"Sphere":it=Du;break;default:return null}return x.geoStream(Ve,Ye(it)),it.result()}var al=[],Yl=[],Ks={point:function(Ve,Ye){al.push([Ve,Ye])},result:function(){var Ve=al.length?al.length<2?{type:"Point",coordinates:al[0]}:{type:"MultiPoint",coordinates:al}:null;return al=[],Ve}},nc={lineStart:Iu,point:function(Ve,Ye){al.push([Ve,Ye])},lineEnd:function(){al.length&&(Yl.push(al),al=[])},result:function(){var Ve=Yl.length?Yl.length<2?{type:"LineString",coordinates:Yl[0]}:{type:"MultiLineString",coordinates:Yl}:null;return Yl=[],Ve}},Du={polygonStart:Iu,lineStart:Iu,point:function(Ve,Ye){al.push([Ve,Ye])},lineEnd:function(){var Ve=al.length;if(Ve){do al.push(al[0].slice());while(++Ve<4);Yl.push(al),al=[]}},polygonEnd:Iu,result:function(){if(!Yl.length)return null;var Ve=[],Ye=[];return Yl.forEach(function(it){Ec(it)?Ve.push([it]):Ye.push(it)}),Ye.forEach(function(it){var vt=it[0];Ve.some(function(St){if(wf(St[0],vt))return St.push(it),!0})||Ve.push([it])}),Yl=[],Ve.length?Ve.length>1?{type:"MultiPolygon",coordinates:Ve}:{type:"Polygon",coordinates:Ve[0]}:null}};function Zc(Ve){var Ye=Ve(S,0)[0]-Ve(-S,0)[0];function it(vt,St){var _t=E(vt)0?vt-w:vt+w,St),nr=(Lt[0]-Lt[1])*_,cr=(Lt[0]+Lt[1])*_;if(_t)return[nr,cr];var gr=Ye*_,Cr=nr>0^cr>0?-1:1;return[Cr*nr-p(cr)*gr,Cr*cr-p(nr)*gr]}return Ve.invert&&(it.invert=function(vt,St){var _t=(vt+St)*_,Lt=(St-vt)*_,nr=E(_t)<.5*Ye&&E(Lt)<.5*Ye;if(!nr){var cr=Ye*_,gr=_t>0^Lt>0?-1:1,Cr=-gr*vt+(Lt>0?1:-1)*cr,Wr=-gr*St+(_t>0?1:-1)*cr;_t=(-Cr-Wr)*_,Lt=(Cr-Wr)*_}var ua=Ve.invert(_t,Lt);return nr||(ua[0]+=_t>0?w:-w),ua}),x.geoProjection(it).rotate([-90,-90,45]).clipAngle(180-.001)}function Qt(){return Zc(ra).scale(176.423)}function yr(){return Zc(Li).scale(111.48)}function $r(Ve,Ye){if(!(0<=(Ye=+Ye)&&Ye<=20))throw new Error("invalid digits");function it(gr){var Cr=gr.length,Wr=2,ua=new Array(Cr);for(ua[0]=+gr[0].toFixed(Ye),ua[1]=+gr[1].toFixed(Ye);Wr2||va[0]!=Cr[0]||va[1]!=Cr[1])&&(Wr.push(va),Cr=va)}return Wr.length===1&&gr.length>1&&Wr.push(it(gr[gr.length-1])),Wr}function _t(gr){return gr.map(St)}function Lt(gr){if(gr==null)return gr;var Cr;switch(gr.type){case"GeometryCollection":Cr={type:"GeometryCollection",geometries:gr.geometries.map(Lt)};break;case"Point":Cr={type:"Point",coordinates:it(gr.coordinates)};break;case"MultiPoint":Cr={type:gr.type,coordinates:vt(gr.coordinates)};break;case"LineString":Cr={type:gr.type,coordinates:St(gr.coordinates)};break;case"MultiLineString":case"Polygon":Cr={type:gr.type,coordinates:_t(gr.coordinates)};break;case"MultiPolygon":Cr={type:"MultiPolygon",coordinates:gr.coordinates.map(_t)};break;default:return gr}return gr.bbox!=null&&(Cr.bbox=gr.bbox),Cr}function nr(gr){var Cr={type:"Feature",properties:gr.properties,geometry:Lt(gr.geometry)};return gr.id!=null&&(Cr.id=gr.id),gr.bbox!=null&&(Cr.bbox=gr.bbox),Cr}if(Ve!=null)switch(Ve.type){case"Feature":return nr(Ve);case"FeatureCollection":{var cr={type:"FeatureCollection",features:Ve.features.map(nr)};return Ve.bbox!=null&&(cr.bbox=Ve.bbox),cr}default:return Lt(Ve)}return Ve}function Vr(Ve){var Ye=v(Ve);function it(vt,St){var _t=Ye?T(vt*Ye/2)/Ye:vt/2;if(!St)return[2*_t,-Ve];var Lt=2*e(_t*v(St)),nr=1/T(St);return[v(Lt)*nr,St+(1-r(Lt))*nr-Ve]}return it.invert=function(vt,St){if(E(St+=Ve)l&&--nr>0);var ua=vt*(gr=T(Lt)),va=T(E(St)0?S:-S)*(cr+St*(Cr-Lt)/2+St*St*(Cr-2*cr+Lt)/2)]}Ja.invert=function(Ve,Ye){var it=Ye/S,vt=it*90,St=s(18,E(vt/5)),_t=n(0,a(St));do{var Lt=tn[_t][1],nr=tn[_t+1][1],cr=tn[s(19,_t+2)][1],gr=cr-Lt,Cr=cr-2*nr+Lt,Wr=2*(E(it)-nr)/gr,ua=Cr/gr,va=Wr*(1-ua*Wr*(1-2*ua*Wr));if(va>=0||_t===1){vt=(Ye>=0?5:-5)*(va+St);var Ma=50,en;do St=s(18,E(vt)/5),_t=a(St),va=St-_t,Lt=tn[_t][1],nr=tn[_t+1][1],cr=tn[s(19,_t+2)][1],vt-=(en=(Ye>=0?S:-S)*(nr+va*(cr-Lt)/2+va*va*(cr-2*nr+Lt)/2)-Ye)*g;while(E(en)>m&&--Ma>0);break}}while(--_t>=0);var Pn=tn[_t][0],Tn=tn[_t+1][0],In=tn[s(19,_t+2)][0];return[Ve/(Tn+va*(In-Pn)/2+va*va*(In-2*Tn+Pn)/2),vt*y]};function Ln(){return x.geoProjection(Ja).scale(152.63)}function On(Ve){function Ye(it,vt){var St=r(vt),_t=(Ve-1)/(Ve-St*r(it));return[_t*St*v(it),_t*v(vt)]}return Ye.invert=function(it,vt){var St=it*it+vt*vt,_t=F(St),Lt=(Ve-F(1-St*(Ve+1)/(Ve-1)))/((Ve-1)/_t+_t/(Ve-1));return[t(it*Lt,_t*F(1-Lt*Lt)),_t?I(vt*Lt/_t):0]},Ye}function Qn(Ve,Ye){var it=On(Ve);if(!Ye)return it;var vt=r(Ye),St=v(Ye);function _t(Lt,nr){var cr=it(Lt,nr),gr=cr[1],Cr=gr*St/(Ve-1)+vt;return[cr[0]*vt/Cr,gr/Cr]}return _t.invert=function(Lt,nr){var cr=(Ve-1)/(Ve-1-nr*St);return it.invert(cr*Lt,cr*nr*vt)},_t}function _n(){var Ve=2,Ye=0,it=x.geoProjectionMutator(Qn),vt=it(Ve,Ye);return vt.distance=function(St){return arguments.length?it(Ve=+St,Ye):Ve},vt.tilt=function(St){return arguments.length?it(Ve,Ye=St*y):Ye*g},vt.scale(432.147).clipAngle(z(1/Ve)*g-1e-6)}var qn=1e-4,En=1e4,dn=-180,ai=dn+qn,Hi=180,Fi=Hi-qn,Zi=-90,Wi=Zi+qn,ii=90,Wn=ii-qn;function ao(Ve){return Ve.length>0}function Fo(Ve){return Math.floor(Ve*En)/En}function hs(Ve){return Ve===Zi||Ve===ii?[0,Ve]:[dn,Fo(Ve)]}function Is(Ve){var Ye=Ve[0],it=Ve[1],vt=!1;return Ye<=ai?(Ye=dn,vt=!0):Ye>=Fi&&(Ye=Hi,vt=!0),it<=Wi?(it=Zi,vt=!0):it>=Wn&&(it=ii,vt=!0),vt?[Ye,it]:Ve}function vs(Ve){return Ve.map(Is)}function Rs(Ve,Ye,it){for(var vt=0,St=Ve.length;vt=Fi||Cr<=Wi||Cr>=Wn){_t[Lt]=Is(cr);for(var Wr=Lt+1;Wrai&&vaWi&&Ma=nr)break;it.push({index:-1,polygon:Ye,ring:_t=_t.slice(Wr-1)}),_t[0]=hs(_t[0][1]),Lt=-1,nr=_t.length}}}}function Yo(Ve){var Ye,it=Ve.length,vt={},St={},_t,Lt,nr,cr,gr;for(Ye=0;Ye0?w-nr:nr)*g],gr=x.geoProjection(Ve(Lt)).rotate(cr),Cr=x.geoRotation(cr),Wr=gr.center;return delete gr.rotate,gr.center=function(ua){return arguments.length?Wr(Cr(ua)):Cr.invert(Wr())},gr.clipAngle(90)}function os(Ve){var Ye=r(Ve);function it(vt,St){var _t=x.geoGnomonicRaw(vt,St);return _t[0]*=Ye,_t}return it.invert=function(vt,St){return x.geoGnomonicRaw.invert(vt/Ye,St)},it}function Hl(){return Wl([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wl(Ve,Ye){return ws(os,Ve,Ye)}function $l(Ve){if(!(Ve*=2))return x.geoAzimuthalEquidistantRaw;var Ye=-Ve/2,it=-Ye,vt=Ve*Ve,St=T(it),_t=.5/v(it);function Lt(nr,cr){var gr=z(r(cr)*r(nr-Ye)),Cr=z(r(cr)*r(nr-it)),Wr=cr<0?-1:1;return gr*=gr,Cr*=Cr,[(gr-Cr)/(2*Ve),Wr*F(4*vt*Cr-(vt-gr+Cr)*(vt-gr+Cr))/(2*Ve)]}return Lt.invert=function(nr,cr){var gr=cr*cr,Cr=r(F(gr+(ua=nr+Ye)*ua)),Wr=r(F(gr+(ua=nr+it)*ua)),ua,va;return[t(va=Cr-Wr,ua=(Cr+Wr)*St),(cr<0?-1:1)*z(F(ua*ua+va*va)*_t)]},Lt}function uc(){return Xl([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Xl(Ve,Ye){return ws($l,Ve,Ye)}function Xu(Ve,Ye){if(E(Ye)l&&--nr>0);return[p(Ve)*(F(St*St+4)+St)*w/4,S*Lt]};function iu(){return x.geoProjection(du).scale(127.16)}function ze(Ve,Ye,it,vt,St){function _t(Lt,nr){var cr=it*v(vt*nr),gr=F(1-cr*cr),Cr=F(2/(1+gr*r(Lt*=St)));return[Ve*gr*Cr*v(Lt),Ye*cr*Cr]}return _t.invert=function(Lt,nr){var cr=Lt/Ve,gr=nr/Ye,Cr=F(cr*cr+gr*gr),Wr=2*I(Cr/2);return[t(Lt*T(Wr),Ve*Cr)/St,Cr&&I(nr*v(Wr)/(Ye*it*Cr))/vt]},_t}function L(Ve,Ye,it,vt){var St=w/3;Ve=n(Ve,l),Ye=n(Ye,l),Ve=s(Ve,S),Ye=s(Ye,w-l),it=n(it,0),it=s(it,100-l),vt=n(vt,l);var _t=it/100+1,Lt=vt/100,nr=z(_t*r(St))/St,cr=v(Ve)/v(nr*S),gr=Ye/w,Cr=F(Lt*v(Ve/2)/v(Ye/2)),Wr=Cr/F(gr*cr*nr),ua=1/(Cr*F(gr*cr*nr));return ze(Wr,ua,cr,nr,gr)}function ne(){var Ve=65*y,Ye=60*y,it=20,vt=200,St=x.geoProjectionMutator(L),_t=St(Ve,Ye,it,vt);return _t.poleline=function(Lt){return arguments.length?St(Ve=+Lt*y,Ye,it,vt):Ve*g},_t.parallels=function(Lt){return arguments.length?St(Ve,Ye=+Lt*y,it,vt):Ye*g},_t.inflation=function(Lt){return arguments.length?St(Ve,Ye,it=+Lt,vt):it},_t.ratio=function(Lt){return arguments.length?St(Ve,Ye,it,vt=+Lt):vt},_t.scale(163.775)}function Te(){return ne().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Se=4*w+3*F(3),Re=2*F(2*w*F(3)/Se),ft=Je(Re*F(3)/w,Re,Se/6);function xt(){return x.geoProjection(ft).scale(176.84)}function Dt(Ve,Ye){return[Ve*F(1-3*Ye*Ye/(w*w)),Ye]}Dt.invert=function(Ve,Ye){return[Ve/F(1-3*Ye*Ye/(w*w)),Ye]};function er(){return x.geoProjection(Dt).scale(152.63)}function fr(Ve,Ye){var it=r(Ye),vt=r(Ve)*it,St=1-vt,_t=r(Ve=t(v(Ve)*it,-v(Ye))),Lt=v(Ve);return it=F(1-vt*vt),[Lt*it-_t*St,-_t*it-Lt*St]}fr.invert=function(Ve,Ye){var it=(Ve*Ve+Ye*Ye)/-2,vt=F(-it*(2+it)),St=Ye*it+Ve*vt,_t=Ve*it-Ye*vt,Lt=F(_t*_t+St*St);return[t(vt*St,Lt*(1+it)),Lt?-I(vt*_t/Lt):0]};function pr(){return x.geoProjection(fr).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Br(Ve,Ye){var it=ue(Ve,Ye);return[(it[0]+Ve/S)/2,(it[1]+Ye)/2]}Br.invert=function(Ve,Ye){var it=Ve,vt=Ye,St=25;do{var _t=r(vt),Lt=v(vt),nr=v(2*vt),cr=Lt*Lt,gr=_t*_t,Cr=v(it),Wr=r(it/2),ua=v(it/2),va=ua*ua,Ma=1-gr*Wr*Wr,en=Ma?z(_t*Wr)*F(Pn=1/Ma):Pn=0,Pn,Tn=.5*(2*en*_t*ua+it/S)-Ve,In=.5*(en*Lt+vt)-Ye,oi=.5*Pn*(gr*va+en*_t*Wr*cr)+.5/S,Si=Pn*(Cr*nr/4-en*Lt*ua),_i=.125*Pn*(nr*ua-en*Lt*gr*Cr),Ki=.5*Pn*(cr*Wr+en*va*_t)+.5,Go=Si*_i-Ki*oi,Ho=(In*Si-Tn*Ki)/Go,Ao=(Tn*_i-In*oi)/Go;it-=Ho,vt-=Ao}while((E(Ho)>l||E(Ao)>l)&&--St>0);return[it,vt]};function ea(){return x.geoProjection(Br).scale(158.837)}h.geoNaturalEarth=x.geoNaturalEarth1,h.geoNaturalEarthRaw=x.geoNaturalEarth1Raw,h.geoAiry=te,h.geoAiryRaw=X,h.geoAitoff=ie,h.geoAitoffRaw=ue,h.geoArmadillo=q,h.geoArmadilloRaw=le,h.geoAugust=ee,h.geoAugustRaw=J,h.geoBaker=V,h.geoBakerRaw=Q,h.geoBerghaus=ae,h.geoBerghausRaw=re,h.geoBertin1953=at,h.geoBertin1953Raw=je,h.geoBoggs=et,h.geoBoggsRaw=De,h.geoBonne=Ut,h.geoBonneRaw=kt,h.geoBottomley=vr,h.geoBottomleyRaw=Yt,h.geoBromley=Rr,h.geoBromleyRaw=hr,h.geoChamberlin=de,h.geoChamberlinRaw=Fe,h.geoChamberlinAfrica=Oe,h.geoCollignon=be,h.geoCollignonRaw=me,h.geoCraig=Xe,h.geoCraigRaw=Ie,h.geoCraster=Ct,h.geoCrasterRaw=bt,h.geoCylindricalEqualArea=Wt,h.geoCylindricalEqualAreaRaw=Zt,h.geoCylindricalStereographic=Jt,h.geoCylindricalStereographicRaw=rr,h.geoEckert1=ia,h.geoEckert1Raw=mr,h.geoEckert2=La,h.geoEckert2Raw=Ia,h.geoEckert3=Ga,h.geoEckert3Raw=Aa,h.geoEckert4=Xa,h.geoEckert4Raw=ba,h.geoEckert5=Kt,h.geoEckert5Raw=yn,h.geoEckert6=$t,h.geoEckert6Raw=zt,h.geoEisenlohr=qr,h.geoEisenlohrRaw=Tr,h.geoFahey=wa,h.geoFaheyRaw=Gr,h.geoFoucaut=Ya,h.geoFoucautRaw=Da,h.geoFoucautSinusoidal=an,h.geoFoucautSinusoidalRaw=Ka,h.geoGilbert=Lr,h.geoGingery=Or,h.geoGingeryRaw=Er,h.geoGinzburg4=Hr,h.geoGinzburg4Raw=Dr,h.geoGinzburg5=ta,h.geoGinzburg5Raw=na,h.geoGinzburg6=or,h.geoGinzburg6Raw=At,h.geoGinzburg8=oa,h.geoGinzburg8Raw=Ar,h.geoGinzburg9=Sa,h.geoGinzburg9Raw=ga,h.geoGringorten=mn,h.geoGringortenRaw=ra,h.geoGuyou=bi,h.geoGuyouRaw=Li,h.geoHammer=Ae,h.geoHammerRaw=fe,h.geoHammerRetroazimuthal=gs,h.geoHammerRetroazimuthalRaw=ho,h.geoHealpix=cs,h.geoHealpixRaw=xo,h.geoHill=ms,h.geoHillRaw=ks,h.geoHomolosine=Gi,h.geoHomolosineRaw=Ss,h.geoHufnagel=No,h.geoHufnagelRaw=js,h.geoHyperelliptical=so,h.geoHyperellipticalRaw=hi,h.geoInterrupt=Di,h.geoInterruptedBoggs=wl,h.geoInterruptedHomolosine=Vl,h.geoInterruptedMollweide=Cs,h.geoInterruptedMollweideHemispheres=ju,h.geoInterruptedSinuMollweide=yu,h.geoInterruptedSinusoidal=ff,h.geoKavrayskiy7=Cu,h.geoKavrayskiy7Raw=_s,h.geoLagrange=Pl,h.geoLagrangeRaw=Vc,h.geoLarrivee=_u,h.geoLarriveeRaw=Il,h.geoLaskowski=Al,h.geoLaskowskiRaw=Os,h.geoLittrow=bs,h.geoLittrowRaw=Uo,h.geoLoximuthal=Zl,h.geoLoximuthalRaw=qu,h.geoMiller=Zs,h.geoMillerRaw=Ju,h.geoModifiedStereographic=Sl,h.geoModifiedStereographicRaw=_f,h.geoModifiedStereographicAlaska=xu,h.geoModifiedStereographicGs48=dl,h.geoModifiedStereographicGs50=qc,h.geoModifiedStereographicMiller=Qu,h.geoModifiedStereographicLee=wc,h.geoMollweide=Me,h.geoMollweideRaw=Ze,h.geoMtFlatPolarParabolic=ec,h.geoMtFlatPolarParabolicRaw=Tc,h.geoMtFlatPolarQuartic=Hc,h.geoMtFlatPolarQuarticRaw=Gc,h.geoMtFlatPolarSinusoidal=$c,h.geoMtFlatPolarSinusoidalRaw=bu,h.geoNaturalEarth2=Lu,h.geoNaturalEarth2Raw=Gu,h.geoNellHammer=lc,h.geoNellHammerRaw=Ml,h.geoInterruptedQuarticAuthalic=Ms,h.geoNicolosi=xf,h.geoNicolosiRaw=Lc,h.geoPatterson=Gl,h.geoPattersonRaw=Hu,h.geoPolyconic=Ys,h.geoPolyconicRaw=au,h.geoPolyhedral=dc,h.geoPolyhedralButterfly=Gs,h.geoPolyhedralCollignon=Xc,h.geoPolyhedralWaterman=Ws,h.geoProject=Fl,h.geoGringortenQuincuncial=Qt,h.geoPeirceQuincuncial=yr,h.geoPierceQuincuncial=yr,h.geoQuantize=$r,h.geoQuincuncial=Zc,h.geoRectangularPolyconic=ma,h.geoRectangularPolyconicRaw=Vr,h.geoRobinson=Ln,h.geoRobinsonRaw=Ja,h.geoSatellite=_n,h.geoSatelliteRaw=Qn,h.geoSinuMollweide=Fs,h.geoSinuMollweideRaw=fi,h.geoSinusoidal=Et,h.geoSinusoidalRaw=Ke,h.geoStitch=Ls,h.geoTimes=go,h.geoTimesRaw=wi,h.geoTwoPointAzimuthal=Wl,h.geoTwoPointAzimuthalRaw=os,h.geoTwoPointAzimuthalUsa=Hl,h.geoTwoPointEquidistant=Xl,h.geoTwoPointEquidistantRaw=$l,h.geoTwoPointEquidistantUsa=uc,h.geoVanDerGrinten=ll,h.geoVanDerGrintenRaw=Xu,h.geoVanDerGrinten2=Yi,h.geoVanDerGrinten2Raw=Zu,h.geoVanDerGrinten3=Yu,h.geoVanDerGrinten3Raw=io,h.geoVanDerGrinten4=iu,h.geoVanDerGrinten4Raw=du,h.geoWagner=ne,h.geoWagner7=Te,h.geoWagnerRaw=L,h.geoWagner4=xt,h.geoWagner4Raw=ft,h.geoWagner6=er,h.geoWagner6Raw=Dt,h.geoWiechel=pr,h.geoWiechelRaw=fr,h.geoWinkel3=ea,h.geoWinkel3Raw=Br,Object.defineProperty(h,"__esModule",{value:!0})})}}),rP=He({"src/plots/geo/zoom.js"(Y,H){var h=yi(),x=Qr(),A=qi(),E=Math.PI/180,e=180/Math.PI,t={cursor:"pointer"},r={cursor:"auto"};function i(g,y){var R=g.projection,I;return y._isScoped?I=n:y._isClipped?I=c:I=s,I(g,R)}H.exports=i;function a(g,y){return h.behavior.zoom().translate(y.translate()).scale(y.scale())}function o(g,y,R){var I=g.id,z=g.graphDiv,F=z.layout,B=F[I],O=z._fullLayout,P=O[I],N={},U={};function X(te,ue){N[I+"."+te]=x.nestedProperty(B,te).get(),A.call("_storeDirectGUIEdit",F,O._preGUI,N);var ie=x.nestedProperty(P,te);ie.get()!==ue&&(ie.set(ue),x.nestedProperty(B,te).set(ue),U[I+"."+te]=ue)}R(X),X("projection.scale",y.scale()/g.fitScale),X("fitbounds",!1),z.emit("plotly_relayout",U)}function n(g,y){var R=a(g,y);function I(){h.select(this).style(t)}function z(){y.scale(h.event.scale).translate(h.event.translate),g.render(!0);var O=y.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1]})}function F(O){var P=y.invert(g.midPt);O("center.lon",P[0]),O("center.lat",P[1])}function B(){h.select(this).style(r),o(g,y,F)}return R.on("zoomstart",I).on("zoom",z).on("zoomend",B),R}function s(g,y){var R=a(g,y),I=2,z,F,B,O,P,N,U,X,te;function ue(Z){return y.invert(Z)}function ie(Z){var se=ue(Z);if(!se)return!0;var Q=y(se);return Math.abs(Q[0]-Z[0])>I||Math.abs(Q[1]-Z[1])>I}function le(){h.select(this).style(t),z=h.mouse(this),F=y.rotate(),B=y.translate(),O=F,P=ue(z)}function q(){if(N=h.mouse(this),ie(z)){R.scale(y.scale()),R.translate(y.translate());return}y.scale(h.event.scale),y.translate([B[0],h.event.translate[1]]),P?ue(N)&&(X=ue(N),U=[O[0]+(X[0]-P[0]),F[1],F[2]],y.rotate(U),O=U):(z=N,P=ue(z)),te=!0,g.render(!0);var Z=y.rotate(),se=y.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.center.lon":se[0],"geo.center.lat":se[1],"geo.projection.rotation.lon":-Z[0]})}function J(){h.select(this).style(r),te&&o(g,y,ee)}function ee(Z){var se=y.rotate(),Q=y.invert(g.midPt);Z("projection.rotation.lon",-se[0]),Z("center.lon",Q[0]),Z("center.lat",Q[1])}return R.on("zoomstart",le).on("zoom",q).on("zoomend",J),R}function c(g,y){y.rotate(),y.scale();var R=a(g,y),I=u(R,"zoomstart","zoom","zoomend"),z=0,F=R.on,B;R.on("zoomstart",function(){h.select(this).style(t);var X=h.mouse(this),te=y.rotate(),ue=te,ie=y.translate(),le=p(te);B=f(y,X),F.call(R,"zoom",function(){var q=h.mouse(this);if(y.scale(h.event.scale),!B)X=q,B=f(y,X);else if(f(y,q)){y.rotate(te).translate(ie);var J=f(y,q),ee=T(B,J),Z=M(v(le,ee)),se=l(Z,B,ue);(!isFinite(se[0])||!isFinite(se[1])||!isFinite(se[2]))&&(se=ue),y.rotate(se),ue=se}P(I.of(this,arguments))}),O(I.of(this,arguments))}).on("zoomend",function(){h.select(this).style(r),F.call(R,"zoom",null),N(I.of(this,arguments)),o(g,y,U)}).on("zoom.redraw",function(){g.render(!0);var X=y.rotate();g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.projection.rotation.lon":-X[0],"geo.projection.rotation.lat":-X[1]})});function O(X){z++||X({type:"zoomstart"})}function P(X){X({type:"zoom"})}function N(X){--z||X({type:"zoomend"})}function U(X){var te=y.rotate();X("projection.rotation.lon",-te[0]),X("projection.rotation.lat",-te[1])}return h.rebind(R,I,"on")}function f(g,y){var R=g.invert(y);return R&&isFinite(R[0])&&isFinite(R[1])&&_(R)}function p(g){var y=.5*g[0]*E,R=.5*g[1]*E,I=.5*g[2]*E,z=Math.sin(y),F=Math.cos(y),B=Math.sin(R),O=Math.cos(R),P=Math.sin(I),N=Math.cos(I);return[F*O*N+z*B*P,z*O*N-F*B*P,F*B*N+z*O*P,F*O*P-z*B*N]}function v(g,y){var R=g[0],I=g[1],z=g[2],F=g[3],B=y[0],O=y[1],P=y[2],N=y[3];return[R*B-I*O-z*P-F*N,R*O+I*B+z*N-F*P,R*P-I*N+z*B+F*O,R*N+I*P-z*O+F*B]}function T(g,y){if(!(!g||!y)){var R=d(g,y),I=Math.sqrt(b(R,R)),z=.5*Math.acos(Math.max(-1,Math.min(1,b(g,y)))),F=Math.sin(z)/I;return I&&[Math.cos(z),R[2]*F,-R[1]*F,R[0]*F]}}function l(g,y,R){var I=S(y,2,g[0]);I=S(I,1,g[1]),I=S(I,0,g[2]-R[2]);var z=y[0],F=y[1],B=y[2],O=I[0],P=I[1],N=I[2],U=Math.atan2(F,z)*e,X=Math.sqrt(z*z+F*F),te,ue;Math.abs(P)>X?(ue=(P>0?90:-90)-U,te=0):(ue=Math.asin(P/X)*e-U,te=Math.sqrt(X*X-P*P));var ie=180-ue-2*U,le=(Math.atan2(N,O)-Math.atan2(B,te))*e,q=(Math.atan2(N,O)-Math.atan2(B,-te))*e,J=m(R[0],R[1],ue,le),ee=m(R[0],R[1],ie,q);return J<=ee?[ue,le,R[2]]:[ie,q,R[2]]}function m(g,y,R,I){var z=w(R-g),F=w(I-y);return Math.sqrt(z*z+F*F)}function w(g){return(g%360+540)%360-180}function S(g,y,R){var I=R*E,z=g.slice(),F=y===0?1:0,B=y===2?1:2,O=Math.cos(I),P=Math.sin(I);return z[F]=g[F]*O-g[B]*P,z[B]=g[B]*O+g[F]*P,z}function M(g){return[Math.atan2(2*(g[0]*g[1]+g[2]*g[3]),1-2*(g[1]*g[1]+g[2]*g[2]))*e,Math.asin(Math.max(-1,Math.min(1,2*(g[0]*g[2]-g[3]*g[1]))))*e,Math.atan2(2*(g[0]*g[3]+g[1]*g[2]),1-2*(g[2]*g[2]+g[3]*g[3]))*e]}function _(g){var y=g[0]*E,R=g[1]*E,I=Math.cos(R);return[I*Math.cos(y),I*Math.sin(y),Math.sin(R)]}function b(g,y){for(var R=0,I=0,z=g.length;I0&&P._module.calcGeoJSON(O,I)}if(!z){var N=this.updateProjection(R,I);if(N)return;(!this.viewInitial||this.scope!==F.scope)&&this.saveViewInitial(F)}this.scope=F.scope,this.updateBaseLayers(I,F),this.updateDims(I,F),this.updateFx(I,F),s.generalUpdatePerTraceModule(this.graphDiv,this,R,F);var U=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=U.selectAll(".point"),this.dataPoints.text=U.selectAll("text"),this.dataPaths.line=U.selectAll(".js-line");var X=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=X.selectAll("path"),this._render()},d.updateProjection=function(R,I){var z=this.graphDiv,F=I[this.id],B=I._size,O=F.domain,P=F.projection,N=F.lonaxis,U=F.lataxis,X=N._ax,te=U._ax,ue=this.projection=u(F),ie=[[B.l+B.w*O.x[0],B.t+B.h*(1-O.y[1])],[B.l+B.w*O.x[1],B.t+B.h*(1-O.y[0])]],le=F.center||{},q=P.rotation||{},J=N.range||[],ee=U.range||[];if(F.fitbounds){X._length=ie[1][0]-ie[0][0],te._length=ie[1][1]-ie[0][1],X.range=f(z,X),te.range=f(z,te);var Z=(X.range[0]+X.range[1])/2,se=(te.range[0]+te.range[1])/2;if(F._isScoped)le={lon:Z,lat:se};else if(F._isClipped){le={lon:Z,lat:se},q={lon:Z,lat:se,roll:q.roll};var Q=P.type,V=w.lonaxisSpan[Q]/2||180,re=w.lataxisSpan[Q]/2||90;J=[Z-V,Z+V],ee=[se-re,se+re]}else le={lon:Z,lat:se},q={lon:Z,lat:q.lat,roll:q.roll}}ue.center([le.lon-q.lon,le.lat-q.lat]).rotate([-q.lon,-q.lat,q.roll]).parallels(P.parallels);var ae=y(J,ee);ue.fitExtent(ie,ae);var fe=this.bounds=ue.getBounds(ae),xe=this.fitScale=ue.scale(),Ae=ue.translate();if(F.fitbounds){var Pe=ue.getBounds(y(X.range,te.range)),Ce=Math.min((fe[1][0]-fe[0][0])/(Pe[1][0]-Pe[0][0]),(fe[1][1]-fe[0][1])/(Pe[1][1]-Pe[0][1]));isFinite(Ce)?ue.scale(Ce*xe):r.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ue.scale(P.scale*xe);var je=this.midPt=[(fe[0][0]+fe[1][0])/2,(fe[0][1]+fe[1][1])/2];if(ue.translate([Ae[0]+(je[0]-Ae[0]),Ae[1]+(je[1]-Ae[1])]).clipExtent(fe),F._isAlbersUsa){var at=ue([le.lon,le.lat]),tt=ue.translate();ue.translate([tt[0]-(at[0]-tt[0]),tt[1]-(at[1]-tt[1])])}},d.updateBaseLayers=function(R,I){var z=this,F=z.topojson,B=z.layers,O=z.basePaths;function P(ie){return ie==="lonaxis"||ie==="lataxis"}function N(ie){return!!w.lineLayers[ie]}function U(ie){return!!w.fillLayers[ie]}var X=this.hasChoropleth?w.layersForChoropleth:w.layers,te=X.filter(function(ie){return N(ie)||U(ie)?I["show"+ie]:P(ie)?I[ie].showgrid:!0}),ue=z.framework.selectAll(".layer").data(te,String);ue.exit().each(function(ie){delete B[ie],delete O[ie],h.select(this).remove()}),ue.enter().append("g").attr("class",function(ie){return"layer "+ie}).each(function(ie){var le=B[ie]=h.select(this);ie==="bg"?z.bgRect=le.append("rect").style("pointer-events","all"):P(ie)?O[ie]=le.append("path").style("fill","none"):ie==="backplot"?le.append("g").classed("choroplethlayer",!0):ie==="frontplot"?le.append("g").classed("scatterlayer",!0):N(ie)?O[ie]=le.append("path").style("fill","none").style("stroke-miterlimit",2):U(ie)&&(O[ie]=le.append("path").style("stroke","none"))}),ue.order(),ue.each(function(ie){var le=O[ie],q=w.layerNameToAdjective[ie];ie==="frame"?le.datum(w.sphereSVG):N(ie)||U(ie)?le.datum(_(F,F.objects[ie])):P(ie)&&le.datum(g(ie,I,R)).call(a.stroke,I[ie].gridcolor).call(o.dashLine,I[ie].griddash,I[ie].gridwidth),N(ie)?le.call(a.stroke,I[q+"color"]).call(o.dashLine,"",I[q+"width"]):U(ie)&&le.call(a.fill,I[q+"color"])})},d.updateDims=function(R,I){var z=this.bounds,F=(I.framewidth||0)/2,B=z[0][0]-F,O=z[0][1]-F,P=z[1][0]-B+F,N=z[1][1]-O+F;o.setRect(this.clipRect,B,O,P,N),this.bgRect.call(o.setRect,B,O,P,N).call(a.fill,I.bgcolor),this.xaxis._offset=B,this.xaxis._length=P,this.yaxis._offset=O,this.yaxis._length=N},d.updateFx=function(R,I){var z=this,F=z.graphDiv,B=z.bgRect,O=R.dragmode,P=R.clickmode;if(z.isStatic)return;function N(){var ue=z.viewInitial,ie={};for(var le in ue)ie[z.id+"."+le]=ue[le];t.call("_guiRelayout",F,ie),F.emit("plotly_doubleclick",null)}function U(ue){return z.projection.invert([ue[0]+z.xaxis._offset,ue[1]+z.yaxis._offset])}var X=function(ue,ie){if(ie.isRect){var le=ue.range={};le[z.id]=[U([ie.xmin,ie.ymin]),U([ie.xmax,ie.ymax])]}else{var q=ue.lassoPoints={};q[z.id]=ie.map(U)}},te={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(ue){ue===2&&T(F)}};O==="pan"?(B.node().onmousedown=null,B.call(m(z,I)),B.on("dblclick.zoom",N),F._context._scrollZoom.geo||B.on("wheel.zoom",null)):(O==="select"||O==="lasso")&&(B.on(".zoom",null),te.prepFn=function(ue,ie,le){v(ue,ie,le,te,O)},p.init(te)),B.on("mousemove",function(){var ue=z.projection.invert(r.getPositionFromD3Event());if(!ue)return p.unhover(F,h.event);z.xaxis.p2c=function(){return ue[0]},z.yaxis.p2c=function(){return ue[1]},n.hover(F,h.event,z.id)}),B.on("mouseout",function(){F._dragging||p.unhover(F,h.event)}),B.on("click",function(){O!=="select"&&O!=="lasso"&&(P.indexOf("select")>-1&&l(h.event,F,[z.xaxis],[z.yaxis],z.id,te),P.indexOf("event")>-1&&n.click(F,h.event))})},d.makeFramework=function(){var R=this,I=R.graphDiv,z=I._fullLayout,F="clip"+z._uid+R.id;R.clipDef=z._clips.append("clipPath").attr("id",F),R.clipRect=R.clipDef.append("rect"),R.framework=h.select(R.container).append("g").attr("class","geo "+R.id).call(o.setClipUrl,F,I),R.project=function(B){var O=R.projection(B);return O?[O[0]-R.xaxis._offset,O[1]-R.yaxis._offset]:[null,null]},R.xaxis={_id:"x",c2p:function(B){return R.project(B)[0]}},R.yaxis={_id:"y",c2p:function(B){return R.project(B)[1]}},R.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},c.setConvert(R.mockAxis,z)},d.saveViewInitial=function(R){var I=R.center||{},z=R.projection,F=z.rotation||{};this.viewInitial={fitbounds:R.fitbounds,"projection.scale":z.scale};var B;R._isScoped?B={"center.lon":I.lon,"center.lat":I.lat}:R._isClipped?B={"projection.rotation.lon":F.lon,"projection.rotation.lat":F.lat}:B={"center.lon":I.lon,"center.lat":I.lat,"projection.rotation.lon":F.lon},r.extendFlat(this.viewInitial,B)},d.render=function(R){this._hasMarkerAngles&&R?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},d._render=function(){var R=this.projection,I=R.getPath(),z;function F(O){var P=R(O.lonlat);return P?i(P[0],P[1]):null}function B(O){return R.isLonLatOverEdges(O.lonlat)?"none":null}for(z in this.basePaths)this.basePaths[z].attr("d",I);for(z in this.dataPaths)this.dataPaths[z].attr("d",function(O){return I(O.geojson)});for(z in this.dataPoints)this.dataPoints[z].attr("display",B).attr("transform",F)};function u(R){var I=R.projection,z=I.type,F=w.projNames[z];F="geo"+r.titleCase(F);for(var B=x[F]||e[F],O=B(),P=R._isSatellite?Math.acos(1/I.distance)*180/Math.PI:R._isClipped?w.lonaxisSpan[z]/2:null,N=["center","rotate","parallels","clipExtent"],U=function(ue){return ue?O:[]},X=0;Xq}else return!1},O.getPath=function(){return A().projection(O)},O.getBounds=function(ue){return O.getPath().bounds(ue)},O.precision(w.precision),R._isSatellite&&O.tilt(I.tilt).distance(I.distance),P&&O.clipAngle(P-w.clipPad),O}function g(R,I,z){var F=1e-6,B=2.5,O=I[R],P=w.scopeDefaults[I.scope],N,U,X;R==="lonaxis"?(N=P.lonaxisRange,U=P.lataxisRange,X=function(se,Q){return[se,Q]}):R==="lataxis"&&(N=P.lataxisRange,U=P.lonaxisRange,X=function(se,Q){return[Q,se]});var te={type:"linear",range:[N[0],N[1]-F],tick0:O.tick0,dtick:O.dtick};c.setConvert(te,z);var ue=c.calcTicks(te);!I.isScoped&&R==="lonaxis"&&ue.pop();for(var ie=ue.length,le=new Array(ie),q=0;q0&&B<0&&(B+=360);var N=(B-F)/4;return{type:"Polygon",coordinates:[[[F,O],[F,P],[F+N,P],[F+2*N,P],[F+3*N,P],[B,P],[B,O],[B-N,O],[B-2*N,O],[B-3*N,O],[F,O]]]}}}}),sT=He({"src/plots/geo/layout_attributes.js"(Y,H){var h=mf(),x=Ku().attributes,A=Yf().dash,E=Gm(),e=Uu().overrideAll,t=jd(),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:h.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:A},i=H.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:h.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:h.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:h.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:h.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:h.background},lonaxis:r,lataxis:r},"plot","from-root");i.uirevision={valType:"any",editType:"none"}}}),nP=He({"src/plots/geo/layout_defaults.js"(Y,H){var h=Qr(),x=Yd(),A=$f().getSubplotData,E=Gm(),e=sT(),t=E.axesNames;H.exports=function(a,o,n){x(a,o,n,{type:"geo",attributes:e,handleDefaults:r,fullData:n,partition:"y"})};function r(i,a,o,n){var s=A(n.fullData,"geo",n.id),c=s.map(function(ee){return ee.index}),f=o("resolution"),p=o("scope"),v=E.scopeDefaults[p],T=o("projection.type",v.projType),l=a._isAlbersUsa=T==="albers usa";l&&(p=a.scope="usa");var m=a._isScoped=p!=="world",w=a._isSatellite=T==="satellite",S=a._isConic=T.indexOf("conic")!==-1||T==="albers",M=a._isClipped=!!E.lonaxisSpan[T];if(i.visible===!1){var _=h.extendDeep({},a._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),a._template=_}for(var b=o("visible"),d,u=0;u0&&U<0&&(U+=360);var X=(N+U)/2,te;if(!l){var ue=m?v.projRotate:[X,0,0];te=o("projection.rotation.lon",ue[0]),o("projection.rotation.lat",ue[1]),o("projection.rotation.roll",ue[2]),d=o("showcoastlines",!m&&b),d&&(o("coastlinecolor"),o("coastlinewidth")),d=o("showocean",b?void 0:!1),d&&o("oceancolor")}var ie,le;if(l?(ie=-96.6,le=38.7):(ie=m?X:te,le=(P[0]+P[1])/2),o("center.lon",ie),o("center.lat",le),w&&(o("projection.tilt"),o("projection.distance")),S){var q=v.projParallels||[0,60];o("projection.parallels",q)}o("projection.scale"),d=o("showland",b?void 0:!1),d&&o("landcolor"),d=o("showlakes",b?void 0:!1),d&&o("lakecolor"),d=o("showrivers",b?void 0:!1),d&&(o("rivercolor"),o("riverwidth")),d=o("showcountries",m&&p!=="usa"&&b),d&&(o("countrycolor"),o("countrywidth")),(p==="usa"||p==="north america"&&f===50)&&(o("showsubunits",b),o("subunitcolor"),o("subunitwidth")),m||(d=o("showframe",b),d&&(o("framecolor"),o("framewidth"))),o("bgcolor");var J=o("fitbounds");J&&(delete a.projection.scale,m?(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))}}}),lT=He({"src/plots/geo/index.js"(Y,H){var h=$f().getSubplotCalcData,x=Qr().counterRegex,A=aP(),E="geo",e=x(E),t={};t[E]={valType:"subplotid",dflt:E,editType:"calc"};function r(o){for(var n=o._fullLayout,s=o.calcdata,c=n._subplots[E],f=0;f")}}}}),ex=He({"src/traces/choropleth/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){x.location=A.location,x.z=A.z;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x.ct=r.ct,x}}}),tx=He({"src/traces/choropleth/select.js"(Y,H){H.exports=function(x,A){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],i,a,o,n,s;if(A===!1)for(i=0;i=Math.min(U,X)&&T<=Math.max(U,X)?0:1/0}if(I=Math.min(te,ue)&&l<=Math.max(te,ue)?0:1/0}B=Math.sqrt(I*I+z*z),u=w[R]}}}else for(R=w.length-1;R>-1;R--)d=w[R],g=p[d],y=v[d],I=c.c2p(g)-T,z=f.c2p(y)-l,F=Math.sqrt(I*I+z*z),F100},Y.isDotSymbol=function(h){return typeof h=="string"?H.DOT_RE.test(h):h>200}}}),cP=He({"src/traces/scattergl/defaults.js"(Y,H){var h=Qr(),x=qi(),A=ax(),E=Wm(),e=Uv(),t=cu(),r=q0(),i=xv(),a=Zh(),o=rv(),n=bv(),s=av();H.exports=function(f,p,v,T){function l(u,g){return h.coerce(f,p,E,u,g)}var m=f.marker?A.isOpenSymbol(f.marker.symbol):!1,w=t.isBubble(f),S=r(f,p,T,l);if(!S){p.visible=!1;return}i(f,p,T,l),l("xhoverformat"),l("yhoverformat");var M=S>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p>=0?(s=c,n=c-1):o=c+1}return s}function x(r,i,a,o,n){for(var s=n+1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p>0?(s=c,n=c-1):o=c+1}return s}function A(r,i,a,o,n){for(var s=o-1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p<0?(s=c,o=c+1):n=c-1}return s}function E(r,i,a,o,n){for(var s=o-1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p<=0?(s=c,o=c+1):n=c-1}return s}function e(r,i,a,o,n){for(;o<=n;){var s=o+n>>>1,c=r[s],f=a!==void 0?a(c,i):c-i;if(f===0)return s;f<=0?o=s+1:n=s-1}return-1}function t(r,i,a,o,n,s){return typeof a=="function"?s(r,i,a,o===void 0?0:o|0,n===void 0?r.length-1:n|0):s(r,i,void 0,a===void 0?0:a|0,o===void 0?r.length-1:o|0)}H.exports={ge:function(r,i,a,o,n){return t(r,i,a,o,n,h)},gt:function(r,i,a,o,n){return t(r,i,a,o,n,x)},lt:function(r,i,a,o,n){return t(r,i,a,o,n,A)},le:function(r,i,a,o,n){return t(r,i,a,o,n,E)},eq:function(r,i,a,o,n){return t(r,i,a,o,n,e)}}}}),Gv=He({"node_modules/pick-by-alias/index.js"(Y,H){H.exports=function(E,e,t){var r={},i,a;if(typeof e=="string"&&(e=x(e)),Array.isArray(e)){var o={};for(a=0;a1&&(A=arguments),typeof A=="string"?A=A.split(/\s/).map(parseFloat):typeof A=="number"&&(A=[A]),A.length&&typeof A[0]=="number"?A.length===1?E={width:A[0],height:A[0],x:0,y:0}:A.length===2?E={width:A[0],height:A[1],x:0,y:0}:E={x:A[0],y:A[1],width:A[2]-A[0]||0,height:A[3]-A[1]||0}:A&&(A=h(A,{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:A.left||0,y:A.top||0},A.width==null?A.right?E.width=A.right-E.x:E.width=0:E.width=A.width,A.height==null?A.bottom?E.height=A.bottom-E.y:E.height=0:E.height=A.height),E}}}),Zp=He({"node_modules/array-bounds/index.js"(Y,H){H.exports=h;function h(x,A){if(!x||x.length==null)throw Error("Argument should be an array");A==null?A=1:A=Math.floor(A);for(var E=Array(A*2),e=0;et&&(t=x[i]),x[i]>>1,w;p.dtype||(p.dtype="array"),typeof p.dtype=="string"?w=new(a(p.dtype))(m):p.dtype&&(w=p.dtype,Array.isArray(w)&&(w.length=m));for(let I=0;Iv||P>n){for(let se=0;seae||X>fe||te=ie||V===re)return;let xe=S[Q];re===void 0&&(re=xe.length);for(let Me=V;Me=B&&he<=P&&De>=O&&De<=N&&le.push(we)}let Ae=M[Q],Pe=Ae[V*4+0],Ce=Ae[V*4+1],je=Ae[V*4+2],at=Ae[V*4+3],tt=J(Ae,V+1),Je=se*.5,Ze=Q+1;q(ee,Z,Je,Ze,Pe,Ce||je||at||tt),q(ee,Z+Je,Je,Ze,Ce,je||at||tt),q(ee+Je,Z,Je,Ze,je,at||tt),q(ee+Je,Z+Je,Je,Ze,at,tt)}function J(ee,Z){let se=null,Q=0;for(;se===null;)if(se=ee[Z*4+Q],Q++,Q>ee.length)return null;return se}return le}function y(I,z,F,B,O){let P=[];for(let N=0;N1&&(f=1),f<-1&&(f=-1),c*Math.acos(f)},t=function(a,o,n,s,c,f,p,v,T,l,m,w){var S=Math.pow(c,2),M=Math.pow(f,2),_=Math.pow(m,2),b=Math.pow(w,2),d=S*M-S*b-M*_;d<0&&(d=0),d/=S*b+M*_,d=Math.sqrt(d)*(p===v?-1:1);var u=d*c/f*w,g=d*-f/c*m,y=l*u-T*g+(a+n)/2,R=T*u+l*g+(o+s)/2,I=(m-u)/c,z=(w-g)/f,F=(-m-u)/c,B=(-w-g)/f,O=e(1,0,I,z),P=e(I,z,F,B);return v===0&&P>0&&(P-=x),v===1&&P<0&&(P+=x),[y,R,O,P]},r=function(a){var o=a.px,n=a.py,s=a.cx,c=a.cy,f=a.rx,p=a.ry,v=a.xAxisRotation,T=v===void 0?0:v,l=a.largeArcFlag,m=l===void 0?0:l,w=a.sweepFlag,S=w===void 0?0:w,M=[];if(f===0||p===0)return[];var _=Math.sin(T*x/360),b=Math.cos(T*x/360),d=b*(o-s)/2+_*(n-c)/2,u=-_*(o-s)/2+b*(n-c)/2;if(d===0&&u===0)return[];f=Math.abs(f),p=Math.abs(p);var g=Math.pow(d,2)/Math.pow(f,2)+Math.pow(u,2)/Math.pow(p,2);g>1&&(f*=Math.sqrt(g),p*=Math.sqrt(g));var y=t(o,n,s,c,f,p,m,S,_,b,d,u),R=h(y,4),I=R[0],z=R[1],F=R[2],B=R[3],O=Math.abs(B)/(x/4);Math.abs(1-O)<1e-7&&(O=1);var P=Math.max(Math.ceil(O),1);B/=P;for(var N=0;N4?(i=l[l.length-4],a=l[l.length-3]):(i=f,a=p),r.push(l)}return r}function A(e,t,r,i){return["C",e,t,r,i,r,i]}function E(e,t,r,i,a,o){return["C",e/3+2/3*r,t/3+2/3*i,a/3+2/3*r,o/3+2/3*i,a,o]}}}),fT=He({"node_modules/is-svg-path/index.js"(Y,H){H.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))}}}),_P=He({"node_modules/svg-path-bounds/index.js"(Y,H){var h=Qg(),x=cT(),A=yP(),E=fT(),e=wm();H.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=h(r)),e(Array.isArray(r),"Argument should be a string or an array of path segments."),r=x(r),r=A(r),!r.length)return[0,0,0,0];for(var i=[1/0,1/0,-1/0,-1/0],a=0,o=r.length;ai[2]&&(i[2]=n[s+0]),n[s+1]>i[3]&&(i[3]=n[s+1]);return i}}}),xP=He({"node_modules/normalize-svg-path/index.js"(Y,H){var h=Math.PI,x=i(120);H.exports=A;function A(a){for(var o,n=[],s=0,c=0,f=0,p=0,v=null,T=null,l=0,m=0,w=0,S=a.length;w7&&(n.push(M.splice(0,7)),M.unshift("C"));break;case"S":var b=l,d=m;(o=="C"||o=="S")&&(b+=b-s,d+=d-c),M=["C",b,d,M[1],M[2],M[3],M[4]];break;case"T":o=="Q"||o=="T"?(v=l*2-v,T=m*2-T):(v=l,T=m),M=e(l,m,v,T,M[1],M[2]);break;case"Q":v=M[1],T=M[2],M=e(l,m,M[1],M[2],M[3],M[4]);break;case"L":M=E(l,m,M[1],M[2]);break;case"H":M=E(l,m,M[1],m);break;case"V":M=E(l,m,l,M[1]);break;case"Z":M=E(l,m,f,p);break}o=_,l=M[M.length-2],m=M[M.length-1],M.length>4?(s=M[M.length-4],c=M[M.length-3]):(s=l,c=m),n.push(M)}return n}function E(a,o,n,s){return["C",a,o,n,s,n,s]}function e(a,o,n,s,c,f){return["C",a/3+2/3*n,o/3+2/3*s,c/3+2/3*n,f/3+2/3*s,c,f]}function t(a,o,n,s,c,f,p,v,T,l){if(l)y=l[0],R=l[1],u=l[2],g=l[3];else{var m=r(a,o,-c);a=m.x,o=m.y,m=r(v,T,-c),v=m.x,T=m.y;var w=(a-v)/2,S=(o-T)/2,M=w*w/(n*n)+S*S/(s*s);M>1&&(M=Math.sqrt(M),n=M*n,s=M*s);var _=n*n,b=s*s,d=(f==p?-1:1)*Math.sqrt(Math.abs((_*b-_*S*S-b*w*w)/(_*S*S+b*w*w)));d==1/0&&(d=1);var u=d*n*S/s+(a+v)/2,g=d*-s*w/n+(o+T)/2,y=Math.asin(((o-g)/s).toFixed(9)),R=Math.asin(((T-g)/s).toFixed(9));y=aR&&(y=y-h*2),!p&&R>y&&(R=R-h*2)}if(Math.abs(R-y)>x){var I=R,z=v,F=T;R=y+x*(p&&R>y?1:-1),v=u+n*Math.cos(R),T=g+s*Math.sin(R);var B=t(v,T,n,s,c,0,p,z,F,[R,I,u,g])}var O=Math.tan((R-y)/4),P=4/3*n*O,N=4/3*s*O,U=[2*a-(a+P*Math.sin(y)),2*o-(o-N*Math.cos(y)),v+P*Math.sin(R),T-N*Math.cos(R),v,T];if(l)return U;B&&(U=U.concat(B));for(var X=0;X0?r.strokeStyle="white":r.strokeStyle="black",r.lineWidth=Math.abs(v)),r.translate(c*.5,f*.5),r.scale(m,m),o()){var w=new Path2D(n);r.fill(w),v&&r.stroke(w)}else{var S=x(n);A(r,S),r.fill(),v&&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:p*.5});return M}var a;function o(){if(a!=null)return a;var n=document.createElement("canvas").getContext("2d");if(n.canvas.width=n.canvas.height=1,!window.Path2D)return a=!1;var s=new Path2D("M0,0h1v1h-1v-1Z");n.fillStyle="black",n.fill(s);var c=n.getImageData(0,0,1,1);return a=c&&c.data&&c.data[3]===255}}}),$p=He({"src/traces/scattergl/convert.js"(Y,H){var h=Vi(),x=TP(),A=ap(),E=qi(),e=Qr(),t=e.isArrayOrTypedArray,r=Io(),i=yc(),a=fd().formatColor,o=cu(),n=U0(),s=ax(),c=sp(),f=Nd().DESELECTDIM,p={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=Dh().appendArrayPointValue;function T(B,O){var P,N={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},U=B._context.plotGlPixelRatio;if(O.visible!==!0)return N;if(o.hasText(O)&&(N.text=l(B,O),N.textSel=M(B,O,O.selected),N.textUnsel=M(B,O,O.unselected)),o.hasMarkers(O)&&(N.marker=w(B,O),N.markerSel=S(B,O,O.selected),N.markerUnsel=S(B,O,O.unselected),!O.unselected&&t(O.marker.opacity))){var X=O.marker.opacity;for(N.markerUnsel.opacity=new Array(X.length),P=0;P500?"bold":"normal":B}function w(B,O){var P=O._length,N=O.marker,U={},X,te=t(N.symbol),ue=t(N.angle),ie=t(N.color),le=t(N.line.color),q=t(N.opacity),J=t(N.size),ee=t(N.line.width),Z;if(te||(Z=s.isOpenSymbol(N.symbol)),te||ie||le||q||ue){U.symbols=new Array(P),U.angles=new Array(P),U.colors=new Array(P),U.borderColors=new Array(P);var se=N.symbol,Q=N.angle,V=a(N,N.opacity,P),re=a(N.line,N.opacity,P);if(!t(re[0])){var ae=re;for(re=Array(P),X=0;Xc.TOO_MANY_POINTS||o.hasMarkers(O)?"rect":"round";if(le&&O.connectgaps){var J=X[0],ee=X[1];for(te=0;te1?ie[te]:ie[0]:ie,Z=t(le)?le.length>1?le[te]:le[0]:le,se=p[ee],Q=p[Z],V=q?q/.8+1:0,re=-Q*V-Q*.5;X.offset[te]=[se*V/J,re/J]}}return X}H.exports={style:T,markerStyle:w,markerSelection:S,linePositions:I,errorBarPositions:z,textPosition:F}}}),hT=He({"src/traces/scattergl/scene_update.js"(Y,H){var h=Qr();H.exports=function(A,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(){h.extendFlat(e,r,t)},e.init(),e.update=function(a){var o=h.repeat(a,e.count);if(e.fill2d&&e.fill2d.update(o),e.scatter2d&&e.scatter2d.update(o),e.line2d&&e.line2d.update(o),e.error2d&&e.error2d.update(o.concat(o)),e.select2d&&e.select2d.update(o),e.glText)for(var n=0;n=f,u=b*2,g={},y,R=S.makeCalcdata(m,"x"),I=M.makeCalcdata(m,"y"),z=e(m,S,"x",R),F=e(m,M,"y",I),B=z.vals,O=F.vals;m._x=B,m._y=O,m.xperiodalignment&&(m._origX=R,m._xStarts=z.starts,m._xEnds=z.ends),m.yperiodalignment&&(m._origY=I,m._yStarts=F.starts,m._yEnds=F.ends);var P=new Array(u),N=new Array(b);for(y=0;y1&&x.extendFlat(_.line,n.linePositions(T,m,w)),_.errorX||_.errorY){var b=n.errorBarPositions(T,m,w,S,M);_.errorX&&x.extendFlat(_.errorX,b.x),_.errorY&&x.extendFlat(_.errorY,b.y)}return _.text&&(x.extendFlat(_.text,{positions:w},n.textPosition(T,m,_.text,_.marker)),x.extendFlat(_.textSel,{positions:w},n.textPosition(T,m,_.text,_.markerSel)),x.extendFlat(_.textUnsel,{positions:w},n.textPosition(T,m,_.text,_.markerUnsel))),_}}}),vT=He({"src/traces/scattergl/edit_style.js"(Y,H){var h=Qr(),x=zi(),A=Nd().DESELECTDIM;function E(e){var t=e[0],r=t.trace,i=t.t,a=i._scene,o=i.index,n=a.selectBatch[o],s=a.unselectBatch[o],c=a.textOptions[o],f=a.textSelectedOptions[o]||{},p=a.textUnselectedOptions[o]||{},v=h.extendFlat({},c),T,l;if(n.length||s.length){var m=f.color,w=p.color,S=c.color,M=h.isArrayOrTypedArray(S);for(v.color=new Array(r._length),T=0;T>>24,r=(E&16711680)>>>16,i=(E&65280)>>>8,a=E&255;return e===!1?[t,r,i,a]:[t/255,r/255,i/255,a/255]}}}),yf=He({"node_modules/object-assign/index.js"(Y,H){var h=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,A=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={},i=0;i<10;i++)r["_"+String.fromCharCode(i)]=i;var a=Object.getOwnPropertyNames(r).map(function(n){return r[n]});if(a.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(n){o[n]=n}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}H.exports=e()?Object.assign:function(t,r){for(var i,a=E(t),o,n=1;ng.length)&&(y=g.length);for(var R=0,I=new Array(y);R 1.0 + delta) { + discard; + } + + alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); + + float borderRadius = fragBorderRadius; + float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); + vec4 color = mix(fragColor, fragBorderColor, ratio); + color.a *= alpha * opacity; + gl_FragColor = color; +} +`]),ie.vert=v([`precision highp float; +#define GLSLIFY 1 + +attribute float x, y, xFract, yFract; +attribute float size, borderSize; +attribute vec4 colorId, borderColorId; +attribute float isActive; + +// \`invariant\` effectively turns off optimizations for the position. +// We need this because -fast-math on M1 Macs is re-ordering +// floating point operations in a way that causes floating point +// precision limits to put points in the wrong locations. +invariant gl_Position; + +uniform bool constPointSize; +uniform float pixelRatio; +uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; +uniform sampler2D paletteTexture; + +const float maxSize = 100.; + +varying vec4 fragColor, fragBorderColor; +varying float fragBorderRadius, fragWidth; + +float pointSizeScale = (constPointSize) ? 2. : pixelRatio; + +bool isDirect = (paletteSize.x < 1.); + +vec4 getColor(vec4 id) { + return isDirect ? id / 255. : texture2D(paletteTexture, + vec2( + (id.x + .5) / paletteSize.x, + (id.y + .5) / paletteSize.y + ) + ); +} + +void main() { + // ignore inactive points + if (isActive == 0.) return; + + vec2 position = vec2(x, y); + vec2 positionFract = vec2(xFract, yFract); + + vec4 color = getColor(colorId); + vec4 borderColor = getColor(borderColorId); + + float size = size * maxSize / 255.; + float borderSize = borderSize * maxSize / 255.; + + gl_PointSize = (size + borderSize) * pointSizeScale; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + gl_Position = vec4(pos * 2. - 1., 0., 1.); + + fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); + fragColor = color; + fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; + fragWidth = 1. / gl_PointSize; +} +`]),w&&(ie.frag=ie.frag.replace("smoothstep","smoothStep"),ue.frag=ue.frag.replace("smoothstep","smoothStep")),this.drawCircle=g(ie)}b.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var g=this,y=arguments.length,R=new Array(y),I=0;Iwe)?Ze.tree=f(Je,{bounds:Ke}):we&&we.length&&(Ze.tree=we),Ze.tree){var Et={primitive:"points",usage:"static",data:Ze.tree,type:"uint32"};Ze.elements?Ze.elements(Et):Ze.elements=B.elements(Et)}var kt=S.float32(Je);he({data:kt,usage:"dynamic"});var Ut=S.fract32(Je,kt);return De({data:Ut,usage:"dynamic"}),et({data:new Uint8Array(nt),type:"uint8",usage:"stream"}),Je}},{marker:function(Je,Ze,Me){var we=Ze.activation;if(we.forEach(function(Ut){return Ut&&Ut.destroy&&Ut.destroy()}),we.length=0,!Je||typeof Je[0]=="number"){var he=g.addMarker(Je);we[he]=!0}else{for(var De=[],et=0,nt=Math.min(Je.length,Ze.count);et=0)return z;var F;if(g instanceof Uint8Array||g instanceof Uint8ClampedArray)F=g;else{F=new Uint8Array(g.length);for(var B=0,O=g.length;BI*4&&(this.tooManyColors=!0),this.updatePalette(R),z.length===1?z[0]:z},b.prototype.updatePalette=function(g){if(!this.tooManyColors){var y=this.maxColors,R=this.paletteTexture,I=Math.ceil(g.length*.25/y);if(I>1){g=g.slice();for(var z=g.length*.25%y;z80*P){ue=le=B[0],ie=q=B[1];for(var se=P;sele&&(le=J),ee>q&&(q=ee);Z=Math.max(le-ue,q-ie),Z=Z!==0?32767/Z:0}return E(X,te,P,ue,ie,Z,0),te}function x(B,O,P,N,U){var X,te;if(U===F(B,O,P,N)>0)for(X=O;X=O;X-=N)te=R(X,B[X],B[X+1],te);return te&&S(te,te.next)&&(I(te),te=te.next),te}function A(B,O){if(!B)return B;O||(O=B);var P=B,N;do if(N=!1,!P.steiner&&(S(P,P.next)||w(P.prev,P,P.next)===0)){if(I(P),P=O=P.prev,P===P.next)break;N=!0}else P=P.next;while(N||P!==O);return O}function E(B,O,P,N,U,X,te){if(B){!te&&X&&f(B,N,U,X);for(var ue=B,ie,le;B.prev!==B.next;){if(ie=B.prev,le=B.next,X?t(B,N,U,X):e(B)){O.push(ie.i/P|0),O.push(B.i/P|0),O.push(le.i/P|0),I(B),B=le.next,ue=le.next;continue}if(B=le,B===ue){te?te===1?(B=r(A(B),O,P),E(B,O,P,N,U,X,2)):te===2&&i(B,O,P,N,U,X):E(A(B),O,P,N,U,X,1);break}}}}function e(B){var O=B.prev,P=B,N=B.next;if(w(O,P,N)>=0)return!1;for(var U=O.x,X=P.x,te=N.x,ue=O.y,ie=P.y,le=N.y,q=UX?U>te?U:te:X>te?X:te,Z=ue>ie?ue>le?ue:le:ie>le?ie:le,se=N.next;se!==O;){if(se.x>=q&&se.x<=ee&&se.y>=J&&se.y<=Z&&l(U,ue,X,ie,te,le,se.x,se.y)&&w(se.prev,se,se.next)>=0)return!1;se=se.next}return!0}function t(B,O,P,N){var U=B.prev,X=B,te=B.next;if(w(U,X,te)>=0)return!1;for(var ue=U.x,ie=X.x,le=te.x,q=U.y,J=X.y,ee=te.y,Z=ueie?ue>le?ue:le:ie>le?ie:le,V=q>J?q>ee?q:ee:J>ee?J:ee,re=v(Z,se,O,P,N),ae=v(Q,V,O,P,N),fe=B.prevZ,xe=B.nextZ;fe&&fe.z>=re&&xe&&xe.z<=ae;){if(fe.x>=Z&&fe.x<=Q&&fe.y>=se&&fe.y<=V&&fe!==U&&fe!==te&&l(ue,q,ie,J,le,ee,fe.x,fe.y)&&w(fe.prev,fe,fe.next)>=0||(fe=fe.prevZ,xe.x>=Z&&xe.x<=Q&&xe.y>=se&&xe.y<=V&&xe!==U&&xe!==te&&l(ue,q,ie,J,le,ee,xe.x,xe.y)&&w(xe.prev,xe,xe.next)>=0))return!1;xe=xe.nextZ}for(;fe&&fe.z>=re;){if(fe.x>=Z&&fe.x<=Q&&fe.y>=se&&fe.y<=V&&fe!==U&&fe!==te&&l(ue,q,ie,J,le,ee,fe.x,fe.y)&&w(fe.prev,fe,fe.next)>=0)return!1;fe=fe.prevZ}for(;xe&&xe.z<=ae;){if(xe.x>=Z&&xe.x<=Q&&xe.y>=se&&xe.y<=V&&xe!==U&&xe!==te&&l(ue,q,ie,J,le,ee,xe.x,xe.y)&&w(xe.prev,xe,xe.next)>=0)return!1;xe=xe.nextZ}return!0}function r(B,O,P){var N=B;do{var U=N.prev,X=N.next.next;!S(U,X)&&M(U,N,N.next,X)&&u(U,X)&&u(X,U)&&(O.push(U.i/P|0),O.push(N.i/P|0),O.push(X.i/P|0),I(N),I(N.next),N=B=X),N=N.next}while(N!==B);return A(N)}function i(B,O,P,N,U,X){var te=B;do{for(var ue=te.next.next;ue!==te.prev;){if(te.i!==ue.i&&m(te,ue)){var ie=y(te,ue);te=A(te,te.next),ie=A(ie,ie.next),E(te,O,P,N,U,X,0),E(ie,O,P,N,U,X,0);return}ue=ue.next}te=te.next}while(te!==B)}function a(B,O,P,N){var U=[],X,te,ue,ie,le;for(X=0,te=O.length;X=P.next.y&&P.next.y!==P.y){var ue=P.x+(U-P.y)*(P.next.x-P.x)/(P.next.y-P.y);if(ue<=N&&ue>X&&(X=ue,te=P.x=P.x&&P.x>=le&&N!==P.x&&l(Ute.x||P.x===te.x&&c(te,P)))&&(te=P,J=ee)),P=P.next;while(P!==ie);return te}function c(B,O){return w(B.prev,B,O.prev)<0&&w(O.next,B,B.next)<0}function f(B,O,P,N){var U=B;do U.z===0&&(U.z=v(U.x,U.y,O,P,N)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==B);U.prevZ.nextZ=null,U.prevZ=null,p(U)}function p(B){var O,P,N,U,X,te,ue,ie,le=1;do{for(P=B,B=null,X=null,te=0;P;){for(te++,N=P,ue=0,O=0;O0||ie>0&&N;)ue!==0&&(ie===0||!N||P.z<=N.z)?(U=P,P=P.nextZ,ue--):(U=N,N=N.nextZ,ie--),X?X.nextZ=U:B=U,U.prevZ=X,X=U;P=N}X.nextZ=null,le*=2}while(te>1);return B}function v(B,O,P,N,U){return B=(B-P)*U|0,O=(O-N)*U|0,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,O=(O|O<<8)&16711935,O=(O|O<<4)&252645135,O=(O|O<<2)&858993459,O=(O|O<<1)&1431655765,B|O<<1}function T(B){var O=B,P=B;do(O.x=(B-te)*(X-ue)&&(B-te)*(N-ue)>=(P-te)*(O-ue)&&(P-te)*(X-ue)>=(U-te)*(N-ue)}function m(B,O){return B.next.i!==O.i&&B.prev.i!==O.i&&!d(B,O)&&(u(B,O)&&u(O,B)&&g(B,O)&&(w(B.prev,B,O.prev)||w(B,O.prev,O))||S(B,O)&&w(B.prev,B,B.next)>0&&w(O.prev,O,O.next)>0)}function w(B,O,P){return(O.y-B.y)*(P.x-O.x)-(O.x-B.x)*(P.y-O.y)}function S(B,O){return B.x===O.x&&B.y===O.y}function M(B,O,P,N){var U=b(w(B,O,P)),X=b(w(B,O,N)),te=b(w(P,N,B)),ue=b(w(P,N,O));return!!(U!==X&&te!==ue||U===0&&_(B,P,O)||X===0&&_(B,N,O)||te===0&&_(P,B,N)||ue===0&&_(P,O,N))}function _(B,O,P){return O.x<=Math.max(B.x,P.x)&&O.x>=Math.min(B.x,P.x)&&O.y<=Math.max(B.y,P.y)&&O.y>=Math.min(B.y,P.y)}function b(B){return B>0?1:B<0?-1:0}function d(B,O){var P=B;do{if(P.i!==B.i&&P.next.i!==B.i&&P.i!==O.i&&P.next.i!==O.i&&M(P,P.next,B,O))return!0;P=P.next}while(P!==B);return!1}function u(B,O){return w(B.prev,B,B.next)<0?w(B,O,B.next)>=0&&w(B,B.prev,O)>=0:w(B,O,B.prev)<0||w(B,B.next,O)<0}function g(B,O){var P=B,N=!1,U=(B.x+O.x)/2,X=(B.y+O.y)/2;do P.y>X!=P.next.y>X&&P.next.y!==P.y&&U<(P.next.x-P.x)*(X-P.y)/(P.next.y-P.y)+P.x&&(N=!N),P=P.next;while(P!==B);return N}function y(B,O){var P=new z(B.i,B.x,B.y),N=new z(O.i,O.x,O.y),U=B.next,X=O.prev;return B.next=O,O.prev=B,P.next=U,U.prev=P,N.next=P,P.prev=N,X.next=N,N.prev=X,N}function R(B,O,P,N){var U=new z(B,O,P);return N?(U.next=N.next,U.prev=N,N.next.prev=U,N.next=U):(U.prev=U,U.next=U),U}function I(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function z(B,O,P){this.i=B,this.x=O,this.y=P,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}h.deviation=function(B,O,P,N){var U=O&&O.length,X=U?O[0]*P:B.length,te=Math.abs(F(B,0,X,P));if(U)for(var ue=0,ie=O.length;ue0&&(N+=B[U-1].length,P.holes.push(N))}return P}}}),LP=He({"node_modules/array-normalize/index.js"(Y,H){var h=Zp();H.exports=x;function x(A,E,e){if(!A||A.length==null)throw Error("Argument should be an array");E==null&&(E=1),e==null&&(e=h(A,E));for(var t=0;t-1}}}),wT=He({"node_modules/es5-ext/string/#/contains/index.js"(Y,H){H.exports=qP()()?String.prototype.contains:GP()}}),vd=He({"node_modules/d/index.js"(Y,H){var h=Kp(),x=xT(),A=lx(),E=bT(),e=wT(),t=H.exports=function(r,i){var a,o,n,s,c;return arguments.length<2||typeof r!="string"?(s=i,i=r,r=null):s=arguments[2],h(r)?(a=e.call(r,"c"),o=e.call(r,"e"),n=e.call(r,"w")):(a=n=!0,o=!1),c={value:i,configurable:a,enumerable:o,writable:n},s?A(E(s),c):c};t.gs=function(r,i,a){var o,n,s,c;return typeof r!="string"?(s=a,a=i,i=r,r=null):s=arguments[3],h(i)?x(i)?h(a)?x(a)||(s=a,a=void 0):a=void 0:(s=i,i=a=void 0):i=void 0,h(r)?(o=e.call(r,"c"),n=e.call(r,"e")):(o=!0,n=!1),c={get:i,set:a,configurable:o,enumerable:n},s?A(E(s),c):c}}}),Xm=He({"node_modules/es5-ext/function/is-arguments.js"(Y,H){var h=Object.prototype.toString,x=h.call(function(){return arguments}());H.exports=function(A){return h.call(A)===x}}}),Zm=He({"node_modules/es5-ext/string/is-string.js"(Y,H){var h=Object.prototype.toString,x=h.call("");H.exports=function(A){return typeof A=="string"||A&&typeof A=="object"&&(A instanceof String||h.call(A)===x)||!1}}}),HP=He({"node_modules/ext/global-this/is-implemented.js"(Y,H){H.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}}}),WP=He({"node_modules/ext/global-this/implementation.js"(Y,H){var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};H.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}()}}),Ym=He({"node_modules/ext/global-this/index.js"(Y,H){H.exports=HP()()?globalThis:WP()}}),XP=He({"node_modules/es6-symbol/is-implemented.js"(Y,H){var h=Ym(),x={object:!0,symbol:!0};H.exports=function(){var A=h.Symbol,E;if(typeof A!="function")return!1;E=A("test symbol");try{String(E)}catch{return!1}return!(!x[typeof A.iterator]||!x[typeof A.toPrimitive]||!x[typeof A.toStringTag])}}}),ZP=He({"node_modules/es6-symbol/is-symbol.js"(Y,H){H.exports=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}}}),TT=He({"node_modules/es6-symbol/validate-symbol.js"(Y,H){var h=ZP();H.exports=function(x){if(!h(x))throw new TypeError(x+" is not a symbol");return x}}}),YP=He({"node_modules/es6-symbol/lib/private/generate-name.js"(Y,H){var h=vd(),x=Object.create,A=Object.defineProperty,E=Object.prototype,e=x(null);H.exports=function(t){for(var r=0,i,a;e[t+(r||"")];)++r;return t+=r||"",e[t]=!0,i="@@"+t,A(E,i,h.gs(null,function(o){a||(a=!0,A(this,i,h(o)),a=!1)})),i}}}),$P=He({"node_modules/es6-symbol/lib/private/setup/standard-symbols.js"(Y,H){var h=vd(),x=Ym().Symbol;H.exports=function(A){return Object.defineProperties(A,{hasInstance:h("",x&&x.hasInstance||A("hasInstance")),isConcatSpreadable:h("",x&&x.isConcatSpreadable||A("isConcatSpreadable")),iterator:h("",x&&x.iterator||A("iterator")),match:h("",x&&x.match||A("match")),replace:h("",x&&x.replace||A("replace")),search:h("",x&&x.search||A("search")),species:h("",x&&x.species||A("species")),split:h("",x&&x.split||A("split")),toPrimitive:h("",x&&x.toPrimitive||A("toPrimitive")),toStringTag:h("",x&&x.toStringTag||A("toStringTag")),unscopables:h("",x&&x.unscopables||A("unscopables"))})}}}),KP=He({"node_modules/es6-symbol/lib/private/setup/symbol-registry.js"(Y,H){var h=vd(),x=TT(),A=Object.create(null);H.exports=function(E){return Object.defineProperties(E,{for:h(function(e){return A[e]?A[e]:A[e]=E(String(e))}),keyFor:h(function(e){var t;x(e);for(t in A)if(A[t]===e)return t})})}}}),JP=He({"node_modules/es6-symbol/polyfill.js"(Y,H){var h=vd(),x=TT(),A=Ym().Symbol,E=YP(),e=$P(),t=KP(),r=Object.create,i=Object.defineProperties,a=Object.defineProperty,o,n,s;if(typeof A=="function")try{String(A()),s=!0}catch{}else A=null;n=function(f){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(f)},H.exports=o=function c(f){var p;if(this instanceof c)throw new TypeError("Symbol is not a constructor");return s?A(f):(p=r(n.prototype),f=f===void 0?"":String(f),i(p,{__description__:h("",f),__name__:h("",E(f))}))},e(o),t(o),i(n.prototype,{constructor:h(o),toString:h("",function(){return this.__name__})}),i(o.prototype,{toString:h(function(){return"Symbol ("+x(this).__description__+")"}),valueOf:h(function(){return x(this)})}),a(o.prototype,o.toPrimitive,h("",function(){var c=x(this);return typeof c=="symbol"?c:c.toString()})),a(o.prototype,o.toStringTag,h("c","Symbol")),a(n.prototype,o.toStringTag,h("c",o.prototype[o.toStringTag])),a(n.prototype,o.toPrimitive,h("c",o.prototype[o.toPrimitive]))}}),up=He({"node_modules/es6-symbol/index.js"(Y,H){H.exports=XP()()?Ym().Symbol:JP()}}),QP=He({"node_modules/es5-ext/array/#/clear.js"(Y,H){var h=hd();H.exports=function(){return h(this).length=0,this}}}),dg=He({"node_modules/es5-ext/object/valid-callable.js"(Y,H){H.exports=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h}}}),eI=He({"node_modules/type/string/coerce.js"(Y,H){var h=Kp(),x=sx(),A=Object.prototype.toString;H.exports=function(E){if(!h(E))return null;if(x(E)){var e=E.toString;if(typeof e!="function"||e===A)return null}try{return""+E}catch{return null}}}}),tI=He({"node_modules/type/lib/safe-to-string.js"(Y,H){H.exports=function(h){try{return h.toString()}catch{try{return String(h)}catch{return null}}}}}),rI=He({"node_modules/type/lib/to-short-string.js"(Y,H){var h=tI(),x=/[\n\r\u2028\u2029]/g;H.exports=function(A){var E=h(A);return E===null?"":(E.length>100&&(E=E.slice(0,99)+"…"),E=E.replace(x,function(e){switch(e){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),E)}}}),AT=He({"node_modules/type/lib/resolve-exception.js"(Y,H){var h=Kp(),x=sx(),A=eI(),E=rI(),e=function(t,r){return t.replace("%v",E(r))};H.exports=function(t,r,i){if(!x(i))throw new TypeError(e(r,t));if(!h(t)){if("default"in i)return i.default;if(i.isOptional)return null}var a=A(i.errorMessage);throw h(a)||(a=r),new TypeError(e(a,t))}}}),aI=He({"node_modules/type/value/ensure.js"(Y,H){var h=AT(),x=Kp();H.exports=function(A){return x(A)?A:h(A,"Cannot use %v",arguments[1])}}}),nI=He({"node_modules/type/plain-function/ensure.js"(Y,H){var h=AT(),x=xT();H.exports=function(A){return x(A)?A:h(A,"%v is not a plain function",arguments[1])}}}),iI=He({"node_modules/es5-ext/array/from/is-implemented.js"(Y,H){H.exports=function(){var h=Array.from,x,A;return typeof h!="function"?!1:(x=["raz","dwa"],A=h(x),!!(A&&A!==x&&A[1]==="dwa"))}}}),oI=He({"node_modules/es5-ext/function/is-function.js"(Y,H){var h=Object.prototype.toString,x=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);H.exports=function(A){return typeof A=="function"&&x(h.call(A))}}}),sI=He({"node_modules/es5-ext/math/sign/is-implemented.js"(Y,H){H.exports=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1}}}),lI=He({"node_modules/es5-ext/math/sign/shim.js"(Y,H){H.exports=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}}}),uI=He({"node_modules/es5-ext/math/sign/index.js"(Y,H){H.exports=sI()()?Math.sign:lI()}}),cI=He({"node_modules/es5-ext/number/to-integer.js"(Y,H){var h=uI(),x=Math.abs,A=Math.floor;H.exports=function(E){return isNaN(E)?0:(E=Number(E),E===0||!isFinite(E)?E:h(E)*A(x(E)))}}}),fI=He({"node_modules/es5-ext/number/to-pos-integer.js"(Y,H){var h=cI(),x=Math.max;H.exports=function(A){return x(0,h(A))}}}),hI=He({"node_modules/es5-ext/array/from/shim.js"(Y,H){var h=up().iterator,x=Xm(),A=oI(),E=fI(),e=dg(),t=hd(),r=lp(),i=Zm(),a=Array.isArray,o=Function.prototype.call,n={configurable:!0,enumerable:!0,writable:!0,value:null},s=Object.defineProperty;H.exports=function(c){var f=arguments[1],p=arguments[2],v,T,l,m,w,S,M,_,b,d;if(c=Object(t(c)),r(f)&&e(f),!this||this===Array||!A(this)){if(!f){if(x(c))return w=c.length,w!==1?Array.apply(null,c):(m=new Array(1),m[0]=c[0],m);if(a(c)){for(m=new Array(w=c.length),T=0;T=55296&&S<=56319&&(d+=c[++T])),d=f?o.call(f,p,d,l):d,v?(n.value=d,s(m,l,n)):m[l]=d,++l;w=l}}if(w===void 0)for(w=E(c.length),v&&(m=new v(w)),T=0;T=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){i(this,"__redo__",e("c",[n]));return}this.__redo__.forEach(function(s,c){s>=n&&(this.__redo__[c]=++s)},this),this.__redo__.push(n)}}),_onDelete:e(function(n){var s;n>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(s=this.__redo__.indexOf(n),s!==-1&&this.__redo__.splice(s,1),this.__redo__.forEach(function(c,f){c>n&&(this.__redo__[f]=--c)},this)))}),_onClear:e(function(){this.__redo__&&h.call(this.__redo__),this.__nextIndex__=0})}))),i(o.prototype,r.iterator,e(function(){return this}))}}),_I=He({"node_modules/es6-iterator/array.js"(Y,H){var h=ox(),x=wT(),A=vd(),E=up(),e=ST(),t=Object.defineProperty,r;r=H.exports=function(i,a){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");e.call(this,i),a?x.call(a,"key+value")?a="key+value":x.call(a,"key")?a="key":a="value":a="value",t(this,"__kind__",A("",a))},h&&h(r,e),delete r.prototype.constructor,r.prototype=Object.create(e.prototype,{_resolve:A(function(i){return this.__kind__==="value"?this.__list__[i]:this.__kind__==="key+value"?[i,this.__list__[i]]:i})}),t(r.prototype,E.toStringTag,A("c","Array Iterator"))}}),xI=He({"node_modules/es6-iterator/string.js"(Y,H){var h=ox(),x=vd(),A=up(),E=ST(),e=Object.defineProperty,t;t=H.exports=function(r){if(!(this instanceof t))throw new TypeError("Constructor requires 'new'");r=String(r),E.call(this,r),e(this,"__length__",x("",r.length))},h&&h(t,E),delete t.prototype.constructor,t.prototype=Object.create(E.prototype,{_next:x(function(){if(this.__list__){if(this.__nextIndex__=55296&&a<=56319?i+this.__list__[this.__nextIndex__++]:i)})}),e(t.prototype,A.toStringTag,x("c","String Iterator"))}}),bI=He({"node_modules/es6-iterator/is-iterable.js"(Y,H){var h=Xm(),x=lp(),A=Zm(),E=up().iterator,e=Array.isArray;H.exports=function(t){return x(t)?e(t)||A(t)||h(t)?!0:typeof t[E]=="function":!1}}}),wI=He({"node_modules/es6-iterator/valid-iterable.js"(Y,H){var h=bI();H.exports=function(x){if(!h(x))throw new TypeError(x+" is not iterable");return x}}}),MT=He({"node_modules/es6-iterator/get.js"(Y,H){var h=Xm(),x=Zm(),A=_I(),E=xI(),e=wI(),t=up().iterator;H.exports=function(r){return typeof e(r)[t]=="function"?r[t]():h(r)?new A(r):x(r)?new E(r):new A(r)}}}),TI=He({"node_modules/es6-iterator/for-of.js"(Y,H){var h=Xm(),x=dg(),A=Zm(),E=MT(),e=Array.isArray,t=Function.prototype.call,r=Array.prototype.some;H.exports=function(i,a){var o,n=arguments[2],s,c,f,p,v,T,l;if(e(i)||h(i)?o="array":A(i)?o="string":i=E(i),x(a),c=function(){f=!0},o==="array"){r.call(i,function(m){return t.call(a,n,m,c),f});return}if(o==="string"){for(v=i.length,p=0;p=55296&&l<=56319&&(T+=i[++p])),t.call(a,n,T,c),!f);++p);return}for(s=i.next();!s.done;){if(t.call(a,n,s.value,c),f)return;s=i.next()}}}}),AI=He({"node_modules/es6-weak-map/is-native-implemented.js"(Y,H){H.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()}}),SI=He({"node_modules/es6-weak-map/polyfill.js"(Y,H){var h=lp(),x=ox(),A=DP(),E=hd(),e=zP(),t=vd(),r=MT(),i=TI(),a=up().toStringTag,o=AI(),n=Array.isArray,s=Object.defineProperty,c=Object.prototype.hasOwnProperty,f=Object.getPrototypeOf,p;H.exports=p=function(){var v=arguments[0],T;if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");return T=o&&x&&WeakMap!==p?x(new WeakMap,f(this)):this,h(v)&&(n(v)||(v=r(v))),s(T,"__weakMapData__",t("c","$weakMap$"+e())),v&&i(v,function(l){E(l),T.set(l[0],l[1])}),T},o&&(x&&x(p,WeakMap),p.prototype=Object.create(WeakMap.prototype,{constructor:t(p)})),Object.defineProperties(p.prototype,{delete:t(function(v){return c.call(A(v),this.__weakMapData__)?(delete v[this.__weakMapData__],!0):!1}),get:t(function(v){if(c.call(A(v),this.__weakMapData__))return v[this.__weakMapData__]}),has:t(function(v){return c.call(A(v),this.__weakMapData__)}),set:t(function(v,T){return s(A(v),this.__weakMapData__,t("c",T)),this}),toString:t(function(){return"[object WeakMap]"})}),s(p.prototype,a,t("c","WeakMap"))}}),ET=He({"node_modules/es6-weak-map/index.js"(Y,H){H.exports=PP()()?WeakMap:SI()}}),MI=He({"node_modules/array-find-index/index.js"(Y,H){H.exports=function(h,x,A){if(typeof Array.prototype.findIndex=="function")return h.findIndex(x,A);if(typeof x!="function")throw new TypeError("predicate must be a function");var E=Object(h),e=E.length;if(e===0)return-1;for(var t=0;t 0. && baClipping < length(normalWidth * endBotJoin)) { + //handle miter clipping + bTopCoord -= normalWidth * endTopJoin; + bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; + } + + if (nextReverse) { + //make join rectangular + vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); + bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { + //handle miter clipping + aBotCoord -= normalWidth * startBotJoin; + aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; + } + + vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; + vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; + + vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; + vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; + + //position is normalized 0..1 coord on the screen + vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; + + startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; + endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + enableStartMiter = step(dot(currTangent, prevTangent), .5); + enableEndMiter = step(dot(currTangent, nextTangent), .5); + + //bevel miter cutoffs + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } + + //round miter cutoffs + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } +} +`,l=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; +varying vec4 startCutoff, endCutoff; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +void main() { + float alpha = 1., distToStart, distToEnd; + float cutoff = thickness * .5; + + //bevel miter + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < -1.) { + discard; + return; + } + alpha *= min(max(distToStart + 1., 0.), 1.); + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < -1.) { + discard; + return; + } + alpha *= min(max(distToEnd + 1., 0.), 1.); + } + } + + // round miter + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < 0.) { + float radius = length(gl_FragCoord.xy - startCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < 0.) { + float radius = length(gl_FragCoord.xy - endCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + } + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`;H.exports=m;function m(w,S){if(!(this instanceof m))return new m(w,S);if(typeof w=="function"?(S||(S={}),S.regl=w):S=w,S.length&&(S.positions=S),w=S.regl,!w.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=w._gl,this.regl=w,this.passes=[],this.shaders=m.shaders.has(w)?m.shaders.get(w):m.shaders.set(w,m.createShaders(w)).get(w),this.update(S)}m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new o,m.createShaders=function(w){let S=w.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:w.prop("count"),count:4,offset:0,uniforms:{miterMode:(u,g)=>g.join==="round"?2:1,miterLimit:w.prop("miterLimit"),scale:w.prop("scale"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),thickness:w.prop("thickness"),dashTexture:w.prop("dashTexture"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),dashLength:w.prop("dashLength"),viewport:(u,g)=>[g.viewport.x,g.viewport.y,u.viewportWidth,u.viewportHeight],depth:w.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(u,g)=>!g.overlay},stencil:{enable:!1},scissor:{enable:!0,box:w.prop("viewport")},viewport:w.prop("viewport")},_=w(A({vert:c,frag:f,attributes:{lineEnd:{buffer:S,divisor:0,stride:8,offset:0},lineTop:{buffer:S,divisor:0,stride:8,offset:4},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),b;try{b=w(A({cull:{enable:!0,face:"back"},vert:T,frag:l,attributes:{lineEnd:{buffer:S,divisor:0,stride:8,offset:0},lineTop:{buffer:S,divisor:0,stride:8,offset:4},aColor:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:w.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{b=_}return{fill:w({primitive:"triangle",elements:(u,g)=>g.triangles,offset:0,vert:p,frag:v,uniforms:{scale:w.prop("scale"),color:w.prop("fill"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),viewport:(u,g)=>[g.viewport.x,g.viewport.y,u.viewportWidth,u.viewportHeight]},attributes:{position:{buffer:w.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:_,miter:b}},m.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(...w){w.length&&this.update(...w),this.draw()},m.prototype.draw=function(...w){return(w.length?w:this.passes).forEach((S,M)=>{if(S&&Array.isArray(S))return this.draw(...S);typeof S=="number"&&(S=this.passes[S]),S&&S.count>1&&S.opacity&&(this.regl._refresh(),S.fill&&S.triangles&&S.triangles.length>2&&this.shaders.fill(S),S.thickness&&(S.scale[0]*S.viewport.width>m.precisionThreshold||S.scale[1]*S.viewport.height>m.precisionThreshold?this.shaders.rect(S):S.join==="rect"||!S.join&&(S.thickness<=2||S.count>=m.maxPoints)?this.shaders.rect(S):this.shaders.miter(S)))}),this},m.prototype.update=function(w){if(!w)return;w.length!=null?typeof w[0]=="number"&&(w=[{positions:w}]):Array.isArray(w)||(w=[w]);let{regl:S,gl:M}=this;if(w.forEach((b,d)=>{let u=this.passes[d];if(b!==void 0){if(b===null){this.passes[d]=null;return}if(typeof b[0]=="number"&&(b={positions:b}),b=E(b,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),u||(this.passes[d]=u={id:d,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:S.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:S.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:S.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:S.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},b=A({},m.defaults,b)),b.thickness!=null&&(u.thickness=parseFloat(b.thickness)),b.opacity!=null&&(u.opacity=parseFloat(b.opacity)),b.miterLimit!=null&&(u.miterLimit=parseFloat(b.miterLimit)),b.overlay!=null&&(u.overlay=!!b.overlay,die-le),X=[],te=0,ue=u.hole!=null?u.hole[0]:null;if(ue!=null){let ie=s(U,le=>le>=ue);U=U.slice(0,ie),U.push(ue)}for(let ie=0;ieee-ue+(U[ie]-te)),J=t(le,q);J=J.map(ee=>ee+te+(ee+te{w.colorBuffer.destroy(),w.positionBuffer.destroy(),w.dashTexture.destroy()}),this.passes.length=0,this}}}),EI=He({"node_modules/regl-error2d/index.js"(Y,H){var h=Zp(),x=ap(),A=pT(),E=Gv(),e=yf(),t=Yp(),{float32:r,fract32:i}=ix();H.exports=o;var a=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function o(n,s){if(typeof n=="function"?(s||(s={}),s.regl=n):s=n,s.length&&(s.positions=s),n=s.regl,!n.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let c=n._gl,f,p,v,T,l,m,w={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},S=[];return T=n.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),p=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),v=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=n.buffer({usage:"static",type:"float",data:a}),d(s),f=n({vert:` + precision highp float; + + attribute vec2 position, positionFract; + attribute vec4 error; + attribute vec4 color; + + attribute vec2 direction, lineOffset, capOffset; + + uniform vec4 viewport; + uniform float lineWidth, capSize; + uniform vec2 scale, scaleFract, translate, translateFract; + + varying vec4 fragColor; + + void main() { + fragColor = color / 255.; + + vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset; + + vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw; + + vec2 position = position + dxy; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + pos += pixelOffset / viewport.zw; + + gl_Position = vec4(pos * 2. - 1., 0, 1); + } + `,frag:` + precision highp float; + + varying vec4 fragColor; + + uniform float opacity; + + void main() { + gl_FragColor = fragColor; + gl_FragColor.a *= opacity; + } + `,uniforms:{range:n.prop("range"),lineWidth:n.prop("lineWidth"),capSize:n.prop("capSize"),opacity:n.prop("opacity"),scale:n.prop("scale"),translate:n.prop("translate"),scaleFract:n.prop("scaleFract"),translateFract:n.prop("translateFract"),viewport:(g,y)=>[y.viewport.x,y.viewport.y,g.viewportWidth,g.viewportHeight]},attributes:{color:{buffer:T,offset:(g,y)=>y.offset*4,divisor:1},position:{buffer:p,offset:(g,y)=>y.offset*8,divisor:1},positionFract:{buffer:v,offset:(g,y)=>y.offset*8,divisor:1},error:{buffer:l,offset:(g,y)=>y.offset*16,divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:n.prop("viewport")},viewport:n.prop("viewport"),stencil:!1,instances:n.prop("count"),count:a.length}),e(M,{update:d,draw:_,destroy:u,regl:n,gl:c,canvas:c.canvas,groups:S}),M;function M(g){g?d(g):g===null&&u(),_()}function _(g){if(typeof g=="number")return b(g);g&&!Array.isArray(g)&&(g=[g]),n._refresh(),S.forEach((y,R)=>{if(y){if(g&&(g[R]?y.draw=!0:y.draw=!1),!y.draw){y.draw=!0;return}b(R)}})}function b(g){typeof g=="number"&&(g=S[g]),g!=null&&g&&g.count&&g.color&&g.opacity&&g.positions&&g.positions.length>1&&(g.scaleRatio=[g.scale[0]*g.viewport.width,g.scale[1]*g.viewport.height],f(g),g.after&&g.after(g))}function d(g){if(!g)return;g.length!=null?typeof g[0]=="number"&&(g=[{positions:g}]):Array.isArray(g)||(g=[g]);let y=0,R=0;if(M.groups=S=g.map((F,B)=>{let O=S[B];if(F)typeof F=="function"?F={after:F}:typeof F[0]=="number"&&(F={positions:F});else return O;return F=E(F,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),O||(S[B]=O={id:B,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},F=e({},w,F)),A(O,F,[{lineWidth:P=>+P*.5,capSize:P=>+P*.5,opacity:parseFloat,errors:P=>(P=t(P),R+=P.length,P),positions:(P,N)=>(P=t(P,"float64"),N.count=Math.floor(P.length/2),N.bounds=h(P,2),N.offset=y,y+=N.count,P)},{color:(P,N)=>{let U=N.count;if(P||(P="transparent"),!Array.isArray(P)||typeof P[0]=="number"){let te=P;P=Array(U);for(let ue=0;ue{let X=N.bounds;return P||(P=X),N.scale=[1/(P[2]-P[0]),1/(P[3]-P[1])],N.translate=[-P[0],-P[1]],N.scaleFract=i(N.scale),N.translateFract=i(N.translate),P},viewport:P=>{let N;return Array.isArray(P)?N={x:P[0],y:P[1],width:P[2]-P[0],height:P[3]-P[1]}:P?(N={x:P.x||P.left||0,y:P.y||P.top||0},P.right?N.width=P.right-N.x:N.width=P.w||P.width||0,P.bottom?N.height=P.bottom-N.y:N.height=P.h||P.height||0):N={x:0,y:0,width:c.drawingBufferWidth,height:c.drawingBufferHeight},N}}]),O}),y||R){let F=S.reduce((N,U,X)=>N+(U?U.count:0),0),B=new Float64Array(F*2),O=new Uint8Array(F*4),P=new Float32Array(F*4);S.forEach((N,U)=>{if(!N)return;let{positions:X,count:te,offset:ue,color:ie,errors:le}=N;te&&(O.set(ie,ue*4),P.set(le,ue*4),B.set(X,ue*2))});var I=r(B);p(I);var z=i(B,I);v(z),T(O),l(P)}}function u(){p.destroy(),v.destroy(),T.destroy(),l.destroy(),m.destroy()}}}}),kI=He({"node_modules/unquote/index.js"(Y,H){var h=/[\'\"]/;H.exports=function(A){return A?(h.test(A.charAt(0))&&(A=A.substr(1)),h.test(A.charAt(A.length-1))&&(A=A.substr(0,A.length-1)),A):""}}}),CT=He({"node_modules/css-global-keywords/index.json"(){}}),LT=He({"node_modules/css-system-font-keywords/index.json"(){}}),PT=He({"node_modules/css-font-weight-keywords/index.json"(){}}),IT=He({"node_modules/css-font-style-keywords/index.json"(){}}),RT=He({"node_modules/css-font-stretch-keywords/index.json"(){}}),CI=He({"node_modules/parenthesis/index.js"(Y,H){function h(E,e){if(typeof E!="string")return[E];var t=[E];typeof e=="string"||Array.isArray(e)?e={brackets:e}:e||(e={});var r=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],i=e.escape||"___",a=!!e.flat;r.forEach(function(s){var c=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),f=[];function p(v,T,l){var m=t.push(v.slice(s[0].length,-s[1].length))-1;return f.push(m),i+m+i}t.forEach(function(v,T){for(var l,m=0;v!=l;)if(l=v,v=v.replace(c,p),m++>1e4)throw Error("References have circular dependency. Please, check them.");t[T]=v}),f=f.reverse(),t=t.map(function(v){return f.forEach(function(T){v=v.replace(new RegExp("(\\"+i+T+"\\"+i+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function n(s,c,f){for(var p=[],v,T=0;v=o.exec(s);){if(T++>1e4)throw Error("Circular references in parenthesis");p.push(s.slice(0,v.index)),p.push(n(c[v[1]],c)),s=s.slice(v.index+v[0].length)}return p.push(s),p}return a?t:n(t[0],t)}function x(E,e){if(e&&e.flat){var t=e&&e.escape||"___",r=E[0],i;if(!r)return"";for(var a=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;r!=i;){if(o++>1e4)throw Error("Circular references in "+E);i=r,r=r.replace(a,n)}return r}return E.reduce(function s(c,f){return Array.isArray(f)&&(f=f.reduce(s,"")),c+f},"");function n(s,c){if(E[c]==null)throw Error("Reference "+c+"is undefined");return E[c]}}function A(E,e){return Array.isArray(E)?x(E,e):h(E,e)}A.parse=h,A.stringify=x,H.exports=A}}),LI=He({"node_modules/string-split-by/index.js"(Y,H){var h=CI();H.exports=function(A,E,e){if(A==null)throw Error("First argument should be a string");if(E==null)throw Error("Separator should be a string or a RegExp");e?(typeof e=="string"||Array.isArray(e))&&(e={ignore:e}):e={},e.escape==null&&(e.escape=!0),e.ignore==null?e.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof e.ignore=="string"&&(e.ignore=[e.ignore]),e.ignore=e.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var t=h.parse(A,{flat:!0,brackets:e.ignore}),r=t[0],i=r.split(E);if(e.escape){for(var a=[],o=0;o1&&ir===ur&&(ir==='"'||ir==="'"))return['"'+r(lt.substr(1,lt.length-2))+'"'];var fa=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(lt);if(fa)return i(lt.substr(0,fa.index)).concat(i(fa[1])).concat(i(lt.substr(fa.index+fa[0].length)));var Va=lt.split(".");if(Va.length===1)return['"'+r(lt)+'"'];for(var Jr=[],Kr=0;Kr"u"?1:window.devicePixelRatio,wn=!1,Jn={},jn=function(Ur){},xn=function(){};if(typeof ir=="string"?ur=document.querySelector(ir):typeof ir=="object"&&(m(ir)?ur=ir:w(ir)?(Jr=ir,Va=Jr.canvas):("gl"in ir?Jr=ir.gl:"canvas"in ir?Va=M(ir.canvas):"container"in ir&&(fa=M(ir.container)),"attributes"in ir&&(Kr=ir.attributes),"extensions"in ir&&(cn=S(ir.extensions)),"optionalExtensions"in ir&&(ln=S(ir.optionalExtensions)),"onDone"in ir&&(jn=ir.onDone),"profile"in ir&&(wn=!!ir.profile),"pixelRatio"in ir&&(un=+ir.pixelRatio),"cachedCode"in ir&&(Jn=ir.cachedCode))),ur&&(ur.nodeName.toLowerCase()==="canvas"?Va=ur:fa=ur),!Jr){if(!Va){var Za=T(fa||document.body,jn,un);if(!Za)return null;Va=Za.canvas,xn=Za.onDestroy}Kr.premultipliedAlpha===void 0&&(Kr.premultipliedAlpha=!0),Jr=l(Va,Kr)}return Jr?{gl:Jr,canvas:Va,container:fa,extensions:cn,optionalExtensions:ln,pixelRatio:un,profile:wn,cachedCode:Jn,onDone:jn,onDestroy:xn}:(xn(),jn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function b(lt,ir){var ur={};function fa(Kr){var cn=Kr.toLowerCase(),ln;try{ln=ur[cn]=lt.getExtension(cn)}catch{}return!!ln}for(var Va=0;Va65535)<<4,lt>>>=ir,ur=(lt>255)<<3,lt>>>=ur,ir|=ur,ur=(lt>15)<<2,lt>>>=ur,ir|=ur,ur=(lt>3)<<1,lt>>>=ur,ir|=ur,ir|lt>>1}function P(){var lt=d(8,function(){return[]});function ir(Jr){var Kr=B(Jr),cn=lt[O(Kr)>>2];return cn.length>0?cn.pop():new ArrayBuffer(Kr)}function ur(Jr){lt[O(Jr.byteLength)>>2].push(Jr)}function fa(Jr,Kr){var cn=null;switch(Jr){case u:cn=new Int8Array(ir(Kr),0,Kr);break;case g:cn=new Uint8Array(ir(Kr),0,Kr);break;case y:cn=new Int16Array(ir(2*Kr),0,Kr);break;case R:cn=new Uint16Array(ir(2*Kr),0,Kr);break;case I:cn=new Int32Array(ir(4*Kr),0,Kr);break;case z:cn=new Uint32Array(ir(4*Kr),0,Kr);break;case F:cn=new Float32Array(ir(4*Kr),0,Kr);break;default:return null}return cn.length!==Kr?cn.subarray(0,Kr):cn}function Va(Jr){ur(Jr.buffer)}return{alloc:ir,free:ur,allocType:fa,freeType:Va}}var N=P();N.zero=P();var U=3408,X=3410,te=3411,ue=3412,ie=3413,le=3414,q=3415,J=33901,ee=33902,Z=3379,se=3386,Q=34921,V=36347,re=36348,ae=35661,fe=35660,xe=34930,Ae=36349,Pe=34076,Ce=34024,je=7936,at=7937,tt=7938,Je=35724,Ze=34047,Me=36063,we=34852,he=3553,De=34067,et=34069,nt=33984,Ke=6408,Et=5126,kt=5121,Ut=36160,Yt=36053,vr=36064,hr=16384,Rr=function(lt,ir){var ur=1;ir.ext_texture_filter_anisotropic&&(ur=lt.getParameter(Ze));var fa=1,Va=1;ir.webgl_draw_buffers&&(fa=lt.getParameter(we),Va=lt.getParameter(Me));var Jr=!!ir.oes_texture_float;if(Jr){var Kr=lt.createTexture();lt.bindTexture(he,Kr),lt.texImage2D(he,0,Ke,1,1,0,Ke,Et,null);var cn=lt.createFramebuffer();if(lt.bindFramebuffer(Ut,cn),lt.framebufferTexture2D(Ut,vr,he,Kr,0),lt.bindTexture(he,null),lt.checkFramebufferStatus(Ut)!==Yt)Jr=!1;else{lt.viewport(0,0,1,1),lt.clearColor(1,0,0,1),lt.clear(hr);var ln=N.allocType(Et,4);lt.readPixels(0,0,1,1,Ke,Et,ln),lt.getError()?Jr=!1:(lt.deleteFramebuffer(cn),lt.deleteTexture(Kr),Jr=ln[0]===1),N.freeType(ln)}}var un=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!un){var Jn=lt.createTexture(),jn=N.allocType(kt,36);lt.activeTexture(nt),lt.bindTexture(De,Jn),lt.texImage2D(et,0,Ke,3,3,0,Ke,kt,jn),N.freeType(jn),lt.bindTexture(De,null),lt.deleteTexture(Jn),wn=!lt.getError()}return{colorBits:[lt.getParameter(X),lt.getParameter(te),lt.getParameter(ue),lt.getParameter(ie)],depthBits:lt.getParameter(le),stencilBits:lt.getParameter(q),subpixelBits:lt.getParameter(U),extensions:Object.keys(ir).filter(function(xn){return!!ir[xn]}),maxAnisotropic:ur,maxDrawbuffers:fa,maxColorAttachments:Va,pointSizeDims:lt.getParameter(J),lineWidthDims:lt.getParameter(ee),maxViewportDims:lt.getParameter(se),maxCombinedTextureUnits:lt.getParameter(ae),maxCubeMapSize:lt.getParameter(Pe),maxRenderbufferSize:lt.getParameter(Ce),maxTextureUnits:lt.getParameter(xe),maxTextureSize:lt.getParameter(Z),maxAttributes:lt.getParameter(Q),maxVertexUniforms:lt.getParameter(V),maxVertexTextureUnits:lt.getParameter(fe),maxVaryingVectors:lt.getParameter(re),maxFragmentUniforms:lt.getParameter(Ae),glsl:lt.getParameter(Je),renderer:lt.getParameter(at),vendor:lt.getParameter(je),version:lt.getParameter(tt),readFloat:Jr,npotTextureCube:wn}},dr=function(lt){return lt instanceof Uint8Array||lt instanceof Uint16Array||lt instanceof Uint32Array||lt instanceof Int8Array||lt instanceof Int16Array||lt instanceof Int32Array||lt instanceof Float32Array||lt instanceof Float64Array||lt instanceof Uint8ClampedArray};function wr(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||dr(lt.data))}var yt=function(lt){return Object.keys(lt).map(function(ir){return lt[ir]})},Fe={shape:Ie,flatten:be};function We(lt,ir,ur){for(var fa=0;fa0){var Xn;if(Array.isArray(ya[0])){pn=ba(ya);for(var Oa=1,Ea=1;Ea0){if(typeof Oa[0]=="number"){var An=N.allocType(Fa.dtype,Oa.length);Tr(An,Oa),pn(An,Dn),N.freeType(An)}else if(Array.isArray(Oa[0])||dr(Oa[0])){da=ba(Oa);var fn=Ga(Oa,da,Fa.dtype);pn(fn,Dn),N.freeType(fn)}}}else if(wr(Oa)){da=Oa.shape;var Yn=Oa.stride,Pi=0,Vn=0,ei=0,bn=0;da.length===1?(Pi=da[0],Vn=1,ei=Yn[0],bn=0):da.length===2&&(Pi=da[0],Vn=da[1],ei=Yn[0],bn=Yn[1]);var Mi=Array.isArray(Oa.data)?Fa.dtype:Ht(Oa.data),Xi=N.allocType(Mi,Pi*Vn);qr(Xi,Oa.data,Pi,Vn,ei,bn,Oa.offset),pn(Xi,Dn),N.freeType(Xi)}return Bn}return Ra||Bn(Ur),Bn._reglType="buffer",Bn._buffer=Fa,Bn.subdata=Xn,ur.profile&&(Bn.stats=Fa.stats),Bn.destroy=function(){jn(Fa)},Bn}function Za(){yt(Jr).forEach(function(Ur){Ur.buffer=lt.createBuffer(),lt.bindBuffer(Ur.type,Ur.buffer),lt.bufferData(Ur.type,Ur.persistentData||Ur.byteLength,Ur.usage)})}return ur.profile&&(ir.getTotalBufferSize=function(){var Ur=0;return Object.keys(Jr).forEach(function(ya){Ur+=Jr[ya].stats.size}),Ur}),{create:xn,createStream:ln,destroyStream:un,clear:function(){yt(Jr).forEach(jn),cn.forEach(jn)},getBuffer:function(Ur){return Ur&&Ur._buffer instanceof Kr?Ur._buffer:null},restore:Za,_initBuffer:Jn}}var Gr=0,wa=0,Da=1,Ya=1,Ka=4,an=4,mt={points:Gr,point:wa,lines:Da,line:Ya,triangles:Ka,triangle:an,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ot=0,Lr=1,Er=4,Mr=5120,br=5121,Or=5122,jr=5123,Dr=5124,Hr=5125,na=34963,ta=35040,At=35044;function or(lt,ir,ur,fa){var Va={},Jr=0,Kr={uint8:br,uint16:jr};ir.oes_element_index_uint&&(Kr.uint32=Hr);function cn(Za){this.id=Jr++,Va[this.id]=this,this.buffer=Za,this.primType=Er,this.vertCount=0,this.type=0}cn.prototype.bind=function(){this.buffer.bind()};var ln=[];function un(Za){var Ur=ln.pop();return Ur||(Ur=new cn(ur.create(null,na,!0,!1)._buffer)),Jn(Ur,Za,ta,-1,-1,0,0),Ur}function wn(Za){ln.push(Za)}function Jn(Za,Ur,ya,Ra,$a,Fa,Bn){Za.buffer.bind();var pn;if(Ur){var Xn=Bn;!Bn&&(!dr(Ur)||wr(Ur)&&!dr(Ur.data))&&(Xn=ir.oes_element_index_uint?Hr:jr),ur._initBuffer(Za.buffer,Ur,ya,Xn,3)}else lt.bufferData(na,Fa,ya),Za.buffer.dtype=pn||br,Za.buffer.usage=ya,Za.buffer.dimension=3,Za.buffer.byteLength=Fa;if(pn=Bn,!Bn){switch(Za.buffer.dtype){case br:case Mr:pn=br;break;case jr:case Or:pn=jr;break;case Hr:case Dr:pn=Hr;break}Za.buffer.dtype=pn}Za.type=pn;var Oa=$a;Oa<0&&(Oa=Za.buffer.byteLength,pn===jr?Oa>>=1:pn===Hr&&(Oa>>=2)),Za.vertCount=Oa;var Ea=Ra;if(Ra<0){Ea=Er;var Dn=Za.buffer.dimension;Dn===1&&(Ea=ot),Dn===2&&(Ea=Lr),Dn===3&&(Ea=Er)}Za.primType=Ea}function jn(Za){fa.elementsCount--,delete Va[Za.id],Za.buffer.destroy(),Za.buffer=null}function xn(Za,Ur){var ya=ur.create(null,na,!0),Ra=new cn(ya._buffer);fa.elementsCount++;function $a(Fa){if(!Fa)ya(),Ra.primType=Er,Ra.vertCount=0,Ra.type=br;else if(typeof Fa=="number")ya(Fa),Ra.primType=Er,Ra.vertCount=Fa|0,Ra.type=br;else{var Bn=null,pn=At,Xn=-1,Oa=-1,Ea=0,Dn=0;Array.isArray(Fa)||dr(Fa)||wr(Fa)?Bn=Fa:("data"in Fa&&(Bn=Fa.data),"usage"in Fa&&(pn=Aa[Fa.usage]),"primitive"in Fa&&(Xn=mt[Fa.primitive]),"count"in Fa&&(Oa=Fa.count|0),"type"in Fa&&(Dn=Kr[Fa.type]),"length"in Fa?Ea=Fa.length|0:(Ea=Oa,Dn===jr||Dn===Or?Ea*=2:(Dn===Hr||Dn===Dr)&&(Ea*=4))),Jn(Ra,Bn,pn,Xn,Oa,Ea,Dn)}return $a}return $a(Za),$a._reglType="elements",$a._elements=Ra,$a.subdata=function(Fa,Bn){return ya.subdata(Fa,Bn),$a},$a.destroy=function(){jn(Ra)},$a}return{create:xn,createStream:un,destroyStream:wn,getElements:function(Za){return typeof Za=="function"&&Za._elements instanceof cn?Za._elements:null},clear:function(){yt(Va).forEach(jn)}}}var Ar=new Float32Array(1),oa=new Uint32Array(Ar.buffer),ga=5123;function Sa(lt){for(var ir=N.allocType(ga,lt.length),ur=0;ur>>31<<15,Jr=(fa<<1>>>24)-127,Kr=fa>>13&1023;if(Jr<-24)ir[ur]=Va;else if(Jr<-14){var cn=-14-Jr;ir[ur]=Va+(Kr+1024>>cn)}else Jr>15?ir[ur]=Va+31744:ir[ur]=Va+(Jr+15<<10)+Kr}return ir}function za(lt){return Array.isArray(lt)||dr(lt)}var ra=34467,Ta=3553,Fn=34067,mn=34069,Kn=6408,ui=6406,pi=6407,vi=6409,Li=6410,Ni=32854,ci=32855,bi=36194,ho=32819,Bo=32820,gs=33635,ro=34042,Ei=6402,Ri=34041,xo=35904,So=35906,bo=36193,Ui=33776,no=33777,cs=33778,ks=33779,ms=35986,Mo=35987,kn=34798,fi=35840,Fs=35841,Ss=35842,Gi=35843,js=36196,No=5121,es=5123,Vs=5125,hi=5126,so=10242,Oi=10243,Zo=10497,qs=33071,Di=33648,ys=10240,wl=10241,Xs=9728,Vl=9729,rl=9984,Cs=9985,ql=9986,ju=9987,Vu=33170,yu=4352,jc=4353,ff=4354,_s=34046,Cu=3317,Vc=37440,Pl=37441,Tl=37443,Il=37444,_u=33984,Os=[rl,ql,Cs,ju],Al=[0,vi,Li,pi,Kn],Uo={};Uo[vi]=Uo[ui]=Uo[Ei]=1,Uo[Ri]=Uo[Li]=2,Uo[pi]=Uo[xo]=3,Uo[Kn]=Uo[So]=4;function bs(lt){return"[object "+lt+"]"}var qu=bs("HTMLCanvasElement"),Zl=bs("OffscreenCanvas"),Ju=bs("CanvasRenderingContext2D"),Zs=bs("ImageBitmap"),_f=bs("HTMLImageElement"),zo=bs("HTMLVideoElement"),Rf=Object.keys(Xe).concat([qu,Zl,Ju,Zs,_f,zo]),is=[];is[No]=1,is[hi]=4,is[bo]=2,is[es]=2,is[Vs]=4;var Bi=[];Bi[Ni]=2,Bi[ci]=2,Bi[bi]=2,Bi[Ri]=4,Bi[Ui]=.5,Bi[no]=.5,Bi[cs]=1,Bi[ks]=1,Bi[ms]=.5,Bi[Mo]=1,Bi[kn]=1,Bi[fi]=.5,Bi[Fs]=.25,Bi[Ss]=.5,Bi[Gi]=.25,Bi[js]=.5;function hc(lt){return Array.isArray(lt)&&(lt.length===0||typeof lt[0]=="number")}function xu(lt){if(!Array.isArray(lt))return!1;var ir=lt.length;return!(ir===0||!za(lt[0]))}function dl(lt){return Object.prototype.toString.call(lt)}function qc(lt){return dl(lt)===qu}function Qu(lt){return dl(lt)===Zl}function wc(lt){return dl(lt)===Ju}function Sl(lt){return dl(lt)===Zs}function hf(lt){return dl(lt)===_f}function Yc(lt){return dl(lt)===zo}function Tc(lt){if(!lt)return!1;var ir=dl(lt);return Rf.indexOf(ir)>=0?!0:hc(lt)||xu(lt)||wr(lt)}function ec(lt){return Xe[Object.prototype.toString.call(lt)]|0}function Gc(lt,ir){var ur=ir.length;switch(lt.type){case No:case es:case Vs:case hi:var fa=N.allocType(lt.type,ur);fa.set(ir),lt.data=fa;break;case bo:lt.data=Sa(ir);break}}function Hc(lt,ir){return N.allocType(lt.type===bo?hi:lt.type,ir)}function bu(lt,ir){lt.type===bo?(lt.data=Sa(ir),N.freeType(ir)):lt.data=ir}function $c(lt,ir,ur,fa,Va,Jr){for(var Kr=lt.width,cn=lt.height,ln=lt.channels,un=Kr*cn*ln,wn=Hc(lt,un),Jn=0,jn=0;jn=1;)cn+=Kr*ln*ln,ln/=2;return cn}else return Kr*ur*fa}function Lu(lt,ir,ur,fa,Va,Jr,Kr){var cn={"don't care":yu,"dont care":yu,nice:ff,fast:jc},ln={repeat:Zo,clamp:qs,mirror:Di},un={nearest:Xs,linear:Vl},wn=h({mipmap:ju,"nearest mipmap nearest":rl,"linear mipmap nearest":Cs,"nearest mipmap linear":ql,"linear mipmap linear":ju},un),Jn={none:0,browser:Il},jn={uint8:No,rgba4:ho,rgb565:gs,"rgb5 a1":Bo},xn={alpha:ui,luminance:vi,"luminance alpha":Li,rgb:pi,rgba:Kn,rgba4:Ni,"rgb5 a1":ci,rgb565:bi},Za={};ir.ext_srgb&&(xn.srgb=xo,xn.srgba=So),ir.oes_texture_float&&(jn.float32=jn.float=hi),ir.oes_texture_half_float&&(jn.float16=jn["half float"]=bo),ir.webgl_depth_texture&&(h(xn,{depth:Ei,"depth stencil":Ri}),h(jn,{uint16:es,uint32:Vs,"depth stencil":ro})),ir.webgl_compressed_texture_s3tc&&h(Za,{"rgb s3tc dxt1":Ui,"rgba s3tc dxt1":no,"rgba s3tc dxt3":cs,"rgba s3tc dxt5":ks}),ir.webgl_compressed_texture_atc&&h(Za,{"rgb atc":ms,"rgba atc explicit alpha":Mo,"rgba atc interpolated alpha":kn}),ir.webgl_compressed_texture_pvrtc&&h(Za,{"rgb pvrtc 4bppv1":fi,"rgb pvrtc 2bppv1":Fs,"rgba pvrtc 4bppv1":Ss,"rgba pvrtc 2bppv1":Gi}),ir.webgl_compressed_texture_etc1&&(Za["rgb etc1"]=js);var Ur=Array.prototype.slice.call(lt.getParameter(ra));Object.keys(Za).forEach(function(j){var ce=Za[j];Ur.indexOf(ce)>=0&&(xn[j]=ce)});var ya=Object.keys(xn);ur.textureFormats=ya;var Ra=[];Object.keys(xn).forEach(function(j){var ce=xn[j];Ra[ce]=j});var $a=[];Object.keys(jn).forEach(function(j){var ce=jn[j];$a[ce]=j});var Fa=[];Object.keys(un).forEach(function(j){var ce=un[j];Fa[ce]=j});var Bn=[];Object.keys(wn).forEach(function(j){var ce=wn[j];Bn[ce]=j});var pn=[];Object.keys(ln).forEach(function(j){var ce=ln[j];pn[ce]=j});var Xn=ya.reduce(function(j,ce){var $=xn[ce];return $===vi||$===ui||$===vi||$===Li||$===Ei||$===Ri||ir.ext_srgb&&($===xo||$===So)?j[$]=$:$===ci||ce.indexOf("rgba")>=0?j[$]=Kn:j[$]=pi,j},{});function Oa(){this.internalformat=Kn,this.format=Kn,this.type=No,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Il,this.width=0,this.height=0,this.channels=0}function Ea(j,ce){j.internalformat=ce.internalformat,j.format=ce.format,j.type=ce.type,j.compressed=ce.compressed,j.premultiplyAlpha=ce.premultiplyAlpha,j.flipY=ce.flipY,j.unpackAlignment=ce.unpackAlignment,j.colorSpace=ce.colorSpace,j.width=ce.width,j.height=ce.height,j.channels=ce.channels}function Dn(j,ce){if(!(typeof ce!="object"||!ce)){if("premultiplyAlpha"in ce&&(j.premultiplyAlpha=ce.premultiplyAlpha),"flipY"in ce&&(j.flipY=ce.flipY),"alignment"in ce&&(j.unpackAlignment=ce.alignment),"colorSpace"in ce&&(j.colorSpace=Jn[ce.colorSpace]),"type"in ce){var $=ce.type;j.type=jn[$]}var ge=j.width,Be=j.height,rt=j.channels,st=!1;"shape"in ce?(ge=ce.shape[0],Be=ce.shape[1],ce.shape.length===3&&(rt=ce.shape[2],st=!0)):("radius"in ce&&(ge=Be=ce.radius),"width"in ce&&(ge=ce.width),"height"in ce&&(Be=ce.height),"channels"in ce&&(rt=ce.channels,st=!0)),j.width=ge|0,j.height=Be|0,j.channels=rt|0;var Ge=!1;if("format"in ce){var Qe=ce.format,pt=j.internalformat=xn[Qe];j.format=Xn[pt],Qe in jn&&("type"in ce||(j.type=jn[Qe])),Qe in Za&&(j.compressed=!0),Ge=!0}!st&&Ge?j.channels=Uo[j.format]:st&&!Ge&&j.channels!==Al[j.format]&&(j.format=j.internalformat=Al[j.channels])}}function da(j){lt.pixelStorei(Vc,j.flipY),lt.pixelStorei(Pl,j.premultiplyAlpha),lt.pixelStorei(Tl,j.colorSpace),lt.pixelStorei(Cu,j.unpackAlignment)}function An(){Oa.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function fn(j,ce){var $=null;if(Tc(ce)?$=ce:ce&&(Dn(j,ce),"x"in ce&&(j.xOffset=ce.x|0),"y"in ce&&(j.yOffset=ce.y|0),Tc(ce.data)&&($=ce.data)),ce.copy){var ge=Va.viewportWidth,Be=Va.viewportHeight;j.width=j.width||ge-j.xOffset,j.height=j.height||Be-j.yOffset,j.needsCopy=!0}else if(!$)j.width=j.width||1,j.height=j.height||1,j.channels=j.channels||4;else if(dr($))j.channels=j.channels||4,j.data=$,!("type"in ce)&&j.type===No&&(j.type=ec($));else if(hc($))j.channels=j.channels||4,Gc(j,$),j.alignment=1,j.needsFree=!0;else if(wr($)){var rt=$.data;!Array.isArray(rt)&&j.type===No&&(j.type=ec(rt));var st=$.shape,Ge=$.stride,Qe,pt,Bt,It,Nt,Xt;st.length===3?(Bt=st[2],Xt=Ge[2]):(Bt=1,Xt=1),Qe=st[0],pt=st[1],It=Ge[0],Nt=Ge[1],j.alignment=1,j.width=Qe,j.height=pt,j.channels=Bt,j.format=j.internalformat=Al[Bt],j.needsFree=!0,$c(j,rt,It,Nt,Xt,$.offset)}else if(qc($)||Qu($)||wc($))qc($)||Qu($)?j.element=$:j.element=$.canvas,j.width=j.element.width,j.height=j.element.height,j.channels=4;else if(Sl($))j.element=$,j.width=$.width,j.height=$.height,j.channels=4;else if(hf($))j.element=$,j.width=$.naturalWidth,j.height=$.naturalHeight,j.channels=4;else if(Yc($))j.element=$,j.width=$.videoWidth,j.height=$.videoHeight,j.channels=4;else if(xu($)){var qt=j.width||$[0].length,Mt=j.height||$.length,Ft=j.channels;za($[0][0])?Ft=Ft||$[0][0].length:Ft=Ft||1;for(var Rt=Fe.shape($),_r=1,Ir=0;Ir>=Be,$.height>>=Be,fn($,ge[Be]),j.mipmask|=1<=0&&!("faces"in ce)&&(j.genMipmaps=!0)}if("mag"in ce){var ge=ce.mag;j.magFilter=un[ge]}var Be=j.wrapS,rt=j.wrapT;if("wrap"in ce){var st=ce.wrap;typeof st=="string"?Be=rt=ln[st]:Array.isArray(st)&&(Be=ln[st[0]],rt=ln[st[1]])}else{if("wrapS"in ce){var Ge=ce.wrapS;Be=ln[Ge]}if("wrapT"in ce){var Qe=ce.wrapT;rt=ln[Qe]}}if(j.wrapS=Be,j.wrapT=rt,"anisotropic"in ce&&(ce.anisotropic,j.anisotropic=ce.anisotropic),"mipmap"in ce){var pt=!1;switch(typeof ce.mipmap){case"string":j.mipmapHint=cn[ce.mipmap],j.genMipmaps=!0,pt=!0;break;case"boolean":pt=j.genMipmaps=ce.mipmap;break;case"object":j.genMipmaps=!1,pt=!0;break}pt&&!("min"in ce)&&(j.minFilter=rl)}}function El(j,ce){lt.texParameteri(ce,wl,j.minFilter),lt.texParameteri(ce,ys,j.magFilter),lt.texParameteri(ce,so,j.wrapS),lt.texParameteri(ce,Oi,j.wrapT),ir.ext_texture_filter_anisotropic&<.texParameteri(ce,_s,j.anisotropic),j.genMipmaps&&(lt.hint(Vu,j.mipmapHint),lt.generateMipmap(ce))}var zu=0,Us={},$s=ur.maxTextureUnits,mi=Array($s).map(function(){return null});function kl(j){Oa.call(this),this.mipmask=0,this.internalformat=Kn,this.id=zu++,this.refCount=1,this.target=j,this.texture=lt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Qs,Kr.profile&&(this.stats={size:0})}function Oo(j){lt.activeTexture(_u),lt.bindTexture(j.target,j.texture)}function As(){var j=mi[0];j?lt.bindTexture(j.target,j.texture):lt.bindTexture(Ta,null)}function Ol(j){var ce=j.texture,$=j.unit,ge=j.target;$>=0&&(lt.activeTexture(_u+$),lt.bindTexture(ge,null),mi[$]=null),lt.deleteTexture(ce),j.texture=null,j.params=null,j.pixels=null,j.refCount=0,delete Us[j.id],Jr.textureCount--}h(kl.prototype,{bind:function(){var j=this;j.bindCount+=1;var ce=j.unit;if(ce<0){for(var $=0;$<$s;++$){var ge=mi[$];if(ge){if(ge.bindCount>0)continue;ge.unit=-1}mi[$]=j,ce=$;break}Kr.profile&&Jr.maxTextureUnits>Nt)-Bt,Xt.height=Xt.height||($.height>>Nt)-It,Oo($),Pi(Xt,Ta,Bt,It,Nt),As(),bn(Xt),ge}function rt(st,Ge){var Qe=st|0,pt=Ge|0||Qe;if(Qe===$.width&&pt===$.height)return ge;ge.width=$.width=Qe,ge.height=$.height=pt,Oo($);for(var Bt=0;$.mipmask>>Bt;++Bt){var It=Qe>>Bt,Nt=pt>>Bt;if(!It||!Nt)break;lt.texImage2D(Ta,Bt,$.format,It,Nt,0,$.format,$.type,null)}return As(),Kr.profile&&($.stats.size=Gu($.internalformat,$.type,Qe,pt,!1,!1)),ge}return ge(j,ce),ge.subimage=Be,ge.resize=rt,ge._reglType="texture2d",ge._texture=$,Kr.profile&&(ge.stats=$.stats),ge.destroy=function(){$.decRef()},ge}function Ci(j,ce,$,ge,Be,rt){var st=new kl(Fn);Us[st.id]=st,Jr.cubeCount++;var Ge=new Array(6);function Qe(It,Nt,Xt,qt,Mt,Ft){var Rt,_r=st.texInfo;for(Qs.call(_r),Rt=0;Rt<6;++Rt)Ge[Rt]=il();if(typeof It=="number"||!It){var Ir=It|0||1;for(Rt=0;Rt<6;++Rt)Xi(Ge[Rt],Ir,Ir)}else if(typeof It=="object")if(Nt)eo(Ge[0],It),eo(Ge[1],Nt),eo(Ge[2],Xt),eo(Ge[3],qt),eo(Ge[4],Mt),eo(Ge[5],Ft);else if(pl(_r,It),Dn(st,It),"faces"in It){var Xr=It.faces;for(Rt=0;Rt<6;++Rt)Ea(Ge[Rt],st),eo(Ge[Rt],Xr[Rt])}else for(Rt=0;Rt<6;++Rt)eo(Ge[Rt],It);for(Ea(st,Ge[0]),_r.genMipmaps?st.mipmask=(Ge[0].width<<1)-1:st.mipmask=Ge[0].mipmask,st.internalformat=Ge[0].internalformat,Qe.width=Ge[0].width,Qe.height=Ge[0].height,Oo(st),Rt=0;Rt<6;++Rt)ts(Ge[Rt],mn+Rt);for(El(_r,Fn),As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,_r.genMipmaps,!0)),Qe.format=Ra[st.internalformat],Qe.type=$a[st.type],Qe.mag=Fa[_r.magFilter],Qe.min=Bn[_r.minFilter],Qe.wrapS=pn[_r.wrapS],Qe.wrapT=pn[_r.wrapT],Rt=0;Rt<6;++Rt)Xo(Ge[Rt]);return Qe}function pt(It,Nt,Xt,qt,Mt){var Ft=Xt|0,Rt=qt|0,_r=Mt|0,Ir=ei();return Ea(Ir,st),Ir.width=0,Ir.height=0,fn(Ir,Nt),Ir.width=Ir.width||(st.width>>_r)-Ft,Ir.height=Ir.height||(st.height>>_r)-Rt,Oo(st),Pi(Ir,mn+It,Ft,Rt,_r),As(),bn(Ir),Qe}function Bt(It){var Nt=It|0;if(Nt!==st.width){Qe.width=st.width=Nt,Qe.height=st.height=Nt,Oo(st);for(var Xt=0;Xt<6;++Xt)for(var qt=0;st.mipmask>>qt;++qt)lt.texImage2D(mn+Xt,qt,st.format,Nt>>qt,Nt>>qt,0,st.format,st.type,null);return As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(j,ce,$,ge,Be,rt),Qe.subimage=pt,Qe.resize=Bt,Qe._reglType="textureCube",Qe._texture=st,Kr.profile&&(Qe.stats=st.stats),Qe.destroy=function(){st.decRef()},Qe}function fo(){for(var j=0;j<$s;++j)lt.activeTexture(_u+j),lt.bindTexture(Ta,null),mi[j]=null;yt(Us).forEach(Ol),Jr.cubeCount=0,Jr.textureCount=0}Kr.profile&&(Jr.getTotalTextureSize=function(){var j=0;return Object.keys(Us).forEach(function(ce){j+=Us[ce].stats.size}),j});function mo(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null)}yt(Us).forEach(function($){$.texture=lt.createTexture(),lt.bindTexture($.target,$.texture);for(var ge=0;ge<32;++ge)if(($.mipmask&1<>ge,$.height>>ge,0,$.internalformat,$.type,null);else for(var Be=0;Be<6;++Be)lt.texImage2D(mn+Be,ge,$.internalformat,$.width>>ge,$.height>>ge,0,$.internalformat,$.type,null);El($.texInfo,$.target)})}function ye(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null),lt.activeTexture(_u+j),lt.bindTexture(Ta,null),lt.bindTexture(Fn,null)}}return{create2D:Bl,createCube:Ci,clear:fo,getTexture:function(j){return null},restore:mo,refresh:ye}}var Ml=36161,lc=32854,Wc=32855,Ms=36194,Lc=33189,xf=36168,Kc=34041,Ac=35907,Jc=34836,tu=34842,Qc=34843,el=[];el[lc]=2,el[Wc]=2,el[Ms]=2,el[Lc]=2,el[xf]=1,el[Kc]=4,el[Ac]=4,el[Jc]=16,el[tu]=8,el[Qc]=6;function ru(lt,ir,ur){return el[lt]*ir*ur}var tc=function(lt,ir,ur,fa,Va){var Jr={rgba4:lc,rgb565:Ms,"rgb5 a1":Wc,depth:Lc,stencil:xf,"depth stencil":Kc};ir.ext_srgb&&(Jr.srgba=Ac),ir.ext_color_buffer_half_float&&(Jr.rgba16f=tu,Jr.rgb16f=Qc),ir.webgl_color_buffer_float&&(Jr.rgba32f=Jc);var Kr=[];Object.keys(Jr).forEach(function(xn){var Za=Jr[xn];Kr[Za]=xn});var cn=0,ln={};function un(xn){this.id=cn++,this.refCount=1,this.renderbuffer=xn,this.format=lc,this.width=0,this.height=0,Va.profile&&(this.stats={size:0})}un.prototype.decRef=function(){--this.refCount<=0&&wn(this)};function wn(xn){var Za=xn.renderbuffer;lt.bindRenderbuffer(Ml,null),lt.deleteRenderbuffer(Za),xn.renderbuffer=null,xn.refCount=0,delete ln[xn.id],fa.renderbufferCount--}function Jn(xn,Za){var Ur=new un(lt.createRenderbuffer());ln[Ur.id]=Ur,fa.renderbufferCount++;function ya($a,Fa){var Bn=0,pn=0,Xn=lc;if(typeof $a=="object"&&$a){var Oa=$a;if("shape"in Oa){var Ea=Oa.shape;Bn=Ea[0]|0,pn=Ea[1]|0}else"radius"in Oa&&(Bn=pn=Oa.radius|0),"width"in Oa&&(Bn=Oa.width|0),"height"in Oa&&(pn=Oa.height|0);"format"in Oa&&(Xn=Jr[Oa.format])}else typeof $a=="number"?(Bn=$a|0,typeof Fa=="number"?pn=Fa|0:pn=Bn):$a||(Bn=pn=1);if(!(Bn===Ur.width&&pn===Ur.height&&Xn===Ur.format))return ya.width=Ur.width=Bn,ya.height=Ur.height=pn,Ur.format=Xn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Xn,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height)),ya.format=Kr[Ur.format],ya}function Ra($a,Fa){var Bn=$a|0,pn=Fa|0||Bn;return Bn===Ur.width&&pn===Ur.height||(ya.width=Ur.width=Bn,ya.height=Ur.height=pn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Ur.format,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height))),ya}return ya(xn,Za),ya.resize=Ra,ya._reglType="renderbuffer",ya._renderbuffer=Ur,Va.profile&&(ya.stats=Ur.stats),ya.destroy=function(){Ur.decRef()},ya}Va.profile&&(fa.getTotalRenderbufferSize=function(){var xn=0;return Object.keys(ln).forEach(function(Za){xn+=ln[Za].stats.size}),xn});function jn(){yt(ln).forEach(function(xn){xn.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(Ml,xn.renderbuffer),lt.renderbufferStorage(Ml,xn.format,xn.width,xn.height)}),lt.bindRenderbuffer(Ml,null)}return{create:Jn,clear:function(){yt(ln).forEach(wn)},restore:jn}},Bs=36160,Hu=36161,Gl=3553,au=34069,Ys=36064,vc=36096,Pu=36128,rc=33306,Pc=36053,bf=36193,Vf=5121,dc=5126,Ic=6407,fu=6408,Rc=[];Rc[fu]=4,Rc[Ic]=3;var Rl=[];Rl[Vf]=1,Rl[dc]=4,Rl[bf]=2;function pc(lt,ir,ur,fa,Va,Jr){var Kr={cur:null,next:null,dirty:!1,setFBO:null},cn=["rgba"],ln=["rgba4","rgb565","rgb5 a1"];ir.ext_srgb&&ln.push("srgba"),ir.ext_color_buffer_half_float&&ln.push("rgba16f","rgb16f"),ir.webgl_color_buffer_float&&ln.push("rgba32f"),ir.oes_texture_half_float,ir.oes_texture_float;function un(da,An,fn){this.target=da,this.texture=An,this.renderbuffer=fn;var Yn=0,Pi=0;An?(Yn=An.width,Pi=An.height):fn&&(Yn=fn.width,Pi=fn.height),this.width=Yn,this.height=Pi}function wn(da){da&&(da.texture&&da.texture._texture.decRef(),da.renderbuffer&&da.renderbuffer._renderbuffer.decRef())}function Jn(da,An,fn){if(da)if(da.texture){var Yn=da.texture._texture;Math.max(1,Yn.width),Math.max(1,Yn.height),Yn.refCount+=1}else{var Pi=da.renderbuffer._renderbuffer;Pi.refCount+=1}}function jn(da,An){An&&(An.texture?lt.framebufferTexture2D(Bs,da,An.target,An.texture._texture.texture,0):lt.framebufferRenderbuffer(Bs,da,Hu,An.renderbuffer._renderbuffer.renderbuffer))}function xn(da){var An=Gl,fn=null,Yn=null,Pi=da;typeof da=="object"&&(Pi=da.data,"target"in da&&(An=da.target|0));var Vn=Pi._reglType;return Vn==="texture2d"||Vn==="textureCube"?fn=Pi:Vn==="renderbuffer"&&(Yn=Pi,An=Hu),new un(An,fn,Yn)}function Za(da,An,fn,Yn,Pi){if(fn){var Vn=fa.create2D({width:da,height:An,format:Yn,type:Pi});return Vn._texture.refCount=0,new un(Gl,Vn,null)}else{var ei=Va.create({width:da,height:An,format:Yn});return ei._renderbuffer.refCount=0,new un(Hu,null,ei)}}function Ur(da){return da&&(da.texture||da.renderbuffer)}function ya(da,An,fn){da&&(da.texture?da.texture.resize(An,fn):da.renderbuffer&&da.renderbuffer.resize(An,fn),da.width=An,da.height=fn)}var Ra=0,$a={};function Fa(){this.id=Ra++,$a[this.id]=this,this.framebuffer=lt.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function Bn(da){da.colorAttachments.forEach(wn),wn(da.depthAttachment),wn(da.stencilAttachment),wn(da.depthStencilAttachment)}function pn(da){var An=da.framebuffer;lt.deleteFramebuffer(An),da.framebuffer=null,Jr.framebufferCount--,delete $a[da.id]}function Xn(da){var An;lt.bindFramebuffer(Bs,da.framebuffer);var fn=da.colorAttachments;for(An=0;An=0?il=!0:ln.indexOf(Xo)>=0&&(il=!1))),("depthTexture"in mi||"depthStencilTexture"in mi)&&($s=!!(mi.depthTexture||mi.depthStencilTexture)),"depth"in mi&&(typeof mi.depth=="boolean"?eo=mi.depth:(El=mi.depth,ts=!1)),"stencil"in mi&&(typeof mi.stencil=="boolean"?ts=mi.stencil:(zu=mi.stencil,eo=!1)),"depthStencil"in mi&&(typeof mi.depthStencil=="boolean"?eo=ts=mi.depthStencil:(Us=mi.depthStencil,eo=!1,ts=!1))}var Oo=null,As=null,Ol=null,Bl=null;if(Array.isArray(to))Oo=to.map(xn);else if(to)Oo=[xn(to)];else for(Oo=new Array(pl),bn=0;bn0&&(ei.depth=An[0].depth,ei.stencil=An[0].stencil,ei.depthStencil=An[0].depthStencil),An[Vn]?An[Vn](ei):An[Vn]=Oa(ei)}return h(fn,{width:bn,height:bn,color:Xo})}function Yn(Pi){var Vn,ei=Pi|0;if(ei===fn.width)return fn;var bn=fn.color;for(Vn=0;Vn=Mi.byteLength?Xi.subdata(Mi):(Xi.destroy(),Ea.buffers[Vn]=null)),Ea.buffers[Vn]||(Xi=Ea.buffers[Vn]=Va.create(ei,gc,!1,!0)),bn.buffer=Va.getBuffer(Xi),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1,Yn[Vn]=1}else Va.getBuffer(ei)?(bn.buffer=Va.getBuffer(ei),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1):Va.getBuffer(ei.buffer)?(bn.buffer=Va.getBuffer(ei.buffer),bn.size=(+ei.size||bn.buffer.dimension)|0,bn.normalized=!!ei.normalized||!1,"type"in ei?bn.type=ia[ei.type]:bn.type=bn.buffer.dtype,bn.offset=(ei.offset||0)|0,bn.stride=(ei.stride||0)|0,bn.divisor=(ei.divisor||0)|0,bn.state=1):"x"in ei&&(bn.x=+ei.x||0,bn.y=+ei.y||0,bn.z=+ei.z||0,bn.w=+ei.w||0,bn.state=2)}for(var eo=0;eo1)for(var da=0;daUr&&(Ur=ya.stats.uniformsCount)}),Ur},ur.getMaxAttributesCount=function(){var Ur=0;return wn.forEach(function(ya){ya.stats.attributesCount>Ur&&(Ur=ya.stats.attributesCount)}),Ur});function Za(){Va={},Jr={};for(var Ur=0;Ur>>4&15)+ir.charAt(fa&15);return ur}function Ru(lt){for(var ir="",ur=-1,fa,Va;++ur>>6&31,128|fa&63):fa<=65535?ir+=String.fromCharCode(224|fa>>>12&15,128|fa>>>6&63,128|fa&63):fa<=2097151&&(ir+=String.fromCharCode(240|fa>>>18&7,128|fa>>>12&63,128|fa>>>6&63,128|fa&63));return ir}function al(lt){for(var ir=Array(lt.length>>2),ur=0;ur>5]|=(lt.charCodeAt(ur/8)&255)<<24-ur%32;return ir}function Yl(lt){for(var ir="",ur=0;ur>5]>>>24-ur%32&255);return ir}function Ks(lt,ir){return lt>>>ir|lt<<32-ir}function nc(lt,ir){return lt>>>ir}function Du(lt,ir,ur){return lt&ir^~lt&ur}function Zc(lt,ir,ur){return lt&ir^lt&ur^ir&ur}function Qt(lt){return Ks(lt,2)^Ks(lt,13)^Ks(lt,22)}function yr(lt){return Ks(lt,6)^Ks(lt,11)^Ks(lt,25)}function $r(lt){return Ks(lt,7)^Ks(lt,18)^nc(lt,3)}function Vr(lt){return Ks(lt,17)^Ks(lt,19)^nc(lt,10)}var ma=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function tn(lt,ir){var ur=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),fa=new Array(64),Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur;for(lt[ir>>5]|=128<<24-ir%32,lt[(ir+64>>9<<4)+15]=ir,jn=0;jn>16)+(ir>>16)+(ur>>16);return fa<<16|ur&65535}function Ln(lt){return Array.prototype.slice.call(lt)}function On(lt){return Ln(lt).join("")}function Qn(lt){var ir=lt&<.cache,ur=0,fa=[],Va=[],Jr=[];function Kr(Za,Ur){var ya=Ur&&Ur.stable;if(!ya){for(var Ra=0;Ra0&&(Za.push($a,"="),Za.push.apply(Za,Ln(arguments)),Za.push(";")),$a}return h(Ur,{def:Ra,toString:function(){return On([ya.length>0?"var "+ya.join(",")+";":"",On(Za)])}})}function ln(){var Za=cn(),Ur=cn(),ya=Za.toString,Ra=Ur.toString;function $a(Fa,Bn){Ur(Fa,Bn,"=",Za.def(Fa,Bn),";")}return h(function(){Za.apply(Za,Ln(arguments))},{def:Za.def,entry:Za,exit:Ur,save:$a,set:function(Fa,Bn,pn){$a(Fa,Bn),Za(Fa,Bn,"=",pn,";")},toString:function(){return ya()+Ra()}})}function un(){var Za=On(arguments),Ur=ln(),ya=ln(),Ra=Ur.toString,$a=ya.toString;return h(Ur,{then:function(){return Ur.apply(Ur,Ln(arguments)),this},else:function(){return ya.apply(ya,Ln(arguments)),this},toString:function(){var Fa=$a();return Fa&&(Fa="else{"+Fa+"}"),On(["if(",Za,"){",Ra(),"}",Fa])}})}var wn=cn(),Jn={};function jn(Za,Ur){var ya=[];function Ra(){var Xn="a"+ya.length;return ya.push(Xn),Xn}Ur=Ur||0;for(var $a=0;$a":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Na={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={cw:dt,ccw:gt};function sn(lt){return Array.isArray(lt)||dr(lt)||wr(lt)}function Ba(lt){return lt.sort(function(ir,ur){return ir===iu?-1:ur===iu?1:ir=1,fa>=2,ir)}else if(ur===Wi){var Va=lt.data;return new Rn(Va.thisDep,Va.contextDep,Va.propDep,ir)}else{if(ur===ii)return new Rn(!1,!1,!1,ir);if(ur===Wn){for(var Jr=!1,Kr=!1,cn=!1,ln=0;ln=1&&(Kr=!0),wn>=2&&(cn=!0)}else un.type===Wi&&(Jr=Jr||un.data.thisDep,Kr=Kr||un.data.contextDep,cn=cn||un.data.propDep)}return new Rn(Jr,Kr,cn,ir)}else return new Rn(ur===Zi,ur===Fi,ur===Hi,ir)}}var Ti=new Rn(!1,!1,!1,function(){});function ki(lt,ir,ur,fa,Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur){var ya=un.Record,Ra={add:32774,subtract:32778,"reverse subtract":32779};ur.ext_blend_minmax&&(Ra.min=Tt,Ra.max=Vt);var $a=ur.angle_instanced_arrays,Fa=ur.webgl_draw_buffers,Bn=ur.oes_vertex_array_object,pn={dirty:!0,profile:Ur.profile},Xn={},Oa=[],Ea={},Dn={};function da(Ge){return Ge.replace(".","_")}function An(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Xn[Bt]=pn[Bt]=!!pt,Ea[Bt]=Qe}function fn(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Array.isArray(pt)?(pn[Bt]=pt.slice(),Xn[Bt]=pt.slice()):pn[Bt]=Xn[Bt]=pt,Dn[Bt]=Qe}function Yn(Ge){return!!isNaN(Ge)}An(ao,Cr),An(Fo,gr),fn(hs,"blendColor",[0,0,0,0]),fn(Is,"blendEquationSeparate",[Zr,Zr]),fn(vs,"blendFuncSeparate",[kr,Pr,kr,Pr]),An(Rs,ua,!0),fn(Yo,"depthFunc",la),fn(sl,"depthRange",[0,1]),fn(nl,"depthMask",!0),fn(Ls,Ls,[!0,!0,!0,!0]),An(wi,cr),fn(go,"cullFace",$e),fn(ws,ws,gt),fn(os,os,1),An(Hl,Ma),fn(Wl,"polygonOffset",[0,0]),An($l,en),An(uc,Pn),fn(Xl,"sampleCoverage",[1,!1]),An(Xu,Wr),fn(ll,"stencilMask",-1),fn(Zu,"stencilFunc",[jt,0,-1]),fn(Yi,"stencilOpSeparate",[Le,sr,sr,sr]),fn(io,"stencilOpSeparate",[$e,sr,sr,sr]),An(Yu,va),fn(du,"scissor",[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]),fn(iu,iu,[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]);var Pi={gl:lt,context:jn,strings:ir,next:Xn,current:pn,draw:Jn,elements:Jr,buffer:Va,shader:wn,attributes:un.state,vao:un,uniforms:ln,framebuffer:cn,extensions:ur,timer:xn,isBufferArgs:sn},Vn={primTypes:mt,compareFuncs:Pa,blendFuncs:pa,blendEquations:Ra,stencilOps:Na,glTypes:ia,orientationType:rn};Fa&&(Vn.backBuffer=[$e],Vn.drawBuffer=d(fa.maxDrawbuffers,function(Ge){return Ge===0?[0]:d(Ge,function(Qe){return nn+Qe})}));var ei=0;function bn(){var Ge=Qn({cache:Za}),Qe=Ge.link,pt=Ge.global;Ge.id=ei++,Ge.batchId="0";var Bt=Qe(Pi),It=Ge.shared={props:"a0"};Object.keys(Pi).forEach(function(Ft){It[Ft]=pt.def(Bt,".",Ft)});var Nt=Ge.next={},Xt=Ge.current={};Object.keys(Dn).forEach(function(Ft){Array.isArray(pn[Ft])&&(Nt[Ft]=pt.def(It.next,".",Ft),Xt[Ft]=pt.def(It.current,".",Ft))});var qt=Ge.constants={};Object.keys(Vn).forEach(function(Ft){qt[Ft]=pt.def(JSON.stringify(Vn[Ft]))}),Ge.invoke=function(Ft,Rt){switch(Rt.type){case ai:var _r=["this",It.context,It.props,Ge.batchId];return Ft.def(Qe(Rt.data),".call(",_r.slice(0,Math.max(Rt.data.length+1,4)),")");case Hi:return Ft.def(It.props,Rt.data);case Fi:return Ft.def(It.context,Rt.data);case Zi:return Ft.def("this",Rt.data);case Wi:return Rt.data.append(Ge,Ft),Rt.data.ref;case ii:return Rt.data.toString();case Wn:return Rt.data.map(function(Ir){return Ge.invoke(Ft,Ir)})}},Ge.attribCache={};var Mt={};return Ge.scopeAttrib=function(Ft){var Rt=ir.id(Ft);if(Rt in Mt)return Mt[Rt];var _r=un.scope[Rt];_r||(_r=un.scope[Rt]=new ya);var Ir=Mt[Rt]=Qe(_r);return Ir},Ge}function Mi(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt;if(ze in Qe){var It=!!Qe[ze];Bt=Zn(function(Xt,qt){return It}),Bt.enable=It}else if(ze in pt){var Nt=pt[ze];Bt=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}return Bt}function Xi(Ge,Qe){var pt=Ge.static,Bt=Ge.dynamic;if(L in pt){var It=pt[L];return It?(It=cn.getFramebuffer(It),Zn(function(Xt,qt){var Mt=Xt.link(It),Ft=Xt.shared;qt.set(Ft.framebuffer,".next",Mt);var Rt=Ft.context;return qt.set(Rt,"."+Br,Mt+".width"),qt.set(Rt,"."+ea,Mt+".height"),Mt})):Zn(function(Xt,qt){var Mt=Xt.shared;qt.set(Mt.framebuffer,".next","null");var Ft=Mt.context;return qt.set(Ft,"."+Br,Ft+"."+vt),qt.set(Ft,"."+ea,Ft+"."+St),"null"})}else if(L in Bt){var Nt=Bt[L];return ri(Nt,function(Xt,qt){var Mt=Xt.invoke(qt,Nt),Ft=Xt.shared,Rt=Ft.framebuffer,_r=qt.def(Rt,".getFramebuffer(",Mt,")");qt.set(Rt,".next",_r);var Ir=Ft.context;return qt.set(Ir,"."+Br,_r+"?"+_r+".width:"+Ir+"."+vt),qt.set(Ir,"."+ea,_r+"?"+_r+".height:"+Ir+"."+St),_r})}else return null}function eo(Ge,Qe,pt){var Bt=Ge.static,It=Ge.dynamic;function Nt(Mt){if(Mt in Bt){var Ft=Bt[Mt],Rt=!0,_r=Ft.x|0,Ir=Ft.y|0,Xr,Ua;return"width"in Ft?Xr=Ft.width|0:Rt=!1,"height"in Ft?Ua=Ft.height|0:Rt=!1,new Rn(!Rt&&Qe&&Qe.thisDep,!Rt&&Qe&&Qe.contextDep,!Rt&&Qe&&Qe.propDep,function(ja,Ha){var on=ja.shared.context,qa=Xr;"width"in Ft||(qa=Ha.def(on,".",Br,"-",_r));var hn=Ua;return"height"in Ft||(hn=Ha.def(on,".",ea,"-",Ir)),[_r,Ir,qa,hn]})}else if(Mt in It){var ka=It[Mt],xa=ri(ka,function(ja,Ha){var on=ja.invoke(Ha,ka),qa=ja.shared.context,hn=Ha.def(on,".x|0"),Sn=Ha.def(on,".y|0"),Gn=Ha.def('"width" in ',on,"?",on,".width|0:","(",qa,".",Br,"-",hn,")"),ti=Ha.def('"height" in ',on,"?",on,".height|0:","(",qa,".",ea,"-",Sn,")");return[hn,Sn,Gn,ti]});return Qe&&(xa.thisDep=xa.thisDep||Qe.thisDep,xa.contextDep=xa.contextDep||Qe.contextDep,xa.propDep=xa.propDep||Qe.propDep),xa}else return Qe?new Rn(Qe.thisDep,Qe.contextDep,Qe.propDep,function(ja,Ha){var on=ja.shared.context;return[0,0,Ha.def(on,".",Br),Ha.def(on,".",ea)]}):null}var Xt=Nt(iu);if(Xt){var qt=Xt;Xt=new Rn(Xt.thisDep,Xt.contextDep,Xt.propDep,function(Mt,Ft){var Rt=qt.append(Mt,Ft),_r=Mt.shared.context;return Ft.set(_r,"."+Ve,Rt[2]),Ft.set(_r,"."+Ye,Rt[3]),Rt})}return{viewport:Xt,scissor_box:Nt(du)}}function ts(Ge,Qe){var pt=Ge.static,Bt=typeof pt[Te]=="string"&&typeof pt[ne]=="string";if(Bt){if(Object.keys(Qe.dynamic).length>0)return null;var It=Qe.static,Nt=Object.keys(It);if(Nt.length>0&&typeof It[Nt[0]]=="number"){for(var Xt=[],qt=0;qt"+hn+"?"+Rt+".constant["+hn+"]:0;"}).join(""),"}}else{","if(",Xr,"(",Rt,".buffer)){",ja,"=",Ua,".createStream(",Lt,",",Rt,".buffer);","}else{",ja,"=",Ua,".getBuffer(",Rt,".buffer);","}",Ha,'="type" in ',Rt,"?",Ir.glTypes,"[",Rt,".type]:",ja,".dtype;",ka.normalized,"=!!",Rt,".normalized;");function on(qa){Ft(ka[qa],"=",Rt,".",qa,"|0;")}return on("size"),on("offset"),on("stride"),on("divisor"),Ft("}}"),Ft.exit("if(",ka.isStream,"){",Ua,".destroyStream(",ja,");","}"),ka}It[Nt]=ri(Xt,qt)}),It}function El(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt={};return Object.keys(Qe).forEach(function(It){var Nt=Qe[It];Bt[It]=Zn(function(Xt,qt){return typeof Nt=="number"||typeof Nt=="boolean"?""+Nt:Xt.link(Nt)})}),Object.keys(pt).forEach(function(It){var Nt=pt[It];Bt[It]=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}),Bt}function zu(Ge,Qe,pt,Bt,It){Ge.static,Ge.dynamic;var Nt=ts(Ge,Qe),Xt=Xi(Ge),qt=eo(Ge,Xt),Mt=il(Ge),Ft=Xo(Ge),Rt=to(Ge,It,Nt);function _r(ja){var Ha=qt[ja];Ha&&(Ft[ja]=Ha)}_r(iu),_r(da(du));var Ir=Object.keys(Ft).length>0,Xr={framebuffer:Xt,draw:Mt,shader:Rt,state:Ft,dirty:Ir,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Xr.profile=Mi(Ge),Xr.uniforms=Qs(pt),Xr.drawVAO=Xr.scopeVAO=Mt.vao,!Xr.drawVAO&&Rt.program&&!Nt&&ur.angle_instanced_arrays&&Mt.static.elements){var Ua=!0,ka=Rt.program.attributes.map(function(ja){var Ha=Qe.static[ja];return Ua=Ua&&!!Ha,Ha});if(Ua&&ka.length>0){var xa=un.getVAO(un.createVAO({attributes:ka,elements:Mt.static.elements}));Xr.drawVAO=new Rn(null,null,null,function(ja,Ha){return ja.link(xa)}),Xr.useVAO=!0}}return Nt?Xr.useVAO=!0:Xr.attributes=pl(Qe),Xr.context=El(Bt),Xr}function Us(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.context,Nt=Ge.scope();Object.keys(pt).forEach(function(Xt){Qe.save(It,"."+Xt);var qt=pt[Xt],Mt=qt.append(Ge,Qe);Array.isArray(Mt)?Nt(It,".",Xt,"=[",Mt.join(),"];"):Nt(It,".",Xt,"=",Mt,";")}),Qe(Nt)}function $s(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=It.gl,Xt=It.framebuffer,qt;Fa&&(qt=Qe.def(It.extensions,".webgl_draw_buffers"));var Mt=Ge.constants,Ft=Mt.drawBuffer,Rt=Mt.backBuffer,_r;pt?_r=pt.append(Ge,Qe):_r=Qe.def(Xt,".next"),Bt||Qe("if(",_r,"!==",Xt,".cur){"),Qe("if(",_r,"){",Nt,".bindFramebuffer(",ca,",",_r,".framebuffer);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Ft,"[",_r,".colorAttachments.length]);"),Qe("}else{",Nt,".bindFramebuffer(",ca,",null);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Rt,");"),Qe("}",Xt,".cur=",_r,";"),Bt||Qe("}")}function mi(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.gl,Nt=Ge.current,Xt=Ge.next,qt=Bt.current,Mt=Bt.next,Ft=Ge.cond(qt,".dirty");Oa.forEach(function(Rt){var _r=da(Rt);if(!(_r in pt.state)){var Ir,Xr;if(_r in Xt){Ir=Xt[_r],Xr=Nt[_r];var Ua=d(pn[_r].length,function(xa){return Ft.def(Ir,"[",xa,"]")});Ft(Ge.cond(Ua.map(function(xa,ja){return xa+"!=="+Xr+"["+ja+"]"}).join("||")).then(It,".",Dn[_r],"(",Ua,");",Ua.map(function(xa,ja){return Xr+"["+ja+"]="+xa}).join(";"),";"))}else{Ir=Ft.def(Mt,".",_r);var ka=Ge.cond(Ir,"!==",qt,".",_r);Ft(ka),_r in Ea?ka(Ge.cond(Ir).then(It,".enable(",Ea[_r],");").else(It,".disable(",Ea[_r],");"),qt,".",_r,"=",Ir,";"):ka(It,".",Dn[_r],"(",Ir,");",qt,".",_r,"=",Ir,";")}}}),Object.keys(pt.state).length===0&&Ft(qt,".dirty=false;"),Qe(Ft)}function kl(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=Ge.current,Xt=It.current,qt=It.gl,Mt;Ba(Object.keys(pt)).forEach(function(Ft){var Rt=pt[Ft];if(!(Bt&&!Bt(Rt))){var _r=Rt.append(Ge,Qe);if(Ea[Ft]){var Ir=Ea[Ft];ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(Ge.cond(Mt).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",Mt,";")):(Qe(Ge.cond(_r).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",_r,";"))}else if(za(_r)){var Xr=Nt[Ft];Qe(qt,".",Dn[Ft],"(",_r,");",_r.map(function(Ua,ka){return Xr+"["+ka+"]="+Ua}).join(";"),";")}else ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(qt,".",Dn[Ft],"(",Mt,");",Xt,".",Ft,"=",Mt,";")):Qe(qt,".",Dn[Ft],"(",_r,");",Xt,".",Ft,"=",_r,";")}})}function Oo(Ge,Qe){$a&&(Ge.instancing=Qe.def(Ge.shared.extensions,".angle_instanced_arrays"))}function As(Ge,Qe,pt,Bt,It){var Nt=Ge.shared,Xt=Ge.stats,qt=Nt.current,Mt=Nt.timer,Ft=pt.profile;function Rt(){return typeof performance>"u"?"Date.now()":"performance.now()"}var _r,Ir;function Xr(on){_r=Qe.def(),on(_r,"=",Rt(),";"),typeof It=="string"?on(Xt,".count+=",It,";"):on(Xt,".count++;"),xn&&(Bt?(Ir=Qe.def(),on(Ir,"=",Mt,".getNumPendingQueries();")):on(Mt,".beginQuery(",Xt,");"))}function Ua(on){on(Xt,".cpuTime+=",Rt(),"-",_r,";"),xn&&(Bt?on(Mt,".pushScopeStats(",Ir,",",Mt,".getNumPendingQueries(),",Xt,");"):on(Mt,".endQuery();"))}function ka(on){var qa=Qe.def(qt,".profile");Qe(qt,".profile=",on,";"),Qe.exit(qt,".profile=",qa,";")}var xa;if(Ft){if(ni(Ft)){Ft.enable?(Xr(Qe),Ua(Qe.exit),ka("true")):ka("false");return}xa=Ft.append(Ge,Qe),ka(xa)}else xa=Qe.def(qt,".profile");var ja=Ge.block();Xr(ja),Qe("if(",xa,"){",ja,"}");var Ha=Ge.block();Ua(Ha),Qe.exit("if(",xa,"){",Ha,"}")}function Ol(Ge,Qe,pt,Bt,It){var Nt=Ge.shared;function Xt(Mt){switch(Mt){case In:case Ki:case Ko:return 2;case oi:case Go:case Js:return 3;case Si:case Ho:case Hs:return 4;default:return 1}}function qt(Mt,Ft,Rt){var _r=Nt.gl,Ir=Qe.def(Mt,".location"),Xr=Qe.def(Nt.attributes,"[",Ir,"]"),Ua=Rt.state,ka=Rt.buffer,xa=[Rt.x,Rt.y,Rt.z,Rt.w],ja=["buffer","normalized","offset","stride"];function Ha(){Qe("if(!",Xr,".buffer){",_r,".enableVertexAttribArray(",Ir,");}");var qa=Rt.type,hn;if(Rt.size?hn=Qe.def(Rt.size,"||",Ft):hn=Ft,Qe("if(",Xr,".type!==",qa,"||",Xr,".size!==",hn,"||",ja.map(function(Gn){return Xr+"."+Gn+"!=="+Rt[Gn]}).join("||"),"){",_r,".bindBuffer(",Lt,",",ka,".buffer);",_r,".vertexAttribPointer(",[Ir,hn,qa,Rt.normalized,Rt.stride,Rt.offset],");",Xr,".type=",qa,";",Xr,".size=",hn,";",ja.map(function(Gn){return Xr+"."+Gn+"="+Rt[Gn]+";"}).join(""),"}"),$a){var Sn=Rt.divisor;Qe("if(",Xr,".divisor!==",Sn,"){",Ge.instancing,".vertexAttribDivisorANGLE(",[Ir,Sn],");",Xr,".divisor=",Sn,";}")}}function on(){Qe("if(",Xr,".buffer){",_r,".disableVertexAttribArray(",Ir,");",Xr,".buffer=null;","}if(",_n.map(function(qa,hn){return Xr+"."+qa+"!=="+xa[hn]}).join("||"),"){",_r,".vertexAttrib4f(",Ir,",",xa,");",_n.map(function(qa,hn){return Xr+"."+qa+"="+xa[hn]+";"}).join(""),"}")}Ua===En?Ha():Ua===dn?on():(Qe("if(",Ua,"===",En,"){"),Ha(),Qe("}else{"),on(),Qe("}"))}Bt.forEach(function(Mt){var Ft=Mt.name,Rt=pt.attributes[Ft],_r;if(Rt){if(!It(Rt))return;_r=Rt.append(Ge,Qe)}else{if(!It(Ti))return;var Ir=Ge.scopeAttrib(Ft);_r={},Object.keys(new ya).forEach(function(Xr){_r[Xr]=Qe.def(Ir,".",Xr)})}qt(Ge.link(Mt),Xt(Mt.info.type),_r)})}function Bl(Ge,Qe,pt,Bt,It,Nt){for(var Xt=Ge.shared,qt=Xt.gl,Mt,Ft=0;Ft1){for(var yo=[],vo=[],ss=0;ss>1)",ka],");")}function Sn(){pt(xa,".drawArraysInstancedANGLE(",[Ir,Xr,Ua,ka],");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}function qa(){function hn(){pt(Nt+".drawElements("+[Ir,Ua,ja,Xr+"<<(("+ja+"-"+qn+")>>1)"]+");")}function Sn(){pt(Nt+".drawArrays("+[Ir,Xr,Ua]+");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}$a&&(typeof ka!="number"||ka>=0)?typeof ka=="string"?(pt("if(",ka,">0){"),on(),pt("}else if(",ka,"<0){"),qa(),pt("}")):on():qa()}function fo(Ge,Qe,pt,Bt,It){var Nt=bn(),Xt=Nt.proc("body",It);return $a&&(Nt.instancing=Xt.def(Nt.shared.extensions,".angle_instanced_arrays")),Ge(Nt,Xt,pt,Bt),Nt.compile().body}function mo(Ge,Qe,pt,Bt){Oo(Ge,Qe),pt.useVAO?pt.drawVAO?Qe(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Qe),");"):Qe(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Qe(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Qe,pt,Bt.attributes,function(){return!0})),Bl(Ge,Qe,pt,Bt.uniforms,function(){return!0},!1),Ci(Ge,Qe,Qe,pt)}function ye(Ge,Qe){var pt=Ge.proc("draw",1);Oo(Ge,pt),Us(Ge,pt,Qe.context),$s(Ge,pt,Qe.framebuffer),mi(Ge,pt,Qe),kl(Ge,pt,Qe.state),As(Ge,pt,Qe,!1,!0);var Bt=Qe.shader.progVar.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Bt,".program);"),Qe.shader.program)mo(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var It=Ge.global.def("{}"),Nt=pt.def(Bt,".id"),Xt=pt.def(It,"[",Nt,"]");pt(Ge.cond(Xt).then(Xt,".call(this,a0);").else(Xt,"=",It,"[",Nt,"]=",Ge.link(function(qt){return fo(mo,Ge,Qe,qt,1)}),"(",Bt,");",Xt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function j(Ge,Qe,pt,Bt){Ge.batchId="a1",Oo(Ge,Qe);function It(){return!0}Ol(Ge,Qe,pt,Bt.attributes,It),Bl(Ge,Qe,pt,Bt.uniforms,It,!1),Ci(Ge,Qe,Qe,pt)}function ce(Ge,Qe,pt,Bt){Oo(Ge,Qe);var It=pt.contextDep,Nt=Qe.def(),Xt="a0",qt="a1",Mt=Qe.def();Ge.shared.props=Mt,Ge.batchId=Nt;var Ft=Ge.scope(),Rt=Ge.scope();Qe(Ft.entry,"for(",Nt,"=0;",Nt,"<",qt,";++",Nt,"){",Mt,"=",Xt,"[",Nt,"];",Rt,"}",Ft.exit);function _r(ja){return ja.contextDep&&It||ja.propDep}function Ir(ja){return!_r(ja)}if(pt.needsContext&&Us(Ge,Rt,pt.context),pt.needsFramebuffer&&$s(Ge,Rt,pt.framebuffer),kl(Ge,Rt,pt.state,_r),pt.profile&&_r(pt.profile)&&As(Ge,Rt,pt,!1,!0),Bt)pt.useVAO?pt.drawVAO?_r(pt.drawVAO)?Rt(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Rt),");"):Ft(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Ft),");"):Ft(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Ft(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Ft,pt,Bt.attributes,Ir),Ol(Ge,Rt,pt,Bt.attributes,_r)),Bl(Ge,Ft,pt,Bt.uniforms,Ir,!1),Bl(Ge,Rt,pt,Bt.uniforms,_r,!0),Ci(Ge,Ft,Rt,pt);else{var Xr=Ge.global.def("{}"),Ua=pt.shader.progVar.append(Ge,Rt),ka=Rt.def(Ua,".id"),xa=Rt.def(Xr,"[",ka,"]");Rt(Ge.shared.gl,".useProgram(",Ua,".program);","if(!",xa,"){",xa,"=",Xr,"[",ka,"]=",Ge.link(function(ja){return fo(j,Ge,pt,ja,2)}),"(",Ua,");}",xa,".call(this,a0[",Nt,"],",Nt,");")}}function $(Ge,Qe){var pt=Ge.proc("batch",2);Ge.batchId="0",Oo(Ge,pt);var Bt=!1,It=!0;Object.keys(Qe.context).forEach(function(Xr){Bt=Bt||Qe.context[Xr].propDep}),Bt||(Us(Ge,pt,Qe.context),It=!1);var Nt=Qe.framebuffer,Xt=!1;Nt?(Nt.propDep?Bt=Xt=!0:Nt.contextDep&&Bt&&(Xt=!0),Xt||$s(Ge,pt,Nt)):$s(Ge,pt,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Bt=!0);function qt(Xr){return Xr.contextDep&&Bt||Xr.propDep}mi(Ge,pt,Qe),kl(Ge,pt,Qe.state,function(Xr){return!qt(Xr)}),(!Qe.profile||!qt(Qe.profile))&&As(Ge,pt,Qe,!1,"a1"),Qe.contextDep=Bt,Qe.needsContext=It,Qe.needsFramebuffer=Xt;var Mt=Qe.shader.progVar;if(Mt.contextDep&&Bt||Mt.propDep)ce(Ge,pt,Qe,null);else{var Ft=Mt.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Ft,".program);"),Qe.shader.program)ce(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var Rt=Ge.global.def("{}"),_r=pt.def(Ft,".id"),Ir=pt.def(Rt,"[",_r,"]");pt(Ge.cond(Ir).then(Ir,".call(this,a0,a1);").else(Ir,"=",Rt,"[",_r,"]=",Ge.link(function(Xr){return fo(ce,Ge,Qe,Xr,2)}),"(",Ft,");",Ir,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function ge(Ge,Qe){var pt=Ge.proc("scope",3);Ge.batchId="a2";var Bt=Ge.shared,It=Bt.current;if(Us(Ge,pt,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ge,pt),Ba(Object.keys(Qe.state)).forEach(function(qt){var Mt=Qe.state[qt],Ft=Mt.append(Ge,pt);za(Ft)?Ft.forEach(function(Rt,_r){Yn(Rt)?pt.set(Ge.next[qt],"["+_r+"]",Rt):pt.set(Ge.next[qt],"["+_r+"]",Ge.link(Rt,{stable:!0}))}):ni(Mt)?pt.set(Bt.next,"."+qt,Ge.link(Ft,{stable:!0})):pt.set(Bt.next,"."+qt,Ft)}),As(Ge,pt,Qe,!0,!0),[Se,xt,ft,Dt,Re].forEach(function(qt){var Mt=Qe.draw[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.draw,"."+qt,Ft):pt.set(Bt.draw,"."+qt,Ge.link(Ft),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(qt){var Mt=Qe.uniforms[qt].append(Ge,pt);Array.isArray(Mt)&&(Mt="["+Mt.map(function(Ft){return Yn(Ft)?Ft:Ge.link(Ft,{stable:!0})})+"]"),pt.set(Bt.uniforms,"["+Ge.link(ir.id(qt),{stable:!0})+"]",Mt)}),Object.keys(Qe.attributes).forEach(function(qt){var Mt=Qe.attributes[qt].append(Ge,pt),Ft=Ge.scopeAttrib(qt);Object.keys(new ya).forEach(function(Rt){pt.set(Ft,"."+Rt,Mt[Rt])})}),Qe.scopeVAO){var Nt=Qe.scopeVAO.append(Ge,pt);Yn(Nt)?pt.set(Bt.vao,".targetVAO",Nt):pt.set(Bt.vao,".targetVAO",Ge.link(Nt,{stable:!0}))}function Xt(qt){var Mt=Qe.shader[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.shader,"."+qt,Ft):pt.set(Bt.shader,"."+qt,Ge.link(Ft,{stable:!0}))}}Xt(ne),Xt(Te),Object.keys(Qe.state).length>0&&(pt(It,".dirty=true;"),pt.exit(It,".dirty=true;")),pt("a1(",Ge.shared.context,",a0,",Ge.batchId,");")}function Be(Ge){if(!(typeof Ge!="object"||za(Ge))){for(var Qe=Object.keys(Ge),pt=0;pt=0;--Ci){var fo=Yn[Ci];fo&&fo(xn,null,0)}ur.flush(),un&&un.update()}function Xi(){!bn&&Yn.length>0&&(bn=f.next(Mi))}function eo(){bn&&(f.cancel(Mi),bn=null)}function ts(Ci){Ci.preventDefault(),eo(),Pi.forEach(function(fo){fo()})}function to(Ci){ur.getError(),Va.restore(),pn.restore(),Ra.restore(),Xn.restore(),Oa.restore(),Ea.restore(),Fa.restore(),un&&un.restore(),Dn.procs.refresh(),Xi(),Vn.forEach(function(fo){fo()})}fn&&(fn.addEventListener(Ds,ts,!1),fn.addEventListener(Ts,to,!1));function il(){Yn.length=0,eo(),fn&&(fn.removeEventListener(Ds,ts),fn.removeEventListener(Ts,to)),pn.clear(),Ea.clear(),Oa.clear(),Fa.clear(),Xn.clear(),$a.clear(),Ra.clear(),un&&un.clear(),ei.forEach(function(Ci){Ci()})}function Xo(Ci){function fo(It){var Nt=h({},It);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Xt(qt){if(qt in Nt){var Mt=Nt[qt];delete Nt[qt],Object.keys(Mt).forEach(function(Ft){Nt[qt+"."+Ft]=Mt[Ft]})}}return Xt("blend"),Xt("depth"),Xt("cull"),Xt("stencil"),Xt("polygonOffset"),Xt("scissor"),Xt("sample"),"vao"in It&&(Nt.vao=It.vao),Nt}function mo(It,Nt){var Xt={},qt={};return Object.keys(It).forEach(function(Mt){var Ft=It[Mt];if(c.isDynamic(Ft)){qt[Mt]=c.unbox(Ft,Mt);return}else if(Nt&&Array.isArray(Ft)){for(var Rt=0;Rt0)return st.call(this,pt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return st.call(this,It,It.length)}else return rt.call(this,It)}return h(Bt,{stats:ge,destroy:function(){Be.destroy()}})}var Qs=Ea.setFBO=Xo({framebuffer:c.define.call(null,Kl,"framebuffer")});function pl(Ci,fo){var mo=0;Dn.procs.poll();var ye=fo.color;ye&&(ur.clearColor(+ye[0]||0,+ye[1]||0,+ye[2]||0,+ye[3]||0),mo|=Ns),"depth"in fo&&(ur.clearDepth(+fo.depth),mo|=di),"stencil"in fo&&(ur.clearStencil(fo.stencil|0),mo|=Lo),ur.clear(mo)}function El(Ci){if("framebuffer"in Ci)if(Ci.framebuffer&&Ci.framebuffer_reglType==="framebufferCube")for(var fo=0;fo<6;++fo)Qs(h({framebuffer:Ci.framebuffer.faces[fo]},Ci),pl);else Qs(Ci,pl);else pl(null,Ci)}function zu(Ci){Yn.push(Ci);function fo(){var mo=pu(Yn,Ci);function ye(){var j=pu(Yn,ye);Yn[j]=Yn[Yn.length-1],Yn.length-=1,Yn.length<=0&&eo()}Yn[mo]=ye}return Xi(),{cancel:fo}}function Us(){var Ci=An.viewport,fo=An.scissor_box;Ci[0]=Ci[1]=fo[0]=fo[1]=0,xn.viewportWidth=xn.framebufferWidth=xn.drawingBufferWidth=Ci[2]=fo[2]=ur.drawingBufferWidth,xn.viewportHeight=xn.framebufferHeight=xn.drawingBufferHeight=Ci[3]=fo[3]=ur.drawingBufferHeight}function $s(){xn.tick+=1,xn.time=kl(),Us(),Dn.procs.poll()}function mi(){Xn.refresh(),Us(),Dn.procs.refresh(),un&&un.update()}function kl(){return(p()-wn)/1e3}mi();function Oo(Ci,fo){var mo;switch(Ci){case"frame":return zu(fo);case"lost":mo=Pi;break;case"restore":mo=Vn;break;case"destroy":mo=ei;break}return mo.push(fo),{cancel:function(){for(var ye=0;ye=0},read:da,destroy:il,_gl:ur,_refresh:mi,poll:function(){$s(),un&&un.update()},now:kl,stats:Kr,getCachedCode:As,preloadCachedCode:Ol});return ir.onDone(null,Bl),Bl}return ul})}}),zI=He({"node_modules/gl-util/context.js"(Y,H){var h=Gv();H.exports=function(i){if(i?typeof i=="string"&&(i={container:i}):i={},A(i)?i={container:i}:E(i)?i={container:i}:e(i)?i={gl:i}:i=h(i,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),i.pixelRatio||(i.pixelRatio=window.pixelRatio||1),i.gl)return i.gl;if(i.canvas&&(i.container=i.canvas.parentNode),i.container){if(typeof i.container=="string"){var a=document.querySelector(i.container);if(!a)throw Error("Element "+i.container+" is not found");i.container=a}A(i.container)?(i.canvas=i.container,i.container=i.canvas.parentNode):i.canvas||(i.canvas=t(),i.container.appendChild(i.canvas),x(i))}else if(!i.canvas)if(typeof document<"u")i.container=document.body||document.documentElement,i.canvas=t(),i.container.appendChild(i.canvas),x(i);else throw Error("Not DOM environment. Use headless-gl.");return i.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(o){try{i.gl=i.canvas.getContext(o,i.attrs)}catch{}return i.gl}),i.gl};function x(r){if(r.container)if(r.container==document.body)document.body.style.width||(r.canvas.width=r.width||r.pixelRatio*window.innerWidth),document.body.style.height||(r.canvas.height=r.height||r.pixelRatio*window.innerHeight);else{var i=r.container.getBoundingClientRect();r.canvas.width=r.width||i.right-i.left,r.canvas.height=r.height||i.bottom-i.top}}function A(r){return typeof r.getContext=="function"&&"width"in r&&"height"in r}function E(r){return typeof r.nodeName=="string"&&typeof r.appendChild=="function"&&typeof r.getBoundingClientRect=="function"}function e(r){return typeof r.drawArrays=="function"||typeof r.drawElements=="function"}function t(){var r=document.createElement("canvas");return r.style.position="absolute",r.style.top=0,r.style.left=0,r}}}),FI=He({"node_modules/font-atlas/index.js"(Y,H){var h=zT(),x=[32,126];H.exports=A;function A(E){E=E||{};var e=E.shape?E.shape:E.canvas?[E.canvas.width,E.canvas.height]:[512,512],t=E.canvas||document.createElement("canvas"),r=E.font,i=typeof E.step=="number"?[E.step,E.step]:E.step||[32,32],a=E.chars||x;if(r&&typeof r!="string"&&(r=h(r)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],n=a[0],s=0;n<=a[1];n++)o[s++]=String.fromCharCode(n);a=o}e=e.slice(),t.width=e[0],t.height=e[1];var c=t.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,t.width,t.height),c.font=r,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var f=i[0]/2,p=i[1]/2,n=0;ne[0]-i[0]/2&&(f=i[0]/2,p+=i[1]);return t}}}),FT=He({"node_modules/bit-twiddle/twiddle.js"(Y){"use restrict";var H=32;Y.INT_BITS=H,Y.INT_MAX=2147483647,Y.INT_MIN=-1<0)-(A<0)},Y.abs=function(A){var E=A>>H-1;return(A^E)-E},Y.min=function(A,E){return E^(A^E)&-(A65535)<<4,A>>>=E,e=(A>255)<<3,A>>>=e,E|=e,e=(A>15)<<2,A>>>=e,E|=e,e=(A>3)<<1,A>>>=e,E|=e,E|A>>1},Y.log10=function(A){return A>=1e9?9:A>=1e8?8:A>=1e7?7:A>=1e6?6:A>=1e5?5:A>=1e4?4:A>=1e3?3:A>=100?2:A>=10?1:0},Y.popCount=function(A){return A=A-(A>>>1&1431655765),A=(A&858993459)+(A>>>2&858993459),(A+(A>>>4)&252645135)*16843009>>>24};function h(A){var E=32;return A&=-A,A&&E--,A&65535&&(E-=16),A&16711935&&(E-=8),A&252645135&&(E-=4),A&858993459&&(E-=2),A&1431655765&&(E-=1),E}Y.countTrailingZeros=h,Y.nextPow2=function(A){return A+=A===0,--A,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A+1},Y.prevPow2=function(A){return A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A-(A>>>1)},Y.parity=function(A){return A^=A>>>16,A^=A>>>8,A^=A>>>4,A&=15,27030>>>A&1};var x=new Array(256);(function(A){for(var E=0;E<256;++E){var e=E,t=E,r=7;for(e>>>=1;e;e>>>=1)t<<=1,t|=e&1,--r;A[E]=t<>>8&255]<<16|x[A>>>16&255]<<8|x[A>>>24&255]},Y.interleave2=function(A,E){return A&=65535,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,E&=65535,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,A|E<<1},Y.deinterleave2=function(A,E){return A=A>>>E&1431655765,A=(A|A>>>1)&858993459,A=(A|A>>>2)&252645135,A=(A|A>>>4)&16711935,A=(A|A>>>16)&65535,A<<16>>16},Y.interleave3=function(A,E,e){return A&=1023,A=(A|A<<16)&4278190335,A=(A|A<<8)&251719695,A=(A|A<<4)&3272356035,A=(A|A<<2)&1227133513,E&=1023,E=(E|E<<16)&4278190335,E=(E|E<<8)&251719695,E=(E|E<<4)&3272356035,E=(E|E<<2)&1227133513,A|=E<<1,e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,A|e<<2},Y.deinterleave3=function(A,E){return A=A>>>E&1227133513,A=(A|A>>>2)&3272356035,A=(A|A>>>4)&251719695,A=(A|A>>>8)&4278190335,A=(A|A>>>16)&1023,A<<22>>22},Y.nextCombination=function(A){var E=A|A-1;return E+1|(~E&-~E)-1>>>h(A)+1}}}),OI=He({"node_modules/dup/dup.js"(Y,H){function h(E,e,t){var r=E[t]|0;if(r<=0)return[];var i=new Array(r),a;if(t===E.length-1)for(a=0;a"u"&&(e=0),typeof E){case"number":if(E>0)return x(E|0,e);break;case"object":if(typeof E.length=="number")return h(E,e,0);break}return[]}H.exports=A}}),BI=He({"node_modules/typedarray-pool/pool.js"(Y){var H=FT(),h=OI(),x=Dp().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:h([32,0]),UINT16:h([32,0]),UINT32:h([32,0]),BIGUINT64:h([32,0]),INT8:h([32,0]),INT16:h([32,0]),INT32:h([32,0]),BIGINT64:h([32,0]),FLOAT:h([32,0]),DOUBLE:h([32,0]),DATA:h([32,0]),UINT8C:h([32,0]),BUFFER:h([32,0])});var A=typeof Uint8ClampedArray<"u",E=typeof BigUint64Array<"u",e=typeof BigInt64Array<"u",t=window.__TYPEDARRAY_POOL;t.UINT8C||(t.UINT8C=h([32,0])),t.BIGUINT64||(t.BIGUINT64=h([32,0])),t.BIGINT64||(t.BIGINT64=h([32,0])),t.BUFFER||(t.BUFFER=h([32,0]));var r=t.DATA,i=t.BUFFER;Y.free=function(u){if(x.isBuffer(u))i[H.log2(u.length)].push(u);else{if(Object.prototype.toString.call(u)!=="[object ArrayBuffer]"&&(u=u.buffer),!u)return;var g=u.length||u.byteLength,y=H.log2(g)|0;r[y].push(u)}};function a(d){if(d){var u=d.length||d.byteLength,g=H.log2(u);r[g].push(d)}}function o(d){a(d.buffer)}Y.freeUint8=Y.freeUint16=Y.freeUint32=Y.freeBigUint64=Y.freeInt8=Y.freeInt16=Y.freeInt32=Y.freeBigInt64=Y.freeFloat32=Y.freeFloat=Y.freeFloat64=Y.freeDouble=Y.freeUint8Clamped=Y.freeDataView=o,Y.freeArrayBuffer=a,Y.freeBuffer=function(u){i[H.log2(u.length)].push(u)},Y.malloc=function(u,g){if(g===void 0||g==="arraybuffer")return n(u);switch(g){case"uint8":return s(u);case"uint16":return c(u);case"uint32":return f(u);case"int8":return p(u);case"int16":return v(u);case"int32":return T(u);case"float":case"float32":return l(u);case"double":case"float64":return m(u);case"uint8_clamped":return w(u);case"bigint64":return M(u);case"biguint64":return S(u);case"buffer":return b(u);case"data":case"dataview":return _(u);default:return null}return null};function n(u){var u=H.nextPow2(u),g=H.log2(u),y=r[g];return y.length>0?y.pop():new ArrayBuffer(u)}Y.mallocArrayBuffer=n;function s(d){return new Uint8Array(n(d),0,d)}Y.mallocUint8=s;function c(d){return new Uint16Array(n(2*d),0,d)}Y.mallocUint16=c;function f(d){return new Uint32Array(n(4*d),0,d)}Y.mallocUint32=f;function p(d){return new Int8Array(n(d),0,d)}Y.mallocInt8=p;function v(d){return new Int16Array(n(2*d),0,d)}Y.mallocInt16=v;function T(d){return new Int32Array(n(4*d),0,d)}Y.mallocInt32=T;function l(d){return new Float32Array(n(4*d),0,d)}Y.mallocFloat32=Y.mallocFloat=l;function m(d){return new Float64Array(n(8*d),0,d)}Y.mallocFloat64=Y.mallocDouble=m;function w(d){return A?new Uint8ClampedArray(n(d),0,d):s(d)}Y.mallocUint8Clamped=w;function S(d){return E?new BigUint64Array(n(8*d),0,d):null}Y.mallocBigUint64=S;function M(d){return e?new BigInt64Array(n(8*d),0,d):null}Y.mallocBigInt64=M;function _(d){return new DataView(n(d),0,d)}Y.mallocDataView=_;function b(d){d=H.nextPow2(d);var u=H.log2(d),g=i[u];return g.length>0?g.pop():new x(d)}Y.mallocBuffer=b,Y.clearCache=function(){for(var u=0;u<32;++u)t.UINT8[u].length=0,t.UINT16[u].length=0,t.UINT32[u].length=0,t.INT8[u].length=0,t.INT16[u].length=0,t.INT32[u].length=0,t.FLOAT[u].length=0,t.DOUBLE[u].length=0,t.BIGUINT64[u].length=0,t.BIGINT64[u].length=0,t.UINT8C[u].length=0,r[u].length=0,i[u].length=0}}}),NI=He({"node_modules/is-plain-obj/index.js"(Y,H){var h=Object.prototype.toString;H.exports=function(x){var A;return h.call(x)==="[object Object]"&&(A=Object.getPrototypeOf(x),A===null||A===Object.getPrototypeOf({}))}}}),OT=He({"node_modules/parse-unit/index.js"(Y,H){H.exports=function(x,A){A||(A=[0,""]),x=String(x);var E=parseFloat(x,10);return A[0]=E,A[1]=x.match(/[\d.\-\+]*\s*(.*)/)[1]||"",A}}}),UI=He({"node_modules/to-px/topx.js"(Y,H){var h=OT();H.exports=e;var x=96;function A(t,r){var i=h(getComputedStyle(t).getPropertyValue(r));return i[0]*e(i[1],t)}function E(t,r){var i=document.createElement("div");i.style["font-size"]="128"+t,r.appendChild(i);var a=A(i,"font-size")/128;return r.removeChild(i),a}function e(t,r){switch(r=r||document.body,t=(t||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),t){case"%":return r.clientHeight/100;case"ch":case"ex":return E(t,r);case"em":return A(r,"font-size");case"rem":return A(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return x;case"cm":return x/2.54;case"mm":return x/25.4;case"pt":return x/72;case"pc":return x/6}return 1}}}),jI=He({"node_modules/detect-kerning/index.js"(Y,H){H.exports=E;var h=E.canvas=document.createElement("canvas"),x=h.getContext("2d"),A=e([32,126]);E.createPairs=e,E.ascii=A;function E(t,r){Array.isArray(t)&&(t=t.join(", "));var i={},a,o=16,n=.05;r&&(r.length===2&&typeof r[0]=="number"?a=e(r):Array.isArray(r)?a=r:(r.o?a=e(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(o=r.fontSize),r.threshold!=null&&(n=r.threshold))),a||(a=A),x.font=o+"px "+t;for(var s=0;so*n){var v=(p-f)/o;i[c]=v*1e3}}return i}function e(t){for(var r=[],i=t[0];i<=t[1];i++)for(var a=String.fromCharCode(i),o=t[0];o0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}}}),qI=He({"node_modules/gl-text/dist.js"(Y,H){var h=RI(),x=Gv(),A=DI(),E=zI(),e=ET(),t=ap(),r=FI(),i=BI(),a=vg(),o=NI(),n=OT(),s=UI(),c=jI(),f=yf(),p=VI(),v=Yp(),T=FT(),l=T.nextPow2,m=new e,w=!1;document.body&&(S=document.body.appendChild(document.createElement("div")),S.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(S).fontStretch&&(w=!0),document.body.removeChild(S));var S,M=function(d){_(d)?(d={regl:d},this.gl=d.regl._gl):this.gl=E(d),this.shader=m.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=d.regl||A({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),m.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(o(d)?d:{})};M.prototype.createShader=function(){var d=this.regl,u=d({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:d.prop("count"),offset:d.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:d.this("sizeBuffer")},width:{offset:0,stride:8,buffer:d.this("sizeBuffer")},char:d.this("charBuffer"),position:d.this("position")},uniforms:{atlasSize:function(y,R){return[R.atlas.width,R.atlas.height]},atlasDim:function(y,R){return[R.atlas.cols,R.atlas.rows]},atlas:function(y,R){return R.atlas.texture},charStep:function(y,R){return R.atlas.step},em:function(y,R){return R.atlas.em},color:d.prop("color"),opacity:d.prop("opacity"),viewport:d.this("viewportArray"),scale:d.this("scale"),align:d.prop("align"),baseline:d.prop("baseline"),translate:d.this("translate"),positionOffset:d.prop("positionOffset")},primitive:"points",viewport:d.this("viewport"),vert:` + precision highp float; + attribute float width, charOffset, char; + attribute vec2 position; + uniform float fontSize, charStep, em, align, baseline; + uniform vec4 viewport; + uniform vec4 color; + uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; + varying vec2 charCoord, charId; + varying float charWidth; + varying vec4 fontColor; + void main () { + vec2 offset = floor(em * (vec2(align + charOffset, baseline) + + vec2(positionOffset.x, -positionOffset.y))) + / (viewport.zw * scale.xy); + + vec2 position = (position + translate) * scale; + position += offset * scale; + + charCoord = position * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2. - 1., 0, 1); + + gl_PointSize = charStep; + + charId.x = mod(char, atlasDim.x); + charId.y = floor(char / atlasDim.x); + + charWidth = width * em; + + fontColor = color / 255.; + }`,frag:` + precision highp float; + uniform float fontSize, charStep, opacity; + uniform vec2 atlasSize; + uniform vec4 viewport; + uniform sampler2D atlas; + varying vec4 fontColor; + varying vec2 charCoord, charId; + varying float charWidth; + + float lightness(vec4 color) { + return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; + } + + void main () { + vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; + float halfCharStep = floor(charStep * .5 + .5); + + // invert y and shift by 1px (FF expecially needs that) + uv.y = charStep - uv.y; + + // ignore points outside of character bounding box + float halfCharWidth = ceil(charWidth * .5); + if (floor(uv.x) > halfCharStep + halfCharWidth || + floor(uv.x) < halfCharStep - halfCharWidth) return; + + uv += charId * charStep; + uv = uv / atlasSize; + + vec4 color = fontColor; + vec4 mask = texture2D(atlas, uv); + + float maskY = lightness(mask); + // float colorY = lightness(color); + color.a *= maskY; + color.a *= opacity; + + // color.a += .1; + + // antialiasing, see yiq color space y-channel formula + // color.rgb += (1. - color.rgb) * (1. - mask.rgb); + + gl_FragColor = color; + }`}),g={};return{regl:d,draw:u,atlas:g}},M.prototype.update=function(d){var u=this;if(typeof d=="string")d={text:d};else if(!d)return;d=x(d,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),d.opacity!=null&&(Array.isArray(d.opacity)?this.opacity=d.opacity.map(function(he){return parseFloat(he)}):this.opacity=parseFloat(d.opacity)),d.viewport!=null&&(this.viewport=a(d.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),d.kerning!=null&&(this.kerning=d.kerning),d.offset!=null&&(typeof d.offset=="number"&&(d.offset=[d.offset,0]),this.positionOffset=v(d.offset)),d.direction&&(this.direction=d.direction),d.range&&(this.range=d.range,this.scale=[1/(d.range[2]-d.range[0]),1/(d.range[3]-d.range[1])],this.translate=[-d.range[0],-d.range[1]]),d.scale&&(this.scale=d.scale),d.translate&&(this.translate=d.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!d.font&&(d.font=M.baseFontSize+"px sans-serif");var g=!1,y=!1;if(d.font&&(Array.isArray(d.font)?d.font:[d.font]).forEach(function(he,De){if(typeof he=="string")try{he=h.parse(he)}catch{he=h.parse(M.baseFontSize+"px "+he)}else{var et=he.style,nt=he.weight,Ke=he.stretch,Et=he.variant;he=h.parse(h.stringify(he)),et&&(he.style=et),nt&&(he.weight=nt),Ke&&(he.stretch=Ke),Et&&(he.variant=Et)}var kt=h.stringify({size:M.baseFontSize,family:he.family,stretch:w?he.stretch:void 0,variant:he.variant,weight:he.weight,style:he.style}),Ut=n(he.size),Yt=Math.round(Ut[0]*s(Ut[1]));if(Yt!==u.fontSize[De]&&(y=!0,u.fontSize[De]=Yt),(!u.font[De]||kt!=u.font[De].baseString)&&(g=!0,u.font[De]=M.fonts[kt],!u.font[De])){var vr=he.family.join(", "),hr=[he.style];he.style!=he.variant&&hr.push(he.variant),he.variant!=he.weight&&hr.push(he.weight),w&&he.weight!=he.stretch&&hr.push(he.stretch),u.font[De]={baseString:kt,family:vr,weight:he.weight,stretch:he.stretch,style:he.style,variant:he.variant,width:{},kerning:{},metrics:p(vr,{origin:"top",fontSize:M.baseFontSize,fontStyle:hr.join(" ")})},M.fonts[kt]=u.font[De]}}),(g||y)&&this.font.forEach(function(he,De){var et=h.stringify({size:u.fontSize[De],family:he.family,stretch:w?he.stretch:void 0,variant:he.variant,weight:he.weight,style:he.style});if(u.fontAtlas[De]=u.shader.atlas[et],!u.fontAtlas[De]){var nt=he.metrics;u.shader.atlas[et]=u.fontAtlas[De]={fontString:et,step:Math.ceil(u.fontSize[De]*nt.bottom*.5)*2,em:u.fontSize[De],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:u.regl.texture()}}d.text==null&&(d.text=u.text)}),typeof d.text=="string"&&d.position&&d.position.length>2){for(var R=Array(d.position.length*.5),I=0;I2){for(var B=!d.position[0].length,O=i.mallocFloat(this.count*2),P=0,N=0;P1?u.align[De]:u.align[0]:u.align;if(typeof et=="number")return et;switch(et){case"right":case"end":return-he;case"center":case"centre":case"middle":return-he*.5}return 0})),this.baseline==null&&d.baseline==null&&(d.baseline=0),d.baseline!=null&&(this.baseline=d.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(he,De){var et=(u.font[De]||u.font[0]).metrics,nt=0;return nt+=et.bottom*.5,typeof he=="number"?nt+=he-et.baseline:nt+=-et[he],nt*=-1,nt})),d.color!=null)if(d.color||(d.color="transparent"),typeof d.color=="string"||!isNaN(d.color))this.color=t(d.color,"uint8");else{var Pe;if(typeof d.color[0]=="number"&&d.color.length>this.counts.length){var Ce=d.color.length;Pe=i.mallocUint8(Ce);for(var je=(d.color.subarray||d.color.slice).bind(d.color),at=0;at4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ze){var Me=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Me);for(var we=0;we1?this.counts[we]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[we]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(we*4,we*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[we]:this.opacity,baseline:this.baselineOffset[we]!=null?this.baselineOffset[we]:this.baselineOffset[0],align:this.align?this.alignOffset[we]!=null?this.alignOffset[we]:this.alignOffset[0]:0,atlas:this.fontAtlas[we]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(we*2,we*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},M.prototype.destroy=function(){},M.prototype.kerning=!0,M.prototype.position={constant:new Float32Array(2)},M.prototype.translate=null,M.prototype.scale=null,M.prototype.font=null,M.prototype.text="",M.prototype.positionOffset=[0,0],M.prototype.opacity=1,M.prototype.color=new Uint8Array([0,0,0,255]),M.prototype.alignOffset=[0,0],M.maxAtlasSize=1024,M.atlasCanvas=document.createElement("canvas"),M.atlasContext=M.atlasCanvas.getContext("2d",{alpha:!1}),M.baseFontSize=64,M.fonts={};function _(b){return typeof b=="function"&&b._gl&&b.prop&&b.texture&&b.buffer}H.exports=M}}),GI=He({"node_modules/@plotly/regl/dist/regl.unchecked.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?H.exports=x():h.createREGL=x()})(Y,function(){var h=function(lt,ir){for(var ur=Object.keys(ir),fa=0;fa1&&ir===ur&&(ir==='"'||ir==="'"))return['"'+r(lt.substr(1,lt.length-2))+'"'];var fa=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(lt);if(fa)return i(lt.substr(0,fa.index)).concat(i(fa[1])).concat(i(lt.substr(fa.index+fa[0].length)));var Va=lt.split(".");if(Va.length===1)return['"'+r(lt)+'"'];for(var Jr=[],Kr=0;Kr"u"?1:window.devicePixelRatio,wn=!1,Jn={},jn=function(Ur){},xn=function(){};if(typeof ir=="string"?ur=document.querySelector(ir):typeof ir=="object"&&(m(ir)?ur=ir:w(ir)?(Jr=ir,Va=Jr.canvas):("gl"in ir?Jr=ir.gl:"canvas"in ir?Va=M(ir.canvas):"container"in ir&&(fa=M(ir.container)),"attributes"in ir&&(Kr=ir.attributes),"extensions"in ir&&(cn=S(ir.extensions)),"optionalExtensions"in ir&&(ln=S(ir.optionalExtensions)),"onDone"in ir&&(jn=ir.onDone),"profile"in ir&&(wn=!!ir.profile),"pixelRatio"in ir&&(un=+ir.pixelRatio),"cachedCode"in ir&&(Jn=ir.cachedCode))),ur&&(ur.nodeName.toLowerCase()==="canvas"?Va=ur:fa=ur),!Jr){if(!Va){var Za=T(fa||document.body,jn,un);if(!Za)return null;Va=Za.canvas,xn=Za.onDestroy}Kr.premultipliedAlpha===void 0&&(Kr.premultipliedAlpha=!0),Jr=l(Va,Kr)}return Jr?{gl:Jr,canvas:Va,container:fa,extensions:cn,optionalExtensions:ln,pixelRatio:un,profile:wn,cachedCode:Jn,onDone:jn,onDestroy:xn}:(xn(),jn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function b(lt,ir){var ur={};function fa(Kr){var cn=Kr.toLowerCase(),ln;try{ln=ur[cn]=lt.getExtension(cn)}catch{}return!!ln}for(var Va=0;Va65535)<<4,lt>>>=ir,ur=(lt>255)<<3,lt>>>=ur,ir|=ur,ur=(lt>15)<<2,lt>>>=ur,ir|=ur,ur=(lt>3)<<1,lt>>>=ur,ir|=ur,ir|lt>>1}function P(){var lt=d(8,function(){return[]});function ir(Jr){var Kr=B(Jr),cn=lt[O(Kr)>>2];return cn.length>0?cn.pop():new ArrayBuffer(Kr)}function ur(Jr){lt[O(Jr.byteLength)>>2].push(Jr)}function fa(Jr,Kr){var cn=null;switch(Jr){case u:cn=new Int8Array(ir(Kr),0,Kr);break;case g:cn=new Uint8Array(ir(Kr),0,Kr);break;case y:cn=new Int16Array(ir(2*Kr),0,Kr);break;case R:cn=new Uint16Array(ir(2*Kr),0,Kr);break;case I:cn=new Int32Array(ir(4*Kr),0,Kr);break;case z:cn=new Uint32Array(ir(4*Kr),0,Kr);break;case F:cn=new Float32Array(ir(4*Kr),0,Kr);break;default:return null}return cn.length!==Kr?cn.subarray(0,Kr):cn}function Va(Jr){ur(Jr.buffer)}return{alloc:ir,free:ur,allocType:fa,freeType:Va}}var N=P();N.zero=P();var U=3408,X=3410,te=3411,ue=3412,ie=3413,le=3414,q=3415,J=33901,ee=33902,Z=3379,se=3386,Q=34921,V=36347,re=36348,ae=35661,fe=35660,xe=34930,Ae=36349,Pe=34076,Ce=34024,je=7936,at=7937,tt=7938,Je=35724,Ze=34047,Me=36063,we=34852,he=3553,De=34067,et=34069,nt=33984,Ke=6408,Et=5126,kt=5121,Ut=36160,Yt=36053,vr=36064,hr=16384,Rr=function(lt,ir){var ur=1;ir.ext_texture_filter_anisotropic&&(ur=lt.getParameter(Ze));var fa=1,Va=1;ir.webgl_draw_buffers&&(fa=lt.getParameter(we),Va=lt.getParameter(Me));var Jr=!!ir.oes_texture_float;if(Jr){var Kr=lt.createTexture();lt.bindTexture(he,Kr),lt.texImage2D(he,0,Ke,1,1,0,Ke,Et,null);var cn=lt.createFramebuffer();if(lt.bindFramebuffer(Ut,cn),lt.framebufferTexture2D(Ut,vr,he,Kr,0),lt.bindTexture(he,null),lt.checkFramebufferStatus(Ut)!==Yt)Jr=!1;else{lt.viewport(0,0,1,1),lt.clearColor(1,0,0,1),lt.clear(hr);var ln=N.allocType(Et,4);lt.readPixels(0,0,1,1,Ke,Et,ln),lt.getError()?Jr=!1:(lt.deleteFramebuffer(cn),lt.deleteTexture(Kr),Jr=ln[0]===1),N.freeType(ln)}}var un=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!un){var Jn=lt.createTexture(),jn=N.allocType(kt,36);lt.activeTexture(nt),lt.bindTexture(De,Jn),lt.texImage2D(et,0,Ke,3,3,0,Ke,kt,jn),N.freeType(jn),lt.bindTexture(De,null),lt.deleteTexture(Jn),wn=!lt.getError()}return{colorBits:[lt.getParameter(X),lt.getParameter(te),lt.getParameter(ue),lt.getParameter(ie)],depthBits:lt.getParameter(le),stencilBits:lt.getParameter(q),subpixelBits:lt.getParameter(U),extensions:Object.keys(ir).filter(function(xn){return!!ir[xn]}),maxAnisotropic:ur,maxDrawbuffers:fa,maxColorAttachments:Va,pointSizeDims:lt.getParameter(J),lineWidthDims:lt.getParameter(ee),maxViewportDims:lt.getParameter(se),maxCombinedTextureUnits:lt.getParameter(ae),maxCubeMapSize:lt.getParameter(Pe),maxRenderbufferSize:lt.getParameter(Ce),maxTextureUnits:lt.getParameter(xe),maxTextureSize:lt.getParameter(Z),maxAttributes:lt.getParameter(Q),maxVertexUniforms:lt.getParameter(V),maxVertexTextureUnits:lt.getParameter(fe),maxVaryingVectors:lt.getParameter(re),maxFragmentUniforms:lt.getParameter(Ae),glsl:lt.getParameter(Je),renderer:lt.getParameter(at),vendor:lt.getParameter(je),version:lt.getParameter(tt),readFloat:Jr,npotTextureCube:wn}},dr=function(lt){return lt instanceof Uint8Array||lt instanceof Uint16Array||lt instanceof Uint32Array||lt instanceof Int8Array||lt instanceof Int16Array||lt instanceof Int32Array||lt instanceof Float32Array||lt instanceof Float64Array||lt instanceof Uint8ClampedArray};function wr(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||dr(lt.data))}var yt=function(lt){return Object.keys(lt).map(function(ir){return lt[ir]})},Fe={shape:Ie,flatten:be};function We(lt,ir,ur){for(var fa=0;fa0){var Xn;if(Array.isArray(ya[0])){pn=ba(ya);for(var Oa=1,Ea=1;Ea0){if(typeof Oa[0]=="number"){var An=N.allocType(Fa.dtype,Oa.length);Tr(An,Oa),pn(An,Dn),N.freeType(An)}else if(Array.isArray(Oa[0])||dr(Oa[0])){da=ba(Oa);var fn=Ga(Oa,da,Fa.dtype);pn(fn,Dn),N.freeType(fn)}}}else if(wr(Oa)){da=Oa.shape;var Yn=Oa.stride,Pi=0,Vn=0,ei=0,bn=0;da.length===1?(Pi=da[0],Vn=1,ei=Yn[0],bn=0):da.length===2&&(Pi=da[0],Vn=da[1],ei=Yn[0],bn=Yn[1]);var Mi=Array.isArray(Oa.data)?Fa.dtype:Ht(Oa.data),Xi=N.allocType(Mi,Pi*Vn);qr(Xi,Oa.data,Pi,Vn,ei,bn,Oa.offset),pn(Xi,Dn),N.freeType(Xi)}return Bn}return Ra||Bn(Ur),Bn._reglType="buffer",Bn._buffer=Fa,Bn.subdata=Xn,ur.profile&&(Bn.stats=Fa.stats),Bn.destroy=function(){jn(Fa)},Bn}function Za(){yt(Jr).forEach(function(Ur){Ur.buffer=lt.createBuffer(),lt.bindBuffer(Ur.type,Ur.buffer),lt.bufferData(Ur.type,Ur.persistentData||Ur.byteLength,Ur.usage)})}return ur.profile&&(ir.getTotalBufferSize=function(){var Ur=0;return Object.keys(Jr).forEach(function(ya){Ur+=Jr[ya].stats.size}),Ur}),{create:xn,createStream:ln,destroyStream:un,clear:function(){yt(Jr).forEach(jn),cn.forEach(jn)},getBuffer:function(Ur){return Ur&&Ur._buffer instanceof Kr?Ur._buffer:null},restore:Za,_initBuffer:Jn}}var Gr=0,wa=0,Da=1,Ya=1,Ka=4,an=4,mt={points:Gr,point:wa,lines:Da,line:Ya,triangles:Ka,triangle:an,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ot=0,Lr=1,Er=4,Mr=5120,br=5121,Or=5122,jr=5123,Dr=5124,Hr=5125,na=34963,ta=35040,At=35044;function or(lt,ir,ur,fa){var Va={},Jr=0,Kr={uint8:br,uint16:jr};ir.oes_element_index_uint&&(Kr.uint32=Hr);function cn(Za){this.id=Jr++,Va[this.id]=this,this.buffer=Za,this.primType=Er,this.vertCount=0,this.type=0}cn.prototype.bind=function(){this.buffer.bind()};var ln=[];function un(Za){var Ur=ln.pop();return Ur||(Ur=new cn(ur.create(null,na,!0,!1)._buffer)),Jn(Ur,Za,ta,-1,-1,0,0),Ur}function wn(Za){ln.push(Za)}function Jn(Za,Ur,ya,Ra,$a,Fa,Bn){Za.buffer.bind();var pn;if(Ur){var Xn=Bn;!Bn&&(!dr(Ur)||wr(Ur)&&!dr(Ur.data))&&(Xn=ir.oes_element_index_uint?Hr:jr),ur._initBuffer(Za.buffer,Ur,ya,Xn,3)}else lt.bufferData(na,Fa,ya),Za.buffer.dtype=pn||br,Za.buffer.usage=ya,Za.buffer.dimension=3,Za.buffer.byteLength=Fa;if(pn=Bn,!Bn){switch(Za.buffer.dtype){case br:case Mr:pn=br;break;case jr:case Or:pn=jr;break;case Hr:case Dr:pn=Hr;break}Za.buffer.dtype=pn}Za.type=pn;var Oa=$a;Oa<0&&(Oa=Za.buffer.byteLength,pn===jr?Oa>>=1:pn===Hr&&(Oa>>=2)),Za.vertCount=Oa;var Ea=Ra;if(Ra<0){Ea=Er;var Dn=Za.buffer.dimension;Dn===1&&(Ea=ot),Dn===2&&(Ea=Lr),Dn===3&&(Ea=Er)}Za.primType=Ea}function jn(Za){fa.elementsCount--,delete Va[Za.id],Za.buffer.destroy(),Za.buffer=null}function xn(Za,Ur){var ya=ur.create(null,na,!0),Ra=new cn(ya._buffer);fa.elementsCount++;function $a(Fa){if(!Fa)ya(),Ra.primType=Er,Ra.vertCount=0,Ra.type=br;else if(typeof Fa=="number")ya(Fa),Ra.primType=Er,Ra.vertCount=Fa|0,Ra.type=br;else{var Bn=null,pn=At,Xn=-1,Oa=-1,Ea=0,Dn=0;Array.isArray(Fa)||dr(Fa)||wr(Fa)?Bn=Fa:("data"in Fa&&(Bn=Fa.data),"usage"in Fa&&(pn=Aa[Fa.usage]),"primitive"in Fa&&(Xn=mt[Fa.primitive]),"count"in Fa&&(Oa=Fa.count|0),"type"in Fa&&(Dn=Kr[Fa.type]),"length"in Fa?Ea=Fa.length|0:(Ea=Oa,Dn===jr||Dn===Or?Ea*=2:(Dn===Hr||Dn===Dr)&&(Ea*=4))),Jn(Ra,Bn,pn,Xn,Oa,Ea,Dn)}return $a}return $a(Za),$a._reglType="elements",$a._elements=Ra,$a.subdata=function(Fa,Bn){return ya.subdata(Fa,Bn),$a},$a.destroy=function(){jn(Ra)},$a}return{create:xn,createStream:un,destroyStream:wn,getElements:function(Za){return typeof Za=="function"&&Za._elements instanceof cn?Za._elements:null},clear:function(){yt(Va).forEach(jn)}}}var Ar=new Float32Array(1),oa=new Uint32Array(Ar.buffer),ga=5123;function Sa(lt){for(var ir=N.allocType(ga,lt.length),ur=0;ur>>31<<15,Jr=(fa<<1>>>24)-127,Kr=fa>>13&1023;if(Jr<-24)ir[ur]=Va;else if(Jr<-14){var cn=-14-Jr;ir[ur]=Va+(Kr+1024>>cn)}else Jr>15?ir[ur]=Va+31744:ir[ur]=Va+(Jr+15<<10)+Kr}return ir}function za(lt){return Array.isArray(lt)||dr(lt)}var ra=34467,Ta=3553,Fn=34067,mn=34069,Kn=6408,ui=6406,pi=6407,vi=6409,Li=6410,Ni=32854,ci=32855,bi=36194,ho=32819,Bo=32820,gs=33635,ro=34042,Ei=6402,Ri=34041,xo=35904,So=35906,bo=36193,Ui=33776,no=33777,cs=33778,ks=33779,ms=35986,Mo=35987,kn=34798,fi=35840,Fs=35841,Ss=35842,Gi=35843,js=36196,No=5121,es=5123,Vs=5125,hi=5126,so=10242,Oi=10243,Zo=10497,qs=33071,Di=33648,ys=10240,wl=10241,Xs=9728,Vl=9729,rl=9984,Cs=9985,ql=9986,ju=9987,Vu=33170,yu=4352,jc=4353,ff=4354,_s=34046,Cu=3317,Vc=37440,Pl=37441,Tl=37443,Il=37444,_u=33984,Os=[rl,ql,Cs,ju],Al=[0,vi,Li,pi,Kn],Uo={};Uo[vi]=Uo[ui]=Uo[Ei]=1,Uo[Ri]=Uo[Li]=2,Uo[pi]=Uo[xo]=3,Uo[Kn]=Uo[So]=4;function bs(lt){return"[object "+lt+"]"}var qu=bs("HTMLCanvasElement"),Zl=bs("OffscreenCanvas"),Ju=bs("CanvasRenderingContext2D"),Zs=bs("ImageBitmap"),_f=bs("HTMLImageElement"),zo=bs("HTMLVideoElement"),Rf=Object.keys(Xe).concat([qu,Zl,Ju,Zs,_f,zo]),is=[];is[No]=1,is[hi]=4,is[bo]=2,is[es]=2,is[Vs]=4;var Bi=[];Bi[Ni]=2,Bi[ci]=2,Bi[bi]=2,Bi[Ri]=4,Bi[Ui]=.5,Bi[no]=.5,Bi[cs]=1,Bi[ks]=1,Bi[ms]=.5,Bi[Mo]=1,Bi[kn]=1,Bi[fi]=.5,Bi[Fs]=.25,Bi[Ss]=.5,Bi[Gi]=.25,Bi[js]=.5;function hc(lt){return Array.isArray(lt)&&(lt.length===0||typeof lt[0]=="number")}function xu(lt){if(!Array.isArray(lt))return!1;var ir=lt.length;return!(ir===0||!za(lt[0]))}function dl(lt){return Object.prototype.toString.call(lt)}function qc(lt){return dl(lt)===qu}function Qu(lt){return dl(lt)===Zl}function wc(lt){return dl(lt)===Ju}function Sl(lt){return dl(lt)===Zs}function hf(lt){return dl(lt)===_f}function Yc(lt){return dl(lt)===zo}function Tc(lt){if(!lt)return!1;var ir=dl(lt);return Rf.indexOf(ir)>=0?!0:hc(lt)||xu(lt)||wr(lt)}function ec(lt){return Xe[Object.prototype.toString.call(lt)]|0}function Gc(lt,ir){var ur=ir.length;switch(lt.type){case No:case es:case Vs:case hi:var fa=N.allocType(lt.type,ur);fa.set(ir),lt.data=fa;break;case bo:lt.data=Sa(ir);break}}function Hc(lt,ir){return N.allocType(lt.type===bo?hi:lt.type,ir)}function bu(lt,ir){lt.type===bo?(lt.data=Sa(ir),N.freeType(ir)):lt.data=ir}function $c(lt,ir,ur,fa,Va,Jr){for(var Kr=lt.width,cn=lt.height,ln=lt.channels,un=Kr*cn*ln,wn=Hc(lt,un),Jn=0,jn=0;jn=1;)cn+=Kr*ln*ln,ln/=2;return cn}else return Kr*ur*fa}function Lu(lt,ir,ur,fa,Va,Jr,Kr){var cn={"don't care":yu,"dont care":yu,nice:ff,fast:jc},ln={repeat:Zo,clamp:qs,mirror:Di},un={nearest:Xs,linear:Vl},wn=h({mipmap:ju,"nearest mipmap nearest":rl,"linear mipmap nearest":Cs,"nearest mipmap linear":ql,"linear mipmap linear":ju},un),Jn={none:0,browser:Il},jn={uint8:No,rgba4:ho,rgb565:gs,"rgb5 a1":Bo},xn={alpha:ui,luminance:vi,"luminance alpha":Li,rgb:pi,rgba:Kn,rgba4:Ni,"rgb5 a1":ci,rgb565:bi},Za={};ir.ext_srgb&&(xn.srgb=xo,xn.srgba=So),ir.oes_texture_float&&(jn.float32=jn.float=hi),ir.oes_texture_half_float&&(jn.float16=jn["half float"]=bo),ir.webgl_depth_texture&&(h(xn,{depth:Ei,"depth stencil":Ri}),h(jn,{uint16:es,uint32:Vs,"depth stencil":ro})),ir.webgl_compressed_texture_s3tc&&h(Za,{"rgb s3tc dxt1":Ui,"rgba s3tc dxt1":no,"rgba s3tc dxt3":cs,"rgba s3tc dxt5":ks}),ir.webgl_compressed_texture_atc&&h(Za,{"rgb atc":ms,"rgba atc explicit alpha":Mo,"rgba atc interpolated alpha":kn}),ir.webgl_compressed_texture_pvrtc&&h(Za,{"rgb pvrtc 4bppv1":fi,"rgb pvrtc 2bppv1":Fs,"rgba pvrtc 4bppv1":Ss,"rgba pvrtc 2bppv1":Gi}),ir.webgl_compressed_texture_etc1&&(Za["rgb etc1"]=js);var Ur=Array.prototype.slice.call(lt.getParameter(ra));Object.keys(Za).forEach(function(j){var ce=Za[j];Ur.indexOf(ce)>=0&&(xn[j]=ce)});var ya=Object.keys(xn);ur.textureFormats=ya;var Ra=[];Object.keys(xn).forEach(function(j){var ce=xn[j];Ra[ce]=j});var $a=[];Object.keys(jn).forEach(function(j){var ce=jn[j];$a[ce]=j});var Fa=[];Object.keys(un).forEach(function(j){var ce=un[j];Fa[ce]=j});var Bn=[];Object.keys(wn).forEach(function(j){var ce=wn[j];Bn[ce]=j});var pn=[];Object.keys(ln).forEach(function(j){var ce=ln[j];pn[ce]=j});var Xn=ya.reduce(function(j,ce){var $=xn[ce];return $===vi||$===ui||$===vi||$===Li||$===Ei||$===Ri||ir.ext_srgb&&($===xo||$===So)?j[$]=$:$===ci||ce.indexOf("rgba")>=0?j[$]=Kn:j[$]=pi,j},{});function Oa(){this.internalformat=Kn,this.format=Kn,this.type=No,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Il,this.width=0,this.height=0,this.channels=0}function Ea(j,ce){j.internalformat=ce.internalformat,j.format=ce.format,j.type=ce.type,j.compressed=ce.compressed,j.premultiplyAlpha=ce.premultiplyAlpha,j.flipY=ce.flipY,j.unpackAlignment=ce.unpackAlignment,j.colorSpace=ce.colorSpace,j.width=ce.width,j.height=ce.height,j.channels=ce.channels}function Dn(j,ce){if(!(typeof ce!="object"||!ce)){if("premultiplyAlpha"in ce&&(j.premultiplyAlpha=ce.premultiplyAlpha),"flipY"in ce&&(j.flipY=ce.flipY),"alignment"in ce&&(j.unpackAlignment=ce.alignment),"colorSpace"in ce&&(j.colorSpace=Jn[ce.colorSpace]),"type"in ce){var $=ce.type;j.type=jn[$]}var ge=j.width,Be=j.height,rt=j.channels,st=!1;"shape"in ce?(ge=ce.shape[0],Be=ce.shape[1],ce.shape.length===3&&(rt=ce.shape[2],st=!0)):("radius"in ce&&(ge=Be=ce.radius),"width"in ce&&(ge=ce.width),"height"in ce&&(Be=ce.height),"channels"in ce&&(rt=ce.channels,st=!0)),j.width=ge|0,j.height=Be|0,j.channels=rt|0;var Ge=!1;if("format"in ce){var Qe=ce.format,pt=j.internalformat=xn[Qe];j.format=Xn[pt],Qe in jn&&("type"in ce||(j.type=jn[Qe])),Qe in Za&&(j.compressed=!0),Ge=!0}!st&&Ge?j.channels=Uo[j.format]:st&&!Ge&&j.channels!==Al[j.format]&&(j.format=j.internalformat=Al[j.channels])}}function da(j){lt.pixelStorei(Vc,j.flipY),lt.pixelStorei(Pl,j.premultiplyAlpha),lt.pixelStorei(Tl,j.colorSpace),lt.pixelStorei(Cu,j.unpackAlignment)}function An(){Oa.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function fn(j,ce){var $=null;if(Tc(ce)?$=ce:ce&&(Dn(j,ce),"x"in ce&&(j.xOffset=ce.x|0),"y"in ce&&(j.yOffset=ce.y|0),Tc(ce.data)&&($=ce.data)),ce.copy){var ge=Va.viewportWidth,Be=Va.viewportHeight;j.width=j.width||ge-j.xOffset,j.height=j.height||Be-j.yOffset,j.needsCopy=!0}else if(!$)j.width=j.width||1,j.height=j.height||1,j.channels=j.channels||4;else if(dr($))j.channels=j.channels||4,j.data=$,!("type"in ce)&&j.type===No&&(j.type=ec($));else if(hc($))j.channels=j.channels||4,Gc(j,$),j.alignment=1,j.needsFree=!0;else if(wr($)){var rt=$.data;!Array.isArray(rt)&&j.type===No&&(j.type=ec(rt));var st=$.shape,Ge=$.stride,Qe,pt,Bt,It,Nt,Xt;st.length===3?(Bt=st[2],Xt=Ge[2]):(Bt=1,Xt=1),Qe=st[0],pt=st[1],It=Ge[0],Nt=Ge[1],j.alignment=1,j.width=Qe,j.height=pt,j.channels=Bt,j.format=j.internalformat=Al[Bt],j.needsFree=!0,$c(j,rt,It,Nt,Xt,$.offset)}else if(qc($)||Qu($)||wc($))qc($)||Qu($)?j.element=$:j.element=$.canvas,j.width=j.element.width,j.height=j.element.height,j.channels=4;else if(Sl($))j.element=$,j.width=$.width,j.height=$.height,j.channels=4;else if(hf($))j.element=$,j.width=$.naturalWidth,j.height=$.naturalHeight,j.channels=4;else if(Yc($))j.element=$,j.width=$.videoWidth,j.height=$.videoHeight,j.channels=4;else if(xu($)){var qt=j.width||$[0].length,Mt=j.height||$.length,Ft=j.channels;za($[0][0])?Ft=Ft||$[0][0].length:Ft=Ft||1;for(var Rt=Fe.shape($),_r=1,Ir=0;Ir>=Be,$.height>>=Be,fn($,ge[Be]),j.mipmask|=1<=0&&!("faces"in ce)&&(j.genMipmaps=!0)}if("mag"in ce){var ge=ce.mag;j.magFilter=un[ge]}var Be=j.wrapS,rt=j.wrapT;if("wrap"in ce){var st=ce.wrap;typeof st=="string"?Be=rt=ln[st]:Array.isArray(st)&&(Be=ln[st[0]],rt=ln[st[1]])}else{if("wrapS"in ce){var Ge=ce.wrapS;Be=ln[Ge]}if("wrapT"in ce){var Qe=ce.wrapT;rt=ln[Qe]}}if(j.wrapS=Be,j.wrapT=rt,"anisotropic"in ce&&(ce.anisotropic,j.anisotropic=ce.anisotropic),"mipmap"in ce){var pt=!1;switch(typeof ce.mipmap){case"string":j.mipmapHint=cn[ce.mipmap],j.genMipmaps=!0,pt=!0;break;case"boolean":pt=j.genMipmaps=ce.mipmap;break;case"object":j.genMipmaps=!1,pt=!0;break}pt&&!("min"in ce)&&(j.minFilter=rl)}}function El(j,ce){lt.texParameteri(ce,wl,j.minFilter),lt.texParameteri(ce,ys,j.magFilter),lt.texParameteri(ce,so,j.wrapS),lt.texParameteri(ce,Oi,j.wrapT),ir.ext_texture_filter_anisotropic&<.texParameteri(ce,_s,j.anisotropic),j.genMipmaps&&(lt.hint(Vu,j.mipmapHint),lt.generateMipmap(ce))}var zu=0,Us={},$s=ur.maxTextureUnits,mi=Array($s).map(function(){return null});function kl(j){Oa.call(this),this.mipmask=0,this.internalformat=Kn,this.id=zu++,this.refCount=1,this.target=j,this.texture=lt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Qs,Kr.profile&&(this.stats={size:0})}function Oo(j){lt.activeTexture(_u),lt.bindTexture(j.target,j.texture)}function As(){var j=mi[0];j?lt.bindTexture(j.target,j.texture):lt.bindTexture(Ta,null)}function Ol(j){var ce=j.texture,$=j.unit,ge=j.target;$>=0&&(lt.activeTexture(_u+$),lt.bindTexture(ge,null),mi[$]=null),lt.deleteTexture(ce),j.texture=null,j.params=null,j.pixels=null,j.refCount=0,delete Us[j.id],Jr.textureCount--}h(kl.prototype,{bind:function(){var j=this;j.bindCount+=1;var ce=j.unit;if(ce<0){for(var $=0;$<$s;++$){var ge=mi[$];if(ge){if(ge.bindCount>0)continue;ge.unit=-1}mi[$]=j,ce=$;break}Kr.profile&&Jr.maxTextureUnits>Nt)-Bt,Xt.height=Xt.height||($.height>>Nt)-It,Oo($),Pi(Xt,Ta,Bt,It,Nt),As(),bn(Xt),ge}function rt(st,Ge){var Qe=st|0,pt=Ge|0||Qe;if(Qe===$.width&&pt===$.height)return ge;ge.width=$.width=Qe,ge.height=$.height=pt,Oo($);for(var Bt=0;$.mipmask>>Bt;++Bt){var It=Qe>>Bt,Nt=pt>>Bt;if(!It||!Nt)break;lt.texImage2D(Ta,Bt,$.format,It,Nt,0,$.format,$.type,null)}return As(),Kr.profile&&($.stats.size=Gu($.internalformat,$.type,Qe,pt,!1,!1)),ge}return ge(j,ce),ge.subimage=Be,ge.resize=rt,ge._reglType="texture2d",ge._texture=$,Kr.profile&&(ge.stats=$.stats),ge.destroy=function(){$.decRef()},ge}function Ci(j,ce,$,ge,Be,rt){var st=new kl(Fn);Us[st.id]=st,Jr.cubeCount++;var Ge=new Array(6);function Qe(It,Nt,Xt,qt,Mt,Ft){var Rt,_r=st.texInfo;for(Qs.call(_r),Rt=0;Rt<6;++Rt)Ge[Rt]=il();if(typeof It=="number"||!It){var Ir=It|0||1;for(Rt=0;Rt<6;++Rt)Xi(Ge[Rt],Ir,Ir)}else if(typeof It=="object")if(Nt)eo(Ge[0],It),eo(Ge[1],Nt),eo(Ge[2],Xt),eo(Ge[3],qt),eo(Ge[4],Mt),eo(Ge[5],Ft);else if(pl(_r,It),Dn(st,It),"faces"in It){var Xr=It.faces;for(Rt=0;Rt<6;++Rt)Ea(Ge[Rt],st),eo(Ge[Rt],Xr[Rt])}else for(Rt=0;Rt<6;++Rt)eo(Ge[Rt],It);for(Ea(st,Ge[0]),_r.genMipmaps?st.mipmask=(Ge[0].width<<1)-1:st.mipmask=Ge[0].mipmask,st.internalformat=Ge[0].internalformat,Qe.width=Ge[0].width,Qe.height=Ge[0].height,Oo(st),Rt=0;Rt<6;++Rt)ts(Ge[Rt],mn+Rt);for(El(_r,Fn),As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,_r.genMipmaps,!0)),Qe.format=Ra[st.internalformat],Qe.type=$a[st.type],Qe.mag=Fa[_r.magFilter],Qe.min=Bn[_r.minFilter],Qe.wrapS=pn[_r.wrapS],Qe.wrapT=pn[_r.wrapT],Rt=0;Rt<6;++Rt)Xo(Ge[Rt]);return Qe}function pt(It,Nt,Xt,qt,Mt){var Ft=Xt|0,Rt=qt|0,_r=Mt|0,Ir=ei();return Ea(Ir,st),Ir.width=0,Ir.height=0,fn(Ir,Nt),Ir.width=Ir.width||(st.width>>_r)-Ft,Ir.height=Ir.height||(st.height>>_r)-Rt,Oo(st),Pi(Ir,mn+It,Ft,Rt,_r),As(),bn(Ir),Qe}function Bt(It){var Nt=It|0;if(Nt!==st.width){Qe.width=st.width=Nt,Qe.height=st.height=Nt,Oo(st);for(var Xt=0;Xt<6;++Xt)for(var qt=0;st.mipmask>>qt;++qt)lt.texImage2D(mn+Xt,qt,st.format,Nt>>qt,Nt>>qt,0,st.format,st.type,null);return As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(j,ce,$,ge,Be,rt),Qe.subimage=pt,Qe.resize=Bt,Qe._reglType="textureCube",Qe._texture=st,Kr.profile&&(Qe.stats=st.stats),Qe.destroy=function(){st.decRef()},Qe}function fo(){for(var j=0;j<$s;++j)lt.activeTexture(_u+j),lt.bindTexture(Ta,null),mi[j]=null;yt(Us).forEach(Ol),Jr.cubeCount=0,Jr.textureCount=0}Kr.profile&&(Jr.getTotalTextureSize=function(){var j=0;return Object.keys(Us).forEach(function(ce){j+=Us[ce].stats.size}),j});function mo(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null)}yt(Us).forEach(function($){$.texture=lt.createTexture(),lt.bindTexture($.target,$.texture);for(var ge=0;ge<32;++ge)if(($.mipmask&1<>ge,$.height>>ge,0,$.internalformat,$.type,null);else for(var Be=0;Be<6;++Be)lt.texImage2D(mn+Be,ge,$.internalformat,$.width>>ge,$.height>>ge,0,$.internalformat,$.type,null);El($.texInfo,$.target)})}function ye(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null),lt.activeTexture(_u+j),lt.bindTexture(Ta,null),lt.bindTexture(Fn,null)}}return{create2D:Bl,createCube:Ci,clear:fo,getTexture:function(j){return null},restore:mo,refresh:ye}}var Ml=36161,lc=32854,Wc=32855,Ms=36194,Lc=33189,xf=36168,Kc=34041,Ac=35907,Jc=34836,tu=34842,Qc=34843,el=[];el[lc]=2,el[Wc]=2,el[Ms]=2,el[Lc]=2,el[xf]=1,el[Kc]=4,el[Ac]=4,el[Jc]=16,el[tu]=8,el[Qc]=6;function ru(lt,ir,ur){return el[lt]*ir*ur}var tc=function(lt,ir,ur,fa,Va){var Jr={rgba4:lc,rgb565:Ms,"rgb5 a1":Wc,depth:Lc,stencil:xf,"depth stencil":Kc};ir.ext_srgb&&(Jr.srgba=Ac),ir.ext_color_buffer_half_float&&(Jr.rgba16f=tu,Jr.rgb16f=Qc),ir.webgl_color_buffer_float&&(Jr.rgba32f=Jc);var Kr=[];Object.keys(Jr).forEach(function(xn){var Za=Jr[xn];Kr[Za]=xn});var cn=0,ln={};function un(xn){this.id=cn++,this.refCount=1,this.renderbuffer=xn,this.format=lc,this.width=0,this.height=0,Va.profile&&(this.stats={size:0})}un.prototype.decRef=function(){--this.refCount<=0&&wn(this)};function wn(xn){var Za=xn.renderbuffer;lt.bindRenderbuffer(Ml,null),lt.deleteRenderbuffer(Za),xn.renderbuffer=null,xn.refCount=0,delete ln[xn.id],fa.renderbufferCount--}function Jn(xn,Za){var Ur=new un(lt.createRenderbuffer());ln[Ur.id]=Ur,fa.renderbufferCount++;function ya($a,Fa){var Bn=0,pn=0,Xn=lc;if(typeof $a=="object"&&$a){var Oa=$a;if("shape"in Oa){var Ea=Oa.shape;Bn=Ea[0]|0,pn=Ea[1]|0}else"radius"in Oa&&(Bn=pn=Oa.radius|0),"width"in Oa&&(Bn=Oa.width|0),"height"in Oa&&(pn=Oa.height|0);"format"in Oa&&(Xn=Jr[Oa.format])}else typeof $a=="number"?(Bn=$a|0,typeof Fa=="number"?pn=Fa|0:pn=Bn):$a||(Bn=pn=1);if(!(Bn===Ur.width&&pn===Ur.height&&Xn===Ur.format))return ya.width=Ur.width=Bn,ya.height=Ur.height=pn,Ur.format=Xn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Xn,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height)),ya.format=Kr[Ur.format],ya}function Ra($a,Fa){var Bn=$a|0,pn=Fa|0||Bn;return Bn===Ur.width&&pn===Ur.height||(ya.width=Ur.width=Bn,ya.height=Ur.height=pn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Ur.format,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height))),ya}return ya(xn,Za),ya.resize=Ra,ya._reglType="renderbuffer",ya._renderbuffer=Ur,Va.profile&&(ya.stats=Ur.stats),ya.destroy=function(){Ur.decRef()},ya}Va.profile&&(fa.getTotalRenderbufferSize=function(){var xn=0;return Object.keys(ln).forEach(function(Za){xn+=ln[Za].stats.size}),xn});function jn(){yt(ln).forEach(function(xn){xn.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(Ml,xn.renderbuffer),lt.renderbufferStorage(Ml,xn.format,xn.width,xn.height)}),lt.bindRenderbuffer(Ml,null)}return{create:Jn,clear:function(){yt(ln).forEach(wn)},restore:jn}},Bs=36160,Hu=36161,Gl=3553,au=34069,Ys=36064,vc=36096,Pu=36128,rc=33306,Pc=36053,bf=36193,Vf=5121,dc=5126,Ic=6407,fu=6408,Rc=[];Rc[fu]=4,Rc[Ic]=3;var Rl=[];Rl[Vf]=1,Rl[dc]=4,Rl[bf]=2;function pc(lt,ir,ur,fa,Va,Jr){var Kr={cur:null,next:null,dirty:!1,setFBO:null},cn=["rgba"],ln=["rgba4","rgb565","rgb5 a1"];ir.ext_srgb&&ln.push("srgba"),ir.ext_color_buffer_half_float&&ln.push("rgba16f","rgb16f"),ir.webgl_color_buffer_float&&ln.push("rgba32f"),ir.oes_texture_half_float,ir.oes_texture_float;function un(da,An,fn){this.target=da,this.texture=An,this.renderbuffer=fn;var Yn=0,Pi=0;An?(Yn=An.width,Pi=An.height):fn&&(Yn=fn.width,Pi=fn.height),this.width=Yn,this.height=Pi}function wn(da){da&&(da.texture&&da.texture._texture.decRef(),da.renderbuffer&&da.renderbuffer._renderbuffer.decRef())}function Jn(da,An,fn){if(da)if(da.texture){var Yn=da.texture._texture;Math.max(1,Yn.width),Math.max(1,Yn.height),Yn.refCount+=1}else{var Pi=da.renderbuffer._renderbuffer;Pi.refCount+=1}}function jn(da,An){An&&(An.texture?lt.framebufferTexture2D(Bs,da,An.target,An.texture._texture.texture,0):lt.framebufferRenderbuffer(Bs,da,Hu,An.renderbuffer._renderbuffer.renderbuffer))}function xn(da){var An=Gl,fn=null,Yn=null,Pi=da;typeof da=="object"&&(Pi=da.data,"target"in da&&(An=da.target|0));var Vn=Pi._reglType;return Vn==="texture2d"||Vn==="textureCube"?fn=Pi:Vn==="renderbuffer"&&(Yn=Pi,An=Hu),new un(An,fn,Yn)}function Za(da,An,fn,Yn,Pi){if(fn){var Vn=fa.create2D({width:da,height:An,format:Yn,type:Pi});return Vn._texture.refCount=0,new un(Gl,Vn,null)}else{var ei=Va.create({width:da,height:An,format:Yn});return ei._renderbuffer.refCount=0,new un(Hu,null,ei)}}function Ur(da){return da&&(da.texture||da.renderbuffer)}function ya(da,An,fn){da&&(da.texture?da.texture.resize(An,fn):da.renderbuffer&&da.renderbuffer.resize(An,fn),da.width=An,da.height=fn)}var Ra=0,$a={};function Fa(){this.id=Ra++,$a[this.id]=this,this.framebuffer=lt.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function Bn(da){da.colorAttachments.forEach(wn),wn(da.depthAttachment),wn(da.stencilAttachment),wn(da.depthStencilAttachment)}function pn(da){var An=da.framebuffer;lt.deleteFramebuffer(An),da.framebuffer=null,Jr.framebufferCount--,delete $a[da.id]}function Xn(da){var An;lt.bindFramebuffer(Bs,da.framebuffer);var fn=da.colorAttachments;for(An=0;An=0?il=!0:ln.indexOf(Xo)>=0&&(il=!1))),("depthTexture"in mi||"depthStencilTexture"in mi)&&($s=!!(mi.depthTexture||mi.depthStencilTexture)),"depth"in mi&&(typeof mi.depth=="boolean"?eo=mi.depth:(El=mi.depth,ts=!1)),"stencil"in mi&&(typeof mi.stencil=="boolean"?ts=mi.stencil:(zu=mi.stencil,eo=!1)),"depthStencil"in mi&&(typeof mi.depthStencil=="boolean"?eo=ts=mi.depthStencil:(Us=mi.depthStencil,eo=!1,ts=!1))}var Oo=null,As=null,Ol=null,Bl=null;if(Array.isArray(to))Oo=to.map(xn);else if(to)Oo=[xn(to)];else for(Oo=new Array(pl),bn=0;bn0&&(ei.depth=An[0].depth,ei.stencil=An[0].stencil,ei.depthStencil=An[0].depthStencil),An[Vn]?An[Vn](ei):An[Vn]=Oa(ei)}return h(fn,{width:bn,height:bn,color:Xo})}function Yn(Pi){var Vn,ei=Pi|0;if(ei===fn.width)return fn;var bn=fn.color;for(Vn=0;Vn=Mi.byteLength?Xi.subdata(Mi):(Xi.destroy(),Ea.buffers[Vn]=null)),Ea.buffers[Vn]||(Xi=Ea.buffers[Vn]=Va.create(ei,gc,!1,!0)),bn.buffer=Va.getBuffer(Xi),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1,Yn[Vn]=1}else Va.getBuffer(ei)?(bn.buffer=Va.getBuffer(ei),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1):Va.getBuffer(ei.buffer)?(bn.buffer=Va.getBuffer(ei.buffer),bn.size=(+ei.size||bn.buffer.dimension)|0,bn.normalized=!!ei.normalized||!1,"type"in ei?bn.type=ia[ei.type]:bn.type=bn.buffer.dtype,bn.offset=(ei.offset||0)|0,bn.stride=(ei.stride||0)|0,bn.divisor=(ei.divisor||0)|0,bn.state=1):"x"in ei&&(bn.x=+ei.x||0,bn.y=+ei.y||0,bn.z=+ei.z||0,bn.w=+ei.w||0,bn.state=2)}for(var eo=0;eo1)for(var da=0;daUr&&(Ur=ya.stats.uniformsCount)}),Ur},ur.getMaxAttributesCount=function(){var Ur=0;return wn.forEach(function(ya){ya.stats.attributesCount>Ur&&(Ur=ya.stats.attributesCount)}),Ur});function Za(){Va={},Jr={};for(var Ur=0;Ur>>4&15)+ir.charAt(fa&15);return ur}function Ru(lt){for(var ir="",ur=-1,fa,Va;++ur>>6&31,128|fa&63):fa<=65535?ir+=String.fromCharCode(224|fa>>>12&15,128|fa>>>6&63,128|fa&63):fa<=2097151&&(ir+=String.fromCharCode(240|fa>>>18&7,128|fa>>>12&63,128|fa>>>6&63,128|fa&63));return ir}function al(lt){for(var ir=Array(lt.length>>2),ur=0;ur>5]|=(lt.charCodeAt(ur/8)&255)<<24-ur%32;return ir}function Yl(lt){for(var ir="",ur=0;ur>5]>>>24-ur%32&255);return ir}function Ks(lt,ir){return lt>>>ir|lt<<32-ir}function nc(lt,ir){return lt>>>ir}function Du(lt,ir,ur){return lt&ir^~lt&ur}function Zc(lt,ir,ur){return lt&ir^lt&ur^ir&ur}function Qt(lt){return Ks(lt,2)^Ks(lt,13)^Ks(lt,22)}function yr(lt){return Ks(lt,6)^Ks(lt,11)^Ks(lt,25)}function $r(lt){return Ks(lt,7)^Ks(lt,18)^nc(lt,3)}function Vr(lt){return Ks(lt,17)^Ks(lt,19)^nc(lt,10)}var ma=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function tn(lt,ir){var ur=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),fa=new Array(64),Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur;for(lt[ir>>5]|=128<<24-ir%32,lt[(ir+64>>9<<4)+15]=ir,jn=0;jn>16)+(ir>>16)+(ur>>16);return fa<<16|ur&65535}function Ln(lt){return Array.prototype.slice.call(lt)}function On(lt){return Ln(lt).join("")}function Qn(lt){var ir=lt&<.cache,ur=0,fa=[],Va=[],Jr=[];function Kr(Za,Ur){var ya=Ur&&Ur.stable;if(!ya){for(var Ra=0;Ra0&&(Za.push($a,"="),Za.push.apply(Za,Ln(arguments)),Za.push(";")),$a}return h(Ur,{def:Ra,toString:function(){return On([ya.length>0?"var "+ya.join(",")+";":"",On(Za)])}})}function ln(){var Za=cn(),Ur=cn(),ya=Za.toString,Ra=Ur.toString;function $a(Fa,Bn){Ur(Fa,Bn,"=",Za.def(Fa,Bn),";")}return h(function(){Za.apply(Za,Ln(arguments))},{def:Za.def,entry:Za,exit:Ur,save:$a,set:function(Fa,Bn,pn){$a(Fa,Bn),Za(Fa,Bn,"=",pn,";")},toString:function(){return ya()+Ra()}})}function un(){var Za=On(arguments),Ur=ln(),ya=ln(),Ra=Ur.toString,$a=ya.toString;return h(Ur,{then:function(){return Ur.apply(Ur,Ln(arguments)),this},else:function(){return ya.apply(ya,Ln(arguments)),this},toString:function(){var Fa=$a();return Fa&&(Fa="else{"+Fa+"}"),On(["if(",Za,"){",Ra(),"}",Fa])}})}var wn=cn(),Jn={};function jn(Za,Ur){var ya=[];function Ra(){var Xn="a"+ya.length;return ya.push(Xn),Xn}Ur=Ur||0;for(var $a=0;$a":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Na={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={cw:dt,ccw:gt};function sn(lt){return Array.isArray(lt)||dr(lt)||wr(lt)}function Ba(lt){return lt.sort(function(ir,ur){return ir===iu?-1:ur===iu?1:ir=1,fa>=2,ir)}else if(ur===Wi){var Va=lt.data;return new Rn(Va.thisDep,Va.contextDep,Va.propDep,ir)}else{if(ur===ii)return new Rn(!1,!1,!1,ir);if(ur===Wn){for(var Jr=!1,Kr=!1,cn=!1,ln=0;ln=1&&(Kr=!0),wn>=2&&(cn=!0)}else un.type===Wi&&(Jr=Jr||un.data.thisDep,Kr=Kr||un.data.contextDep,cn=cn||un.data.propDep)}return new Rn(Jr,Kr,cn,ir)}else return new Rn(ur===Zi,ur===Fi,ur===Hi,ir)}}var Ti=new Rn(!1,!1,!1,function(){});function ki(lt,ir,ur,fa,Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur){var ya=un.Record,Ra={add:32774,subtract:32778,"reverse subtract":32779};ur.ext_blend_minmax&&(Ra.min=Tt,Ra.max=Vt);var $a=ur.angle_instanced_arrays,Fa=ur.webgl_draw_buffers,Bn=ur.oes_vertex_array_object,pn={dirty:!0,profile:Ur.profile},Xn={},Oa=[],Ea={},Dn={};function da(Ge){return Ge.replace(".","_")}function An(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Xn[Bt]=pn[Bt]=!!pt,Ea[Bt]=Qe}function fn(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Array.isArray(pt)?(pn[Bt]=pt.slice(),Xn[Bt]=pt.slice()):pn[Bt]=Xn[Bt]=pt,Dn[Bt]=Qe}function Yn(Ge){return!!isNaN(Ge)}An(ao,Cr),An(Fo,gr),fn(hs,"blendColor",[0,0,0,0]),fn(Is,"blendEquationSeparate",[Zr,Zr]),fn(vs,"blendFuncSeparate",[kr,Pr,kr,Pr]),An(Rs,ua,!0),fn(Yo,"depthFunc",la),fn(sl,"depthRange",[0,1]),fn(nl,"depthMask",!0),fn(Ls,Ls,[!0,!0,!0,!0]),An(wi,cr),fn(go,"cullFace",$e),fn(ws,ws,gt),fn(os,os,1),An(Hl,Ma),fn(Wl,"polygonOffset",[0,0]),An($l,en),An(uc,Pn),fn(Xl,"sampleCoverage",[1,!1]),An(Xu,Wr),fn(ll,"stencilMask",-1),fn(Zu,"stencilFunc",[jt,0,-1]),fn(Yi,"stencilOpSeparate",[Le,sr,sr,sr]),fn(io,"stencilOpSeparate",[$e,sr,sr,sr]),An(Yu,va),fn(du,"scissor",[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]),fn(iu,iu,[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]);var Pi={gl:lt,context:jn,strings:ir,next:Xn,current:pn,draw:Jn,elements:Jr,buffer:Va,shader:wn,attributes:un.state,vao:un,uniforms:ln,framebuffer:cn,extensions:ur,timer:xn,isBufferArgs:sn},Vn={primTypes:mt,compareFuncs:Pa,blendFuncs:pa,blendEquations:Ra,stencilOps:Na,glTypes:ia,orientationType:rn};Fa&&(Vn.backBuffer=[$e],Vn.drawBuffer=d(fa.maxDrawbuffers,function(Ge){return Ge===0?[0]:d(Ge,function(Qe){return nn+Qe})}));var ei=0;function bn(){var Ge=Qn({cache:Za}),Qe=Ge.link,pt=Ge.global;Ge.id=ei++,Ge.batchId="0";var Bt=Qe(Pi),It=Ge.shared={props:"a0"};Object.keys(Pi).forEach(function(Ft){It[Ft]=pt.def(Bt,".",Ft)});var Nt=Ge.next={},Xt=Ge.current={};Object.keys(Dn).forEach(function(Ft){Array.isArray(pn[Ft])&&(Nt[Ft]=pt.def(It.next,".",Ft),Xt[Ft]=pt.def(It.current,".",Ft))});var qt=Ge.constants={};Object.keys(Vn).forEach(function(Ft){qt[Ft]=pt.def(JSON.stringify(Vn[Ft]))}),Ge.invoke=function(Ft,Rt){switch(Rt.type){case ai:var _r=["this",It.context,It.props,Ge.batchId];return Ft.def(Qe(Rt.data),".call(",_r.slice(0,Math.max(Rt.data.length+1,4)),")");case Hi:return Ft.def(It.props,Rt.data);case Fi:return Ft.def(It.context,Rt.data);case Zi:return Ft.def("this",Rt.data);case Wi:return Rt.data.append(Ge,Ft),Rt.data.ref;case ii:return Rt.data.toString();case Wn:return Rt.data.map(function(Ir){return Ge.invoke(Ft,Ir)})}},Ge.attribCache={};var Mt={};return Ge.scopeAttrib=function(Ft){var Rt=ir.id(Ft);if(Rt in Mt)return Mt[Rt];var _r=un.scope[Rt];_r||(_r=un.scope[Rt]=new ya);var Ir=Mt[Rt]=Qe(_r);return Ir},Ge}function Mi(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt;if(ze in Qe){var It=!!Qe[ze];Bt=Zn(function(Xt,qt){return It}),Bt.enable=It}else if(ze in pt){var Nt=pt[ze];Bt=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}return Bt}function Xi(Ge,Qe){var pt=Ge.static,Bt=Ge.dynamic;if(L in pt){var It=pt[L];return It?(It=cn.getFramebuffer(It),Zn(function(Xt,qt){var Mt=Xt.link(It),Ft=Xt.shared;qt.set(Ft.framebuffer,".next",Mt);var Rt=Ft.context;return qt.set(Rt,"."+Br,Mt+".width"),qt.set(Rt,"."+ea,Mt+".height"),Mt})):Zn(function(Xt,qt){var Mt=Xt.shared;qt.set(Mt.framebuffer,".next","null");var Ft=Mt.context;return qt.set(Ft,"."+Br,Ft+"."+vt),qt.set(Ft,"."+ea,Ft+"."+St),"null"})}else if(L in Bt){var Nt=Bt[L];return ri(Nt,function(Xt,qt){var Mt=Xt.invoke(qt,Nt),Ft=Xt.shared,Rt=Ft.framebuffer,_r=qt.def(Rt,".getFramebuffer(",Mt,")");qt.set(Rt,".next",_r);var Ir=Ft.context;return qt.set(Ir,"."+Br,_r+"?"+_r+".width:"+Ir+"."+vt),qt.set(Ir,"."+ea,_r+"?"+_r+".height:"+Ir+"."+St),_r})}else return null}function eo(Ge,Qe,pt){var Bt=Ge.static,It=Ge.dynamic;function Nt(Mt){if(Mt in Bt){var Ft=Bt[Mt],Rt=!0,_r=Ft.x|0,Ir=Ft.y|0,Xr,Ua;return"width"in Ft?Xr=Ft.width|0:Rt=!1,"height"in Ft?Ua=Ft.height|0:Rt=!1,new Rn(!Rt&&Qe&&Qe.thisDep,!Rt&&Qe&&Qe.contextDep,!Rt&&Qe&&Qe.propDep,function(ja,Ha){var on=ja.shared.context,qa=Xr;"width"in Ft||(qa=Ha.def(on,".",Br,"-",_r));var hn=Ua;return"height"in Ft||(hn=Ha.def(on,".",ea,"-",Ir)),[_r,Ir,qa,hn]})}else if(Mt in It){var ka=It[Mt],xa=ri(ka,function(ja,Ha){var on=ja.invoke(Ha,ka),qa=ja.shared.context,hn=Ha.def(on,".x|0"),Sn=Ha.def(on,".y|0"),Gn=Ha.def('"width" in ',on,"?",on,".width|0:","(",qa,".",Br,"-",hn,")"),ti=Ha.def('"height" in ',on,"?",on,".height|0:","(",qa,".",ea,"-",Sn,")");return[hn,Sn,Gn,ti]});return Qe&&(xa.thisDep=xa.thisDep||Qe.thisDep,xa.contextDep=xa.contextDep||Qe.contextDep,xa.propDep=xa.propDep||Qe.propDep),xa}else return Qe?new Rn(Qe.thisDep,Qe.contextDep,Qe.propDep,function(ja,Ha){var on=ja.shared.context;return[0,0,Ha.def(on,".",Br),Ha.def(on,".",ea)]}):null}var Xt=Nt(iu);if(Xt){var qt=Xt;Xt=new Rn(Xt.thisDep,Xt.contextDep,Xt.propDep,function(Mt,Ft){var Rt=qt.append(Mt,Ft),_r=Mt.shared.context;return Ft.set(_r,"."+Ve,Rt[2]),Ft.set(_r,"."+Ye,Rt[3]),Rt})}return{viewport:Xt,scissor_box:Nt(du)}}function ts(Ge,Qe){var pt=Ge.static,Bt=typeof pt[Te]=="string"&&typeof pt[ne]=="string";if(Bt){if(Object.keys(Qe.dynamic).length>0)return null;var It=Qe.static,Nt=Object.keys(It);if(Nt.length>0&&typeof It[Nt[0]]=="number"){for(var Xt=[],qt=0;qt"+hn+"?"+Rt+".constant["+hn+"]:0;"}).join(""),"}}else{","if(",Xr,"(",Rt,".buffer)){",ja,"=",Ua,".createStream(",Lt,",",Rt,".buffer);","}else{",ja,"=",Ua,".getBuffer(",Rt,".buffer);","}",Ha,'="type" in ',Rt,"?",Ir.glTypes,"[",Rt,".type]:",ja,".dtype;",ka.normalized,"=!!",Rt,".normalized;");function on(qa){Ft(ka[qa],"=",Rt,".",qa,"|0;")}return on("size"),on("offset"),on("stride"),on("divisor"),Ft("}}"),Ft.exit("if(",ka.isStream,"){",Ua,".destroyStream(",ja,");","}"),ka}It[Nt]=ri(Xt,qt)}),It}function El(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt={};return Object.keys(Qe).forEach(function(It){var Nt=Qe[It];Bt[It]=Zn(function(Xt,qt){return typeof Nt=="number"||typeof Nt=="boolean"?""+Nt:Xt.link(Nt)})}),Object.keys(pt).forEach(function(It){var Nt=pt[It];Bt[It]=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}),Bt}function zu(Ge,Qe,pt,Bt,It){Ge.static,Ge.dynamic;var Nt=ts(Ge,Qe),Xt=Xi(Ge),qt=eo(Ge,Xt),Mt=il(Ge),Ft=Xo(Ge),Rt=to(Ge,It,Nt);function _r(ja){var Ha=qt[ja];Ha&&(Ft[ja]=Ha)}_r(iu),_r(da(du));var Ir=Object.keys(Ft).length>0,Xr={framebuffer:Xt,draw:Mt,shader:Rt,state:Ft,dirty:Ir,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Xr.profile=Mi(Ge),Xr.uniforms=Qs(pt),Xr.drawVAO=Xr.scopeVAO=Mt.vao,!Xr.drawVAO&&Rt.program&&!Nt&&ur.angle_instanced_arrays&&Mt.static.elements){var Ua=!0,ka=Rt.program.attributes.map(function(ja){var Ha=Qe.static[ja];return Ua=Ua&&!!Ha,Ha});if(Ua&&ka.length>0){var xa=un.getVAO(un.createVAO({attributes:ka,elements:Mt.static.elements}));Xr.drawVAO=new Rn(null,null,null,function(ja,Ha){return ja.link(xa)}),Xr.useVAO=!0}}return Nt?Xr.useVAO=!0:Xr.attributes=pl(Qe),Xr.context=El(Bt),Xr}function Us(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.context,Nt=Ge.scope();Object.keys(pt).forEach(function(Xt){Qe.save(It,"."+Xt);var qt=pt[Xt],Mt=qt.append(Ge,Qe);Array.isArray(Mt)?Nt(It,".",Xt,"=[",Mt.join(),"];"):Nt(It,".",Xt,"=",Mt,";")}),Qe(Nt)}function $s(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=It.gl,Xt=It.framebuffer,qt;Fa&&(qt=Qe.def(It.extensions,".webgl_draw_buffers"));var Mt=Ge.constants,Ft=Mt.drawBuffer,Rt=Mt.backBuffer,_r;pt?_r=pt.append(Ge,Qe):_r=Qe.def(Xt,".next"),Bt||Qe("if(",_r,"!==",Xt,".cur){"),Qe("if(",_r,"){",Nt,".bindFramebuffer(",ca,",",_r,".framebuffer);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Ft,"[",_r,".colorAttachments.length]);"),Qe("}else{",Nt,".bindFramebuffer(",ca,",null);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Rt,");"),Qe("}",Xt,".cur=",_r,";"),Bt||Qe("}")}function mi(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.gl,Nt=Ge.current,Xt=Ge.next,qt=Bt.current,Mt=Bt.next,Ft=Ge.cond(qt,".dirty");Oa.forEach(function(Rt){var _r=da(Rt);if(!(_r in pt.state)){var Ir,Xr;if(_r in Xt){Ir=Xt[_r],Xr=Nt[_r];var Ua=d(pn[_r].length,function(xa){return Ft.def(Ir,"[",xa,"]")});Ft(Ge.cond(Ua.map(function(xa,ja){return xa+"!=="+Xr+"["+ja+"]"}).join("||")).then(It,".",Dn[_r],"(",Ua,");",Ua.map(function(xa,ja){return Xr+"["+ja+"]="+xa}).join(";"),";"))}else{Ir=Ft.def(Mt,".",_r);var ka=Ge.cond(Ir,"!==",qt,".",_r);Ft(ka),_r in Ea?ka(Ge.cond(Ir).then(It,".enable(",Ea[_r],");").else(It,".disable(",Ea[_r],");"),qt,".",_r,"=",Ir,";"):ka(It,".",Dn[_r],"(",Ir,");",qt,".",_r,"=",Ir,";")}}}),Object.keys(pt.state).length===0&&Ft(qt,".dirty=false;"),Qe(Ft)}function kl(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=Ge.current,Xt=It.current,qt=It.gl,Mt;Ba(Object.keys(pt)).forEach(function(Ft){var Rt=pt[Ft];if(!(Bt&&!Bt(Rt))){var _r=Rt.append(Ge,Qe);if(Ea[Ft]){var Ir=Ea[Ft];ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(Ge.cond(Mt).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",Mt,";")):(Qe(Ge.cond(_r).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",_r,";"))}else if(za(_r)){var Xr=Nt[Ft];Qe(qt,".",Dn[Ft],"(",_r,");",_r.map(function(Ua,ka){return Xr+"["+ka+"]="+Ua}).join(";"),";")}else ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(qt,".",Dn[Ft],"(",Mt,");",Xt,".",Ft,"=",Mt,";")):Qe(qt,".",Dn[Ft],"(",_r,");",Xt,".",Ft,"=",_r,";")}})}function Oo(Ge,Qe){$a&&(Ge.instancing=Qe.def(Ge.shared.extensions,".angle_instanced_arrays"))}function As(Ge,Qe,pt,Bt,It){var Nt=Ge.shared,Xt=Ge.stats,qt=Nt.current,Mt=Nt.timer,Ft=pt.profile;function Rt(){return typeof performance>"u"?"Date.now()":"performance.now()"}var _r,Ir;function Xr(on){_r=Qe.def(),on(_r,"=",Rt(),";"),typeof It=="string"?on(Xt,".count+=",It,";"):on(Xt,".count++;"),xn&&(Bt?(Ir=Qe.def(),on(Ir,"=",Mt,".getNumPendingQueries();")):on(Mt,".beginQuery(",Xt,");"))}function Ua(on){on(Xt,".cpuTime+=",Rt(),"-",_r,";"),xn&&(Bt?on(Mt,".pushScopeStats(",Ir,",",Mt,".getNumPendingQueries(),",Xt,");"):on(Mt,".endQuery();"))}function ka(on){var qa=Qe.def(qt,".profile");Qe(qt,".profile=",on,";"),Qe.exit(qt,".profile=",qa,";")}var xa;if(Ft){if(ni(Ft)){Ft.enable?(Xr(Qe),Ua(Qe.exit),ka("true")):ka("false");return}xa=Ft.append(Ge,Qe),ka(xa)}else xa=Qe.def(qt,".profile");var ja=Ge.block();Xr(ja),Qe("if(",xa,"){",ja,"}");var Ha=Ge.block();Ua(Ha),Qe.exit("if(",xa,"){",Ha,"}")}function Ol(Ge,Qe,pt,Bt,It){var Nt=Ge.shared;function Xt(Mt){switch(Mt){case In:case Ki:case Ko:return 2;case oi:case Go:case Js:return 3;case Si:case Ho:case Hs:return 4;default:return 1}}function qt(Mt,Ft,Rt){var _r=Nt.gl,Ir=Qe.def(Mt,".location"),Xr=Qe.def(Nt.attributes,"[",Ir,"]"),Ua=Rt.state,ka=Rt.buffer,xa=[Rt.x,Rt.y,Rt.z,Rt.w],ja=["buffer","normalized","offset","stride"];function Ha(){Qe("if(!",Xr,".buffer){",_r,".enableVertexAttribArray(",Ir,");}");var qa=Rt.type,hn;if(Rt.size?hn=Qe.def(Rt.size,"||",Ft):hn=Ft,Qe("if(",Xr,".type!==",qa,"||",Xr,".size!==",hn,"||",ja.map(function(Gn){return Xr+"."+Gn+"!=="+Rt[Gn]}).join("||"),"){",_r,".bindBuffer(",Lt,",",ka,".buffer);",_r,".vertexAttribPointer(",[Ir,hn,qa,Rt.normalized,Rt.stride,Rt.offset],");",Xr,".type=",qa,";",Xr,".size=",hn,";",ja.map(function(Gn){return Xr+"."+Gn+"="+Rt[Gn]+";"}).join(""),"}"),$a){var Sn=Rt.divisor;Qe("if(",Xr,".divisor!==",Sn,"){",Ge.instancing,".vertexAttribDivisorANGLE(",[Ir,Sn],");",Xr,".divisor=",Sn,";}")}}function on(){Qe("if(",Xr,".buffer){",_r,".disableVertexAttribArray(",Ir,");",Xr,".buffer=null;","}if(",_n.map(function(qa,hn){return Xr+"."+qa+"!=="+xa[hn]}).join("||"),"){",_r,".vertexAttrib4f(",Ir,",",xa,");",_n.map(function(qa,hn){return Xr+"."+qa+"="+xa[hn]+";"}).join(""),"}")}Ua===En?Ha():Ua===dn?on():(Qe("if(",Ua,"===",En,"){"),Ha(),Qe("}else{"),on(),Qe("}"))}Bt.forEach(function(Mt){var Ft=Mt.name,Rt=pt.attributes[Ft],_r;if(Rt){if(!It(Rt))return;_r=Rt.append(Ge,Qe)}else{if(!It(Ti))return;var Ir=Ge.scopeAttrib(Ft);_r={},Object.keys(new ya).forEach(function(Xr){_r[Xr]=Qe.def(Ir,".",Xr)})}qt(Ge.link(Mt),Xt(Mt.info.type),_r)})}function Bl(Ge,Qe,pt,Bt,It,Nt){for(var Xt=Ge.shared,qt=Xt.gl,Mt,Ft=0;Ft1){for(var yo=[],vo=[],ss=0;ss>1)",ka],");")}function Sn(){pt(xa,".drawArraysInstancedANGLE(",[Ir,Xr,Ua,ka],");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}function qa(){function hn(){pt(Nt+".drawElements("+[Ir,Ua,ja,Xr+"<<(("+ja+"-"+qn+")>>1)"]+");")}function Sn(){pt(Nt+".drawArrays("+[Ir,Xr,Ua]+");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}$a&&(typeof ka!="number"||ka>=0)?typeof ka=="string"?(pt("if(",ka,">0){"),on(),pt("}else if(",ka,"<0){"),qa(),pt("}")):on():qa()}function fo(Ge,Qe,pt,Bt,It){var Nt=bn(),Xt=Nt.proc("body",It);return $a&&(Nt.instancing=Xt.def(Nt.shared.extensions,".angle_instanced_arrays")),Ge(Nt,Xt,pt,Bt),Nt.compile().body}function mo(Ge,Qe,pt,Bt){Oo(Ge,Qe),pt.useVAO?pt.drawVAO?Qe(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Qe),");"):Qe(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Qe(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Qe,pt,Bt.attributes,function(){return!0})),Bl(Ge,Qe,pt,Bt.uniforms,function(){return!0},!1),Ci(Ge,Qe,Qe,pt)}function ye(Ge,Qe){var pt=Ge.proc("draw",1);Oo(Ge,pt),Us(Ge,pt,Qe.context),$s(Ge,pt,Qe.framebuffer),mi(Ge,pt,Qe),kl(Ge,pt,Qe.state),As(Ge,pt,Qe,!1,!0);var Bt=Qe.shader.progVar.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Bt,".program);"),Qe.shader.program)mo(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var It=Ge.global.def("{}"),Nt=pt.def(Bt,".id"),Xt=pt.def(It,"[",Nt,"]");pt(Ge.cond(Xt).then(Xt,".call(this,a0);").else(Xt,"=",It,"[",Nt,"]=",Ge.link(function(qt){return fo(mo,Ge,Qe,qt,1)}),"(",Bt,");",Xt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function j(Ge,Qe,pt,Bt){Ge.batchId="a1",Oo(Ge,Qe);function It(){return!0}Ol(Ge,Qe,pt,Bt.attributes,It),Bl(Ge,Qe,pt,Bt.uniforms,It,!1),Ci(Ge,Qe,Qe,pt)}function ce(Ge,Qe,pt,Bt){Oo(Ge,Qe);var It=pt.contextDep,Nt=Qe.def(),Xt="a0",qt="a1",Mt=Qe.def();Ge.shared.props=Mt,Ge.batchId=Nt;var Ft=Ge.scope(),Rt=Ge.scope();Qe(Ft.entry,"for(",Nt,"=0;",Nt,"<",qt,";++",Nt,"){",Mt,"=",Xt,"[",Nt,"];",Rt,"}",Ft.exit);function _r(ja){return ja.contextDep&&It||ja.propDep}function Ir(ja){return!_r(ja)}if(pt.needsContext&&Us(Ge,Rt,pt.context),pt.needsFramebuffer&&$s(Ge,Rt,pt.framebuffer),kl(Ge,Rt,pt.state,_r),pt.profile&&_r(pt.profile)&&As(Ge,Rt,pt,!1,!0),Bt)pt.useVAO?pt.drawVAO?_r(pt.drawVAO)?Rt(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Rt),");"):Ft(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Ft),");"):Ft(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Ft(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Ft,pt,Bt.attributes,Ir),Ol(Ge,Rt,pt,Bt.attributes,_r)),Bl(Ge,Ft,pt,Bt.uniforms,Ir,!1),Bl(Ge,Rt,pt,Bt.uniforms,_r,!0),Ci(Ge,Ft,Rt,pt);else{var Xr=Ge.global.def("{}"),Ua=pt.shader.progVar.append(Ge,Rt),ka=Rt.def(Ua,".id"),xa=Rt.def(Xr,"[",ka,"]");Rt(Ge.shared.gl,".useProgram(",Ua,".program);","if(!",xa,"){",xa,"=",Xr,"[",ka,"]=",Ge.link(function(ja){return fo(j,Ge,pt,ja,2)}),"(",Ua,");}",xa,".call(this,a0[",Nt,"],",Nt,");")}}function $(Ge,Qe){var pt=Ge.proc("batch",2);Ge.batchId="0",Oo(Ge,pt);var Bt=!1,It=!0;Object.keys(Qe.context).forEach(function(Xr){Bt=Bt||Qe.context[Xr].propDep}),Bt||(Us(Ge,pt,Qe.context),It=!1);var Nt=Qe.framebuffer,Xt=!1;Nt?(Nt.propDep?Bt=Xt=!0:Nt.contextDep&&Bt&&(Xt=!0),Xt||$s(Ge,pt,Nt)):$s(Ge,pt,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Bt=!0);function qt(Xr){return Xr.contextDep&&Bt||Xr.propDep}mi(Ge,pt,Qe),kl(Ge,pt,Qe.state,function(Xr){return!qt(Xr)}),(!Qe.profile||!qt(Qe.profile))&&As(Ge,pt,Qe,!1,"a1"),Qe.contextDep=Bt,Qe.needsContext=It,Qe.needsFramebuffer=Xt;var Mt=Qe.shader.progVar;if(Mt.contextDep&&Bt||Mt.propDep)ce(Ge,pt,Qe,null);else{var Ft=Mt.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Ft,".program);"),Qe.shader.program)ce(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var Rt=Ge.global.def("{}"),_r=pt.def(Ft,".id"),Ir=pt.def(Rt,"[",_r,"]");pt(Ge.cond(Ir).then(Ir,".call(this,a0,a1);").else(Ir,"=",Rt,"[",_r,"]=",Ge.link(function(Xr){return fo(ce,Ge,Qe,Xr,2)}),"(",Ft,");",Ir,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function ge(Ge,Qe){var pt=Ge.proc("scope",3);Ge.batchId="a2";var Bt=Ge.shared,It=Bt.current;if(Us(Ge,pt,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ge,pt),Ba(Object.keys(Qe.state)).forEach(function(qt){var Mt=Qe.state[qt],Ft=Mt.append(Ge,pt);za(Ft)?Ft.forEach(function(Rt,_r){Yn(Rt)?pt.set(Ge.next[qt],"["+_r+"]",Rt):pt.set(Ge.next[qt],"["+_r+"]",Ge.link(Rt,{stable:!0}))}):ni(Mt)?pt.set(Bt.next,"."+qt,Ge.link(Ft,{stable:!0})):pt.set(Bt.next,"."+qt,Ft)}),As(Ge,pt,Qe,!0,!0),[Se,xt,ft,Dt,Re].forEach(function(qt){var Mt=Qe.draw[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.draw,"."+qt,Ft):pt.set(Bt.draw,"."+qt,Ge.link(Ft),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(qt){var Mt=Qe.uniforms[qt].append(Ge,pt);Array.isArray(Mt)&&(Mt="["+Mt.map(function(Ft){return Yn(Ft)?Ft:Ge.link(Ft,{stable:!0})})+"]"),pt.set(Bt.uniforms,"["+Ge.link(ir.id(qt),{stable:!0})+"]",Mt)}),Object.keys(Qe.attributes).forEach(function(qt){var Mt=Qe.attributes[qt].append(Ge,pt),Ft=Ge.scopeAttrib(qt);Object.keys(new ya).forEach(function(Rt){pt.set(Ft,"."+Rt,Mt[Rt])})}),Qe.scopeVAO){var Nt=Qe.scopeVAO.append(Ge,pt);Yn(Nt)?pt.set(Bt.vao,".targetVAO",Nt):pt.set(Bt.vao,".targetVAO",Ge.link(Nt,{stable:!0}))}function Xt(qt){var Mt=Qe.shader[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.shader,"."+qt,Ft):pt.set(Bt.shader,"."+qt,Ge.link(Ft,{stable:!0}))}}Xt(ne),Xt(Te),Object.keys(Qe.state).length>0&&(pt(It,".dirty=true;"),pt.exit(It,".dirty=true;")),pt("a1(",Ge.shared.context,",a0,",Ge.batchId,");")}function Be(Ge){if(!(typeof Ge!="object"||za(Ge))){for(var Qe=Object.keys(Ge),pt=0;pt=0;--Ci){var fo=Yn[Ci];fo&&fo(xn,null,0)}ur.flush(),un&&un.update()}function Xi(){!bn&&Yn.length>0&&(bn=f.next(Mi))}function eo(){bn&&(f.cancel(Mi),bn=null)}function ts(Ci){Ci.preventDefault(),eo(),Pi.forEach(function(fo){fo()})}function to(Ci){ur.getError(),Va.restore(),pn.restore(),Ra.restore(),Xn.restore(),Oa.restore(),Ea.restore(),Fa.restore(),un&&un.restore(),Dn.procs.refresh(),Xi(),Vn.forEach(function(fo){fo()})}fn&&(fn.addEventListener(Ds,ts,!1),fn.addEventListener(Ts,to,!1));function il(){Yn.length=0,eo(),fn&&(fn.removeEventListener(Ds,ts),fn.removeEventListener(Ts,to)),pn.clear(),Ea.clear(),Oa.clear(),Fa.clear(),Xn.clear(),$a.clear(),Ra.clear(),un&&un.clear(),ei.forEach(function(Ci){Ci()})}function Xo(Ci){function fo(It){var Nt=h({},It);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Xt(qt){if(qt in Nt){var Mt=Nt[qt];delete Nt[qt],Object.keys(Mt).forEach(function(Ft){Nt[qt+"."+Ft]=Mt[Ft]})}}return Xt("blend"),Xt("depth"),Xt("cull"),Xt("stencil"),Xt("polygonOffset"),Xt("scissor"),Xt("sample"),"vao"in It&&(Nt.vao=It.vao),Nt}function mo(It,Nt){var Xt={},qt={};return Object.keys(It).forEach(function(Mt){var Ft=It[Mt];if(c.isDynamic(Ft)){qt[Mt]=c.unbox(Ft,Mt);return}else if(Nt&&Array.isArray(Ft)){for(var Rt=0;Rt0)return st.call(this,pt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return st.call(this,It,It.length)}else return rt.call(this,It)}return h(Bt,{stats:ge,destroy:function(){Be.destroy()}})}var Qs=Ea.setFBO=Xo({framebuffer:c.define.call(null,Kl,"framebuffer")});function pl(Ci,fo){var mo=0;Dn.procs.poll();var ye=fo.color;ye&&(ur.clearColor(+ye[0]||0,+ye[1]||0,+ye[2]||0,+ye[3]||0),mo|=Ns),"depth"in fo&&(ur.clearDepth(+fo.depth),mo|=di),"stencil"in fo&&(ur.clearStencil(fo.stencil|0),mo|=Lo),ur.clear(mo)}function El(Ci){if("framebuffer"in Ci)if(Ci.framebuffer&&Ci.framebuffer_reglType==="framebufferCube")for(var fo=0;fo<6;++fo)Qs(h({framebuffer:Ci.framebuffer.faces[fo]},Ci),pl);else Qs(Ci,pl);else pl(null,Ci)}function zu(Ci){Yn.push(Ci);function fo(){var mo=pu(Yn,Ci);function ye(){var j=pu(Yn,ye);Yn[j]=Yn[Yn.length-1],Yn.length-=1,Yn.length<=0&&eo()}Yn[mo]=ye}return Xi(),{cancel:fo}}function Us(){var Ci=An.viewport,fo=An.scissor_box;Ci[0]=Ci[1]=fo[0]=fo[1]=0,xn.viewportWidth=xn.framebufferWidth=xn.drawingBufferWidth=Ci[2]=fo[2]=ur.drawingBufferWidth,xn.viewportHeight=xn.framebufferHeight=xn.drawingBufferHeight=Ci[3]=fo[3]=ur.drawingBufferHeight}function $s(){xn.tick+=1,xn.time=kl(),Us(),Dn.procs.poll()}function mi(){Xn.refresh(),Us(),Dn.procs.refresh(),un&&un.update()}function kl(){return(p()-wn)/1e3}mi();function Oo(Ci,fo){var mo;switch(Ci){case"frame":return zu(fo);case"lost":mo=Pi;break;case"restore":mo=Vn;break;case"destroy":mo=ei;break}return mo.push(fo),{cancel:function(){for(var ye=0;ye=0},read:da,destroy:il,_gl:ur,_refresh:mi,poll:function(){$s(),un&&un.update()},now:kl,stats:Kr,getCachedCode:As,preloadCachedCode:Ol});return ir.onDone(null,Bl),Bl}return ul})}}),ux=He({"src/lib/prepare_regl.js"(Y,H){var h=Z3(),x=GI();H.exports=function(E,e,t){var r=E._fullLayout,i=!0;return r._glcanvas.each(function(a){if(a.regl){a.regl.preloadCachedCode(t);return}if(!(a.pick&&!r._has("parcoords"))){try{a.regl=x({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:E._context.plotGlPixelRatio||window.devicePixelRatio,extensions:e||[],cachedCode:t||{}})}catch{i=!1}a.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(o){E&&E.emit&&E.emit("plotly_webglcontextlost",{event:o,layer:a.key})},!1)}}),i||h({container:r._glcontainer.node()}),i}}}),BT=He({"src/traces/scattergl/plot.js"(c,H){var h=gT(),x=kT(),A=EI(),E=qI(),e=Qr(),t=yv().selectMode,r=ux(),i=cu(),a=lw(),o=vT().styleTextSelection,n={};function s(f,p,v,T){var l=f._size,m=f.width*T,w=f.height*T,S=l.l*T,M=l.b*T,_=l.r*T,b=l.t*T,d=l.w*T,u=l.h*T;return[S+p.domain[0]*d,M+v.domain[0]*u,m-_-(1-p.domain[1])*d,w-b-(1-v.domain[1])*u]}var c=H.exports=function(p,v,T){if(T.length){var l=p._fullLayout,m=v._scene,w=v.xaxis,S=v.yaxis,M,_;if(m){var b=r(p,["ANGLE_instanced_arrays","OES_element_index_uint"],n);if(!b){m.init();return}var d=m.count,u=l._glcanvas.data()[0].regl;if(a(p,v,T),m.dirty){if((m.line2d||m.error2d)&&!(m.scatter2d||m.fill2d||m.glText)&&u.clear({color:!0,depth:!0}),m.error2d===!0&&(m.error2d=A(u)),m.line2d===!0&&(m.line2d=x(u)),m.scatter2d===!0&&(m.scatter2d=h(u)),m.fill2d===!0&&(m.fill2d=x(u)),m.glText===!0)for(m.glText=new Array(d),M=0;Mm.glText.length){var g=d-m.glText.length;for(M=0;Mae&&(isNaN(re[fe])||isNaN(re[fe+1]));)fe-=2;V.positions=re.slice(ae,fe+2)}return V}),m.line2d.update(m.lineOptions)),m.error2d){var I=(m.errorXOptions||[]).concat(m.errorYOptions||[]);m.error2d.update(I)}m.scatter2d&&m.scatter2d.update(m.markerOptions),m.fillOrder=e.repeat(null,d),m.fill2d&&(m.fillOptions=m.fillOptions.map(function(V,re){var ae=T[re];if(!(!V||!ae||!ae[0]||!ae[0].trace)){var fe=ae[0],xe=fe.trace,Ae=fe.t,Pe=m.lineOptions[re],Ce,je,at=[];xe._ownfill&&at.push(re),xe._nexttrace&&at.push(re+1),at.length&&(m.fillOrder[re]=at);var tt=[],Je=Pe&&Pe.positions||Ae.positions,Ze,Me;if(xe.fill==="tozeroy"){for(Ze=0;ZeZe&&isNaN(Je[Me+1]);)Me-=2;Je[Ze+1]!==0&&(tt=[Je[Ze],0]),tt=tt.concat(Je.slice(Ze,Me+2)),Je[Me+1]!==0&&(tt=tt.concat([Je[Me],0]))}else if(xe.fill==="tozerox"){for(Ze=0;ZeZe&&isNaN(Je[Me]);)Me-=2;Je[Ze]!==0&&(tt=[0,Je[Ze+1]]),tt=tt.concat(Je.slice(Ze,Me+2)),Je[Me]!==0&&(tt=tt.concat([0,Je[Me+1]]))}else if(xe.fill==="toself"||xe.fill==="tonext"){for(tt=[],Ce=0,V.splitNull=!0,je=0;je-1;for(M=0;Mw&&v||mo,y;for(g?y=v.sizeAvg||Math.max(v.size,3):y=A(c,p),S=0;S{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,E(()=>{this.dirty=!1})),this)},i.prototype.update=function(...s){if(!s.length)return;for(let p=0;py||!v.lower&&g{c[T+m]=p})}this.scatter.draw(...c)}return this},i.prototype.destroy=function(){return this.traces.forEach(s=>{s.buffer&&s.buffer.destroy&&s.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function a(s,c,f){let p=s.id!=null?s.id:s,v=c,T=f;return p<<16|(v&255)<<8|T&255}function o(s,c,f){let p,v,T,l,m=s[c],w=s[f];return m.length>2?(m[0],m[2],p=m[1],v=m[3]):m.length?(p=m[0],v=m[1]):(m.x,p=m.y,m.x+m.width,v=m.y+m.height),w.length>2?(T=w[0],l=w[2],w[1],w[3]):w.length?(T=w[0],l=w[1]):(T=w.x,w.y,l=w.x+w.width,w.y+w.height),[T,p,l,v]}function n(s){if(typeof s=="number")return[s,s,s,s];if(s.length===2)return[s[0],s[1],s[0],s[1]];{let c=t(s);return[c.x,c.y,c.x+c.width,c.y+c.height]}}}}),eR=He({"src/traces/splom/plot.js"(Y,H){var h=QI(),x=Qr(),A=yc(),E=yv().selectMode;H.exports=function(r,i,a){if(a.length)for(var o=0;o-1,B=E(v)||!!o.selectedpoints||F,O=!0;if(B){var P=o._length;if(o.selectedpoints){s.selectBatch=o.selectedpoints;var N=o.selectedpoints,U={};for(m=0;m=X[te][0]&&U<=X[te][1])return!0;return!1}function c(U){U.attr("x",-h.bar.captureWidth/2).attr("width",h.bar.captureWidth)}function f(U){U.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function p(U){if(!U.brush.filterSpecified)return"0,"+U.height;for(var X=v(U.brush.filter.getConsolidated(),U.height),te=[0],ue,ie,le,q=X.length?X[0][0]:null,J=0;JU[1]+te||X=.9*U[1]+.1*U[0]?"n":X<=.9*U[0]+.1*U[1]?"s":"ns"}function l(){x.select(document.body).style("cursor",null)}function m(U){U.attr("stroke-dasharray",p)}function w(U,X){var te=x.select(U).selectAll(".highlight, .highlight-shadow"),ue=X?te.transition().duration(h.bar.snapDuration).each("end",X):te;m(ue)}function S(U,X){var te=U.brush,ue=te.filterSpecified,ie=NaN,le={},q;if(ue){var J=U.height,ee=te.filter.getConsolidated(),Z=v(ee,J),se=NaN,Q=NaN,V=NaN;for(q=0;q<=Z.length;q++){var re=Z[q];if(re&&re[0]<=X&&X<=re[1]){se=q;break}else if(Q=q?q-1:NaN,re&&re[0]>X){V=q;break}}if(ie=se,isNaN(ie)&&(isNaN(Q)||isNaN(V)?ie=isNaN(Q)?V:Q:ie=X-Z[Q][1]=Pe[0]&&Ae<=Pe[1]){le.clickableOrdinalRange=Pe;break}}}return le}function M(U,X){x.event.sourceEvent.stopPropagation();var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=X.unitToPaddedPx.invert(te),ie=X.brush,le=S(X,te),q=le.interval,J=ie.svgBrush;if(J.wasDragged=!1,J.grabbingBar=le.region==="ns",J.grabbingBar){var ee=q.map(X.unitToPaddedPx);J.grabPoint=te-ee[0]-h.verticalPadding,J.barLength=ee[1]-ee[0]}J.clickableOrdinalRange=le.clickableOrdinalRange,J.stayingIntervals=X.multiselect&&ie.filterSpecified?ie.filter.getConsolidated():[],q&&(J.stayingIntervals=J.stayingIntervals.filter(function(Z){return Z[0]!==q[0]&&Z[1]!==q[1]})),J.startExtent=le.region?q[le.region==="s"?1:0]:ue,X.parent.inBrushDrag=!0,J.brushStartCallback()}function _(U,X){x.event.sourceEvent.stopPropagation();var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=X.brush.svgBrush;ue.wasDragged=!0,ue._dragging=!0,ue.grabbingBar?ue.newExtent=[te-ue.grabPoint,te+ue.barLength-ue.grabPoint].map(X.unitToPaddedPx.invert):ue.newExtent=[ue.startExtent,X.unitToPaddedPx.invert(te)].sort(e),X.brush.filterSpecified=!0,ue.extent=ue.stayingIntervals.concat([ue.newExtent]),ue.brushCallback(X),w(U.parentNode)}function b(U,X){var te=X.brush,ue=te.filter,ie=te.svgBrush;ie._dragging||(d(U,X),_(U,X),X.brush.svgBrush.wasDragged=!1),ie._dragging=!1;var le=x.event;le.sourceEvent.stopPropagation();var q=ie.grabbingBar;if(ie.grabbingBar=!1,ie.grabLocation=void 0,X.parent.inBrushDrag=!1,l(),!ie.wasDragged){ie.wasDragged=void 0,ie.clickableOrdinalRange?te.filterSpecified&&X.multiselect?ie.extent.push(ie.clickableOrdinalRange):(ie.extent=[ie.clickableOrdinalRange],te.filterSpecified=!0):q?(ie.extent=ie.stayingIntervals,ie.extent.length===0&&z(te)):z(te),ie.brushCallback(X),w(U.parentNode),ie.brushEndCallback(te.filterSpecified?ue.getConsolidated():[]);return}var J=function(){ue.set(ue.getConsolidated())};if(X.ordinal){var ee=X.unitTickvals;ee[ee.length-1]ie.newExtent[0];ie.extent=ie.stayingIntervals.concat(Z?[ie.newExtent]:[]),ie.extent.length||z(te),ie.brushCallback(X),Z?w(U.parentNode,J):(J(),w(U.parentNode))}else J();ie.brushEndCallback(te.filterSpecified?ue.getConsolidated():[])}function d(U,X){var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=S(X,te),ie="crosshair";ue.clickableOrdinalRange?ie="pointer":ue.region&&(ie=ue.region+"-resize"),x.select(document.body).style("cursor",ie)}function u(U){U.on("mousemove",function(X){x.event.preventDefault(),X.parent.inBrushDrag||d(this,X)}).on("mouseleave",function(X){X.parent.inBrushDrag||l()}).call(x.behavior.drag().on("dragstart",function(X){M(this,X)}).on("drag",function(X){_(this,X)}).on("dragend",function(X){b(this,X)}))}function g(U,X){return U[0]-X[0]}function y(U,X,te){var ue=te._context.staticPlot,ie=U.selectAll(".background").data(E);ie.enter().append("rect").classed("background",!0).call(c).call(f).style("pointer-events",ue?"none":"auto").attr("transform",t(0,h.verticalPadding)),ie.call(u).attr("height",function(J){return J.height-h.verticalPadding});var le=U.selectAll(".highlight-shadow").data(E);le.enter().append("line").classed("highlight-shadow",!0).attr("x",-h.bar.width/2).attr("stroke-width",h.bar.width+h.bar.strokeWidth).attr("stroke",X).attr("opacity",h.bar.strokeOpacity).attr("stroke-linecap","butt"),le.attr("y1",function(J){return J.height}).call(m);var q=U.selectAll(".highlight").data(E);q.enter().append("line").classed("highlight",!0).attr("x",-h.bar.width/2).attr("stroke-width",h.bar.width-h.bar.strokeWidth).attr("stroke",h.bar.fillColor).attr("opacity",h.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(J){return J.height}).call(m)}function R(U,X,te){var ue=U.selectAll("."+h.cn.axisBrush).data(E,A);ue.enter().append("g").classed(h.cn.axisBrush,!0),y(ue,X,te)}function I(U){return U.svgBrush.extent.map(function(X){return X.slice()})}function z(U){U.filterSpecified=!1,U.svgBrush.extent=[[-1/0,1/0]]}function F(U){return function(te){var ue=te.brush,ie=I(ue),le=ie.slice();ue.filter.set(le),U()}}function B(U){for(var X=U.slice(),te=[],ue,ie=X.shift();ie;){for(ue=ie.slice();(ie=X.shift())&&ie[0]<=ue[1];)ue[1]=Math.max(ue[1],ie[1]);te.push(ue)}return te.length===1&&te[0][0]>te[0][1]&&(te=[]),te}function O(){var U=[],X,te;return{set:function(ue){U=ue.map(function(ie){return ie.slice().sort(e)}).sort(g),U.length===1&&U[0][0]===-1/0&&U[0][1]===1/0&&(U=[[0,-1]]),X=B(U),te=U.reduce(function(ie,le){return[Math.min(ie[0],le[0]),Math.max(ie[1],le[1])]},[1/0,-1/0])},get:function(){return U.slice()},getConsolidated:function(){return X},getBounds:function(){return te}}}function P(U,X,te,ue,ie,le){var q=O();return q.set(te),{filter:q,filterSpecified:X,svgBrush:{extent:[],brushStartCallback:ue,brushCallback:F(ie),brushEndCallback:le}}}function N(U,X){if(Array.isArray(U[0])?(U=U.map(function(ue){return ue.sort(e)}),X.multiselect?U=B(U.sort(g)):U=[U[0]]):U=[U.sort(e)],X.tickvals){var te=X.tickvals.slice().sort(e);if(U=U.map(function(ue){var ie=[n(0,te,ue[0],[]),n(1,te,ue[1],[])];if(ie[1]>ie[0])return ie}).filter(function(ue){return ue}),!U.length)return}return U.length>1?U:U[0]}H.exports={makeBrush:P,ensureAxisBrush:R,cleanRanges:N}}}),lR=He({"src/traces/parcoords/defaults.js"(Y,H){var h=Qr(),x=kh().hasColorscale,A=If(),E=Ku().defaults,e=uh(),t=wo(),r=jT(),i=VT(),a=$m().maxDimensionCount,o=cx();function n(c,f,p,v,T){var l=T("line.color",p);if(x(c,"line")&&h.isArrayOrTypedArray(l)){if(l.length)return T("line.colorscale"),A(c,f,v,T,{prefix:"line.",cLetter:"c"}),l.length;f.line.color=p}return 1/0}function s(c,f,p,v){function T(M,_){return h.coerce(c,f,r.dimensions,M,_)}var l=T("values"),m=T("visible");if(l&&l.length||(m=f.visible=!1),m){T("label"),T("tickvals"),T("ticktext"),T("tickformat");var w=T("range");f._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:w},t.setConvert(f._ax,v.layout),T("multiselect");var S=T("constraintrange");S&&(f.constraintrange=i.cleanRanges(S,f))}}H.exports=function(f,p,v,T){function l(_,b){return h.coerce(f,p,r,_,b)}var m=f.dimensions;Array.isArray(m)&&m.length>a&&(h.log("parcoords traces support up to "+a+" dimensions at the moment"),m.splice(a));var w=e(f,p,{name:"dimensions",layout:T,handleItemDefaults:s}),S=n(f,p,v,T,l);E(p,T,l),(!Array.isArray(w)||!w.length)&&(p.visible=!1),o(p,w,"values",S);var M=h.extendFlat({},T.font,{size:Math.round(T.font.size/1.2)});h.coerceFont(l,"labelfont",M),h.coerceFont(l,"tickfont",M,{autoShadowDflt:!0}),h.coerceFont(l,"rangefont",M),l("labelangle"),l("labelside"),l("unselected.line.color"),l("unselected.line.opacity")}}}),uR=He({"src/traces/parcoords/calc.js"(Y,H){var h=Qr().isArrayOrTypedArray,x=Eu(),A=Hv().wrap;H.exports=function(t,r){var i,a;return x.hasColorscale(r,"line")&&h(r.line.color)?(i=r.line.color,a=x.extractOpts(r.line).colorscale,x.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=E(r._length),a=[[0,r.line.color],[1,r.line.color]]),A({lineColor:i,cscale:a})};function E(e){for(var t=new Array(e),r=0;r>>16,(Y&65280)>>>8,Y&255],alpha:1};if(typeof Y=="number")return{space:"rgb",values:[Y>>>16,(Y&65280)>>>8,Y&255],alpha:1};if(Y=String(Y).toLowerCase(),fx.default[Y])A=fx.default[Y].slice(),e="rgb";else if(Y==="transparent")E=0,e="rgb",A=[0,0,0];else if(Y[0]==="#"){var t=Y.slice(1),r=t.length,i=r<=4;E=1,i?(A=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],r===4&&(E=parseInt(t[3]+t[3],16)/255)):(A=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],r===8&&(E=parseInt(t[6]+t[7],16)/255)),A[0]||(A[0]=0),A[1]||(A[1]=0),A[2]||(A[2]=0),e="rgb"}else if(x=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(Y)){var a=x[1];e=a.replace(/a$/,"");var o=e==="cmyk"?4:e==="gray"?1:3;A=x[2].trim().split(/\s*[,\/]\s*|\s+/),e==="color"&&(e=A.shift()),A=A.map(function(n,s){if(n[n.length-1]==="%")return n=parseFloat(n)/100,s===3?n:e==="rgb"?n*255:e[0]==="h"||e[0]==="l"&&!s?n*100:e==="lab"?n*125:e==="lch"?s<2?n*150:n*360:e[0]==="o"&&!s?n:e==="oklab"?n*.4:e==="oklch"?s<2?n*.4:n*360:n;if(e[s]==="h"||s===2&&e[e.length-1]==="h"){if(hx[n]!==void 0)return hx[n];if(n.endsWith("deg"))return parseFloat(n);if(n.endsWith("turn"))return parseFloat(n)*360;if(n.endsWith("grad"))return parseFloat(n)*360/400;if(n.endsWith("rad"))return parseFloat(n)*180/Math.PI}return n==="none"?0:parseFloat(n)}),E=A.length>o?A.pop():1}else/[0-9](?:\s|\/|,)/.test(Y)&&(A=Y.match(/([0-9]+)/g).map(function(n){return parseFloat(n)}),e=((h=(H=Y.match(/([a-z])/ig))==null?void 0:H.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:e,values:A,alpha:E}}var fx,qT,hx,fR=bl({"node_modules/color-parse/index.js"(){fx=I0(H3()),qT=cR,hx={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}}),Km,GT=bl({"node_modules/color-space/rgb.js"(){Km={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}}}),Jm,hR=bl({"node_modules/color-space/hsl.js"(){GT(),Jm={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(Y){var H=Y[0]/360,h=Y[1]/100,x=Y[2]/100,A,E,e,t,r,i=0;if(h===0)return r=x*255,[r,r,r];for(E=x<.5?x*(1+h):x+h-x*h,A=2*x-E,t=[0,0,0];i<3;)e=H+1/3*-(i-1),e<0?e++:e>1&&e--,r=6*e<1?A+(E-A)*6*e:2*e<1?E:3*e<2?A+(E-A)*(2/3-e)*6:A,t[i++]=r*255;return t}},Km.hsl=function(Y){var H=Y[0]/255,h=Y[1]/255,x=Y[2]/255,A=Math.min(H,h,x),E=Math.max(H,h,x),e=E-A,t,r,i;return E===A?t=0:H===E?t=(h-x)/e:h===E?t=2+(x-H)/e:x===E&&(t=4+(H-h)/e),t=Math.min(t*60,360),t<0&&(t+=360),i=(A+E)/2,E===A?r=0:i<=.5?r=e/(E+A):r=e/(2-E-A),[t,r*100,i*100]}}}),HT={};L0(HT,{default:()=>vR});function vR(Y){Array.isArray(Y)&&Y.raw&&(Y=String.raw(...arguments)),Y instanceof Number&&(Y=+Y);var H,h=qT(Y);if(!h.space)return[];const x=h.space[0]==="h"?Jm.min:Km.min,A=h.space[0]==="h"?Jm.max:Km.max;return H=Array(3),H[0]=Math.min(Math.max(h.values[0],x[0]),A[0]),H[1]=Math.min(Math.max(h.values[1],x[1]),A[1]),H[2]=Math.min(Math.max(h.values[2],x[2]),A[2]),h.space[0]==="h"&&(H=Jm.rgb(H)),H.push(Math.min(Math.max(h.alpha,0),1)),H}var dR=bl({"node_modules/color-rgba/index.js"(){fR(),GT(),hR()}}),WT=He({"src/traces/parcoords/helpers.js"(Y){var H=Qr().isTypedArray;Y.convertTypedArray=function(h){return H(h)?Array.prototype.slice.call(h):h},Y.isOrdinal=function(h){return!!h.tickvals},Y.isVisible=function(h){return h.visible||!("visible"in h)}}}),pR=He({"src/traces/parcoords/lines.js"(Y,H){var h=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),x=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),A=$m().maxDimensionCount,E=Qr(),e=1e-6,t=2048,r=new Uint8Array(4),i=new Uint8Array(4),a={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(b){b.read({x:0,y:0,width:1,height:1,data:r})}function n(b,d,u,g,y){var R=b._gl;R.enable(R.SCISSOR_TEST),R.scissor(d,u,g,y),b.clear({color:[0,0,0,0],depth:1})}function s(b,d,u,g,y,R){var I=R.key;function z(F){var B=Math.min(g,y-F*g);F===0&&(window.cancelAnimationFrame(u.currentRafs[I]),delete u.currentRafs[I],n(b,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!u.clearOnly&&(R.count=2*B,R.offset=2*F*g,d(R),F*g+B>>8*d)%256/255}function v(b,d,u){for(var g=new Array(b*(A+4)),y=0,R=0;RCe&&(Ce=Q[fe].dim1.canvasX,Ae=fe);ae===0&&n(y,0,0,B.canvasWidth,B.canvasHeight);var je=q(u);for(fe=0;fefe._length&&(Ze=Ze.slice(0,fe._length));var Me=fe.tickvals,we;function he(Et,kt){return{val:Et,text:we[kt]}}function De(Et,kt){return Et.val-kt.val}if(A(Me)&&Me.length){x.isTypedArray(Me)&&(Me=Array.from(Me)),we=fe.ticktext,!A(we)||!we.length?we=Me.map(E(fe.tickformat)):we.length>Me.length?we=we.slice(0,Me.length):Me.length>we.length&&(Me=Me.slice(0,we.length));for(var et=1;et=kt||hr>=Ut)return;var Rr=Ke.lineLayer.readPixel(vr,Ut-1-hr),dr=Rr[3]!==0,wr=dr?Rr[2]+256*(Rr[1]+256*Rr[0]):null,yt={x:vr,y:hr,clientX:Et.clientX,clientY:Et.clientY,dataIndex:Ke.model.key,curveNumber:wr};wr!==Ae&&(dr?J.hover(yt):J.unhover&&J.unhover(yt),Ae=wr)}}),xe.style("opacity",function(Ke){return Ke.pick?0:1}),se.style("background","rgba(255, 255, 255, 0)");var Ce=se.selectAll("."+T.cn.parcoords).data(fe,c);Ce.exit().remove(),Ce.enter().append("g").classed(T.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),Ce.attr("transform",function(Ke){return i(Ke.model.translateX,Ke.model.translateY)});var je=Ce.selectAll("."+T.cn.parcoordsControlView).data(f,c);je.enter().append("g").classed(T.cn.parcoordsControlView,!0),je.attr("transform",function(Ke){return i(Ke.model.pad.l,Ke.model.pad.t)});var at=je.selectAll("."+T.cn.yAxis).data(function(Ke){return Ke.dimensions},c);at.enter().append("g").classed(T.cn.yAxis,!0),je.each(function(Ke){N(at,Ke,V)}),xe.each(function(Ke){if(Ke.viewModel){!Ke.lineLayer||J?Ke.lineLayer=m(this,Ke):Ke.lineLayer.update(Ke),(Ke.key||Ke.key===0)&&(Ke.viewModel[Ke.key]=Ke.lineLayer);var Et=!Ke.context||J;Ke.lineLayer.render(Ke.viewModel.panels,Et)}}),at.attr("transform",function(Ke){return i(Ke.xScale(Ke.xIndex),0)}),at.call(h.behavior.drag().origin(function(Ke){return Ke}).on("drag",function(Ke){var Et=Ke.parent;ae.linePickActive(!1),Ke.x=Math.max(-T.overdrag,Math.min(Ke.model.width+T.overdrag,h.event.x)),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,at.sort(function(kt,Ut){return kt.x-Ut.x}).each(function(kt,Ut){kt.xIndex=Ut,kt.x=Ke===kt?kt.x:kt.xScale(kt.xIndex),kt.canvasX=kt.x*kt.model.canvasPixelRatio}),N(at,Et,V),at.filter(function(kt){return Math.abs(Ke.xIndex-kt.xIndex)!==0}).attr("transform",function(kt){return i(kt.xScale(kt.xIndex),0)}),h.select(this).attr("transform",i(Ke.x,0)),at.each(function(kt,Ut,Yt){Yt===Ke.parent.key&&(Et.dimensions[Ut]=kt)}),Et.contextLayer&&Et.contextLayer.render(Et.panels,!1,!I(Et)),Et.focusLayer.render&&Et.focusLayer.render(Et.panels)}).on("dragend",function(Ke){var Et=Ke.parent;Ke.x=Ke.xScale(Ke.xIndex),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,N(at,Et,V),h.select(this).attr("transform",function(kt){return i(kt.x,0)}),Et.contextLayer&&Et.contextLayer.render(Et.panels,!1,!I(Et)),Et.focusLayer&&Et.focusLayer.render(Et.panels),Et.pickLayer&&Et.pickLayer.render(Et.panels,!0),ae.linePickActive(!0),J&&J.axesMoved&&J.axesMoved(Et.key,Et.dimensions.map(function(kt){return kt.crossfilterDimensionIndex}))})),at.exit().remove();var tt=at.selectAll("."+T.cn.axisOverlays).data(f,c);tt.enter().append("g").classed(T.cn.axisOverlays,!0),tt.selectAll("."+T.cn.axis).remove();var Je=tt.selectAll("."+T.cn.axis).data(f,c);Je.enter().append("g").classed(T.cn.axis,!0),Je.each(function(Ke){var Et=Ke.model.height/Ke.model.tickDistance,kt=Ke.domainScale,Ut=kt.domain();h.select(this).call(h.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(Et,Ke.tickFormat).tickValues(Ke.ordinal?Ut:null).tickFormat(function(Yt){return v.isOrdinal(Ke)?Yt:X(Ke.model.dimensions[Ke.visibleIndex],Yt)}).scale(kt)),o.font(Je.selectAll("text"),Ke.model.tickFont)}),Je.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Je.selectAll("text").style("cursor","default");var Ze=tt.selectAll("."+T.cn.axisHeading).data(f,c);Ze.enter().append("g").classed(T.cn.axisHeading,!0);var Me=Ze.selectAll("."+T.cn.axisTitle).data(f,c);Me.enter().append("text").classed(T.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",ee?"none":"auto"),Me.text(function(Ke){return Ke.label}).each(function(Ke){var Et=h.select(this);o.font(Et,Ke.model.labelFont),a.convertToTspans(Et,ie)}).attr("transform",function(Ke){var Et=P(Ke.model.labelAngle,Ke.model.labelSide),kt=T.axisTitleOffset;return(Et.dir>0?"":i(0,2*kt+Ke.model.height))+r(Et.degrees)+i(-kt*Et.dx,-kt*Et.dy)}).attr("text-anchor",function(Ke){var Et=P(Ke.model.labelAngle,Ke.model.labelSide),kt=Math.abs(Et.dx),Ut=Math.abs(Et.dy);return 2*kt>Ut?Et.dir*Et.dx<0?"start":"end":"middle"});var we=tt.selectAll("."+T.cn.axisExtent).data(f,c);we.enter().append("g").classed(T.cn.axisExtent,!0);var he=we.selectAll("."+T.cn.axisExtentTop).data(f,c);he.enter().append("g").classed(T.cn.axisExtentTop,!0),he.attr("transform",i(0,-T.axisExtentOffset));var De=he.selectAll("."+T.cn.axisExtentTopText).data(f,c);De.enter().append("text").classed(T.cn.axisExtentTopText,!0).call(B),De.text(function(Ke){return te(Ke,!0)}).each(function(Ke){o.font(h.select(this),Ke.model.rangeFont)});var et=we.selectAll("."+T.cn.axisExtentBottom).data(f,c);et.enter().append("g").classed(T.cn.axisExtentBottom,!0),et.attr("transform",function(Ke){return i(0,Ke.model.height+T.axisExtentOffset)});var nt=et.selectAll("."+T.cn.axisExtentBottomText).data(f,c);nt.enter().append("text").classed(T.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(B),nt.text(function(Ke){return te(Ke,!1)}).each(function(Ke){o.font(h.select(this),Ke.model.rangeFont)}),l.ensureAxisBrush(tt,re,ie)}}}),XT=He({"src/traces/parcoords/plot.js"(r,H){var h=gR(),x=ux(),A=WT().isVisible,E={};function e(i,a,o){var n=a.indexOf(o),s=i.indexOf(n);return s===-1&&(s+=a.length),s}function t(i,a){return function(n,s){return e(i,a,n)-e(i,a,s)}}var r=H.exports=function(a,o){var n=a._fullLayout,s=x(a,[],E);if(s){var c={},f={},p={},v={},T=n._size;o.forEach(function(M,_){var b=M[0].trace;p[_]=b.index;var d=v[_]=b.index;c[_]=a.data[d].dimensions,f[_]=a.data[d].dimensions.slice()});var l=function(M,_,b){var d=f[M][_],u=b.map(function(F){return F.slice()}),g="dimensions["+_+"].constraintrange",y=n._tracePreGUI[a._fullData[p[M]]._fullInput.uid];if(y[g]===void 0){var R=d.constraintrange;y[g]=R||null}var I=a._fullData[p[M]].dimensions[_];u.length?(u.length===1&&(u=u[0]),d.constraintrange=u,I.constraintrange=u.slice(),u=[u]):(delete d.constraintrange,delete I.constraintrange,u=null);var z={};z[g]=u,a.emit("plotly_restyle",[z,[v[M]]])},m=function(M){a.emit("plotly_hover",M)},w=function(M){a.emit("plotly_unhover",M)},S=function(M,_){var b=t(_,f[M].filter(A));c[M].sort(b),f[M].filter(function(d){return!A(d)}).sort(function(d){return f[M].indexOf(d)}).forEach(function(d){c[M].splice(c[M].indexOf(d),1),c[M].splice(f[M].indexOf(d),0,d)}),a.emit("plotly_restyle",[{dimensions:[c[M]]},[v[M]]])};h(a,o,{width:T.w,height:T.h,margin:{t:T.t,r:T.r,b:T.b,l:T.l}},{filterChanged:l,hover:m,unhover:w,axesMoved:S})}};r.reglPrecompiled=E}}),mR=He({"src/traces/parcoords/base_plot.js"(Y){var H=yi(),h=$f().getModuleCalcData,x=XT(),A=Xh();Y.name="parcoords",Y.plot=function(E){var e=h(E.calcdata,"parcoords")[0];e.length&&x(E,e)},Y.clean=function(E,e,t,r){var i=r._has&&r._has("parcoords"),a=e._has&&e._has("parcoords");i&&!a&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},Y.toSVG=function(E){var e=E._fullLayout._glimages,t=H.select(E).selectAll(".svg-container"),r=t.filter(function(a,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),n=e.append("svg:image");n.attr({xmlns:A.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}r.each(i),window.setTimeout(function(){H.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}}}),yR=He({"src/traces/parcoords/base_index.js"(Y,H){H.exports={attributes:jT(),supplyDefaults:lR(),calc:uR(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:mR(),categories:["gl","regl","noOpacity","noHover"],meta:{}}}}),_R=He({"src/traces/parcoords/index.js"(Y,H){var h=yR();h.plot=XT(),H.exports=h}}),xR=He({"lib/parcoords.js"(Y,H){H.exports=_R()}}),ZT=He({"src/traces/parcats/attributes.js"(Y,H){var h=Po().extendFlat,x=Ll(),A=Mu(),E=eu(),e=us().hovertemplateAttrs,t=Ku().attributes,r=h({editType:"calc"},E("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:e({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});H.exports={domain:t({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:h({},x.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:e({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:A({editType:"calc"}),tickfont:A({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:r,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}}}),bR=He({"src/traces/parcats/defaults.js"(Y,H){var h=Qr(),x=kh().hasColorscale,A=If(),E=Ku().defaults,e=uh(),t=ZT(),r=cx(),i=Lf().isTypedArraySpec;function a(n,s,c,f,p){p("line.shape"),p("line.hovertemplate");var v=p("line.color",f.colorway[0]);if(x(n,"line")&&h.isArrayOrTypedArray(v)){if(v.length)return p("line.colorscale"),A(n,s,f,p,{prefix:"line.",cLetter:"c"}),v.length;s.line.color=c}return 1/0}function o(n,s){function c(w,S){return h.coerce(n,s,t.dimensions,w,S)}var f=c("values"),p=c("visible");if(f&&f.length||(p=s.visible=!1),p){c("label"),c("displayindex",s._index);var v=n.categoryarray,T=h.isArrayOrTypedArray(v)&&v.length>0||i(v),l;T&&(l="array");var m=c("categoryorder",l);m==="array"?(c("categoryarray"),c("ticktext")):(delete n.categoryarray,delete n.ticktext),!T&&m==="array"&&(s.categoryorder="trace")}}H.exports=function(s,c,f,p){function v(w,S){return h.coerce(s,c,t,w,S)}var T=e(s,c,{name:"dimensions",handleItemDefaults:o}),l=a(s,c,f,p,v);E(c,p,v),(!Array.isArray(T)||!T.length)&&(c.visible=!1),r(c,T,"values",l),v("hoveron"),v("hovertemplate"),v("arrangement"),v("bundlecolors"),v("sortpaths"),v("counts");var m=p.font;h.coerceFont(v,"labelfont",m,{overrideDflt:{size:Math.round(m.size)}}),h.coerceFont(v,"tickfont",m,{autoShadowDflt:!0,overrideDflt:{size:Math.round(m.size/1.2)}})}}}),wR=He({"src/traces/parcats/calc.js"(Y,H){var h=Hv().wrap,x=kh().hasColorscale,A=Ch(),E=kb(),e=Io(),t=Qr(),r=Vi();H.exports=function(m,w){var S=t.filterVisible(w.dimensions);if(S.length===0)return[];var M=S.map(function(q){var J;if(q.categoryorder==="trace")J=null;else if(q.categoryorder==="array")J=q.categoryarray;else{J=E(q.values);for(var ee=!0,Z=0;Z=l.length||m[l[w]]!==void 0)return!1;m[l[w]]=!0}return!0}}}),TR=He({"src/traces/parcats/parcats.js"(Y,H){var h=yi(),x=(Hp(),Bv(rp)).interpolateNumber,A=m1(),E=xc(),e=Qr(),t=e.strTranslate,r=Io(),i=Uf(),a=jl();function o(Z,se,Q,V){var re=se._context.staticPlot,ae=Z.map(ie.bind(0,se,Q)),fe=V.selectAll("g.parcatslayer").data([null]);fe.enter().append("g").attr("class","parcatslayer").style("pointer-events",re?"none":"all");var xe=fe.selectAll("g.trace.parcats").data(ae,n),Ae=xe.enter().append("g").attr("class","trace parcats");xe.attr("transform",function(he){return t(he.x,he.y)}),Ae.append("g").attr("class","paths");var Pe=xe.select("g.paths"),Ce=Pe.selectAll("path.path").data(function(he){return he.paths},n);Ce.attr("fill",function(he){return he.model.color});var je=Ce.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(he){return he.model.color}).attr("fill-opacity",0);m(je),Ce.attr("d",function(he){return he.svgD}),je.empty()||Ce.sort(c),Ce.exit().remove(),Ce.on("mouseover",f).on("mouseout",p).on("click",l),Ae.append("g").attr("class","dimensions");var at=xe.select("g.dimensions"),tt=at.selectAll("g.dimension").data(function(he){return he.dimensions},n);tt.enter().append("g").attr("class","dimension"),tt.attr("transform",function(he){return t(he.x,0)}),tt.exit().remove();var Je=tt.selectAll("g.category").data(function(he){return he.categories},n),Ze=Je.enter().append("g").attr("class","category");Je.attr("transform",function(he){return t(0,he.y)}),Ze.append("rect").attr("class","catrect").attr("pointer-events","none"),Je.select("rect.catrect").attr("fill","none").attr("width",function(he){return he.width}).attr("height",function(he){return he.height}),M(Ze);var Me=Je.selectAll("rect.bandrect").data(function(he){return he.bands},n);Me.each(function(){e.raiseToTop(this)}),Me.attr("fill",function(he){return he.color});var we=Me.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(he){return he.color}).attr("fill-opacity",0);Me.attr("fill",function(he){return he.color}).attr("width",function(he){return he.width}).attr("height",function(he){return he.height}).attr("y",function(he){return he.y}).attr("cursor",function(he){return he.parcatsViewModel.arrangement==="fixed"?"default":he.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),b(we),Me.exit().remove(),Ze.append("text").attr("class","catlabel").attr("pointer-events","none"),Je.select("text.catlabel").attr("text-anchor",function(he){return s(he)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(he){return s(he)?he.width+5:-5}).attr("y",function(he){return he.height/2}).text(function(he){return he.model.categoryLabel}).each(function(he){r.font(h.select(this),he.parcatsViewModel.categorylabelfont),a.convertToTspans(h.select(this),se)}),Ze.append("text").attr("class","dimlabel"),Je.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(he){return he.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(he){return he.width/2}).attr("y",-5).text(function(he,De){return De===0?he.parcatsViewModel.model.dimensions[he.model.dimensionInd].dimensionLabel:null}).each(function(he){r.font(h.select(this),he.parcatsViewModel.labelfont)}),Je.selectAll("rect.bandrect").on("mouseover",B).on("mouseout",O),Je.exit().remove(),tt.call(h.behavior.drag().origin(function(he){return{x:he.x,y:0}}).on("dragstart",P).on("drag",N).on("dragend",U)),xe.each(function(he){he.traceSelection=h.select(this),he.pathSelection=h.select(this).selectAll("g.paths").selectAll("path.path"),he.dimensionSelection=h.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),xe.exit().remove()}H.exports=function(Z,se,Q,V){o(Q,Z,V,se)};function n(Z){return Z.key}function s(Z){var se=Z.parcatsViewModel.dimensions.length,Q=Z.parcatsViewModel.dimensions[se-1].model.dimensionInd;return Z.model.dimensionInd===Q}function c(Z,se){return Z.model.rawColor>se.model.rawColor?1:Z.model.rawColor"),Ke=h.mouse(re)[0];E.loneHover({trace:ae,x:Je-xe.left+Ae.left,y:Ze-xe.top+Ae.top,text:nt,color:Z.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Me,idealAlign:Ke1&&Pe.displayInd===Ae.dimensions.length-1?(at=fe.left,tt="left"):(at=fe.left+fe.width,tt="right");var Je=xe.model.count,Ze=xe.model.categoryLabel,Me=Je/xe.parcatsViewModel.model.count,we={countLabel:Je,categoryLabel:Ze,probabilityLabel:Me.toFixed(3)},he=[];xe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&he.push(["Count:",we.countLabel].join(" ")),xe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&he.push(["P("+we.categoryLabel+"):",we.probabilityLabel].join(" "));var De=he.join("
");return{trace:Ce,x:V*(at-se.left),y:re*(je-se.top),text:De,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:tt,hovertemplate:Ce.hovertemplate,hovertemplateLabels:we,eventData:[{data:Ce._input,fullData:Ce,count:Je,category:Ze,probability:Me}]}}function z(Z,se,Q){var V=[];return h.select(Q.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var re=this;V.push(I(Z,se,re))}),V}function F(Z,se,Q){Z._fullLayout._calcInverseTransform(Z);var V=Z._fullLayout._invScaleX,re=Z._fullLayout._invScaleY,ae=Q.getBoundingClientRect(),fe=h.select(Q).datum(),xe=fe.categoryViewModel,Ae=xe.parcatsViewModel,Pe=Ae.model.dimensions[xe.model.dimensionInd],Ce=Ae.trace,je=ae.y+ae.height/2,at,tt;Ae.dimensions.length>1&&Pe.displayInd===Ae.dimensions.length-1?(at=ae.left,tt="left"):(at=ae.left+ae.width,tt="right");var Je=xe.model.categoryLabel,Ze=fe.parcatsViewModel.model.count,Me=0;fe.categoryViewModel.bands.forEach(function(Yt){Yt.color===fe.color&&(Me+=Yt.count)});var we=xe.model.count,he=0;Ae.pathSelection.each(function(Yt){Yt.model.color===fe.color&&(he+=Yt.model.count)});var De=Me/Ze,et=Me/he,nt=Me/we,Ke={countLabel:Me,categoryLabel:Je,probabilityLabel:De.toFixed(3)},Et=[];xe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Et.push(["Count:",Ke.countLabel].join(" ")),xe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Et.push("P(color ∩ "+Je+"): "+Ke.probabilityLabel),Et.push("P("+Je+" | color): "+et.toFixed(3)),Et.push("P(color | "+Je+"): "+nt.toFixed(3)));var kt=Et.join("
"),Ut=i.mostReadable(fe.color,["black","white"]);return{trace:Ce,x:V*(at-se.left),y:re*(je-se.top),text:kt,color:fe.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:Ut,fontSize:10,idealAlign:tt,hovertemplate:Ce.hovertemplate,hovertemplateLabels:Ke,eventData:[{data:Ce._input,fullData:Ce,category:Je,count:Ze,probability:De,categorycount:we,colorcount:he,bandcolorcount:Me}]}}function B(Z){if(!Z.parcatsViewModel.dragDimension&&Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var se=h.mouse(this)[1];if(se<-1)return;var Q=Z.parcatsViewModel.graphDiv,V=Q._fullLayout,re=V._paperdiv.node().getBoundingClientRect(),ae=Z.parcatsViewModel.hoveron,fe=this;if(ae==="color"?(g(fe),R(fe,"plotly_hover",h.event)):(u(fe),y(fe,"plotly_hover",h.event)),Z.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var xe;ae==="category"?xe=I(Q,re,fe):ae==="color"?xe=F(Q,re,fe):ae==="dimension"&&(xe=z(Q,re,fe)),xe&&E.loneHover(xe,{container:V._hoverlayer.node(),outerContainer:V._paper.node(),gd:Q})}}}function O(Z){var se=Z.parcatsViewModel;if(!se.dragDimension&&(m(se.pathSelection),M(se.dimensionSelection.selectAll("g.category")),b(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),E.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(c),se.hoverinfoItems.indexOf("skip")===-1)){var Q=Z.parcatsViewModel.hoveron,V=this;Q==="color"?R(V,"plotly_unhover",h.event):y(V,"plotly_unhover",h.event)}}function P(Z){Z.parcatsViewModel.arrangement!=="fixed"&&(Z.dragDimensionDisplayInd=Z.model.displayInd,Z.initialDragDimensionDisplayInds=Z.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),Z.dragHasMoved=!1,Z.dragCategoryDisplayInd=null,h.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var Q=h.mouse(this)[0],V=h.mouse(this)[1];-2<=Q&&Q<=se.width+2&&-2<=V&&V<=se.height+2&&(Z.dragCategoryDisplayInd=se.model.displayInd,Z.initialDragCategoryDisplayInds=Z.model.categories.map(function(re){return re.displayInd}),se.model.dragY=se.y,e.raiseToTop(this.parentNode),h.select(this.parentNode).selectAll("rect.bandrect").each(function(re){re.yCe.y+Ce.height/2&&(ae.model.displayInd=Ce.model.displayInd,Ce.model.displayInd=xe),Z.dragCategoryDisplayInd=ae.model.displayInd}if(Z.dragCategoryDisplayInd===null||Z.parcatsViewModel.arrangement==="freeform"){re.model.dragX=h.event.x;var je=Z.parcatsViewModel.dimensions[Q],at=Z.parcatsViewModel.dimensions[V];je!==void 0&&re.model.dragXat.x&&(re.model.displayInd=at.model.displayInd,at.model.displayInd=Z.dragDimensionDisplayInd),Z.dragDimensionDisplayInd=re.model.displayInd}J(Z.parcatsViewModel),q(Z.parcatsViewModel),ue(Z.parcatsViewModel),te(Z.parcatsViewModel)}}function U(Z){if(Z.parcatsViewModel.arrangement!=="fixed"&&Z.dragDimensionDisplayInd!==null){h.select(this).selectAll("text").attr("font-weight","normal");var se={},Q=X(Z.parcatsViewModel),V=Z.parcatsViewModel.model.dimensions.map(function(at){return at.displayInd}),re=Z.initialDragDimensionDisplayInds.some(function(at,tt){return at!==V[tt]});re&&V.forEach(function(at,tt){var Je=Z.parcatsViewModel.model.dimensions[tt].containerInd;se["dimensions["+Je+"].displayindex"]=at});var ae=!1;if(Z.dragCategoryDisplayInd!==null){var fe=Z.model.categories.map(function(at){return at.displayInd});if(ae=Z.initialDragCategoryDisplayInds.some(function(at,tt){return at!==fe[tt]}),ae){var xe=Z.model.categories.slice().sort(function(at,tt){return at.displayInd-tt.displayInd}),Ae=xe.map(function(at){return at.categoryValue}),Pe=xe.map(function(at){return at.categoryLabel});se["dimensions["+Z.model.containerInd+"].categoryarray"]=[Ae],se["dimensions["+Z.model.containerInd+"].ticktext"]=[Pe],se["dimensions["+Z.model.containerInd+"].categoryorder"]="array"}}if(Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!Z.dragHasMoved&&Z.potentialClickBand&&(Z.parcatsViewModel.hoveron==="color"?R(Z.potentialClickBand,"plotly_click",h.event.sourceEvent):y(Z.potentialClickBand,"plotly_click",h.event.sourceEvent)),Z.model.dragX=null,Z.dragCategoryDisplayInd!==null){var Ce=Z.parcatsViewModel.dimensions[Z.dragDimensionDisplayInd].categories[Z.dragCategoryDisplayInd];Ce.model.dragY=null,Z.dragCategoryDisplayInd=null}Z.dragDimensionDisplayInd=null,Z.parcatsViewModel.dragDimension=null,Z.dragHasMoved=null,Z.potentialClickBand=null,J(Z.parcatsViewModel),q(Z.parcatsViewModel);var je=h.transition().duration(300).ease("cubic-in-out");je.each(function(){ue(Z.parcatsViewModel,!0),te(Z.parcatsViewModel,!0)}).each("end",function(){(re||ae)&&A.restyle(Z.parcatsViewModel.graphDiv,se,[Q])})}}function X(Z){for(var se,Q=Z.graphDiv._fullData,V=0;V=0;Ae--)Pe+="C"+fe[Ae]+","+(se[Ae+1]+V)+" "+ae[Ae]+","+(se[Ae]+V)+" "+(Z[Ae]+Q[Ae])+","+(se[Ae]+V),Pe+="l-"+Q[Ae]+",0 ";return Pe+="Z",Pe}function q(Z){var se=Z.dimensions,Q=Z.model,V=se.map(function(Rr){return Rr.categories.map(function(dr){return dr.y})}),re=Z.model.dimensions.map(function(Rr){return Rr.categories.map(function(dr){return dr.displayInd})}),ae=Z.model.dimensions.map(function(Rr){return Rr.displayInd}),fe=Z.dimensions.map(function(Rr){return Rr.model.dimensionInd}),xe=se.map(function(Rr){return Rr.x}),Ae=se.map(function(Rr){return Rr.width}),Pe=[];for(var Ce in Q.paths)Q.paths.hasOwnProperty(Ce)&&Pe.push(Q.paths[Ce]);function je(Rr){var dr=Rr.categoryInds.map(function(yt,Fe){return re[Fe][yt]}),wr=fe.map(function(yt){return dr[yt]});return wr}Pe.sort(function(Rr,dr){var wr=je(Rr),yt=je(dr);return Z.sortpaths==="backward"&&(wr.reverse(),yt.reverse()),wr.push(Rr.valueInds[0]),yt.push(dr.valueInds[0]),Z.bundlecolors&&(wr.unshift(Rr.rawColor),yt.unshift(dr.rawColor)),wryt?1:0});for(var at=new Array(Pe.length),tt=se[0].model.count,Je=se[0].categories.map(function(Rr){return Rr.height}).reduce(function(Rr,dr){return Rr+dr}),Ze=0;Ze0?we=Je*(Me.count/tt):we=0;for(var he=new Array(V.length),De=0;De1?fe=(Z.width-2*Q-V)/(re-1):fe=0,xe=Q,Ae=xe+fe*ae;var Pe=[],Ce=Z.model.maxCats,je=se.categories.length,at=8,tt=se.count,Je=Z.height-at*(Ce-1),Ze,Me,we,he,De,et=(Ce-je)*at/2,nt=se.categories.map(function(Ke){return{displayInd:Ke.displayInd,categoryInd:Ke.categoryInd}});for(nt.sort(function(Ke,Et){return Ke.displayInd-Et.displayInd}),De=0;De0?Ze=Me.count/tt*Je:Ze=0,we={key:Me.valueInds[0],model:Me,width:V,height:Ze,y:Me.dragY!==null?Me.dragY:et,bands:[],parcatsViewModel:Z},et=et+Ze+at,Pe.push(we);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:Ae,y:0,width:V,model:se,categories:Pe,parcatsViewModel:Z,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}}}),YT=He({"src/traces/parcats/plot.js"(Y,H){var h=TR();H.exports=function(A,E,e,t){var r=A._fullLayout,i=r._paper,a=r._size;h(A,i,E,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},e,t)}}}),AR=He({"src/traces/parcats/base_plot.js"(Y){var H=$f().getModuleCalcData,h=YT(),x="parcats";Y.name=x,Y.plot=function(A,E,e,t){var r=H(A.calcdata,x);if(r.length){var i=r[0];h(A,i,e,t)}},Y.clean=function(A,E,e,t){var r=t._has&&t._has("parcats"),i=E._has&&E._has("parcats");r&&!i&&t._paperdiv.selectAll(".parcats").remove()}}}),SR=He({"src/traces/parcats/index.js"(Y,H){H.exports={attributes:ZT(),supplyDefaults:bR(),calc:wR(),plot:YT(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:AR(),categories:["noOpacity"],meta:{}}}}),MR=He({"lib/parcats.js"(Y,H){H.exports=SR()}}),dd=He({"src/plots/mapbox/constants.js"(Y,H){var h=jd(),x="1.13.4",A='© OpenStreetMap contributors',E=['© Carto',A].join(" "),e=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),t=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),r={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:A,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:e,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:e,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:t,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},i=h(r);H.exports={requiredVersion:x,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:r,styleValuesNonMapbox:i,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+x+"."].join(` +`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",i.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}}),Qm=He({"src/plots/mapbox/layout_attributes.js"(Y,H){var h=Qr(),x=zi().defaultLine,A=Ku().attributes,E=Mu(),e=bc().textposition,t=Uu().overrideAll,r=cl().templatedArray,i=dd(),a=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});a.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=H.exports=t({_arrayAttrRegexps:[h.counterRegex("mapbox",".layers",!0)],domain:A({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:i.styleValuesMapbox.concat(i.styleValuesNonMapbox),dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:x},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:x}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:a,textposition:h.extendFlat({},e,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),vx=He({"src/traces/scattermapbox/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=Xp(),e=bc(),t=Qm(),r=Ll(),i=eu(),a=Po().extendFlat,o=Uu().overrideAll,n=Qm(),s=E.line,c=E.marker;H.exports=o({lon:E.lon,lat:E.lat,cluster:{enabled:{valType:"boolean"},maxzoom:a({},n.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:a({},c.opacity,{dflt:1})},mode:a({},e.mode,{dflt:"markers"}),text:a({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:a({},e.hovertext,{}),line:{color:s.color,width:s.width},connectgaps:e.connectgaps,marker:a({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode},i("marker")),fill:E.fill,fillcolor:A(),textfont:t.layers.symbol.textfont,textposition:t.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:a({},r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:h()},"calc","nested")}}),$T=He({"src/traces/scattermapbox/constants.js"(Y,H){var h=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];H.exports={isSupportedFont:function(x){return h.indexOf(x)!==-1}}}}),ER=He({"src/traces/scattermapbox/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Zh(),E=rv(),e=av(),t=bv(),r=vx(),i=$T().isSupportedFont;H.exports=function(n,s,c,f){function p(g,y){return h.coerce(n,s,r,g,y)}function v(g,y){return h.coerce2(n,s,r,g,y)}var T=a(n,s,p);if(!T){s.visible=!1;return}if(p("text"),p("texttemplate"),p("hovertext"),p("hovertemplate"),p("mode"),p("below"),x.hasMarkers(s)){A(n,s,c,f,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var l=s.marker;l.symbol!=="circle"&&(h.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),h.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}x.hasLines(s)&&(E(n,s,c,f,p,{noDash:!0}),p("connectgaps"));var m=v("cluster.maxzoom"),w=v("cluster.step"),S=v("cluster.color",s.marker&&s.marker.color||c),M=v("cluster.size"),_=v("cluster.opacity"),b=m!==!1||w!==!1||S!==!1||M!==!1||_!==!1,d=p("cluster.enabled",b);if(d||x.hasText(s)){var u=f.font.family;e(n,s,f,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(u)?u:"Open Sans Regular",weight:f.font.weight,style:f.font.style,size:f.font.size,color:f.font.color}})}p("fill"),s.fill!=="none"&&t(n,s,c,p),h.coerceSelectionMarkerOpacity(s,p)};function a(o,n,s){var c=s("lon")||[],f=s("lat")||[],p=Math.min(c.length,f.length);return n._length=p,p}}}),KT=He({"src/traces/scattermapbox/format_labels.js"(Y,H){var h=wo();H.exports=function(A,E,e){var t={},r=e[E.subplot]._subplot,i=r.mockAxis,a=A.lonlat;return t.lonLabel=h.tickText(i,i.c2l(a[0]),!0).text,t.latLabel=h.tickText(i,i.c2l(a[1]),!0).text,t}}}),JT=He({"src/plots/mapbox/convert_text_opts.js"(Y,H){var h=Qr();H.exports=function(A,E){var e=A.split(" "),t=e[0],r=e[1],i=h.isArrayOrTypedArray(E)?h.mean(E):E,a=.5+i/100,o=1.5+i/100,n=["",""],s=[0,0];switch(t){case"top":n[0]="top",s[1]=-o;break;case"bottom":n[0]="bottom",s[1]=o;break}switch(r){case"left":n[1]="right",s[0]=-a;break;case"right":n[1]="left",s[0]=a;break}var c;return n[0]&&n[1]?c=n.join("-"):n[0]?c=n[0]:n[1]?c=n[1]:c="center",{anchor:c,offset:s}}}}),kR=He({"src/traces/scattermapbox/convert.js"(Y,H){var h=Vi(),x=Qr(),A=qo().BADNUM,E=ip(),e=Eu(),t=Io(),r=U0(),i=cu(),a=$T().isSupportedFont,o=JT(),n=Dh().appendArrayPointValue,s=jl().NEWLINES,c=jl().BR_TAG_ALL;H.exports=function(_,b){var d=b[0].trace,u=d.visible===!0&&d._length!==0,g=d.fill!=="none",y=i.hasLines(d),R=i.hasMarkers(d),I=i.hasText(d),z=R&&d.marker.symbol==="circle",F=R&&d.marker.symbol!=="circle",B=d.cluster&&d.cluster.enabled,O=f("fill"),P=f("line"),N=f("circle"),U=f("symbol"),X={fill:O,line:P,circle:N,symbol:U};if(!u)return X;var te;if((g||y)&&(te=E.calcTraceToLineCoords(b)),g&&(O.geojson=E.makePolygon(te),O.layout.visibility="visible",x.extendFlat(O.paint,{"fill-color":d.fillcolor})),y&&(P.geojson=E.makeLine(te),P.layout.visibility="visible",x.extendFlat(P.paint,{"line-width":d.line.width,"line-color":d.line.color,"line-opacity":d.opacity})),z){var ue=p(b);N.geojson=ue.geojson,N.layout.visibility="visible",B&&(N.filter=["!",["has","point_count"]],X.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":w(d.cluster.color,d.cluster.step),"circle-radius":w(d.cluster.size,d.cluster.step),"circle-opacity":w(d.cluster.opacity,d.cluster.step)}},X.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":S(d),"text-size":12}}),x.extendFlat(N.paint,{"circle-color":ue.mcc,"circle-radius":ue.mrc,"circle-opacity":ue.mo})}if(z&&B&&(N.filter=["!",["has","point_count"]]),(F||I)&&(U.geojson=v(b,_),x.extendFlat(U.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),F&&(x.extendFlat(U.layout,{"icon-size":d.marker.size/10}),"angle"in d.marker&&d.marker.angle!=="auto"&&x.extendFlat(U.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),U.layout["icon-allow-overlap"]=d.marker.allowoverlap,x.extendFlat(U.paint,{"icon-opacity":d.opacity*d.marker.opacity,"icon-color":d.marker.color})),I)){var ie=(d.marker||{}).size,le=o(d.textposition,ie);x.extendFlat(U.layout,{"text-size":d.textfont.size,"text-anchor":le.anchor,"text-offset":le.offset,"text-font":S(d)}),x.extendFlat(U.paint,{"text-color":d.textfont.color,"text-opacity":d.opacity})}return X};function f(M){return{type:M,geojson:E.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function p(M){var _=M[0].trace,b=_.marker,d=_.selectedpoints,u=x.isArrayOrTypedArray(b.color),g=x.isArrayOrTypedArray(b.size),y=x.isArrayOrTypedArray(b.opacity),R;function I(ie){return _.opacity*ie}function z(ie){return ie/2}var F;u&&(e.hasColorscale(_,"marker")?F=e.makeColorScaleFuncFromTrace(b):F=x.identity);var B;g&&(B=r(_));var O;y&&(O=function(ie){var le=h(ie)?+x.constrain(ie,0,1):0;return I(le)});var P=[];for(R=0;R850?R+=" Black":u>750?R+=" Extra Bold":u>650?R+=" Bold":u>550?R+=" Semi Bold":u>450?R+=" Medium":u>350?R+=" Regular":u>250?R+=" Light":u>150?R+=" Extra Light":R+=" Thin"):g.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",u>750?R+=" Extrabold":u>650?R+=" Bold":u>550?R+=" Semibold":u>350?R+=" Regular":R+=" Light"):g.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",g[3]==="CJK"&&(R+=" CJK"),R+=u>500?" Bold":" Regular")),y&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),a(R)||(R=b);var I=R.split(", ");return I}}}),CR=He({"src/traces/scattermapbox/plot.js"(Y,H){var h=Qr(),x=kR(),A=dd().traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function e(r,i,a,o){this.type="scattermapbox",this.subplot=r,this.uid=i,this.clusterEnabled=a,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:A+i+"-fill",line:A+i+"-line",circle:A+i+"-circle",symbol:A+i+"-symbol",cluster:A+i+"-cluster",clusterCount:A+i+"-cluster-count"},this.below=null}var t=e.prototype;t.addSource=function(r,i,a){var o={type:"geojson",data:i.geojson};a&&a.enabled&&h.extendFlat(o,{cluster:!0,clusterMaxZoom:a.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[r]);n?n.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},t.setSourceData=function(r,i){this.subplot.map.getSource(this.sourceIds[r]).setData(i.geojson)},t.addLayer=function(r,i,a){var o={type:i.type,id:this.layerIds[r],source:this.sourceIds[r],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var n=this.layerIds[r],s,c=this.subplot.getMapLayers(),f=0;f=0;y--){var R=g[y];n.removeLayer(v.layerIds[R])}u||n.removeSource(v.sourceIds.circle)}function m(u){for(var g=E.nonCluster,y=0;y=0;y--){var R=g[y];n.removeLayer(v.layerIds[R]),u||n.removeSource(v.sourceIds[R])}}function S(u){p?l(u):w(u)}function M(u){f?T(u):m(u)}function _(){for(var u=f?E.cluster:E.nonCluster,g=0;g=0;o--){var n=a[o];i.removeLayer(this.layerIds[n]),i.removeSource(this.sourceIds[n])}},H.exports=function(i,a){var o=a[0].trace,n=o.cluster&&o.cluster.enabled,s=o.visible!==!0,c=new e(i,o.uid,n,s),f=x(i.gd,a),p=c.below=i.belowLookup["trace-"+o.uid],v,T,l;if(n)for(c.addSource("circle",f.circle,o.cluster),v=0;v=0?Math.floor((o+180)/360):Math.ceil((o-180)/360),M=S*360,_=o-M;function b(B){var O=B.lonlat;if(O[0]===e||m&&T.indexOf(B.i+1)===-1)return 1/0;var P=x.modHalf(O[0],360),N=O[1],U=v.project([P,N]),X=U.x-f.c2p([_,N]),te=U.y-p.c2p([P,n]),ue=Math.max(3,B.mrc||0);return Math.max(Math.sqrt(X*X+te*te)-ue,1-3/ue)}if(h.getClosest(s,b,a),a.index!==!1){var d=s[a.index],u=d.lonlat,g=[x.modHalf(u[0],360)+M,u[1]],y=f.c2p(g),R=p.c2p(g),I=d.mrc||1;a.x0=y-I,a.x1=y+I,a.y0=R-I,a.y1=R+I;var z={};z[c.subplot]={_subplot:v};var F=c._module.formatLabels(d,c,z);return a.lonLabel=F.lonLabel,a.latLabel=F.latLabel,a.color=A(c,d),a.extraText=i(c,d,s[0].t.labels),a.hovertemplate=c.hovertemplate,[a]}}function i(a,o,n){if(a.hovertemplate)return;var s=o.hi||a.hoverinfo,c=s.split("+"),f=c.indexOf("all")!==-1,p=c.indexOf("lon")!==-1,v=c.indexOf("lat")!==-1,T=o.lonlat,l=[];function m(w){return w+"°"}return f||p&&v?l.push("("+m(T[1])+", "+m(T[0])+")"):p?l.push(n.lon+m(T[0])):v&&l.push(n.lat+m(T[1])),(f||c.indexOf("text")!==-1)&&E(o,a,l),l.join("
")}H.exports={hoverPoints:r,getExtraText:i}}}),LR=He({"src/traces/scattermapbox/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x}}}),PR=He({"src/traces/scattermapbox/select.js"(Y,H){var h=Qr(),x=cu(),A=qo().BADNUM;H.exports=function(e,t){var r=e.cd,i=e.xaxis,a=e.yaxis,o=[],n=r[0].trace,s;if(!x.hasMarkers(n))return[];if(t===!1)for(s=0;s"u"&&(C=1e-6);var G,oe,_e,ke,Ue;for(_e=k,Ue=0;Ue<8;Ue++){if(ke=this.sampleCurveX(_e)-k,Math.abs(ke)oe)return oe;for(;Gke?G=_e:oe=_e,_e=(oe-G)*.5+G}return _e},a.prototype.solve=function(k,C){return this.sampleCurveY(this.solveCurveX(k,C))};var o=n;function n(k,C){this.x=k,this.y=C}n.prototype={clone:function(){return new n(this.x,this.y)},add:function(k){return this.clone()._add(k)},sub:function(k){return this.clone()._sub(k)},multByPoint:function(k){return this.clone()._multByPoint(k)},divByPoint:function(k){return this.clone()._divByPoint(k)},mult:function(k){return this.clone()._mult(k)},div:function(k){return this.clone()._div(k)},rotate:function(k){return this.clone()._rotate(k)},rotateAround:function(k,C){return this.clone()._rotateAround(k,C)},matMult:function(k){return this.clone()._matMult(k)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(k){return this.x===k.x&&this.y===k.y},dist:function(k){return Math.sqrt(this.distSqr(k))},distSqr:function(k){var C=k.x-this.x,G=k.y-this.y;return C*C+G*G},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(k){return Math.atan2(this.y-k.y,this.x-k.x)},angleWith:function(k){return this.angleWithSep(k.x,k.y)},angleWithSep:function(k,C){return Math.atan2(this.x*C-this.y*k,this.x*k+this.y*C)},_matMult:function(k){var C=k[0]*this.x+k[1]*this.y,G=k[2]*this.x+k[3]*this.y;return this.x=C,this.y=G,this},_add:function(k){return this.x+=k.x,this.y+=k.y,this},_sub:function(k){return this.x-=k.x,this.y-=k.y,this},_mult:function(k){return this.x*=k,this.y*=k,this},_div:function(k){return this.x/=k,this.y/=k,this},_multByPoint:function(k){return this.x*=k.x,this.y*=k.y,this},_divByPoint:function(k){return this.x/=k.x,this.y/=k.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var k=this.y;return this.y=this.x,this.x=-k,this},_rotate:function(k){var C=Math.cos(k),G=Math.sin(k),oe=C*this.x-G*this.y,_e=G*this.x+C*this.y;return this.x=oe,this.y=_e,this},_rotateAround:function(k,C){var G=Math.cos(k),oe=Math.sin(k),_e=C.x+G*(this.x-C.x)-oe*(this.y-C.y),ke=C.y+oe*(this.x-C.x)+G*(this.y-C.y);return this.x=_e,this.y=ke,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(k){return k instanceof n?k:Array.isArray(k)?new n(k[0],k[1]):k};var s=typeof self<"u"?self:{};function c(k,C){if(Array.isArray(k)){if(!Array.isArray(C)||k.length!==C.length)return!1;for(var G=0;G=1)return 1;var C=k*k,G=C*k;return 4*(k<.5?G:3*(k-C)+G-.75)}function v(k,C,G,oe){var _e=new i(k,C,G,oe);return function(ke){return _e.solve(ke)}}var T=v(.25,.1,.25,1);function l(k,C,G){return Math.min(G,Math.max(C,k))}function m(k,C,G){var oe=G-C,_e=((k-C)%oe+oe)%oe+C;return _e===C?G:_e}function w(k,C,G){if(!k.length)return G(null,[]);var oe=k.length,_e=new Array(k.length),ke=null;k.forEach(function(Ue,ct){C(Ue,function(Pt,Gt){Pt&&(ke=Pt),_e[ct]=Gt,--oe===0&&G(ke,_e)})})}function S(k){var C=[];for(var G in k)C.push(k[G]);return C}function M(k,C){var G=[];for(var oe in k)oe in C||G.push(oe);return G}function _(k){for(var C=[],G=arguments.length-1;G-- >0;)C[G]=arguments[G+1];for(var oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];for(var Ue in ke)k[Ue]=ke[Ue]}return k}function b(k,C){for(var G={},oe=0;oe>C/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,k)}return k()}function y(k){return k<=1?1:Math.pow(2,Math.ceil(Math.log(k)/Math.LN2))}function R(k){return k?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(k):!1}function I(k,C){k.forEach(function(G){C[G]&&(C[G]=C[G].bind(C))})}function z(k,C){return k.indexOf(C,k.length-C.length)!==-1}function F(k,C,G){var oe={};for(var _e in k)oe[_e]=C.call(G||this,k[_e],_e,k);return oe}function B(k,C,G){var oe={};for(var _e in k)C.call(G||this,k[_e],_e,k)&&(oe[_e]=k[_e]);return oe}function O(k){return Array.isArray(k)?k.map(O):typeof k=="object"&&k?F(k,O):k}function P(k,C){for(var G=0;G=0)return!0;return!1}var N={};function U(k){N[k]||(typeof console<"u"&&console.warn(k),N[k]=!0)}function X(k,C,G){return(G.y-k.y)*(C.x-k.x)>(C.y-k.y)*(G.x-k.x)}function te(k){for(var C=0,G=0,oe=k.length,_e=oe-1,ke=void 0,Ue=void 0;G@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,G={};if(k.replace(C,function(_e,ke,Ue,ct){var Pt=Ue||ct;return G[ke]=Pt?Pt.toLowerCase():!0,""}),G["max-age"]){var oe=parseInt(G["max-age"],10);isNaN(oe)?delete G["max-age"]:G["max-age"]=oe}return G}var q=null;function J(k){if(q==null){var C=k.navigator?k.navigator.userAgent:null;q=!!k.safari||!!(C&&(/\b(iPad|iPhone|iPod)\b/.test(C)||C.match("Safari")&&!C.match("Chrome")))}return q}function ee(k){try{var C=s[k];return C.setItem("_mapbox_test_",1),C.removeItem("_mapbox_test_"),!0}catch{return!1}}function Z(k){return s.btoa(encodeURIComponent(k).replace(/%([0-9A-F]{2})/g,function(C,G){return String.fromCharCode(+("0x"+G))}))}function se(k){return decodeURIComponent(s.atob(k).split("").map(function(C){return"%"+("00"+C.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Q=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),V=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,re=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,ae,fe,xe={now:Q,frame:function(C){var G=V(C);return{cancel:function(){return re(G)}}},getImageData:function(C,G){G===void 0&&(G=0);var oe=s.document.createElement("canvas"),_e=oe.getContext("2d");if(!_e)throw new Error("failed to create canvas 2d context");return oe.width=C.width,oe.height=C.height,_e.drawImage(C,0,0,C.width,C.height),_e.getImageData(-G,-G,C.width+2*G,C.height+2*G)},resolveURL:function(C){return ae||(ae=s.document.createElement("a")),ae.href=C,ae.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return s.matchMedia?(fe==null&&(fe=s.matchMedia("(prefers-reduced-motion: reduce)")),fe.matches):!1}},Ae={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Pe={supported:!1,testSupport:Je},Ce,je=!1,at,tt=!1;s.document&&(at=s.document.createElement("img"),at.onload=function(){Ce&&Ze(Ce),Ce=null,tt=!0},at.onerror=function(){je=!0,Ce=null},at.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Je(k){je||!at||(tt?Ze(k):Ce=k)}function Ze(k){var C=k.createTexture();k.bindTexture(k.TEXTURE_2D,C);try{if(k.texImage2D(k.TEXTURE_2D,0,k.RGBA,k.RGBA,k.UNSIGNED_BYTE,at),k.isContextLost())return;Pe.supported=!0}catch{}k.deleteTexture(C),je=!0}var Me="01";function we(){for(var k="1",C="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",G="",oe=0;oe<10;oe++)G+=C[Math.floor(Math.random()*62)];var _e=720*60*1e3,ke=[k,Me,G].join(""),Ue=Date.now()+_e;return{token:ke,tokenExpiresAt:Ue}}var he=function(C,G){this._transformRequestFn=C,this._customAccessToken=G,this._createSkuToken()};he.prototype._createSkuToken=function(){var C=we();this._skuToken=C.token,this._skuTokenExpiresAt=C.tokenExpiresAt},he.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},he.prototype.transformRequest=function(C,G){return this._transformRequestFn?this._transformRequestFn(C,G)||{url:C}:{url:C}},he.prototype.normalizeStyleURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/styles/v1"+oe.path,this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeGlyphsURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/fonts/v1"+oe.path,this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeSourceURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/v4/"+oe.authority+".json",oe.params.push("secure"),this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeSpriteURL=function(C,G,oe,_e){var ke=Ut(C);return De(C)?(ke.path="/styles/v1"+ke.path+"/sprite"+G+oe,this._makeAPIURL(ke,this._customAccessToken||_e)):(ke.path+=""+G+oe,Yt(ke))},he.prototype.normalizeTileURL=function(C,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),C&&!De(C))return C;var oe=Ut(C),_e=/(\.(png|jpg)\d*)(?=$)/,ke=/^.+\/v4\//,Ue=xe.devicePixelRatio>=2||G===512?"@2x":"",ct=Pe.supported?".webp":"$1";oe.path=oe.path.replace(_e,""+Ue+ct),oe.path=oe.path.replace(ke,"/"),oe.path="/v4"+oe.path;var Pt=this._customAccessToken||Et(oe.params)||Ae.ACCESS_TOKEN;return Ae.REQUIRE_ACCESS_TOKEN&&Pt&&this._skuToken&&oe.params.push("sku="+this._skuToken),this._makeAPIURL(oe,Pt)},he.prototype.canonicalizeTileURL=function(C,G){var oe="/v4/",_e=/\.[\w]+$/,ke=Ut(C);if(!ke.path.match(/(^\/v4\/)/)||!ke.path.match(_e))return C;var Ue="mapbox://tiles/";Ue+=ke.path.replace(oe,"");var ct=ke.params;return G&&(ct=ct.filter(function(Pt){return!Pt.match(/^access_token=/)})),ct.length&&(Ue+="?"+ct.join("&")),Ue},he.prototype.canonicalizeTileset=function(C,G){for(var oe=G?De(G):!1,_e=[],ke=0,Ue=C.tiles||[];ke=0&&C.params.splice(ke,1)}if(_e.path!=="/"&&(C.path=""+_e.path+C.path),!Ae.REQUIRE_ACCESS_TOKEN)return Yt(C);if(G=G||Ae.ACCESS_TOKEN,!G)throw new Error("An API access token is required to use Mapbox GL. "+oe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+oe);return C.params=C.params.filter(function(Ue){return Ue.indexOf("access_token")===-1}),C.params.push("access_token="+G),Yt(C)};function De(k){return k.indexOf("mapbox:")===0}var et=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function nt(k){return et.test(k)}function Ke(k){return k.indexOf("sku=")>0&&nt(k)}function Et(k){for(var C=0,G=k;C=1&&s.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{U("Unable to write to LocalStorage")}},Rr.prototype.processRequests=function(C){},Rr.prototype.postEvent=function(C,G,oe,_e){var ke=this;if(Ae.EVENTS_URL){var Ue=Ut(Ae.EVENTS_URL);Ue.params.push("access_token="+(_e||Ae.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(C).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:Me,userId:this.anonId},Pt=G?_(ct,G):ct,Gt={url:Yt(Ue),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Gr(Gt,function(tr){ke.pendingRequest=null,oe(tr),ke.saveEventData(),ke.processRequests(_e)})}},Rr.prototype.queueRequest=function(C,G){this.queue.push(C),this.processRequests(G)};var dr=function(k){function C(){k.call(this,"map.load"),this.success={},this.skuToken=""}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.postMapLoadEvent=function(oe,_e,ke,Ue){this.skuToken=ke,(Ae.EVENTS_URL&&Ue||Ae.ACCESS_TOKEN&&Array.isArray(oe)&&oe.some(function(ct){return De(ct)||nt(ct)}))&&this.queueRequest({id:_e,timestamp:Date.now()},Ue)},C.prototype.processRequests=function(oe){var _e=this;if(!(this.pendingRequest||this.queue.length===0)){var ke=this.queue.shift(),Ue=ke.id,ct=ke.timestamp;Ue&&this.success[Ue]||(this.anonId||this.fetchEventData(),R(this.anonId)||(this.anonId=g()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||Ue&&(_e.success[Ue]=!0)},oe))}},C}(Rr),wr=function(k){function C(G){k.call(this,"appUserTurnstile"),this._customAccessToken=G}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.postTurnstileEvent=function(oe,_e){Ae.EVENTS_URL&&Ae.ACCESS_TOKEN&&Array.isArray(oe)&&oe.some(function(ke){return De(ke)||nt(ke)})&&this.queueRequest(Date.now(),_e)},C.prototype.processRequests=function(oe){var _e=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ke=hr(Ae.ACCESS_TOKEN),Ue=ke?ke.u:Ae.ACCESS_TOKEN,ct=Ue!==this.eventData.tokenU;R(this.anonId)||(this.anonId=g(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var Gt=new Date(this.eventData.lastSuccess),tr=new Date(Pt),xr=(Pt-this.eventData.lastSuccess)/(1440*60*1e3);ct=ct||xr>=1||xr<-1||Gt.getDate()!==tr.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Nr){Nr||(_e.eventData.lastSuccess=Pt,_e.eventData.tokenU=Ue)},oe)}},C}(Rr),yt=new wr,Fe=yt.postTurnstileEvent.bind(yt),We=new dr,Oe=We.postMapLoadEvent.bind(We),de="mapbox-tiles",me=500,be=50,Ie=1e3*60*7,Xe;function ht(){s.caches&&!Xe&&(Xe=s.caches.open(de))}var bt;function Ct(k,C){if(bt===void 0)try{new Response(new ReadableStream),bt=!0}catch{bt=!1}bt?C(k.body):k.blob().then(C)}function Zt(k,C,G){if(ht(),!!Xe){var oe={status:C.status,statusText:C.statusText,headers:new s.Headers};C.headers.forEach(function(Ue,ct){return oe.headers.set(ct,Ue)});var _e=le(C.headers.get("Cache-Control")||"");if(!_e["no-store"]){_e["max-age"]&&oe.headers.set("Expires",new Date(G+_e["max-age"]*1e3).toUTCString());var ke=new Date(oe.headers.get("Expires")).getTime()-G;keDate.now()&&!G["no-cache"]}var mr=1/0;function ia(k){mr++,mr>be&&(k.getActor().send("enforceCacheSizeLimit",me),mr=0)}function Ia(k){ht(),Xe&&Xe.then(function(C){C.keys().then(function(G){for(var oe=0;oe=200&&G.status<300||G.status===0)&&G.response!==null){var _e=G.response;if(k.type==="json")try{_e=JSON.parse(G.response)}catch(ke){return C(ke)}C(null,_e,G.getResponseHeader("Cache-Control"),G.getResponseHeader("Expires"))}else C(new yn(G.statusText,G.status,k.url))},G.send(k.body),{cancel:function(){return G.abort()}}}var Tr=function(k,C){if(!zt(k.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return $t(k,C);if(ie()&&self.worker&&self.worker.actor){var G=!0;return self.worker.actor.send("getResource",k,C,void 0,G)}}return Ht(k,C)},qr=function(k,C){return Tr(_(k,{type:"json"}),C)},ha=function(k,C){return Tr(_(k,{type:"arrayBuffer"}),C)},Gr=function(k,C){return Tr(_(k,{method:"POST"}),C)};function wa(k){var C=s.document.createElement("a");return C.href=k,C.protocol===s.document.location.protocol&&C.host===s.document.location.host}var Da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ya(k,C,G,oe){var _e=new s.Image,ke=s.URL;_e.onload=function(){C(null,_e),ke.revokeObjectURL(_e.src),_e.onload=null,s.requestAnimationFrame(function(){_e.src=Da})},_e.onerror=function(){return C(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Ue=new s.Blob([new Uint8Array(k)],{type:"image/png"});_e.cacheControl=G,_e.expires=oe,_e.src=k.byteLength?ke.createObjectURL(Ue):Da}function Ka(k,C){var G=new s.Blob([new Uint8Array(k)],{type:"image/png"});s.createImageBitmap(G).then(function(oe){C(null,oe)}).catch(function(oe){C(new Error("Could not load image because of "+oe.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var an,mt,ot=function(){an=[],mt=0};ot();var Lr=function(k,C){if(Pe.supported&&(k.headers||(k.headers={}),k.headers.accept="image/webp,*/*"),mt>=Ae.MAX_PARALLEL_IMAGE_REQUESTS){var G={requestParameters:k,callback:C,cancelled:!1,cancel:function(){this.cancelled=!0}};return an.push(G),G}mt++;var oe=!1,_e=function(){if(!oe)for(oe=!0,mt--;an.length&&mt0||this._oneTimeListeners&&this._oneTimeListeners[C]&&this._oneTimeListeners[C].length>0||this._eventedParent&&this._eventedParent.listens(C)},Dr.prototype.setEventedParent=function(C,G){return this._eventedParent=C,this._eventedParentData=G,this};var Hr=8,na={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ta={"*":{type:"source"}},At=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],or={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Ar={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},oa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},ga={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sa={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},za={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ra={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Ta=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Fn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kn={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ui={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pi={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vi={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Li={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ni={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ci={type:"array",value:"*"},bi={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ho={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Bo={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},gs={type:"array",value:"*",minimum:1},ro={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ei=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ri={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},xo={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},So={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},bo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ui={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},no={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},cs={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ks={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ms={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Mo={"*":{type:"string"}},kn={$version:Hr,$root:na,sources:ta,source:At,source_vector:or,source_raster:Ar,source_raster_dem:oa,source_geojson:ga,source_video:Sa,source_image:za,layer:ra,layout:Ta,layout_background:Fn,layout_fill:mn,layout_circle:Kn,layout_heatmap:ui,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:pi,layout_symbol:vi,layout_raster:Li,layout_hillshade:Ni,filter:ci,filter_operator:bi,geometry_type:ho,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Bo,expression:gs,light:ro,paint:Ei,paint_fill:Ri,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:xo,paint_circle:So,paint_heatmap:bo,paint_symbol:Ui,paint_raster:no,paint_hillshade:cs,paint_background:ks,transition:ms,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Mo},fi=function(C,G,oe,_e){this.message=(C?C+": ":"")+oe,_e&&(this.identifier=_e),G!=null&&G.__line__&&(this.line=G.__line__)};function Fs(k){var C=k.key,G=k.value;return G?[new fi(C,G,"constants have been deprecated as of v8")]:[]}function Ss(k){for(var C=[],G=arguments.length-1;G-- >0;)C[G]=arguments[G+1];for(var oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];for(var Ue in ke)k[Ue]=ke[Ue]}return k}function Gi(k){return k instanceof Number||k instanceof String||k instanceof Boolean?k.valueOf():k}function js(k){if(Array.isArray(k))return k.map(js);if(k instanceof Object&&!(k instanceof Number||k instanceof String||k instanceof Boolean)){var C={};for(var G in k)C[G]=js(k[G]);return C}return Gi(k)}var No=function(k){function C(G,oe){k.call(this,oe),this.message=oe,this.key=G}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C}(Error),es=function(C,G){G===void 0&&(G=[]),this.parent=C,this.bindings={};for(var oe=0,_e=G;oe<_e.length;oe+=1){var ke=_e[oe],Ue=ke[0],ct=ke[1];this.bindings[Ue]=ct}};es.prototype.concat=function(C){return new es(this,C)},es.prototype.get=function(C){if(this.bindings[C])return this.bindings[C];if(this.parent)return this.parent.get(C);throw new Error(C+" not found in scope.")},es.prototype.has=function(C){return this.bindings[C]?!0:this.parent?this.parent.has(C):!1};var Vs={kind:"null"},hi={kind:"number"},so={kind:"string"},Oi={kind:"boolean"},Zo={kind:"color"},qs={kind:"object"},Di={kind:"value"},ys={kind:"error"},wl={kind:"collator"},Xs={kind:"formatted"},Vl={kind:"resolvedImage"};function rl(k,C){return{kind:"array",itemType:k,N:C}}function Cs(k){if(k.kind==="array"){var C=Cs(k.itemType);return typeof k.N=="number"?"array<"+C+", "+k.N+">":k.itemType.kind==="value"?"array":"array<"+C+">"}else return k.kind}var ql=[Vs,hi,so,Oi,Zo,Xs,qs,rl(Di),Vl];function ju(k,C){if(C.kind==="error")return null;if(k.kind==="array"){if(C.kind==="array"&&(C.N===0&&C.itemType.kind==="value"||!ju(k.itemType,C.itemType))&&(typeof k.N!="number"||k.N===C.N))return null}else{if(k.kind===C.kind)return null;if(k.kind==="value")for(var G=0,oe=ql;G255?255:Gt}function _e(Gt){return Gt<0?0:Gt>1?1:Gt}function ke(Gt){return Gt[Gt.length-1]==="%"?oe(parseFloat(Gt)/100*255):oe(parseInt(Gt))}function Ue(Gt){return Gt[Gt.length-1]==="%"?_e(parseFloat(Gt)/100):_e(parseFloat(Gt))}function ct(Gt,tr,xr){return xr<0?xr+=1:xr>1&&(xr-=1),xr*6<1?Gt+(tr-Gt)*xr*6:xr*2<1?tr:xr*3<2?Gt+(tr-Gt)*(2/3-xr)*6:Gt}function Pt(Gt){var tr=Gt.replace(/ /g,"").toLowerCase();if(tr in G)return G[tr].slice();if(tr[0]==="#"){if(tr.length===4){var xr=parseInt(tr.substr(1),16);return xr>=0&&xr<=4095?[(xr&3840)>>4|(xr&3840)>>8,xr&240|(xr&240)>>4,xr&15|(xr&15)<<4,1]:null}else if(tr.length===7){var xr=parseInt(tr.substr(1),16);return xr>=0&&xr<=16777215?[(xr&16711680)>>16,(xr&65280)>>8,xr&255,1]:null}return null}var Nr=tr.indexOf("("),zr=tr.indexOf(")");if(Nr!==-1&&zr+1===tr.length){var aa=tr.substr(0,Nr),Ca=tr.substr(Nr+1,zr-(Nr+1)).split(","),gn=1;switch(aa){case"rgba":if(Ca.length!==4)return null;gn=Ue(Ca.pop());case"rgb":return Ca.length!==3?null:[ke(Ca[0]),ke(Ca[1]),ke(Ca[2]),gn];case"hsla":if(Ca.length!==4)return null;gn=Ue(Ca.pop());case"hsl":if(Ca.length!==3)return null;var Qa=(parseFloat(Ca[0])%360+360)%360/360,Un=Ue(Ca[1]),Mn=Ue(Ca[2]),Nn=Mn<=.5?Mn*(Un+1):Mn+Un-Mn*Un,Hn=Mn*2-Nn;return[oe(ct(Hn,Nn,Qa+1/3)*255),oe(ct(Hn,Nn,Qa)*255),oe(ct(Hn,Nn,Qa-1/3)*255),gn];default:return null}}return null}try{C.parseCSSColor=Pt}catch{}}),ff=jc.parseCSSColor,_s=function(C,G,oe,_e){_e===void 0&&(_e=1),this.r=C,this.g=G,this.b=oe,this.a=_e};_s.parse=function(C){if(C){if(C instanceof _s)return C;if(typeof C=="string"){var G=ff(C);if(G)return new _s(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},_s.prototype.toString=function(){var C=this.toArray(),G=C[0],oe=C[1],_e=C[2],ke=C[3];return"rgba("+Math.round(G)+","+Math.round(oe)+","+Math.round(_e)+","+ke+")"},_s.prototype.toArray=function(){var C=this,G=C.r,oe=C.g,_e=C.b,ke=C.a;return ke===0?[0,0,0,0]:[G*255/ke,oe*255/ke,_e*255/ke,ke]},_s.black=new _s(0,0,0,1),_s.white=new _s(1,1,1,1),_s.transparent=new _s(0,0,0,0),_s.red=new _s(1,0,0,1);var Cu=function(C,G,oe){C?this.sensitivity=G?"variant":"case":this.sensitivity=G?"accent":"base",this.locale=oe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Cu.prototype.compare=function(C,G){return this.collator.compare(C,G)},Cu.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vc=function(C,G,oe,_e,ke){this.text=C,this.image=G,this.scale=oe,this.fontStack=_e,this.textColor=ke},Pl=function(C){this.sections=C};Pl.fromString=function(C){return new Pl([new Vc(C,null,null,null,null)])},Pl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(C){return C.text.length!==0||C.image&&C.image.name.length!==0})},Pl.factory=function(C){return C instanceof Pl?C:Pl.fromString(C)},Pl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(C){return C.text}).join("")},Pl.prototype.serialize=function(){for(var C=["format"],G=0,oe=this.sections;G=0&&k<=255&&typeof C=="number"&&C>=0&&C<=255&&typeof G=="number"&&G>=0&&G<=255)){var _e=typeof oe=="number"?[k,C,G,oe]:[k,C,G];return"Invalid rgba value ["+_e.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof oe>"u"||typeof oe=="number"&&oe>=0&&oe<=1?null:"Invalid rgba value ["+[k,C,G,oe].join(", ")+"]: 'a' must be between 0 and 1."}function _u(k){if(k===null)return!0;if(typeof k=="string")return!0;if(typeof k=="boolean")return!0;if(typeof k=="number")return!0;if(k instanceof _s)return!0;if(k instanceof Cu)return!0;if(k instanceof Pl)return!0;if(k instanceof Tl)return!0;if(Array.isArray(k)){for(var C=0,G=k;C2){var ct=C[1];if(typeof ct!="string"||!(ct in qu)||ct==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);Ue=qu[ct],oe++}else Ue=Di;var Pt;if(C.length>3){if(C[2]!==null&&(typeof C[2]!="number"||C[2]<0||C[2]!==Math.floor(C[2])))return G.error('The length argument to "array" must be a positive integer literal',2);Pt=C[2],oe++}_e=rl(Ue,Pt)}else _e=qu[ke];for(var Gt=[];oe1)&&G.push(_e)}}return G.concat(this.args.map(function(ke){return ke.serialize()}))};var Ju=function(C){this.type=Xs,this.sections=C};Ju.parse=function(C,G){if(C.length<2)return G.error("Expected at least one argument.");var oe=C[1];if(!Array.isArray(oe)&&typeof oe=="object")return G.error("First argument must be an image or text section.");for(var _e=[],ke=!1,Ue=1;Ue<=C.length-1;++Ue){var ct=C[Ue];if(ke&&typeof ct=="object"&&!Array.isArray(ct)){ke=!1;var Pt=null;if(ct["font-scale"]&&(Pt=G.parse(ct["font-scale"],1,hi),!Pt))return null;var Gt=null;if(ct["text-font"]&&(Gt=G.parse(ct["text-font"],1,rl(so)),!Gt))return null;var tr=null;if(ct["text-color"]&&(tr=G.parse(ct["text-color"],1,Zo),!tr))return null;var xr=_e[_e.length-1];xr.scale=Pt,xr.font=Gt,xr.textColor=tr}else{var Nr=G.parse(C[Ue],1,Di);if(!Nr)return null;var zr=Nr.type.kind;if(zr!=="string"&&zr!=="value"&&zr!=="null"&&zr!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ke=!0,_e.push({content:Nr,scale:null,font:null,textColor:null})}}return new Ju(_e)},Ju.prototype.evaluate=function(C){var G=function(oe){var _e=oe.content.evaluate(C);return Os(_e)===Vl?new Vc("",_e,null,null,null):new Vc(Al(_e),null,oe.scale?oe.scale.evaluate(C):null,oe.font?oe.font.evaluate(C).join(","):null,oe.textColor?oe.textColor.evaluate(C):null)};return new Pl(this.sections.map(G))},Ju.prototype.eachChild=function(C){for(var G=0,oe=this.sections;G-1),oe},Zs.prototype.eachChild=function(C){C(this.input)},Zs.prototype.outputDefined=function(){return!1},Zs.prototype.serialize=function(){return["image",this.input.serialize()]};var _f={"to-boolean":Oi,"to-color":Zo,"to-number":hi,"to-string":so},zo=function(C,G){this.type=C,this.args=G};zo.parse=function(C,G){if(C.length<2)return G.error("Expected at least one argument.");var oe=C[0];if((oe==="to-boolean"||oe==="to-string")&&C.length!==2)return G.error("Expected one argument.");for(var _e=_f[oe],ke=[],Ue=1;Ue4?oe="Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":oe=Il(G[0],G[1],G[2],G[3]),!oe))return new _s(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new bs(oe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}else if(this.type.kind==="number"){for(var Pt=null,Gt=0,tr=this.args;Gt=C[2]||k[1]<=C[1]||k[3]>=C[3])}function hf(k,C){var G=Qu(k[0]),oe=wc(k[1]),_e=Math.pow(2,C.z);return[Math.round(G*_e*dl),Math.round(oe*_e*dl)]}function Yc(k,C,G){var oe=k[0]-C[0],_e=k[1]-C[1],ke=k[0]-G[0],Ue=k[1]-G[1];return oe*Ue-ke*_e===0&&oe*ke<=0&&_e*Ue<=0}function Tc(k,C,G){return C[1]>k[1]!=G[1]>k[1]&&k[0]<(G[0]-C[0])*(k[1]-C[1])/(G[1]-C[1])+C[0]}function ec(k,C){for(var G=!1,oe=0,_e=C.length;oe<_e;oe++)for(var ke=C[oe],Ue=0,ct=ke.length;Ue0&&xr<0||tr<0&&xr>0}function $c(k,C,G,oe){var _e=[C[0]-k[0],C[1]-k[1]],ke=[oe[0]-G[0],oe[1]-G[1]];return Hc(ke,_e)===0?!1:!!(bu(k,C,G,oe)&&bu(G,oe,k,C))}function Gu(k,C,G){for(var oe=0,_e=G;oe<_e.length;oe+=1)for(var ke=_e[oe],Ue=0;UeG[2]){var _e=oe*.5,ke=k[0]-G[0]>_e?-oe:G[0]-k[0]>_e?oe:0;ke===0&&(ke=k[0]-G[2]>_e?-oe:G[2]-k[0]>_e?oe:0),k[0]+=ke}qc(C,k)}function Lc(k){k[0]=k[1]=1/0,k[2]=k[3]=-1/0}function xf(k,C,G,oe){for(var _e=Math.pow(2,oe.z)*dl,ke=[oe.x*dl,oe.y*dl],Ue=[],ct=0,Pt=k;ct=0)return!1;var G=!0;return k.eachChild(function(oe){G&&!ru(oe,C)&&(G=!1)}),G}var tc=function(C,G){this.type=G.type,this.name=C,this.boundExpression=G};tc.parse=function(C,G){if(C.length!==2||typeof C[1]!="string")return G.error("'var' expression requires exactly one string literal argument.");var oe=C[1];return G.scope.has(oe)?new tc(oe,G.scope.get(oe)):G.error('Unknown variable "'+oe+'". Make sure "'+oe+'" has been bound in an enclosing "let" expression before using it.',1)},tc.prototype.evaluate=function(C){return this.boundExpression.evaluate(C)},tc.prototype.eachChild=function(){},tc.prototype.outputDefined=function(){return!1},tc.prototype.serialize=function(){return["var",this.name]};var Bs=function(C,G,oe,_e,ke){G===void 0&&(G=[]),_e===void 0&&(_e=new es),ke===void 0&&(ke=[]),this.registry=C,this.path=G,this.key=G.map(function(Ue){return"["+Ue+"]"}).join(""),this.scope=_e,this.errors=ke,this.expectedType=oe};Bs.prototype.parse=function(C,G,oe,_e,ke){return ke===void 0&&(ke={}),G?this.concat(G,oe,_e)._parse(C,ke):this._parse(C,ke)},Bs.prototype._parse=function(C,G){(C===null||typeof C=="string"||typeof C=="boolean"||typeof C=="number")&&(C=["literal",C]);function oe(tr,xr,Nr){return Nr==="assert"?new Zl(xr,[tr]):Nr==="coerce"?new zo(xr,[tr]):tr}if(Array.isArray(C)){if(C.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var _e=C[0];if(typeof _e!="string")return this.error("Expression name must be a string, but found "+typeof _e+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ke=this.registry[_e];if(ke){var Ue=ke.parse(C,this);if(!Ue)return null;if(this.expectedType){var ct=this.expectedType,Pt=Ue.type;if((ct.kind==="string"||ct.kind==="number"||ct.kind==="boolean"||ct.kind==="object"||ct.kind==="array")&&Pt.kind==="value")Ue=oe(Ue,ct,G.typeAnnotation||"assert");else if((ct.kind==="color"||ct.kind==="formatted"||ct.kind==="resolvedImage")&&(Pt.kind==="value"||Pt.kind==="string"))Ue=oe(Ue,ct,G.typeAnnotation||"coerce");else if(this.checkSubtype(ct,Pt))return null}if(!(Ue instanceof Uo)&&Ue.type.kind!=="resolvedImage"&&Hu(Ue)){var Gt=new is;try{Ue=new Uo(Ue.type,Ue.evaluate(Gt))}catch(tr){return this.error(tr.message),null}}return Ue}return this.error('Unknown expression "'+_e+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof C>"u"?this.error("'undefined' value invalid. Use null instead."):typeof C=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof C+" instead.")},Bs.prototype.concat=function(C,G,oe){var _e=typeof C=="number"?this.path.concat(C):this.path,ke=oe?this.scope.concat(oe):this.scope;return new Bs(this.registry,_e,G||null,ke,this.errors)},Bs.prototype.error=function(C){for(var G=[],oe=arguments.length-1;oe-- >0;)G[oe]=arguments[oe+1];var _e=""+this.key+G.map(function(ke){return"["+ke+"]"}).join("");this.errors.push(new No(_e,C))},Bs.prototype.checkSubtype=function(C,G){var oe=ju(C,G);return oe&&this.error(oe),oe};function Hu(k){if(k instanceof tc)return Hu(k.boundExpression);if(k instanceof Bi&&k.name==="error")return!1;if(k instanceof xu)return!1;if(k instanceof tu)return!1;var C=k instanceof zo||k instanceof Zl,G=!0;return k.eachChild(function(oe){C?G=G&&Hu(oe):G=G&&oe instanceof Uo}),G?Qc(k)&&ru(k,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Gl(k,C){for(var G=k.length-1,oe=0,_e=G,ke=0,Ue,ct;oe<=_e;)if(ke=Math.floor((oe+_e)/2),Ue=k[ke],ct=k[ke+1],Ue<=C){if(ke===G||CC)_e=ke-1;else throw new bs("Input is not a number.");return 0}var au=function(C,G,oe){this.type=C,this.input=G,this.labels=[],this.outputs=[];for(var _e=0,ke=oe;_e=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Gt);var xr=G.parse(Pt,tr,ke);if(!xr)return null;ke=ke||xr.type,_e.push([ct,xr])}return new au(ke,oe,_e)},au.prototype.evaluate=function(C){var G=this.labels,oe=this.outputs;if(G.length===1)return oe[0].evaluate(C);var _e=this.input.evaluate(C);if(_e<=G[0])return oe[0].evaluate(C);var ke=G.length;if(_e>=G[ke-1])return oe[ke-1].evaluate(C);var Ue=Gl(G,_e);return oe[Ue].evaluate(C)},au.prototype.eachChild=function(C){C(this.input);for(var G=0,oe=this.outputs;G0&&C.push(this.labels[G]),C.push(this.outputs[G].serialize());return C};function Ys(k,C,G){return k*(1-G)+C*G}function vc(k,C,G){return new _s(Ys(k.r,C.r,G),Ys(k.g,C.g,G),Ys(k.b,C.b,G),Ys(k.a,C.a,G))}function Pu(k,C,G){return k.map(function(oe,_e){return Ys(oe,C[_e],G)})}var rc=Object.freeze({__proto__:null,number:Ys,color:vc,array:Pu}),Pc=.95047,bf=1,Vf=1.08883,dc=4/29,Ic=6/29,fu=3*Ic*Ic,Rc=Ic*Ic*Ic,Rl=Math.PI/180,pc=180/Math.PI;function ef(k){return k>Rc?Math.pow(k,1/3):k/fu+dc}function gc(k){return k>Ic?k*k*k:fu*(k-dc)}function Gs(k){return 255*(k<=.0031308?12.92*k:1.055*Math.pow(k,1/2.4)-.055)}function nu(k){return k/=255,k<=.04045?k/12.92:Math.pow((k+.055)/1.055,2.4)}function wu(k){var C=nu(k.r),G=nu(k.g),oe=nu(k.b),_e=ef((.4124564*C+.3575761*G+.1804375*oe)/Pc),ke=ef((.2126729*C+.7151522*G+.072175*oe)/bf),Ue=ef((.0193339*C+.119192*G+.9503041*oe)/Vf);return{l:116*ke-16,a:500*(_e-ke),b:200*(ke-Ue),alpha:k.a}}function Xc(k){var C=(k.l+16)/116,G=isNaN(k.a)?C:C+k.a/500,oe=isNaN(k.b)?C:C-k.b/200;return C=bf*gc(C),G=Pc*gc(G),oe=Vf*gc(oe),new _s(Gs(3.2404542*G-1.5371385*C-.4985314*oe),Gs(-.969266*G+1.8760108*C+.041556*oe),Gs(.0556434*G-.2040259*C+1.0572252*oe),k.alpha)}function Ws(k,C,G){return{l:Ys(k.l,C.l,G),a:Ys(k.a,C.a,G),b:Ys(k.b,C.b,G),alpha:Ys(k.alpha,C.alpha,G)}}function Sc(k){var C=wu(k),G=C.l,oe=C.a,_e=C.b,ke=Math.atan2(_e,oe)*pc;return{h:ke<0?ke+360:ke,c:Math.sqrt(oe*oe+_e*_e),l:G,alpha:k.a}}function ac(k){var C=k.h*Rl,G=k.c,oe=k.l;return Xc({l:oe,a:Math.cos(C)*G,b:Math.sin(C)*G,alpha:k.alpha})}function hu(k,C,G){var oe=C-k;return k+G*(oe>180||oe<-180?oe-360*Math.round(oe/360):oe)}function Mc(k,C,G){return{h:hu(k.h,C.h,G),c:Ys(k.c,C.c,G),l:Ys(k.l,C.l,G),alpha:Ys(k.alpha,C.alpha,G)}}var Iu={forward:wu,reverse:Xc,interpolate:Ws},Ec={forward:Sc,reverse:ac,interpolate:Mc},wf=Object.freeze({__proto__:null,lab:Iu,hcl:Ec}),Fl=function(C,G,oe,_e,ke){this.type=C,this.operator=G,this.interpolation=oe,this.input=_e,this.labels=[],this.outputs=[];for(var Ue=0,ct=ke;Ue1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);_e={name:"cubic-bezier",controlPoints:Pt}}else return G.error("Unknown interpolation type "+String(_e[0]),1,0);if(C.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if((C.length-1)%2!==0)return G.error("Expected an even number of arguments.");if(ke=G.parse(ke,2,hi),!ke)return null;var Gt=[],tr=null;oe==="interpolate-hcl"||oe==="interpolate-lab"?tr=Zo:G.expectedType&&G.expectedType.kind!=="value"&&(tr=G.expectedType);for(var xr=0;xr=Nr)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',aa);var gn=G.parse(zr,Ca,tr);if(!gn)return null;tr=tr||gn.type,Gt.push([Nr,gn])}return tr.kind!=="number"&&tr.kind!=="color"&&!(tr.kind==="array"&&tr.itemType.kind==="number"&&typeof tr.N=="number")?G.error("Type "+Cs(tr)+" is not interpolatable."):new Fl(tr,oe,_e,ke,Gt)},Fl.prototype.evaluate=function(C){var G=this.labels,oe=this.outputs;if(G.length===1)return oe[0].evaluate(C);var _e=this.input.evaluate(C);if(_e<=G[0])return oe[0].evaluate(C);var ke=G.length;if(_e>=G[ke-1])return oe[ke-1].evaluate(C);var Ue=Gl(G,_e),ct=G[Ue],Pt=G[Ue+1],Gt=Fl.interpolationFactor(this.interpolation,_e,ct,Pt),tr=oe[Ue].evaluate(C),xr=oe[Ue+1].evaluate(C);return this.operator==="interpolate"?rc[this.type.kind.toLowerCase()](tr,xr,Gt):this.operator==="interpolate-hcl"?Ec.reverse(Ec.interpolate(Ec.forward(tr),Ec.forward(xr),Gt)):Iu.reverse(Iu.interpolate(Iu.forward(tr),Iu.forward(xr),Gt))},Fl.prototype.eachChild=function(C){C(this.input);for(var G=0,oe=this.outputs;G=oe.length)throw new bs("Array index out of bounds: "+G+" > "+(oe.length-1)+".");if(G!==Math.floor(G))throw new bs("Array index must be an integer, but found "+G+" instead.");return oe[G]},Ru.prototype.eachChild=function(C){C(this.index),C(this.input)},Ru.prototype.outputDefined=function(){return!1},Ru.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var al=function(C,G){this.type=Oi,this.needle=C,this.haystack=G};al.parse=function(C,G){if(C.length!==3)return G.error("Expected 2 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,Di);return!oe||!_e?null:Vu(oe.type,[Oi,so,hi,Vs,Di])?new al(oe,_e):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(oe.type)+" instead")},al.prototype.evaluate=function(C){var G=this.needle.evaluate(C),oe=this.haystack.evaluate(C);if(!oe)return!1;if(!yu(G,["boolean","string","number","null"]))throw new bs("Expected first argument to be of type boolean, string, number or null, but found "+Cs(Os(G))+" instead.");if(!yu(oe,["string","array"]))throw new bs("Expected second argument to be of type array or string, but found "+Cs(Os(oe))+" instead.");return oe.indexOf(G)>=0},al.prototype.eachChild=function(C){C(this.needle),C(this.haystack)},al.prototype.outputDefined=function(){return!0},al.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Yl=function(C,G,oe){this.type=hi,this.needle=C,this.haystack=G,this.fromIndex=oe};Yl.parse=function(C,G){if(C.length<=2||C.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,Di);if(!oe||!_e)return null;if(!Vu(oe.type,[Oi,so,hi,Vs,Di]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(oe.type)+" instead");if(C.length===4){var ke=G.parse(C[3],3,hi);return ke?new Yl(oe,_e,ke):null}else return new Yl(oe,_e)},Yl.prototype.evaluate=function(C){var G=this.needle.evaluate(C),oe=this.haystack.evaluate(C);if(!yu(G,["boolean","string","number","null"]))throw new bs("Expected first argument to be of type boolean, string, number or null, but found "+Cs(Os(G))+" instead.");if(!yu(oe,["string","array"]))throw new bs("Expected second argument to be of type array or string, but found "+Cs(Os(oe))+" instead.");if(this.fromIndex){var _e=this.fromIndex.evaluate(C);return oe.indexOf(G,_e)}return oe.indexOf(G)},Yl.prototype.eachChild=function(C){C(this.needle),C(this.haystack),this.fromIndex&&C(this.fromIndex)},Yl.prototype.outputDefined=function(){return!1},Yl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var C=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),C]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(C,G,oe,_e,ke,Ue){this.inputType=C,this.type=G,this.input=oe,this.cases=_e,this.outputs=ke,this.otherwise=Ue};Ks.parse=function(C,G){if(C.length<5)return G.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if(C.length%2!==1)return G.error("Expected an even number of arguments.");var oe,_e;G.expectedType&&G.expectedType.kind!=="value"&&(_e=G.expectedType);for(var ke={},Ue=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return tr.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof zr=="number"&&Math.floor(zr)!==zr)return tr.error("Numeric branch labels must be integer values.");if(!oe)oe=Os(zr);else if(tr.checkSubtype(oe,Os(zr)))return null;if(typeof ke[String(zr)]<"u")return tr.error("Branch labels must be unique.");ke[String(zr)]=Ue.length}var aa=G.parse(Gt,ct,_e);if(!aa)return null;_e=_e||aa.type,Ue.push(aa)}var Ca=G.parse(C[1],1,Di);if(!Ca)return null;var gn=G.parse(C[C.length-1],C.length-1,_e);return!gn||Ca.type.kind!=="value"&&G.concat(1).checkSubtype(oe,Ca.type)?null:new Ks(oe,_e,Ca,ke,Ue,gn)},Ks.prototype.evaluate=function(C){var G=this.input.evaluate(C),oe=Os(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise;return oe.evaluate(C)},Ks.prototype.eachChild=function(C){C(this.input),this.outputs.forEach(C),C(this.otherwise)},Ks.prototype.outputDefined=function(){return this.outputs.every(function(C){return C.outputDefined()})&&this.otherwise.outputDefined()},Ks.prototype.serialize=function(){for(var C=this,G=["match",this.input.serialize()],oe=Object.keys(this.cases).sort(),_e=[],ke={},Ue=0,ct=oe;Ue=5)return G.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,hi);if(!oe||!_e)return null;if(!Vu(oe.type,[rl(Di),so,Di]))return G.error("Expected first argument to be of type array or string, but found "+Cs(oe.type)+" instead");if(C.length===4){var ke=G.parse(C[3],3,hi);return ke?new Du(oe.type,oe,_e,ke):null}else return new Du(oe.type,oe,_e)},Du.prototype.evaluate=function(C){var G=this.input.evaluate(C),oe=this.beginIndex.evaluate(C);if(!yu(G,["string","array"]))throw new bs("Expected first argument to be of type array or string, but found "+Cs(Os(G))+" instead.");if(this.endIndex){var _e=this.endIndex.evaluate(C);return G.slice(oe,_e)}return G.slice(oe)},Du.prototype.eachChild=function(C){C(this.input),C(this.beginIndex),this.endIndex&&C(this.endIndex)},Du.prototype.outputDefined=function(){return!1},Du.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var C=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),C]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Zc(k,C){return k==="=="||k==="!="?C.kind==="boolean"||C.kind==="string"||C.kind==="number"||C.kind==="null"||C.kind==="value":C.kind==="string"||C.kind==="number"||C.kind==="value"}function Qt(k,C,G){return C===G}function yr(k,C,G){return C!==G}function $r(k,C,G){return CG}function ma(k,C,G){return C<=G}function tn(k,C,G){return C>=G}function Ja(k,C,G,oe){return oe.compare(C,G)===0}function Ln(k,C,G,oe){return!Ja(k,C,G,oe)}function On(k,C,G,oe){return oe.compare(C,G)<0}function Qn(k,C,G,oe){return oe.compare(C,G)>0}function _n(k,C,G,oe){return oe.compare(C,G)<=0}function qn(k,C,G,oe){return oe.compare(C,G)>=0}function En(k,C,G){var oe=k!=="=="&&k!=="!=";return function(){function _e(ke,Ue,ct){this.type=Oi,this.lhs=ke,this.rhs=Ue,this.collator=ct,this.hasUntypedArgument=ke.type.kind==="value"||Ue.type.kind==="value"}return _e.parse=function(Ue,ct){if(Ue.length!==3&&Ue.length!==4)return ct.error("Expected two or three arguments.");var Pt=Ue[0],Gt=ct.parse(Ue[1],1,Di);if(!Gt)return null;if(!Zc(Pt,Gt.type))return ct.concat(1).error('"'+Pt+`" comparisons are not supported for type '`+Cs(Gt.type)+"'.");var tr=ct.parse(Ue[2],2,Di);if(!tr)return null;if(!Zc(Pt,tr.type))return ct.concat(2).error('"'+Pt+`" comparisons are not supported for type '`+Cs(tr.type)+"'.");if(Gt.type.kind!==tr.type.kind&&Gt.type.kind!=="value"&&tr.type.kind!=="value")return ct.error("Cannot compare types '"+Cs(Gt.type)+"' and '"+Cs(tr.type)+"'.");oe&&(Gt.type.kind==="value"&&tr.type.kind!=="value"?Gt=new Zl(tr.type,[Gt]):Gt.type.kind!=="value"&&tr.type.kind==="value"&&(tr=new Zl(Gt.type,[tr])));var xr=null;if(Ue.length===4){if(Gt.type.kind!=="string"&&tr.type.kind!=="string"&&Gt.type.kind!=="value"&&tr.type.kind!=="value")return ct.error("Cannot use collator to compare non-string types.");if(xr=ct.parse(Ue[3],3,wl),!xr)return null}return new _e(Gt,tr,xr)},_e.prototype.evaluate=function(Ue){var ct=this.lhs.evaluate(Ue),Pt=this.rhs.evaluate(Ue);if(oe&&this.hasUntypedArgument){var Gt=Os(ct),tr=Os(Pt);if(Gt.kind!==tr.kind||!(Gt.kind==="string"||Gt.kind==="number"))throw new bs('Expected arguments for "'+k+'" to be (string, string) or (number, number), but found ('+Gt.kind+", "+tr.kind+") instead.")}if(this.collator&&!oe&&this.hasUntypedArgument){var xr=Os(ct),Nr=Os(Pt);if(xr.kind!=="string"||Nr.kind!=="string")return C(Ue,ct,Pt)}return this.collator?G(Ue,ct,Pt,this.collator.evaluate(Ue)):C(Ue,ct,Pt)},_e.prototype.eachChild=function(Ue){Ue(this.lhs),Ue(this.rhs),this.collator&&Ue(this.collator)},_e.prototype.outputDefined=function(){return!0},_e.prototype.serialize=function(){var Ue=[k];return this.eachChild(function(ct){Ue.push(ct.serialize())}),Ue},_e}()}var dn=En("==",Qt,Ja),ai=En("!=",yr,Ln),Hi=En("<",$r,On),Fi=En(">",Vr,Qn),Zi=En("<=",ma,_n),Wi=En(">=",tn,qn),ii=function(C,G,oe,_e,ke){this.type=so,this.number=C,this.locale=G,this.currency=oe,this.minFractionDigits=_e,this.maxFractionDigits=ke};ii.parse=function(C,G){if(C.length!==3)return G.error("Expected two arguments.");var oe=G.parse(C[1],1,hi);if(!oe)return null;var _e=C[2];if(typeof _e!="object"||Array.isArray(_e))return G.error("NumberFormat options argument must be an object.");var ke=null;if(_e.locale&&(ke=G.parse(_e.locale,1,so),!ke))return null;var Ue=null;if(_e.currency&&(Ue=G.parse(_e.currency,1,so),!Ue))return null;var ct=null;if(_e["min-fraction-digits"]&&(ct=G.parse(_e["min-fraction-digits"],1,hi),!ct))return null;var Pt=null;return _e["max-fraction-digits"]&&(Pt=G.parse(_e["max-fraction-digits"],1,hi),!Pt)?null:new ii(oe,ke,Ue,ct,Pt)},ii.prototype.evaluate=function(C){return new Intl.NumberFormat(this.locale?this.locale.evaluate(C):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(C):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(C):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(C):void 0}).format(this.number.evaluate(C))},ii.prototype.eachChild=function(C){C(this.number),this.locale&&C(this.locale),this.currency&&C(this.currency),this.minFractionDigits&&C(this.minFractionDigits),this.maxFractionDigits&&C(this.maxFractionDigits)},ii.prototype.outputDefined=function(){return!1},ii.prototype.serialize=function(){var C={};return this.locale&&(C.locale=this.locale.serialize()),this.currency&&(C.currency=this.currency.serialize()),this.minFractionDigits&&(C["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(C["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),C]};var Wn=function(C){this.type=hi,this.input=C};Wn.parse=function(C,G){if(C.length!==2)return G.error("Expected 1 argument, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1);return oe?oe.type.kind!=="array"&&oe.type.kind!=="string"&&oe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Cs(oe.type)+" instead."):new Wn(oe):null},Wn.prototype.evaluate=function(C){var G=this.input.evaluate(C);if(typeof G=="string")return G.length;if(Array.isArray(G))return G.length;throw new bs("Expected value to be of type string or array, but found "+Cs(Os(G))+" instead.")},Wn.prototype.eachChild=function(C){C(this.input)},Wn.prototype.outputDefined=function(){return!1},Wn.prototype.serialize=function(){var C=["length"];return this.eachChild(function(G){C.push(G.serialize())}),C};var ao={"==":dn,"!=":ai,">":Fi,"<":Hi,">=":Wi,"<=":Zi,array:Zl,at:Ru,boolean:Zl,case:nc,coalesce:vu,collator:xu,format:Ju,image:Zs,in:al,"index-of":Yl,interpolate:Fl,"interpolate-hcl":Fl,"interpolate-lab":Fl,length:Wn,let:Wu,literal:Uo,match:Ks,number:Zl,"number-format":ii,object:Zl,slice:Du,step:au,string:Zl,"to-boolean":zo,"to-color":zo,"to-number":zo,"to-string":zo,var:tc,within:tu};function Fo(k,C){var G=C[0],oe=C[1],_e=C[2],ke=C[3];G=G.evaluate(k),oe=oe.evaluate(k),_e=_e.evaluate(k);var Ue=ke?ke.evaluate(k):1,ct=Il(G,oe,_e,Ue);if(ct)throw new bs(ct);return new _s(G/255*Ue,oe/255*Ue,_e/255*Ue,Ue)}function hs(k,C){return k in C}function Is(k,C){var G=C[k];return typeof G>"u"?null:G}function vs(k,C,G,oe){for(;G<=oe;){var _e=G+oe>>1;if(C[_e]===k)return!0;C[_e]>k?oe=_e-1:G=_e+1}return!1}function Rs(k){return{type:k}}Bi.register(ao,{error:[ys,[so],function(k,C){var G=C[0];throw new bs(G.evaluate(k))}],typeof:[so,[Di],function(k,C){var G=C[0];return Cs(Os(G.evaluate(k)))}],"to-rgba":[rl(hi,4),[Zo],function(k,C){var G=C[0];return G.evaluate(k).toArray()}],rgb:[Zo,[hi,hi,hi],Fo],rgba:[Zo,[hi,hi,hi,hi],Fo],has:{type:Oi,overloads:[[[so],function(k,C){var G=C[0];return hs(G.evaluate(k),k.properties())}],[[so,qs],function(k,C){var G=C[0],oe=C[1];return hs(G.evaluate(k),oe.evaluate(k))}]]},get:{type:Di,overloads:[[[so],function(k,C){var G=C[0];return Is(G.evaluate(k),k.properties())}],[[so,qs],function(k,C){var G=C[0],oe=C[1];return Is(G.evaluate(k),oe.evaluate(k))}]]},"feature-state":[Di,[so],function(k,C){var G=C[0];return Is(G.evaluate(k),k.featureState||{})}],properties:[qs,[],function(k){return k.properties()}],"geometry-type":[so,[],function(k){return k.geometryType()}],id:[Di,[],function(k){return k.id()}],zoom:[hi,[],function(k){return k.globals.zoom}],"heatmap-density":[hi,[],function(k){return k.globals.heatmapDensity||0}],"line-progress":[hi,[],function(k){return k.globals.lineProgress||0}],accumulated:[Di,[],function(k){return k.globals.accumulated===void 0?null:k.globals.accumulated}],"+":[hi,Rs(hi),function(k,C){for(var G=0,oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];G+=ke.evaluate(k)}return G}],"*":[hi,Rs(hi),function(k,C){for(var G=1,oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];G*=ke.evaluate(k)}return G}],"-":{type:hi,overloads:[[[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)-oe.evaluate(k)}],[[hi],function(k,C){var G=C[0];return-G.evaluate(k)}]]},"/":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)/oe.evaluate(k)}],"%":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)%oe.evaluate(k)}],ln2:[hi,[],function(){return Math.LN2}],pi:[hi,[],function(){return Math.PI}],e:[hi,[],function(){return Math.E}],"^":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return Math.pow(G.evaluate(k),oe.evaluate(k))}],sqrt:[hi,[hi],function(k,C){var G=C[0];return Math.sqrt(G.evaluate(k))}],log10:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))/Math.LN10}],ln:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))}],log2:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))/Math.LN2}],sin:[hi,[hi],function(k,C){var G=C[0];return Math.sin(G.evaluate(k))}],cos:[hi,[hi],function(k,C){var G=C[0];return Math.cos(G.evaluate(k))}],tan:[hi,[hi],function(k,C){var G=C[0];return Math.tan(G.evaluate(k))}],asin:[hi,[hi],function(k,C){var G=C[0];return Math.asin(G.evaluate(k))}],acos:[hi,[hi],function(k,C){var G=C[0];return Math.acos(G.evaluate(k))}],atan:[hi,[hi],function(k,C){var G=C[0];return Math.atan(G.evaluate(k))}],min:[hi,Rs(hi),function(k,C){return Math.min.apply(Math,C.map(function(G){return G.evaluate(k)}))}],max:[hi,Rs(hi),function(k,C){return Math.max.apply(Math,C.map(function(G){return G.evaluate(k)}))}],abs:[hi,[hi],function(k,C){var G=C[0];return Math.abs(G.evaluate(k))}],round:[hi,[hi],function(k,C){var G=C[0],oe=G.evaluate(k);return oe<0?-Math.round(-oe):Math.round(oe)}],floor:[hi,[hi],function(k,C){var G=C[0];return Math.floor(G.evaluate(k))}],ceil:[hi,[hi],function(k,C){var G=C[0];return Math.ceil(G.evaluate(k))}],"filter-==":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1];return k.properties()[G.value]===oe.value}],"filter-id-==":[Oi,[Di],function(k,C){var G=C[0];return k.id()===G.value}],"filter-type-==":[Oi,[so],function(k,C){var G=C[0];return k.geometryType()===G.value}],"filter-<":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e>ke}],"filter-id->":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe>_e}],"filter-<=":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e<=ke}],"filter-id-<=":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe<=_e}],"filter->=":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e>=ke}],"filter-id->=":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe>=_e}],"filter-has":[Oi,[Di],function(k,C){var G=C[0];return G.value in k.properties()}],"filter-has-id":[Oi,[],function(k){return k.id()!==null&&k.id()!==void 0}],"filter-type-in":[Oi,[rl(so)],function(k,C){var G=C[0];return G.value.indexOf(k.geometryType())>=0}],"filter-id-in":[Oi,[rl(Di)],function(k,C){var G=C[0];return G.value.indexOf(k.id())>=0}],"filter-in-small":[Oi,[so,rl(Di)],function(k,C){var G=C[0],oe=C[1];return oe.value.indexOf(k.properties()[G.value])>=0}],"filter-in-large":[Oi,[so,rl(Di)],function(k,C){var G=C[0],oe=C[1];return vs(k.properties()[G.value],oe.value,0,oe.value.length-1)}],all:{type:Oi,overloads:[[[Oi,Oi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)&&oe.evaluate(k)}],[Rs(Oi),function(k,C){for(var G=0,oe=C;G-1}function wi(k){return!!k.expression&&k.expression.interpolated}function go(k){return k instanceof Number?"number":k instanceof String?"string":k instanceof Boolean?"boolean":Array.isArray(k)?"array":k===null?"null":typeof k}function ws(k){return typeof k=="object"&&k!==null&&!Array.isArray(k)}function os(k){return k}function Hl(k,C){var G=C.type==="color",oe=k.stops&&typeof k.stops[0][0]=="object",_e=oe||k.property!==void 0,ke=oe||!_e,Ue=k.type||(wi(C)?"exponential":"interval");if(G&&(k=Ss({},k),k.stops&&(k.stops=k.stops.map(function(xi){return[xi[0],_s.parse(xi[1])]})),k.default?k.default=_s.parse(k.default):k.default=_s.parse(C.default)),k.colorSpace&&k.colorSpace!=="rgb"&&!wf[k.colorSpace])throw new Error("Unknown color space: "+k.colorSpace);var ct,Pt,Gt;if(Ue==="exponential")ct=Xl;else if(Ue==="interval")ct=uc;else if(Ue==="categorical"){ct=$l,Pt=Object.create(null);for(var tr=0,xr=k.stops;tr=k.stops[oe-1][0])return k.stops[oe-1][1];var _e=Gl(k.stops.map(function(ke){return ke[0]}),G);return k.stops[_e][1]}function Xl(k,C,G){var oe=k.base!==void 0?k.base:1;if(go(G)!=="number")return Wl(k.default,C.default);var _e=k.stops.length;if(_e===1||G<=k.stops[0][0])return k.stops[0][1];if(G>=k.stops[_e-1][0])return k.stops[_e-1][1];var ke=Gl(k.stops.map(function(xr){return xr[0]}),G),Ue=ll(G,oe,k.stops[ke][0],k.stops[ke+1][0]),ct=k.stops[ke][1],Pt=k.stops[ke+1][1],Gt=rc[C.type]||os;if(k.colorSpace&&k.colorSpace!=="rgb"){var tr=wf[k.colorSpace];Gt=function(xr,Nr){return tr.reverse(tr.interpolate(tr.forward(xr),tr.forward(Nr),Ue))}}return typeof ct.evaluate=="function"?{evaluate:function(){for(var Nr=[],zr=arguments.length;zr--;)Nr[zr]=arguments[zr];var aa=ct.evaluate.apply(void 0,Nr),Ca=Pt.evaluate.apply(void 0,Nr);if(!(aa===void 0||Ca===void 0))return Gt(aa,Ca,Ue)}}:Gt(ct,Pt,Ue)}function Xu(k,C,G){return C.type==="color"?G=_s.parse(G):C.type==="formatted"?G=Pl.fromString(G.toString()):C.type==="resolvedImage"?G=Tl.fromString(G.toString()):go(G)!==C.type&&(C.type!=="enum"||!C.values[G])&&(G=void 0),Wl(G,k.default,C.default)}function ll(k,C,G,oe){var _e=oe-G,ke=k-G;return _e===0?0:C===1?ke/_e:(Math.pow(C,ke)-1)/(Math.pow(C,_e)-1)}var Zu=function(C,G){this.expression=C,this._warningHistory={},this._evaluator=new is,this._defaultValue=G?Se(G):null,this._enumValues=G&&G.type==="enum"?G.values:null};Zu.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._evaluator.globals=C,this._evaluator.feature=G,this._evaluator.featureState=oe,this._evaluator.canonical=_e,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Ue,this.expression.evaluate(this._evaluator)},Zu.prototype.evaluate=function(C,G,oe,_e,ke,Ue){this._evaluator.globals=C,this._evaluator.feature=G||null,this._evaluator.featureState=oe||null,this._evaluator.canonical=_e,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Ue||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!==ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new bs("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};function Yi(k){return Array.isArray(k)&&k.length>0&&typeof k[0]=="string"&&k[0]in ao}function io(k,C){var G=new Bs(ao,[],C?Te(C):void 0),oe=G.parse(k,void 0,void 0,void 0,C&&C.type==="string"?{typeAnnotation:"coerce"}:void 0);return oe?Yo(new Zu(oe,C)):sl(G.errors)}var Yu=function(C,G){this.kind=C,this._styleExpression=G,this.isStateDependent=C!=="constant"&&!el(G.expression)};Yu.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluateWithoutErrorHandling(C,G,oe,_e,ke,Ue)},Yu.prototype.evaluate=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluate(C,G,oe,_e,ke,Ue)};var du=function(C,G,oe,_e){this.kind=C,this.zoomStops=oe,this._styleExpression=G,this.isStateDependent=C!=="camera"&&!el(G.expression),this.interpolationType=_e};du.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluateWithoutErrorHandling(C,G,oe,_e,ke,Ue)},du.prototype.evaluate=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluate(C,G,oe,_e,ke,Ue)},du.prototype.interpolationFactor=function(C,G,oe){return this.interpolationType?Fl.interpolationFactor(this.interpolationType,C,G,oe):0};function iu(k,C){if(k=io(k,C),k.result==="error")return k;var G=k.value.expression,oe=Qc(G);if(!oe&&!nl(C))return sl([new No("","data expressions not supported")]);var _e=ru(G,["zoom"]);if(!_e&&!Ls(C))return sl([new No("","zoom expressions not supported")]);var ke=ne(G);if(!ke&&!_e)return sl([new No("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ke instanceof No)return sl([ke]);if(ke instanceof Fl&&!wi(C))return sl([new No("",'"interpolate" expressions cannot be used with this property')]);if(!ke)return Yo(oe?new Yu("constant",k.value):new Yu("source",k.value));var Ue=ke instanceof Fl?ke.interpolation:void 0;return Yo(oe?new du("camera",k.value,ke.labels,Ue):new du("composite",k.value,ke.labels,Ue))}var ze=function(C,G){this._parameters=C,this._specification=G,Ss(this,Hl(this._parameters,this._specification))};ze.deserialize=function(C){return new ze(C._parameters,C._specification)},ze.serialize=function(C){return{_parameters:C._parameters,_specification:C._specification}};function L(k,C){if(ws(k))return new ze(k,C);if(Yi(k)){var G=iu(k,C);if(G.result==="error")throw new Error(G.value.map(function(_e){return _e.key+": "+_e.message}).join(", "));return G.value}else{var oe=k;return typeof k=="string"&&C.type==="color"&&(oe=_s.parse(k)),{kind:"constant",evaluate:function(){return oe}}}}function ne(k){var C=null;if(k instanceof Wu)C=ne(k.result);else if(k instanceof vu)for(var G=0,oe=k.args;Goe.maximum?[new fi(C,G,G+" is greater than the maximum value "+oe.maximum)]:[]}function Dt(k){var C=k.valueSpec,G=Gi(k.value.type),oe,_e={},ke,Ue,ct=G!=="categorical"&&k.value.property===void 0,Pt=!ct,Gt=go(k.value.stops)==="array"&&go(k.value.stops[0])==="array"&&go(k.value.stops[0][0])==="object",tr=Re({key:k.key,value:k.value,valueSpec:k.styleSpec.function,style:k.style,styleSpec:k.styleSpec,objectElementValidators:{stops:xr,default:aa}});return G==="identity"&&ct&&tr.push(new fi(k.key,k.value,'missing required property "property"')),G!=="identity"&&!k.value.stops&&tr.push(new fi(k.key,k.value,'missing required property "stops"')),G==="exponential"&&k.valueSpec.expression&&!wi(k.valueSpec)&&tr.push(new fi(k.key,k.value,"exponential functions not supported")),k.styleSpec.$version>=8&&(Pt&&!nl(k.valueSpec)?tr.push(new fi(k.key,k.value,"property functions not supported")):ct&&!Ls(k.valueSpec)&&tr.push(new fi(k.key,k.value,"zoom functions not supported"))),(G==="categorical"||Gt)&&k.value.property===void 0&&tr.push(new fi(k.key,k.value,'"property" property is required')),tr;function xr(Ca){if(G==="identity")return[new fi(Ca.key,Ca.value,'identity function may not have a "stops" property')];var gn=[],Qa=Ca.value;return gn=gn.concat(ft({key:Ca.key,value:Qa,valueSpec:Ca.valueSpec,style:Ca.style,styleSpec:Ca.styleSpec,arrayElementValidator:Nr})),go(Qa)==="array"&&Qa.length===0&&gn.push(new fi(Ca.key,Qa,"array must have at least one stop")),gn}function Nr(Ca){var gn=[],Qa=Ca.value,Un=Ca.key;if(go(Qa)!=="array")return[new fi(Un,Qa,"array expected, "+go(Qa)+" found")];if(Qa.length!==2)return[new fi(Un,Qa,"array length 2 expected, length "+Qa.length+" found")];if(Gt){if(go(Qa[0])!=="object")return[new fi(Un,Qa,"object expected, "+go(Qa[0])+" found")];if(Qa[0].zoom===void 0)return[new fi(Un,Qa,"object stop key must have zoom")];if(Qa[0].value===void 0)return[new fi(Un,Qa,"object stop key must have value")];if(Ue&&Ue>Gi(Qa[0].zoom))return[new fi(Un,Qa[0].zoom,"stop zoom values must appear in ascending order")];Gi(Qa[0].zoom)!==Ue&&(Ue=Gi(Qa[0].zoom),ke=void 0,_e={}),gn=gn.concat(Re({key:Un+"[0]",value:Qa[0],valueSpec:{zoom:{}},style:Ca.style,styleSpec:Ca.styleSpec,objectElementValidators:{zoom:xt,value:zr}}))}else gn=gn.concat(zr({key:Un+"[0]",value:Qa[0],style:Ca.style,styleSpec:Ca.styleSpec},Qa));return Yi(js(Qa[1]))?gn.concat([new fi(Un+"[1]",Qa[1],"expressions are not allowed in function stops.")]):gn.concat(Ho({key:Un+"[1]",value:Qa[1],valueSpec:C,style:Ca.style,styleSpec:Ca.styleSpec}))}function zr(Ca,gn){var Qa=go(Ca.value),Un=Gi(Ca.value),Mn=Ca.value!==null?Ca.value:gn;if(!oe)oe=Qa;else if(Qa!==oe)return[new fi(Ca.key,Mn,Qa+" stop domain type must match previous stop domain type "+oe)];if(Qa!=="number"&&Qa!=="string"&&Qa!=="boolean")return[new fi(Ca.key,Mn,"stop domain value must be a number, string, or boolean")];if(Qa!=="number"&&G!=="categorical"){var Nn="number expected, "+Qa+" found";return nl(C)&&G===void 0&&(Nn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fi(Ca.key,Mn,Nn)]}return G==="categorical"&&Qa==="number"&&(!isFinite(Un)||Math.floor(Un)!==Un)?[new fi(Ca.key,Mn,"integer expected, found "+Un)]:G!=="categorical"&&Qa==="number"&&ke!==void 0&&Un=2&&k[1]!=="$id"&&k[1]!=="$type";case"in":return k.length>=3&&(typeof k[1]!="string"||Array.isArray(k[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return k.length!==3||Array.isArray(k[1])||Array.isArray(k[2]);case"any":case"all":for(var C=0,G=k.slice(1);CC?1:0}function vt(k){if(!Array.isArray(k))return!1;if(k[0]==="within")return!0;for(var C=1;C"||C==="<="||C===">="?_t(k[1],k[2],C):C==="any"?Lt(k.slice(1)):C==="all"?["all"].concat(k.slice(1).map(St)):C==="none"?["all"].concat(k.slice(1).map(St).map(gr)):C==="in"?nr(k[1],k.slice(2)):C==="!in"?gr(nr(k[1],k.slice(2))):C==="has"?cr(k[1]):C==="!has"?gr(cr(k[1])):C==="within"?k:!0;return G}function _t(k,C,G){switch(k){case"$type":return["filter-type-"+G,C];case"$id":return["filter-id-"+G,C];default:return["filter-"+G,k,C]}}function Lt(k){return["any"].concat(k.map(St))}function nr(k,C){if(C.length===0)return!1;switch(k){case"$type":return["filter-type-in",["literal",C]];case"$id":return["filter-id-in",["literal",C]];default:return C.length>200&&!C.some(function(G){return typeof G!=typeof C[0]})?["filter-in-large",k,["literal",C.sort(it)]]:["filter-in-small",k,["literal",C]]}}function cr(k){switch(k){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",k]}}function gr(k){return["!",k]}function Cr(k){return ea(js(k.value))?er(Ss({},k,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Wr(k)}function Wr(k){var C=k.value,G=k.key;if(go(C)!=="array")return[new fi(G,C,"array expected, "+go(C)+" found")];var oe=k.styleSpec,_e,ke=[];if(C.length<1)return[new fi(G,C,"filter array must have at least 1 element")];switch(ke=ke.concat(Br({key:G+"[0]",value:C[0],valueSpec:oe.filter_operator,style:k.style,styleSpec:k.styleSpec})),Gi(C[0])){case"<":case"<=":case">":case">=":C.length>=2&&Gi(C[1])==="$type"&&ke.push(new fi(G,C,'"$type" cannot be use with operator "'+C[0]+'"'));case"==":case"!=":C.length!==3&&ke.push(new fi(G,C,'filter array for operator "'+C[0]+'" must have 3 elements'));case"in":case"!in":C.length>=2&&(_e=go(C[1]),_e!=="string"&&ke.push(new fi(G+"[1]",C[1],"string expected, "+_e+" found")));for(var Ue=2;Ue=tr[zr+0]&&oe>=tr[zr+1])?(Ue[Nr]=!0,ke.push(Gt[Nr])):Ue[Nr]=!1}}},$e.prototype._forEachCell=function(k,C,G,oe,_e,ke,Ue,ct){for(var Pt=this._convertToCellCoord(k),Gt=this._convertToCellCoord(C),tr=this._convertToCellCoord(G),xr=this._convertToCellCoord(oe),Nr=Pt;Nr<=tr;Nr++)for(var zr=Gt;zr<=xr;zr++){var aa=this.d*zr+Nr;if(!(ct&&!ct(this._convertFromCellCoord(Nr),this._convertFromCellCoord(zr),this._convertFromCellCoord(Nr+1),this._convertFromCellCoord(zr+1)))&&_e.call(this,k,C,G,oe,aa,ke,Ue,ct))return}},$e.prototype._convertFromCellCoord=function(k){return(k-this.padding)/this.scale},$e.prototype._convertToCellCoord=function(k){return Math.max(0,Math.min(this.d-1,Math.floor(k*this.scale)+this.padding))},$e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var k=this.cells,C=Le+this.cells.length+1+1,G=0,oe=0;oe=0)){var xr=k[tr];Gt[tr]=Tt[Pt].shallow.indexOf(tr)>=0?xr:kr(xr,C)}k instanceof Error&&(Gt.message=k.message)}if(Gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return Pt!=="Object"&&(Gt.$name=Pt),Gt}throw new Error("can't serialize object of type "+typeof k)}function Zr(k){if(k==null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||k instanceof Boolean||k instanceof Number||k instanceof String||k instanceof Date||k instanceof RegExp||sr(k)||Pr(k)||ArrayBuffer.isView(k)||k instanceof dt)return k;if(Array.isArray(k))return k.map(Zr);if(typeof k=="object"){var C=k.$name||"Object",G=Tt[C],oe=G.klass;if(!oe)throw new Error("can't deserialize unregistered class "+C);if(oe.deserialize)return oe.deserialize(k);for(var _e=Object.create(oe.prototype),ke=0,Ue=Object.keys(k);ke=0?Pt:Zr(Pt)}}return _e}throw new Error("can't deserialize object of type "+typeof k)}var la=function(){this.first=!0};la.prototype.update=function(C,G){var oe=Math.floor(C);return this.first?(this.first=!1,this.lastIntegerZoom=oe,this.lastIntegerZoomTime=0,this.lastZoom=C,this.lastFloorZoom=oe,!0):(this.lastFloorZoom>oe?(this.lastIntegerZoom=oe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&k<=255},Arabic:function(k){return k>=1536&&k<=1791},"Arabic Supplement":function(k){return k>=1872&&k<=1919},"Arabic Extended-A":function(k){return k>=2208&&k<=2303},"Hangul Jamo":function(k){return k>=4352&&k<=4607},"Unified Canadian Aboriginal Syllabics":function(k){return k>=5120&&k<=5759},Khmer:function(k){return k>=6016&&k<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(k){return k>=6320&&k<=6399},"General Punctuation":function(k){return k>=8192&&k<=8303},"Letterlike Symbols":function(k){return k>=8448&&k<=8527},"Number Forms":function(k){return k>=8528&&k<=8591},"Miscellaneous Technical":function(k){return k>=8960&&k<=9215},"Control Pictures":function(k){return k>=9216&&k<=9279},"Optical Character Recognition":function(k){return k>=9280&&k<=9311},"Enclosed Alphanumerics":function(k){return k>=9312&&k<=9471},"Geometric Shapes":function(k){return k>=9632&&k<=9727},"Miscellaneous Symbols":function(k){return k>=9728&&k<=9983},"Miscellaneous Symbols and Arrows":function(k){return k>=11008&&k<=11263},"CJK Radicals Supplement":function(k){return k>=11904&&k<=12031},"Kangxi Radicals":function(k){return k>=12032&&k<=12255},"Ideographic Description Characters":function(k){return k>=12272&&k<=12287},"CJK Symbols and Punctuation":function(k){return k>=12288&&k<=12351},Hiragana:function(k){return k>=12352&&k<=12447},Katakana:function(k){return k>=12448&&k<=12543},Bopomofo:function(k){return k>=12544&&k<=12591},"Hangul Compatibility Jamo":function(k){return k>=12592&&k<=12687},Kanbun:function(k){return k>=12688&&k<=12703},"Bopomofo Extended":function(k){return k>=12704&&k<=12735},"CJK Strokes":function(k){return k>=12736&&k<=12783},"Katakana Phonetic Extensions":function(k){return k>=12784&&k<=12799},"Enclosed CJK Letters and Months":function(k){return k>=12800&&k<=13055},"CJK Compatibility":function(k){return k>=13056&&k<=13311},"CJK Unified Ideographs Extension A":function(k){return k>=13312&&k<=19903},"Yijing Hexagram Symbols":function(k){return k>=19904&&k<=19967},"CJK Unified Ideographs":function(k){return k>=19968&&k<=40959},"Yi Syllables":function(k){return k>=40960&&k<=42127},"Yi Radicals":function(k){return k>=42128&&k<=42191},"Hangul Jamo Extended-A":function(k){return k>=43360&&k<=43391},"Hangul Syllables":function(k){return k>=44032&&k<=55215},"Hangul Jamo Extended-B":function(k){return k>=55216&&k<=55295},"Private Use Area":function(k){return k>=57344&&k<=63743},"CJK Compatibility Ideographs":function(k){return k>=63744&&k<=64255},"Arabic Presentation Forms-A":function(k){return k>=64336&&k<=65023},"Vertical Forms":function(k){return k>=65040&&k<=65055},"CJK Compatibility Forms":function(k){return k>=65072&&k<=65103},"Small Form Variants":function(k){return k>=65104&&k<=65135},"Arabic Presentation Forms-B":function(k){return k>=65136&&k<=65279},"Halfwidth and Fullwidth Forms":function(k){return k>=65280&&k<=65519}};function nn(k){for(var C=0,G=k;C=65097&&k<=65103)||ca["CJK Compatibility Ideographs"](k)||ca["CJK Compatibility"](k)||ca["CJK Radicals Supplement"](k)||ca["CJK Strokes"](k)||ca["CJK Symbols and Punctuation"](k)&&!(k>=12296&&k<=12305)&&!(k>=12308&&k<=12319)&&k!==12336||ca["CJK Unified Ideographs Extension A"](k)||ca["CJK Unified Ideographs"](k)||ca["Enclosed CJK Letters and Months"](k)||ca["Hangul Compatibility Jamo"](k)||ca["Hangul Jamo Extended-A"](k)||ca["Hangul Jamo Extended-B"](k)||ca["Hangul Jamo"](k)||ca["Hangul Syllables"](k)||ca.Hiragana(k)||ca["Ideographic Description Characters"](k)||ca.Kanbun(k)||ca["Kangxi Radicals"](k)||ca["Katakana Phonetic Extensions"](k)||ca.Katakana(k)&&k!==12540||ca["Halfwidth and Fullwidth Forms"](k)&&k!==65288&&k!==65289&&k!==65293&&!(k>=65306&&k<=65310)&&k!==65339&&k!==65341&&k!==65343&&!(k>=65371&&k<=65503)&&k!==65507&&!(k>=65512&&k<=65519)||ca["Small Form Variants"](k)&&!(k>=65112&&k<=65118)&&!(k>=65123&&k<=65126)||ca["Unified Canadian Aboriginal Syllabics"](k)||ca["Unified Canadian Aboriginal Syllabics Extended"](k)||ca["Vertical Forms"](k)||ca["Yijing Hexagram Symbols"](k)||ca["Yi Syllables"](k)||ca["Yi Radicals"](k))}function sn(k){return!!(ca["Latin-1 Supplement"](k)&&(k===167||k===169||k===174||k===177||k===188||k===189||k===190||k===215||k===247)||ca["General Punctuation"](k)&&(k===8214||k===8224||k===8225||k===8240||k===8241||k===8251||k===8252||k===8258||k===8263||k===8264||k===8265||k===8273)||ca["Letterlike Symbols"](k)||ca["Number Forms"](k)||ca["Miscellaneous Technical"](k)&&(k>=8960&&k<=8967||k>=8972&&k<=8991||k>=8996&&k<=9e3||k===9003||k>=9085&&k<=9114||k>=9150&&k<=9165||k===9167||k>=9169&&k<=9179||k>=9186&&k<=9215)||ca["Control Pictures"](k)&&k!==9251||ca["Optical Character Recognition"](k)||ca["Enclosed Alphanumerics"](k)||ca["Geometric Shapes"](k)||ca["Miscellaneous Symbols"](k)&&!(k>=9754&&k<=9759)||ca["Miscellaneous Symbols and Arrows"](k)&&(k>=11026&&k<=11055||k>=11088&&k<=11097||k>=11192&&k<=11243)||ca["CJK Symbols and Punctuation"](k)||ca.Katakana(k)||ca["Private Use Area"](k)||ca["CJK Compatibility Forms"](k)||ca["Small Form Variants"](k)||ca["Halfwidth and Fullwidth Forms"](k)||k===8734||k===8756||k===8757||k>=9984&&k<=10087||k>=10102&&k<=10131||k===65532||k===65533)}function Ba(k){return!(rn(k)||sn(k))}function Rn(k){return ca.Arabic(k)||ca["Arabic Supplement"](k)||ca["Arabic Extended-A"](k)||ca["Arabic Presentation Forms-A"](k)||ca["Arabic Presentation Forms-B"](k)}function ni(k){return k>=1424&&k<=2303||ca["Arabic Presentation Forms-A"](k)||ca["Arabic Presentation Forms-B"](k)}function Zn(k,C){return!(!C&&ni(k)||k>=2304&&k<=3583||k>=3840&&k<=4255||ca.Khmer(k))}function ri(k){for(var C=0,G=k;C-1&&(Ii=ki.error),Vo&&Vo(k)};function hl(){Ns.fire(new Or("pluginStateChange",{pluginStatus:Ii,pluginURL:lo}))}var Ns=new Dr,di=function(){return Ii},Lo=function(k){return k({pluginStatus:Ii,pluginURL:lo}),Ns.on("pluginStateChange",k),k},Wo=function(k,C,G){if(G===void 0&&(G=!1),Ii===ki.deferred||Ii===ki.loading||Ii===ki.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");lo=xe.resolveURL(k),Ii=ki.deferred,Vo=C,hl(),G||Ds()},Ds=function(){if(Ii!==ki.deferred||!lo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ii=ki.loading,hl(),lo&&ha({url:lo},function(k){k?$o(k):(Ii=ki.loaded,hl())})},Ts={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ii===ki.loaded||Ts.applyArabicShaping!=null},isLoading:function(){return Ii===ki.loading},setState:function(C){Ii=C.pluginStatus,lo=C.pluginURL},isParsed:function(){return Ts.applyArabicShaping!=null&&Ts.processBidirectionalText!=null&&Ts.processStyledBidirectionalText!=null},getPluginURL:function(){return lo}},Kl=function(){!Ts.isLoading()&&!Ts.isLoaded()&&di()==="deferred"&&Ds()},ds=function(C,G){this.zoom=C,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new la,this.transition={})};ds.prototype.isSupportedScript=function(C){return Ti(C,Ts.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var C=this.zoom,G=C-Math.floor(C),oe=this.crossFadingFactor();return C>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*oe}:{fromScale:.5,toScale:1,t:1-(1-oe)*G}};var zs=function(C,G){this.property=C,this.value=G,this.expression=L(G===void 0?C.specification.default:G,C.specification)};zs.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},zs.prototype.possiblyEvaluate=function(C,G,oe){return this.property.possiblyEvaluate(this,C,G,oe)};var pu=function(C){this.property=C,this.value=new zs(C,void 0)};pu.prototype.transitioned=function(C,G){return new lt(this.property,this.value,G,_({},C.transition,this.transition),C.now)},pu.prototype.untransitioned=function(){return new lt(this.property,this.value,null,{},0)};var ul=function(C){this._properties=C,this._values=Object.create(C.defaultTransitionablePropertyValues)};ul.prototype.getValue=function(C){return O(this._values[C].value.value)},ul.prototype.setValue=function(C,G){this._values.hasOwnProperty(C)||(this._values[C]=new pu(this._values[C].property)),this._values[C].value=new zs(this._values[C].property,G===null?void 0:O(G))},ul.prototype.getTransition=function(C){return O(this._values[C].transition)},ul.prototype.setTransition=function(C,G){this._values.hasOwnProperty(C)||(this._values[C]=new pu(this._values[C].property)),this._values[C].transition=O(G)||void 0},ul.prototype.serialize=function(){for(var C={},G=0,oe=Object.keys(this._values);Gthis.end)return this.prior=null,ke;if(this.value.isDataDriven())return this.prior=null,ke;if(_eUe.zoomHistory.lastIntegerZoom?{from:oe,to:_e}:{from:ke,to:_e}},C.prototype.interpolate=function(oe){return oe},C}(Kr),ln=function(C){this.specification=C};ln.prototype.possiblyEvaluate=function(C,G,oe,_e){if(C.value!==void 0)if(C.expression.kind==="constant"){var ke=C.expression.evaluate(G,null,{},oe,_e);return this._calculate(ke,ke,ke,G)}else return this._calculate(C.expression.evaluate(new ds(Math.floor(G.zoom-1),G)),C.expression.evaluate(new ds(Math.floor(G.zoom),G)),C.expression.evaluate(new ds(Math.floor(G.zoom+1),G)),G)},ln.prototype._calculate=function(C,G,oe,_e){var ke=_e.zoom;return ke>_e.zoomHistory.lastIntegerZoom?{from:C,to:G}:{from:oe,to:G}},ln.prototype.interpolate=function(C){return C};var un=function(C){this.specification=C};un.prototype.possiblyEvaluate=function(C,G,oe,_e){return!!C.expression.evaluate(G,null,{},oe,_e)},un.prototype.interpolate=function(){return!1};var wn=function(C){this.properties=C,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var G in C){var oe=C[G];oe.specification.overridable&&this.overridableProperties.push(G);var _e=this.defaultPropertyValues[G]=new zs(oe,void 0),ke=this.defaultTransitionablePropertyValues[G]=new pu(oe);this.defaultTransitioningPropertyValues[G]=ke.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=_e.possiblyEvaluate({})}};Vt("DataDrivenProperty",Kr),Vt("DataConstantProperty",Jr),Vt("CrossFadedDataDrivenProperty",cn),Vt("CrossFadedProperty",ln),Vt("ColorRampProperty",un);var Jn="-transition",jn=function(k){function C(G,oe){if(k.call(this),this.id=G.id,this.type=G.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},G.type!=="custom"&&(G=G,this.metadata=G.metadata,this.minzoom=G.minzoom,this.maxzoom=G.maxzoom,G.type!=="background"&&(this.source=G.source,this.sourceLayer=G["source-layer"],this.filter=G.filter),oe.layout&&(this._unevaluatedLayout=new ur(oe.layout)),oe.paint)){this._transitionablePaint=new ul(oe.paint);for(var _e in G.paint)this.setPaintProperty(_e,G.paint[_e],{validate:!1});for(var ke in G.layout)this.setLayoutProperty(ke,G.layout[ke],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Va(oe.paint)}}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},C.prototype.getLayoutProperty=function(oe){return oe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(oe)},C.prototype.setLayoutProperty=function(oe,_e,ke){if(ke===void 0&&(ke={}),_e!=null){var Ue="layers."+this.id+".layout."+oe;if(this._validate(Dl,Ue,oe,_e,ke))return}if(oe==="visibility"){this.visibility=_e;return}this._unevaluatedLayout.setValue(oe,_e)},C.prototype.getPaintProperty=function(oe){return z(oe,Jn)?this._transitionablePaint.getTransition(oe.slice(0,-Jn.length)):this._transitionablePaint.getValue(oe)},C.prototype.setPaintProperty=function(oe,_e,ke){if(ke===void 0&&(ke={}),_e!=null){var Ue="layers."+this.id+".paint."+oe;if(this._validate(fl,Ue,oe,_e,ke))return!1}if(z(oe,Jn))return this._transitionablePaint.setTransition(oe.slice(0,-Jn.length),_e||void 0),!1;var ct=this._transitionablePaint._values[oe],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",Gt=ct.value.isDataDriven(),tr=ct.value;this._transitionablePaint.setValue(oe,_e),this._handleSpecialPaintPropertyUpdate(oe);var xr=this._transitionablePaint._values[oe].value,Nr=xr.isDataDriven();return Nr||Gt||Pt||this._handleOverridablePaintPropertyUpdate(oe,tr,xr)},C.prototype._handleSpecialPaintPropertyUpdate=function(oe){},C.prototype._handleOverridablePaintPropertyUpdate=function(oe,_e,ke){return!1},C.prototype.isHidden=function(oe){return this.minzoom&&oe=this.maxzoom?!0:this.visibility==="none"},C.prototype.updateTransitions=function(oe){this._transitioningPaint=this._transitionablePaint.transitioned(oe,this._transitioningPaint)},C.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},C.prototype.recalculate=function(oe,_e){oe.getCrossfadeParameters&&(this._crossfadeParameters=oe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(oe,void 0,_e)),this.paint=this._transitioningPaint.possiblyEvaluate(oe,void 0,_e)},C.prototype.serialize=function(){var oe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(oe.layout=oe.layout||{},oe.layout.visibility=this.visibility),B(oe,function(_e,ke){return _e!==void 0&&!(ke==="layout"&&!Object.keys(_e).length)&&!(ke==="paint"&&!Object.keys(_e).length)})},C.prototype._validate=function(oe,_e,ke,Ue,ct){return ct===void 0&&(ct={}),ct&&ct.validate===!1?!1:ou(this,oe.call(ko,{key:_e,layerType:this.type,objectKey:ke,value:Ue,styleSpec:kn,style:{glyphs:!0,sprite:!0}}))},C.prototype.is3D=function(){return!1},C.prototype.isTileClipped=function(){return!1},C.prototype.hasOffscreenPass=function(){return!1},C.prototype.resize=function(){},C.prototype.isStateDependent=function(){for(var oe in this.paint._values){var _e=this.paint.get(oe);if(!(!(_e instanceof fa)||!nl(_e.property.specification))&&(_e.value.kind==="source"||_e.value.kind==="composite")&&_e.value.isStateDependent)return!0}return!1},C}(Dr),xn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Za=function(C,G){this._structArray=C,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ur=128,ya=5,Ra=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ra.serialize=function(C,G){return C._trim(),G&&(C.isTransferred=!0,G.push(C.arrayBuffer)),{length:C.length,arrayBuffer:C.arrayBuffer}},Ra.deserialize=function(C){var G=Object.create(this.prototype);return G.arrayBuffer=C.arrayBuffer,G.length=C.length,G.capacity=C.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ra.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ra.prototype.clear=function(){this.length=0},Ra.prototype.resize=function(C){this.reserve(C),this.length=C},Ra.prototype.reserve=function(C){if(C>this.capacity){this.capacity=Math.max(C,Math.floor(this.capacity*ya),Ur),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ra.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function $a(k,C){C===void 0&&(C=1);var G=0,oe=0,_e=k.map(function(Ue){var ct=Fa(Ue.type),Pt=G=Bn(G,Math.max(C,ct)),Gt=Ue.components||1;return oe=Math.max(oe,ct),G+=ct*Gt,{name:Ue.name,type:Ue.type,components:Gt,offset:Pt}}),ke=Bn(G,Math.max(oe,C));return{members:_e,size:ke,alignment:C}}function Fa(k){return xn[k].BYTES_PER_ELEMENT}function Bn(k,C){return Math.ceil(k/C)*C}var pn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.int16[Ue+0]=_e,this.int16[Ue+1]=ke,oe},C}(Ra);pn.prototype.bytesPerElement=4,Vt("StructArrayLayout2i4",pn);var Xn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*4;return this.int16[Pt+0]=_e,this.int16[Pt+1]=ke,this.int16[Pt+2]=Ue,this.int16[Pt+3]=ct,oe},C}(Ra);Xn.prototype.bytesPerElement=8,Vt("StructArrayLayout4i8",Xn);var Oa=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*6;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.int16[tr+2]=Ue,this.int16[tr+3]=ct,this.int16[tr+4]=Pt,this.int16[tr+5]=Gt,oe},C}(Ra);Oa.prototype.bytesPerElement=12,Vt("StructArrayLayout2i4i12",Oa);var Ea=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*4,xr=oe*8;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.uint8[xr+4]=Ue,this.uint8[xr+5]=ct,this.uint8[xr+6]=Pt,this.uint8[xr+7]=Gt,oe},C}(Ra);Ea.prototype.bytesPerElement=8,Vt("StructArrayLayout2i4ub8",Ea);var Dn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.float32[Ue+0]=_e,this.float32[Ue+1]=ke,oe},C}(Ra);Dn.prototype.bytesPerElement=8,Vt("StructArrayLayout2f8",Dn);var da=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr){var zr=this.length;return this.resize(zr+1),this.emplace(zr,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr){var aa=oe*10;return this.uint16[aa+0]=_e,this.uint16[aa+1]=ke,this.uint16[aa+2]=Ue,this.uint16[aa+3]=ct,this.uint16[aa+4]=Pt,this.uint16[aa+5]=Gt,this.uint16[aa+6]=tr,this.uint16[aa+7]=xr,this.uint16[aa+8]=Nr,this.uint16[aa+9]=zr,oe},C}(Ra);da.prototype.bytesPerElement=20,Vt("StructArrayLayout10ui20",da);var An=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa){var Ca=this.length;return this.resize(Ca+1),this.emplace(Ca,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca){var gn=oe*12;return this.int16[gn+0]=_e,this.int16[gn+1]=ke,this.int16[gn+2]=Ue,this.int16[gn+3]=ct,this.uint16[gn+4]=Pt,this.uint16[gn+5]=Gt,this.uint16[gn+6]=tr,this.uint16[gn+7]=xr,this.int16[gn+8]=Nr,this.int16[gn+9]=zr,this.int16[gn+10]=aa,this.int16[gn+11]=Ca,oe},C}(Ra);An.prototype.bytesPerElement=24,Vt("StructArrayLayout4i4ui4i24",An);var fn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.float32[ct+0]=_e,this.float32[ct+1]=ke,this.float32[ct+2]=Ue,oe},C}(Ra);fn.prototype.bytesPerElement=12,Vt("StructArrayLayout3f12",fn);var Yn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.uint32[ke+0]=_e,oe},C}(Ra);Yn.prototype.bytesPerElement=4,Vt("StructArrayLayout1ul4",Yn);var Pi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr){var Nr=this.length;return this.resize(Nr+1),this.emplace(Nr,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr){var zr=oe*10,aa=oe*5;return this.int16[zr+0]=_e,this.int16[zr+1]=ke,this.int16[zr+2]=Ue,this.int16[zr+3]=ct,this.int16[zr+4]=Pt,this.int16[zr+5]=Gt,this.uint32[aa+3]=tr,this.uint16[zr+8]=xr,this.uint16[zr+9]=Nr,oe},C}(Ra);Pi.prototype.bytesPerElement=20,Vt("StructArrayLayout6i1ul2ui20",Pi);var Vn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*6;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.int16[tr+2]=Ue,this.int16[tr+3]=ct,this.int16[tr+4]=Pt,this.int16[tr+5]=Gt,oe},C}(Ra);Vn.prototype.bytesPerElement=12,Vt("StructArrayLayout2i2i2i12",Vn);var ei=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,oe,_e,ke,Ue,ct)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt){var Gt=oe*4,tr=oe*8;return this.float32[Gt+0]=_e,this.float32[Gt+1]=ke,this.float32[Gt+2]=Ue,this.int16[tr+6]=ct,this.int16[tr+7]=Pt,oe},C}(Ra);ei.prototype.bytesPerElement=16,Vt("StructArrayLayout2f1f2i16",ei);var bn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*12,Gt=oe*3;return this.uint8[Pt+0]=_e,this.uint8[Pt+1]=ke,this.float32[Gt+1]=Ue,this.float32[Gt+2]=ct,oe},C}(Ra);bn.prototype.bytesPerElement=12,Vt("StructArrayLayout2ub2f12",bn);var Mi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.uint16[ct+0]=_e,this.uint16[ct+1]=ke,this.uint16[ct+2]=Ue,oe},C}(Ra);Mi.prototype.bytesPerElement=6,Vt("StructArrayLayout3ui6",Mi);var Xi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn){var Hn=oe*24,si=oe*12,Ai=oe*48;return this.int16[Hn+0]=_e,this.int16[Hn+1]=ke,this.uint16[Hn+2]=Ue,this.uint16[Hn+3]=ct,this.uint32[si+2]=Pt,this.uint32[si+3]=Gt,this.uint32[si+4]=tr,this.uint16[Hn+10]=xr,this.uint16[Hn+11]=Nr,this.uint16[Hn+12]=zr,this.float32[si+7]=aa,this.float32[si+8]=Ca,this.uint8[Ai+36]=gn,this.uint8[Ai+37]=Qa,this.uint8[Ai+38]=Un,this.uint32[si+10]=Mn,this.int16[Hn+22]=Nn,oe},C}(Ra);Xi.prototype.bytesPerElement=48,Vt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Xi);var eo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po){var Ps=this.length;return this.resize(Ps+1),this.emplace(Ps,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po,Ps){var Jo=oe*34,yl=oe*17;return this.int16[Jo+0]=_e,this.int16[Jo+1]=ke,this.int16[Jo+2]=Ue,this.int16[Jo+3]=ct,this.int16[Jo+4]=Pt,this.int16[Jo+5]=Gt,this.int16[Jo+6]=tr,this.int16[Jo+7]=xr,this.uint16[Jo+8]=Nr,this.uint16[Jo+9]=zr,this.uint16[Jo+10]=aa,this.uint16[Jo+11]=Ca,this.uint16[Jo+12]=gn,this.uint16[Jo+13]=Qa,this.uint16[Jo+14]=Un,this.uint16[Jo+15]=Mn,this.uint16[Jo+16]=Nn,this.uint16[Jo+17]=Hn,this.uint16[Jo+18]=si,this.uint16[Jo+19]=Ai,this.uint16[Jo+20]=xi,this.uint16[Jo+21]=uo,this.uint16[Jo+22]=ji,this.uint32[yl+12]=Qi,this.float32[yl+13]=ns,this.float32[yl+14]=co,this.float32[yl+15]=po,this.float32[yl+16]=Ps,oe},C}(Ra);eo.prototype.bytesPerElement=68,Vt("StructArrayLayout8i15ui1ul4f68",eo);var ts=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.float32[ke+0]=_e,oe},C}(Ra);ts.prototype.bytesPerElement=4,Vt("StructArrayLayout1f4",ts);var to=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.int16[ct+0]=_e,this.int16[ct+1]=ke,this.int16[ct+2]=Ue,oe},C}(Ra);to.prototype.bytesPerElement=6,Vt("StructArrayLayout3i6",to);var il=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*2,Pt=oe*4;return this.uint32[ct+0]=_e,this.uint16[Pt+2]=ke,this.uint16[Pt+3]=Ue,oe},C}(Ra);il.prototype.bytesPerElement=8,Vt("StructArrayLayout1ul2ui8",il);var Xo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.uint16[Ue+0]=_e,this.uint16[Ue+1]=ke,oe},C}(Ra);Xo.prototype.bytesPerElement=4,Vt("StructArrayLayout2ui4",Xo);var Qs=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.uint16[ke+0]=_e,oe},C}(Ra);Qs.prototype.bytesPerElement=2,Vt("StructArrayLayout1ui2",Qs);var pl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*4;return this.float32[Pt+0]=_e,this.float32[Pt+1]=ke,this.float32[Pt+2]=Ue,this.float32[Pt+3]=ct,oe},C}(Ra);pl.prototype.bytesPerElement=16,Vt("StructArrayLayout4f16",pl);var El=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return G.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},G.x1.get=function(){return this._structArray.int16[this._pos2+2]},G.y1.get=function(){return this._structArray.int16[this._pos2+3]},G.x2.get=function(){return this._structArray.int16[this._pos2+4]},G.y2.get=function(){return this._structArray.int16[this._pos2+5]},G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.anchorPoint.get=function(){return new o(this.anchorPointX,this.anchorPointY)},Object.defineProperties(C.prototype,G),C}(Za);El.prototype.size=20;var zu=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new El(this,oe)},C}(Pi);Vt("CollisionBoxArray",zu);var Us=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},G.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},G.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},G.segment.get=function(){return this._structArray.uint16[this._pos2+10]},G.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},G.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},G.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},G.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},G.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},G.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},G.placedOrientation.set=function(oe){this._structArray.uint8[this._pos1+37]=oe},G.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},G.hidden.set=function(oe){this._structArray.uint8[this._pos1+38]=oe},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},G.crossTileID.set=function(oe){this._structArray.uint32[this._pos4+10]=oe},G.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(C.prototype,G),C}(Za);Us.prototype.size=48;var $s=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new Us(this,oe)},C}(Xi);Vt("PlacedSymbolArray",$s);var mi=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},G.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},G.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},G.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},G.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},G.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},G.key.get=function(){return this._structArray.uint16[this._pos2+8]},G.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},G.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},G.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},G.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},G.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},G.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},G.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},G.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},G.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},G.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},G.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},G.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},G.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},G.crossTileID.set=function(oe){this._structArray.uint32[this._pos4+12]=oe},G.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},G.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},G.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},G.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(C.prototype,G),C}(Za);mi.prototype.size=68;var kl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new mi(this,oe)},C}(eo);Vt("SymbolInstanceArray",kl);var Oo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getoffsetX=function(oe){return this.float32[oe*1+0]},C}(ts);Vt("GlyphOffsetArray",Oo);var As=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getx=function(oe){return this.int16[oe*3+0]},C.prototype.gety=function(oe){return this.int16[oe*3+1]},C.prototype.gettileUnitDistanceFromAnchor=function(oe){return this.int16[oe*3+2]},C}(to);Vt("SymbolLineVertexArray",As);var Ol=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(C.prototype,G),C}(Za);Ol.prototype.size=8;var Bl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new Ol(this,oe)},C}(il);Vt("FeatureIndexArray",Bl);var Ci=$a([{name:"a_pos",components:2,type:"Int16"}],4),fo=Ci.members,mo=function(C){C===void 0&&(C=[]),this.segments=C};mo.prototype.prepareSegment=function(C,G,oe,_e){var ke=this.segments[this.segments.length-1];return C>mo.MAX_VERTEX_ARRAY_LENGTH&&U("Max vertices per segment is "+mo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+C),(!ke||ke.vertexLength+C>mo.MAX_VERTEX_ARRAY_LENGTH||ke.sortKey!==_e)&&(ke={vertexOffset:G.length,primitiveOffset:oe.length,vertexLength:0,primitiveLength:0},_e!==void 0&&(ke.sortKey=_e),this.segments.push(ke)),ke},mo.prototype.get=function(){return this.segments},mo.prototype.destroy=function(){for(var C=0,G=this.segments;C>>16)*Pt&65535)<<16)&4294967295,tr=tr<<15|tr>>>17,tr=(tr&65535)*Gt+(((tr>>>16)*Gt&65535)<<16)&4294967295,Ue^=tr,Ue=Ue<<13|Ue>>>19,ct=(Ue&65535)*5+(((Ue>>>16)*5&65535)<<16)&4294967295,Ue=(ct&65535)+27492+(((ct>>>16)+58964&65535)<<16);switch(tr=0,_e){case 3:tr^=(G.charCodeAt(xr+2)&255)<<16;case 2:tr^=(G.charCodeAt(xr+1)&255)<<8;case 1:tr^=G.charCodeAt(xr)&255,tr=(tr&65535)*Pt+(((tr>>>16)*Pt&65535)<<16)&4294967295,tr=tr<<15|tr>>>17,tr=(tr&65535)*Gt+(((tr>>>16)*Gt&65535)<<16)&4294967295,Ue^=tr}return Ue^=G.length,Ue^=Ue>>>16,Ue=(Ue&65535)*2246822507+(((Ue>>>16)*2246822507&65535)<<16)&4294967295,Ue^=Ue>>>13,Ue=(Ue&65535)*3266489909+(((Ue>>>16)*3266489909&65535)<<16)&4294967295,Ue^=Ue>>>16,Ue>>>0}k.exports=C}),$=t(function(k){function C(G,oe){for(var _e=G.length,ke=oe^_e,Ue=0,ct;_e>=4;)ct=G.charCodeAt(Ue)&255|(G.charCodeAt(++Ue)&255)<<8|(G.charCodeAt(++Ue)&255)<<16|(G.charCodeAt(++Ue)&255)<<24,ct=(ct&65535)*1540483477+(((ct>>>16)*1540483477&65535)<<16),ct^=ct>>>24,ct=(ct&65535)*1540483477+(((ct>>>16)*1540483477&65535)<<16),ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16)^ct,_e-=4,++Ue;switch(_e){case 3:ke^=(G.charCodeAt(Ue+2)&255)<<16;case 2:ke^=(G.charCodeAt(Ue+1)&255)<<8;case 1:ke^=G.charCodeAt(Ue)&255,ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16)}return ke^=ke>>>13,ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16),ke^=ke>>>15,ke>>>0}k.exports=C}),ge=ce,Be=ce,rt=$;ge.murmur3=Be,ge.murmur2=rt;var st=function(){this.ids=[],this.positions=[],this.indexed=!1};st.prototype.add=function(C,G,oe,_e){this.ids.push(Qe(C)),this.positions.push(G,oe,_e)},st.prototype.getPositions=function(C){for(var G=Qe(C),oe=0,_e=this.ids.length-1;oe<_e;){var ke=oe+_e>>1;this.ids[ke]>=G?_e=ke:oe=ke+1}for(var Ue=[];this.ids[oe]===G;){var ct=this.positions[3*oe],Pt=this.positions[3*oe+1],Gt=this.positions[3*oe+2];Ue.push({index:ct,start:Pt,end:Gt}),oe++}return Ue},st.serialize=function(C,G){var oe=new Float64Array(C.ids),_e=new Uint32Array(C.positions);return pt(oe,_e,0,oe.length-1),G&&G.push(oe.buffer,_e.buffer),{ids:oe,positions:_e}},st.deserialize=function(C){var G=new st;return G.ids=C.ids,G.positions=C.positions,G.indexed=!0,G};var Ge=Math.pow(2,53)-1;function Qe(k){var C=+k;return!isNaN(C)&&C<=Ge?C:ge(String(k))}function pt(k,C,G,oe){for(;G>1],ke=G-1,Ue=oe+1;;){do ke++;while(k[ke]<_e);do Ue--;while(k[Ue]>_e);if(ke>=Ue)break;Bt(k,ke,Ue),Bt(C,3*ke,3*Ue),Bt(C,3*ke+1,3*Ue+1),Bt(C,3*ke+2,3*Ue+2)}Ue-GUe.x+1||PtUe.y+1)&&U("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return G}function fs(k,C){return{type:k.type,id:k.id,properties:k.properties,geometry:C?rs(k):[]}}function ls(k,C,G,oe,_e){k.emplaceBack(C*2+(oe+1)/2,G*2+(_e+1)/2)}var Cl=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new pn,this.indexArray=new Mi,this.segments=new mo,this.programConfigurations=new qa(C.layers,C.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Cl.prototype.populate=function(C,G,oe){var _e=this.layers[0],ke=[],Ue=null;_e.type==="circle"&&(Ue=_e.layout.get("circle-sort-key"));for(var ct=0,Pt=C;ct=ti||Nr<0||Nr>=ti)){var zr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,C.sortKey),aa=zr.vertexLength;ls(this.layoutVertexArray,xr,Nr,-1,-1),ls(this.layoutVertexArray,xr,Nr,1,-1),ls(this.layoutVertexArray,xr,Nr,1,1),ls(this.layoutVertexArray,xr,Nr,-1,1),this.indexArray.emplaceBack(aa,aa+1,aa+2),this.indexArray.emplaceBack(aa,aa+3,aa+2),zr.vertexLength+=4,zr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,C,oe,{},_e)},Vt("CircleBucket",Cl,{omit:["layers"]});function Qo(k,C){for(var G=0;G=3){for(var ke=0;ke<_e.length;ke++)if(Gf(k,_e[ke]))return!0}if(yh(k,_e,G))return!0}return!1}function yh(k,C,G){if(k.length>1){if(_h(k,C))return!0;for(var oe=0;oe1?k.distSqr(G):k.distSqr(G.sub(C)._mult(_e)._add(C))}function Fh(k,C){for(var G=!1,oe,_e,ke,Ue=0;UeC.y!=ke.y>C.y&&C.x<(ke.x-_e.x)*(C.y-_e.y)/(ke.y-_e.y)+_e.x&&(G=!G)}return G}function Gf(k,C){for(var G=!1,oe=0,_e=k.length-1;oeC.y!=Ue.y>C.y&&C.x<(Ue.x-ke.x)*(C.y-ke.y)/(Ue.y-ke.y)+ke.x&&(G=!G)}return G}function Oh(k,C,G,oe,_e){for(var ke=0,Ue=k;ke=ct.x&&_e>=ct.y)return!0}var Pt=[new o(C,G),new o(C,_e),new o(oe,_e),new o(oe,G)];if(k.length>2)for(var Gt=0,tr=Pt;Gt_e.x&&C.x>_e.x||k.y_e.y&&C.y>_e.y)return!1;var ke=X(k,C,G[0]);return ke!==X(k,C,G[1])||ke!==X(k,C,G[2])||ke!==X(k,C,G[3])}function Hf(k,C,G){var oe=C.paint.get(k).value;return oe.kind==="constant"?oe.value:G.programConfigurations.get(C.id).getMaxValue(k)}function xh(k){return Math.sqrt(k[0]*k[0]+k[1]*k[1])}function Ph(k,C,G,oe,_e){if(!C[0]&&!C[1])return k;var ke=o.convert(C)._mult(_e);G==="viewport"&&ke._rotate(-oe);for(var Ue=[],ct=0;ct0&&(ke=1/Math.sqrt(ke)),k[0]=C[0]*ke,k[1]=C[1]*ke,k[2]=C[2]*ke,k}function Cx(k,C){return k[0]*C[0]+k[1]*C[1]+k[2]*C[2]}function Lx(k,C,G){var oe=C[0],_e=C[1],ke=C[2],Ue=G[0],ct=G[1],Pt=G[2];return k[0]=_e*Pt-ke*ct,k[1]=ke*Ue-oe*Pt,k[2]=oe*ct-_e*Ue,k}function Px(k,C,G){var oe=C[0],_e=C[1],ke=C[2];return k[0]=oe*G[0]+_e*G[3]+ke*G[6],k[1]=oe*G[1]+_e*G[4]+ke*G[7],k[2]=oe*G[2]+_e*G[5]+ke*G[8],k}var Ix=Cv;(function(){var k=kv();return function(C,G,oe,_e,ke,Ue){var ct,Pt;for(G||(G=3),oe||(oe=0),_e?Pt=Math.min(_e*G+oe,C.length):Pt=C.length,ct=oe;ctk.width||_e.height>k.height||G.x>k.width-_e.width||G.y>k.height-_e.height)throw new RangeError("out of range source coordinates for image copy");if(_e.width>C.width||_e.height>C.height||oe.x>C.width-_e.width||oe.y>C.height-_e.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ue=k.data,ct=C.data,Pt=0;Pt<_e.height;Pt++)for(var Gt=((G.y+Pt)*k.width+G.x)*ke,tr=((oe.y+Pt)*C.width+oe.x)*ke,xr=0;xr<_e.width*ke;xr++)ct[tr+xr]=Ue[Gt+xr];return C}var af=function(C,G){gg(this,C,1,G)};af.prototype.resize=function(C){mg(this,C,1)},af.prototype.clone=function(){return new af({width:this.width,height:this.height},new Uint8Array(this.data))},af.copy=function(C,G,oe,_e,ke){a0(C,G,oe,_e,ke,1)};var Df=function(C,G){gg(this,C,4,G)};Df.prototype.resize=function(C){mg(this,C,4)},Df.prototype.replace=function(C,G){G?this.data.set(C):C instanceof Uint8ClampedArray?this.data=new Uint8Array(C.buffer):this.data=C},Df.prototype.clone=function(){return new Df({width:this.width,height:this.height},new Uint8Array(this.data))},Df.copy=function(C,G,oe,_e,ke){a0(C,G,oe,_e,ke,4)},Vt("AlphaImage",af),Vt("RGBAImage",Df);var ny=new wn({"heatmap-radius":new Kr(kn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Kr(kn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Jr(kn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new un(kn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Jr(kn.paint_heatmap["heatmap-opacity"])}),Lv={paint:ny};function _d(k){var C={},G=k.resolution||256,oe=k.clips?k.clips.length:1,_e=k.image||new Df({width:G,height:oe}),ke=function(Un,Mn,Nn){C[k.evaluationKey]=Nn;var Hn=k.expression.evaluate(C);_e.data[Un+Mn+0]=Math.floor(Hn.r*255/Hn.a),_e.data[Un+Mn+1]=Math.floor(Hn.g*255/Hn.a),_e.data[Un+Mn+2]=Math.floor(Hn.b*255/Hn.a),_e.data[Un+Mn+3]=Math.floor(Hn.a*255)};if(k.clips)for(var Gt=0,tr=0;Gt80*G){ct=Gt=k[0],Pt=tr=k[1];for(var aa=G;aa<_e;aa+=G)xr=k[aa],Nr=k[aa+1],xrGt&&(Gt=xr),Nr>tr&&(tr=Nr);zr=Math.max(Gt-ct,tr-Pt),zr=zr!==0?1/zr:0}return $v(ke,Ue,G,ct,Pt,zr),Ue}function yg(k,C,G,oe,_e){var ke,Ue;if(_e===Ag(k,C,G,oe)>0)for(ke=C;ke=C;ke-=oe)Ue=uy(ke,k[ke],k[ke+1],Ue);return Ue&&bd(Ue,Ue.next)&&(mp(Ue),Ue=Ue.next),Ue}function vv(k,C){if(!k)return k;C||(C=k);var G=k,oe;do if(oe=!1,!G.steiner&&(bd(G,G.next)||mc(G.prev,G,G.next)===0)){if(mp(G),G=C=G.prev,G===G.next)break;oe=!0}else G=G.next;while(oe||G!==C);return C}function $v(k,C,G,oe,_e,ke,Ue){if(k){!Ue&&ke&&xg(k,oe,_e,ke);for(var ct=k,Pt,Gt;k.prev!==k.next;){if(Pt=k.prev,Gt=k.next,ke?Nx(k,oe,_e,ke):_g(k)){C.push(Pt.i/G),C.push(k.i/G),C.push(Gt.i/G),mp(k),k=Gt.next,ct=Gt.next;continue}if(k=Gt,k===ct){Ue?Ue===1?(k=Ux(vv(k),C,G),$v(k,C,G,oe,_e,ke,2)):Ue===2&&oy(k,C,G,oe,_e,ke):$v(vv(k),C,G,oe,_e,ke,1);break}}}}function _g(k){var C=k.prev,G=k,oe=k.next;if(mc(C,G,oe)>=0)return!1;for(var _e=k.next.next;_e!==k.prev;){if(Iv(C.x,C.y,G.x,G.y,oe.x,oe.y,_e.x,_e.y)&&mc(_e.prev,_e,_e.next)>=0)return!1;_e=_e.next}return!0}function Nx(k,C,G,oe){var _e=k.prev,ke=k,Ue=k.next;if(mc(_e,ke,Ue)>=0)return!1;for(var ct=_e.xke.x?_e.x>Ue.x?_e.x:Ue.x:ke.x>Ue.x?ke.x:Ue.x,tr=_e.y>ke.y?_e.y>Ue.y?_e.y:Ue.y:ke.y>Ue.y?ke.y:Ue.y,xr=bg(ct,Pt,C,G,oe),Nr=bg(Gt,tr,C,G,oe),zr=k.prevZ,aa=k.nextZ;zr&&zr.z>=xr&&aa&&aa.z<=Nr;){if(zr!==k.prev&&zr!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,zr.x,zr.y)&&mc(zr.prev,zr,zr.next)>=0||(zr=zr.prevZ,aa!==k.prev&&aa!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,aa.x,aa.y)&&mc(aa.prev,aa,aa.next)>=0))return!1;aa=aa.nextZ}for(;zr&&zr.z>=xr;){if(zr!==k.prev&&zr!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,zr.x,zr.y)&&mc(zr.prev,zr,zr.next)>=0)return!1;zr=zr.prevZ}for(;aa&&aa.z<=Nr;){if(aa!==k.prev&&aa!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,aa.x,aa.y)&&mc(aa.prev,aa,aa.next)>=0)return!1;aa=aa.nextZ}return!0}function Ux(k,C,G){var oe=k;do{var _e=oe.prev,ke=oe.next.next;!bd(_e,ke)&&Kv(_e,oe,oe.next,ke)&&wd(_e,ke)&&wd(ke,_e)&&(C.push(_e.i/G),C.push(oe.i/G),C.push(ke.i/G),mp(oe),mp(oe.next),oe=k=ke),oe=oe.next}while(oe!==k);return vv(oe)}function oy(k,C,G,oe,_e,ke){var Ue=k;do{for(var ct=Ue.next.next;ct!==Ue.prev;){if(Ue.i!==ct.i&&Vx(Ue,ct)){var Pt=Tg(Ue,ct);Ue=vv(Ue,Ue.next),Pt=vv(Pt,Pt.next),$v(Ue,C,G,oe,_e,ke),$v(Pt,C,G,oe,_e,ke);return}ct=ct.next}Ue=Ue.next}while(Ue!==k)}function sy(k,C,G,oe){var _e=[],ke,Ue,ct,Pt,Gt;for(ke=0,Ue=C.length;ke=G.next.y&&G.next.y!==G.y){var ct=G.x+(_e-G.y)*(G.next.x-G.x)/(G.next.y-G.y);if(ct<=oe&&ct>ke){if(ke=ct,ct===oe){if(_e===G.y)return G;if(_e===G.next.y)return G.next}Ue=G.x=G.x&&G.x>=Gt&&oe!==G.x&&Iv(_eUe.x||G.x===Ue.x&&ly(Ue,G)))&&(Ue=G,xr=Nr)),G=G.next;while(G!==Pt);return Ue}function ly(k,C){return mc(k.prev,k,C.prev)<0&&mc(C.next,k,k.next)<0}function xg(k,C,G,oe){var _e=k;do _e.z===null&&(_e.z=bg(_e.x,_e.y,C,G,oe)),_e.prevZ=_e.prev,_e.nextZ=_e.next,_e=_e.next;while(_e!==k);_e.prevZ.nextZ=null,_e.prevZ=null,jx(_e)}function jx(k){var C,G,oe,_e,ke,Ue,ct,Pt,Gt=1;do{for(G=k,k=null,ke=null,Ue=0;G;){for(Ue++,oe=G,ct=0,C=0;C0||Pt>0&&oe;)ct!==0&&(Pt===0||!oe||G.z<=oe.z)?(_e=G,G=G.nextZ,ct--):(_e=oe,oe=oe.nextZ,Pt--),ke?ke.nextZ=_e:k=_e,_e.prevZ=ke,ke=_e;G=oe}ke.nextZ=null,Gt*=2}while(Ue>1);return k}function bg(k,C,G,oe,_e){return k=32767*(k-G)*_e,C=32767*(C-oe)*_e,k=(k|k<<8)&16711935,k=(k|k<<4)&252645135,k=(k|k<<2)&858993459,k=(k|k<<1)&1431655765,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,k|C<<1}function l0(k){var C=k,G=k;do(C.x=0&&(k-Ue)*(oe-ct)-(G-Ue)*(C-ct)>=0&&(G-Ue)*(ke-ct)-(_e-Ue)*(oe-ct)>=0}function Vx(k,C){return k.next.i!==C.i&&k.prev.i!==C.i&&!wg(k,C)&&(wd(k,C)&&wd(C,k)&&u0(k,C)&&(mc(k.prev,k,C.prev)||mc(k,C.prev,C))||bd(k,C)&&mc(k.prev,k,k.next)>0&&mc(C.prev,C,C.next)>0)}function mc(k,C,G){return(C.y-k.y)*(G.x-C.x)-(C.x-k.x)*(G.y-C.y)}function bd(k,C){return k.x===C.x&&k.y===C.y}function Kv(k,C,G,oe){var _e=gp(mc(k,C,G)),ke=gp(mc(k,C,oe)),Ue=gp(mc(G,oe,k)),ct=gp(mc(G,oe,C));return!!(_e!==ke&&Ue!==ct||_e===0&&pp(k,G,C)||ke===0&&pp(k,oe,C)||Ue===0&&pp(G,k,oe)||ct===0&&pp(G,C,oe))}function pp(k,C,G){return C.x<=Math.max(k.x,G.x)&&C.x>=Math.min(k.x,G.x)&&C.y<=Math.max(k.y,G.y)&&C.y>=Math.min(k.y,G.y)}function gp(k){return k>0?1:k<0?-1:0}function wg(k,C){var G=k;do{if(G.i!==k.i&&G.next.i!==k.i&&G.i!==C.i&&G.next.i!==C.i&&Kv(G,G.next,k,C))return!0;G=G.next}while(G!==k);return!1}function wd(k,C){return mc(k.prev,k,k.next)<0?mc(k,C,k.next)>=0&&mc(k,k.prev,C)>=0:mc(k,C,k.prev)<0||mc(k,k.next,C)<0}function u0(k,C){var G=k,oe=!1,_e=(k.x+C.x)/2,ke=(k.y+C.y)/2;do G.y>ke!=G.next.y>ke&&G.next.y!==G.y&&_e<(G.next.x-G.x)*(ke-G.y)/(G.next.y-G.y)+G.x&&(oe=!oe),G=G.next;while(G!==k);return oe}function Tg(k,C){var G=new c0(k.i,k.x,k.y),oe=new c0(C.i,C.x,C.y),_e=k.next,ke=C.prev;return k.next=C,C.prev=k,G.next=_e,_e.prev=G,oe.next=G,G.prev=oe,ke.next=oe,oe.prev=ke,oe}function uy(k,C,G,oe){var _e=new c0(k,C,G);return oe?(_e.next=oe.next,_e.prev=oe,oe.next.prev=_e,oe.next=_e):(_e.prev=_e,_e.next=_e),_e}function mp(k){k.next.prev=k.prev,k.prev.next=k.next,k.prevZ&&(k.prevZ.nextZ=k.nextZ),k.nextZ&&(k.nextZ.prevZ=k.prevZ)}function c0(k,C,G){this.i=k,this.x=C,this.y=G,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}s0.deviation=function(k,C,G,oe){var _e=C&&C.length,ke=_e?C[0]*G:k.length,Ue=Math.abs(Ag(k,0,ke,G));if(_e)for(var ct=0,Pt=C.length;ct0&&(oe+=k[_e-1].length,G.holes.push(oe))}return G},o0.default=iy;function qx(k,C,G,oe,_e){cy(k,C,G,oe||k.length-1,_e||Sg)}function cy(k,C,G,oe,_e){for(;oe>G;){if(oe-G>600){var ke=oe-G+1,Ue=C-G+1,ct=Math.log(ke),Pt=.5*Math.exp(2*ct/3),Gt=.5*Math.sqrt(ct*Pt*(ke-Pt)/ke)*(Ue-ke/2<0?-1:1),tr=Math.max(G,Math.floor(C-Ue*Pt/ke+Gt)),xr=Math.min(oe,Math.floor(C+(ke-Ue)*Pt/ke+Gt));cy(k,C,tr,xr,_e)}var Nr=k[C],zr=G,aa=oe;for(yp(k,G,C),_e(k[oe],Nr)>0&&yp(k,G,oe);zr0;)aa--}_e(k[G],Nr)===0?yp(k,G,aa):(aa++,yp(k,aa,oe)),aa<=C&&(G=aa+1),C<=aa&&(oe=aa-1)}}function yp(k,C,G){var oe=k[C];k[C]=k[G],k[G]=oe}function Sg(k,C){return kC?1:0}function Kh(k,C){var G=k.length;if(G<=1)return[k];for(var oe=[],_e,ke,Ue=0;Ue1)for(var Pt=0;Pt>3}if(oe--,G===1||G===2)_e+=k.readSVarint(),ke+=k.readSVarint(),G===1&&(ct&&Ue.push(ct),ct=[]),ct.push(new o(_e,ke));else if(G===7)ct&&ct.push(ct[0].clone());else throw new Error("unknown command "+G)}return ct&&Ue.push(ct),Ue},Jv.prototype.bbox=function(){var k=this._pbf;k.pos=this._geometry;for(var C=k.readVarint()+k.pos,G=1,oe=0,_e=0,ke=0,Ue=1/0,ct=-1/0,Pt=1/0,Gt=-1/0;k.pos>3}if(oe--,G===1||G===2)_e+=k.readSVarint(),ke+=k.readSVarint(),_ect&&(ct=_e),keGt&&(Gt=ke);else if(G!==7)throw new Error("unknown command "+G)}return[Ue,Pt,ct,Gt]},Jv.prototype.toGeoJSON=function(k,C,G){var oe=this.extent*Math.pow(2,G),_e=this.extent*k,ke=this.extent*C,Ue=this.loadGeometry(),ct=Jv.types[this.type],Pt,Gt;function tr(zr){for(var aa=0;aa>3;C=oe===1?k.readString():oe===2?k.readFloat():oe===3?k.readDouble():oe===4?k.readVarint64():oe===5?k.readVarint():oe===6?k.readSVarint():oe===7?k.readBoolean():null}return C}_y.prototype.feature=function(k){if(k<0||k>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[k];var C=this._pbf.readVarint()+this._pbf.pos;return new Td(this._pbf,C,this.extent,this._keys,this._values)};var by=wy;function wy(k,C){this.layers=k.readFields(Ty,{},C)}function Ty(k,C,G){if(k===3){var oe=new kg(G,G.readVarint()+G.pos);oe.length&&(C[oe.name]=oe)}}var Ay=by,Gx=Td,Hx=kg,Qv={VectorTile:Ay,VectorTileFeature:Gx,VectorTileLayer:Hx},Ad=Qv.VectorTileFeature.types,Sy=500,Sd=Math.pow(2,13);function Md(k,C,G,oe,_e,ke,Ue,ct){k.emplaceBack(C,G,Math.floor(oe*Sd)*2+Ue,_e*Sd*2,ke*Sd*2,Math.round(ct))}var Th=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new Oa,this.indexArray=new Mi,this.programConfigurations=new qa(C.layers,C.zoom),this.segments=new mo,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Th.prototype.populate=function(C,G,oe){this.features=[],this.hasPattern=f0("fill-extrusion",this.layers,G);for(var _e=0,ke=C;_e=1){var Nn=gn[Un-1];if(!v0(Mn,Nn)){zr.vertexLength+4>mo.MAX_VERTEX_ARRAY_LENGTH&&(zr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Hn=Mn.sub(Nn)._perp()._unit(),si=Nn.dist(Mn);Qa+si>32768&&(Qa=0),Md(this.layoutVertexArray,Mn.x,Mn.y,Hn.x,Hn.y,0,0,Qa),Md(this.layoutVertexArray,Mn.x,Mn.y,Hn.x,Hn.y,0,1,Qa),Qa+=si,Md(this.layoutVertexArray,Nn.x,Nn.y,Hn.x,Hn.y,0,0,Qa),Md(this.layoutVertexArray,Nn.x,Nn.y,Hn.x,Hn.y,0,1,Qa);var Ai=zr.vertexLength;this.indexArray.emplaceBack(Ai,Ai+2,Ai+1),this.indexArray.emplaceBack(Ai+1,Ai+2,Ai+3),zr.vertexLength+=4,zr.primitiveLength+=2}}}}if(zr.vertexLength+Gt>mo.MAX_VERTEX_ARRAY_LENGTH&&(zr=this.segments.prepareSegment(Gt,this.layoutVertexArray,this.indexArray)),Ad[C.type]==="Polygon"){for(var xi=[],uo=[],ji=zr.vertexLength,Qi=0,ns=Pt;Qiti)||k.y===C.y&&(k.y<0||k.y>ti)}function d0(k){return k.every(function(C){return C.x<0})||k.every(function(C){return C.x>ti})||k.every(function(C){return C.y<0})||k.every(function(C){return C.y>ti})}var Wx=new wn({"fill-extrusion-opacity":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new cn(kn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),Xx={paint:Wx},Zx=function(k){function C(G){k.call(this,G,Xx)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.createBucket=function(oe){return new Th(oe)},C.prototype.queryRadius=function(){return xh(this.paint.get("fill-extrusion-translate"))},C.prototype.is3D=function(){return!0},C.prototype.queryIntersectsFeature=function(oe,_e,ke,Ue,ct,Pt,Gt,tr){var xr=Ph(oe,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Pt.angle,Gt),Nr=this.paint.get("fill-extrusion-height").evaluate(_e,ke),zr=this.paint.get("fill-extrusion-base").evaluate(_e,ke),aa=My(xr,tr,Pt,0),Ca=Cg(Ue,zr,Nr,tr),gn=Ca[0],Qa=Ca[1];return Dv(gn,Qa,aa)},C}(jn);function Jh(k,C){return k.x*C.x+k.y*C.y}function Af(k,C){if(k.length===1){for(var G=0,oe=C[G++],_e;!_e||oe.equals(_e);)if(_e=C[G++],!_e)return 1/0;for(;G=2&&C[Gt-1].equals(C[Gt-2]);)Gt--;for(var tr=0;tr0;if(xi&&Un>tr){var ji=zr.dist(aa);if(ji>2*xr){var Qi=zr.sub(zr.sub(aa)._mult(xr/ji)._round());this.updateDistance(aa,Qi),this.addCurrentVertex(Qi,gn,0,0,Nr),aa=Qi}}var ns=aa&&Ca,co=ns?oe:Pt?"butt":_e;if(ns&&co==="round"&&(sike&&(co="bevel"),co==="bevel"&&(si>2&&(co="flipbevel"),si100)Mn=Qa.mult(-1);else{var po=si*gn.add(Qa).mag()/gn.sub(Qa).mag();Mn._perp()._mult(po*(uo?-1:1))}this.addCurrentVertex(zr,Mn,0,0,Nr),this.addCurrentVertex(zr,Mn.mult(-1),0,0,Nr)}else if(co==="bevel"||co==="fakeround"){var Ps=-Math.sqrt(si*si-1),Jo=uo?Ps:0,yl=uo?0:Ps;if(aa&&this.addCurrentVertex(zr,gn,Jo,yl,Nr),co==="fakeround")for(var uu=Math.round(Ai*180/Math.PI/Ig),_l=1;_l2*xr){var uf=zr.add(Ca.sub(zr)._mult(xr/kf)._round());this.updateDistance(zr,uf),this.addCurrentVertex(uf,Qa,0,0,Nr),zr=uf}}}}},zf.prototype.addCurrentVertex=function(C,G,oe,_e,ke,Ue){Ue===void 0&&(Ue=!1);var ct=G.x+G.y*oe,Pt=G.y-G.x*oe,Gt=-G.x+G.y*_e,tr=-G.y-G.x*_e;this.addHalfVertex(C,ct,Pt,Ue,!1,oe,ke),this.addHalfVertex(C,Gt,tr,Ue,!0,-_e,ke),this.distance>p0/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(C,G,oe,_e,ke,Ue))},zf.prototype.addHalfVertex=function(C,G,oe,_e,ke,Ue,ct){var Pt=C.x,Gt=C.y,tr=this.lineClips?this.scaledDistance*(p0-1):this.scaledDistance,xr=tr*Ed;if(this.layoutVertexArray.emplaceBack((Pt<<1)+(_e?1:0),(Gt<<1)+(ke?1:0),Math.round(Ly*G)+128,Math.round(Ly*oe)+128,(Ue===0?0:Ue<0?-1:1)+1|(xr&63)<<2,xr>>6),this.lineClips){var Nr=this.scaledDistance-this.lineClips.start,zr=this.lineClips.end-this.lineClips.start,aa=Nr/zr;this.layoutVertexArray2.emplaceBack(aa,this.lineClipsArray.length)}var Ca=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ca),ct.primitiveLength++),ke?this.e2=Ca:this.e1=Ca},zf.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zf.prototype.updateDistance=function(C,G){this.distance+=C.dist(G),this.updateScaledDistance()},Vt("LineBucket",zf,{omit:["layers","patternFeatures"]});var Rg=new wn({"line-cap":new Jr(kn.layout_line["line-cap"]),"line-join":new Kr(kn.layout_line["line-join"]),"line-miter-limit":new Jr(kn.layout_line["line-miter-limit"]),"line-round-limit":new Jr(kn.layout_line["line-round-limit"]),"line-sort-key":new Kr(kn.layout_line["line-sort-key"])}),g0=new wn({"line-opacity":new Kr(kn.paint_line["line-opacity"]),"line-color":new Kr(kn.paint_line["line-color"]),"line-translate":new Jr(kn.paint_line["line-translate"]),"line-translate-anchor":new Jr(kn.paint_line["line-translate-anchor"]),"line-width":new Kr(kn.paint_line["line-width"]),"line-gap-width":new Kr(kn.paint_line["line-gap-width"]),"line-offset":new Kr(kn.paint_line["line-offset"]),"line-blur":new Kr(kn.paint_line["line-blur"]),"line-dasharray":new ln(kn.paint_line["line-dasharray"]),"line-pattern":new cn(kn.paint_line["line-pattern"]),"line-gradient":new un(kn.paint_line["line-gradient"])}),kd={paint:g0,layout:Rg},Dg=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.possiblyEvaluate=function(oe,_e){return _e=new ds(Math.floor(_e.zoom),{now:_e.now,fadeDuration:_e.fadeDuration,zoomHistory:_e.zoomHistory,transition:_e.transition}),k.prototype.possiblyEvaluate.call(this,oe,_e)},C.prototype.evaluate=function(oe,_e,ke,Ue){return _e=_({},_e,{zoom:Math.floor(_e.zoom)}),k.prototype.evaluate.call(this,oe,_e,ke,Ue)},C}(Kr),m0=new Dg(kd.paint.properties["line-width"].specification);m0.useIntegerZoom=!0;var zg=function(k){function C(G){k.call(this,G,kd),this.gradientVersion=0}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._handleSpecialPaintPropertyUpdate=function(oe){if(oe==="line-gradient"){var _e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=_e._styleExpression.expression instanceof au,this.gradientVersion=(this.gradientVersion+1)%f}},C.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},C.prototype.recalculate=function(oe,_e){k.prototype.recalculate.call(this,oe,_e),this.paint._values["line-floorwidth"]=m0.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,oe)},C.prototype.createBucket=function(oe){return new zf(oe)},C.prototype.queryRadius=function(oe){var _e=oe,ke=Ry(Hf("line-width",this,_e),Hf("line-gap-width",this,_e)),Ue=Hf("line-offset",this,_e);return ke/2+Math.abs(Ue)+xh(this.paint.get("line-translate"))},C.prototype.queryIntersectsFeature=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=Ph(oe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,Gt),xr=Gt/2*Ry(this.paint.get("line-width").evaluate(_e,ke),this.paint.get("line-gap-width").evaluate(_e,ke)),Nr=this.paint.get("line-offset").evaluate(_e,ke);return Nr&&(Ue=W(Ue,Nr*Gt)),Dc(tr,Ue,xr)},C.prototype.isTileClipped=function(){return!0},C}(jn);function Ry(k,C){return C>0?C+2*k:k}function W(k,C){for(var G=[],oe=new o(0,0),_e=0;_e":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function ar(k){for(var C="",G=0;G>1,tr=-7,xr=G?_e-1:0,Nr=G?-1:1,zr=k[C+xr];for(xr+=Nr,ke=zr&(1<<-tr)-1,zr>>=-tr,tr+=ct;tr>0;ke=ke*256+k[C+xr],xr+=Nr,tr-=8);for(Ue=ke&(1<<-tr)-1,ke>>=-tr,tr+=oe;tr>0;Ue=Ue*256+k[C+xr],xr+=Nr,tr-=8);if(ke===0)ke=1-Gt;else{if(ke===Pt)return Ue?NaN:(zr?-1:1)*(1/0);Ue=Ue+Math.pow(2,oe),ke=ke-Gt}return(zr?-1:1)*Ue*Math.pow(2,ke-oe)},Fr=function(k,C,G,oe,_e,ke){var Ue,ct,Pt,Gt=ke*8-_e-1,tr=(1<>1,Nr=_e===23?Math.pow(2,-24)-Math.pow(2,-77):0,zr=oe?0:ke-1,aa=oe?1:-1,Ca=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(ct=isNaN(C)?1:0,Ue=tr):(Ue=Math.floor(Math.log(C)/Math.LN2),C*(Pt=Math.pow(2,-Ue))<1&&(Ue--,Pt*=2),Ue+xr>=1?C+=Nr/Pt:C+=Nr*Math.pow(2,1-xr),C*Pt>=2&&(Ue++,Pt/=2),Ue+xr>=tr?(ct=0,Ue=tr):Ue+xr>=1?(ct=(C*Pt-1)*Math.pow(2,_e),Ue=Ue+xr):(ct=C*Math.pow(2,xr-1)*Math.pow(2,_e),Ue=0));_e>=8;k[G+zr]=ct&255,zr+=aa,ct/=256,_e-=8);for(Ue=Ue<<_e|ct,Gt+=_e;Gt>0;k[G+zr]=Ue&255,zr+=aa,Ue/=256,Gt-=8);k[G+zr-aa]|=Ca*128},Yr={read:Sr,write:Fr},sa=_a;function _a(k){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(k)?k:new Uint8Array(k||0),this.pos=0,this.type=0,this.length=this.buf.length}_a.Varint=0,_a.Fixed64=1,_a.Bytes=2,_a.Fixed32=5;var Wa=65536*65536,zn=1/Wa,vn=12,Cn=typeof TextDecoder>"u"?null:new TextDecoder("utf8");_a.prototype={destroy:function(){this.buf=null},readFields:function(k,C,G){for(G=G||this.length;this.pos>3,ke=this.pos;this.type=oe&7,k(_e,C,this),this.pos===ke&&this.skip(oe)}return C},readMessage:function(k,C){return this.readFields(k,C,this.readVarint()+this.pos)},readFixed32:function(){var k=fh(this.buf,this.pos);return this.pos+=4,k},readSFixed32:function(){var k=nf(this.buf,this.pos);return this.pos+=4,k},readFixed64:function(){var k=fh(this.buf,this.pos)+fh(this.buf,this.pos+4)*Wa;return this.pos+=8,k},readSFixed64:function(){var k=fh(this.buf,this.pos)+nf(this.buf,this.pos+4)*Wa;return this.pos+=8,k},readFloat:function(){var k=Yr.read(this.buf,this.pos,!0,23,4);return this.pos+=4,k},readDouble:function(){var k=Yr.read(this.buf,this.pos,!0,52,8);return this.pos+=8,k},readVarint:function(k){var C=this.buf,G,oe;return oe=C[this.pos++],G=oe&127,oe<128||(oe=C[this.pos++],G|=(oe&127)<<7,oe<128)||(oe=C[this.pos++],G|=(oe&127)<<14,oe<128)||(oe=C[this.pos++],G|=(oe&127)<<21,oe<128)?G:(oe=C[this.pos],G|=(oe&15)<<28,$n(G,k,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var k=this.readVarint();return k%2===1?(k+1)/-2:k/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var k=this.readVarint()+this.pos,C=this.pos;return this.pos=k,k-C>=vn&&Cn?ah(this.buf,C,k):rh(this.buf,C,k)},readBytes:function(){var k=this.readVarint()+this.pos,C=this.buf.subarray(this.pos,k);return this.pos=k,C},readPackedVarint:function(k,C){if(this.type!==_a.Bytes)return k.push(this.readVarint(C));var G=gi(this);for(k=k||[];this.pos127;);else if(C===_a.Bytes)this.pos=this.readVarint()+this.pos;else if(C===_a.Fixed32)this.pos+=4;else if(C===_a.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+C)},writeTag:function(k,C){this.writeVarint(k<<3|C)},realloc:function(k){for(var C=this.length||16;C268435455||k<0){as(k,this);return}this.realloc(4),this.buf[this.pos++]=k&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=(k>>>=7)&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=(k>>>=7)&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=k>>>7&127)))},writeSVarint:function(k){this.writeVarint(k<0?-k*2-1:k*2)},writeBoolean:function(k){this.writeVarint(!!k)},writeString:function(k){k=String(k),this.realloc(k.length*4),this.pos++;var C=this.pos;this.pos=nh(this.buf,k,this.pos);var G=this.pos-C;G>=128&&Ro(C,G,this),this.pos=C-1,this.writeVarint(G),this.pos+=G},writeFloat:function(k){this.realloc(4),Yr.write(this.buf,k,this.pos,!0,23,4),this.pos+=4},writeDouble:function(k){this.realloc(8),Yr.write(this.buf,k,this.pos,!0,52,8),this.pos+=8},writeBytes:function(k){var C=k.length;this.writeVarint(C),this.realloc(C);for(var G=0;G=128&&Ro(G,oe,this),this.pos=G-1,this.writeVarint(oe),this.pos+=oe},writeMessage:function(k,C,G){this.writeTag(k,_a.Bytes),this.writeRawMessage(C,G)},writePackedVarint:function(k,C){C.length&&this.writeMessage(k,To,C)},writePackedSVarint:function(k,C){C.length&&this.writeMessage(k,_o,C)},writePackedBoolean:function(k,C){C.length&&this.writeMessage(k,Do,C)},writePackedFloat:function(k,C){C.length&&this.writeMessage(k,li,C)},writePackedDouble:function(k,C){C.length&&this.writeMessage(k,jo,C)},writePackedFixed32:function(k,C){C.length&&this.writeMessage(k,xs,C)},writePackedSFixed32:function(k,C){C.length&&this.writeMessage(k,Tu,C)},writePackedFixed64:function(k,C){C.length&&this.writeMessage(k,gu,C)},writePackedSFixed64:function(k,C){C.length&&this.writeMessage(k,vf,C)},writeBytesField:function(k,C){this.writeTag(k,_a.Bytes),this.writeBytes(C)},writeFixed32Field:function(k,C){this.writeTag(k,_a.Fixed32),this.writeFixed32(C)},writeSFixed32Field:function(k,C){this.writeTag(k,_a.Fixed32),this.writeSFixed32(C)},writeFixed64Field:function(k,C){this.writeTag(k,_a.Fixed64),this.writeFixed64(C)},writeSFixed64Field:function(k,C){this.writeTag(k,_a.Fixed64),this.writeSFixed64(C)},writeVarintField:function(k,C){this.writeTag(k,_a.Varint),this.writeVarint(C)},writeSVarintField:function(k,C){this.writeTag(k,_a.Varint),this.writeSVarint(C)},writeStringField:function(k,C){this.writeTag(k,_a.Bytes),this.writeString(C)},writeFloatField:function(k,C){this.writeTag(k,_a.Fixed32),this.writeFloat(C)},writeDoubleField:function(k,C){this.writeTag(k,_a.Fixed64),this.writeDouble(C)},writeBooleanField:function(k,C){this.writeVarintField(k,!!C)}};function $n(k,C,G){var oe=G.buf,_e,ke;if(ke=oe[G.pos++],_e=(ke&112)>>4,ke<128||(ke=oe[G.pos++],_e|=(ke&127)<<3,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<10,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<17,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<24,ke<128)||(ke=oe[G.pos++],_e|=(ke&1)<<31,ke<128))return Ji(k,_e,C);throw new Error("Expected varint not more than 10 bytes")}function gi(k){return k.type===_a.Bytes?k.readVarint()+k.pos:k.pos+1}function Ji(k,C,G){return G?C*4294967296+(k>>>0):(C>>>0)*4294967296+(k>>>0)}function as(k,C){var G,oe;if(k>=0?(G=k%4294967296|0,oe=k/4294967296|0):(G=~(-k%4294967296),oe=~(-k/4294967296),G^4294967295?G=G+1|0:(G=0,oe=oe+1|0)),k>=18446744073709552e3||k<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");C.realloc(10),oo(G,oe,C),$i(oe,C)}function oo(k,C,G){G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos]=k&127}function $i(k,C){var G=(k&7)<<4;C.buf[C.pos++]|=G|((k>>>=3)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127)))))}function Ro(k,C,G){var oe=C<=16383?1:C<=2097151?2:C<=268435455?3:Math.floor(Math.log(C)/(Math.LN2*7));G.realloc(oe);for(var _e=G.pos-1;_e>=k;_e--)G.buf[_e+oe]=G.buf[_e]}function To(k,C){for(var G=0;G>>8,k[G+2]=C>>>16,k[G+3]=C>>>24}function nf(k,C){return(k[C]|k[C+1]<<8|k[C+2]<<16)+(k[C+3]<<24)}function rh(k,C,G){for(var oe="",_e=C;_e239?4:ke>223?3:ke>191?2:1;if(_e+ct>G)break;var Pt,Gt,tr;ct===1?ke<128&&(Ue=ke):ct===2?(Pt=k[_e+1],(Pt&192)===128&&(Ue=(ke&31)<<6|Pt&63,Ue<=127&&(Ue=null))):ct===3?(Pt=k[_e+1],Gt=k[_e+2],(Pt&192)===128&&(Gt&192)===128&&(Ue=(ke&15)<<12|(Pt&63)<<6|Gt&63,(Ue<=2047||Ue>=55296&&Ue<=57343)&&(Ue=null))):ct===4&&(Pt=k[_e+1],Gt=k[_e+2],tr=k[_e+3],(Pt&192)===128&&(Gt&192)===128&&(tr&192)===128&&(Ue=(ke&15)<<18|(Pt&63)<<12|(Gt&63)<<6|tr&63,(Ue<=65535||Ue>=1114112)&&(Ue=null))),Ue===null?(Ue=65533,ct=1):Ue>65535&&(Ue-=65536,oe+=String.fromCharCode(Ue>>>10&1023|55296),Ue=56320|Ue&1023),oe+=String.fromCharCode(Ue),_e+=ct}return oe}function ah(k,C,G){return Cn.decode(k.subarray(C,G))}function nh(k,C,G){for(var oe=0,_e,ke;oe55295&&_e<57344)if(ke)if(_e<56320){k[G++]=239,k[G++]=191,k[G++]=189,ke=_e;continue}else _e=ke-55296<<10|_e-56320|65536,ke=null;else{_e>56319||oe+1===C.length?(k[G++]=239,k[G++]=191,k[G++]=189):ke=_e;continue}else ke&&(k[G++]=239,k[G++]=191,k[G++]=189,ke=null);_e<128?k[G++]=_e:(_e<2048?k[G++]=_e>>6|192:(_e<65536?k[G++]=_e>>12|224:(k[G++]=_e>>18|240,k[G++]=_e>>12&63|128),k[G++]=_e>>6&63|128),k[G++]=_e&63|128)}return G}var fc=3;function df(k,C,G){k===1&&G.readMessage(Xf,C)}function Xf(k,C,G){if(k===3){var oe=G.readMessage(Ff,{}),_e=oe.id,ke=oe.bitmap,Ue=oe.width,ct=oe.height,Pt=oe.left,Gt=oe.top,tr=oe.advance;C.push({id:_e,bitmap:new af({width:Ue+2*fc,height:ct+2*fc},ke),metrics:{width:Ue,height:ct,left:Pt,top:Gt,advance:tr}})}}function Ff(k,C,G){k===1?C.id=G.readVarint():k===2?C.bitmap=G.readBytes():k===3?C.width=G.readVarint():k===4?C.height=G.readVarint():k===5?C.left=G.readSVarint():k===6?C.top=G.readSVarint():k===7&&(C.advance=G.readVarint())}function ih(k){return new sa(k).readFields(df,[])}var Sf=fc;function Ah(k){for(var C=0,G=0,oe=0,_e=k;oe<_e.length;oe+=1){var ke=_e[oe];C+=ke.w*ke.h,G=Math.max(G,ke.w)}k.sort(function(gn,Qa){return Qa.h-gn.h});for(var Ue=Math.max(Math.ceil(Math.sqrt(C/.95)),G),ct=[{x:0,y:0,w:Ue,h:1/0}],Pt=0,Gt=0,tr=0,xr=k;tr=0;zr--){var aa=ct[zr];if(!(Nr.w>aa.w||Nr.h>aa.h)){if(Nr.x=aa.x,Nr.y=aa.y,Gt=Math.max(Gt,Nr.y+Nr.h),Pt=Math.max(Pt,Nr.x+Nr.w),Nr.w===aa.w&&Nr.h===aa.h){var Ca=ct.pop();zr=0&&_e>=C&&Sh[this.text.charCodeAt(_e)];_e--)oe--;this.text=this.text.substring(C,oe),this.sectionIndex=this.sectionIndex.slice(C,oe)},Au.prototype.substring=function(C,G){var oe=new Au;return oe.text=this.text.substring(C,G),oe.sectionIndex=this.sectionIndex.slice(C,G),oe.sections=this.sections,oe},Au.prototype.toString=function(){return this.text},Au.prototype.getMaxScale=function(){var C=this;return this.sectionIndex.reduce(function(G,oe){return Math.max(G,C.sections[oe].scale)},0)},Au.prototype.addTextSection=function(C,G){this.text+=C.text,this.sections.push(Zf.forText(C.scale,C.fontStack||G));for(var oe=this.sections.length-1,_e=0;_e=Vh?null:++this.imageSectionID:(this.imageSectionID=jh,this.imageSectionID)};function Mf(k,C){for(var G=[],oe=k.text,_e=0,ke=0,Ue=C;ke=0,tr=0,xr=0;xr0&&uf>uo&&(uo=uf)}else{var xl=G[Qi.fontStack],vl=xl&&xl[co];if(vl&&vl.rect)Jo=vl.rect,Ps=vl.metrics;else{var Su=C[Qi.fontStack],Nu=Su&&Su[co];if(!Nu)continue;Ps=Nu.metrics}po=(Hn-Qi.scale)*lr}_l?(k.verticalizable=!0,xi.push({glyph:co,imageName:yl,x:Nr,y:zr+po,vertical:_l,scale:Qi.scale,fontStack:Qi.fontStack,sectionIndex:ns,metrics:Ps,rect:Jo}),Nr+=uu*Qi.scale+Gt):(xi.push({glyph:co,imageName:yl,x:Nr,y:zr+po,vertical:_l,scale:Qi.scale,fontStack:Qi.fontStack,sectionIndex:ns,metrics:Ps,rect:Jo}),Nr+=Ps.advance*Qi.scale+Gt)}if(xi.length!==0){var sh=Nr-Gt;aa=Math.max(sh,aa),Kx(xi,0,xi.length-1,gn,uo)}Nr=0;var lh=ke*Hn+uo;Ai.lineOffset=Math.max(uo,si),zr+=lh,Ca=Math.max(lh,Ca),++Qa}var Cf=zr-Bu,hh=jg(Ue),vh=hh.horizontalAlign,pf=hh.verticalAlign;Jx(k.positionedLines,gn,vh,pf,aa,Ca,ke,Cf,_e.length),k.top+=-pf*Cf,k.bottom=k.top+Cf,k.left+=-vh*aa,k.right=k.left+aa}function Kx(k,C,G,oe,_e){if(!(!oe&&!_e))for(var ke=k[G],Ue=ke.metrics.advance*ke.scale,ct=(k[G].x+Ue)*oe,Pt=C;Pt<=G;Pt++)k[Pt].x-=ct,k[Pt].y+=_e}function Jx(k,C,G,oe,_e,ke,Ue,ct,Pt){var Gt=(C-G)*_e,tr=0;ke!==Ue?tr=-ct*oe-Bu:tr=(-oe*Pt+.5)*Ue;for(var xr=0,Nr=k;xr-G/2;){if(Ue--,Ue<0)return!1;ct-=k[Ue].dist(ke),ke=k[Ue]}ct+=k[Ue].dist(k[Ue+1]),Ue++;for(var Pt=[],Gt=0;ctoe;)Gt-=Pt.shift().angleDelta;if(Gt>_e)return!1;Ue++,ct+=xr.dist(Nr)}return!0}function Of(k){for(var C=0,G=0;GGt){var aa=(Gt-Pt)/zr,Ca=Ys(xr.x,Nr.x,aa),gn=Ys(xr.y,Nr.y,aa),Qa=new Ld(Ca,gn,Nr.angleTo(xr),tr);return Qa._round(),!Ue||Fy(k,Qa,ct,Ue,C)?Qa:void 0}Pt+=zr}}function ed(k,C,G,oe,_e,ke,Ue,ct,Pt){var Gt=Mh(oe,ke,Ue),tr=zv(oe,_e),xr=tr*Ue,Nr=k[0].x===0||k[0].x===Pt||k[0].y===0||k[0].y===Pt;C-xr=0&&Nn=0&&Hn=0&&Nr+Gt<=tr){var si=new Ld(Nn,Hn,Un,aa);si._round(),(!oe||Fy(k,si,ke,oe,_e))&&zr.push(si)}}xr+=Qa}return!ct&&!zr.length&&!Ue&&(zr=Gh(k,xr/2,G,oe,_e,ke,Ue,!0,Pt)),zr}function UA(k,C,G,oe,_e){for(var ke=[],Ue=0;Ue=oe&&xr.x>=oe)&&(tr.x>=oe?tr=new o(oe,tr.y+(xr.y-tr.y)*((oe-tr.x)/(xr.x-tr.x)))._round():xr.x>=oe&&(xr=new o(oe,tr.y+(xr.y-tr.y)*((oe-tr.x)/(xr.x-tr.x)))._round()),!(tr.y>=_e&&xr.y>=_e)&&(tr.y>=_e?tr=new o(tr.x+(xr.x-tr.x)*((_e-tr.y)/(xr.y-tr.y)),_e)._round():xr.y>=_e&&(xr=new o(tr.x+(xr.x-tr.x)*((_e-tr.y)/(xr.y-tr.y)),_e)._round()),(!Pt||!tr.equals(Pt[Pt.length-1]))&&(Pt=[tr],ke.push(Pt)),Pt.push(xr)))))}return ke}var _0=Ou;function jA(k,C,G,oe){var _e=[],ke=k.image,Ue=ke.pixelRatio,ct=ke.paddedRect.w-2*_0,Pt=ke.paddedRect.h-2*_0,Gt=k.right-k.left,tr=k.bottom-k.top,xr=ke.stretchX||[[0,ct]],Nr=ke.stretchY||[[0,Pt]],zr=function(xl,vl){return xl+vl[1]-vl[0]},aa=xr.reduce(zr,0),Ca=Nr.reduce(zr,0),gn=ct-aa,Qa=Pt-Ca,Un=0,Mn=aa,Nn=0,Hn=Ca,si=0,Ai=gn,xi=0,uo=Qa;if(ke.content&&oe){var ji=ke.content;Un=Oy(xr,0,ji[0]),Nn=Oy(Nr,0,ji[1]),Mn=Oy(xr,ji[0],ji[2]),Hn=Oy(Nr,ji[1],ji[3]),si=ji[0]-Un,xi=ji[1]-Nn,Ai=ji[2]-ji[0]-Mn,uo=ji[3]-ji[1]-Hn}var Qi=function(xl,vl,Su,Nu){var kc=By(xl.stretch-Un,Mn,Gt,k.left),Fc=Ny(xl.fixed-si,Ai,xl.stretch,aa),kf=By(vl.stretch-Nn,Hn,tr,k.top),uf=Ny(vl.fixed-xi,uo,vl.stretch,Ca),sh=By(Su.stretch-Un,Mn,Gt,k.left),lh=Ny(Su.fixed-si,Ai,Su.stretch,aa),Cf=By(Nu.stretch-Nn,Hn,tr,k.top),hh=Ny(Nu.fixed-xi,uo,Nu.stretch,Ca),vh=new o(kc,kf),pf=new o(sh,kf),dh=new o(sh,Cf),Uh=new o(kc,Cf),ad=new o(Fc/Ue,uf/Ue),Dd=new o(lh/Ue,hh/Ue),zd=C*Math.PI/180;if(zd){var Fd=Math.sin(zd),E0=Math.cos(zd),Qh=[E0,-Fd,Fd,E0];vh._matMult(Qh),pf._matMult(Qh),Uh._matMult(Qh),dh._matMult(Qh)}var Hy=xl.stretch+xl.fixed,lb=Su.stretch+Su.fixed,Wy=vl.stretch+vl.fixed,ub=Nu.stretch+Nu.fixed,Hh={x:ke.paddedRect.x+_0+Hy,y:ke.paddedRect.y+_0+Wy,w:lb-Hy,h:ub-Wy},k0=Ai/Ue/Gt,Xy=uo/Ue/tr;return{tl:vh,tr:pf,bl:Uh,br:dh,tex:Hh,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ad,pixelOffsetBR:Dd,minFontScaleX:k0,minFontScaleY:Xy,isSDF:G}};if(!oe||!ke.stretchX&&!ke.stretchY)_e.push(Qi({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:ct+1},{fixed:0,stretch:Pt+1}));else for(var ns=VA(xr,gn,aa),co=VA(Nr,Qa,Ca),po=0;po0&&(aa=Math.max(10,aa),this.circleDiameter=aa)}else{var Ca=Ue.top*ct-Pt,gn=Ue.bottom*ct+Pt,Qa=Ue.left*ct-Pt,Un=Ue.right*ct+Pt,Mn=Ue.collisionPadding;if(Mn&&(Qa-=Mn[0]*ct,Ca-=Mn[1]*ct,Un+=Mn[2]*ct,gn+=Mn[3]*ct),tr){var Nn=new o(Qa,Ca),Hn=new o(Un,Ca),si=new o(Qa,gn),Ai=new o(Un,gn),xi=tr*Math.PI/180;Nn._rotate(xi),Hn._rotate(xi),si._rotate(xi),Ai._rotate(xi),Qa=Math.min(Nn.x,Hn.x,si.x,Ai.x),Un=Math.max(Nn.x,Hn.x,si.x,Ai.x),Ca=Math.min(Nn.y,Hn.y,si.y,Ai.y),gn=Math.max(Nn.y,Hn.y,si.y,Ai.y)}C.emplaceBack(G.x,G.y,Qa,Ca,Un,gn,oe,_e,ke)}this.boxEndIndex=C.length},x0=function(C,G){if(C===void 0&&(C=[]),G===void 0&&(G=R8),this.data=C,this.length=this.data.length,this.compare=G,this.length>0)for(var oe=(this.length>>1)-1;oe>=0;oe--)this._down(oe)};x0.prototype.push=function(C){this.data.push(C),this.length++,this._up(this.length-1)},x0.prototype.pop=function(){if(this.length!==0){var C=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),C}},x0.prototype.peek=function(){return this.data[0]},x0.prototype._up=function(C){for(var G=this,oe=G.data,_e=G.compare,ke=oe[C];C>0;){var Ue=C-1>>1,ct=oe[Ue];if(_e(ke,ct)>=0)break;oe[C]=ct,C=Ue}oe[C]=ke},x0.prototype._down=function(C){for(var G=this,oe=G.data,_e=G.compare,ke=this.length>>1,Ue=oe[C];C=0)break;oe[C]=Pt,C=ct}oe[C]=Ue};function R8(k,C){return kC?1:0}function D8(k,C,G){G===void 0&&(G=!1);for(var oe=1/0,_e=1/0,ke=-1/0,Ue=-1/0,ct=k[0],Pt=0;Ptke)&&(ke=Gt.x),(!Pt||Gt.y>Ue)&&(Ue=Gt.y)}var tr=ke-oe,xr=Ue-_e,Nr=Math.min(tr,xr),zr=Nr/2,aa=new x0([],z8);if(Nr===0)return new o(oe,_e);for(var Ca=oe;CaQa.d||!Qa.d)&&(Qa=Mn,G&&console.log("found best %d after %d probes",Math.round(1e4*Mn.d)/1e4,Un)),!(Mn.max-Qa.d<=C)&&(zr=Mn.h/2,aa.push(new b0(Mn.p.x-zr,Mn.p.y-zr,zr,k)),aa.push(new b0(Mn.p.x+zr,Mn.p.y-zr,zr,k)),aa.push(new b0(Mn.p.x-zr,Mn.p.y+zr,zr,k)),aa.push(new b0(Mn.p.x+zr,Mn.p.y+zr,zr,k)),Un+=4)}return G&&(console.log("num probes: "+Un),console.log("best distance: "+Qa.d)),Qa.p}function z8(k,C){return C.max-k.max}function b0(k,C,G,oe){this.p=new o(k,C),this.h=G,this.d=F8(this.p,oe),this.max=this.d+this.h*Math.SQRT2}function F8(k,C){for(var G=!1,oe=1/0,_e=0;_ek.y!=tr.y>k.y&&k.x<(tr.x-Gt.x)*(k.y-Gt.y)/(tr.y-Gt.y)+Gt.x&&(G=!G),oe=Math.min(oe,cv(k,Gt,tr))}return(G?1:-1)*Math.sqrt(oe)}function O8(k){for(var C=0,G=0,oe=0,_e=k[0],ke=0,Ue=_e.length,ct=Ue-1;ke=ti||Qh.y<0||Qh.y>=ti||U8(k,Qh,E0,G,oe,_e,co,k.layers[0],k.collisionBoxArray,C.index,C.sourceLayerIndex,k.index,Qa,Hn,xi,Pt,Mn,si,uo,zr,C,ke,Gt,tr,Ue)};if(ji==="line")for(var Ps=0,Jo=UA(C.geometry,0,0,ti,ti);Ps1){var kf=qh(Fc,Ai,G.vertical||aa,oe,Ca,Un);kf&&po(Fc,kf)}}else if(C.type==="Polygon")for(var uf=0,sh=Kh(C.geometry,0);ufId&&U(k.layerIds[0]+': Value for "text-size" is >= '+qg+'. Reduce your "text-size".')):gn.kind==="composite"&&(Qa=[of*zr.compositeTextSizes[0].evaluate(Ue,{},aa),of*zr.compositeTextSizes[1].evaluate(Ue,{},aa)],(Qa[0]>Id||Qa[1]>Id)&&U(k.layerIds[0]+': Value for "text-size" is >= '+qg+'. Reduce your "text-size".')),k.addSymbols(k.text,Ca,Qa,ct,ke,Ue,Gt,C,Pt.lineStartIndex,Pt.lineLength,Nr,aa);for(var Un=0,Mn=tr;UnId&&U(k.layerIds[0]+': Value for "icon-size" is >= '+qg+'. Reduce your "icon-size".')):vh.kind==="composite"&&(pf=[of*Hn.compositeIconSizes[0].evaluate(Nn,{},Ai),of*Hn.compositeIconSizes[1].evaluate(Nn,{},Ai)],(pf[0]>Id||pf[1]>Id)&&U(k.layerIds[0]+': Value for "icon-size" is >= '+qg+'. Reduce your "icon-size".')),k.addSymbols(k.icon,Cf,pf,Mn,Un,Nn,!1,C,ji.lineStartIndex,ji.lineLength,-1,Ai),_l=k.icon.placedSymbolArray.length-1,hh&&(Jo=hh.length*4,k.addSymbols(k.icon,hh,pf,Mn,Un,Nn,ic.vertical,C,ji.lineStartIndex,ji.lineLength,-1,Ai),xl=k.icon.placedSymbolArray.length-1)}for(var dh in oe.horizontal){var Uh=oe.horizontal[dh];if(!Qi){Su=ge(Uh.text);var ad=ct.layout.get("text-rotate").evaluate(Nn,{},Ai);Qi=new Uy(Pt,C,Gt,tr,xr,Uh,Nr,zr,aa,ad)}var Dd=Uh.positionedLines.length===1;if(yl+=GA(k,C,Uh,ke,ct,aa,Nn,Ca,ji,oe.vertical?ic.horizontal:ic.horizontalOnly,Dd?Object.keys(oe.horizontal):[dh],vl,_l,Hn,Ai),Dd)break}oe.vertical&&(uu+=GA(k,C,oe.vertical,ke,ct,aa,Nn,Ca,ji,ic.vertical,["vertical"],vl,xl,Hn,Ai));var zd=Qi?Qi.boxStartIndex:k.collisionBoxArray.length,Fd=Qi?Qi.boxEndIndex:k.collisionBoxArray.length,E0=co?co.boxStartIndex:k.collisionBoxArray.length,Qh=co?co.boxEndIndex:k.collisionBoxArray.length,Hy=ns?ns.boxStartIndex:k.collisionBoxArray.length,lb=ns?ns.boxEndIndex:k.collisionBoxArray.length,Wy=po?po.boxStartIndex:k.collisionBoxArray.length,ub=po?po.boxEndIndex:k.collisionBoxArray.length,Hh=-1,k0=function(Wg,sS){return Wg&&Wg.circleDiameter?Math.max(Wg.circleDiameter,sS):sS};Hh=k0(Qi,Hh),Hh=k0(co,Hh),Hh=k0(ns,Hh),Hh=k0(po,Hh);var Xy=Hh>-1?1:0;Xy&&(Hh*=xi/lr),k.glyphOffsetArray.length>=lu.MAX_GLYPHS&&U("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Nn.sortKey!==void 0&&k.addToSortKeyRanges(k.symbolInstances.length,Nn.sortKey),k.symbolInstances.emplaceBack(C.x,C.y,vl.right>=0?vl.right:-1,vl.center>=0?vl.center:-1,vl.left>=0?vl.left:-1,vl.vertical||-1,_l,xl,Su,zd,Fd,E0,Qh,Hy,lb,Wy,ub,Gt,yl,uu,Ps,Jo,Xy,0,Nr,Nu,kc,Hh)}function j8(k,C,G,oe){var _e=k.compareText;if(!(C in _e))_e[C]=[];else for(var ke=_e[C],Ue=ke.length-1;Ue>=0;Ue--)if(oe.dist(ke[Ue])0)&&(Ue.value.kind!=="constant"||Ue.value.value.length>0),tr=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,xr=ke.get("symbol-sort-key");if(this.features=[],!(!Gt&&!tr)){for(var Nr=G.iconDependencies,zr=G.glyphDependencies,aa=G.availableImages,Ca=new ds(this.zoom),gn=0,Qa=C;gn=0;for(var uu=0,_l=uo.sections;uu<_l.length;uu+=1){var xl=_l[uu];if(xl.image)Nr[xl.image.name]=!0;else{var vl=nn(uo.toString()),Su=xl.fontStack||Jo,Nu=zr[Su]=zr[Su]||{};this.calculateGlyphDependencies(xl.text,Nu,yl,this.allowVerticalPlacement,vl)}}}}}}ke.get("symbol-placement")==="line"&&(this.features=wt(this.features)),this.sortFeaturesByKey&&this.features.sort(function(kc,Fc){return kc.sortKey-Fc.sortKey})}},lu.prototype.update=function(C,G,oe){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(C,G,this.layers,oe),this.icon.programConfigurations.updatePaintArrays(C,G,this.layers,oe))},lu.prototype.isEmpty=function(){return this.symbolInstances.length===0&&!this.hasRTLText},lu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},lu.prototype.upload=function(C){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(C),this.iconCollisionBox.upload(C)),this.text.upload(C,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(C,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},lu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},lu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},lu.prototype.addToLineVertexArray=function(C,G){var oe=this.lineVertexArray.length;if(C.segment!==void 0){for(var _e=C.dist(G[C.segment+1]),ke=C.dist(G[C.segment]),Ue={},ct=C.segment+1;ct=0;Pt--)Ue[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:ke},Pt>0&&(ke+=G[Pt-1].dist(G[Pt]));for(var Gt=0;Gt0},lu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},lu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},lu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},lu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},lu.prototype.addIndicesForPlacedSymbol=function(C,G){for(var oe=C.placedSymbolArray.get(G),_e=oe.vertexStartIndex+oe.numGlyphs*4,ke=oe.vertexStartIndex;ke<_e;ke+=4)C.indexArray.emplaceBack(ke,ke+1,ke+2),C.indexArray.emplaceBack(ke+1,ke+2,ke+3)},lu.prototype.getSortedSymbolIndexes=function(C){if(this.sortedAngle===C&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var G=Math.sin(C),oe=Math.cos(C),_e=[],ke=[],Ue=[],ct=0;ct1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(C),this.sortedAngle=C,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var oe=0,_e=this.symbolInstanceIndexes;oe<_e.length;oe+=1){var ke=_e[oe],Ue=this.symbolInstances.get(ke);this.featureSortOrder.push(Ue.featureIndex),[Ue.rightJustifiedTextSymbolIndex,Ue.centerJustifiedTextSymbolIndex,Ue.leftJustifiedTextSymbolIndex].forEach(function(ct,Pt,Gt){ct>=0&&Gt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),Ue.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Ue.verticalPlacedTextSymbolIndex),Ue.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ue.placedIconSymbolIndex),Ue.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ue.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Vt("SymbolBucket",lu,{omit:["layers","collisionBoxArray","features","compareText"]}),lu.MAX_GLYPHS=65535,lu.addDynamicAttributes=ab;function H8(k,C){return C.replace(/{([^{}]+)}/g,function(G,oe){return oe in k?String(k[oe]):""})}var W8=new wn({"symbol-placement":new Jr(kn.layout_symbol["symbol-placement"]),"symbol-spacing":new Jr(kn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Jr(kn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Kr(kn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Jr(kn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Jr(kn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Jr(kn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Jr(kn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Jr(kn.layout_symbol["icon-rotation-alignment"]),"icon-size":new Kr(kn.layout_symbol["icon-size"]),"icon-text-fit":new Jr(kn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Jr(kn.layout_symbol["icon-text-fit-padding"]),"icon-image":new Kr(kn.layout_symbol["icon-image"]),"icon-rotate":new Kr(kn.layout_symbol["icon-rotate"]),"icon-padding":new Jr(kn.layout_symbol["icon-padding"]),"icon-keep-upright":new Jr(kn.layout_symbol["icon-keep-upright"]),"icon-offset":new Kr(kn.layout_symbol["icon-offset"]),"icon-anchor":new Kr(kn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Jr(kn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Jr(kn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Jr(kn.layout_symbol["text-rotation-alignment"]),"text-field":new Kr(kn.layout_symbol["text-field"]),"text-font":new Kr(kn.layout_symbol["text-font"]),"text-size":new Kr(kn.layout_symbol["text-size"]),"text-max-width":new Kr(kn.layout_symbol["text-max-width"]),"text-line-height":new Jr(kn.layout_symbol["text-line-height"]),"text-letter-spacing":new Kr(kn.layout_symbol["text-letter-spacing"]),"text-justify":new Kr(kn.layout_symbol["text-justify"]),"text-radial-offset":new Kr(kn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Jr(kn.layout_symbol["text-variable-anchor"]),"text-anchor":new Kr(kn.layout_symbol["text-anchor"]),"text-max-angle":new Jr(kn.layout_symbol["text-max-angle"]),"text-writing-mode":new Jr(kn.layout_symbol["text-writing-mode"]),"text-rotate":new Kr(kn.layout_symbol["text-rotate"]),"text-padding":new Jr(kn.layout_symbol["text-padding"]),"text-keep-upright":new Jr(kn.layout_symbol["text-keep-upright"]),"text-transform":new Kr(kn.layout_symbol["text-transform"]),"text-offset":new Kr(kn.layout_symbol["text-offset"]),"text-allow-overlap":new Jr(kn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Jr(kn.layout_symbol["text-ignore-placement"]),"text-optional":new Jr(kn.layout_symbol["text-optional"])}),X8=new wn({"icon-opacity":new Kr(kn.paint_symbol["icon-opacity"]),"icon-color":new Kr(kn.paint_symbol["icon-color"]),"icon-halo-color":new Kr(kn.paint_symbol["icon-halo-color"]),"icon-halo-width":new Kr(kn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Kr(kn.paint_symbol["icon-halo-blur"]),"icon-translate":new Jr(kn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Jr(kn.paint_symbol["icon-translate-anchor"]),"text-opacity":new Kr(kn.paint_symbol["text-opacity"]),"text-color":new Kr(kn.paint_symbol["text-color"],{runtimeType:Zo,getOverride:function(k){return k.textColor},hasOverride:function(k){return!!k.textColor}}),"text-halo-color":new Kr(kn.paint_symbol["text-halo-color"]),"text-halo-width":new Kr(kn.paint_symbol["text-halo-width"]),"text-halo-blur":new Kr(kn.paint_symbol["text-halo-blur"]),"text-translate":new Jr(kn.paint_symbol["text-translate"]),"text-translate-anchor":new Jr(kn.paint_symbol["text-translate-anchor"])}),nb={paint:X8,layout:W8},A0=function(C){this.type=C.property.overrides?C.property.overrides.runtimeType:Vs,this.defaultValue=C};A0.prototype.evaluate=function(C){if(C.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(C.formattedSection))return G.getOverride(C.formattedSection)}return C.feature&&C.featureState?this.defaultValue.evaluate(C.feature,C.featureState):this.defaultValue.property.specification.default},A0.prototype.eachChild=function(C){if(!this.defaultValue.isConstant()){var G=this.defaultValue.value;C(G._styleExpression.expression)}},A0.prototype.outputDefined=function(){return!1},A0.prototype.serialize=function(){return null},Vt("FormatSectionOverride",A0,{omit:["defaultValue"]});var Z8=function(k){function C(G){k.call(this,G,nb)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.recalculate=function(oe,_e){if(k.prototype.recalculate.call(this,oe,_e),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ke=this.layout.get("text-writing-mode");if(ke){for(var Ue=[],ct=0,Pt=ke;ct",targetMapId:_e,sourceMapId:Ue.mapId})}}},S0.prototype.receive=function(C){var G=C.data,oe=G.id;if(oe&&!(G.targetMapId&&this.mapId!==G.targetMapId))if(G.type===""){delete this.tasks[oe];var _e=this.cancelCallbacks[oe];delete this.cancelCallbacks[oe],_e&&_e()}else ie()||G.mustQueue?(this.tasks[oe]=G,this.taskQueue.push(oe),this.invoker.trigger()):this.processTask(oe,G)},S0.prototype.process=function(){if(this.taskQueue.length){var C=this.taskQueue.shift(),G=this.tasks[C];delete this.tasks[C],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(C,G)}},S0.prototype.processTask=function(C,G){var oe=this;if(G.type===""){var _e=this.callbacks[C];delete this.callbacks[C],_e&&(G.error?_e(Zr(G.error)):_e(null,Zr(G.data)))}else{var ke=!1,Ue=J(this.globalScope)?void 0:[],ct=G.hasCallback?function(Nr,zr){ke=!0,delete oe.cancelCallbacks[C],oe.target.postMessage({id:C,type:"",sourceMapId:oe.mapId,error:Nr?kr(Nr):null,data:kr(zr,Ue)},Ue)}:function(Nr){ke=!0},Pt=null,Gt=Zr(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,Gt,ct);else if(this.parent.getWorkerSource){var tr=G.type.split("."),xr=this.parent.getWorkerSource(G.sourceMapId,tr[0],Gt.source);Pt=xr[tr[1]](Gt,ct)}else ct(new Error("Could not find function "+G.type));!ke&&Pt&&Pt.cancel&&(this.cancelCallbacks[C]=Pt.cancel)}},S0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function iF(k,C,G){C=Math.pow(2,G)-C-1;var oe=$A(k*256,C*256,G),_e=$A((k+1)*256,(C+1)*256,G);return oe[0]+","+oe[1]+","+_e[0]+","+_e[1]}function $A(k,C,G){var oe=2*Math.PI*6378137/256/Math.pow(2,G),_e=k*oe-2*Math.PI*6378137/2,ke=C*oe-2*Math.PI*6378137/2;return[_e,ke]}var sf=function(C,G){C&&(G?this.setSouthWest(C).setNorthEast(G):C.length===4?this.setSouthWest([C[0],C[1]]).setNorthEast([C[2],C[3]]):this.setSouthWest(C[0]).setNorthEast(C[1]))};sf.prototype.setNorthEast=function(C){return this._ne=C instanceof oc?new oc(C.lng,C.lat):oc.convert(C),this},sf.prototype.setSouthWest=function(C){return this._sw=C instanceof oc?new oc(C.lng,C.lat):oc.convert(C),this},sf.prototype.extend=function(C){var G=this._sw,oe=this._ne,_e,ke;if(C instanceof oc)_e=C,ke=C;else if(C instanceof sf){if(_e=C._sw,ke=C._ne,!_e||!ke)return this}else{if(Array.isArray(C))if(C.length===4||C.every(Array.isArray)){var Ue=C;return this.extend(sf.convert(Ue))}else{var ct=C;return this.extend(oc.convert(ct))}return this}return!G&&!oe?(this._sw=new oc(_e.lng,_e.lat),this._ne=new oc(ke.lng,ke.lat)):(G.lng=Math.min(_e.lng,G.lng),G.lat=Math.min(_e.lat,G.lat),oe.lng=Math.max(ke.lng,oe.lng),oe.lat=Math.max(ke.lat,oe.lat)),this},sf.prototype.getCenter=function(){return new oc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},sf.prototype.getSouthWest=function(){return this._sw},sf.prototype.getNorthEast=function(){return this._ne},sf.prototype.getNorthWest=function(){return new oc(this.getWest(),this.getNorth())},sf.prototype.getSouthEast=function(){return new oc(this.getEast(),this.getSouth())},sf.prototype.getWest=function(){return this._sw.lng},sf.prototype.getSouth=function(){return this._sw.lat},sf.prototype.getEast=function(){return this._ne.lng},sf.prototype.getNorth=function(){return this._ne.lat},sf.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},sf.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},sf.prototype.isEmpty=function(){return!(this._sw&&this._ne)},sf.prototype.contains=function(C){var G=oc.convert(C),oe=G.lng,_e=G.lat,ke=this._sw.lat<=_e&&_e<=this._ne.lat,Ue=this._sw.lng<=oe&&oe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Ue=this._sw.lng>=oe&&oe>=this._ne.lng),ke&&Ue},sf.convert=function(C){return!C||C instanceof sf?C:new sf(C)};var KA=63710088e-1,oc=function(C,G){if(isNaN(C)||isNaN(G))throw new Error("Invalid LngLat object: ("+C+", "+G+")");if(this.lng=+C,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};oc.prototype.wrap=function(){return new oc(m(this.lng,-180,180),this.lat)},oc.prototype.toArray=function(){return[this.lng,this.lat]},oc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},oc.prototype.distanceTo=function(C){var G=Math.PI/180,oe=this.lat*G,_e=C.lat*G,ke=Math.sin(oe)*Math.sin(_e)+Math.cos(oe)*Math.cos(_e)*Math.cos((C.lng-this.lng)*G),Ue=KA*Math.acos(Math.min(ke,1));return Ue},oc.prototype.toBounds=function(C){C===void 0&&(C=0);var G=40075017,oe=360*C/G,_e=oe/Math.cos(Math.PI/180*this.lat);return new sf(new oc(this.lng-_e,this.lat-oe),new oc(this.lng+_e,this.lat+oe))},oc.convert=function(C){if(C instanceof oc)return C;if(Array.isArray(C)&&(C.length===2||C.length===3))return new oc(Number(C[0]),Number(C[1]));if(!Array.isArray(C)&&typeof C=="object"&&C!==null)return new oc(Number("lng"in C?C.lng:C.lon),Number(C.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var JA=2*Math.PI*KA;function QA(k){return JA*Math.cos(k*Math.PI/180)}function eS(k){return(180+k)/360}function tS(k){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+k*Math.PI/360)))/360}function rS(k,C){return k/QA(C)}function oF(k){return k*360-180}function ob(k){var C=180-k*360;return 360/Math.PI*Math.atan(Math.exp(C*Math.PI/180))-90}function sF(k,C){return k*QA(ob(C))}function lF(k){return 1/Math.cos(k*Math.PI/180)}var bp=function(C,G,oe){oe===void 0&&(oe=0),this.x=+C,this.y=+G,this.z=+oe};bp.fromLngLat=function(C,G){G===void 0&&(G=0);var oe=oc.convert(C);return new bp(eS(oe.lng),tS(oe.lat),rS(G,oe.lat))},bp.prototype.toLngLat=function(){return new oc(oF(this.x),ob(this.y))},bp.prototype.toAltitude=function(){return sF(this.z,this.y)},bp.prototype.meterInMercatorCoordinateUnits=function(){return 1/JA*lF(ob(this.y))};var wp=function(C,G,oe){this.z=C,this.x=G,this.y=oe,this.key=Hg(0,C,C,G,oe)};wp.prototype.equals=function(C){return this.z===C.z&&this.x===C.x&&this.y===C.y},wp.prototype.url=function(C,G){var oe=iF(this.x,this.y,this.z),_e=uF(this.z,this.x,this.y);return C[(this.x+this.y)%C.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(G==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",_e).replace("{bbox-epsg-3857}",oe)},wp.prototype.getTilePoint=function(C){var G=Math.pow(2,this.z);return new o((C.x*G-this.x)*ti,(C.y*G-this.y)*ti)},wp.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var aS=function(C,G){this.wrap=C,this.canonical=G,this.key=Hg(C,G.z,G.z,G.x,G.y)},lf=function(C,G,oe,_e,ke){this.overscaledZ=C,this.wrap=G,this.canonical=new wp(oe,+_e,+ke),this.key=Hg(G,C,oe,_e,ke)};lf.prototype.equals=function(C){return this.overscaledZ===C.overscaledZ&&this.wrap===C.wrap&&this.canonical.equals(C.canonical)},lf.prototype.scaledTo=function(C){var G=this.canonical.z-C;return C>this.canonical.z?new lf(C,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new lf(C,this.wrap,C,this.canonical.x>>G,this.canonical.y>>G)},lf.prototype.calculateScaledKey=function(C,G){var oe=this.canonical.z-C;return C>this.canonical.z?Hg(this.wrap*+G,C,this.canonical.z,this.canonical.x,this.canonical.y):Hg(this.wrap*+G,C,C,this.canonical.x>>oe,this.canonical.y>>oe)},lf.prototype.isChildOf=function(C){if(C.wrap!==this.wrap)return!1;var G=this.canonical.z-C.canonical.z;return C.overscaledZ===0||C.overscaledZ>G&&C.canonical.y===this.canonical.y>>G},lf.prototype.children=function(C){if(this.overscaledZ>=C)return[new lf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,oe=this.canonical.x*2,_e=this.canonical.y*2;return[new lf(G,this.wrap,G,oe,_e),new lf(G,this.wrap,G,oe+1,_e),new lf(G,this.wrap,G,oe,_e+1),new lf(G,this.wrap,G,oe+1,_e+1)]},lf.prototype.isLessThan=function(C){return this.wrapC.wrap?!1:this.overscaledZC.overscaledZ?!1:this.canonical.xC.canonical.x?!1:this.canonical.y0;ke--)_e=1<=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(C+1)},td.prototype._unpackMapbox=function(C,G,oe){return(C*256*256+G*256+oe)/10-1e4},td.prototype._unpackTerrarium=function(C,G,oe){return C*256+G+oe/256-32768},td.prototype.getPixels=function(){return new Df({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},td.prototype.backfillBorder=function(C,G,oe){if(this.dim!==C.dim)throw new Error("dem dimension mismatch");var _e=G*this.dim,ke=G*this.dim+this.dim,Ue=oe*this.dim,ct=oe*this.dim+this.dim;switch(G){case-1:_e=ke-1;break;case 1:ke=_e+1;break}switch(oe){case-1:Ue=ct-1;break;case 1:ct=Ue+1;break}for(var Pt=-G*this.dim,Gt=-oe*this.dim,tr=Ue;tr=0&&xr[3]>=0&&Pt.insert(ct,xr[0],xr[1],xr[2],xr[3])}},rd.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Qv.VectorTile(new sa(this.rawTileData)).layers,this.sourceLayerCoder=new qy(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},rd.prototype.query=function(C,G,oe,_e){var ke=this;this.loadVTLayers();for(var Ue=C.params||{},ct=ti/C.tileSize/C.scale,Pt=Ye(Ue.filter),Gt=C.queryGeometry,tr=C.queryPadding*ct,xr=iS(Gt),Nr=this.grid.query(xr.minX-tr,xr.minY-tr,xr.maxX+tr,xr.maxY+tr),zr=iS(C.cameraQueryGeometry),aa=this.grid3D.query(zr.minX-tr,zr.minY-tr,zr.maxX+tr,zr.maxY+tr,function(si,Ai,xi,uo){return Oh(C.cameraQueryGeometry,si-tr,Ai-tr,xi+tr,uo+tr)}),Ca=0,gn=aa;Ca_e)ke=!1;else if(!G)ke=!0;else if(this.expirationTime=Hr.maxzoom)&&Hr.visibility!=="none"){c(Dr,this.zoom,Ht);var na=Da[Hr.id]=Hr.createBucket({index:wa.bucketLayerIDs.length,layers:Dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ot,sourceID:this.source});na.populate(Lr,Ya,this.tileID.canonical),wa.bucketLayerIDs.push(Dr.map(function(ra){return ra.id}))}}}}var ta,At,or,Ar,oa=e.mapObject(Ya.glyphDependencies,function(ra){return Object.keys(ra).map(Number)});Object.keys(oa).length?Tr.send("getGlyphs",{uid:this.uid,stacks:oa},function(ra,Ta){ta||(ta=ra,At=Ta,za.call(ha))}):At={};var ga=Object.keys(Ya.iconDependencies);ga.length?Tr.send("getImages",{icons:ga,source:this.source,tileID:this.tileID,type:"icons"},function(ra,Ta){ta||(ta=ra,or=Ta,za.call(ha))}):or={};var Sa=Object.keys(Ya.patternDependencies);Sa.length?Tr.send("getImages",{icons:Sa,source:this.source,tileID:this.tileID,type:"patterns"},function(ra,Ta){ta||(ta=ra,Ar=Ta,za.call(ha))}):Ar={},za.call(this);function za(){if(ta)return qr(ta);if(At&&or&&Ar){var ra=new n(At),Ta=new e.ImageAtlas(or,Ar);for(var Fn in Da){var mn=Da[Fn];mn instanceof e.SymbolBucket?(c(mn.layers,this.zoom,Ht),e.performSymbolLayout(mn,At,ra.positions,or,Ta.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):mn.hasPattern&&(mn instanceof e.LineBucket||mn instanceof e.FillBucket||mn instanceof e.FillExtrusionBucket)&&(c(mn.layers,this.zoom,Ht),mn.addFeatures(Ya,this.tileID.canonical,Ta.patternPositions))}this.status="done",qr(null,{buckets:e.values(Da).filter(function(Kn){return!Kn.isEmpty()}),featureIndex:wa,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ra.image,imageAtlas:Ta,glyphMap:this.returnDependencies?At:null,iconMap:this.returnDependencies?or:null,glyphPositions:this.returnDependencies?ra.positions:null})}}};function c(Kt,zt,$t){for(var Ht=new e.EvaluationParameters(zt),Tr=0,qr=Kt;Tr=0!=!!zt&&Kt.reverse()}var M=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(zt){this._feature=zt,this.extent=e.EXTENT,this.type=zt.type,this.properties=zt.tags,"id"in zt&&!isNaN(zt.id)&&(this.id=parseInt(zt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var zt=[],$t=0,Ht=this._feature.geometry;$t"u"&&(Ht.push(Gr),wa=Ht.length-1,qr[Gr]=wa),zt.writeVarint(wa);var Da=$t.properties[Gr],Ya=typeof Da;Ya!=="string"&&Ya!=="boolean"&&Ya!=="number"&&(Da=JSON.stringify(Da));var Ka=Ya+":"+Da,an=ha[Ka];typeof an>"u"&&(Tr.push(Da),an=Tr.length-1,ha[Ka]=an),zt.writeVarint(an)}}function te(Kt,zt){return(zt<<3)+(Kt&7)}function ue(Kt){return Kt<<1^Kt>>31}function ie(Kt,zt){for(var $t=Kt.loadGeometry(),Ht=Kt.type,Tr=0,qr=0,ha=$t.length,Gr=0;Gr>1;J(Kt,zt,ha,Ht,Tr,qr%2),q(Kt,zt,$t,Ht,ha-1,qr+1),q(Kt,zt,$t,ha+1,Tr,qr+1)}}function J(Kt,zt,$t,Ht,Tr,qr){for(;Tr>Ht;){if(Tr-Ht>600){var ha=Tr-Ht+1,Gr=$t-Ht+1,wa=Math.log(ha),Da=.5*Math.exp(2*wa/3),Ya=.5*Math.sqrt(wa*Da*(ha-Da)/ha)*(Gr-ha/2<0?-1:1),Ka=Math.max(Ht,Math.floor($t-Gr*Da/ha+Ya)),an=Math.min(Tr,Math.floor($t+(ha-Gr)*Da/ha+Ya));J(Kt,zt,$t,Ka,an,qr)}var mt=zt[2*$t+qr],ot=Ht,Lr=Tr;for(ee(Kt,zt,Ht,$t),zt[2*Tr+qr]>mt&&ee(Kt,zt,Ht,Tr);otmt;)Lr--}zt[2*Ht+qr]===mt?ee(Kt,zt,Ht,Lr):(Lr++,ee(Kt,zt,Lr,Tr)),Lr<=$t&&(Ht=Lr+1),$t<=Lr&&(Tr=Lr-1)}}function ee(Kt,zt,$t,Ht){Z(Kt,$t,Ht),Z(zt,2*$t,2*Ht),Z(zt,2*$t+1,2*Ht+1)}function Z(Kt,zt,$t){var Ht=Kt[zt];Kt[zt]=Kt[$t],Kt[$t]=Ht}function se(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=[0,Kt.length-1,0],wa=[],Da,Ya;Gr.length;){var Ka=Gr.pop(),an=Gr.pop(),mt=Gr.pop();if(an-mt<=ha){for(var ot=mt;ot<=an;ot++)Da=zt[2*ot],Ya=zt[2*ot+1],Da>=$t&&Da<=Tr&&Ya>=Ht&&Ya<=qr&&wa.push(Kt[ot]);continue}var Lr=Math.floor((mt+an)/2);Da=zt[2*Lr],Ya=zt[2*Lr+1],Da>=$t&&Da<=Tr&&Ya>=Ht&&Ya<=qr&&wa.push(Kt[Lr]);var Er=(Ka+1)%2;(Ka===0?$t<=Da:Ht<=Ya)&&(Gr.push(mt),Gr.push(Lr-1),Gr.push(Er)),(Ka===0?Tr>=Da:qr>=Ya)&&(Gr.push(Lr+1),Gr.push(an),Gr.push(Er))}return wa}function Q(Kt,zt,$t,Ht,Tr,qr){for(var ha=[0,Kt.length-1,0],Gr=[],wa=Tr*Tr;ha.length;){var Da=ha.pop(),Ya=ha.pop(),Ka=ha.pop();if(Ya-Ka<=qr){for(var an=Ka;an<=Ya;an++)V(zt[2*an],zt[2*an+1],$t,Ht)<=wa&&Gr.push(Kt[an]);continue}var mt=Math.floor((Ka+Ya)/2),ot=zt[2*mt],Lr=zt[2*mt+1];V(ot,Lr,$t,Ht)<=wa&&Gr.push(Kt[mt]);var Er=(Da+1)%2;(Da===0?$t-Tr<=ot:Ht-Tr<=Lr)&&(ha.push(Ka),ha.push(mt-1),ha.push(Er)),(Da===0?$t+Tr>=ot:Ht+Tr>=Lr)&&(ha.push(mt+1),ha.push(Ya),ha.push(Er))}return Gr}function V(Kt,zt,$t,Ht){var Tr=Kt-$t,qr=zt-Ht;return Tr*Tr+qr*qr}var re=function(Kt){return Kt[0]},ae=function(Kt){return Kt[1]},fe=function(zt,$t,Ht,Tr,qr){$t===void 0&&($t=re),Ht===void 0&&(Ht=ae),Tr===void 0&&(Tr=64),qr===void 0&&(qr=Float64Array),this.nodeSize=Tr,this.points=zt;for(var ha=zt.length<65536?Uint16Array:Uint32Array,Gr=this.ids=new ha(zt.length),wa=this.coords=new qr(zt.length*2),Da=0;Da=Tr;Ya--){var Ka=+Date.now();wa=this._cluster(wa,Ya),this.trees[Ya]=new fe(wa,he,De,ha,Float32Array),Ht&&console.log("z%d: %d clusters in %dms",Ya,wa.length,+Date.now()-Ka)}return Ht&&console.timeEnd("total time"),this},Ae.prototype.getClusters=function(zt,$t){var Ht=((zt[0]+180)%360+360)%360-180,Tr=Math.max(-90,Math.min(90,zt[1])),qr=zt[2]===180?180:((zt[2]+180)%360+360)%360-180,ha=Math.max(-90,Math.min(90,zt[3]));if(zt[2]-zt[0]>=360)Ht=-180,qr=180;else if(Ht>qr){var Gr=this.getClusters([Ht,Tr,180,ha],$t),wa=this.getClusters([-180,Tr,qr,ha],$t);return Gr.concat(wa)}for(var Da=this.trees[this._limitZoom($t)],Ya=Da.range(tt(Ht),Je(ha),tt(qr),Je(Tr)),Ka=[],an=0,mt=Ya;an$t&&(Lr+=Or.numPoints||1)}if(Lr>=wa){for(var jr=Ka.x*ot,Dr=Ka.y*ot,Hr=Gr&&ot>1?this._map(Ka,!0):null,na=(Ya<<5)+($t+1)+this.points.length,ta=0,At=mt;ta1)for(var ga=0,Sa=mt;ga>5},Ae.prototype._getOriginZoom=function(zt){return(zt-this.points.length)%32},Ae.prototype._map=function(zt,$t){if(zt.numPoints)return $t?we({},zt.properties):zt.properties;var Ht=this.points[zt.index].properties,Tr=this.options.map(Ht);return $t&&Tr===Ht?we({},Tr):Tr};function Pe(Kt,zt,$t,Ht,Tr){return{x:Kt,y:zt,zoom:1/0,id:$t,parentId:-1,numPoints:Ht,properties:Tr}}function Ce(Kt,zt){var $t=Kt.geometry.coordinates,Ht=$t[0],Tr=$t[1];return{x:tt(Ht),y:Je(Tr),zoom:1/0,index:zt,parentId:-1}}function je(Kt){return{type:"Feature",id:Kt.id,properties:at(Kt),geometry:{type:"Point",coordinates:[Ze(Kt.x),Me(Kt.y)]}}}function at(Kt){var zt=Kt.numPoints,$t=zt>=1e4?Math.round(zt/1e3)+"k":zt>=1e3?Math.round(zt/100)/10+"k":zt;return we(we({},Kt.properties),{cluster:!0,cluster_id:Kt.id,point_count:zt,point_count_abbreviated:$t})}function tt(Kt){return Kt/360+.5}function Je(Kt){var zt=Math.sin(Kt*Math.PI/180),$t=.5-.25*Math.log((1+zt)/(1-zt))/Math.PI;return $t<0?0:$t>1?1:$t}function Ze(Kt){return(Kt-.5)*360}function Me(Kt){var zt=(180-Kt*360)*Math.PI/180;return 360*Math.atan(Math.exp(zt))/Math.PI-90}function we(Kt,zt){for(var $t in zt)Kt[$t]=zt[$t];return Kt}function he(Kt){return Kt.x}function De(Kt){return Kt.y}function et(Kt,zt,$t,Ht){for(var Tr=Ht,qr=$t-zt>>1,ha=$t-zt,Gr,wa=Kt[zt],Da=Kt[zt+1],Ya=Kt[$t],Ka=Kt[$t+1],an=zt+3;an<$t;an+=3){var mt=nt(Kt[an],Kt[an+1],wa,Da,Ya,Ka);if(mt>Tr)Gr=an,Tr=mt;else if(mt===Tr){var ot=Math.abs(an-qr);otHt&&(Gr-zt>3&&et(Kt,zt,Gr,Ht),Kt[Gr+2]=Tr,$t-Gr>3&&et(Kt,Gr,$t,Ht))}function nt(Kt,zt,$t,Ht,Tr,qr){var ha=Tr-$t,Gr=qr-Ht;if(ha!==0||Gr!==0){var wa=((Kt-$t)*ha+(zt-Ht)*Gr)/(ha*ha+Gr*Gr);wa>1?($t=Tr,Ht=qr):wa>0&&($t+=ha*wa,Ht+=Gr*wa)}return ha=Kt-$t,Gr=zt-Ht,ha*ha+Gr*Gr}function Ke(Kt,zt,$t,Ht){var Tr={id:typeof Kt>"u"?null:Kt,type:zt,geometry:$t,tags:Ht,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Et(Tr),Tr}function Et(Kt){var zt=Kt.geometry,$t=Kt.type;if($t==="Point"||$t==="MultiPoint"||$t==="LineString")kt(Kt,zt);else if($t==="Polygon"||$t==="MultiLineString")for(var Ht=0;Ht0&&(Ht?ha+=(Tr*Da-wa*qr)/2:ha+=Math.sqrt(Math.pow(wa-Tr,2)+Math.pow(Da-qr,2))),Tr=wa,qr=Da}var Ya=zt.length-3;zt[2]=1,et(zt,0,Ya,$t),zt[Ya+2]=1,zt.size=Math.abs(ha),zt.start=0,zt.end=zt.size}function Rr(Kt,zt,$t,Ht){for(var Tr=0;Tr1?1:$t}function yt(Kt,zt,$t,Ht,Tr,qr,ha,Gr){if($t/=zt,Ht/=zt,qr>=$t&&ha=Ht)return null;for(var wa=[],Da=0;Da=$t&&ot=Ht)continue;var Lr=[];if(an==="Point"||an==="MultiPoint")Fe(Ka,Lr,$t,Ht,Tr);else if(an==="LineString")We(Ka,Lr,$t,Ht,Tr,!1,Gr.lineMetrics);else if(an==="MultiLineString")de(Ka,Lr,$t,Ht,Tr,!1);else if(an==="Polygon")de(Ka,Lr,$t,Ht,Tr,!0);else if(an==="MultiPolygon")for(var Er=0;Er=$t&&ha<=Ht&&(zt.push(Kt[qr]),zt.push(Kt[qr+1]),zt.push(Kt[qr+2]))}}function We(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=Oe(Kt),wa=Tr===0?be:Ie,Da=Kt.start,Ya,Ka,an=0;an$t&&(Ka=wa(Gr,mt,ot,Er,Mr,$t),ha&&(Gr.start=Da+Ya*Ka)):br>Ht?Or=$t&&(Ka=wa(Gr,mt,ot,Er,Mr,$t),jr=!0),Or>Ht&&br<=Ht&&(Ka=wa(Gr,mt,ot,Er,Mr,Ht),jr=!0),!qr&&jr&&(ha&&(Gr.end=Da+Ya*Ka),zt.push(Gr),Gr=Oe(Kt)),ha&&(Da+=Ya)}var Dr=Kt.length-3;mt=Kt[Dr],ot=Kt[Dr+1],Lr=Kt[Dr+2],br=Tr===0?mt:ot,br>=$t&&br<=Ht&&me(Gr,mt,ot,Lr),Dr=Gr.length-3,qr&&Dr>=3&&(Gr[Dr]!==Gr[0]||Gr[Dr+1]!==Gr[1])&&me(Gr,Gr[0],Gr[1],Gr[2]),Gr.length&&zt.push(Gr)}function Oe(Kt){var zt=[];return zt.size=Kt.size,zt.start=Kt.start,zt.end=Kt.end,zt}function de(Kt,zt,$t,Ht,Tr,qr){for(var ha=0;haha.maxX&&(ha.maxX=Ya),Ka>ha.maxY&&(ha.maxY=Ka)}return ha}function rr(Kt,zt,$t,Ht){var Tr=zt.geometry,qr=zt.type,ha=[];if(qr==="Point"||qr==="MultiPoint")for(var Gr=0;Gr0&&zt.size<(Tr?ha:Ht)){$t.numPoints+=zt.length/3;return}for(var Gr=[],wa=0;waha)&&($t.numSimplified++,Gr.push(zt[wa]),Gr.push(zt[wa+1])),$t.numPoints++;Tr&&mr(Gr,qr),Kt.push(Gr)}function mr(Kt,zt){for(var $t=0,Ht=0,Tr=Kt.length,qr=Tr-2;Ht0===zt)for(Ht=0,Tr=Kt.length;Ht24)throw new Error("maxZoom should be in the 0-24 range");if(zt.promoteId&&zt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ht=Ut(Kt,zt);this.tiles={},this.tileCoords=[],$t&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",zt.indexMaxZoom,zt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Ht=Xe(Ht,zt),Ht.length&&this.splitTile(Ht,0,0,0),$t&&(Ht.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ia.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ia.prototype.splitTile=function(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=[Kt,zt,$t,Ht],wa=this.options,Da=wa.debug;Gr.length;){Ht=Gr.pop(),$t=Gr.pop(),zt=Gr.pop(),Kt=Gr.pop();var Ya=1<1&&console.time("creation"),an=this.tiles[Ka]=Wt(Kt,zt,$t,Ht,wa),this.tileCoords.push({z:zt,x:$t,y:Ht}),Da)){Da>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",zt,$t,Ht,an.numFeatures,an.numPoints,an.numSimplified),console.timeEnd("creation"));var mt="z"+zt;this.stats[mt]=(this.stats[mt]||0)+1,this.total++}if(an.source=Kt,Tr){if(zt===wa.maxZoom||zt===Tr)continue;var ot=1<1&&console.time("clipping");var Lr=.5*wa.buffer/wa.extent,Er=.5-Lr,Mr=.5+Lr,br=1+Lr,Or,jr,Dr,Hr,na,ta;Or=jr=Dr=Hr=null,na=yt(Kt,Ya,$t-Lr,$t+Mr,0,an.minX,an.maxX,wa),ta=yt(Kt,Ya,$t+Er,$t+br,0,an.minX,an.maxX,wa),Kt=null,na&&(Or=yt(na,Ya,Ht-Lr,Ht+Mr,1,an.minY,an.maxY,wa),jr=yt(na,Ya,Ht+Er,Ht+br,1,an.minY,an.maxY,wa),na=null),ta&&(Dr=yt(ta,Ya,Ht-Lr,Ht+Mr,1,an.minY,an.maxY,wa),Hr=yt(ta,Ya,Ht+Er,Ht+br,1,an.minY,an.maxY,wa),ta=null),Da>1&&console.timeEnd("clipping"),Gr.push(Or||[],zt+1,$t*2,Ht*2),Gr.push(jr||[],zt+1,$t*2,Ht*2+1),Gr.push(Dr||[],zt+1,$t*2+1,Ht*2),Gr.push(Hr||[],zt+1,$t*2+1,Ht*2+1)}}},Ia.prototype.getTile=function(Kt,zt,$t){var Ht=this.options,Tr=Ht.extent,qr=Ht.debug;if(Kt<0||Kt>24)return null;var ha=1<1&&console.log("drilling down to z%d-%d-%d",Kt,zt,$t);for(var wa=Kt,Da=zt,Ya=$t,Ka;!Ka&&wa>0;)wa--,Da=Math.floor(Da/2),Ya=Math.floor(Ya/2),Ka=this.tiles[La(wa,Da,Ya)];return!Ka||!Ka.source?null:(qr>1&&console.log("found parent tile z%d-%d-%d",wa,Da,Ya),qr>1&&console.time("drilling down"),this.splitTile(Ka.source,wa,Da,Ya,Kt,zt,$t),qr>1&&console.timeEnd("drilling down"),this.tiles[Gr]?Ct(this.tiles[Gr],Tr):null)};function La(Kt,zt,$t){return((1<=0?0:ye.button},r.remove=function(ye){ye.parentNode&&ye.parentNode.removeChild(ye)};function v(ye,j,ce){var $,ge,Be,rt=e.browser.devicePixelRatio>1?"@2x":"",st=e.getJSON(j.transformRequest(j.normalizeSpriteURL(ye,rt,".json"),e.ResourceType.SpriteJSON),function(pt,Bt){st=null,Be||(Be=pt,$=Bt,Qe())}),Ge=e.getImage(j.transformRequest(j.normalizeSpriteURL(ye,rt,".png"),e.ResourceType.SpriteImage),function(pt,Bt){Ge=null,Be||(Be=pt,ge=Bt,Qe())});function Qe(){if(Be)ce(Be);else if($&&ge){var pt=e.browser.getImageData(ge),Bt={};for(var It in $){var Nt=$[It],Xt=Nt.width,qt=Nt.height,Mt=Nt.x,Ft=Nt.y,Rt=Nt.sdf,_r=Nt.pixelRatio,Ir=Nt.stretchX,Xr=Nt.stretchY,Ua=Nt.content,ka=new e.RGBAImage({width:Xt,height:qt});e.RGBAImage.copy(pt,ka,{x:Mt,y:Ft},{x:0,y:0},{width:Xt,height:qt}),Bt[It]={data:ka,pixelRatio:_r,sdf:Rt,stretchX:Ir,stretchY:Xr,content:Ua}}ce(null,Bt)}}return{cancel:function(){st&&(st.cancel(),st=null),Ge&&(Ge.cancel(),Ge=null)}}}function T(ye){var j=ye.userImage;if(j&&j.render){var ce=j.render();if(ce)return ye.data.replace(new Uint8Array(j.data.buffer)),!0}return!1}var l=1,m=function(ye){function j(){ye.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.isLoaded=function(){return this.loaded},j.prototype.setLoaded=function($){if(this.loaded!==$&&(this.loaded=$,$)){for(var ge=0,Be=this.requestors;ge=0?1.2:1))}b.prototype.draw=function(ye){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(ye,this.buffer,this.middle);for(var j=this.ctx.getImageData(0,0,this.size,this.size),ce=new Uint8ClampedArray(this.size*this.size),$=0;$65535){pt(new Error("glyphs > 65535 not supported"));return}if(Nt.ranges[qt]){pt(null,{stack:Bt,id:It,glyph:Xt});return}var Mt=Nt.requests[qt];Mt||(Mt=Nt.requests[qt]=[],g.loadGlyphRange(Bt,qt,$.url,$.requestManager,function(Ft,Rt){if(Rt){for(var _r in Rt)$._doesCharSupportLocalGlyph(+_r)||(Nt.glyphs[+_r]=Rt[+_r]);Nt.ranges[qt]=!0}for(var Ir=0,Xr=Mt;Ir1&&(Qe=j[++Ge]);var Bt=Math.abs(pt-Qe.left),It=Math.abs(pt-Qe.right),Nt=Math.min(Bt,It),Xt=void 0,qt=Be/$*(ge+1);if(Qe.isDash){var Mt=ge-Math.abs(qt);Xt=Math.sqrt(Nt*Nt+Mt*Mt)}else Xt=ge-Math.sqrt(Nt*Nt+qt*qt);this.data[st+pt]=Math.max(0,Math.min(255,Xt+128))}},F.prototype.addRegularDash=function(j){for(var ce=j.length-1;ce>=0;--ce){var $=j[ce],ge=j[ce+1];$.zeroLength?j.splice(ce,1):ge&&ge.isDash===$.isDash&&(ge.left=$.left,j.splice(ce,1))}var Be=j[0],rt=j[j.length-1];Be.isDash===rt.isDash&&(Be.left=rt.left-this.width,rt.right=Be.right+this.width);for(var st=this.width*this.nextRow,Ge=0,Qe=j[Ge],pt=0;pt1&&(Qe=j[++Ge]);var Bt=Math.abs(pt-Qe.left),It=Math.abs(pt-Qe.right),Nt=Math.min(Bt,It),Xt=Qe.isDash?Nt:-Nt;this.data[st+pt]=Math.max(0,Math.min(255,Xt+128))}},F.prototype.addDash=function(j,ce){var $=ce?7:0,ge=2*$+1;if(this.nextRow+ge>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var Be=0,rt=0;rt=$.minX&&j.x<$.maxX&&j.y>=$.minY&&j.y<$.maxY;return ge};var N=function(ye){function j(ce,$,ge,Be){if(ye.call(this),this.id=ce,this.dispatcher=ge,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick($,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},$),this._collectResourceTiming=$.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(Be)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){var $=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=O(this._options,this.map._requestManager,function(ge,Be){$._tileJSONRequest=null,$._loaded=!0,ge?$.fire(new e.ErrorEvent(ge)):Be&&(e.extend($,Be),Be.bounds&&($.tileBounds=new P(Be.bounds,$.minzoom,$.maxzoom)),e.postTurnstileEvent(Be.tiles,$.map._requestManager._customAccessToken),e.postMapLoadEvent(Be.tiles,$.map._getMapId(),$.map._requestManager._skuToken,$.map._requestManager._customAccessToken),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},j.prototype.loaded=function(){return this._loaded},j.prototype.hasTile=function($){return!this.tileBounds||this.tileBounds.contains($.canonical)},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setSourceProperty=function($){this._tileJSONRequest&&this._tileJSONRequest.cancel(),$();var ge=this.map.style.sourceCaches[this.id];ge.clearTiles(),this.load()},j.prototype.setTiles=function($){var ge=this;return this.setSourceProperty(function(){ge._options.tiles=$}),this},j.prototype.setUrl=function($){var ge=this;return this.setSourceProperty(function(){ge.url=$,ge._options.url=$}),this},j.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},j.prototype.serialize=function(){return e.extend({},this._options)},j.prototype.loadTile=function($,ge){var Be=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme)),rt={request:this.map._requestManager.transformRequest(Be,e.ResourceType.Tile),uid:$.uid,tileID:$.tileID,zoom:$.tileID.overscaledZ,tileSize:this.tileSize*$.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};rt.request.collectResourceTiming=this._collectResourceTiming,!$.actor||$.state==="expired"?($.actor=this.dispatcher.getActor(),$.request=$.actor.send("loadTile",rt,st.bind(this))):$.state==="loading"?$.reloadCallback=ge:$.request=$.actor.send("reloadTile",rt,st.bind(this));function st(Ge,Qe){if(delete $.request,$.aborted)return ge(null);if(Ge&&Ge.status!==404)return ge(Ge);Qe&&Qe.resourceTiming&&($.resourceTiming=Qe.resourceTiming),this.map._refreshExpiredTiles&&Qe&&$.setExpiryData(Qe),$.loadVectorData(Qe,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),ge(null),$.reloadCallback&&(this.loadTile($,$.reloadCallback),$.reloadCallback=null)}},j.prototype.abortTile=function($){$.request&&($.request.cancel(),delete $.request),$.actor&&$.actor.send("abortTile",{uid:$.uid,type:this.type,source:this.id},void 0)},j.prototype.unloadTile=function($){$.unloadVectorData(),$.actor&&$.actor.send("removeTile",{uid:$.uid,type:this.type,source:this.id},void 0)},j.prototype.hasTransition=function(){return!1},j}(e.Evented),U=function(ye){function j(ce,$,ge,Be){ye.call(this),this.id=ce,this.dispatcher=ge,this.setEventedParent(Be),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},$),e.extend(this,e.pick($,["url","scheme","tileSize"]))}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){var $=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=O(this._options,this.map._requestManager,function(ge,Be){$._tileJSONRequest=null,$._loaded=!0,ge?$.fire(new e.ErrorEvent(ge)):Be&&(e.extend($,Be),Be.bounds&&($.tileBounds=new P(Be.bounds,$.minzoom,$.maxzoom)),e.postTurnstileEvent(Be.tiles),e.postMapLoadEvent(Be.tiles,$.map._getMapId(),$.map._requestManager._skuToken),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},j.prototype.loaded=function(){return this._loaded},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},j.prototype.serialize=function(){return e.extend({},this._options)},j.prototype.hasTile=function($){return!this.tileBounds||this.tileBounds.contains($.canonical)},j.prototype.loadTile=function($,ge){var Be=this,rt=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);$.request=e.getImage(this.map._requestManager.transformRequest(rt,e.ResourceType.Tile),function(st,Ge){if(delete $.request,$.aborted)$.state="unloaded",ge(null);else if(st)$.state="errored",ge(st);else if(Ge){Be.map._refreshExpiredTiles&&$.setExpiryData(Ge),delete Ge.cacheControl,delete Ge.expires;var Qe=Be.map.painter.context,pt=Qe.gl;$.texture=Be.map.painter.getTileTexture(Ge.width),$.texture?$.texture.update(Ge,{useMipmap:!0}):($.texture=new e.Texture(Qe,Ge,pt.RGBA,{useMipmap:!0}),$.texture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE,pt.LINEAR_MIPMAP_NEAREST),Qe.extTextureFilterAnisotropic&&pt.texParameterf(pt.TEXTURE_2D,Qe.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Qe.extTextureFilterAnisotropicMax)),$.state="loaded",e.cacheEntryPossiblyAdded(Be.dispatcher),ge(null)}})},j.prototype.abortTile=function($,ge){$.request&&($.request.cancel(),delete $.request),ge()},j.prototype.unloadTile=function($,ge){$.texture&&this.map.painter.saveTileTexture($.texture),ge()},j.prototype.hasTransition=function(){return!1},j}(e.Evented),X=function(ye){function j(ce,$,ge,Be){ye.call(this,ce,$,ge,Be),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},$),this.encoding=$.encoding||"mapbox"}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},j.prototype.loadTile=function($,ge){var Be=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);$.request=e.getImage(this.map._requestManager.transformRequest(Be,e.ResourceType.Tile),rt.bind(this)),$.neighboringTiles=this._getNeighboringTiles($.tileID);function rt(Ge,Qe){if(delete $.request,$.aborted)$.state="unloaded",ge(null);else if(Ge)$.state="errored",ge(Ge);else if(Qe){this.map._refreshExpiredTiles&&$.setExpiryData(Qe),delete Qe.cacheControl,delete Qe.expires;var pt=e.window.ImageBitmap&&Qe instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported(),Bt=pt?Qe:e.browser.getImageData(Qe,1),It={uid:$.uid,coord:$.tileID,source:this.id,rawImageData:Bt,encoding:this.encoding};(!$.actor||$.state==="expired")&&($.actor=this.dispatcher.getActor(),$.actor.send("loadDEMTile",It,st.bind(this)))}}function st(Ge,Qe){Ge&&($.state="errored",ge(Ge)),Qe&&($.dem=Qe,$.needsHillshadePrepare=!0,$.state="loaded",ge(null))}},j.prototype._getNeighboringTiles=function($){var ge=$.canonical,Be=Math.pow(2,ge.z),rt=(ge.x-1+Be)%Be,st=ge.x===0?$.wrap-1:$.wrap,Ge=(ge.x+1+Be)%Be,Qe=ge.x+1===Be?$.wrap+1:$.wrap,pt={};return pt[new e.OverscaledTileID($.overscaledZ,st,ge.z,rt,ge.y).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,Qe,ge.z,Ge,ge.y).key]={backfilled:!1},ge.y>0&&(pt[new e.OverscaledTileID($.overscaledZ,st,ge.z,rt,ge.y-1).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,$.wrap,ge.z,ge.x,ge.y-1).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,Qe,ge.z,Ge,ge.y-1).key]={backfilled:!1}),ge.y+10&&(Be.resourceTiming=$._resourceTiming,$._resourceTiming=[]),$.fire(new e.Event("data",Be))})},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setData=function($){var ge=this;return this._data=$,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Be){if(Be){ge.fire(new e.ErrorEvent(Be));return}var rt={dataType:"source",sourceDataType:"content"};ge._collectResourceTiming&&ge._resourceTiming&&ge._resourceTiming.length>0&&(rt.resourceTiming=ge._resourceTiming,ge._resourceTiming=[]),ge.fire(new e.Event("data",rt))}),this},j.prototype.getClusterExpansionZoom=function($,ge){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:$,source:this.id},ge),this},j.prototype.getClusterChildren=function($,ge){return this.actor.send("geojson.getClusterChildren",{clusterId:$,source:this.id},ge),this},j.prototype.getClusterLeaves=function($,ge,Be,rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:$,limit:ge,offset:Be},rt),this},j.prototype._updateWorkerData=function($){var ge=this;this._loaded=!1;var Be=e.extend({},this.workerOptions),rt=this._data;typeof rt=="string"?(Be.request=this.map._requestManager.transformRequest(e.browser.resolveURL(rt),e.ResourceType.Source),Be.request.collectResourceTiming=this._collectResourceTiming):Be.data=JSON.stringify(rt),this.actor.send(this.type+".loadData",Be,function(st,Ge){ge._removed||Ge&&Ge.abandoned||(ge._loaded=!0,Ge&&Ge.resourceTiming&&Ge.resourceTiming[ge.id]&&(ge._resourceTiming=Ge.resourceTiming[ge.id].slice(0)),ge.actor.send(ge.type+".coalesce",{source:Be.source},null),$(st))})},j.prototype.loaded=function(){return this._loaded},j.prototype.loadTile=function($,ge){var Be=this,rt=$.actor?"reloadTile":"loadTile";$.actor=this.actor;var st={type:this.type,uid:$.uid,tileID:$.tileID,zoom:$.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};$.request=this.actor.send(rt,st,function(Ge,Qe){return delete $.request,$.unloadVectorData(),$.aborted?ge(null):Ge?ge(Ge):($.loadVectorData(Qe,Be.map.painter,rt==="reloadTile"),ge(null))})},j.prototype.abortTile=function($){$.request&&($.request.cancel(),delete $.request),$.aborted=!0},j.prototype.unloadTile=function($){$.unloadVectorData(),this.actor.send("removeTile",{uid:$.uid,type:this.type,source:this.id})},j.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},j.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},j.prototype.hasTransition=function(){return!1},j}(e.Evented),ue=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ie=function(ye){function j(ce,$,ge,Be){ye.call(this),this.id=ce,this.dispatcher=ge,this.coordinates=$.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Be),this.options=$}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function($,ge){var Be=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),function(rt,st){Be._loaded=!0,rt?Be.fire(new e.ErrorEvent(rt)):st&&(Be.image=st,$&&(Be.coordinates=$),ge&&ge(),Be._finishLoading())})},j.prototype.loaded=function(){return this._loaded},j.prototype.updateImage=function($){var ge=this;return!this.image||!$.url?this:(this.options.url=$.url,this.load($.coordinates,function(){ge.texture=null}),this)},j.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setCoordinates=function($){var ge=this;this.coordinates=$;var Be=$.map(e.MercatorCoordinate.fromLngLat);this.tileID=le(Be),this.minzoom=this.maxzoom=this.tileID.z;var rt=Be.map(function(st){return ge.tileID.getTilePoint(st)._round()});return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(rt[0].x,rt[0].y,0,0),this._boundsArray.emplaceBack(rt[1].x,rt[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(rt[3].x,rt[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(rt[2].x,rt[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},j.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var $=this.map.painter.context,ge=$.gl;this.boundsBuffer||(this.boundsBuffer=$.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture($,this.image,ge.RGBA),this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE));for(var Be in this.tiles){var rt=this.tiles[Be];rt.state!=="loaded"&&(rt.state="loaded",rt.texture=this.texture)}}},j.prototype.loadTile=function($,ge){this.tileID&&this.tileID.equals($.tileID.canonical)?(this.tiles[String($.tileID.wrap)]=$,$.buckets={},ge(null)):($.state="errored",ge(null))},j.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},j.prototype.hasTransition=function(){return!1},j}(e.Evented);function le(ye){for(var j=1/0,ce=1/0,$=-1/0,ge=-1/0,Be=0,rt=ye;Bege.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ge.start(0)+" and "+ge.end(0)+"-second mark."))):this.video.currentTime=$}},j.prototype.getVideo=function(){return this.video},j.prototype.onAdd=function($){this.map||(this.map=$,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},j.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var $=this.map.painter.context,ge=$.gl;this.boundsBuffer||(this.boundsBuffer=$.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE),ge.texSubImage2D(ge.TEXTURE_2D,0,0,0,ge.RGBA,ge.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture($,this.video,ge.RGBA),this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE));for(var Be in this.tiles){var rt=this.tiles[Be];rt.state!=="loaded"&&(rt.state="loaded",rt.texture=this.texture)}}},j.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},j.prototype.hasTransition=function(){return this.video&&!this.video.paused},j}(ie),J=function(ye){function j(ce,$,ge,Be){ye.call(this,ce,$,ge,Be),$.coordinates?(!Array.isArray($.coordinates)||$.coordinates.length!==4||$.coordinates.some(function(rt){return!Array.isArray(rt)||rt.length!==2||rt.some(function(st){return typeof st!="number"})}))&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'missing required property "coordinates"'))),$.animate&&typeof $.animate!="boolean"&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'optional "animate" property must be a boolean value'))),$.canvas?typeof $.canvas!="string"&&!($.canvas instanceof e.window.HTMLCanvasElement)&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'missing required property "canvas"'))),this.options=$,this.animate=$.animate!==void 0?$.animate:!0}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},j.prototype.getCanvas=function(){return this.canvas},j.prototype.onAdd=function($){this.map=$,this.load(),this.canvas&&this.animate&&this.play()},j.prototype.onRemove=function(){this.pause()},j.prototype.prepare=function(){var $=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,$=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,$=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ge=this.map.painter.context,Be=ge.gl;this.boundsBuffer||(this.boundsBuffer=ge.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?($||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(ge,this.canvas,Be.RGBA,{premultiply:!0});for(var rt in this.tiles){var st=this.tiles[rt];st.state!=="loaded"&&(st.state="loaded",st.texture=this.texture)}}},j.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},j.prototype.hasTransition=function(){return this._playing},j.prototype._hasInvalidDimensions=function(){for(var $=0,ge=[this.canvas.width,this.canvas.height];$this.max){var st=this._getAndRemoveByKey(this.order[0]);st&&this.onRemove(st)}return this},Ce.prototype.has=function(j){return j.wrapped().key in this.data},Ce.prototype.getAndRemove=function(j){return this.has(j)?this._getAndRemoveByKey(j.wrapped().key):null},Ce.prototype._getAndRemoveByKey=function(j){var ce=this.data[j].shift();return ce.timeout&&clearTimeout(ce.timeout),this.data[j].length===0&&delete this.data[j],this.order.splice(this.order.indexOf(j),1),ce.value},Ce.prototype.getByKey=function(j){var ce=this.data[j];return ce?ce[0].value:null},Ce.prototype.get=function(j){if(!this.has(j))return null;var ce=this.data[j.wrapped().key][0];return ce.value},Ce.prototype.remove=function(j,ce){if(!this.has(j))return this;var $=j.wrapped().key,ge=ce===void 0?0:this.data[$].indexOf(ce),Be=this.data[$][ge];return this.data[$].splice(ge,1),Be.timeout&&clearTimeout(Be.timeout),this.data[$].length===0&&delete this.data[$],this.onRemove(Be.value),this.order.splice(this.order.indexOf($),1),this},Ce.prototype.setMaxSize=function(j){for(this.max=j;this.order.length>this.max;){var ce=this._getAndRemoveByKey(this.order[0]);ce&&this.onRemove(ce)}return this},Ce.prototype.filter=function(j){var ce=[];for(var $ in this.data)for(var ge=0,Be=this.data[$];ge1||(Math.abs(Bt)>1&&(Math.abs(Bt+Nt)===1?Bt+=Nt:Math.abs(Bt-Nt)===1&&(Bt-=Nt)),!(!pt.dem||!Qe.dem)&&(Qe.dem.backfillBorder(pt.dem,Bt,It),Qe.neighboringTiles&&Qe.neighboringTiles[Xt]&&(Qe.neighboringTiles[Xt].backfilled=!0)))}},j.prototype.getTile=function($){return this.getTileByID($.key)},j.prototype.getTileByID=function($){return this._tiles[$]},j.prototype._retainLoadedChildren=function($,ge,Be,rt){for(var st in this._tiles){var Ge=this._tiles[st];if(!(rt[st]||!Ge.hasData()||Ge.tileID.overscaledZ<=ge||Ge.tileID.overscaledZ>Be)){for(var Qe=Ge.tileID;Ge&&Ge.tileID.overscaledZ>ge+1;){var pt=Ge.tileID.scaledTo(Ge.tileID.overscaledZ-1);Ge=this._tiles[pt.key],Ge&&Ge.hasData()&&(Qe=pt)}for(var Bt=Qe;Bt.overscaledZ>ge;)if(Bt=Bt.scaledTo(Bt.overscaledZ-1),$[Bt.key]){rt[Qe.key]=Qe;break}}}},j.prototype.findLoadedParent=function($,ge){if($.key in this._loadedParentTiles){var Be=this._loadedParentTiles[$.key];return Be&&Be.tileID.overscaledZ>=ge?Be:null}for(var rt=$.overscaledZ-1;rt>=ge;rt--){var st=$.scaledTo(rt),Ge=this._getLoadedTile(st);if(Ge)return Ge}},j.prototype._getLoadedTile=function($){var ge=this._tiles[$.key];if(ge&&ge.hasData())return ge;var Be=this._cache.getByKey($.wrapped().key);return Be},j.prototype.updateCacheSize=function($){var ge=Math.ceil($.width/this._source.tileSize)+1,Be=Math.ceil($.height/this._source.tileSize)+1,rt=ge*Be,st=5,Ge=Math.floor(rt*st),Qe=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ge):Ge;this._cache.setMaxSize(Qe)},j.prototype.handleWrapJump=function($){var ge=this._prevLng===void 0?$:this._prevLng,Be=$-ge,rt=Be/360,st=Math.round(rt);if(this._prevLng=$,st){var Ge={};for(var Qe in this._tiles){var pt=this._tiles[Qe];pt.tileID=pt.tileID.unwrapTo(pt.tileID.wrap+st),Ge[pt.tileID.key]=pt}this._tiles=Ge;for(var Bt in this._timers)clearTimeout(this._timers[Bt]),delete this._timers[Bt];for(var It in this._tiles){var Nt=this._tiles[It];this._setTileReloadTimer(It,Nt)}}},j.prototype.update=function($){var ge=this;if(this.transform=$,!(!this._sourceLoaded||this._paused)){this.updateCacheSize($),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Be;this.used?this._source.tileID?Be=$.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ha){return new e.OverscaledTileID(Ha.canonical.z,Ha.wrap,Ha.canonical.z,Ha.canonical.x,Ha.canonical.y)}):(Be=$.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Be=Be.filter(function(Ha){return ge._source.hasTile(Ha)}))):Be=[];var rt=$.coveringZoomLevel(this._source),st=Math.max(rt-j.maxOverzooming,this._source.minzoom),Ge=Math.max(rt+j.maxUnderzooming,this._source.minzoom),Qe=this._updateRetainedTiles(Be,rt);if(wa(this._source.type)){for(var pt={},Bt={},It=Object.keys(Qe),Nt=0,Xt=It;Ntthis._source.maxzoom){var Rt=Mt.children(this._source.maxzoom)[0],_r=this.getTile(Rt);if(_r&&_r.hasData()){Be[Rt.key]=Rt;continue}}else{var Ir=Mt.children(this._source.maxzoom);if(Be[Ir[0].key]&&Be[Ir[1].key]&&Be[Ir[2].key]&&Be[Ir[3].key])continue}for(var Xr=Ft.wasRequested(),Ua=Mt.overscaledZ-1;Ua>=st;--Ua){var ka=Mt.scaledTo(Ua);if(rt[ka.key]||(rt[ka.key]=!0,Ft=this.getTile(ka),!Ft&&Xr&&(Ft=this._addTile(ka)),Ft&&(Be[ka.key]=ka,Xr=Ft.wasRequested(),Ft.hasData())))break}}}return Be},j.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var $ in this._tiles){for(var ge=[],Be=void 0,rt=this._tiles[$].tileID;rt.overscaledZ>0;){if(rt.key in this._loadedParentTiles){Be=this._loadedParentTiles[rt.key];break}ge.push(rt.key);var st=rt.scaledTo(rt.overscaledZ-1);if(Be=this._getLoadedTile(st),Be)break;rt=st}for(var Ge=0,Qe=ge;Ge0)&&(ge.hasData()&&ge.state!=="reloading"?this._cache.add(ge.tileID,ge,ge.getExpiryTimeout()):(ge.aborted=!0,this._abortTile(ge),this._unloadTile(ge))))},j.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var $ in this._tiles)this._removeTile($);this._cache.reset()},j.prototype.tilesIn=function($,ge,Be){var rt=this,st=[],Ge=this.transform;if(!Ge)return st;for(var Qe=Be?Ge.getCameraQueryGeometry($):$,pt=$.map(function(Ua){return Ge.pointCoordinate(Ua)}),Bt=Qe.map(function(Ua){return Ge.pointCoordinate(Ua)}),It=this.getIds(),Nt=1/0,Xt=1/0,qt=-1/0,Mt=-1/0,Ft=0,Rt=Bt;Ft=0&&on[1].y+Ha>=0){var qa=pt.map(function(Sn){return xa.getTilePoint(Sn)}),hn=Bt.map(function(Sn){return xa.getTilePoint(Sn)});st.push({tile:ka,tileID:xa,queryGeometry:qa,cameraQueryGeometry:hn,scale:ja})}}},Xr=0;Xr=e.browser.now())return!0}return!1},j.prototype.setFeatureState=function($,ge,Be){$=$||"_geojsonTileLayer",this._state.updateState($,ge,Be)},j.prototype.removeFeatureState=function($,ge,Be){$=$||"_geojsonTileLayer",this._state.removeFeatureState($,ge,Be)},j.prototype.getFeatureState=function($,ge){return $=$||"_geojsonTileLayer",this._state.getState($,ge)},j.prototype.setDependencies=function($,ge,Be){var rt=this._tiles[$];rt&&rt.setDependencies(ge,Be)},j.prototype.reloadTilesForDependencies=function($,ge){for(var Be in this._tiles){var rt=this._tiles[Be];rt.hasDependency($,ge)&&this._reloadTile(Be,"reloading")}this._cache.filter(function(st){return!st.hasDependency($,ge)})},j}(e.Evented);ha.maxOverzooming=10,ha.maxUnderzooming=3;function Gr(ye,j){var ce=Math.abs(ye.wrap*2)-+(ye.wrap<0),$=Math.abs(j.wrap*2)-+(j.wrap<0);return ye.overscaledZ-j.overscaledZ||$-ce||j.canonical.y-ye.canonical.y||j.canonical.x-ye.canonical.x}function wa(ye){return ye==="raster"||ye==="image"||ye==="video"}function Da(){return new e.window.Worker(mo.workerUrl)}var Ya="mapboxgl_preloaded_worker_pool",Ka=function(){this.active={}};Ka.prototype.acquire=function(j){if(!this.workers)for(this.workers=[];this.workers.length0?(ge-rt)/st:0;return this.points[Be].mult(1-Ge).add(this.points[ce].mult(Ge))};var ra=function(j,ce,$){var ge=this.boxCells=[],Be=this.circleCells=[];this.xCellCount=Math.ceil(j/$),this.yCellCount=Math.ceil(ce/$);for(var rt=0;rtthis.width||ge<0||ce>this.height)return Be?!1:[];var st=[];if(j<=0&&ce<=0&&this.width<=$&&this.height<=ge){if(Be)return!0;for(var Ge=0;Ge0:st}},ra.prototype._queryCircle=function(j,ce,$,ge,Be){var rt=j-$,st=j+$,Ge=ce-$,Qe=ce+$;if(st<0||rt>this.width||Qe<0||Ge>this.height)return ge?!1:[];var pt=[],Bt={hitTest:ge,circle:{x:j,y:ce,radius:$},seenUids:{box:{},circle:{}}};return this._forEachCell(rt,Ge,st,Qe,this._queryCellCircle,pt,Bt,Be),ge?pt.length>0:pt},ra.prototype.query=function(j,ce,$,ge,Be){return this._query(j,ce,$,ge,!1,Be)},ra.prototype.hitTest=function(j,ce,$,ge,Be){return this._query(j,ce,$,ge,!0,Be)},ra.prototype.hitTestCircle=function(j,ce,$,ge){return this._queryCircle(j,ce,$,!0,ge)},ra.prototype._queryCell=function(j,ce,$,ge,Be,rt,st,Ge){var Qe=st.seenUids,pt=this.boxCells[Be];if(pt!==null)for(var Bt=this.bboxes,It=0,Nt=pt;It=Bt[qt+0]&&ge>=Bt[qt+1]&&(!Ge||Ge(this.boxKeys[Xt]))){if(st.hitTest)return rt.push(!0),!0;rt.push({key:this.boxKeys[Xt],x1:Bt[qt],y1:Bt[qt+1],x2:Bt[qt+2],y2:Bt[qt+3]})}}}var Mt=this.circleCells[Be];if(Mt!==null)for(var Ft=this.circles,Rt=0,_r=Mt;Rt<_r.length;Rt+=1){var Ir=_r[Rt];if(!Qe.circle[Ir]){Qe.circle[Ir]=!0;var Xr=Ir*3;if(this._circleAndRectCollide(Ft[Xr],Ft[Xr+1],Ft[Xr+2],j,ce,$,ge)&&(!Ge||Ge(this.circleKeys[Ir]))){if(st.hitTest)return rt.push(!0),!0;var Ua=Ft[Xr],ka=Ft[Xr+1],xa=Ft[Xr+2];rt.push({key:this.circleKeys[Ir],x1:Ua-xa,y1:ka-xa,x2:Ua+xa,y2:ka+xa})}}}},ra.prototype._queryCellCircle=function(j,ce,$,ge,Be,rt,st,Ge){var Qe=st.circle,pt=st.seenUids,Bt=this.boxCells[Be];if(Bt!==null)for(var It=this.bboxes,Nt=0,Xt=Bt;Ntst*st+Ge*Ge},ra.prototype._circleAndRectCollide=function(j,ce,$,ge,Be,rt,st){var Ge=(rt-ge)/2,Qe=Math.abs(j-(ge+Ge));if(Qe>Ge+$)return!1;var pt=(st-Be)/2,Bt=Math.abs(ce-(Be+pt));if(Bt>pt+$)return!1;if(Qe<=Ge||Bt<=pt)return!0;var It=Qe-Ge,Nt=Bt-pt;return It*It+Nt*Nt<=$*$};function Ta(ye,j,ce,$,ge){var Be=e.create();return j?(e.scale(Be,Be,[1/ge,1/ge,1]),ce||e.rotateZ(Be,Be,$.angle)):e.multiply(Be,$.labelPlaneMatrix,ye),Be}function Fn(ye,j,ce,$,ge){if(j){var Be=e.clone(ye);return e.scale(Be,Be,[ge,ge,1]),ce||e.rotateZ(Be,Be,-$.angle),Be}else return $.glCoordMatrix}function mn(ye,j){var ce=[ye.x,ye.y,0,1];gs(ce,ce,j);var $=ce[3];return{point:new e.Point(ce[0]/$,ce[1]/$),signedDistanceFromCamera:$}}function Kn(ye,j){return .5+.5*(ye/j)}function ui(ye,j){var ce=ye[0]/ye[3],$=ye[1]/ye[3],ge=ce>=-j[0]&&ce<=j[0]&&$>=-j[1]&&$<=j[1];return ge}function pi(ye,j,ce,$,ge,Be,rt,st){var Ge=$?ye.textSizeData:ye.iconSizeData,Qe=e.evaluateSizeForZoom(Ge,ce.transform.zoom),pt=[256/ce.width*2+1,256/ce.height*2+1],Bt=$?ye.text.dynamicLayoutVertexArray:ye.icon.dynamicLayoutVertexArray;Bt.clear();for(var It=ye.lineVertexArray,Nt=$?ye.text.placedSymbolArray:ye.icon.placedSymbolArray,Xt=ce.transform.width/ce.transform.height,qt=!1,Mt=0;MtBe)return{useVertical:!0}}return(ye===e.WritingMode.vertical?j.yce.x)?{needsFlipping:!0}:null}function Ni(ye,j,ce,$,ge,Be,rt,st,Ge,Qe,pt,Bt,It,Nt){var Xt=j/24,qt=ye.lineOffsetX*Xt,Mt=ye.lineOffsetY*Xt,Ft;if(ye.numGlyphs>1){var Rt=ye.glyphStartIndex+ye.numGlyphs,_r=ye.lineStartIndex,Ir=ye.lineStartIndex+ye.lineLength,Xr=vi(Xt,st,qt,Mt,ce,pt,Bt,ye,Ge,Be,It);if(!Xr)return{notEnoughRoom:!0};var Ua=mn(Xr.first.point,rt).point,ka=mn(Xr.last.point,rt).point;if($&&!ce){var xa=Li(ye.writingMode,Ua,ka,Nt);if(xa)return xa}Ft=[Xr.first];for(var ja=ye.glyphStartIndex+1;ja0?hn.point:ci(Bt,qa,Ha,1,ge),Gn=Li(ye.writingMode,Ha,Sn,Nt);if(Gn)return Gn}var ti=bi(Xt*st.getoffsetX(ye.glyphStartIndex),qt,Mt,ce,pt,Bt,ye.segment,ye.lineStartIndex,ye.lineStartIndex+ye.lineLength,Ge,Be,It);if(!ti)return{notEnoughRoom:!0};Ft=[ti]}for(var yo=0,vo=Ft;yo0?1:-1,Xt=0;$&&(Nt*=-1,Xt=Math.PI),Nt<0&&(Xt+=Math.PI);for(var qt=Nt>0?st+rt:st+rt+1,Mt=ge,Ft=ge,Rt=0,_r=0,Ir=Math.abs(It),Xr=[];Rt+_r<=Ir;){if(qt+=Nt,qt=Ge)return null;if(Ft=Mt,Xr.push(Mt),Mt=Bt[qt],Mt===void 0){var Ua=new e.Point(Qe.getx(qt),Qe.gety(qt)),ka=mn(Ua,pt);if(ka.signedDistanceFromCamera>0)Mt=Bt[qt]=ka.point;else{var xa=qt-Nt,ja=Rt===0?Be:new e.Point(Qe.getx(xa),Qe.gety(xa));Mt=ci(ja,Ua,Ft,Ir-Rt+1,pt)}}Rt+=_r,_r=Ft.dist(Mt)}var Ha=(Ir-Rt)/_r,on=Mt.sub(Ft),qa=on.mult(Ha)._add(Ft);qa._add(on._unit()._perp()._mult(ce*Nt));var hn=Xt+Math.atan2(Mt.y-Ft.y,Mt.x-Ft.x);return Xr.push(qa),{point:qa,angle:hn,path:Xr}}var ho=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Bo(ye,j){for(var ce=0;ce=1;ss--)vo.push(ti.path[ss]);for(var rs=1;rs0){for(var Qo=vo[0].clone(),tl=vo[0].clone(),cc=1;cc=hn.x&&tl.x<=Sn.x&&Qo.y>=hn.y&&tl.y<=Sn.y?Cl=[vo]:tl.xSn.x||tl.ySn.y?Cl=[]:Cl=e.clipLine([vo],hn.x,hn.y,Sn.x,Sn.y)}for(var Dc=0,yh=Cl;Dc=this.screenRightBoundary||gethis.screenBottomBoundary},Ei.prototype.isInsideGrid=function(j,ce,$,ge){return $>=0&&j=0&&ce0){var Ir;return this.prevPlacement&&this.prevPlacement.variableOffsets[It.crossTileID]&&this.prevPlacement.placements[It.crossTileID]&&this.prevPlacement.placements[It.crossTileID].text&&(Ir=this.prevPlacement.variableOffsets[It.crossTileID].anchor),this.variableOffsets[It.crossTileID]={textOffset:Mt,width:$,height:ge,anchor:j,textBoxScale:Be,prevAnchor:Ir},this.markUsedJustification(Nt,j,It,Xt),Nt.allowVerticalPlacement&&(this.markUsedOrientation(Nt,Xt,It),this.placedOrientations[It.crossTileID]=Xt),{shift:Ft,placedGlyphBoxes:Rt}}},Mo.prototype.placeLayerBucketPart=function(j,ce,$){var ge=this,Be=j.parameters,rt=Be.bucket,st=Be.layout,Ge=Be.posMatrix,Qe=Be.textLabelPlaneMatrix,pt=Be.labelToScreenMatrix,Bt=Be.textPixelRatio,It=Be.holdingForFade,Nt=Be.collisionBoxArray,Xt=Be.partiallyEvaluatedTextSize,qt=Be.collisionGroup,Mt=st.get("text-optional"),Ft=st.get("icon-optional"),Rt=st.get("text-allow-overlap"),_r=st.get("icon-allow-overlap"),Ir=st.get("text-rotation-alignment")==="map",Xr=st.get("text-pitch-alignment")==="map",Ua=st.get("icon-text-fit")!=="none",ka=st.get("symbol-z-order")==="viewport-y",xa=Rt&&(_r||!rt.hasIconData()||Ft),ja=_r&&(Rt||!rt.hasTextData()||Mt);!rt.collisionArrays&&Nt&&rt.deserializeCollisionBoxes(Nt);var Ha=function(ti,yo){if(!ce[ti.crossTileID]){if(It){ge.placements[ti.crossTileID]=new bo(!1,!1,!1);return}var vo=!1,ss=!1,rs=!0,fs=null,ls={box:null,offscreen:null},Cl={box:null},Qo=null,tl=null,cc=null,Dc=0,yh=0,_h=0;yo.textFeatureIndex?Dc=yo.textFeatureIndex:ti.useRuntimeCollisionCircles&&(Dc=ti.featureIndex),yo.verticalTextFeatureIndex&&(yh=yo.verticalTextFeatureIndex);var qf=yo.textBox;if(qf){var Lh=function(Fu){var Nl=e.WritingMode.horizontal;if(rt.allowVerticalPlacement&&!Fu&&ge.prevPlacement){var Wf=ge.prevPlacement.placedOrientations[ti.crossTileID];Wf&&(ge.placedOrientations[ti.crossTileID]=Wf,Nl=Wf,ge.markUsedOrientation(rt,Nl,ti))}return Nl},cv=function(Fu,Nl){if(rt.allowVerticalPlacement&&ti.numVerticalGlyphVertices>0&&yo.verticalTextBox)for(var Wf=0,Yv=rt.writingModes;Wf0&&(th=th.filter(function(Fu){return Fu!==Hf.anchor}),th.unshift(Hf.anchor))}var xh=function(Fu,Nl,Wf){for(var Yv=Fu.x2-Fu.x1,md=Fu.y2-Fu.y1,Jl=ti.textBoxScale,fp=Ua&&!_r?Nl:null,kv={box:[],offscreen:!1},Jp=Rt?th.length*2:th.length,wh=0;wh=th.length,hp=ge.attemptAnchorPlacement(Cv,Fu,Yv,md,Jl,Ir,Xr,Bt,Ge,qt,Qp,ti,rt,Wf,fp);if(hp&&(kv=hp.placedGlyphBoxes,kv&&kv.box&&kv.box.length)){vo=!0,fs=hp.shift;break}}return kv},Ph=function(){return xh(qf,yo.iconBox,e.WritingMode.horizontal)},bh=function(){var Fu=yo.verticalTextBox,Nl=ls&&ls.box&&ls.box.length;return rt.allowVerticalPlacement&&!Nl&&ti.numVerticalGlyphVertices>0&&Fu?xh(Fu,yo.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}};cv(Ph,bh),ls&&(vo=ls.box,rs=ls.offscreen);var Wv=Lh(ls&&ls.box);if(!vo&&ge.prevPlacement){var fv=ge.prevPlacement.variableOffsets[ti.crossTileID];fv&&(ge.variableOffsets[ti.crossTileID]=fv,ge.markUsedJustification(rt,fv.anchor,ti,Wv))}}else{var Fh=function(Fu,Nl){var Wf=ge.collisionIndex.placeCollisionBox(Fu,Rt,Bt,Ge,qt.predicate);return Wf&&Wf.box&&Wf.box.length&&(ge.markUsedOrientation(rt,Nl,ti),ge.placedOrientations[ti.crossTileID]=Nl),Wf},Gf=function(){return Fh(qf,e.WritingMode.horizontal)},Oh=function(){var Fu=yo.verticalTextBox;return rt.allowVerticalPlacement&&ti.numVerticalGlyphVertices>0&&Fu?Fh(Fu,e.WritingMode.vertical):{box:null,offscreen:null}};cv(Gf,Oh),Lh(ls&&ls.box&&ls.box.length)}}if(Qo=ls,vo=Qo&&Qo.box&&Qo.box.length>0,rs=Qo&&Qo.offscreen,ti.useRuntimeCollisionCircles){var rf=rt.text.placedSymbolArray.get(ti.centerJustifiedTextSymbolIndex),hv=e.evaluateSizeForFeature(rt.textSizeData,Xt,rf),Xv=st.get("text-padding"),Tf=ti.collisionCircleDiameter;tl=ge.collisionIndex.placeCollisionCircles(Rt,rf,rt.lineVertexArray,rt.glyphOffsetArray,hv,Ge,Qe,pt,$,Xr,qt.predicate,Tf,Xv),vo=Rt||tl.circles.length>0&&!tl.collisionDetected,rs=rs&&tl.offscreen}if(yo.iconFeatureIndex&&(_h=yo.iconFeatureIndex),yo.iconBox){var Sv=function(Fu){var Nl=Ua&&fs?ms(Fu,fs.x,fs.y,Ir,Xr,ge.transform.angle):Fu;return ge.collisionIndex.placeCollisionBox(Nl,_r,Bt,Ge,qt.predicate)};Cl&&Cl.box&&Cl.box.length&&yo.verticalIconBox?(cc=Sv(yo.verticalIconBox),ss=cc.box.length>0):(cc=Sv(yo.iconBox),ss=cc.box.length>0),rs=rs&&cc.offscreen}var pd=Mt||ti.numHorizontalGlyphVertices===0&&ti.numVerticalGlyphVertices===0,gd=Ft||ti.numIconVertices===0;if(!pd&&!gd?ss=vo=ss&&vo:gd?pd||(ss=ss&&vo):vo=ss&&vo,vo&&Qo&&Qo.box&&(Cl&&Cl.box&&yh?ge.collisionIndex.insertCollisionBox(Qo.box,st.get("text-ignore-placement"),rt.bucketInstanceId,yh,qt.ID):ge.collisionIndex.insertCollisionBox(Qo.box,st.get("text-ignore-placement"),rt.bucketInstanceId,Dc,qt.ID)),ss&&cc&&ge.collisionIndex.insertCollisionBox(cc.box,st.get("icon-ignore-placement"),rt.bucketInstanceId,_h,qt.ID),tl&&(vo&&ge.collisionIndex.insertCollisionCircles(tl.circles,st.get("text-ignore-placement"),rt.bucketInstanceId,Dc,qt.ID),$)){var Zv=rt.bucketInstanceId,Mv=ge.collisionCircleArrays[Zv];Mv===void 0&&(Mv=ge.collisionCircleArrays[Zv]=new Ui);for(var Ev=0;Ev=0;--qa){var hn=on[qa];Ha(rt.symbolInstances.get(hn),rt.collisionArrays[hn])}else for(var Sn=j.symbolInstanceStart;Sn=0&&(rt>=0&&pt!==rt?j.text.placedSymbolArray.get(pt).crossTileID=0:j.text.placedSymbolArray.get(pt).crossTileID=$.crossTileID)}},Mo.prototype.markUsedOrientation=function(j,ce,$){for(var ge=ce===e.WritingMode.horizontal||ce===e.WritingMode.horizontalOnly?ce:0,Be=ce===e.WritingMode.vertical?ce:0,rt=[$.leftJustifiedTextSymbolIndex,$.centerJustifiedTextSymbolIndex,$.rightJustifiedTextSymbolIndex],st=0,Ge=rt;st0||Xr>0,Ha=_r.numIconVertices>0,on=ge.placedOrientations[_r.crossTileID],qa=on===e.WritingMode.vertical,hn=on===e.WritingMode.horizontal||on===e.WritingMode.horizontalOnly;if(ja){var Sn=Vs(xa.text),Gn=qa?hi:Sn;Xt(j.text,Ir,Gn);var ti=hn?hi:Sn;Xt(j.text,Xr,ti);var yo=xa.text.isHidden();[_r.rightJustifiedTextSymbolIndex,_r.centerJustifiedTextSymbolIndex,_r.leftJustifiedTextSymbolIndex].forEach(function(_h){_h>=0&&(j.text.placedSymbolArray.get(_h).hidden=yo||qa?1:0)}),_r.verticalPlacedTextSymbolIndex>=0&&(j.text.placedSymbolArray.get(_r.verticalPlacedTextSymbolIndex).hidden=yo||hn?1:0);var vo=ge.variableOffsets[_r.crossTileID];vo&&ge.markUsedJustification(j,vo.anchor,_r,on);var ss=ge.placedOrientations[_r.crossTileID];ss&&(ge.markUsedJustification(j,"left",_r,ss),ge.markUsedOrientation(j,ss,_r))}if(Ha){var rs=Vs(xa.icon),fs=!(It&&_r.verticalPlacedIconSymbolIndex&&qa);if(_r.placedIconSymbolIndex>=0){var ls=fs?rs:hi;Xt(j.icon,_r.numIconVertices,ls),j.icon.placedSymbolArray.get(_r.placedIconSymbolIndex).hidden=xa.icon.isHidden()}if(_r.verticalPlacedIconSymbolIndex>=0){var Cl=fs?hi:rs;Xt(j.icon,_r.numVerticalIconVertices,Cl),j.icon.placedSymbolArray.get(_r.verticalPlacedIconSymbolIndex).hidden=xa.icon.isHidden()}}if(j.hasIconCollisionBoxData()||j.hasTextCollisionBoxData()){var Qo=j.collisionArrays[Rt];if(Qo){var tl=new e.Point(0,0);if(Qo.textBox||Qo.verticalTextBox){var cc=!0;if(Qe){var Dc=ge.variableOffsets[Ua];Dc?(tl=ks(Dc.anchor,Dc.width,Dc.height,Dc.textOffset,Dc.textBoxScale),pt&&tl._rotate(Bt?ge.transform.angle:-ge.transform.angle)):cc=!1}Qo.textBox&&kn(j.textCollisionBox.collisionVertexArray,xa.text.placed,!cc||qa,tl.x,tl.y),Qo.verticalTextBox&&kn(j.textCollisionBox.collisionVertexArray,xa.text.placed,!cc||hn,tl.x,tl.y)}var yh=!!(!hn&&Qo.verticalIconBox);Qo.iconBox&&kn(j.iconCollisionBox.collisionVertexArray,xa.icon.placed,yh,It?tl.x:0,It?tl.y:0),Qo.verticalIconBox&&kn(j.iconCollisionBox.collisionVertexArray,xa.icon.placed,!yh,It?tl.x:0,It?tl.y:0)}}},Mt=0;Mtj},Mo.prototype.setStale=function(){this.stale=!0};function kn(ye,j,ce,$,ge){ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0)}var fi=Math.pow(2,25),Fs=Math.pow(2,24),Ss=Math.pow(2,17),Gi=Math.pow(2,16),js=Math.pow(2,9),No=Math.pow(2,8),es=Math.pow(2,1);function Vs(ye){if(ye.opacity===0&&!ye.placed)return 0;if(ye.opacity===1&&ye.placed)return 4294967295;var j=ye.placed?1:0,ce=Math.floor(ye.opacity*127);return ce*fi+j*Fs+ce*Ss+j*Gi+ce*js+j*No+ce*es+j}var hi=0,so=function(j){this._sortAcrossTiles=j.layout.get("symbol-z-order")!=="viewport-y"&&j.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};so.prototype.continuePlacement=function(j,ce,$,ge,Be){for(var rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var st=j[this._currentPlacementIndex],Ge=ce[st],Qe=this.placement.collisionIndex.transform.zoom;if(Ge.type==="symbol"&&(!Ge.minzoom||Ge.minzoom<=Qe)&&(!Ge.maxzoom||Ge.maxzoom>Qe)){this._inProgressLayer||(this._inProgressLayer=new so(Ge));var pt=this._inProgressLayer.continuePlacement($[Ge.source],this.placement,this._showCollisionBoxes,Ge,rt);if(pt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Oi.prototype.commit=function(j){return this.placement.commit(j),this.placement};var Zo=512/e.EXTENT/2,qs=function(j,ce,$){this.tileID=j,this.indexedSymbolInstances={},this.bucketInstanceId=$;for(var ge=0;gej.overscaledZ)for(var Qe in Ge){var pt=Ge[Qe];pt.tileID.isChildOf(j)&&pt.findMatches(ce.symbolInstances,j,rt)}else{var Bt=j.scaledTo(Number(st)),It=Ge[Bt.key];It&&It.findMatches(ce.symbolInstances,j,rt)}}for(var Nt=0;Nt0)throw new Error("Unimplemented: "+rt.map(function(st){return st.command}).join(", ")+".");return Be.forEach(function(st){st.command!=="setTransition"&&ge[st.command].apply(ge,st.args)}),this.stylesheet=$,!0},j.prototype.addImage=function($,ge){if(this.getImage($))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage($,ge),this._afterImageUpdated($)},j.prototype.updateImage=function($,ge){this.imageManager.updateImage($,ge)},j.prototype.getImage=function($){return this.imageManager.getImage($)},j.prototype.removeImage=function($){if(!this.getImage($))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage($),this._afterImageUpdated($)},j.prototype._afterImageUpdated=function($){this._availableImages=this.imageManager.listImages(),this._changedImages[$]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))},j.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},j.prototype.addSource=function($,ge,Be){var rt=this;if(Be===void 0&&(Be={}),this._checkLoaded(),this.sourceCaches[$]!==void 0)throw new Error("There is already a source with this ID");if(!ge.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ge).join(", ")+".");var st=["vector","raster","geojson","video","image"],Ge=st.indexOf(ge.type)>=0;if(!(Ge&&this._validate(e.validateStyle.source,"sources."+$,ge,null,Be))){this.map&&this.map._collectResourceTiming&&(ge.collectResourceTiming=!0);var Qe=this.sourceCaches[$]=new ha($,ge,this.dispatcher);Qe.style=this,Qe.setEventedParent(this,function(){return{isSourceLoaded:rt.loaded(),source:Qe.serialize(),sourceId:$}}),Qe.onAdd(this.map),this._changed=!0}},j.prototype.removeSource=function($){if(this._checkLoaded(),this.sourceCaches[$]===void 0)throw new Error("There is no source with this ID");for(var ge in this._layers)if(this._layers[ge].source===$)return this.fire(new e.ErrorEvent(new Error('Source "'+$+'" cannot be removed while layer "'+ge+'" is using it.')));var Be=this.sourceCaches[$];delete this.sourceCaches[$],delete this._updatedSources[$],Be.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:$})),Be.setEventedParent(null),Be.clearTiles(),Be.onRemove&&Be.onRemove(this.map),this._changed=!0},j.prototype.setGeoJSONSourceData=function($,ge){this._checkLoaded();var Be=this.sourceCaches[$].getSource();Be.setData(ge),this._changed=!0},j.prototype.getSource=function($){return this.sourceCaches[$]&&this.sourceCaches[$].getSource()},j.prototype.addLayer=function($,ge,Be){Be===void 0&&(Be={}),this._checkLoaded();var rt=$.id;if(this.getLayer(rt)){this.fire(new e.ErrorEvent(new Error('Layer with id "'+rt+'" already exists on this map')));return}var st;if($.type==="custom"){if(Xs(this,e.validateCustomStyleLayer($)))return;st=e.createStyleLayer($)}else{if(typeof $.source=="object"&&(this.addSource(rt,$.source),$=e.clone$1($),$=e.extend($,{source:rt})),this._validate(e.validateStyle.layer,"layers."+rt,$,{arrayIndex:-1},Be))return;st=e.createStyleLayer($),this._validateLayer(st),st.setEventedParent(this,{layer:{id:rt}}),this._serializedLayers[st.id]=st.serialize()}var Ge=ge?this._order.indexOf(ge):this._order.length;if(ge&&Ge===-1){this.fire(new e.ErrorEvent(new Error('Layer with id "'+ge+'" does not exist on this map.')));return}if(this._order.splice(Ge,0,rt),this._layerOrderChanged=!0,this._layers[rt]=st,this._removedLayers[rt]&&st.source&&st.type!=="custom"){var Qe=this._removedLayers[rt];delete this._removedLayers[rt],Qe.type!==st.type?this._updatedSources[st.source]="clear":(this._updatedSources[st.source]="reload",this.sourceCaches[st.source].pause())}this._updateLayer(st),st.onAdd&&st.onAdd(this.map)},j.prototype.moveLayer=function($,ge){this._checkLoaded(),this._changed=!0;var Be=this._layers[$];if(!Be){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be moved.")));return}if($!==ge){var rt=this._order.indexOf($);this._order.splice(rt,1);var st=ge?this._order.indexOf(ge):this._order.length;if(ge&&st===-1){this.fire(new e.ErrorEvent(new Error('Layer with id "'+ge+'" does not exist on this map.')));return}this._order.splice(st,0,$),this._layerOrderChanged=!0}},j.prototype.removeLayer=function($){this._checkLoaded();var ge=this._layers[$];if(!ge){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be removed.")));return}ge.setEventedParent(null);var Be=this._order.indexOf($);this._order.splice(Be,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[$]=ge,delete this._layers[$],delete this._serializedLayers[$],delete this._updatedLayers[$],delete this._updatedPaintProps[$],ge.onRemove&&ge.onRemove(this.map)},j.prototype.getLayer=function($){return this._layers[$]},j.prototype.hasLayer=function($){return $ in this._layers},j.prototype.setLayerZoomRange=function($,ge,Be){this._checkLoaded();var rt=this.getLayer($);if(!rt){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot have zoom extent.")));return}rt.minzoom===ge&&rt.maxzoom===Be||(ge!=null&&(rt.minzoom=ge),Be!=null&&(rt.maxzoom=Be),this._updateLayer(rt))},j.prototype.setFilter=function($,ge,Be){Be===void 0&&(Be={}),this._checkLoaded();var rt=this.getLayer($);if(!rt){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be filtered.")));return}if(!e.deepEqual(rt.filter,ge)){if(ge==null){rt.filter=void 0,this._updateLayer(rt);return}this._validate(e.validateStyle.filter,"layers."+rt.id+".filter",ge,null,Be)||(rt.filter=e.clone$1(ge),this._updateLayer(rt))}},j.prototype.getFilter=function($){return e.clone$1(this.getLayer($).filter)},j.prototype.setLayoutProperty=function($,ge,Be,rt){rt===void 0&&(rt={}),this._checkLoaded();var st=this.getLayer($);if(!st){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be styled.")));return}e.deepEqual(st.getLayoutProperty(ge),Be)||(st.setLayoutProperty(ge,Be,rt),this._updateLayer(st))},j.prototype.getLayoutProperty=function($,ge){var Be=this.getLayer($);if(!Be){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style.")));return}return Be.getLayoutProperty(ge)},j.prototype.setPaintProperty=function($,ge,Be,rt){rt===void 0&&(rt={}),this._checkLoaded();var st=this.getLayer($);if(!st){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be styled.")));return}if(!e.deepEqual(st.getPaintProperty(ge),Be)){var Ge=st.setPaintProperty(ge,Be,rt);Ge&&this._updateLayer(st),this._changed=!0,this._updatedPaintProps[$]=!0}},j.prototype.getPaintProperty=function($,ge){return this.getLayer($).getPaintProperty(ge)},j.prototype.setFeatureState=function($,ge){this._checkLoaded();var Be=$.source,rt=$.sourceLayer,st=this.sourceCaches[Be];if(st===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")));return}var Ge=st.getSource().type;if(Ge==="geojson"&&rt){this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ge==="vector"&&!rt){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}$.id===void 0&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),st.setFeatureState(rt,$.id,ge)},j.prototype.removeFeatureState=function($,ge){this._checkLoaded();var Be=$.source,rt=this.sourceCaches[Be];if(rt===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")));return}var st=rt.getSource().type,Ge=st==="vector"?$.sourceLayer:void 0;if(st==="vector"&&!Ge){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(ge&&typeof $.id!="string"&&typeof $.id!="number"){this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}rt.removeFeatureState(Ge,$.id,ge)},j.prototype.getFeatureState=function($){this._checkLoaded();var ge=$.source,Be=$.sourceLayer,rt=this.sourceCaches[ge];if(rt===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+ge+"' does not exist in the map's style.")));return}var st=rt.getSource().type;if(st==="vector"&&!Be){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return $.id===void 0&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),rt.getFeatureState(Be,$.id)},j.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},j.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,function($){return $.serialize()}),layers:this._serializeLayers(this._order)},function($){return $!==void 0})},j.prototype._updateLayer=function($){this._updatedLayers[$.id]=!0,$.source&&!this._updatedSources[$.source]&&this.sourceCaches[$.source].getSource().type!=="raster"&&(this._updatedSources[$.source]="reload",this.sourceCaches[$.source].pause()),this._changed=!0},j.prototype._flattenAndSortRenderedFeatures=function($){for(var ge=this,Be=function(hn){return ge._layers[hn].type==="fill-extrusion"},rt={},st=[],Ge=this._order.length-1;Ge>=0;Ge--){var Qe=this._order[Ge];if(Be(Qe)){rt[Qe]=Ge;for(var pt=0,Bt=$;pt=0;Rt--){var _r=this._order[Rt];if(Be(_r))for(var Ir=st.length-1;Ir>=0;Ir--){var Xr=st[Ir].feature;if(rt[Xr.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,Sl=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,hf=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Yc=`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Tc="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",ec=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Gc="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Hc=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,bu=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,$c=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Gu=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Lu=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ml=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,lc=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Wc=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,Ms=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Lc="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",xf=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Kc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,Ac=`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Jc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,tu=`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Qc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,el=Ws(Vu,yu),ru=Ws(jc,ff),tc=Ws(_s,Cu),Bs=Ws(Vc,Pl),Hu=Ws(Tl,Il),Gl=Ws(_u,Os),au=Ws(Al,Uo),Ys=Ws(bs,qu),vc=Ws(Zl,Ju),Pu=Ws(Zs,_f),rc=Ws(zo,Rf),Pc=Ws(is,Bi),bf=Ws(hc,xu),Vf=Ws(dl,qc),dc=Ws(Qu,wc),Ic=Ws(Sl,hf),fu=Ws(Yc,Tc),Rc=Ws(ec,Gc),Rl=Ws(Hc,bu),pc=Ws($c,Gu),ef=Ws(Lu,Ml),gc=Ws(lc,Wc),Gs=Ws(Ms,Lc),nu=Ws(xf,Kc),wu=Ws(Ac,Jc),Xc=Ws(tu,Qc);function Ws(ye,j){var ce=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,$=j.match(/attribute ([\w]+) ([\w]+)/g),ge=ye.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Be=j.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),rt=Be?Be.concat(ge):ge,st={};return ye=ye.replace(ce,function(Ge,Qe,pt,Bt,It){return st[It]=!0,Qe==="define"?` +#ifndef HAS_UNIFORM_u_`+It+` +varying `+pt+" "+Bt+" "+It+`; +#else +uniform `+pt+" "+Bt+" u_"+It+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+It+` + `+pt+" "+Bt+" "+It+" = u_"+It+`; +#endif +`}),j=j.replace(ce,function(Ge,Qe,pt,Bt,It){var Nt=Bt==="float"?"vec2":"vec4",Xt=It.match(/color/)?"color":Nt;return st[It]?Qe==="define"?` +#ifndef HAS_UNIFORM_u_`+It+` +uniform lowp float u_`+It+`_t; +attribute `+pt+" "+Nt+" a_"+It+`; +varying `+pt+" "+Bt+" "+It+`; +#else +uniform `+pt+" "+Bt+" u_"+It+`; +#endif +`:Xt==="vec4"?` +#ifndef HAS_UNIFORM_u_`+It+` + `+It+" = a_"+It+`; +#else + `+pt+" "+Bt+" "+It+" = u_"+It+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+It+` + `+It+" = unpack_mix_"+Xt+"(a_"+It+", u_"+It+`_t); +#else + `+pt+" "+Bt+" "+It+" = u_"+It+`; +#endif +`:Qe==="define"?` +#ifndef HAS_UNIFORM_u_`+It+` +uniform lowp float u_`+It+`_t; +attribute `+pt+" "+Nt+" a_"+It+`; +#else +uniform `+pt+" "+Bt+" u_"+It+`; +#endif +`:Xt==="vec4"?` +#ifndef HAS_UNIFORM_u_`+It+` + `+pt+" "+Bt+" "+It+" = a_"+It+`; +#else + `+pt+" "+Bt+" "+It+" = u_"+It+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+It+` + `+pt+" "+Bt+" "+It+" = unpack_mix_"+Xt+"(a_"+It+", u_"+It+`_t); +#else + `+pt+" "+Bt+" "+It+" = u_"+It+`; +#endif +`}),{fragmentSource:ye,vertexSource:j,staticAttributes:$,staticUniforms:rt}}var Sc=Object.freeze({__proto__:null,prelude:el,background:ru,backgroundPattern:tc,circle:Bs,clippingMask:Hu,heatmap:Gl,heatmapTexture:au,collisionBox:Ys,collisionCircle:vc,debug:Pu,fill:rc,fillOutline:Pc,fillOutlinePattern:bf,fillPattern:Vf,fillExtrusion:dc,fillExtrusionPattern:Ic,hillshadePrepare:fu,hillshade:Rc,line:Rl,lineGradient:pc,linePattern:ef,lineSDF:gc,raster:Gs,symbolIcon:nu,symbolSDF:wu,symbolTextAndIcon:Xc}),ac=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};ac.prototype.bind=function(j,ce,$,ge,Be,rt,st,Ge){this.context=j;for(var Qe=this.boundPaintVertexBuffers.length!==ge.length,pt=0;!Qe&&pt>16,st>>16],u_pixel_coord_lower:[rt&65535,st&65535]}}function Ec(ye,j,ce,$){var ge=ce.imageManager.getPattern(ye.from.toString()),Be=ce.imageManager.getPattern(ye.to.toString()),rt=ce.imageManager.getPixelSize(),st=rt.width,Ge=rt.height,Qe=Math.pow(2,$.tileID.overscaledZ),pt=$.tileSize*Math.pow(2,ce.transform.tileZoom)/Qe,Bt=pt*($.tileID.canonical.x+$.tileID.wrap*Qe),It=pt*$.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ge.tl,u_pattern_br_a:ge.br,u_pattern_tl_b:Be.tl,u_pattern_br_b:Be.br,u_texsize:[st,Ge],u_mix:j.t,u_pattern_size_a:ge.displaySize,u_pattern_size_b:Be.displaySize,u_scale_a:j.fromScale,u_scale_b:j.toScale,u_tile_units_to_pixels:1/Ri($,1,ce.transform.tileZoom),u_pixel_coord_upper:[Bt>>16,It>>16],u_pixel_coord_lower:[Bt&65535,It&65535]}}var wf=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_lightpos:new e.Uniform3f(ye,j.u_lightpos),u_lightintensity:new e.Uniform1f(ye,j.u_lightintensity),u_lightcolor:new e.Uniform3f(ye,j.u_lightcolor),u_vertical_gradient:new e.Uniform1f(ye,j.u_vertical_gradient),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},Fl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_lightpos:new e.Uniform3f(ye,j.u_lightpos),u_lightintensity:new e.Uniform1f(ye,j.u_lightintensity),u_lightcolor:new e.Uniform3f(ye,j.u_lightcolor),u_vertical_gradient:new e.Uniform1f(ye,j.u_vertical_gradient),u_height_factor:new e.Uniform1f(ye,j.u_height_factor),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},tf=function(ye,j,ce,$){var ge=j.style.light,Be=ge.properties.get("position"),rt=[Be.x,Be.y,Be.z],st=e.create$1();ge.properties.get("anchor")==="viewport"&&e.fromRotation(st,-j.transform.angle),e.transformMat3(rt,rt,st);var Ge=ge.properties.get("color");return{u_matrix:ye,u_lightpos:rt,u_lightintensity:ge.properties.get("intensity"),u_lightcolor:[Ge.r,Ge.g,Ge.b],u_vertical_gradient:+ce,u_opacity:$}},vu=function(ye,j,ce,$,ge,Be,rt){return e.extend(tf(ye,j,ce,$),Iu(Be,j,rt),{u_height_factor:-Math.pow(2,ge.overscaledZ)/rt.tileSize/8})},Wu=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},Ru=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},al=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world)}},Yl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},Ks=function(ye){return{u_matrix:ye}},nc=function(ye,j,ce,$){return e.extend(Ks(ye),Iu(ce,j,$))},Du=function(ye,j){return{u_matrix:ye,u_world:j}},Zc=function(ye,j,ce,$,ge){return e.extend(nc(ye,j,ce,$),{u_world:ge})},Qt=function(ye,j){return{u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(ye,j.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(ye,j.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},yr=function(ye,j,ce,$){var ge=ye.transform,Be,rt;if($.paint.get("circle-pitch-alignment")==="map"){var st=Ri(ce,1,ge.zoom);Be=!0,rt=[st,st]}else Be=!1,rt=ge.pixelsToGLUnits;return{u_camera_to_center_distance:ge.cameraToCenterDistance,u_scale_with_map:+($.paint.get("circle-pitch-scale")==="map"),u_matrix:ye.translatePosMatrix(j.posMatrix,ce,$.paint.get("circle-translate"),$.paint.get("circle-translate-anchor")),u_pitch_with_map:+Be,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:rt}},$r=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(ye,j.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(ye,j.u_extrude_scale),u_overscale_factor:new e.Uniform1f(ye,j.u_overscale_factor)}},Vr=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_inv_matrix:new e.UniformMatrix4f(ye,j.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(ye,j.u_viewport_size)}},ma=function(ye,j,ce){var $=Ri(ce,1,j.zoom),ge=Math.pow(2,j.zoom-ce.tileID.overscaledZ),Be=ce.tileID.overscaleFactor();return{u_matrix:ye,u_camera_to_center_distance:j.cameraToCenterDistance,u_pixels_to_tile_units:$,u_extrude_scale:[j.pixelsToGLUnits[0]/($*ge),j.pixelsToGLUnits[1]/($*ge)],u_overscale_factor:Be}},tn=function(ye,j,ce){return{u_matrix:ye,u_inv_matrix:j,u_camera_to_center_distance:ce.cameraToCenterDistance,u_viewport_size:[ce.width,ce.height]}},Ja=function(ye,j){return{u_color:new e.UniformColor(ye,j.u_color),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_overlay:new e.Uniform1i(ye,j.u_overlay),u_overlay_scale:new e.Uniform1f(ye,j.u_overlay_scale)}},Ln=function(ye,j,ce){return ce===void 0&&(ce=1),{u_matrix:ye,u_color:j,u_overlay:0,u_overlay_scale:ce}},On=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},Qn=function(ye){return{u_matrix:ye}},_n=function(ye,j){return{u_extrude_scale:new e.Uniform1f(ye,j.u_extrude_scale),u_intensity:new e.Uniform1f(ye,j.u_intensity),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},qn=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world),u_image:new e.Uniform1i(ye,j.u_image),u_color_ramp:new e.Uniform1i(ye,j.u_color_ramp),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},En=function(ye,j,ce,$){return{u_matrix:ye,u_extrude_scale:Ri(j,1,ce),u_intensity:$}},dn=function(ye,j,ce,$){var ge=e.create();e.ortho(ge,0,ye.width,ye.height,0,0,1);var Be=ye.context.gl;return{u_matrix:ge,u_world:[Be.drawingBufferWidth,Be.drawingBufferHeight],u_image:ce,u_color_ramp:$,u_opacity:j.paint.get("heatmap-opacity")}},ai=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_latrange:new e.Uniform2f(ye,j.u_latrange),u_light:new e.Uniform2f(ye,j.u_light),u_shadow:new e.UniformColor(ye,j.u_shadow),u_highlight:new e.UniformColor(ye,j.u_highlight),u_accent:new e.UniformColor(ye,j.u_accent)}},Hi=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_dimension:new e.Uniform2f(ye,j.u_dimension),u_zoom:new e.Uniform1f(ye,j.u_zoom),u_unpack:new e.Uniform4f(ye,j.u_unpack)}},Fi=function(ye,j,ce){var $=ce.paint.get("hillshade-shadow-color"),ge=ce.paint.get("hillshade-highlight-color"),Be=ce.paint.get("hillshade-accent-color"),rt=ce.paint.get("hillshade-illumination-direction")*(Math.PI/180);ce.paint.get("hillshade-illumination-anchor")==="viewport"&&(rt-=ye.transform.angle);var st=!ye.options.moving;return{u_matrix:ye.transform.calculatePosMatrix(j.tileID.toUnwrapped(),st),u_image:0,u_latrange:Wi(ye,j.tileID),u_light:[ce.paint.get("hillshade-exaggeration"),rt],u_shadow:$,u_highlight:ge,u_accent:Be}},Zi=function(ye,j){var ce=j.stride,$=e.create();return e.ortho($,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate($,$,[0,-e.EXTENT,0]),{u_matrix:$,u_image:1,u_dimension:[ce,ce],u_zoom:ye.overscaledZ,u_unpack:j.getUnpackVector()}};function Wi(ye,j){var ce=Math.pow(2,j.canonical.z),$=j.canonical.y;return[new e.MercatorCoordinate(0,$/ce).toLngLat().lat,new e.MercatorCoordinate(0,($+1)/ce).toLngLat().lat]}var ii=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels)}},Wn=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_image:new e.Uniform1i(ye,j.u_image),u_image_height:new e.Uniform1f(ye,j.u_image_height)}},ao=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_image:new e.Uniform1i(ye,j.u_image),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},Fo=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(ye,j.u_patternscale_a),u_patternscale_b:new e.Uniform2f(ye,j.u_patternscale_b),u_sdfgamma:new e.Uniform1f(ye,j.u_sdfgamma),u_image:new e.Uniform1i(ye,j.u_image),u_tex_y_a:new e.Uniform1f(ye,j.u_tex_y_a),u_tex_y_b:new e.Uniform1f(ye,j.u_tex_y_b),u_mix:new e.Uniform1f(ye,j.u_mix)}},hs=function(ye,j,ce){var $=ye.transform;return{u_matrix:sl(ye,j,ce),u_ratio:1/Ri(j,1,$.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/$.pixelsToGLUnits[0],1/$.pixelsToGLUnits[1]]}},Is=function(ye,j,ce,$){return e.extend(hs(ye,j,ce),{u_image:0,u_image_height:$})},vs=function(ye,j,ce,$){var ge=ye.transform,Be=Yo(j,ge);return{u_matrix:sl(ye,j,ce),u_texsize:j.imageAtlasTexture.size,u_ratio:1/Ri(j,1,ge.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[Be,$.fromScale,$.toScale],u_fade:$.t,u_units_to_pixels:[1/ge.pixelsToGLUnits[0],1/ge.pixelsToGLUnits[1]]}},Rs=function(ye,j,ce,$,ge){var Be=ye.transform,rt=ye.lineAtlas,st=Yo(j,Be),Ge=ce.layout.get("line-cap")==="round",Qe=rt.getDash($.from,Ge),pt=rt.getDash($.to,Ge),Bt=Qe.width*ge.fromScale,It=pt.width*ge.toScale;return e.extend(hs(ye,j,ce),{u_patternscale_a:[st/Bt,-Qe.height/2],u_patternscale_b:[st/It,-pt.height/2],u_sdfgamma:rt.width/(Math.min(Bt,It)*256*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Qe.y,u_tex_y_b:pt.y,u_mix:ge.t})};function Yo(ye,j){return 1/Ri(ye,1,j.tileZoom)}function sl(ye,j,ce){return ye.translatePosMatrix(j.tileID.posMatrix,j,ce.paint.get("line-translate"),ce.paint.get("line-translate-anchor"))}var nl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_tl_parent:new e.Uniform2f(ye,j.u_tl_parent),u_scale_parent:new e.Uniform1f(ye,j.u_scale_parent),u_buffer_scale:new e.Uniform1f(ye,j.u_buffer_scale),u_fade_t:new e.Uniform1f(ye,j.u_fade_t),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_image0:new e.Uniform1i(ye,j.u_image0),u_image1:new e.Uniform1i(ye,j.u_image1),u_brightness_low:new e.Uniform1f(ye,j.u_brightness_low),u_brightness_high:new e.Uniform1f(ye,j.u_brightness_high),u_saturation_factor:new e.Uniform1f(ye,j.u_saturation_factor),u_contrast_factor:new e.Uniform1f(ye,j.u_contrast_factor),u_spin_weights:new e.Uniform3f(ye,j.u_spin_weights)}},Ls=function(ye,j,ce,$,ge){return{u_matrix:ye,u_tl_parent:j,u_scale_parent:ce,u_buffer_scale:1,u_fade_t:$.mix,u_opacity:$.opacity*ge.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ge.paint.get("raster-brightness-min"),u_brightness_high:ge.paint.get("raster-brightness-max"),u_saturation_factor:ws(ge.paint.get("raster-saturation")),u_contrast_factor:go(ge.paint.get("raster-contrast")),u_spin_weights:wi(ge.paint.get("raster-hue-rotate"))}};function wi(ye){ye*=Math.PI/180;var j=Math.sin(ye),ce=Math.cos(ye);return[(2*ce+1)/3,(-Math.sqrt(3)*j-ce+1)/3,(Math.sqrt(3)*j-ce+1)/3]}function go(ye){return ye>0?1/(1-ye):1+ye}function ws(ye){return ye>0?1-1/(1.001-ye):-ye}var os=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texture:new e.Uniform1i(ye,j.u_texture)}},Hl=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texture:new e.Uniform1i(ye,j.u_texture),u_gamma_scale:new e.Uniform1f(ye,j.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(ye,j.u_is_halo)}},Wl=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texsize_icon:new e.Uniform2f(ye,j.u_texsize_icon),u_texture:new e.Uniform1i(ye,j.u_texture),u_texture_icon:new e.Uniform1i(ye,j.u_texture_icon),u_gamma_scale:new e.Uniform1f(ye,j.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(ye,j.u_is_halo)}},$l=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe){var pt=ge.transform;return{u_is_size_zoom_constant:+(ye==="constant"||ye==="source"),u_is_size_feature_constant:+(ye==="constant"||ye==="camera"),u_size_t:j?j.uSizeT:0,u_size:j?j.uSize:0,u_camera_to_center_distance:pt.cameraToCenterDistance,u_pitch:pt.pitch/360*2*Math.PI,u_rotate_symbol:+ce,u_aspect_ratio:pt.width/pt.height,u_fade_change:ge.options.fadeDuration?ge.symbolFadeChange:1,u_matrix:Be,u_label_plane_matrix:rt,u_coord_matrix:st,u_is_text:+Ge,u_pitch_with_map:+$,u_texsize:Qe,u_texture:0}},uc=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe,pt){var Bt=ge.transform;return e.extend($l(ye,j,ce,$,ge,Be,rt,st,Ge,Qe),{u_gamma_scale:$?Math.cos(Bt._pitch)*Bt.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:1})},Xl=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe){return e.extend(uc(ye,j,ce,$,ge,Be,rt,st,!0,Ge),{u_texsize_icon:Qe,u_texture_icon:1})},Xu=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_color:new e.UniformColor(ye,j.u_color)}},ll=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_image:new e.Uniform1i(ye,j.u_image),u_pattern_tl_a:new e.Uniform2f(ye,j.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(ye,j.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(ye,j.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(ye,j.u_pattern_br_b),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_mix:new e.Uniform1f(ye,j.u_mix),u_pattern_size_a:new e.Uniform2f(ye,j.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(ye,j.u_pattern_size_b),u_scale_a:new e.Uniform1f(ye,j.u_scale_a),u_scale_b:new e.Uniform1f(ye,j.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(ye,j.u_tile_units_to_pixels)}},Zu=function(ye,j,ce){return{u_matrix:ye,u_opacity:j,u_color:ce}},Yi=function(ye,j,ce,$,ge,Be){return e.extend(Ec($,Be,ce,ge),{u_matrix:ye,u_opacity:j})},io={fillExtrusion:wf,fillExtrusionPattern:Fl,fill:Wu,fillPattern:Ru,fillOutline:al,fillOutlinePattern:Yl,circle:Qt,collisionBox:$r,collisionCircle:Vr,debug:Ja,clippingMask:On,heatmap:_n,heatmapTexture:qn,hillshade:ai,hillshadePrepare:Hi,line:ii,lineGradient:Wn,linePattern:ao,lineSDF:Fo,raster:nl,symbolIcon:os,symbolSDF:Hl,symbolTextAndIcon:Wl,background:Xu,backgroundPattern:ll},Yu;function du(ye,j,ce,$,ge,Be,rt){for(var st=ye.context,Ge=st.gl,Qe=ye.useProgram("collisionBox"),pt=[],Bt=0,It=0,Nt=0;Nt<$.length;Nt++){var Xt=$[Nt],qt=j.getTile(Xt),Mt=qt.getBucket(ce);if(Mt){var Ft=Xt.posMatrix;(ge[0]!==0||ge[1]!==0)&&(Ft=ye.translatePosMatrix(Xt.posMatrix,qt,ge,Be));var Rt=rt?Mt.textCollisionBox:Mt.iconCollisionBox,_r=Mt.collisionCircleArray;if(_r.length>0){var Ir=e.create(),Xr=Ft;e.mul(Ir,Mt.placementInvProjMatrix,ye.transform.glCoordMatrix),e.mul(Ir,Ir,Mt.placementViewportMatrix),pt.push({circleArray:_r,circleOffset:It,transform:Xr,invTransform:Ir}),Bt+=_r.length/4,It=Bt}Rt&&Qe.draw(st,Ge.LINES,La.disabled,ba.disabled,ye.colorModeForRenderPass(),Tr.disabled,ma(Ft,ye.transform,qt),ce.id,Rt.layoutVertexBuffer,Rt.indexBuffer,Rt.segments,null,ye.transform.zoom,null,null,Rt.collisionVertexBuffer)}}if(!(!rt||!pt.length)){var Ua=ye.useProgram("collisionCircle"),ka=new e.StructArrayLayout2f1f2i16;ka.resize(Bt*4),ka._trim();for(var xa=0,ja=0,Ha=pt;ja=0&&(Xt[Mt.associatedIconIndex]={shiftedAnchor:hn,angle:Sn})}}if(pt){Nt.clear();for(var ti=ye.icon.placedSymbolArray,yo=0;yo0){var rt=e.browser.now(),st=(rt-ye.timeAdded)/Be,Ge=j?(rt-j.timeAdded)/Be:-1,Qe=ce.getSource(),pt=ge.coveringZoomLevel({tileSize:Qe.tileSize,roundZoom:Qe.roundZoom}),Bt=!j||Math.abs(j.tileID.overscaledZ-pt)>Math.abs(ye.tileID.overscaledZ-pt),It=Bt&&ye.refreshedUponExpiration?1:e.clamp(Bt?st:1-Ge,0,1);return ye.refreshedUponExpiration&&st>=1&&(ye.refreshedUponExpiration=!1),j?{opacity:1,mix:1-It}:{opacity:It,mix:0}}else return{opacity:1,mix:0}}function gr(ye,j,ce){var $=ce.paint.get("background-color"),ge=ce.paint.get("background-opacity");if(ge!==0){var Be=ye.context,rt=Be.gl,st=ye.transform,Ge=st.tileSize,Qe=ce.paint.get("background-pattern");if(!ye.isPatternMissing(Qe)){var pt=!Qe&&$.a===1&&ge===1&&ye.opaquePassEnabledForLayer()?"opaque":"translucent";if(ye.renderPass===pt){var Bt=ba.disabled,It=ye.depthModeForSublayer(0,pt==="opaque"?La.ReadWrite:La.ReadOnly),Nt=ye.colorModeForRenderPass(),Xt=ye.useProgram(Qe?"backgroundPattern":"background"),qt=st.coveringTiles({tileSize:Ge});Qe&&(Be.activeTexture.set(rt.TEXTURE0),ye.imageManager.bind(ye.context));for(var Mt=ce.getCrossfadeParameters(),Ft=0,Rt=qt;Ft "+ce.overscaledZ);var Ft=Mt+" "+Nt+"kb";Ki(ye,Ft),rt.draw($,ge.TRIANGLES,st,Ge,zt.alphaBlended,Tr.disabled,Ln(Be,e.Color.transparent,qt),pt,ye.debugBuffer,ye.quadTriangleIndexBuffer,ye.debugSegments)}function Ki(ye,j){ye.initDebugOverlayCanvas();var ce=ye.debugOverlayCanvas,$=ye.context.gl,ge=ye.debugOverlayCanvas.getContext("2d");ge.clearRect(0,0,ce.width,ce.height),ge.shadowColor="white",ge.shadowBlur=2,ge.lineWidth=1.5,ge.strokeStyle="white",ge.textBaseline="top",ge.font="bold 36px Open Sans, sans-serif",ge.fillText(j,5,5),ge.strokeText(j,5,5),ye.debugOverlayTexture.update(ce),ye.debugOverlayTexture.bind($.LINEAR,$.CLAMP_TO_EDGE)}function Go(ye,j,ce){var $=ye.context,ge=ce.implementation;if(ye.renderPass==="offscreen"){var Be=ge.prerender;Be&&(ye.setCustomLayerDefaults(),$.setColorMode(ye.colorModeForRenderPass()),Be.call(ge,$.gl,ye.transform.customLayerMatrix()),$.setDirty(),ye.setBaseState())}else if(ye.renderPass==="translucent"){ye.setCustomLayerDefaults(),$.setColorMode(ye.colorModeForRenderPass()),$.setStencilMode(ba.disabled);var rt=ge.renderingMode==="3d"?new La(ye.context.gl.LEQUAL,La.ReadWrite,ye.depthRangeFor3D):ye.depthModeForSublayer(0,La.ReadOnly);$.setDepthMode(rt),ge.render($.gl,ye.transform.customLayerMatrix()),$.setDirty(),ye.setBaseState(),$.bindFramebuffer.set(null)}}var Ho={symbol:L,circle:Dt,heatmap:er,line:ea,fill:Ve,"fill-extrusion":it,hillshade:St,raster:nr,background:gr,debug:Si,custom:Go},Ao=function(j,ce){this.context=new qr(j),this.transform=ce,this._tileTextures={},this.setup(),this.numSublayers=ha.maxUnderzooming+ha.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new wl,this.gpuTimers={}};Ao.prototype.resize=function(j,ce){if(this.width=j*e.browser.devicePixelRatio,this.height=ce*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var $=0,ge=this.style._order;$256&&this.clearStencil(),$.setColorMode(zt.disabled),$.setDepthMode(La.disabled);var Be=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var rt=0,st=ce;rt256&&this.clearStencil();var j=this.nextStencilID++,ce=this.context.gl;return new ba({func:ce.NOTEQUAL,mask:255},j,255,ce.KEEP,ce.KEEP,ce.REPLACE)},Ao.prototype.stencilModeForClipping=function(j){var ce=this.context.gl;return new ba({func:ce.EQUAL,mask:255},this._tileClippingMaskIDs[j.key],0,ce.KEEP,ce.KEEP,ce.REPLACE)},Ao.prototype.stencilConfigForOverlap=function(j){var ce,$=this.context.gl,ge=j.sort(function(Qe,pt){return pt.overscaledZ-Qe.overscaledZ}),Be=ge[ge.length-1].overscaledZ,rt=ge[0].overscaledZ-Be+1;if(rt>1){this.currentStencilSource=void 0,this.nextStencilID+rt>256&&this.clearStencil();for(var st={},Ge=0;Ge=0;this.currentLayer--){var Ir=this.style._layers[ge[this.currentLayer]],Xr=Be[Ir.source],Ua=Ge[Ir.source];this._renderTileClippingMasks(Ir,Ua),this.renderLayer(this,Xr,Ir,Ua)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ce.pop():null},Ao.prototype.isPatternMissing=function(j){if(!j)return!1;if(!j.from||!j.to)return!0;var ce=this.imageManager.getPattern(j.from.toString()),$=this.imageManager.getPattern(j.to.toString());return!ce||!$},Ao.prototype.useProgram=function(j,ce){this.cache=this.cache||{};var $=""+j+(ce?ce.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[$]||(this.cache[$]=new Mc(this.context,j,Sc[j],ce,io[j],this._showOverdrawInspector)),this.cache[$]},Ao.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ao.prototype.setBaseState=function(){var j=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(j.FUNC_ADD)},Ao.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var j=this.context.gl;this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,j.RGBA)}},Ao.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ko=function(j,ce){this.points=j,this.planes=ce};Ko.fromInvProjectionMatrix=function(j,ce,$){var ge=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],Be=Math.pow(2,$),rt=ge.map(function(Qe){return e.transformMat4([],Qe,j)}).map(function(Qe){return e.scale$1([],Qe,1/Qe[3]/ce*Be)}),st=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ge=st.map(function(Qe){var pt=e.sub([],rt[Qe[0]],rt[Qe[1]]),Bt=e.sub([],rt[Qe[2]],rt[Qe[1]]),It=e.normalize([],e.cross([],pt,Bt)),Nt=-e.dot(It,rt[Qe[1]]);return It.concat(Nt)});return new Ko(rt,Ge)};var Js=function(j,ce){this.min=j,this.max=ce,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};Js.prototype.quadrant=function(j){for(var ce=[j%2===0,j<2],$=e.clone$2(this.min),ge=e.clone$2(this.max),Be=0;Be=0;if(rt===0)return 0;rt!==ce.length&&($=!1)}if($)return 2;for(var Ge=0;Ge<3;Ge++){for(var Qe=Number.MAX_VALUE,pt=-Number.MAX_VALUE,Bt=0;Btthis.max[Ge]-this.min[Ge])return 0}return 1};var Hs=function(j,ce,$,ge){if(j===void 0&&(j=0),ce===void 0&&(ce=0),$===void 0&&($=0),ge===void 0&&(ge=0),isNaN(j)||j<0||isNaN(ce)||ce<0||isNaN($)||$<0||isNaN(ge)||ge<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=j,this.bottom=ce,this.left=$,this.right=ge};Hs.prototype.interpolate=function(j,ce,$){return ce.top!=null&&j.top!=null&&(this.top=e.number(j.top,ce.top,$)),ce.bottom!=null&&j.bottom!=null&&(this.bottom=e.number(j.bottom,ce.bottom,$)),ce.left!=null&&j.left!=null&&(this.left=e.number(j.left,ce.left,$)),ce.right!=null&&j.right!=null&&(this.right=e.number(j.right,ce.right,$)),this},Hs.prototype.getCenter=function(j,ce){var $=e.clamp((this.left+j-this.right)/2,0,j),ge=e.clamp((this.top+ce-this.bottom)/2,0,ce);return new e.Point($,ge)},Hs.prototype.equals=function(j){return this.top===j.top&&this.bottom===j.bottom&&this.left===j.left&&this.right===j.right},Hs.prototype.clone=function(){return new Hs(this.top,this.bottom,this.left,this.right)},Hs.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ko=function(j,ce,$,ge,Be){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Be===void 0?!0:Be,this._minZoom=j||0,this._maxZoom=ce||22,this._minPitch=$??0,this._maxPitch=ge??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hs,this._posMatrixCache={},this._alignedPosMatrixCache={}},Co={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ko.prototype.clone=function(){var j=new ko(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return j.tileSize=this.tileSize,j.latRange=this.latRange,j.width=this.width,j.height=this.height,j._center=this._center,j.zoom=this.zoom,j.angle=this.angle,j._fov=this._fov,j._pitch=this._pitch,j._unmodified=this._unmodified,j._edgeInsets=this._edgeInsets.clone(),j._calcMatrices(),j},Co.minZoom.get=function(){return this._minZoom},Co.minZoom.set=function(ye){this._minZoom!==ye&&(this._minZoom=ye,this.zoom=Math.max(this.zoom,ye))},Co.maxZoom.get=function(){return this._maxZoom},Co.maxZoom.set=function(ye){this._maxZoom!==ye&&(this._maxZoom=ye,this.zoom=Math.min(this.zoom,ye))},Co.minPitch.get=function(){return this._minPitch},Co.minPitch.set=function(ye){this._minPitch!==ye&&(this._minPitch=ye,this.pitch=Math.max(this.pitch,ye))},Co.maxPitch.get=function(){return this._maxPitch},Co.maxPitch.set=function(ye){this._maxPitch!==ye&&(this._maxPitch=ye,this.pitch=Math.min(this.pitch,ye))},Co.renderWorldCopies.get=function(){return this._renderWorldCopies},Co.renderWorldCopies.set=function(ye){ye===void 0?ye=!0:ye===null&&(ye=!1),this._renderWorldCopies=ye},Co.worldSize.get=function(){return this.tileSize*this.scale},Co.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Co.size.get=function(){return new e.Point(this.width,this.height)},Co.bearing.get=function(){return-this.angle/Math.PI*180},Co.bearing.set=function(ye){var j=-e.wrap(ye,-180,180)*Math.PI/180;this.angle!==j&&(this._unmodified=!1,this.angle=j,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Co.pitch.get=function(){return this._pitch/Math.PI*180},Co.pitch.set=function(ye){var j=e.clamp(ye,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==j&&(this._unmodified=!1,this._pitch=j,this._calcMatrices())},Co.fov.get=function(){return this._fov/Math.PI*180},Co.fov.set=function(ye){ye=Math.max(.01,Math.min(60,ye)),this._fov!==ye&&(this._unmodified=!1,this._fov=ye/180*Math.PI,this._calcMatrices())},Co.zoom.get=function(){return this._zoom},Co.zoom.set=function(ye){var j=Math.min(Math.max(ye,this.minZoom),this.maxZoom);this._zoom!==j&&(this._unmodified=!1,this._zoom=j,this.scale=this.zoomScale(j),this.tileZoom=Math.floor(j),this.zoomFraction=j-this.tileZoom,this._constrain(),this._calcMatrices())},Co.center.get=function(){return this._center},Co.center.set=function(ye){ye.lat===this._center.lat&&ye.lng===this._center.lng||(this._unmodified=!1,this._center=ye,this._constrain(),this._calcMatrices())},Co.padding.get=function(){return this._edgeInsets.toJSON()},Co.padding.set=function(ye){this._edgeInsets.equals(ye)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,ye,1),this._calcMatrices())},Co.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ko.prototype.isPaddingEqual=function(j){return this._edgeInsets.equals(j)},ko.prototype.interpolatePadding=function(j,ce,$){this._unmodified=!1,this._edgeInsets.interpolate(j,ce,$),this._constrain(),this._calcMatrices()},ko.prototype.coveringZoomLevel=function(j){var ce=(j.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/j.tileSize));return Math.max(0,ce)},ko.prototype.getVisibleUnwrappedCoordinates=function(j){var ce=[new e.UnwrappedTileID(0,j)];if(this._renderWorldCopies)for(var $=this.pointCoordinate(new e.Point(0,0)),ge=this.pointCoordinate(new e.Point(this.width,0)),Be=this.pointCoordinate(new e.Point(this.width,this.height)),rt=this.pointCoordinate(new e.Point(0,this.height)),st=Math.floor(Math.min($.x,ge.x,Be.x,rt.x)),Ge=Math.floor(Math.max($.x,ge.x,Be.x,rt.x)),Qe=1,pt=st-Qe;pt<=Ge+Qe;pt++)pt!==0&&ce.push(new e.UnwrappedTileID(pt,j));return ce},ko.prototype.coveringTiles=function(j){var ce=this.coveringZoomLevel(j),$=ce;if(j.minzoom!==void 0&&cej.maxzoom&&(ce=j.maxzoom);var ge=e.MercatorCoordinate.fromLngLat(this.center),Be=Math.pow(2,ce),rt=[Be*ge.x,Be*ge.y,0],st=Ko.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,ce),Ge=j.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ge=ce);var Qe=3,pt=function(qa){return{aabb:new Js([qa*Be,0,0],[(qa+1)*Be,Be,0]),zoom:0,x:0,y:0,wrap:qa,fullyVisible:!1}},Bt=[],It=[],Nt=ce,Xt=j.reparseOverscaled?$:ce;if(this._renderWorldCopies)for(var qt=1;qt<=3;qt++)Bt.push(pt(-qt)),Bt.push(pt(qt));for(Bt.push(pt(0));Bt.length>0;){var Mt=Bt.pop(),Ft=Mt.x,Rt=Mt.y,_r=Mt.fullyVisible;if(!_r){var Ir=Mt.aabb.intersects(st);if(Ir===0)continue;_r=Ir===2}var Xr=Mt.aabb.distanceX(rt),Ua=Mt.aabb.distanceY(rt),ka=Math.max(Math.abs(Xr),Math.abs(Ua)),xa=Qe+(1<xa&&Mt.zoom>=Ge){It.push({tileID:new e.OverscaledTileID(Mt.zoom===Nt?Xt:Mt.zoom,Mt.wrap,Mt.zoom,Ft,Rt),distanceSq:e.sqrLen([rt[0]-.5-Ft,rt[1]-.5-Rt])});continue}for(var ja=0;ja<4;ja++){var Ha=(Ft<<1)+ja%2,on=(Rt<<1)+(ja>>1);Bt.push({aabb:Mt.aabb.quadrant(ja),zoom:Mt.zoom+1,x:Ha,y:on,wrap:Mt.wrap,fullyVisible:_r})}}return It.sort(function(qa,hn){return qa.distanceSq-hn.distanceSq}).map(function(qa){return qa.tileID})},ko.prototype.resize=function(j,ce){this.width=j,this.height=ce,this.pixelsToGLUnits=[2/j,-2/ce],this._constrain(),this._calcMatrices()},Co.unmodified.get=function(){return this._unmodified},ko.prototype.zoomScale=function(j){return Math.pow(2,j)},ko.prototype.scaleZoom=function(j){return Math.log(j)/Math.LN2},ko.prototype.project=function(j){var ce=e.clamp(j.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(j.lng)*this.worldSize,e.mercatorYfromLat(ce)*this.worldSize)},ko.prototype.unproject=function(j){return new e.MercatorCoordinate(j.x/this.worldSize,j.y/this.worldSize).toLngLat()},Co.point.get=function(){return this.project(this.center)},ko.prototype.setLocationAtPoint=function(j,ce){var $=this.pointCoordinate(ce),ge=this.pointCoordinate(this.centerPoint),Be=this.locationCoordinate(j),rt=new e.MercatorCoordinate(Be.x-($.x-ge.x),Be.y-($.y-ge.y));this.center=this.coordinateLocation(rt),this._renderWorldCopies&&(this.center=this.center.wrap())},ko.prototype.locationPoint=function(j){return this.coordinatePoint(this.locationCoordinate(j))},ko.prototype.pointLocation=function(j){return this.coordinateLocation(this.pointCoordinate(j))},ko.prototype.locationCoordinate=function(j){return e.MercatorCoordinate.fromLngLat(j)},ko.prototype.coordinateLocation=function(j){return j.toLngLat()},ko.prototype.pointCoordinate=function(j){var ce=0,$=[j.x,j.y,0,1],ge=[j.x,j.y,1,1];e.transformMat4($,$,this.pixelMatrixInverse),e.transformMat4(ge,ge,this.pixelMatrixInverse);var Be=$[3],rt=ge[3],st=$[0]/Be,Ge=ge[0]/rt,Qe=$[1]/Be,pt=ge[1]/rt,Bt=$[2]/Be,It=ge[2]/rt,Nt=Bt===It?0:(ce-Bt)/(It-Bt);return new e.MercatorCoordinate(e.number(st,Ge,Nt)/this.worldSize,e.number(Qe,pt,Nt)/this.worldSize)},ko.prototype.coordinatePoint=function(j){var ce=[j.x*this.worldSize,j.y*this.worldSize,0,1];return e.transformMat4(ce,ce,this.pixelMatrix),new e.Point(ce[0]/ce[3],ce[1]/ce[3])},ko.prototype.getBounds=function(){return new e.LngLatBounds().extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},ko.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ko.prototype.setMaxBounds=function(j){j?(this.lngRange=[j.getWest(),j.getEast()],this.latRange=[j.getSouth(),j.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ko.prototype.calculatePosMatrix=function(j,ce){ce===void 0&&(ce=!1);var $=j.key,ge=ce?this._alignedPosMatrixCache:this._posMatrixCache;if(ge[$])return ge[$];var Be=j.canonical,rt=this.worldSize/this.zoomScale(Be.z),st=Be.x+Math.pow(2,Be.z)*j.wrap,Ge=e.identity(new Float64Array(16));return e.translate(Ge,Ge,[st*rt,Be.y*rt,0]),e.scale(Ge,Ge,[rt/e.EXTENT,rt/e.EXTENT,1]),e.multiply(Ge,ce?this.alignedProjMatrix:this.projMatrix,Ge),ge[$]=new Float32Array(Ge),ge[$]},ko.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ko.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var j=-90,ce=90,$=-180,ge=180,Be,rt,st,Ge,Qe=this.size,pt=this._unmodified;if(this.latRange){var Bt=this.latRange;j=e.mercatorYfromLat(Bt[1])*this.worldSize,ce=e.mercatorYfromLat(Bt[0])*this.worldSize,Be=ce-jce&&(Ge=ce-Mt)}if(this.lngRange){var Ft=Nt.x,Rt=Qe.x/2;Ft-Rt<$&&(st=$+Rt),Ft+Rt>ge&&(st=ge-Rt)}(st!==void 0||Ge!==void 0)&&(this.center=this.unproject(new e.Point(st!==void 0?st:Nt.x,Ge!==void 0?Ge:Nt.y))),this._unmodified=pt,this._constraining=!1}},ko.prototype._calcMatrices=function(){if(this.height){var j=this._fov/2,ce=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(j)*this.height;var $=Math.PI/2+this._pitch,ge=this._fov*(.5+ce.y/this.height),Be=Math.sin(ge)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-$-ge,.01,Math.PI-.01)),rt=this.point,st=rt.x,Ge=rt.y,Qe=Math.cos(Math.PI/2-this._pitch)*Be+this.cameraToCenterDistance,pt=Qe*1.01,Bt=this.height/50,It=new Float64Array(16);e.perspective(It,this._fov,this.width/this.height,Bt,pt),It[8]=-ce.x*2/this.width,It[9]=ce.y*2/this.height,e.scale(It,It,[1,-1,1]),e.translate(It,It,[0,0,-this.cameraToCenterDistance]),e.rotateX(It,It,this._pitch),e.rotateZ(It,It,this.angle),e.translate(It,It,[-st,-Ge,0]),this.mercatorMatrix=e.scale([],It,[this.worldSize,this.worldSize,this.worldSize]),e.scale(It,It,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=It,this.invProjMatrix=e.invert([],this.projMatrix);var Nt=this.width%2/2,Xt=this.height%2/2,qt=Math.cos(this.angle),Mt=Math.sin(this.angle),Ft=st-Math.round(st)+qt*Nt+Mt*Xt,Rt=Ge-Math.round(Ge)+qt*Xt+Mt*Nt,_r=new Float64Array(It);if(e.translate(_r,_r,[Ft>.5?Ft-1:Ft,Rt>.5?Rt-1:Rt,0]),this.alignedProjMatrix=_r,It=e.create(),e.scale(It,It,[this.width/2,-this.height/2,1]),e.translate(It,It,[1,-1,0]),this.labelPlaneMatrix=It,It=e.create(),e.scale(It,It,[1,-1,1]),e.translate(It,It,[-1,-1,0]),e.scale(It,It,[2/this.width,2/this.height,1]),this.glCoordMatrix=It,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),It=e.invert(new Float64Array(16),this.pixelMatrix),!It)throw new Error("failed to invert matrix");this.pixelMatrixInverse=It,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ko.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var j=this.pointCoordinate(new e.Point(0,0)),ce=[j.x*this.worldSize,j.y*this.worldSize,0,1],$=e.transformMat4(ce,ce,this.pixelMatrix);return $[3]/this.cameraToCenterDistance},ko.prototype.getCameraPoint=function(){var j=this._pitch,ce=Math.tan(j)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,ce))},ko.prototype.getCameraQueryGeometry=function(j){var ce=this.getCameraPoint();if(j.length===1)return[j[0],ce];for(var $=ce.x,ge=ce.y,Be=ce.x,rt=ce.y,st=0,Ge=j;st=3&&!j.some(function($){return isNaN($)})){var ce=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(j[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+j[2],+j[1]],zoom:+j[0],bearing:ce,pitch:+(j[4]||0)}),!0}return!1},Dl.prototype._updateHashUnthrottled=function(){var j=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,j)}catch{}};var ou={linearity:.3,easing:e.bezier(0,0,.3,1)},pe=e.extend({deceleration:2500,maxSpeed:1400},ou),Le=e.extend({deceleration:20,maxSpeed:1400},ou),$e=e.extend({deceleration:1e3,maxSpeed:360},ou),dt=e.extend({deceleration:1e3,maxSpeed:90},ou),gt=function(j){this._map=j,this.clear()};gt.prototype.clear=function(){this._inertiaBuffer=[]},gt.prototype.record=function(j){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:j})},gt.prototype._drainInertiaBuffer=function(){for(var j=this._inertiaBuffer,ce=e.browser.now(),$=160;j.length>0&&ce-j[0].time>$;)j.shift()},gt.prototype._onMoveEnd=function(j){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var ce={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},$=0,ge=this._inertiaBuffer;$=this._clickTolerance||this._map.fire(new jt(j.type,this._map,j))},kr.prototype.dblclick=function(j){return this._firePreventable(new jt(j.type,this._map,j))},kr.prototype.mouseover=function(j){this._map.fire(new jt(j.type,this._map,j))},kr.prototype.mouseout=function(j){this._map.fire(new jt(j.type,this._map,j))},kr.prototype.touchstart=function(j){return this._firePreventable(new sr(j.type,this._map,j))},kr.prototype.touchmove=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype.touchend=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype.touchcancel=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype._firePreventable=function(j){if(this._map.fire(j),j.defaultPrevented)return{}},kr.prototype.isEnabled=function(){return!0},kr.prototype.isActive=function(){return!1},kr.prototype.enable=function(){},kr.prototype.disable=function(){};var Zr=function(j){this._map=j};Zr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Zr.prototype.mousemove=function(j){this._map.fire(new jt(j.type,this._map,j))},Zr.prototype.mousedown=function(){this._delayContextMenu=!0},Zr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jt("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Zr.prototype.contextmenu=function(j){this._delayContextMenu?this._contextMenuEvent=j:this._map.fire(new jt(j.type,this._map,j)),this._map.listens("contextmenu")&&j.preventDefault()},Zr.prototype.isEnabled=function(){return!0},Zr.prototype.isActive=function(){return!1},Zr.prototype.enable=function(){},Zr.prototype.disable=function(){};var la=function(j,ce){this._map=j,this._el=j.getCanvasContainer(),this._container=j.getContainer(),this._clickTolerance=ce.clickTolerance||1};la.prototype.isEnabled=function(){return!!this._enabled},la.prototype.isActive=function(){return!!this._active},la.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},la.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},la.prototype.mousedown=function(j,ce){this.isEnabled()&&j.shiftKey&&j.button===0&&(r.disableDrag(),this._startPos=this._lastPos=ce,this._active=!0)},la.prototype.mousemoveWindow=function(j,ce){if(this._active){var $=ce;if(!(this._lastPos.equals($)||!this._box&&$.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=j.timeStamp),$.length===this.numTouches&&(this.centroid=nn(ce),this.touches=ca($,ce)))},rn.prototype.touchmove=function(j,ce,$){if(!(this.aborted||!this.centroid)){var ge=ca($,ce);for(var Be in this.touches){var rt=this.touches[Be],st=ge[Be];(!st||st.dist(rt)>Na)&&(this.aborted=!0)}}},rn.prototype.touchend=function(j,ce,$){if((!this.centroid||j.timeStamp-this.startTime>Pa)&&(this.aborted=!0),$.length===0){var ge=!this.aborted&&this.centroid;if(this.reset(),ge)return ge}};var sn=function(j){this.singleTap=new rn(j),this.numTaps=j.numTaps,this.reset()};sn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},sn.prototype.touchstart=function(j,ce,$){this.singleTap.touchstart(j,ce,$)},sn.prototype.touchmove=function(j,ce,$){this.singleTap.touchmove(j,ce,$)},sn.prototype.touchend=function(j,ce,$){var ge=this.singleTap.touchend(j,ce,$);if(ge){var Be=j.timeStamp-this.lastTime0&&(this._active=!0);var ge=ca($,ce),Be=new e.Point(0,0),rt=new e.Point(0,0),st=0;for(var Ge in ge){var Qe=ge[Ge],pt=this._touches[Ge];pt&&(Be._add(Qe),rt._add(Qe.sub(pt)),st++,ge[Ge]=Qe)}if(this._touches=ge,!(stMath.abs(ye.x)}var ds=100,zs=function(ye){function j(){ye.apply(this,arguments)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.reset=function(){ye.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},j.prototype._start=function($){this._lastPoints=$,Kl($[0].sub($[1]))&&(this._valid=!1)},j.prototype._move=function($,ge,Be){var rt=$[0].sub(this._lastPoints[0]),st=$[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(rt,st,Be.timeStamp),!!this._valid){this._lastPoints=$,this._active=!0;var Ge=(rt.y+st.y)/2,Qe=-.5;return{pitchDelta:Ge*Qe}}},j.prototype.gestureBeginsVertically=function($,ge,Be){if(this._valid!==void 0)return this._valid;var rt=2,st=$.mag()>=rt,Ge=ge.mag()>=rt;if(!(!st&&!Ge)){if(!st||!Ge)return this._firstMove===void 0&&(this._firstMove=Be),Be-this._firstMove0==ge.y>0;return Kl($)&&Kl(ge)&&Qe}},j}($o),pu={panStep:100,bearingStep:15,pitchStep:10},ul=function(){var j=pu;this._panStep=j.panStep,this._bearingStep=j.bearingStep,this._pitchStep=j.pitchStep,this._rotationDisabled=!1};ul.prototype.reset=function(){this._active=!1},ul.prototype.keydown=function(j){var ce=this;if(!(j.altKey||j.ctrlKey||j.metaKey)){var $=0,ge=0,Be=0,rt=0,st=0;switch(j.keyCode){case 61:case 107:case 171:case 187:$=1;break;case 189:case 109:case 173:$=-1;break;case 37:j.shiftKey?ge=-1:(j.preventDefault(),rt=-1);break;case 39:j.shiftKey?ge=1:(j.preventDefault(),rt=1);break;case 38:j.shiftKey?Be=1:(j.preventDefault(),st=-1);break;case 40:j.shiftKey?Be=-1:(j.preventDefault(),st=1);break;default:return}return this._rotationDisabled&&(ge=0,Be=0),{cameraAnimation:function(Ge){var Qe=Ge.getZoom();Ge.easeTo({duration:300,easeId:"keyboardHandler",easing:lt,zoom:$?Math.round(Qe)+$*(j.shiftKey?2:1):Qe,bearing:Ge.getBearing()+ge*ce._bearingStep,pitch:Ge.getPitch()+Be*ce._pitchStep,offset:[-rt*ce._panStep,-st*ce._panStep],center:Ge.getCenter()},{originalEvent:j})}}}},ul.prototype.enable=function(){this._enabled=!0},ul.prototype.disable=function(){this._enabled=!1,this.reset()},ul.prototype.isEnabled=function(){return this._enabled},ul.prototype.isActive=function(){return this._active},ul.prototype.disableRotation=function(){this._rotationDisabled=!0},ul.prototype.enableRotation=function(){this._rotationDisabled=!1};function lt(ye){return ye*(2-ye)}var ir=4.000244140625,ur=1/100,fa=1/450,Va=2,Jr=function(j,ce){this._map=j,this._el=j.getCanvasContainer(),this._handler=ce,this._delta=0,this._defaultZoomRate=ur,this._wheelZoomRate=fa,e.bindAll(["_onTimeout"],this)};Jr.prototype.setZoomRate=function(j){this._defaultZoomRate=j},Jr.prototype.setWheelZoomRate=function(j){this._wheelZoomRate=j},Jr.prototype.isEnabled=function(){return!!this._enabled},Jr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Jr.prototype.isZooming=function(){return!!this._zooming},Jr.prototype.enable=function(j){this.isEnabled()||(this._enabled=!0,this._aroundCenter=j&&j.around==="center")},Jr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Jr.prototype.wheel=function(j){if(this.isEnabled()){var ce=j.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?j.deltaY*40:j.deltaY,$=e.browser.now(),ge=$-(this._lastWheelEventTime||0);this._lastWheelEventTime=$,ce!==0&&ce%ir===0?this._type="wheel":ce!==0&&Math.abs(ce)<4?this._type="trackpad":ge>400?(this._type=null,this._lastValue=ce,this._timeout=setTimeout(this._onTimeout,40,j)):this._type||(this._type=Math.abs(ge*ce)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,ce+=this._lastValue)),j.shiftKey&&ce&&(ce=ce/4),this._type&&(this._lastWheelEvent=j,this._delta-=ce,this._active||this._start(j)),j.preventDefault()}},Jr.prototype._onTimeout=function(j){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(j)},Jr.prototype._start=function(j){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var ce=r.mousePos(this._el,j);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(ce)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Jr.prototype.renderFrame=function(){var j=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var ce=this._map.transform;if(this._delta!==0){var $=this._type==="wheel"&&Math.abs(this._delta)>ir?this._wheelZoomRate:this._defaultZoomRate,ge=Va/(1+Math.exp(-Math.abs(this._delta*$)));this._delta<0&&ge!==0&&(ge=1/ge);var Be=typeof this._targetZoom=="number"?ce.zoomScale(this._targetZoom):ce.scale;this._targetZoom=Math.min(ce.maxZoom,Math.max(ce.minZoom,ce.scaleZoom(Be*ge))),this._type==="wheel"&&(this._startZoom=ce.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var rt=typeof this._targetZoom=="number"?this._targetZoom:ce.zoom,st=this._startZoom,Ge=this._easing,Qe=!1,pt;if(this._type==="wheel"&&st&&Ge){var Bt=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),It=Ge(Bt);pt=e.number(st,rt,It),Bt<1?this._frameId||(this._frameId=!0):Qe=!0}else pt=rt,Qe=!0;return this._active=!0,Qe&&(this._active=!1,this._finishTimeout=setTimeout(function(){j._zooming=!1,j._handler._triggerRenderFrame(),delete j._targetZoom,delete j._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Qe,zoomDelta:pt-ce.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Jr.prototype._smoothOutEasing=function(j){var ce=e.ease;if(this._prevEase){var $=this._prevEase,ge=(e.browser.now()-$.start)/$.duration,Be=$.easing(ge+.01)-$.easing(ge),rt=.27/Math.sqrt(Be*Be+1e-4)*.01,st=Math.sqrt(.27*.27-rt*rt);ce=e.bezier(rt,st,.25,1)}return this._prevEase={start:e.browser.now(),duration:j,easing:ce},ce},Jr.prototype.reset=function(){this._active=!1};var Kr=function(j,ce){this._clickZoom=j,this._tapZoom=ce};Kr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Kr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Kr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Kr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var cn=function(){this.reset()};cn.prototype.reset=function(){this._active=!1},cn.prototype.dblclick=function(j,ce){return j.preventDefault(),{cameraAnimation:function($){$.easeTo({duration:300,zoom:$.getZoom()+(j.shiftKey?-1:1),around:$.unproject(ce)},{originalEvent:j})}}},cn.prototype.enable=function(){this._enabled=!0},cn.prototype.disable=function(){this._enabled=!1,this.reset()},cn.prototype.isEnabled=function(){return this._enabled},cn.prototype.isActive=function(){return this._active};var ln=function(){this._tap=new sn({numTouches:1,numTaps:1}),this.reset()};ln.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ln.prototype.touchstart=function(j,ce,$){this._swipePoint||(this._tapTime&&j.timeStamp-this._tapTime>pa&&this.reset(),this._tapTime?$.length>0&&(this._swipePoint=ce[0],this._swipeTouch=$[0].identifier):this._tap.touchstart(j,ce,$))},ln.prototype.touchmove=function(j,ce,$){if(!this._tapTime)this._tap.touchmove(j,ce,$);else if(this._swipePoint){if($[0].identifier!==this._swipeTouch)return;var ge=ce[0],Be=ge.y-this._swipePoint.y;return this._swipePoint=ge,j.preventDefault(),this._active=!0,{zoomDelta:Be/128}}},ln.prototype.touchend=function(j,ce,$){if(this._tapTime)this._swipePoint&&$.length===0&&this.reset();else{var ge=this._tap.touchend(j,ce,$);ge&&(this._tapTime=j.timeStamp)}},ln.prototype.touchcancel=function(){this.reset()},ln.prototype.enable=function(){this._enabled=!0},ln.prototype.disable=function(){this._enabled=!1,this.reset()},ln.prototype.isEnabled=function(){return this._enabled},ln.prototype.isActive=function(){return this._active};var un=function(j,ce,$){this._el=j,this._mousePan=ce,this._touchPan=$};un.prototype.enable=function(j){this._inertiaOptions=j||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},un.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},un.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},un.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var wn=function(j,ce,$){this._pitchWithRotate=j.pitchWithRotate,this._mouseRotate=ce,this._mousePitch=$};wn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},wn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},wn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},wn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Jn=function(j,ce,$,ge){this._el=j,this._touchZoom=ce,this._touchRotate=$,this._tapDragZoom=ge,this._rotationDisabled=!1,this._enabled=!0};Jn.prototype.enable=function(j){this._touchZoom.enable(j),this._rotationDisabled||this._touchRotate.enable(j),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Jn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Jn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Jn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Jn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Jn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var jn=function(ye){return ye.zoom||ye.drag||ye.pitch||ye.rotate},xn=function(ye){function j(){ye.apply(this,arguments)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j}(e.Event);function Za(ye){return ye.panDelta&&ye.panDelta.mag()||ye.zoomDelta||ye.bearingDelta||ye.pitchDelta}var Ur=function(j,ce){this._map=j,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new gt(j),this._bearingSnap=ce.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(ce),e.bindAll(["handleEvent","handleWindowEvent"],this);var $=this._el;this._listeners=[[$,"touchstart",{passive:!0}],[$,"touchmove",{passive:!1}],[$,"touchend",void 0],[$,"touchcancel",void 0],[$,"mousedown",void 0],[$,"mousemove",void 0],[$,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[$,"mouseover",void 0],[$,"mouseout",void 0],[$,"dblclick",void 0],[$,"click",void 0],[$,"keydown",{capture:!1}],[$,"keyup",void 0],[$,"wheel",{passive:!1}],[$,"contextmenu",void 0],[e.window,"blur",void 0]];for(var ge=0,Be=this._listeners;gest?Math.min(2,Xr):Math.max(.5,Xr),qa=Math.pow(on,1-ja),hn=rt.unproject(_r.add(Ir.mult(ja*qa)).mult(Ha));rt.setLocationAtPoint(rt.renderWorldCopies?hn.wrap():hn,Mt)}Be._fireMoveEvents(ge)},function(ja){Be._afterEase(ge,ja)},$),this},j.prototype._prepareEase=function($,ge,Be){Be===void 0&&(Be={}),this._moving=!0,!ge&&!Be.moving&&this.fire(new e.Event("movestart",$)),this._zooming&&!Be.zooming&&this.fire(new e.Event("zoomstart",$)),this._rotating&&!Be.rotating&&this.fire(new e.Event("rotatestart",$)),this._pitching&&!Be.pitching&&this.fire(new e.Event("pitchstart",$))},j.prototype._fireMoveEvents=function($){this.fire(new e.Event("move",$)),this._zooming&&this.fire(new e.Event("zoom",$)),this._rotating&&this.fire(new e.Event("rotate",$)),this._pitching&&this.fire(new e.Event("pitch",$))},j.prototype._afterEase=function($,ge){if(!(this._easeId&&ge&&this._easeId===ge)){delete this._easeId;var Be=this._zooming,rt=this._rotating,st=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Be&&this.fire(new e.Event("zoomend",$)),rt&&this.fire(new e.Event("rotateend",$)),st&&this.fire(new e.Event("pitchend",$)),this.fire(new e.Event("moveend",$))}},j.prototype.flyTo=function($,ge){var Be=this;if(!$.essential&&e.browser.prefersReducedMotion){var rt=e.pick($,["center","zoom","bearing","pitch","around"]);return this.jumpTo(rt,ge)}this.stop(),$=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},$);var st=this.transform,Ge=this.getZoom(),Qe=this.getBearing(),pt=this.getPitch(),Bt=this.getPadding(),It="zoom"in $?e.clamp(+$.zoom,st.minZoom,st.maxZoom):Ge,Nt="bearing"in $?this._normalizeBearing($.bearing,Qe):Qe,Xt="pitch"in $?+$.pitch:pt,qt="padding"in $?$.padding:st.padding,Mt=st.zoomScale(It-Ge),Ft=e.Point.convert($.offset),Rt=st.centerPoint.add(Ft),_r=st.pointLocation(Rt),Ir=e.LngLat.convert($.center||_r);this._normalizeCenter(Ir);var Xr=st.project(_r),Ua=st.project(Ir).sub(Xr),ka=$.curve,xa=Math.max(st.width,st.height),ja=xa/Mt,Ha=Ua.mag();if("minZoom"in $){var on=e.clamp(Math.min($.minZoom,Ge,It),st.minZoom,st.maxZoom),qa=xa/st.zoomScale(on-Ge);ka=Math.sqrt(qa/Ha*2)}var hn=ka*ka;function Sn(Qo){var tl=(ja*ja-xa*xa+(Qo?-1:1)*hn*hn*Ha*Ha)/(2*(Qo?ja:xa)*hn*Ha);return Math.log(Math.sqrt(tl*tl+1)-tl)}function Gn(Qo){return(Math.exp(Qo)-Math.exp(-Qo))/2}function ti(Qo){return(Math.exp(Qo)+Math.exp(-Qo))/2}function yo(Qo){return Gn(Qo)/ti(Qo)}var vo=Sn(0),ss=function(Qo){return ti(vo)/ti(vo+ka*Qo)},rs=function(Qo){return xa*((ti(vo)*yo(vo+ka*Qo)-Gn(vo))/hn)/Ha},fs=(Sn(1)-vo)/ka;if(Math.abs(Ha)<1e-6||!isFinite(fs)){if(Math.abs(xa-ja)<1e-6)return this.easeTo($,ge);var ls=ja$.maxDuration&&($.duration=0),this._zooming=!0,this._rotating=Qe!==Nt,this._pitching=Xt!==pt,this._padding=!st.isPaddingEqual(qt),this._prepareEase(ge,!1),this._ease(function(Qo){var tl=Qo*fs,cc=1/ss(tl);st.zoom=Qo===1?It:Ge+st.scaleZoom(cc),Be._rotating&&(st.bearing=e.number(Qe,Nt,Qo)),Be._pitching&&(st.pitch=e.number(pt,Xt,Qo)),Be._padding&&(st.interpolatePadding(Bt,qt,Qo),Rt=st.centerPoint.add(Ft));var Dc=Qo===1?Ir:st.unproject(Xr.add(Ua.mult(rs(tl))).mult(cc));st.setLocationAtPoint(st.renderWorldCopies?Dc.wrap():Dc,Rt),Be._fireMoveEvents(ge)},function(){return Be._afterEase(ge)},$),this},j.prototype.isEasing=function(){return!!this._easeFrameId},j.prototype.stop=function(){return this._stop()},j.prototype._stop=function($,ge){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Be=this._onEaseEnd;delete this._onEaseEnd,Be.call(this,ge)}if(!$){var rt=this.handlers;rt&&rt.stop(!1)}return this},j.prototype._ease=function($,ge,Be){Be.animate===!1||Be.duration===0?($(1),ge()):(this._easeStart=e.browser.now(),this._easeOptions=Be,this._onEaseFrame=$,this._onEaseEnd=ge,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},j.prototype._renderFrameCallback=function(){var $=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing($)),$<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},j.prototype._normalizeBearing=function($,ge){$=e.wrap($,-180,180);var Be=Math.abs($-ge);return Math.abs($-360-ge)180?-360:Be<-180?360:0}},j}(e.Evented),Ra=function(j){j===void 0&&(j={}),this.options=j,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Ra.prototype.getDefaultPosition=function(){return"bottom-right"},Ra.prototype.onAdd=function(j){var ce=this.options&&this.options.compact;return this._map=j,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=r.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),ce&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),ce===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Ra.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Ra.prototype._setElementTitle=function(j,ce){var $=this._map._getUIString("AttributionControl."+ce);j.title=$,j.setAttribute("aria-label",$)},Ra.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Ra.prototype._updateEditLink=function(){var j=this._editLink;j||(j=this._editLink=this._container.querySelector(".mapbox-improve-map"));var ce=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(j){var $=ce.reduce(function(ge,Be,rt){return Be.value&&(ge+=Be.key+"="+Be.value+(rt=0)return!1;return!0});var st=j.join(" | ");st!==this._attribHTML&&(this._attribHTML=st,j.length?(this._innerContainer.innerHTML=st,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ra.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var $a=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};$a.prototype.onAdd=function(j){this._map=j,this._container=r.create("div","mapboxgl-ctrl");var ce=r.create("a","mapboxgl-ctrl-logo");return ce.target="_blank",ce.rel="noopener nofollow",ce.href="https://www.mapbox.com/",ce.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),ce.setAttribute("rel","noopener nofollow"),this._container.appendChild(ce),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},$a.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},$a.prototype.getDefaultPosition=function(){return"bottom-left"},$a.prototype._updateLogo=function(j){(!j||j.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},$a.prototype._logoRequired=function(){if(this._map.style){var j=this._map.style.sourceCaches;for(var ce in j){var $=j[ce].getSource();if($.mapbox_logo)return!0}return!1}},$a.prototype._updateCompact=function(){var j=this._container.children;if(j.length){var ce=j[0];this._map.getCanvasContainer().offsetWidth<250?ce.classList.add("mapboxgl-compact"):ce.classList.remove("mapboxgl-compact")}};var Fa=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Fa.prototype.add=function(j){var ce=++this._id,$=this._queue;return $.push({callback:j,id:ce,cancelled:!1}),ce},Fa.prototype.remove=function(j){for(var ce=this._currentlyRunning,$=ce?this._queue.concat(ce):this._queue,ge=0,Be=$;ge$.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if($.minPitch!=null&&$.maxPitch!=null&&$.minPitch>$.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if($.minPitch!=null&&$.minPitchAn)throw new Error("maxPitch must be less than or equal to "+An);var Be=new ko($.minZoom,$.maxZoom,$.minPitch,$.maxPitch,$.renderWorldCopies);if(ye.call(this,Be,$),this._interactive=$.interactive,this._maxTileCacheSize=$.maxTileCacheSize,this._failIfMajorPerformanceCaveat=$.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=$.preserveDrawingBuffer,this._antialias=$.antialias,this._trackResize=$.trackResize,this._bearingSnap=$.bearingSnap,this._refreshExpiredTiles=$.refreshExpiredTiles,this._fadeDuration=$.fadeDuration,this._crossSourceCollisions=$.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=$.collectResourceTiming,this._renderTaskQueue=new Fa,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Bn,$.locale),this._clickTolerance=$.clickTolerance,this._requestManager=new e.RequestManager($.transformRequest,$.accessToken),typeof $.container=="string"){if(this._container=e.window.document.getElementById($.container),!this._container)throw new Error("Container '"+$.container+"' not found.")}else if($.container instanceof Xn)this._container=$.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if($.maxBounds&&this.setMaxBounds($.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ge._update(!1)}),this.on("moveend",function(){return ge._update(!1)}),this.on("zoom",function(){return ge._update(!0)}),typeof e.window<"u"&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ur(this,$);var rt=typeof $.hash=="string"&&$.hash||void 0;this._hash=$.hash&&new Dl(rt).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:$.center,zoom:$.zoom,bearing:$.bearing,pitch:$.pitch}),$.bounds&&(this.resize(),this.fitBounds($.bounds,e.extend({},$.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=$.localIdeographFontFamily,$.style&&this.setStyle($.style,{localIdeographFontFamily:$.localIdeographFontFamily}),$.attributionControl&&this.addControl(new Ra({customAttribution:$.customAttribution})),this.addControl(new $a,$.logoPosition),this.on("style.load",function(){ge.transform.unmodified&&ge.jumpTo(ge.style.stylesheet)}),this.on("data",function(st){ge._update(st.dataType==="style"),ge.fire(new e.Event(st.dataType+"data",st))}),this.on("dataloading",function(st){ge.fire(new e.Event(st.dataType+"dataloading",st))})}ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j;var ce={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return j.prototype._getMapId=function(){return this._mapId},j.prototype.addControl=function(ge,Be){if(Be===void 0&&(ge.getDefaultPosition?Be=ge.getDefaultPosition():Be="top-right"),!ge||!ge.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var rt=ge.onAdd(this);this._controls.push(ge);var st=this._controlPositions[Be];return Be.indexOf("bottom")!==-1?st.insertBefore(rt,st.firstChild):st.appendChild(rt),this},j.prototype.removeControl=function(ge){if(!ge||!ge.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Be=this._controls.indexOf(ge);return Be>-1&&this._controls.splice(Be,1),ge.onRemove(this),this},j.prototype.hasControl=function(ge){return this._controls.indexOf(ge)>-1},j.prototype.resize=function(ge){var Be=this._containerDimensions(),rt=Be[0],st=Be[1];this._resizeCanvas(rt,st),this.transform.resize(rt,st),this.painter.resize(rt,st);var Ge=!this._moving;return Ge&&(this.stop(),this.fire(new e.Event("movestart",ge)).fire(new e.Event("move",ge))),this.fire(new e.Event("resize",ge)),Ge&&this.fire(new e.Event("moveend",ge)),this},j.prototype.getBounds=function(){return this.transform.getBounds()},j.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},j.prototype.setMaxBounds=function(ge){return this.transform.setMaxBounds(e.LngLatBounds.convert(ge)),this._update()},j.prototype.setMinZoom=function(ge){if(ge=ge??Ea,ge>=Ea&&ge<=this.transform.maxZoom)return this.transform.minZoom=ge,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ge,this._update(),this.getZoom()>ge&&this.setZoom(ge),this;throw new Error("maxZoom must be greater than the current minZoom")},j.prototype.getMaxZoom=function(){return this.transform.maxZoom},j.prototype.setMinPitch=function(ge){if(ge=ge??da,ge=da&&ge<=this.transform.maxPitch)return this.transform.minPitch=ge,this._update(),this.getPitch()An)throw new Error("maxPitch must be less than or equal to "+An);if(ge>=this.transform.minPitch)return this.transform.maxPitch=ge,this._update(),this.getPitch()>ge&&this.setPitch(ge),this;throw new Error("maxPitch must be greater than the current minPitch")},j.prototype.getMaxPitch=function(){return this.transform.maxPitch},j.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},j.prototype.setRenderWorldCopies=function(ge){return this.transform.renderWorldCopies=ge,this._update()},j.prototype.project=function(ge){return this.transform.locationPoint(e.LngLat.convert(ge))},j.prototype.unproject=function(ge){return this.transform.pointLocation(e.Point.convert(ge))},j.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},j.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},j.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},j.prototype._createDelegatedListener=function(ge,Be,rt){var st=this,Ge;if(ge==="mouseenter"||ge==="mouseover"){var Qe=!1,pt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length?Qe||(Qe=!0,rt.call(st,new jt(ge,st,Mt.originalEvent,{features:Ft}))):Qe=!1},Bt=function(){Qe=!1};return{layer:Be,listener:rt,delegates:{mousemove:pt,mouseout:Bt}}}else if(ge==="mouseleave"||ge==="mouseout"){var It=!1,Nt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length?It=!0:It&&(It=!1,rt.call(st,new jt(ge,st,Mt.originalEvent)))},Xt=function(Mt){It&&(It=!1,rt.call(st,new jt(ge,st,Mt.originalEvent)))};return{layer:Be,listener:rt,delegates:{mousemove:Nt,mouseout:Xt}}}else{var qt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length&&(Mt.features=Ft,rt.call(st,Mt),delete Mt.features)};return{layer:Be,listener:rt,delegates:(Ge={},Ge[ge]=qt,Ge)}}},j.prototype.on=function(ge,Be,rt){if(rt===void 0)return ye.prototype.on.call(this,ge,Be);var st=this._createDelegatedListener(ge,Be,rt);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ge]=this._delegatedListeners[ge]||[],this._delegatedListeners[ge].push(st);for(var Ge in st.delegates)this.on(Ge,st.delegates[Ge]);return this},j.prototype.once=function(ge,Be,rt){if(rt===void 0)return ye.prototype.once.call(this,ge,Be);var st=this._createDelegatedListener(ge,Be,rt);for(var Ge in st.delegates)this.once(Ge,st.delegates[Ge]);return this},j.prototype.off=function(ge,Be,rt){var st=this;if(rt===void 0)return ye.prototype.off.call(this,ge,Be);var Ge=function(Qe){for(var pt=Qe[ge],Bt=0;Bt180;){var rt=ce.locationPoint(ye);if(rt.x>=0&&rt.y>=0&&rt.x<=ce.width&&rt.y<=ce.height)break;ye.lng>ce.center.lng?ye.lng-=360:ye.lng+=360}return ye}var Xi={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function eo(ye,j,ce){var $=ye.classList;for(var ge in Xi)$.remove("mapboxgl-"+ce+"-anchor-"+ge);$.add("mapboxgl-"+ce+"-anchor-"+j)}var ts=function(ye){function j(ce,$){if(ye.call(this),(ce instanceof e.window.HTMLElement||$)&&(ce=e.extend({element:ce},$)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=ce&&ce.anchor||"center",this._color=ce&&ce.color||"#3FB1CE",this._scale=ce&&ce.scale||1,this._draggable=ce&&ce.draggable||!1,this._clickTolerance=ce&&ce.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=ce&&ce.rotation||0,this._rotationAlignment=ce&&ce.rotationAlignment||"auto",this._pitchAlignment=ce&&ce.pitchAlignment&&ce.pitchAlignment!=="auto"?ce.pitchAlignment:this._rotationAlignment,!ce||!ce.element){this._defaultMarker=!0,this._element=r.create("div"),this._element.setAttribute("aria-label","Map marker");var ge=r.createNS("http://www.w3.org/2000/svg","svg"),Be=41,rt=27;ge.setAttributeNS(null,"display","block"),ge.setAttributeNS(null,"height",Be+"px"),ge.setAttributeNS(null,"width",rt+"px"),ge.setAttributeNS(null,"viewBox","0 0 "+rt+" "+Be);var st=r.createNS("http://www.w3.org/2000/svg","g");st.setAttributeNS(null,"stroke","none"),st.setAttributeNS(null,"stroke-width","1"),st.setAttributeNS(null,"fill","none"),st.setAttributeNS(null,"fill-rule","evenodd");var Ge=r.createNS("http://www.w3.org/2000/svg","g");Ge.setAttributeNS(null,"fill-rule","nonzero");var Qe=r.createNS("http://www.w3.org/2000/svg","g");Qe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Qe.setAttributeNS(null,"fill","#000000");for(var pt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Bt=0,It=pt;Bt=ge}this._isDragging&&(this._pos=$.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))},j.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new e.Event("dragend")),this._state="inactive"},j.prototype._addDragHandler=function($){this._element.contains($.originalEvent.target)&&($.preventDefault(),this._positionDelta=$.point.sub(this._pos).add(this._offset),this._pointerdownPos=$.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},j.prototype.setDraggable=function($){return this._draggable=!!$,this._map&&($?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},j.prototype.isDraggable=function(){return this._draggable},j.prototype.setRotation=function($){return this._rotation=$||0,this._update(),this},j.prototype.getRotation=function(){return this._rotation},j.prototype.setRotationAlignment=function($){return this._rotationAlignment=$||"auto",this._update(),this},j.prototype.getRotationAlignment=function(){return this._rotationAlignment},j.prototype.setPitchAlignment=function($){return this._pitchAlignment=$&&$!=="auto"?$:this._rotationAlignment,this._update(),this},j.prototype.getPitchAlignment=function(){return this._pitchAlignment},j}(e.Evented),to={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},il;function Xo(ye){il!==void 0?ye(il):e.window.navigator.permissions!==void 0?e.window.navigator.permissions.query({name:"geolocation"}).then(function(j){il=j.state!=="denied",ye(il)}):(il=!!e.window.navigator.geolocation,ye(il))}var Qs=0,pl=!1,El=function(ye){function j(ce){ye.call(this),this.options=e.extend({},to,ce),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.onAdd=function($){return this._map=$,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Xo(this._setupUI),this._container},j.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Qs=0,pl=!1},j.prototype._isOutOfMapMaxBounds=function($){var ge=this._map.getMaxBounds(),Be=$.coords;return ge&&(Be.longitudege.getEast()||Be.latitudege.getNorth())},j.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},j.prototype._onSuccess=function($){if(this._map){if(this._isOutOfMapMaxBounds($)){this._setErrorState(),this.fire(new e.Event("outofmaxbounds",$)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=$,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker($),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera($),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",$)),this._finish()}},j.prototype._updateCamera=function($){var ge=new e.LngLat($.coords.longitude,$.coords.latitude),Be=$.coords.accuracy,rt=this._map.getBearing(),st=e.extend({bearing:rt},this.options.fitBoundsOptions);this._map.fitBounds(ge.toBounds(Be),st,{geolocateSource:!0})},j.prototype._updateMarker=function($){if($){var ge=new e.LngLat($.coords.longitude,$.coords.latitude);this._accuracyCircleMarker.setLngLat(ge).addTo(this._map),this._userLocationDotMarker.setLngLat(ge).addTo(this._map),this._accuracy=$.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},j.prototype._updateCircleRadius=function(){var $=this._map._container.clientHeight/2,ge=this._map.unproject([0,$]),Be=this._map.unproject([1,$]),rt=ge.distanceTo(Be),st=Math.ceil(2*this._accuracy/rt);this._circleElement.style.width=st+"px",this._circleElement.style.height=st+"px"},j.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},j.prototype._onError=function($){if(this._map){if(this.options.trackUserLocation)if($.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ge=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if($.code===3&&pl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",$)),this._finish()}},j.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},j.prototype._setupUI=function($){var ge=this;if(this._container.addEventListener("contextmenu",function(st){return st.preventDefault()}),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",$===!1){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Be=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Be,this._geolocateButton.setAttribute("aria-label",Be)}else{var rt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=rt,this._geolocateButton.setAttribute("aria-label",rt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ts(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ts({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(st){var Ge=st.originalEvent&&st.originalEvent.type==="resize";!st.geolocateSource&&ge._watchState==="ACTIVE_LOCK"&&!Ge&&(ge._watchState="BACKGROUND",ge._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ge._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ge.fire(new e.Event("trackuserlocationend")))})},j.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Qs--,pl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Qs++;var $;Qs>1?($={maximumAge:6e5,timeout:0},pl=!0):($=this.options.positionOptions,pl=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,$)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},j.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},j}(e.Evented),zu={maxWidth:100,unit:"metric"},Us=function(j){this.options=e.extend({},zu,j),e.bindAll(["_onMove","setUnit"],this)};Us.prototype.getDefaultPosition=function(){return"bottom-left"},Us.prototype._onMove=function(){$s(this._map,this._container,this.options)},Us.prototype.onAdd=function(j){return this._map=j,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",j.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Us.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Us.prototype.setUnit=function(j){this.options.unit=j,$s(this._map,this._container,this.options)};function $s(ye,j,ce){var $=ce&&ce.maxWidth||100,ge=ye._container.clientHeight/2,Be=ye.unproject([0,ge]),rt=ye.unproject([$,ge]),st=Be.distanceTo(rt);if(ce&&ce.unit==="imperial"){var Ge=3.2808*st;if(Ge>5280){var Qe=Ge/5280;mi(j,$,Qe,ye._getUIString("ScaleControl.Miles"))}else mi(j,$,Ge,ye._getUIString("ScaleControl.Feet"))}else if(ce&&ce.unit==="nautical"){var pt=st/1852;mi(j,$,pt,ye._getUIString("ScaleControl.NauticalMiles"))}else st>=1e3?mi(j,$,st/1e3,ye._getUIString("ScaleControl.Kilometers")):mi(j,$,st,ye._getUIString("ScaleControl.Meters"))}function mi(ye,j,ce,$){var ge=Oo(ce),Be=ge/ce;ye.style.width=j*Be+"px",ye.innerHTML=ge+" "+$}function kl(ye){var j=Math.pow(10,Math.ceil(-Math.log(ye)/Math.LN10));return Math.round(ye*j)/j}function Oo(ye){var j=Math.pow(10,(""+Math.floor(ye)).length-1),ce=ye/j;return ce=ce>=10?10:ce>=5?5:ce>=3?3:ce>=2?2:ce>=1?1:kl(ce),j*ce}var As=function(j){this._fullscreen=!1,j&&j.container&&(j.container instanceof e.window.HTMLElement?this._container=j.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};As.prototype.onAdd=function(j){return this._map=j,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},As.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},As.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},As.prototype._setupUI=function(){var j=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",j).setAttribute("aria-hidden",!0),j.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},As.prototype._updateTitle=function(){var j=this._getTitle();this._fullscreenButton.setAttribute("aria-label",j),this._fullscreenButton.title=j},As.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},As.prototype._isFullscreen=function(){return this._fullscreen},As.prototype._changeIcon=function(){var j=e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement;j===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},As.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ol={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Bl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ci=function(ye){function j(ce){ye.call(this),this.options=e.extend(Object.create(Ol),ce),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.addTo=function($){return this._map&&this.remove(),this._map=$,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},j.prototype.isOpen=function(){return!!this._map},j.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},j.prototype.getLngLat=function(){return this._lngLat},j.prototype.setLngLat=function($){return this._lngLat=e.LngLat.convert($),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},j.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},j.prototype.getElement=function(){return this._container},j.prototype.setText=function($){return this.setDOMContent(e.window.document.createTextNode($))},j.prototype.setHTML=function($){var ge=e.window.document.createDocumentFragment(),Be=e.window.document.createElement("body"),rt;for(Be.innerHTML=$;rt=Be.firstChild,!!rt;)ge.appendChild(rt);return this.setDOMContent(ge)},j.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},j.prototype.setMaxWidth=function($){return this.options.maxWidth=$,this._update(),this},j.prototype.setDOMContent=function($){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=r.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild($),this._createCloseButton(),this._update(),this._focusFirstElement(),this},j.prototype.addClassName=function($){this._container&&this._container.classList.add($)},j.prototype.removeClassName=function($){this._container&&this._container.classList.remove($)},j.prototype.setOffset=function($){return this.options.offset=$,this._update(),this},j.prototype.toggleClassName=function($){if(this._container)return this._container.classList.toggle($)},j.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},j.prototype._onMouseUp=function($){this._update($.point)},j.prototype._onMouseMove=function($){this._update($.point)},j.prototype._onDrag=function($){this._update($.point)},j.prototype._update=function($){var ge=this,Be=this._lngLat||this._trackPointer;if(!(!this._map||!Be||!this._content)&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Nt){return ge._container.classList.add(Nt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Mi(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!$))){var rt=this._pos=this._trackPointer&&$?$:this._map.project(this._lngLat),st=this.options.anchor,Ge=fo(this.options.offset);if(!st){var Qe=this._container.offsetWidth,pt=this._container.offsetHeight,Bt;rt.y+Ge.bottom.ythis._map.transform.height-pt?Bt=["bottom"]:Bt=[],rt.xthis._map.transform.width-Qe/2&&Bt.push("right"),Bt.length===0?st="bottom":st=Bt.join("-")}var It=rt.add(Ge[st]).round();r.setTransform(this._container,Xi[st]+" translate("+It.x+"px,"+It.y+"px)"),eo(this._container,st,"popup")}},j.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var $=this._container.querySelector(Bl);$&&$.focus()}},j.prototype._onClose=function(){this.remove()},j}(e.Evented);function fo(ye){if(ye)if(typeof ye=="number"){var j=Math.round(Math.sqrt(.5*Math.pow(ye,2)));return{center:new e.Point(0,0),top:new e.Point(0,ye),"top-left":new e.Point(j,j),"top-right":new e.Point(-j,j),bottom:new e.Point(0,-ye),"bottom-left":new e.Point(j,-j),"bottom-right":new e.Point(-j,-j),left:new e.Point(ye,0),right:new e.Point(-ye,0)}}else if(ye instanceof e.Point||Array.isArray(ye)){var ce=e.Point.convert(ye);return{center:ce,top:ce,"top-left":ce,"top-right":ce,bottom:ce,"bottom-left":ce,"bottom-right":ce,left:ce,right:ce}}else return{center:e.Point.convert(ye.center||[0,0]),top:e.Point.convert(ye.top||[0,0]),"top-left":e.Point.convert(ye["top-left"]||[0,0]),"top-right":e.Point.convert(ye["top-right"]||[0,0]),bottom:e.Point.convert(ye.bottom||[0,0]),"bottom-left":e.Point.convert(ye["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(ye["bottom-right"]||[0,0]),left:e.Point.convert(ye.left||[0,0]),right:e.Point.convert(ye.right||[0,0])};else return fo(new e.Point(0,0))}var mo={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Yn,NavigationControl:ei,GeolocateControl:El,AttributionControl:Ra,ScaleControl:Us,FullscreenControl:As,Popup:Ci,Marker:ts,Style:ql,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:Lr,clearPrewarmedResources:Er,get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(ye){e.config.ACCESS_TOKEN=ye},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(ye){e.config.API_URL=ye},get workerCount(){return Ka.workerCount},set workerCount(ye){Ka.workerCount=ye},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ye){e.config.MAX_PARALLEL_IMAGE_REQUESTS=ye},clearStorage:function(j){e.clearTileCache(j)},workerUrl:""};return mo}),A})}}),IR=He({"src/plots/mapbox/layers.js"(Y,H){var h=Qr(),x=jl().sanitizeHTML,A=JT(),E=dd();function e(o,n){this.subplot=o,this.uid=o.uid+"-"+n,this.index=n,this.idSource="source-"+this.uid,this.idLayer=E.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var t=e.prototype;t.update=function(n){this.visible?this.needsNewImage(n)?this.updateImage(n):this.needsNewSource(n)?(this.removeLayer(),this.updateSource(n),this.updateLayer(n)):this.needsNewLayer(n)?this.updateLayer(n):this.updateStyle(n):(this.updateSource(n),this.updateLayer(n)),this.visible=r(n)},t.needsNewImage=function(o){var n=this.subplot.map;return n.getSource(this.idSource)&&this.sourceType==="image"&&o.sourcetype==="image"&&(this.source!==o.source||JSON.stringify(this.coordinates)!==JSON.stringify(o.coordinates))},t.needsNewSource=function(o){return this.sourceType!==o.sourcetype||JSON.stringify(this.source)!==JSON.stringify(o.source)||this.layerType!==o.type},t.needsNewLayer=function(o){return this.layerType!==o.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},t.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},t.updateImage=function(o){var n=this.subplot.map;n.getSource(this.idSource).updateImage({url:o.source,coordinates:o.coordinates});var s=this.findFollowingMapboxLayerId(this.lookupBelow());s!==null&&this.subplot.map.moveLayer(this.idLayer,s)},t.updateSource=function(o){var n=this.subplot.map;if(n.getSource(this.idSource)&&n.removeSource(this.idSource),this.sourceType=o.sourcetype,this.source=o.source,!!r(o)){var s=a(o);n.addSource(this.idSource,s)}},t.findFollowingMapboxLayerId=function(o){if(o==="traces")for(var n=this.subplot.getMapLayers(),s=0;s0){for(var s=0;s0}function i(o){var n={},s={};switch(o.type){case"circle":h.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":h.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":h.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var c=o.symbol,f=A(c.textposition,c.iconsize);h.extendFlat(n,{"icon-image":c.icon+"-15","icon-size":c.iconsize/10,"text-field":c.text,"text-size":c.textfont.size,"text-anchor":f.anchor,"text-offset":f.offset,"symbol-placement":c.placement}),h.extendFlat(s,{"icon-color":o.color,"text-color":c.textfont.color,"text-opacity":o.opacity});break;case"raster":h.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:n,paint:s}}function a(o){var n=o.sourcetype,s=o.source,c={type:n},f;return n==="geojson"?f="data":n==="vector"?f=typeof s=="string"?"url":"tiles":n==="raster"?(f="tiles",c.tileSize=256):n==="image"&&(f="url",c.coordinates=o.coordinates),c[f]=s,o.sourceattribution&&(c.attribution=x(o.sourceattribution)),c}H.exports=function(n,s,c){var f=new e(n,s);return f.update(c),f}}}),RR=He({"src/plots/mapbox/mapbox.js"(Y,H){var h=QT(),x=Qr(),A=op(),E=qi(),e=wo(),t=ph(),r=xc(),i=yv(),a=i.drawMode,o=i.selectMode,n=Uc().prepSelect,s=Uc().clearOutline,c=Uc().clearSelectionsCache,f=Uc().selectOnClick,p=dd(),v=IR();function T(_,b){this.id=b,this.gd=_;var d=_._fullLayout,u=_._context;this.container=d._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=d._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(d),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=T.prototype;l.plot=function(_,b,d){var u=this,g=b[u.id];u.map&&g.accesstoken!==u.accessToken&&(u.map.remove(),u.map=null,u.styleObj=null,u.traceHash={},u.layerList=[]);var y;u.map?y=new Promise(function(R,I){u.updateMap(_,b,R,I)}):y=new Promise(function(R,I){u.createMap(_,b,R,I)}),d.push(y)},l.createMap=function(_,b,d,u){var g=this,y=b[g.id],R=g.styleObj=w(y.style,b);g.accessToken=y.accesstoken;var I=y.bounds,z=I?[[I.west,I.south],[I.east,I.north]]:null,F=g.map=new h.Map({container:g.div,style:R.style,center:M(y.center),zoom:y.zoom,bearing:y.bearing,pitch:y.pitch,maxBounds:z,interactive:!g.isStatic,preserveDrawingBuffer:g.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new h.AttributionControl({compact:!0}));F._canvas.style.left="0px",F._canvas.style.top="0px",g.rejectOnError(u),g.isStatic||g.initFx(_,b);var B=[];B.push(new Promise(function(O){F.once("load",O)})),B=B.concat(A.fetchTraceGeoData(_)),Promise.all(B).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.updateMap=function(_,b,d,u){var g=this,y=g.map,R=b[this.id];g.rejectOnError(u);var I=[],z=w(R.style,b);JSON.stringify(g.styleObj)!==JSON.stringify(z)&&(g.styleObj=z,y.setStyle(z.style),g.traceHash={},I.push(new Promise(function(F){y.once("styledata",F)}))),I=I.concat(A.fetchTraceGeoData(_)),Promise.all(I).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.fillBelowLookup=function(_,b){var d=b[this.id],u=d.layers,g,y,R=this.belowLookup={},I=!1;for(g=0;g<_.length;g++){var z=_[g][0].trace,F=z._module;typeof z.below=="string"?y=z.below:F.getBelow&&(y=F.getBelow(z,this)),y===""&&(I=!0),R["trace-"+z.uid]=y||""}for(g=0;g1)for(g=0;g-1&&f(z.originalEvent,u,[d.xaxis],[d.yaxis],d.id,I),F.indexOf("event")>-1&&r.click(u,z.originalEvent)}}},l.updateFx=function(_){var b=this,d=b.map,u=b.gd;if(b.isStatic)return;function g(z){var F=b.map.unproject(z);return[F.lng,F.lat]}var y=_.dragmode,R;R=function(z,F){if(F.isRect){var B=z.range={};B[b.id]=[g([F.xmin,F.ymin]),g([F.xmax,F.ymax])]}else{var O=z.lassoPoints={};O[b.id]=F.map(g)}};var I=b.dragOptions;b.dragOptions=x.extendDeep(I||{},{dragmode:_.dragmode,element:b.div,gd:u,plotinfo:{id:b.id,domain:_[b.id].domain,xaxis:b.xaxis,yaxis:b.yaxis,fillRangeItems:R},xaxes:[b.xaxis],yaxes:[b.yaxis],subplot:b.id}),d.off("click",b.onClickInPanHandler),o(y)||a(y)?(d.dragPan.disable(),d.on("zoomstart",b.clearOutline),b.dragOptions.prepFn=function(z,F,B){n(z,F,B,b.dragOptions,y)},t.init(b.dragOptions)):(d.dragPan.enable(),d.off("zoomstart",b.clearOutline),b.div.onmousedown=null,b.div.ontouchstart=null,b.div.removeEventListener("touchstart",b.div._ontouchstart),b.onClickInPanHandler=b.onClickInPanFn(b.dragOptions),d.on("click",b.onClickInPanHandler))},l.updateFramework=function(_){var b=_[this.id].domain,d=_._size,u=this.div.style;u.width=d.w*(b.x[1]-b.x[0])+"px",u.height=d.h*(b.y[1]-b.y[0])+"px",u.left=d.l+b.x[0]*d.w+"px",u.top=d.t+(1-b.y[1])*d.h+"px",this.xaxis._offset=d.l+b.x[0]*d.w,this.xaxis._length=d.w*(b.x[1]-b.x[0]),this.yaxis._offset=d.t+(1-b.y[1])*d.h,this.yaxis._length=d.h*(b.y[1]-b.y[0])},l.updateLayers=function(_){var b=_[this.id],d=b.layers,u=this.layerList,g;if(d.length!==u.length){for(g=0;gB/2){var O=R.split("|").join("
");z.text(O).attr("data-unformatted",O).call(i.convertToTspans,v),F=r.bBox(z.node())}z.attr("transform",x(-3,-F.height+8)),I.insert("rect",".static-attribution").attr({x:-F.width-6,y:-F.height-3,width:F.width+6,height:F.height+3,fill:"rgba(255, 255, 255, 0.75)"});var P=1;F.width+6>B&&(P=B/(F.width+6));var N=[m.l+m.w*M.x[1],m.t+m.h*(1-M.y[0])];I.attr("transform",x(N[0],N[1])+A(P))}};function f(v,T){var l=v._fullLayout,m=v._context;if(m.mapboxAccessToken==="")return"";for(var w=[],S=[],M=!1,_=!1,b=0;b1&&h.warn(n.multipleTokensErrorMsg),w[0]):(S.length&&h.log(["Listed mapbox access token(s)",S.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function p(v){return typeof v=="string"&&(n.styleValuesMapbox.indexOf(v)!==-1||v.indexOf("mapbox://")===0||v.indexOf("stamen")===0)}Y.updateFx=function(v){for(var T=v._fullLayout,l=T._subplots[o],m=0;m=0;i--)t.removeLayer(r[i][1])},e.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},H.exports=function(r,i){var a=i[0].trace,o=new E(r,a.uid),n=o.sourceId,s=h(i),c=o.below=r.belowLookup["trace-"+a.uid];return r.map.addSource(n,{type:"geojson",data:s.geojson}),o._addLayers(s,c),i[0].trace._glTrace=o,o}}}),NR=He({"src/traces/choroplethmapbox/index.js"(Y,H){H.exports={attributes:eA(),supplyDefaults:OR(),colorbar:Zd(),calc:K_(),plot:BR(),hoverPoints:Q_(),eventData:ex(),selectPoints:tx(),styleOnSelect:function(h,x){if(x){var A=x[0].trace;A._glTrace.updateOnSelect(x)}},getBelow:function(h,x){for(var A=x.getMapLayers(),E=A.length-2;E>=0;E--){var e=A[E].id;if(typeof e=="string"&&e.indexOf("water")===0){for(var t=E+1;t0?+v[f]:0),c.push({type:"Feature",geometry:{type:"Point",coordinates:w},properties:S})}}var _=E.extractOpts(a),b=_.reversescale?E.flipScale(_.colorscale):_.colorscale,d=b[0][1],u=A.opacity(d)<1?d:A.addOpacity(d,0),g=["interpolate",["linear"],["heatmap-density"],0,u];for(f=1;f=0;r--)e.removeLayer(t[r][1])},E.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},H.exports=function(t,r){var i=r[0].trace,a=new A(t,i.uid),o=a.sourceId,n=h(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(o,{type:"geojson",data:n.geojson}),a._addLayers(n,s),a}}}),HR=He({"src/traces/densitymapbox/hover.js"(Y,H){var h=wo(),x=dx().hoverPoints,A=dx().getExtraText;H.exports=function(e,t,r){var i=x(e,t,r);if(i){var a=i[0],o=a.cd,n=o[0].trace,s=o[a.index];if(delete a.color,"z"in s){var c=a.subplot.mockAxis;a.z=s.z,a.zLabel=h.tickText(c,c.c2l(s.z),"hover").text}return a.extraText=A(n,s,o[0].t.labels),[a]}}}}),WR=He({"src/traces/densitymapbox/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x.z=A.z,x}}}),XR=He({"src/traces/densitymapbox/index.js"(Y,H){H.exports={attributes:rA(),supplyDefaults:jR(),colorbar:Zd(),formatLabels:KT(),calc:VR(),plot:GR(),hoverPoints:HR(),eventData:WR(),getBelow:function(h,x){for(var A=x.getMapLayers(),E=0;EESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":`{name:latin} +{name:nonlatin}`,"text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}}),$R=He({"src/plots/map/styles/arcgis-sat.js"(Y,H){H.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}}),cp=He({"src/plots/map/constants.js"(Y,H){var h=jd(),x=YR(),A=$R(),E='© OpenStreetMap contributors',e="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",t="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",i="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",n={basic:r,streets:r,outdoors:r,light:e,dark:t,satellite:A,"satellite-streets":x,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:E,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":e,"carto-darkmatter":t,"carto-voyager":r,"carto-positron-nolabels":i,"carto-darkmatter-nolabels":a,"carto-voyager-nolabels":o},s=h(n);H.exports={styleValueDflt:"basic",stylesMap:n,styleValuesMap:s,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",s.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}}}),ey=He({"src/plots/map/layout_attributes.js"(Y,H){var h=Qr(),x=zi().defaultLine,A=Ku().attributes,E=Mu(),e=bc().textposition,t=Uu().overrideAll,r=cl().templatedArray,i=cp(),a=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});a.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=H.exports=t({_arrayAttrRegexps:[h.counterRegex("map",".layers",!0)],domain:A({name:"map"}),style:{valType:"any",values:i.styleValuesMap,dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:x},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:x}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:a,textposition:h.extendFlat({},e,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),gx=He({"src/traces/scattermap/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=Xp(),e=bc(),t=ey(),r=Ll(),i=eu(),a=Po().extendFlat,o=Uu().overrideAll,n=ey(),s=E.line,c=E.marker;H.exports=o({lon:E.lon,lat:E.lat,cluster:{enabled:{valType:"boolean"},maxzoom:a({},n.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:a({},c.opacity,{dflt:1})},mode:a({},e.mode,{dflt:"markers"}),text:a({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:a({},e.hovertext,{}),line:{color:s.color,width:s.width},connectgaps:e.connectgaps,marker:a({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode},i("marker")),fill:E.fill,fillcolor:A(),textfont:t.layers.symbol.textfont,textposition:t.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:a({},r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:h()},"calc","nested")}}),aA=He({"src/traces/scattermap/constants.js"(Y,H){var h=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];H.exports={isSupportedFont:function(x){return h.indexOf(x)!==-1}}}}),KR=He({"src/traces/scattermap/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Zh(),E=rv(),e=av(),t=bv(),r=gx(),i=aA().isSupportedFont;H.exports=function(n,s,c,f){function p(g,y){return h.coerce(n,s,r,g,y)}function v(g,y){return h.coerce2(n,s,r,g,y)}var T=a(n,s,p);if(!T){s.visible=!1;return}if(p("text"),p("texttemplate"),p("hovertext"),p("hovertemplate"),p("mode"),p("below"),x.hasMarkers(s)){A(n,s,c,f,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var l=s.marker;l.symbol!=="circle"&&(h.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),h.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}x.hasLines(s)&&(E(n,s,c,f,p,{noDash:!0}),p("connectgaps"));var m=v("cluster.maxzoom"),w=v("cluster.step"),S=v("cluster.color",s.marker&&s.marker.color||c),M=v("cluster.size"),_=v("cluster.opacity"),b=m!==!1||w!==!1||S!==!1||M!==!1||_!==!1,d=p("cluster.enabled",b);if(d||x.hasText(s)){var u=f.font.family;e(n,s,f,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(u)?u:"Open Sans Regular",weight:f.font.weight,style:f.font.style,size:f.font.size,color:f.font.color}})}p("fill"),s.fill!=="none"&&t(n,s,c,p),h.coerceSelectionMarkerOpacity(s,p)};function a(o,n,s){var c=s("lon")||[],f=s("lat")||[],p=Math.min(c.length,f.length);return n._length=p,p}}}),nA=He({"src/traces/scattermap/format_labels.js"(Y,H){var h=wo();H.exports=function(A,E,e){var t={},r=e[E.subplot]._subplot,i=r.mockAxis,a=A.lonlat;return t.lonLabel=h.tickText(i,i.c2l(a[0]),!0).text,t.latLabel=h.tickText(i,i.c2l(a[1]),!0).text,t}}}),iA=He({"src/plots/map/convert_text_opts.js"(Y,H){var h=Qr();H.exports=function(A,E){var e=A.split(" "),t=e[0],r=e[1],i=h.isArrayOrTypedArray(E)?h.mean(E):E,a=.5+i/100,o=1.5+i/100,n=["",""],s=[0,0];switch(t){case"top":n[0]="top",s[1]=-o;break;case"bottom":n[0]="bottom",s[1]=o;break}switch(r){case"left":n[1]="right",s[0]=-a;break;case"right":n[1]="left",s[0]=a;break}var c;return n[0]&&n[1]?c=n.join("-"):n[0]?c=n[0]:n[1]?c=n[1]:c="center",{anchor:c,offset:s}}}}),JR=He({"src/traces/scattermap/convert.js"(Y,H){var h=Vi(),x=Qr(),A=qo().BADNUM,E=ip(),e=Eu(),t=Io(),r=U0(),i=cu(),a=aA().isSupportedFont,o=iA(),n=Dh().appendArrayPointValue,s=jl().NEWLINES,c=jl().BR_TAG_ALL;H.exports=function(_,b){var d=b[0].trace,u=d.visible===!0&&d._length!==0,g=d.fill!=="none",y=i.hasLines(d),R=i.hasMarkers(d),I=i.hasText(d),z=R&&d.marker.symbol==="circle",F=R&&d.marker.symbol!=="circle",B=d.cluster&&d.cluster.enabled,O=f("fill"),P=f("line"),N=f("circle"),U=f("symbol"),X={fill:O,line:P,circle:N,symbol:U};if(!u)return X;var te;if((g||y)&&(te=E.calcTraceToLineCoords(b)),g&&(O.geojson=E.makePolygon(te),O.layout.visibility="visible",x.extendFlat(O.paint,{"fill-color":d.fillcolor})),y&&(P.geojson=E.makeLine(te),P.layout.visibility="visible",x.extendFlat(P.paint,{"line-width":d.line.width,"line-color":d.line.color,"line-opacity":d.opacity})),z){var ue=p(b);N.geojson=ue.geojson,N.layout.visibility="visible",B&&(N.filter=["!",["has","point_count"]],X.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":w(d.cluster.color,d.cluster.step),"circle-radius":w(d.cluster.size,d.cluster.step),"circle-opacity":w(d.cluster.opacity,d.cluster.step)}},X.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":S(d),"text-size":12}}),x.extendFlat(N.paint,{"circle-color":ue.mcc,"circle-radius":ue.mrc,"circle-opacity":ue.mo})}if(z&&B&&(N.filter=["!",["has","point_count"]]),(F||I)&&(U.geojson=v(b,_),x.extendFlat(U.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),F&&(x.extendFlat(U.layout,{"icon-size":d.marker.size/10}),"angle"in d.marker&&d.marker.angle!=="auto"&&x.extendFlat(U.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),U.layout["icon-allow-overlap"]=d.marker.allowoverlap,x.extendFlat(U.paint,{"icon-opacity":d.opacity*d.marker.opacity,"icon-color":d.marker.color})),I)){var ie=(d.marker||{}).size,le=o(d.textposition,ie);x.extendFlat(U.layout,{"text-size":d.textfont.size,"text-anchor":le.anchor,"text-offset":le.offset,"text-font":S(d)}),x.extendFlat(U.paint,{"text-color":d.textfont.color,"text-opacity":d.opacity})}return X};function f(M){return{type:M,geojson:E.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function p(M){var _=M[0].trace,b=_.marker,d=_.selectedpoints,u=x.isArrayOrTypedArray(b.color),g=x.isArrayOrTypedArray(b.size),y=x.isArrayOrTypedArray(b.opacity),R;function I(ie){return _.opacity*ie}function z(ie){return ie/2}var F;u&&(e.hasColorscale(_,"marker")?F=e.makeColorScaleFuncFromTrace(b):F=x.identity);var B;g&&(B=r(_));var O;y&&(O=function(ie){var le=h(ie)?+x.constrain(ie,0,1):0;return I(le)});var P=[];for(R=0;R850?R+=" Black":u>750?R+=" Extra Bold":u>650?R+=" Bold":u>550?R+=" Semi Bold":u>450?R+=" Medium":u>350?R+=" Regular":u>250?R+=" Light":u>150?R+=" Extra Light":R+=" Thin"):g.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",u>750?R+=" Extrabold":u>650?R+=" Bold":u>550?R+=" Semibold":u>350?R+=" Regular":R+=" Light"):g.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",g[3]==="CJK"&&(R+=" CJK"),R+=u>500?" Bold":" Regular")),y&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),a(R)||(R=b);var I=R.split(", ");return I}}}),QR=He({"src/traces/scattermap/plot.js"(Y,H){var h=Qr(),x=JR(),A=cp().traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function e(r,i,a,o){this.type="scattermap",this.subplot=r,this.uid=i,this.clusterEnabled=a,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:A+i+"-fill",line:A+i+"-line",circle:A+i+"-circle",symbol:A+i+"-symbol",cluster:A+i+"-cluster",clusterCount:A+i+"-cluster-count"},this.below=null}var t=e.prototype;t.addSource=function(r,i,a){var o={type:"geojson",data:i.geojson};a&&a.enabled&&h.extendFlat(o,{cluster:!0,clusterMaxZoom:a.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[r]);n?n.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},t.setSourceData=function(r,i){this.subplot.map.getSource(this.sourceIds[r]).setData(i.geojson)},t.addLayer=function(r,i,a){var o={type:i.type,id:this.layerIds[r],source:this.sourceIds[r],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var n=this.layerIds[r],s,c=this.subplot.getMapLayers(),f=0;f=0;y--){var R=g[y];n.removeLayer(v.layerIds[R])}u||n.removeSource(v.sourceIds.circle)}function m(u){for(var g=E.nonCluster,y=0;y=0;y--){var R=g[y];n.removeLayer(v.layerIds[R]),u||n.removeSource(v.sourceIds[R])}}function S(u){p?l(u):w(u)}function M(u){f?T(u):m(u)}function _(){for(var u=f?E.cluster:E.nonCluster,g=0;g=0;o--){var n=a[o];i.removeLayer(this.layerIds[n]),i.removeSource(this.sourceIds[n])}},H.exports=function(i,a){var o=a[0].trace,n=o.cluster&&o.cluster.enabled,s=o.visible!==!0,c=new e(i,o.uid,n,s),f=x(i.gd,a),p=c.below=i.belowLookup["trace-"+o.uid],v,T,l;if(n)for(c.addSource("circle",f.circle,o.cluster),v=0;v=0?Math.floor((o+180)/360):Math.ceil((o-180)/360),M=S*360,_=o-M;function b(B){var O=B.lonlat;if(O[0]===e||m&&T.indexOf(B.i+1)===-1)return 1/0;var P=x.modHalf(O[0],360),N=O[1],U=v.project([P,N]),X=U.x-f.c2p([_,N]),te=U.y-p.c2p([P,n]),ue=Math.max(3,B.mrc||0);return Math.max(Math.sqrt(X*X+te*te)-ue,1-3/ue)}if(h.getClosest(s,b,a),a.index!==!1){var d=s[a.index],u=d.lonlat,g=[x.modHalf(u[0],360)+M,u[1]],y=f.c2p(g),R=p.c2p(g),I=d.mrc||1;a.x0=y-I,a.x1=y+I,a.y0=R-I,a.y1=R+I;var z={};z[c.subplot]={_subplot:v};var F=c._module.formatLabels(d,c,z);return a.lonLabel=F.lonLabel,a.latLabel=F.latLabel,a.color=A(c,d),a.extraText=i(c,d,s[0].t.labels),a.hovertemplate=c.hovertemplate,[a]}}function i(a,o,n){if(a.hovertemplate)return;var s=o.hi||a.hoverinfo,c=s.split("+"),f=c.indexOf("all")!==-1,p=c.indexOf("lon")!==-1,v=c.indexOf("lat")!==-1,T=o.lonlat,l=[];function m(w){return w+"°"}return f||p&&v?l.push("("+m(T[1])+", "+m(T[0])+")"):p?l.push(n.lon+m(T[0])):v&&l.push(n.lat+m(T[1])),(f||c.indexOf("text")!==-1)&&E(o,a,l),l.join("
")}H.exports={hoverPoints:r,getExtraText:i}}}),eD=He({"src/traces/scattermap/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x}}}),tD=He({"src/traces/scattermap/select.js"(Y,H){var h=Qr(),x=cu(),A=qo().BADNUM;H.exports=function(e,t){var r=e.cd,i=e.xaxis,a=e.yaxis,o=[],n=r[0].trace,s;if(!x.hasMarkers(n))return[];if(t===!1)for(s=0;s1)return 1;for(var K=W,ve=0;ve<8;ve++){var Ee=this.sampleCurveX(K)-W;if(Math.abs(Ee)Ee?qe=K:ut=K,K=.5*(ut-qe)+qe;return K},solve:function(W,D){return this.sampleCurveY(this.solveCurveX(W,D))}};var c=r(n);let f,p;function v(){return f==null&&(f=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),f}function T(){if(p==null&&(p=!1,v())){const D=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(D){for(let ve=0;ve<25;ve++){const Ee=4*ve;D.fillStyle=`rgb(${Ee},${Ee+1},${Ee+2})`,D.fillRect(ve%5,Math.floor(ve/5),1,1)}const K=D.getImageData(0,0,5,5).data;for(let ve=0;ve<100;ve++)if(ve%4!=3&&K[ve]!==ve){p=!0;break}}}return p||!1}function l(W,D,K,ve){const Ee=new c(W,D,K,ve);return Ne=>Ee.solve(Ne)}const m=l(.25,.1,.25,1);function w(W,D,K){return Math.min(K,Math.max(D,W))}function S(W,D,K){const ve=K-D,Ee=((W-D)%ve+ve)%ve+D;return Ee===D?K:Ee}function M(W,...D){for(const K of D)for(const ve in K)W[ve]=K[ve];return W}let _=1;function b(W,D,K){const ve={};for(const Ee in W)ve[Ee]=D.call(this,W[Ee],Ee,W);return ve}function d(W,D,K){const ve={};for(const Ee in W)D.call(this,W[Ee],Ee,W)&&(ve[Ee]=W[Ee]);return ve}function u(W){return Array.isArray(W)?W.map(u):typeof W=="object"&&W?b(W,u):W}const g={};function y(W){g[W]||(typeof console<"u"&&console.warn(W),g[W]=!0)}function R(W,D,K){return(K.y-W.y)*(D.x-W.x)>(D.y-W.y)*(K.x-W.x)}function I(W){return typeof WorkerGlobalScope<"u"&&W!==void 0&&W instanceof WorkerGlobalScope}let z=null;function F(W){return typeof ImageBitmap<"u"&&W instanceof ImageBitmap}const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function O(W,D,K,ve,Ee){return t(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const Ne=new VideoFrame(W,{timestamp:0});try{const qe=Ne?.format;if(!qe||!qe.startsWith("BGR")&&!qe.startsWith("RGB"))throw new Error(`Unrecognized format ${qe}`);const ut=qe.startsWith("BGR"),wt=new Uint8ClampedArray(ve*Ee*4);if(yield Ne.copyTo(wt,function(Ot,ar,lr,Sr,Fr){const Yr=4*Math.max(-ar,0),sa=(Math.max(0,lr)-lr)*Sr*4+Yr,_a=4*Sr,Wa=Math.max(0,ar),zn=Math.max(0,lr);return{rect:{x:Wa,y:zn,width:Math.min(Ot.width,ar+Sr)-Wa,height:Math.min(Ot.height,lr+Fr)-zn},layout:[{offset:sa,stride:_a}]}}(W,D,K,ve,Ee)),ut)for(let Ot=0;OtI(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,J=function(W,D){if(/:\/\//.test(W.url)&&!/^https?:|^file:/.test(W.url)){const ve=ue(W.url);if(ve)return ve(W,D);if(I(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:W,targetMapId:ie},D)}if(!(/^file:/.test(K=W.url)||/^file:/.test(q())&&!/^\w+:/.test(K))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(ve,Ee){return t(this,void 0,void 0,function*(){const Ne=new Request(ve.url,{method:ve.method||"GET",body:ve.body,credentials:ve.credentials,headers:ve.headers,cache:ve.cache,referrer:q(),signal:Ee.signal});ve.type!=="json"||Ne.headers.has("Accept")||Ne.headers.set("Accept","application/json");const qe=yield fetch(Ne);if(!qe.ok){const Ot=yield qe.blob();throw new le(qe.status,qe.statusText,ve.url,Ot)}let ut;ut=ve.type==="arrayBuffer"||ve.type==="image"?qe.arrayBuffer():ve.type==="json"?qe.json():qe.text();const wt=yield ut;if(Ee.signal.aborted)throw X();return{data:wt,cacheControl:qe.headers.get("Cache-Control"),expires:qe.headers.get("Expires")}})}(W,D);if(I(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:W,mustQueue:!0,targetMapId:ie},D)}var K;return function(ve,Ee){return new Promise((Ne,qe)=>{var ut;const wt=new XMLHttpRequest;wt.open(ve.method||"GET",ve.url,!0),ve.type!=="arrayBuffer"&&ve.type!=="image"||(wt.responseType="arraybuffer");for(const Ot in ve.headers)wt.setRequestHeader(Ot,ve.headers[Ot]);ve.type==="json"&&(wt.responseType="text",!((ut=ve.headers)===null||ut===void 0)&&ut.Accept||wt.setRequestHeader("Accept","application/json")),wt.withCredentials=ve.credentials==="include",wt.onerror=()=>{qe(new Error(wt.statusText))},wt.onload=()=>{if(!Ee.signal.aborted)if((wt.status>=200&&wt.status<300||wt.status===0)&&wt.response!==null){let Ot=wt.response;if(ve.type==="json")try{Ot=JSON.parse(wt.response)}catch(ar){return void qe(ar)}Ne({data:Ot,cacheControl:wt.getResponseHeader("Cache-Control"),expires:wt.getResponseHeader("Expires")})}else{const Ot=new Blob([wt.response],{type:wt.getResponseHeader("Content-Type")});qe(new le(wt.status,wt.statusText,ve.url,Ot))}},Ee.signal.addEventListener("abort",()=>{wt.abort(),qe(X())}),wt.send(ve.body)})}(W,D)};function ee(W){if(!W||W.indexOf("://")<=0||W.indexOf("data:image/")===0||W.indexOf("blob:")===0)return!0;const D=new URL(W),K=window.location;return D.protocol===K.protocol&&D.host===K.host}function Z(W,D,K){K[W]&&K[W].indexOf(D)!==-1||(K[W]=K[W]||[],K[W].push(D))}function se(W,D,K){if(K&&K[W]){const ve=K[W].indexOf(D);ve!==-1&&K[W].splice(ve,1)}}class Q{constructor(D,K={}){M(this,K),this.type=D}}class V extends Q{constructor(D,K={}){super("error",M({error:D},K))}}class re{on(D,K){return this._listeners=this._listeners||{},Z(D,K,this._listeners),this}off(D,K){return se(D,K,this._listeners),se(D,K,this._oneTimeListeners),this}once(D,K){return K?(this._oneTimeListeners=this._oneTimeListeners||{},Z(D,K,this._oneTimeListeners),this):new Promise(ve=>this.once(D,ve))}fire(D,K){typeof D=="string"&&(D=new Q(D,K||{}));const ve=D.type;if(this.listens(ve)){D.target=this;const Ee=this._listeners&&this._listeners[ve]?this._listeners[ve].slice():[];for(const ut of Ee)ut.call(this,D);const Ne=this._oneTimeListeners&&this._oneTimeListeners[ve]?this._oneTimeListeners[ve].slice():[];for(const ut of Ne)se(ve,ut,this._oneTimeListeners),ut.call(this,D);const qe=this._eventedParent;qe&&(M(D,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),qe.fire(D))}else D instanceof V&&console.error(D.error);return this}listens(D){return this._listeners&&this._listeners[D]&&this._listeners[D].length>0||this._oneTimeListeners&&this._oneTimeListeners[D]&&this._oneTimeListeners[D].length>0||this._eventedParent&&this._eventedParent.listens(D)}setEventedParent(D,K){return this._eventedParent=D,this._eventedParentData=K,this}}var ae={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const fe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function xe(W,D){const K={};for(const ve in W)ve!=="ref"&&(K[ve]=W[ve]);return fe.forEach(ve=>{ve in D&&(K[ve]=D[ve])}),K}function Ae(W,D){if(Array.isArray(W)){if(!Array.isArray(D)||W.length!==D.length)return!1;for(let K=0;K`:W.itemType.kind==="value"?"array":`array<${D}>`}return W.kind}const Oe=[nt,Ke,Et,kt,Ut,Rr,Yt,Fe(vr),dr,wr,yt];function de(W,D){if(D.kind==="error")return null;if(W.kind==="array"){if(D.kind==="array"&&(D.N===0&&D.itemType.kind==="value"||!de(W.itemType,D.itemType))&&(typeof W.N!="number"||W.N===D.N))return null}else{if(W.kind===D.kind)return null;if(W.kind==="value"){for(const K of Oe)if(!de(K,D))return null}}return`Expected ${We(W)} but found ${We(D)} instead.`}function me(W,D){return D.some(K=>K.kind===W.kind)}function be(W,D){return D.some(K=>K==="null"?W===null:K==="array"?Array.isArray(W):K==="object"?W&&!Array.isArray(W)&&typeof W=="object":K===typeof W)}function Ie(W,D){return W.kind==="array"&&D.kind==="array"?W.itemType.kind===D.itemType.kind&&typeof W.N=="number":W.kind===D.kind}const Xe=.96422,ht=.82521,bt=4/29,Ct=6/29,Zt=3*Ct*Ct,Wt=Ct*Ct*Ct,rr=Math.PI/180,Jt=180/Math.PI;function mr(W){return(W%=360)<0&&(W+=360),W}function ia([W,D,K,ve]){let Ee,Ne;const qe=La((.2225045*(W=Ia(W))+.7168786*(D=Ia(D))+.0606169*(K=Ia(K)))/1);W===D&&D===K?Ee=Ne=qe:(Ee=La((.4360747*W+.3850649*D+.1430804*K)/Xe),Ne=La((.0139322*W+.0971045*D+.7141733*K)/ht));const ut=116*qe-16;return[ut<0?0:ut,500*(Ee-qe),200*(qe-Ne),ve]}function Ia(W){return W<=.04045?W/12.92:Math.pow((W+.055)/1.055,2.4)}function La(W){return W>Wt?Math.pow(W,1/3):W/Zt+bt}function Aa([W,D,K,ve]){let Ee=(W+16)/116,Ne=isNaN(D)?Ee:Ee+D/500,qe=isNaN(K)?Ee:Ee-K/200;return Ee=1*ba(Ee),Ne=Xe*ba(Ne),qe=ht*ba(qe),[Ga(3.1338561*Ne-1.6168667*Ee-.4906146*qe),Ga(-.9787684*Ne+1.9161415*Ee+.033454*qe),Ga(.0719453*Ne-.2289914*Ee+1.4052427*qe),ve]}function Ga(W){return(W=W<=.00304?12.92*W:1.055*Math.pow(W,1/2.4)-.055)<0?0:W>1?1:W}function ba(W){return W>Ct?W*W*W:Zt*(W-bt)}function Xa(W){return parseInt(W.padEnd(2,W),16)/255}function yn(W,D){return Kt(D?W/100:W,0,1)}function Kt(W,D,K){return Math.min(Math.max(D,W),K)}function zt(W){return!W.some(Number.isNaN)}const $t={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]};class Ht{constructor(D,K,ve,Ee=1,Ne=!0){this.r=D,this.g=K,this.b=ve,this.a=Ee,Ne||(this.r*=Ee,this.g*=Ee,this.b*=Ee,Ee||this.overwriteGetter("rgb",[D,K,ve,Ee]))}static parse(D){if(D instanceof Ht)return D;if(typeof D!="string")return;const K=function(ve){if((ve=ve.toLowerCase().trim())==="transparent")return[0,0,0,0];const Ee=$t[ve];if(Ee){const[qe,ut,wt]=Ee;return[qe/255,ut/255,wt/255,1]}if(ve.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(ve)){const qe=ve.length<6?1:2;let ut=1;return[Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+qe)||"ff")]}if(ve.startsWith("rgb")){const qe=ve.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(qe){const[ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn]=qe,vn=[ar||" ",Fr||" ",_a].join("");if(vn===" "||vn===" /"||vn===",,"||vn===",,,"){const Cn=[Ot,Sr,sa].join(""),$n=Cn==="%%%"?100:Cn===""?255:0;if($n){const gi=[Kt(+wt/$n,0,1),Kt(+lr/$n,0,1),Kt(+Yr/$n,0,1),Wa?yn(+Wa,zn):1];if(zt(gi))return gi}}return}}const Ne=ve.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(Ne){const[qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr]=Ne,sa=[wt||" ",ar||" ",Sr].join("");if(sa===" "||sa===" /"||sa===",,"||sa===",,,"){const _a=[+ut,Kt(+Ot,0,100),Kt(+lr,0,100),Fr?yn(+Fr,Yr):1];if(zt(_a))return function([Wa,zn,vn,Cn]){function $n(gi){const Ji=(gi+Wa/30)%12,as=zn*Math.min(vn,1-vn);return vn-as*Math.max(-1,Math.min(Ji-3,9-Ji,1))}return Wa=mr(Wa),zn/=100,vn/=100,[$n(0),$n(8),$n(4),Cn]}(_a)}}}(D);return K?new Ht(...K,!1):void 0}get rgb(){const{r:D,g:K,b:ve,a:Ee}=this,Ne=Ee||1/0;return this.overwriteGetter("rgb",[D/Ne,K/Ne,ve/Ne,Ee])}get hcl(){return this.overwriteGetter("hcl",function(D){const[K,ve,Ee,Ne]=ia(D),qe=Math.sqrt(ve*ve+Ee*Ee);return[Math.round(1e4*qe)?mr(Math.atan2(Ee,ve)*Jt):NaN,qe,K,Ne]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ia(this.rgb))}overwriteGetter(D,K){return Object.defineProperty(this,D,{value:K}),K}toString(){const[D,K,ve,Ee]=this.rgb;return`rgba(${[D,K,ve].map(Ne=>Math.round(255*Ne)).join(",")},${Ee})`}}Ht.black=new Ht(0,0,0,1),Ht.white=new Ht(1,1,1,1),Ht.transparent=new Ht(0,0,0,0),Ht.red=new Ht(1,0,0,1);class Tr{constructor(D,K,ve){this.sensitivity=D?K?"variant":"case":K?"accent":"base",this.locale=ve,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(D,K){return this.collator.compare(D,K)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class qr{constructor(D,K,ve,Ee,Ne){this.text=D,this.image=K,this.scale=ve,this.fontStack=Ee,this.textColor=Ne}}class ha{constructor(D){this.sections=D}static fromString(D){return new ha([new qr(D,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(D=>D.text.length!==0||D.image&&D.image.name.length!==0)}static factory(D){return D instanceof ha?D:ha.fromString(D)}toString(){return this.sections.length===0?"":this.sections.map(D=>D.text).join("")}}class Gr{constructor(D){this.values=D.slice()}static parse(D){if(D instanceof Gr)return D;if(typeof D=="number")return new Gr([D,D,D,D]);if(Array.isArray(D)&&!(D.length<1||D.length>4)){for(const K of D)if(typeof K!="number")return;switch(D.length){case 1:D=[D[0],D[0],D[0],D[0]];break;case 2:D=[D[0],D[1],D[0],D[1]];break;case 3:D=[D[0],D[1],D[2],D[1]]}return new Gr(D)}}toString(){return JSON.stringify(this.values)}}const wa=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Da{constructor(D){this.values=D.slice()}static parse(D){if(D instanceof Da)return D;if(Array.isArray(D)&&!(D.length<1)&&D.length%2==0){for(let K=0;K=0&&W<=255&&typeof D=="number"&&D>=0&&D<=255&&typeof K=="number"&&K>=0&&K<=255?ve===void 0||typeof ve=="number"&&ve>=0&&ve<=1?null:`Invalid rgba value [${[W,D,K,ve].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof ve=="number"?[W,D,K,ve]:[W,D,K]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function an(W){if(W===null||typeof W=="string"||typeof W=="boolean"||typeof W=="number"||W instanceof Ht||W instanceof Tr||W instanceof ha||W instanceof Gr||W instanceof Da||W instanceof Ya)return!0;if(Array.isArray(W)){for(const D of W)if(!an(D))return!1;return!0}if(typeof W=="object"){for(const D in W)if(!an(W[D]))return!1;return!0}return!1}function mt(W){if(W===null)return nt;if(typeof W=="string")return Et;if(typeof W=="boolean")return kt;if(typeof W=="number")return Ke;if(W instanceof Ht)return Ut;if(W instanceof Tr)return hr;if(W instanceof ha)return Rr;if(W instanceof Gr)return dr;if(W instanceof Da)return yt;if(W instanceof Ya)return wr;if(Array.isArray(W)){const D=W.length;let K;for(const ve of W){const Ee=mt(ve);if(K){if(K===Ee)continue;K=vr;break}K=Ee}return Fe(K||vr,D)}return Yt}function ot(W){const D=typeof W;return W===null?"":D==="string"||D==="number"||D==="boolean"?String(W):W instanceof Ht||W instanceof ha||W instanceof Gr||W instanceof Da||W instanceof Ya?W.toString():JSON.stringify(W)}class Lr{constructor(D,K){this.type=D,this.value=K}static parse(D,K){if(D.length!==2)return K.error(`'literal' expression requires exactly one argument, but found ${D.length-1} instead.`);if(!an(D[1]))return K.error("invalid value");const ve=D[1];let Ee=mt(ve);const Ne=K.expectedType;return Ee.kind!=="array"||Ee.N!==0||!Ne||Ne.kind!=="array"||typeof Ne.N=="number"&&Ne.N!==0||(Ee=Ne),new Lr(Ee,ve)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Er{constructor(D){this.name="ExpressionEvaluationError",this.message=D}toJSON(){return this.message}}const Mr={string:Et,number:Ke,boolean:kt,object:Yt};class br{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");let ve,Ee=1;const Ne=D[0];if(Ne==="array"){let ut,wt;if(D.length>2){const Ot=D[1];if(typeof Ot!="string"||!(Ot in Mr)||Ot==="object")return K.error('The item type argument of "array" must be one of string, number, boolean',1);ut=Mr[Ot],Ee++}else ut=vr;if(D.length>3){if(D[2]!==null&&(typeof D[2]!="number"||D[2]<0||D[2]!==Math.floor(D[2])))return K.error('The length argument to "array" must be a positive integer literal',2);wt=D[2],Ee++}ve=Fe(ut,wt)}else{if(!Mr[Ne])throw new Error(`Types doesn't contain name = ${Ne}`);ve=Mr[Ne]}const qe=[];for(;EeD.outputDefined())}}const Or={"to-boolean":kt,"to-color":Ut,"to-number":Ke,"to-string":Et};class jr{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");const ve=D[0];if(!Or[ve])throw new Error(`Can't parse ${ve} as it is not part of the known types`);if((ve==="to-boolean"||ve==="to-string")&&D.length!==2)return K.error("Expected one argument.");const Ee=Or[ve],Ne=[];for(let qe=1;qe4?`Invalid rbga value ${JSON.stringify(K)}: expected an array containing either three or four numeric values.`:Ka(K[0],K[1],K[2],K[3]),!ve))return new Ht(K[0]/255,K[1]/255,K[2]/255,K[3])}throw new Er(ve||`Could not parse color from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"padding":{let K;for(const ve of this.args){K=ve.evaluate(D);const Ee=Gr.parse(K);if(Ee)return Ee}throw new Er(`Could not parse padding from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"variableAnchorOffsetCollection":{let K;for(const ve of this.args){K=ve.evaluate(D);const Ee=Da.parse(K);if(Ee)return Ee}throw new Er(`Could not parse variableAnchorOffsetCollection from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"number":{let K=null;for(const ve of this.args){if(K=ve.evaluate(D),K===null)return 0;const Ee=Number(K);if(!isNaN(Ee))return Ee}throw new Er(`Could not convert ${JSON.stringify(K)} to number.`)}case"formatted":return ha.fromString(ot(this.args[0].evaluate(D)));case"resolvedImage":return Ya.fromString(ot(this.args[0].evaluate(D)));default:return ot(this.args[0].evaluate(D))}}eachChild(D){this.args.forEach(D)}outputDefined(){return this.args.every(D=>D.outputDefined())}}const Dr=["Unknown","Point","LineString","Polygon"];class Hr{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Dr[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(D){let K=this._parseColorCache[D];return K||(K=this._parseColorCache[D]=Ht.parse(D)),K}}class na{constructor(D,K,ve=[],Ee,Ne=new et,qe=[]){this.registry=D,this.path=ve,this.key=ve.map(ut=>`[${ut}]`).join(""),this.scope=Ne,this.errors=qe,this.expectedType=Ee,this._isConstant=K}parse(D,K,ve,Ee,Ne={}){return K?this.concat(K,ve,Ee)._parse(D,Ne):this._parse(D,Ne)}_parse(D,K){function ve(Ee,Ne,qe){return qe==="assert"?new br(Ne,[Ee]):qe==="coerce"?new jr(Ne,[Ee]):Ee}if(D!==null&&typeof D!="string"&&typeof D!="boolean"&&typeof D!="number"||(D=["literal",D]),Array.isArray(D)){if(D.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const Ee=D[0];if(typeof Ee!="string")return this.error(`Expression name must be a string, but found ${typeof Ee} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const Ne=this.registry[Ee];if(Ne){let qe=Ne.parse(D,this);if(!qe)return null;if(this.expectedType){const ut=this.expectedType,wt=qe.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||wt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||wt.kind!=="value"&&wt.kind!=="string")if(ut.kind!=="padding"||wt.kind!=="value"&&wt.kind!=="number"&&wt.kind!=="array")if(ut.kind!=="variableAnchorOffsetCollection"||wt.kind!=="value"&&wt.kind!=="array"){if(this.checkSubtype(ut,wt))return null}else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"assert")}if(!(qe instanceof Lr)&&qe.type.kind!=="resolvedImage"&&this._isConstant(qe)){const ut=new Hr;try{qe=new Lr(qe.type,qe.evaluate(ut))}catch(wt){return this.error(wt.message),null}}return qe}return this.error(`Unknown expression "${Ee}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(D===void 0?"'undefined' value invalid. Use null instead.":typeof D=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof D} instead.`)}concat(D,K,ve){const Ee=typeof D=="number"?this.path.concat(D):this.path,Ne=ve?this.scope.concat(ve):this.scope;return new na(this.registry,this._isConstant,Ee,K||null,Ne,this.errors)}error(D,...K){const ve=`${this.key}${K.map(Ee=>`[${Ee}]`).join("")}`;this.errors.push(new De(ve,D))}checkSubtype(D,K){const ve=de(D,K);return ve&&this.error(ve),ve}}class ta{constructor(D,K){this.type=K.type,this.bindings=[].concat(D),this.result=K}evaluate(D){return this.result.evaluate(D)}eachChild(D){for(const K of this.bindings)D(K[1]);D(this.result)}static parse(D,K){if(D.length<4)return K.error(`Expected at least 3 arguments, but found ${D.length-1} instead.`);const ve=[];for(let Ne=1;Ne=ve.length)throw new Er(`Array index out of bounds: ${K} > ${ve.length-1}.`);if(K!==Math.floor(K))throw new Er(`Array index must be an integer, but found ${K} instead.`);return ve[K]}eachChild(D){D(this.index),D(this.input)}outputDefined(){return!1}}class Ar{constructor(D,K){this.type=kt,this.needle=D,this.haystack=K}static parse(D,K){if(D.length!==3)return K.error(`Expected 2 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,vr);return ve&&Ee?me(ve.type,[kt,Et,Ke,nt,vr])?new Ar(ve,Ee):K.error(`Expected first argument to be of type boolean, string, number or null, but found ${We(ve.type)} instead`):null}evaluate(D){const K=this.needle.evaluate(D),ve=this.haystack.evaluate(D);if(!ve)return!1;if(!be(K,["boolean","string","number","null"]))throw new Er(`Expected first argument to be of type boolean, string, number or null, but found ${We(mt(K))} instead.`);if(!be(ve,["string","array"]))throw new Er(`Expected second argument to be of type array or string, but found ${We(mt(ve))} instead.`);return ve.indexOf(K)>=0}eachChild(D){D(this.needle),D(this.haystack)}outputDefined(){return!0}}class oa{constructor(D,K,ve){this.type=Ke,this.needle=D,this.haystack=K,this.fromIndex=ve}static parse(D,K){if(D.length<=2||D.length>=5)return K.error(`Expected 3 or 4 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,vr);if(!ve||!Ee)return null;if(!me(ve.type,[kt,Et,Ke,nt,vr]))return K.error(`Expected first argument to be of type boolean, string, number or null, but found ${We(ve.type)} instead`);if(D.length===4){const Ne=K.parse(D[3],3,Ke);return Ne?new oa(ve,Ee,Ne):null}return new oa(ve,Ee)}evaluate(D){const K=this.needle.evaluate(D),ve=this.haystack.evaluate(D);if(!be(K,["boolean","string","number","null"]))throw new Er(`Expected first argument to be of type boolean, string, number or null, but found ${We(mt(K))} instead.`);let Ee;if(this.fromIndex&&(Ee=this.fromIndex.evaluate(D)),be(ve,["string"])){const Ne=ve.indexOf(K,Ee);return Ne===-1?-1:[...ve.slice(0,Ne)].length}if(be(ve,["array"]))return ve.indexOf(K,Ee);throw new Er(`Expected second argument to be of type array or string, but found ${We(mt(ve))} instead.`)}eachChild(D){D(this.needle),D(this.haystack),this.fromIndex&&D(this.fromIndex)}outputDefined(){return!1}}class ga{constructor(D,K,ve,Ee,Ne,qe){this.inputType=D,this.type=K,this.input=ve,this.cases=Ee,this.outputs=Ne,this.otherwise=qe}static parse(D,K){if(D.length<5)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if(D.length%2!=1)return K.error("Expected an even number of arguments.");let ve,Ee;K.expectedType&&K.expectedType.kind!=="value"&&(Ee=K.expectedType);const Ne={},qe=[];for(let Ot=2;OtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Yr=="number"&&Math.floor(Yr)!==Yr)return Sr.error("Numeric branch labels must be integer values.");if(ve){if(Sr.checkSubtype(ve,mt(Yr)))return null}else ve=mt(Yr);if(Ne[String(Yr)]!==void 0)return Sr.error("Branch labels must be unique.");Ne[String(Yr)]=qe.length}const Fr=K.parse(lr,Ot,Ee);if(!Fr)return null;Ee=Ee||Fr.type,qe.push(Fr)}const ut=K.parse(D[1],1,vr);if(!ut)return null;const wt=K.parse(D[D.length-1],D.length-1,Ee);return wt?ut.type.kind!=="value"&&K.concat(1).checkSubtype(ve,ut.type)?null:new ga(ve,Ee,ut,Ne,qe,wt):null}evaluate(D){const K=this.input.evaluate(D);return(mt(K)===this.inputType&&this.outputs[this.cases[K]]||this.otherwise).evaluate(D)}eachChild(D){D(this.input),this.outputs.forEach(D),D(this.otherwise)}outputDefined(){return this.outputs.every(D=>D.outputDefined())&&this.otherwise.outputDefined()}}class Sa{constructor(D,K,ve){this.type=D,this.branches=K,this.otherwise=ve}static parse(D,K){if(D.length<4)return K.error(`Expected at least 3 arguments, but found only ${D.length-1}.`);if(D.length%2!=0)return K.error("Expected an odd number of arguments.");let ve;K.expectedType&&K.expectedType.kind!=="value"&&(ve=K.expectedType);const Ee=[];for(let qe=1;qeK.outputDefined())&&this.otherwise.outputDefined()}}class za{constructor(D,K,ve,Ee){this.type=D,this.input=K,this.beginIndex=ve,this.endIndex=Ee}static parse(D,K){if(D.length<=2||D.length>=5)return K.error(`Expected 3 or 4 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,Ke);if(!ve||!Ee)return null;if(!me(ve.type,[Fe(vr),Et,vr]))return K.error(`Expected first argument to be of type array or string, but found ${We(ve.type)} instead`);if(D.length===4){const Ne=K.parse(D[3],3,Ke);return Ne?new za(ve.type,ve,Ee,Ne):null}return new za(ve.type,ve,Ee)}evaluate(D){const K=this.input.evaluate(D),ve=this.beginIndex.evaluate(D);let Ee;if(this.endIndex&&(Ee=this.endIndex.evaluate(D)),be(K,["string"]))return[...K].slice(ve,Ee).join("");if(be(K,["array"]))return K.slice(ve,Ee);throw new Er(`Expected first argument to be of type array or string, but found ${We(mt(K))} instead.`)}eachChild(D){D(this.input),D(this.beginIndex),this.endIndex&&D(this.endIndex)}outputDefined(){return!1}}function ra(W,D){const K=W.length-1;let ve,Ee,Ne=0,qe=K,ut=0;for(;Ne<=qe;)if(ut=Math.floor((Ne+qe)/2),ve=W[ut],Ee=W[ut+1],ve<=D){if(ut===K||DD))throw new Er("Input is not a number.");qe=ut-1}return 0}class Ta{constructor(D,K,ve){this.type=D,this.input=K,this.labels=[],this.outputs=[];for(const[Ee,Ne]of ve)this.labels.push(Ee),this.outputs.push(Ne)}static parse(D,K){if(D.length-1<4)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if((D.length-1)%2!=0)return K.error("Expected an even number of arguments.");const ve=K.parse(D[1],1,Ke);if(!ve)return null;const Ee=[];let Ne=null;K.expectedType&&K.expectedType.kind!=="value"&&(Ne=K.expectedType);for(let qe=1;qe=ut)return K.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Ot);const lr=K.parse(wt,ar,Ne);if(!lr)return null;Ne=Ne||lr.type,Ee.push([ut,lr])}return new Ta(Ne,ve,Ee)}evaluate(D){const K=this.labels,ve=this.outputs;if(K.length===1)return ve[0].evaluate(D);const Ee=this.input.evaluate(D);if(Ee<=K[0])return ve[0].evaluate(D);const Ne=K.length;return Ee>=K[Ne-1]?ve[Ne-1].evaluate(D):ve[ra(K,Ee)].evaluate(D)}eachChild(D){D(this.input);for(const K of this.outputs)D(K)}outputDefined(){return this.outputs.every(D=>D.outputDefined())}}function Fn(W){return W&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W}var mn=Kn;function Kn(W,D,K,ve){this.cx=3*W,this.bx=3*(K-W)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*D,this.by=3*(ve-D)-this.cy,this.ay=1-this.cy-this.by,this.p1x=W,this.p1y=D,this.p2x=K,this.p2y=ve}Kn.prototype={sampleCurveX:function(W){return((this.ax*W+this.bx)*W+this.cx)*W},sampleCurveY:function(W){return((this.ay*W+this.by)*W+this.cy)*W},sampleCurveDerivativeX:function(W){return(3*this.ax*W+2*this.bx)*W+this.cx},solveCurveX:function(W,D){if(D===void 0&&(D=1e-6),W<0)return 0;if(W>1)return 1;for(var K=W,ve=0;ve<8;ve++){var Ee=this.sampleCurveX(K)-W;if(Math.abs(Ee)Ee?qe=K:ut=K,K=.5*(ut-qe)+qe;return K},solve:function(W,D){return this.sampleCurveY(this.solveCurveX(W,D))}};var ui=Fn(mn);function pi(W,D,K){return W+K*(D-W)}function vi(W,D,K){return W.map((ve,Ee)=>pi(ve,D[Ee],K))}const Li={number:pi,color:function(W,D,K,ve="rgb"){switch(ve){case"rgb":{const[Ee,Ne,qe,ut]=vi(W.rgb,D.rgb,K);return new Ht(Ee,Ne,qe,ut,!1)}case"hcl":{const[Ee,Ne,qe,ut]=W.hcl,[wt,Ot,ar,lr]=D.hcl;let Sr,Fr;if(isNaN(Ee)||isNaN(wt))isNaN(Ee)?isNaN(wt)?Sr=NaN:(Sr=wt,qe!==1&&qe!==0||(Fr=Ot)):(Sr=Ee,ar!==1&&ar!==0||(Fr=Ne));else{let zn=wt-Ee;wt>Ee&&zn>180?zn-=360:wt180&&(zn+=360),Sr=Ee+K*zn}const[Yr,sa,_a,Wa]=function([zn,vn,Cn,$n]){return zn=isNaN(zn)?0:zn*rr,Aa([Cn,Math.cos(zn)*vn,Math.sin(zn)*vn,$n])}([Sr,Fr??pi(Ne,Ot,K),pi(qe,ar,K),pi(ut,lr,K)]);return new Ht(Yr,sa,_a,Wa,!1)}case"lab":{const[Ee,Ne,qe,ut]=Aa(vi(W.lab,D.lab,K));return new Ht(Ee,Ne,qe,ut,!1)}}},array:vi,padding:function(W,D,K){return new Gr(vi(W.values,D.values,K))},variableAnchorOffsetCollection:function(W,D,K){const ve=W.values,Ee=D.values;if(ve.length!==Ee.length)throw new Er(`Cannot interpolate values of different length. from: ${W.toString()}, to: ${D.toString()}`);const Ne=[];for(let qe=0;qetypeof ar!="number"||ar<0||ar>1))return K.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ee={name:"cubic-bezier",controlPoints:Ot}}}if(D.length-1<4)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if((D.length-1)%2!=0)return K.error("Expected an even number of arguments.");if(Ne=K.parse(Ne,2,Ke),!Ne)return null;const ut=[];let wt=null;ve==="interpolate-hcl"||ve==="interpolate-lab"?wt=Ut:K.expectedType&&K.expectedType.kind!=="value"&&(wt=K.expectedType);for(let Ot=0;Ot=ar)return K.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);const Yr=K.parse(lr,Fr,wt);if(!Yr)return null;wt=wt||Yr.type,ut.push([ar,Yr])}return Ie(wt,Ke)||Ie(wt,Ut)||Ie(wt,dr)||Ie(wt,yt)||Ie(wt,Fe(Ke))?new Ni(wt,ve,Ee,Ne,ut):K.error(`Type ${We(wt)} is not interpolatable.`)}evaluate(D){const K=this.labels,ve=this.outputs;if(K.length===1)return ve[0].evaluate(D);const Ee=this.input.evaluate(D);if(Ee<=K[0])return ve[0].evaluate(D);const Ne=K.length;if(Ee>=K[Ne-1])return ve[Ne-1].evaluate(D);const qe=ra(K,Ee),ut=Ni.interpolationFactor(this.interpolation,Ee,K[qe],K[qe+1]),wt=ve[qe].evaluate(D),Ot=ve[qe+1].evaluate(D);switch(this.operator){case"interpolate":return Li[this.type.kind](wt,Ot,ut);case"interpolate-hcl":return Li.color(wt,Ot,ut,"hcl");case"interpolate-lab":return Li.color(wt,Ot,ut,"lab")}}eachChild(D){D(this.input);for(const K of this.outputs)D(K)}outputDefined(){return this.outputs.every(D=>D.outputDefined())}}function ci(W,D,K,ve){const Ee=ve-K,Ne=W-K;return Ee===0?0:D===1?Ne/Ee:(Math.pow(D,Ne)-1)/(Math.pow(D,Ee)-1)}class bi{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expectected at least one argument.");let ve=null;const Ee=K.expectedType;Ee&&Ee.kind!=="value"&&(ve=Ee);const Ne=[];for(const ut of D.slice(1)){const wt=K.parse(ut,1+Ne.length,ve,void 0,{typeAnnotation:"omit"});if(!wt)return null;ve=ve||wt.type,Ne.push(wt)}if(!ve)throw new Error("No output type");const qe=Ee&&Ne.some(ut=>de(Ee,ut.type));return new bi(qe?vr:ve,Ne)}evaluate(D){let K,ve=null,Ee=0;for(const Ne of this.args)if(Ee++,ve=Ne.evaluate(D),ve&&ve instanceof Ya&&!ve.available&&(K||(K=ve.name),ve=null,Ee===this.args.length&&(ve=K)),ve!==null)break;return ve}eachChild(D){this.args.forEach(D)}outputDefined(){return this.args.every(D=>D.outputDefined())}}function ho(W,D){return W==="=="||W==="!="?D.kind==="boolean"||D.kind==="string"||D.kind==="number"||D.kind==="null"||D.kind==="value":D.kind==="string"||D.kind==="number"||D.kind==="value"}function Bo(W,D,K,ve){return ve.compare(D,K)===0}function gs(W,D,K){const ve=W!=="=="&&W!=="!=";return class lS{constructor(Ne,qe,ut){this.type=kt,this.lhs=Ne,this.rhs=qe,this.collator=ut,this.hasUntypedArgument=Ne.type.kind==="value"||qe.type.kind==="value"}static parse(Ne,qe){if(Ne.length!==3&&Ne.length!==4)return qe.error("Expected two or three arguments.");const ut=Ne[0];let wt=qe.parse(Ne[1],1,vr);if(!wt)return null;if(!ho(ut,wt.type))return qe.concat(1).error(`"${ut}" comparisons are not supported for type '${We(wt.type)}'.`);let Ot=qe.parse(Ne[2],2,vr);if(!Ot)return null;if(!ho(ut,Ot.type))return qe.concat(2).error(`"${ut}" comparisons are not supported for type '${We(Ot.type)}'.`);if(wt.type.kind!==Ot.type.kind&&wt.type.kind!=="value"&&Ot.type.kind!=="value")return qe.error(`Cannot compare types '${We(wt.type)}' and '${We(Ot.type)}'.`);ve&&(wt.type.kind==="value"&&Ot.type.kind!=="value"?wt=new br(Ot.type,[wt]):wt.type.kind!=="value"&&Ot.type.kind==="value"&&(Ot=new br(wt.type,[Ot])));let ar=null;if(Ne.length===4){if(wt.type.kind!=="string"&&Ot.type.kind!=="string"&&wt.type.kind!=="value"&&Ot.type.kind!=="value")return qe.error("Cannot use collator to compare non-string types.");if(ar=qe.parse(Ne[3],3,hr),!ar)return null}return new lS(wt,Ot,ar)}evaluate(Ne){const qe=this.lhs.evaluate(Ne),ut=this.rhs.evaluate(Ne);if(ve&&this.hasUntypedArgument){const wt=mt(qe),Ot=mt(ut);if(wt.kind!==Ot.kind||wt.kind!=="string"&&wt.kind!=="number")throw new Er(`Expected arguments for "${W}" to be (string, string) or (number, number), but found (${wt.kind}, ${Ot.kind}) instead.`)}if(this.collator&&!ve&&this.hasUntypedArgument){const wt=mt(qe),Ot=mt(ut);if(wt.kind!=="string"||Ot.kind!=="string")return D(Ne,qe,ut)}return this.collator?K(Ne,qe,ut,this.collator.evaluate(Ne)):D(Ne,qe,ut)}eachChild(Ne){Ne(this.lhs),Ne(this.rhs),this.collator&&Ne(this.collator)}outputDefined(){return!0}}}const ro=gs("==",function(W,D,K){return D===K},Bo),Ei=gs("!=",function(W,D,K){return D!==K},function(W,D,K,ve){return!Bo(0,D,K,ve)}),Ri=gs("<",function(W,D,K){return D",function(W,D,K){return D>K},function(W,D,K,ve){return ve.compare(D,K)>0}),So=gs("<=",function(W,D,K){return D<=K},function(W,D,K,ve){return ve.compare(D,K)<=0}),bo=gs(">=",function(W,D,K){return D>=K},function(W,D,K,ve){return ve.compare(D,K)>=0});class Ui{constructor(D,K,ve){this.type=hr,this.locale=ve,this.caseSensitive=D,this.diacriticSensitive=K}static parse(D,K){if(D.length!==2)return K.error("Expected one argument.");const ve=D[1];if(typeof ve!="object"||Array.isArray(ve))return K.error("Collator options argument must be an object.");const Ee=K.parse(ve["case-sensitive"]!==void 0&&ve["case-sensitive"],1,kt);if(!Ee)return null;const Ne=K.parse(ve["diacritic-sensitive"]!==void 0&&ve["diacritic-sensitive"],1,kt);if(!Ne)return null;let qe=null;return ve.locale&&(qe=K.parse(ve.locale,1,Et),!qe)?null:new Ui(Ee,Ne,qe)}evaluate(D){return new Tr(this.caseSensitive.evaluate(D),this.diacriticSensitive.evaluate(D),this.locale?this.locale.evaluate(D):null)}eachChild(D){D(this.caseSensitive),D(this.diacriticSensitive),this.locale&&D(this.locale)}outputDefined(){return!1}}class no{constructor(D,K,ve,Ee,Ne){this.type=Et,this.number=D,this.locale=K,this.currency=ve,this.minFractionDigits=Ee,this.maxFractionDigits=Ne}static parse(D,K){if(D.length!==3)return K.error("Expected two arguments.");const ve=K.parse(D[1],1,Ke);if(!ve)return null;const Ee=D[2];if(typeof Ee!="object"||Array.isArray(Ee))return K.error("NumberFormat options argument must be an object.");let Ne=null;if(Ee.locale&&(Ne=K.parse(Ee.locale,1,Et),!Ne))return null;let qe=null;if(Ee.currency&&(qe=K.parse(Ee.currency,1,Et),!qe))return null;let ut=null;if(Ee["min-fraction-digits"]&&(ut=K.parse(Ee["min-fraction-digits"],1,Ke),!ut))return null;let wt=null;return Ee["max-fraction-digits"]&&(wt=K.parse(Ee["max-fraction-digits"],1,Ke),!wt)?null:new no(ve,Ne,qe,ut,wt)}evaluate(D){return new Intl.NumberFormat(this.locale?this.locale.evaluate(D):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(D):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(D):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(D):void 0}).format(this.number.evaluate(D))}eachChild(D){D(this.number),this.locale&&D(this.locale),this.currency&&D(this.currency),this.minFractionDigits&&D(this.minFractionDigits),this.maxFractionDigits&&D(this.maxFractionDigits)}outputDefined(){return!1}}class cs{constructor(D){this.type=Rr,this.sections=D}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");const ve=D[1];if(!Array.isArray(ve)&&typeof ve=="object")return K.error("First argument must be an image or text section.");const Ee=[];let Ne=!1;for(let qe=1;qe<=D.length-1;++qe){const ut=D[qe];if(Ne&&typeof ut=="object"&&!Array.isArray(ut)){Ne=!1;let wt=null;if(ut["font-scale"]&&(wt=K.parse(ut["font-scale"],1,Ke),!wt))return null;let Ot=null;if(ut["text-font"]&&(Ot=K.parse(ut["text-font"],1,Fe(Et)),!Ot))return null;let ar=null;if(ut["text-color"]&&(ar=K.parse(ut["text-color"],1,Ut),!ar))return null;const lr=Ee[Ee.length-1];lr.scale=wt,lr.font=Ot,lr.textColor=ar}else{const wt=K.parse(D[qe],1,vr);if(!wt)return null;const Ot=wt.type.kind;if(Ot!=="string"&&Ot!=="value"&&Ot!=="null"&&Ot!=="resolvedImage")return K.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Ne=!0,Ee.push({content:wt,scale:null,font:null,textColor:null})}}return new cs(Ee)}evaluate(D){return new ha(this.sections.map(K=>{const ve=K.content.evaluate(D);return mt(ve)===wr?new qr("",ve,null,null,null):new qr(ot(ve),null,K.scale?K.scale.evaluate(D):null,K.font?K.font.evaluate(D).join(","):null,K.textColor?K.textColor.evaluate(D):null)}))}eachChild(D){for(const K of this.sections)D(K.content),K.scale&&D(K.scale),K.font&&D(K.font),K.textColor&&D(K.textColor)}outputDefined(){return!1}}class ks{constructor(D){this.type=wr,this.input=D}static parse(D,K){if(D.length!==2)return K.error("Expected two arguments.");const ve=K.parse(D[1],1,Et);return ve?new ks(ve):K.error("No image name provided.")}evaluate(D){const K=this.input.evaluate(D),ve=Ya.fromString(K);return ve&&D.availableImages&&(ve.available=D.availableImages.indexOf(K)>-1),ve}eachChild(D){D(this.input)}outputDefined(){return!1}}class ms{constructor(D){this.type=Ke,this.input=D}static parse(D,K){if(D.length!==2)return K.error(`Expected 1 argument, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1);return ve?ve.type.kind!=="array"&&ve.type.kind!=="string"&&ve.type.kind!=="value"?K.error(`Expected argument of type string or array, but found ${We(ve.type)} instead.`):new ms(ve):null}evaluate(D){const K=this.input.evaluate(D);if(typeof K=="string")return[...K].length;if(Array.isArray(K))return K.length;throw new Er(`Expected value to be of type string or array, but found ${We(mt(K))} instead.`)}eachChild(D){D(this.input)}outputDefined(){return!1}}const Mo=8192;function kn(W,D){const K=(180+W[0])/360,ve=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+W[1]*Math.PI/360)))/360,Ee=Math.pow(2,D.z);return[Math.round(K*Ee*Mo),Math.round(ve*Ee*Mo)]}function fi(W,D){const K=Math.pow(2,D.z);return[(Ee=(W[0]/Mo+D.x)/K,360*Ee-180),(ve=(W[1]/Mo+D.y)/K,360/Math.PI*Math.atan(Math.exp((180-360*ve)*Math.PI/180))-90)];var ve,Ee}function Fs(W,D){W[0]=Math.min(W[0],D[0]),W[1]=Math.min(W[1],D[1]),W[2]=Math.max(W[2],D[0]),W[3]=Math.max(W[3],D[1])}function Ss(W,D){return!(W[0]<=D[0]||W[2]>=D[2]||W[1]<=D[1]||W[3]>=D[3])}function Gi(W,D,K){const ve=W[0]-D[0],Ee=W[1]-D[1],Ne=W[0]-K[0],qe=W[1]-K[1];return ve*qe-Ne*Ee==0&&ve*Ne<=0&&Ee*qe<=0}function js(W,D,K,ve){return(Ee=[ve[0]-K[0],ve[1]-K[1]])[0]*(Ne=[D[0]-W[0],D[1]-W[1]])[1]-Ee[1]*Ne[0]!=0&&!(!Oi(W,D,K,ve)||!Oi(K,ve,W,D));var Ee,Ne}function No(W,D,K){for(const ve of K)for(let Ee=0;Ee(Ee=W)[1]!=(qe=ut[wt+1])[1]>Ee[1]&&Ee[0]<(qe[0]-Ne[0])*(Ee[1]-Ne[1])/(qe[1]-Ne[1])+Ne[0]&&(ve=!ve)}var Ee,Ne,qe;return ve}function Vs(W,D){for(const K of D)if(es(W,K))return!0;return!1}function hi(W,D){for(const K of W)if(!es(K,D))return!1;for(let K=0;K0&&ut<0||qe<0&&ut>0}function Zo(W,D,K){const ve=[];for(let Ee=0;EeK[2]){const Ee=.5*ve;let Ne=W[0]-K[0]>Ee?-ve:K[0]-W[0]>Ee?ve:0;Ne===0&&(Ne=W[0]-K[2]>Ee?-ve:K[2]-W[0]>Ee?ve:0),W[0]+=Ne}Fs(D,W)}function ys(W,D,K,ve){const Ee=Math.pow(2,ve.z)*Mo,Ne=[ve.x*Mo,ve.y*Mo],qe=[];for(const ut of W)for(const wt of ut){const Ot=[wt.x+Ne[0],wt.y+Ne[1]];Di(Ot,D,K,Ee),qe.push(Ot)}return qe}function wl(W,D,K,ve){const Ee=Math.pow(2,ve.z)*Mo,Ne=[ve.x*Mo,ve.y*Mo],qe=[];for(const wt of W){const Ot=[];for(const ar of wt){const lr=[ar.x+Ne[0],ar.y+Ne[1]];Fs(D,lr),Ot.push(lr)}qe.push(Ot)}if(D[2]-D[0]<=Ee/2){(ut=D)[0]=ut[1]=1/0,ut[2]=ut[3]=-1/0;for(const wt of qe)for(const Ot of wt)Di(Ot,D,K,Ee)}var ut;return qe}class Xs{constructor(D,K){this.type=kt,this.geojson=D,this.geometries=K}static parse(D,K){if(D.length!==2)return K.error(`'within' expression requires exactly one argument, but found ${D.length-1} instead.`);if(an(D[1])){const ve=D[1];if(ve.type==="FeatureCollection"){const Ee=[];for(const Ne of ve.features){const{type:qe,coordinates:ut}=Ne.geometry;qe==="Polygon"&&Ee.push(ut),qe==="MultiPolygon"&&Ee.push(...ut)}if(Ee.length)return new Xs(ve,{type:"MultiPolygon",coordinates:Ee})}else if(ve.type==="Feature"){const Ee=ve.geometry.type;if(Ee==="Polygon"||Ee==="MultiPolygon")return new Xs(ve,ve.geometry)}else if(ve.type==="Polygon"||ve.type==="MultiPolygon")return new Xs(ve,ve)}return K.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(D){if(D.geometry()!=null&&D.canonicalID()!=null){if(D.geometryType()==="Point")return function(K,ve){const Ee=[1/0,1/0,-1/0,-1/0],Ne=[1/0,1/0,-1/0,-1/0],qe=K.canonicalID();if(ve.type==="Polygon"){const ut=Zo(ve.coordinates,Ne,qe),wt=ys(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!es(Ot,ut))return!1}if(ve.type==="MultiPolygon"){const ut=qs(ve.coordinates,Ne,qe),wt=ys(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!Vs(Ot,ut))return!1}return!0}(D,this.geometries);if(D.geometryType()==="LineString")return function(K,ve){const Ee=[1/0,1/0,-1/0,-1/0],Ne=[1/0,1/0,-1/0,-1/0],qe=K.canonicalID();if(ve.type==="Polygon"){const ut=Zo(ve.coordinates,Ne,qe),wt=wl(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!hi(Ot,ut))return!1}if(ve.type==="MultiPolygon"){const ut=qs(ve.coordinates,Ne,qe),wt=wl(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!so(Ot,ut))return!1}return!0}(D,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Vl=class{constructor(W=[],D=(K,ve)=>Kve?1:0){if(this.data=W,this.length=this.data.length,this.compare=D,this.length>0)for(let K=(this.length>>1)-1;K>=0;K--)this._down(K)}push(W){this.data.push(W),this._up(this.length++)}pop(){if(this.length===0)return;const W=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),W}peek(){return this.data[0]}_up(W){const{data:D,compare:K}=this,ve=D[W];for(;W>0;){const Ee=W-1>>1,Ne=D[Ee];if(K(ve,Ne)>=0)break;D[W]=Ne,W=Ee}D[W]=ve}_down(W){const{data:D,compare:K}=this,ve=this.length>>1,Ee=D[W];for(;W=0)break;D[W]=D[Ne],W=Ne}D[W]=Ee}};function rl(W,D,K,ve,Ee){Cs(W,D,K,ve||W.length-1,Ee||ju)}function Cs(W,D,K,ve,Ee){for(;ve>K;){if(ve-K>600){var Ne=ve-K+1,qe=D-K+1,ut=Math.log(Ne),wt=.5*Math.exp(2*ut/3),Ot=.5*Math.sqrt(ut*wt*(Ne-wt)/Ne)*(qe-Ne/2<0?-1:1);Cs(W,D,Math.max(K,Math.floor(D-qe*wt/Ne+Ot)),Math.min(ve,Math.floor(D+(Ne-qe)*wt/Ne+Ot)),Ee)}var ar=W[D],lr=K,Sr=ve;for(ql(W,K,D),Ee(W[ve],ar)>0&&ql(W,K,ve);lr0;)Sr--}Ee(W[K],ar)===0?ql(W,K,Sr):ql(W,++Sr,ve),Sr<=D&&(K=Sr+1),D<=Sr&&(ve=Sr-1)}}function ql(W,D,K){var ve=W[D];W[D]=W[K],W[K]=ve}function ju(W,D){return WD?1:0}function Vu(W,D){if(W.length<=1)return[W];const K=[];let ve,Ee;for(const Ne of W){const qe=jc(Ne);qe!==0&&(Ne.area=Math.abs(qe),Ee===void 0&&(Ee=qe<0),Ee===qe<0?(ve&&K.push(ve),ve=[Ne]):ve.push(Ne))}if(ve&&K.push(ve),D>1)for(let Ne=0;Ne1?(Ot=D[wt+1][0],ar=D[wt+1][1]):Fr>0&&(Ot+=lr/this.kx*Fr,ar+=Sr/this.ky*Fr)),lr=this.wrap(K[0]-Ot)*this.kx,Sr=(K[1]-ar)*this.ky;const Yr=lr*lr+Sr*Sr;Yr180;)D-=360;return D}}function Pl(W,D){return D[0]-W[0]}function Tl(W){return W[1]-W[0]+1}function Il(W,D){return W[1]>=W[0]&&W[1]W[1])return[null,null];const K=Tl(W);if(D){if(K===2)return[W,null];const Ee=Math.floor(K/2);return[[W[0],W[0]+Ee],[W[0]+Ee,W[1]]]}if(K===1)return[W,null];const ve=Math.floor(K/2)-1;return[[W[0],W[0]+ve],[W[0]+ve+1,W[1]]]}function Os(W,D){if(!Il(D,W.length))return[1/0,1/0,-1/0,-1/0];const K=[1/0,1/0,-1/0,-1/0];for(let ve=D[0];ve<=D[1];++ve)Fs(K,W[ve]);return K}function Al(W){const D=[1/0,1/0,-1/0,-1/0];for(const K of W)for(const ve of K)Fs(D,ve);return D}function Uo(W){return W[0]!==-1/0&&W[1]!==-1/0&&W[2]!==1/0&&W[3]!==1/0}function bs(W,D,K){if(!Uo(W)||!Uo(D))return NaN;let ve=0,Ee=0;return W[2]D[2]&&(ve=W[0]-D[2]),W[1]>D[3]&&(Ee=W[1]-D[3]),W[3]=ve)return ve;if(Ss(Ee,Ne)){if(Rf(W,D))return 0}else if(Rf(D,W))return 0;let qe=1/0;for(const ut of W)for(let wt=0,Ot=ut.length,ar=Ot-1;wt0;){const wt=qe.pop();if(wt[0]>=Ne)continue;const Ot=wt[1],ar=D?50:100;if(Tl(Ot)<=ar){if(!Il(Ot,W.length))return NaN;if(D){const lr=zo(W,Ot,K,ve);if(isNaN(lr)||lr===0)return lr;Ne=Math.min(Ne,lr)}else for(let lr=Ot[0];lr<=Ot[1];++lr){const Sr=_f(W[lr],K,ve);if(Ne=Math.min(Ne,Sr),Ne===0)return 0}}else{const lr=_u(Ot,D);Bi(qe,Ne,ve,W,ut,lr[0]),Bi(qe,Ne,ve,W,ut,lr[1])}}return Ne}function dl(W,D,K,ve,Ee,Ne=1/0){let qe=Math.min(Ne,Ee.distance(W[0],K[0]));if(qe===0)return qe;const ut=new Vl([[0,[0,W.length-1],[0,K.length-1]]],Pl);for(;ut.length>0;){const wt=ut.pop();if(wt[0]>=qe)continue;const Ot=wt[1],ar=wt[2],lr=D?50:100,Sr=ve?50:100;if(Tl(Ot)<=lr&&Tl(ar)<=Sr){if(!Il(Ot,W.length)&&Il(ar,K.length))return NaN;let Fr;if(D&&ve)Fr=Ju(W,Ot,K,ar,Ee),qe=Math.min(qe,Fr);else if(D&&!ve){const Yr=W.slice(Ot[0],Ot[1]+1);for(let sa=ar[0];sa<=ar[1];++sa)if(Fr=qu(K[sa],Yr,Ee),qe=Math.min(qe,Fr),qe===0)return qe}else if(!D&&ve){const Yr=K.slice(ar[0],ar[1]+1);for(let sa=Ot[0];sa<=Ot[1];++sa)if(Fr=qu(W[sa],Yr,Ee),qe=Math.min(qe,Fr),qe===0)return qe}else Fr=Zs(W,Ot,K,ar,Ee),qe=Math.min(qe,Fr)}else{const Fr=_u(Ot,D),Yr=_u(ar,ve);hc(ut,qe,Ee,W,K,Fr[0],Yr[0]),hc(ut,qe,Ee,W,K,Fr[0],Yr[1]),hc(ut,qe,Ee,W,K,Fr[1],Yr[0]),hc(ut,qe,Ee,W,K,Fr[1],Yr[1])}}return qe}function qc(W){return W.type==="MultiPolygon"?W.coordinates.map(D=>({type:"Polygon",coordinates:D})):W.type==="MultiLineString"?W.coordinates.map(D=>({type:"LineString",coordinates:D})):W.type==="MultiPoint"?W.coordinates.map(D=>({type:"Point",coordinates:D})):[W]}class Qu{constructor(D,K){this.type=Ke,this.geojson=D,this.geometries=K}static parse(D,K){if(D.length!==2)return K.error(`'distance' expression requires exactly one argument, but found ${D.length-1} instead.`);if(an(D[1])){const ve=D[1];if(ve.type==="FeatureCollection")return new Qu(ve,ve.features.map(Ee=>qc(Ee.geometry)).flat());if(ve.type==="Feature")return new Qu(ve,qc(ve.geometry));if("type"in ve&&"coordinates"in ve)return new Qu(ve,qc(ve))}return K.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(D){if(D.geometry()!=null&&D.canonicalID()!=null){if(D.geometryType()==="Point")return function(K,ve){const Ee=K.geometry(),Ne=Ee.flat().map(wt=>fi([wt.x,wt.y],K.canonical));if(Ee.length===0)return NaN;const qe=new Vc(Ne[0][1]);let ut=1/0;for(const wt of ve){switch(wt.type){case"Point":ut=Math.min(ut,dl(Ne,!1,[wt.coordinates],!1,qe,ut));break;case"LineString":ut=Math.min(ut,dl(Ne,!1,wt.coordinates,!0,qe,ut));break;case"Polygon":ut=Math.min(ut,xu(Ne,!1,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries);if(D.geometryType()==="LineString")return function(K,ve){const Ee=K.geometry(),Ne=Ee.flat().map(wt=>fi([wt.x,wt.y],K.canonical));if(Ee.length===0)return NaN;const qe=new Vc(Ne[0][1]);let ut=1/0;for(const wt of ve){switch(wt.type){case"Point":ut=Math.min(ut,dl(Ne,!0,[wt.coordinates],!1,qe,ut));break;case"LineString":ut=Math.min(ut,dl(Ne,!0,wt.coordinates,!0,qe,ut));break;case"Polygon":ut=Math.min(ut,xu(Ne,!0,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries);if(D.geometryType()==="Polygon")return function(K,ve){const Ee=K.geometry();if(Ee.length===0||Ee[0].length===0)return NaN;const Ne=Vu(Ee,0).map(wt=>wt.map(Ot=>Ot.map(ar=>fi([ar.x,ar.y],K.canonical)))),qe=new Vc(Ne[0][0][0][1]);let ut=1/0;for(const wt of ve)for(const Ot of Ne){switch(wt.type){case"Point":ut=Math.min(ut,xu([wt.coordinates],!1,Ot,qe,ut));break;case"LineString":ut=Math.min(ut,xu(wt.coordinates,!0,Ot,qe,ut));break;case"Polygon":ut=Math.min(ut,is(Ot,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}const wc={"==":ro,"!=":Ei,">":xo,"<":Ri,">=":bo,"<=":So,array:br,at:or,boolean:br,case:Sa,coalesce:bi,collator:Ui,format:cs,image:ks,in:Ar,"index-of":oa,interpolate:Ni,"interpolate-hcl":Ni,"interpolate-lab":Ni,length:ms,let:ta,literal:Lr,match:ga,number:br,"number-format":no,object:br,slice:za,step:Ta,string:br,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:At,within:Xs,distance:Qu};class Sl{constructor(D,K,ve,Ee){this.name=D,this.type=K,this._evaluate=ve,this.args=Ee}evaluate(D){return this._evaluate(D,this.args)}eachChild(D){this.args.forEach(D)}outputDefined(){return!1}static parse(D,K){const ve=D[0],Ee=Sl.definitions[ve];if(!Ee)return K.error(`Unknown expression "${ve}". If you wanted a literal array, use ["literal", [...]].`,0);const Ne=Array.isArray(Ee)?Ee[0]:Ee.type,qe=Array.isArray(Ee)?[[Ee[1],Ee[2]]]:Ee.overloads,ut=qe.filter(([Ot])=>!Array.isArray(Ot)||Ot.length===D.length-1);let wt=null;for(const[Ot,ar]of ut){wt=new na(K.registry,Gc,K.path,null,K.scope);const lr=[];let Sr=!1;for(let Fr=1;Fr{return Sr=lr,Array.isArray(Sr)?`(${Sr.map(We).join(", ")})`:`(${We(Sr.type)}...)`;var Sr}).join(" | "),ar=[];for(let lr=1;lr{K=D?K&&Gc(ve):K&&ve instanceof Lr}),!!K&&Hc(W)&&$c(W,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Hc(W){if(W instanceof Sl&&(W.name==="get"&&W.args.length===1||W.name==="feature-state"||W.name==="has"&&W.args.length===1||W.name==="properties"||W.name==="geometry-type"||W.name==="id"||/^filter-/.test(W.name))||W instanceof Xs||W instanceof Qu)return!1;let D=!0;return W.eachChild(K=>{D&&!Hc(K)&&(D=!1)}),D}function bu(W){if(W instanceof Sl&&W.name==="feature-state")return!1;let D=!0;return W.eachChild(K=>{D&&!bu(K)&&(D=!1)}),D}function $c(W,D){if(W instanceof Sl&&D.indexOf(W.name)>=0)return!1;let K=!0;return W.eachChild(ve=>{K&&!$c(ve,D)&&(K=!1)}),K}function Gu(W){return{result:"success",value:W}}function Lu(W){return{result:"error",value:W}}function Ml(W){return W["property-type"]==="data-driven"||W["property-type"]==="cross-faded-data-driven"}function lc(W){return!!W.expression&&W.expression.parameters.indexOf("zoom")>-1}function Wc(W){return!!W.expression&&W.expression.interpolated}function Ms(W){return W instanceof Number?"number":W instanceof String?"string":W instanceof Boolean?"boolean":Array.isArray(W)?"array":W===null?"null":typeof W}function Lc(W){return typeof W=="object"&&W!==null&&!Array.isArray(W)}function xf(W){return W}function Kc(W,D){const K=D.type==="color",ve=W.stops&&typeof W.stops[0][0]=="object",Ee=ve||!(ve||W.property!==void 0),Ne=W.type||(Wc(D)?"exponential":"interval");if(K||D.type==="padding"){const ar=K?Ht.parse:Gr.parse;(W=he({},W)).stops&&(W.stops=W.stops.map(lr=>[lr[0],ar(lr[1])])),W.default=ar(W.default?W.default:D.default)}if(W.colorSpace&&(qe=W.colorSpace)!=="rgb"&&qe!=="hcl"&&qe!=="lab")throw new Error(`Unknown color space: "${W.colorSpace}"`);var qe;let ut,wt,Ot;if(Ne==="exponential")ut=Qc;else if(Ne==="interval")ut=tu;else if(Ne==="categorical"){ut=Jc,wt=Object.create(null);for(const ar of W.stops)wt[ar[0]]=ar[1];Ot=typeof W.stops[0][0]}else{if(Ne!=="identity")throw new Error(`Unknown function type "${Ne}"`);ut=el}if(ve){const ar={},lr=[];for(let Yr=0;YrYr[0]),evaluate:({zoom:Yr},sa)=>Qc({stops:Sr,base:W.base},D,Yr).evaluate(Yr,sa)}}if(Ee){const ar=Ne==="exponential"?{name:"exponential",base:W.base!==void 0?W.base:1}:null;return{kind:"camera",interpolationType:ar,interpolationFactor:Ni.interpolationFactor.bind(void 0,ar),zoomStops:W.stops.map(lr=>lr[0]),evaluate:({zoom:lr})=>ut(W,D,lr,wt,Ot)}}return{kind:"source",evaluate(ar,lr){const Sr=lr&&lr.properties?lr.properties[W.property]:void 0;return Sr===void 0?Ac(W.default,D.default):ut(W,D,Sr,wt,Ot)}}}function Ac(W,D,K){return W!==void 0?W:D!==void 0?D:K!==void 0?K:void 0}function Jc(W,D,K,ve,Ee){return Ac(typeof K===Ee?ve[K]:void 0,W.default,D.default)}function tu(W,D,K){if(Ms(K)!=="number")return Ac(W.default,D.default);const ve=W.stops.length;if(ve===1||K<=W.stops[0][0])return W.stops[0][1];if(K>=W.stops[ve-1][0])return W.stops[ve-1][1];const Ee=ra(W.stops.map(Ne=>Ne[0]),K);return W.stops[Ee][1]}function Qc(W,D,K){const ve=W.base!==void 0?W.base:1;if(Ms(K)!=="number")return Ac(W.default,D.default);const Ee=W.stops.length;if(Ee===1||K<=W.stops[0][0])return W.stops[0][1];if(K>=W.stops[Ee-1][0])return W.stops[Ee-1][1];const Ne=ra(W.stops.map(ar=>ar[0]),K),qe=function(ar,lr,Sr,Fr){const Yr=Fr-Sr,sa=ar-Sr;return Yr===0?0:lr===1?sa/Yr:(Math.pow(lr,sa)-1)/(Math.pow(lr,Yr)-1)}(K,ve,W.stops[Ne][0],W.stops[Ne+1][0]),ut=W.stops[Ne][1],wt=W.stops[Ne+1][1],Ot=Li[D.type]||xf;return typeof ut.evaluate=="function"?{evaluate(...ar){const lr=ut.evaluate.apply(void 0,ar),Sr=wt.evaluate.apply(void 0,ar);if(lr!==void 0&&Sr!==void 0)return Ot(lr,Sr,qe,W.colorSpace)}}:Ot(ut,wt,qe,W.colorSpace)}function el(W,D,K){switch(D.type){case"color":K=Ht.parse(K);break;case"formatted":K=ha.fromString(K.toString());break;case"resolvedImage":K=Ya.fromString(K.toString());break;case"padding":K=Gr.parse(K);break;default:Ms(K)===D.type||D.type==="enum"&&D.values[K]||(K=void 0)}return Ac(K,W.default,D.default)}Sl.register(wc,{error:[{kind:"error"},[Et],(W,[D])=>{throw new Er(D.evaluate(W))}],typeof:[Et,[vr],(W,[D])=>We(mt(D.evaluate(W)))],"to-rgba":[Fe(Ke,4),[Ut],(W,[D])=>{const[K,ve,Ee,Ne]=D.evaluate(W).rgb;return[255*K,255*ve,255*Ee,Ne]}],rgb:[Ut,[Ke,Ke,Ke],hf],rgba:[Ut,[Ke,Ke,Ke,Ke],hf],has:{type:kt,overloads:[[[Et],(W,[D])=>Yc(D.evaluate(W),W.properties())],[[Et,Yt],(W,[D,K])=>Yc(D.evaluate(W),K.evaluate(W))]]},get:{type:vr,overloads:[[[Et],(W,[D])=>Tc(D.evaluate(W),W.properties())],[[Et,Yt],(W,[D,K])=>Tc(D.evaluate(W),K.evaluate(W))]]},"feature-state":[vr,[Et],(W,[D])=>Tc(D.evaluate(W),W.featureState||{})],properties:[Yt,[],W=>W.properties()],"geometry-type":[Et,[],W=>W.geometryType()],id:[vr,[],W=>W.id()],zoom:[Ke,[],W=>W.globals.zoom],"heatmap-density":[Ke,[],W=>W.globals.heatmapDensity||0],"line-progress":[Ke,[],W=>W.globals.lineProgress||0],accumulated:[vr,[],W=>W.globals.accumulated===void 0?null:W.globals.accumulated],"+":[Ke,ec(Ke),(W,D)=>{let K=0;for(const ve of D)K+=ve.evaluate(W);return K}],"*":[Ke,ec(Ke),(W,D)=>{let K=1;for(const ve of D)K*=ve.evaluate(W);return K}],"-":{type:Ke,overloads:[[[Ke,Ke],(W,[D,K])=>D.evaluate(W)-K.evaluate(W)],[[Ke],(W,[D])=>-D.evaluate(W)]]},"/":[Ke,[Ke,Ke],(W,[D,K])=>D.evaluate(W)/K.evaluate(W)],"%":[Ke,[Ke,Ke],(W,[D,K])=>D.evaluate(W)%K.evaluate(W)],ln2:[Ke,[],()=>Math.LN2],pi:[Ke,[],()=>Math.PI],e:[Ke,[],()=>Math.E],"^":[Ke,[Ke,Ke],(W,[D,K])=>Math.pow(D.evaluate(W),K.evaluate(W))],sqrt:[Ke,[Ke],(W,[D])=>Math.sqrt(D.evaluate(W))],log10:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))/Math.LN10],ln:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))],log2:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))/Math.LN2],sin:[Ke,[Ke],(W,[D])=>Math.sin(D.evaluate(W))],cos:[Ke,[Ke],(W,[D])=>Math.cos(D.evaluate(W))],tan:[Ke,[Ke],(W,[D])=>Math.tan(D.evaluate(W))],asin:[Ke,[Ke],(W,[D])=>Math.asin(D.evaluate(W))],acos:[Ke,[Ke],(W,[D])=>Math.acos(D.evaluate(W))],atan:[Ke,[Ke],(W,[D])=>Math.atan(D.evaluate(W))],min:[Ke,ec(Ke),(W,D)=>Math.min(...D.map(K=>K.evaluate(W)))],max:[Ke,ec(Ke),(W,D)=>Math.max(...D.map(K=>K.evaluate(W)))],abs:[Ke,[Ke],(W,[D])=>Math.abs(D.evaluate(W))],round:[Ke,[Ke],(W,[D])=>{const K=D.evaluate(W);return K<0?-Math.round(-K):Math.round(K)}],floor:[Ke,[Ke],(W,[D])=>Math.floor(D.evaluate(W))],ceil:[Ke,[Ke],(W,[D])=>Math.ceil(D.evaluate(W))],"filter-==":[kt,[Et,vr],(W,[D,K])=>W.properties()[D.value]===K.value],"filter-id-==":[kt,[vr],(W,[D])=>W.id()===D.value],"filter-type-==":[kt,[Et],(W,[D])=>W.geometryType()===D.value],"filter-<":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve>Ee}],"filter-id->":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K>ve}],"filter-<=":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve<=Ee}],"filter-id-<=":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K<=ve}],"filter->=":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve>=Ee}],"filter-id->=":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K>=ve}],"filter-has":[kt,[vr],(W,[D])=>D.value in W.properties()],"filter-has-id":[kt,[],W=>W.id()!==null&&W.id()!==void 0],"filter-type-in":[kt,[Fe(Et)],(W,[D])=>D.value.indexOf(W.geometryType())>=0],"filter-id-in":[kt,[Fe(vr)],(W,[D])=>D.value.indexOf(W.id())>=0],"filter-in-small":[kt,[Et,Fe(vr)],(W,[D,K])=>K.value.indexOf(W.properties()[D.value])>=0],"filter-in-large":[kt,[Et,Fe(vr)],(W,[D,K])=>function(ve,Ee,Ne,qe){for(;Ne<=qe;){const ut=Ne+qe>>1;if(Ee[ut]===ve)return!0;Ee[ut]>ve?qe=ut-1:Ne=ut+1}return!1}(W.properties()[D.value],K.value,0,K.value.length-1)],all:{type:kt,overloads:[[[kt,kt],(W,[D,K])=>D.evaluate(W)&&K.evaluate(W)],[ec(kt),(W,D)=>{for(const K of D)if(!K.evaluate(W))return!1;return!0}]]},any:{type:kt,overloads:[[[kt,kt],(W,[D,K])=>D.evaluate(W)||K.evaluate(W)],[ec(kt),(W,D)=>{for(const K of D)if(K.evaluate(W))return!0;return!1}]]},"!":[kt,[kt],(W,[D])=>!D.evaluate(W)],"is-supported-script":[kt,[Et],(W,[D])=>{const K=W.globals&&W.globals.isSupportedScript;return!K||K(D.evaluate(W))}],upcase:[Et,[Et],(W,[D])=>D.evaluate(W).toUpperCase()],downcase:[Et,[Et],(W,[D])=>D.evaluate(W).toLowerCase()],concat:[Et,ec(vr),(W,D)=>D.map(K=>ot(K.evaluate(W))).join("")],"resolved-locale":[Et,[hr],(W,[D])=>D.evaluate(W).resolvedLocale()]});class ru{constructor(D,K){var ve;this.expression=D,this._warningHistory={},this._evaluator=new Hr,this._defaultValue=K?(ve=K).type==="color"&&Lc(ve.default)?new Ht(0,0,0,0):ve.type==="color"?Ht.parse(ve.default)||null:ve.type==="padding"?Gr.parse(ve.default)||null:ve.type==="variableAnchorOffsetCollection"?Da.parse(ve.default)||null:ve.default===void 0?null:ve.default:null,this._enumValues=K&&K.type==="enum"?K.values:null}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._evaluator.globals=D,this._evaluator.feature=K,this._evaluator.featureState=ve,this._evaluator.canonical=Ee,this._evaluator.availableImages=Ne||null,this._evaluator.formattedSection=qe,this.expression.evaluate(this._evaluator)}evaluate(D,K,ve,Ee,Ne,qe){this._evaluator.globals=D,this._evaluator.feature=K||null,this._evaluator.featureState=ve||null,this._evaluator.canonical=Ee,this._evaluator.availableImages=Ne||null,this._evaluator.formattedSection=qe||null;try{const ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Er(`Expected value to be one of ${Object.keys(this._enumValues).map(wt=>JSON.stringify(wt)).join(", ")}, but found ${JSON.stringify(ut)} instead.`);return ut}catch(ut){return this._warningHistory[ut.message]||(this._warningHistory[ut.message]=!0,typeof console<"u"&&console.warn(ut.message)),this._defaultValue}}}function tc(W){return Array.isArray(W)&&W.length>0&&typeof W[0]=="string"&&W[0]in wc}function Bs(W,D){const K=new na(wc,Gc,[],D?function(Ee){const Ne={color:Ut,string:Et,number:Ke,enum:Et,boolean:kt,formatted:Rr,padding:dr,resolvedImage:wr,variableAnchorOffsetCollection:yt};return Ee.type==="array"?Fe(Ne[Ee.value]||vr,Ee.length):Ne[Ee.type]}(D):void 0),ve=K.parse(W,void 0,void 0,void 0,D&&D.type==="string"?{typeAnnotation:"coerce"}:void 0);return ve?Gu(new ru(ve,D)):Lu(K.errors)}class Hu{constructor(D,K){this.kind=D,this._styleExpression=K,this.isStateDependent=D!=="constant"&&!bu(K.expression)}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe)}evaluate(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluate(D,K,ve,Ee,Ne,qe)}}class Gl{constructor(D,K,ve,Ee){this.kind=D,this.zoomStops=ve,this._styleExpression=K,this.isStateDependent=D!=="camera"&&!bu(K.expression),this.interpolationType=Ee}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe)}evaluate(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluate(D,K,ve,Ee,Ne,qe)}interpolationFactor(D,K,ve){return this.interpolationType?Ni.interpolationFactor(this.interpolationType,D,K,ve):0}}function au(W,D){const K=Bs(W,D);if(K.result==="error")return K;const ve=K.value.expression,Ee=Hc(ve);if(!Ee&&!Ml(D))return Lu([new De("","data expressions not supported")]);const Ne=$c(ve,["zoom"]);if(!Ne&&!lc(D))return Lu([new De("","zoom expressions not supported")]);const qe=vc(ve);return qe||Ne?qe instanceof De?Lu([qe]):qe instanceof Ni&&!Wc(D)?Lu([new De("",'"interpolate" expressions cannot be used with this property')]):Gu(qe?new Gl(Ee?"camera":"composite",K.value,qe.labels,qe instanceof Ni?qe.interpolation:void 0):new Hu(Ee?"constant":"source",K.value)):Lu([new De("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Ys{constructor(D,K){this._parameters=D,this._specification=K,he(this,Kc(this._parameters,this._specification))}static deserialize(D){return new Ys(D._parameters,D._specification)}static serialize(D){return{_parameters:D._parameters,_specification:D._specification}}}function vc(W){let D=null;if(W instanceof ta)D=vc(W.result);else if(W instanceof bi){for(const K of W.args)if(D=vc(K),D)break}else(W instanceof Ta||W instanceof Ni)&&W.input instanceof Sl&&W.input.name==="zoom"&&(D=W);return D instanceof De||W.eachChild(K=>{const ve=vc(K);ve instanceof De?D=ve:!D&&ve?D=new De("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):D&&ve&&D!==ve&&(D=new De("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),D}function Pu(W){if(W===!0||W===!1)return!0;if(!Array.isArray(W)||W.length===0)return!1;switch(W[0]){case"has":return W.length>=2&&W[1]!=="$id"&&W[1]!=="$type";case"in":return W.length>=3&&(typeof W[1]!="string"||Array.isArray(W[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return W.length!==3||Array.isArray(W[1])||Array.isArray(W[2]);case"any":case"all":for(const D of W.slice(1))if(!Pu(D)&&typeof D!="boolean")return!1;return!0;default:return!0}}const rc={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Pc(W){if(W==null)return{filter:()=>!0,needGeometry:!1};Pu(W)||(W=dc(W));const D=Bs(W,rc);if(D.result==="error")throw new Error(D.value.map(K=>`${K.key}: ${K.message}`).join(", "));return{filter:(K,ve,Ee)=>D.value.evaluate(K,ve,{},Ee),needGeometry:Vf(W)}}function bf(W,D){return WD?1:0}function Vf(W){if(!Array.isArray(W))return!1;if(W[0]==="within"||W[0]==="distance")return!0;for(let D=1;D"||D==="<="||D===">="?Ic(W[1],W[2],D):D==="any"?(K=W.slice(1),["any"].concat(K.map(dc))):D==="all"?["all"].concat(W.slice(1).map(dc)):D==="none"?["all"].concat(W.slice(1).map(dc).map(Rl)):D==="in"?fu(W[1],W.slice(2)):D==="!in"?Rl(fu(W[1],W.slice(2))):D==="has"?Rc(W[1]):D!=="!has"||Rl(Rc(W[1]));var K}function Ic(W,D,K){switch(W){case"$type":return[`filter-type-${K}`,D];case"$id":return[`filter-id-${K}`,D];default:return[`filter-${K}`,W,D]}}function fu(W,D){if(D.length===0)return!1;switch(W){case"$type":return["filter-type-in",["literal",D]];case"$id":return["filter-id-in",["literal",D]];default:return D.length>200&&!D.some(K=>typeof K!=typeof D[0])?["filter-in-large",W,["literal",D.sort(bf)]]:["filter-in-small",W,["literal",D]]}}function Rc(W){switch(W){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",W]}}function Rl(W){return["!",W]}function pc(W){const D=typeof W;if(D==="number"||D==="boolean"||D==="string"||W==null)return JSON.stringify(W);if(Array.isArray(W)){let Ee="[";for(const Ne of W)Ee+=`${pc(Ne)},`;return`${Ee}]`}const K=Object.keys(W).sort();let ve="{";for(let Ee=0;Eeve.maximum?[new we(D,K,`${K} is greater than the maximum value ${ve.maximum}`)]:[]}function Sc(W){const D=W.valueSpec,K=Gs(W.value.type);let ve,Ee,Ne,qe={};const ut=K!=="categorical"&&W.value.property===void 0,wt=!ut,Ot=Ms(W.value.stops)==="array"&&Ms(W.value.stops[0])==="array"&&Ms(W.value.stops[0][0])==="object",ar=wu({key:W.key,value:W.value,valueSpec:W.styleSpec.function,validateSpec:W.validateSpec,style:W.style,styleSpec:W.styleSpec,objectElementValidators:{stops:function(Fr){if(K==="identity")return[new we(Fr.key,Fr.value,'identity function may not have a "stops" property')];let Yr=[];const sa=Fr.value;return Yr=Yr.concat(Xc({key:Fr.key,value:sa,valueSpec:Fr.valueSpec,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec,arrayElementValidator:lr})),Ms(sa)==="array"&&sa.length===0&&Yr.push(new we(Fr.key,sa,"array must have at least one stop")),Yr},default:function(Fr){return Fr.validateSpec({key:Fr.key,value:Fr.value,valueSpec:D,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec})}}});return K==="identity"&&ut&&ar.push(new we(W.key,W.value,'missing required property "property"')),K==="identity"||W.value.stops||ar.push(new we(W.key,W.value,'missing required property "stops"')),K==="exponential"&&W.valueSpec.expression&&!Wc(W.valueSpec)&&ar.push(new we(W.key,W.value,"exponential functions not supported")),W.styleSpec.$version>=8&&(wt&&!Ml(W.valueSpec)?ar.push(new we(W.key,W.value,"property functions not supported")):ut&&!lc(W.valueSpec)&&ar.push(new we(W.key,W.value,"zoom functions not supported"))),K!=="categorical"&&!Ot||W.value.property!==void 0||ar.push(new we(W.key,W.value,'"property" property is required')),ar;function lr(Fr){let Yr=[];const sa=Fr.value,_a=Fr.key;if(Ms(sa)!=="array")return[new we(_a,sa,`array expected, ${Ms(sa)} found`)];if(sa.length!==2)return[new we(_a,sa,`array length 2 expected, length ${sa.length} found`)];if(Ot){if(Ms(sa[0])!=="object")return[new we(_a,sa,`object expected, ${Ms(sa[0])} found`)];if(sa[0].zoom===void 0)return[new we(_a,sa,"object stop key must have zoom")];if(sa[0].value===void 0)return[new we(_a,sa,"object stop key must have value")];if(Ne&&Ne>Gs(sa[0].zoom))return[new we(_a,sa[0].zoom,"stop zoom values must appear in ascending order")];Gs(sa[0].zoom)!==Ne&&(Ne=Gs(sa[0].zoom),Ee=void 0,qe={}),Yr=Yr.concat(wu({key:`${_a}[0]`,value:sa[0],valueSpec:{zoom:{}},validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec,objectElementValidators:{zoom:Ws,value:Sr}}))}else Yr=Yr.concat(Sr({key:`${_a}[0]`,value:sa[0],validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec},sa));return tc(nu(sa[1]))?Yr.concat([new we(`${_a}[1]`,sa[1],"expressions are not allowed in function stops.")]):Yr.concat(Fr.validateSpec({key:`${_a}[1]`,value:sa[1],valueSpec:D,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec}))}function Sr(Fr,Yr){const sa=Ms(Fr.value),_a=Gs(Fr.value),Wa=Fr.value!==null?Fr.value:Yr;if(ve){if(sa!==ve)return[new we(Fr.key,Wa,`${sa} stop domain type must match previous stop domain type ${ve}`)]}else ve=sa;if(sa!=="number"&&sa!=="string"&&sa!=="boolean")return[new we(Fr.key,Wa,"stop domain value must be a number, string, or boolean")];if(sa!=="number"&&K!=="categorical"){let zn=`number expected, ${sa} found`;return Ml(D)&&K===void 0&&(zn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new we(Fr.key,Wa,zn)]}return K!=="categorical"||sa!=="number"||isFinite(_a)&&Math.floor(_a)===_a?K!=="categorical"&&sa==="number"&&Ee!==void 0&&_anew we(`${W.key}${ve.key}`,W.value,ve.message));const K=D.value.expression||D.value._styleExpression.expression;if(W.expressionContext==="property"&&W.propertyKey==="text-font"&&!K.outputDefined())return[new we(W.key,W.value,`Invalid data expression for "${W.propertyKey}". Output values must be contained as literals within the expression.`)];if(W.expressionContext==="property"&&W.propertyType==="layout"&&!bu(K))return[new we(W.key,W.value,'"feature-state" data expressions are not supported with layout properties.')];if(W.expressionContext==="filter"&&!bu(K))return[new we(W.key,W.value,'"feature-state" data expressions are not supported with filters.')];if(W.expressionContext&&W.expressionContext.indexOf("cluster")===0){if(!$c(K,["zoom","feature-state"]))return[new we(W.key,W.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(W.expressionContext==="cluster-initial"&&!Hc(K))return[new we(W.key,W.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function hu(W){const D=W.key,K=W.value,ve=W.valueSpec,Ee=[];return Array.isArray(ve.values)?ve.values.indexOf(Gs(K))===-1&&Ee.push(new we(D,K,`expected one of [${ve.values.join(", ")}], ${JSON.stringify(K)} found`)):Object.keys(ve.values).indexOf(Gs(K))===-1&&Ee.push(new we(D,K,`expected one of [${Object.keys(ve.values).join(", ")}], ${JSON.stringify(K)} found`)),Ee}function Mc(W){return Pu(nu(W.value))?ac(he({},W,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Iu(W)}function Iu(W){const D=W.value,K=W.key;if(Ms(D)!=="array")return[new we(K,D,`array expected, ${Ms(D)} found`)];const ve=W.styleSpec;let Ee,Ne=[];if(D.length<1)return[new we(K,D,"filter array must have at least 1 element")];switch(Ne=Ne.concat(hu({key:`${K}[0]`,value:D[0],valueSpec:ve.filter_operator,style:W.style,styleSpec:W.styleSpec})),Gs(D[0])){case"<":case"<=":case">":case">=":D.length>=2&&Gs(D[1])==="$type"&&Ne.push(new we(K,D,`"$type" cannot be use with operator "${D[0]}"`));case"==":case"!=":D.length!==3&&Ne.push(new we(K,D,`filter array for operator "${D[0]}" must have 3 elements`));case"in":case"!in":D.length>=2&&(Ee=Ms(D[1]),Ee!=="string"&&Ne.push(new we(`${K}[1]`,D[1],`string expected, ${Ee} found`)));for(let qe=2;qe{Ot in K&&D.push(new we(ve,K[Ot],`"${Ot}" is prohibited for ref layers`))}),Ee.layers.forEach(Ot=>{Gs(Ot.id)===ut&&(wt=Ot)}),wt?wt.ref?D.push(new we(ve,K.ref,"ref cannot reference another ref layer")):qe=Gs(wt.type):D.push(new we(ve,K.ref,`ref layer "${ut}" not found`))}else if(qe!=="background")if(K.source){const wt=Ee.sources&&Ee.sources[K.source],Ot=wt&&Gs(wt.type);wt?Ot==="vector"&&qe==="raster"?D.push(new we(ve,K.source,`layer "${K.id}" requires a raster source`)):Ot!=="raster-dem"&&qe==="hillshade"?D.push(new we(ve,K.source,`layer "${K.id}" requires a raster-dem source`)):Ot==="raster"&&qe!=="raster"?D.push(new we(ve,K.source,`layer "${K.id}" requires a vector source`)):Ot!=="vector"||K["source-layer"]?Ot==="raster-dem"&&qe!=="hillshade"?D.push(new we(ve,K.source,"raster-dem source can only be used with layer type 'hillshade'.")):qe!=="line"||!K.paint||!K.paint["line-gradient"]||Ot==="geojson"&&wt.lineMetrics||D.push(new we(ve,K,`layer "${K.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new we(ve,K,`layer "${K.id}" must specify a "source-layer"`)):D.push(new we(ve,K.source,`source "${K.source}" not found`))}else D.push(new we(ve,K,'missing required property "source"'));return D=D.concat(wu({key:ve,value:K,valueSpec:Ne.layer,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":()=>[],type:()=>W.validateSpec({key:`${ve}.type`,value:K.type,valueSpec:Ne.layer.type,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,object:K,objectKey:"type"}),filter:Mc,layout:wt=>wu({layer:K,key:wt.key,value:wt.value,style:wt.style,styleSpec:wt.styleSpec,validateSpec:wt.validateSpec,objectElementValidators:{"*":Ot=>Fl(he({layerType:qe},Ot))}}),paint:wt=>wu({layer:K,key:wt.key,value:wt.value,style:wt.style,styleSpec:wt.styleSpec,validateSpec:wt.validateSpec,objectElementValidators:{"*":Ot=>wf(he({layerType:qe},Ot))}})}})),D}function vu(W){const D=W.value,K=W.key,ve=Ms(D);return ve!=="string"?[new we(K,D,`string expected, ${ve} found`)]:[]}const Wu={promoteId:function({key:W,value:D}){if(Ms(D)==="string")return vu({key:W,value:D});{const K=[];for(const ve in D)K.push(...vu({key:`${W}.${ve}`,value:D[ve]}));return K}}};function Ru(W){const D=W.value,K=W.key,ve=W.styleSpec,Ee=W.style,Ne=W.validateSpec;if(!D.type)return[new we(K,D,'"type" is required')];const qe=Gs(D.type);let ut;switch(qe){case"vector":case"raster":return ut=wu({key:K,value:D,valueSpec:ve[`source_${qe.replace("-","_")}`],style:W.style,styleSpec:ve,objectElementValidators:Wu,validateSpec:Ne}),ut;case"raster-dem":return ut=function(wt){var Ot;const ar=(Ot=wt.sourceName)!==null&&Ot!==void 0?Ot:"",lr=wt.value,Sr=wt.styleSpec,Fr=Sr.source_raster_dem,Yr=wt.style;let sa=[];const _a=Ms(lr);if(lr===void 0)return sa;if(_a!=="object")return sa.push(new we("source_raster_dem",lr,`object expected, ${_a} found`)),sa;const Wa=Gs(lr.encoding)==="custom",zn=["redFactor","greenFactor","blueFactor","baseShift"],vn=wt.value.encoding?`"${wt.value.encoding}"`:"Default";for(const Cn in lr)!Wa&&zn.includes(Cn)?sa.push(new we(Cn,lr[Cn],`In "${ar}": "${Cn}" is only valid when "encoding" is set to "custom". ${vn} encoding found`)):Fr[Cn]?sa=sa.concat(wt.validateSpec({key:Cn,value:lr[Cn],valueSpec:Fr[Cn],validateSpec:wt.validateSpec,style:Yr,styleSpec:Sr})):sa.push(new we(Cn,lr[Cn],`unknown property "${Cn}"`));return sa}({sourceName:K,value:D,style:W.style,styleSpec:ve,validateSpec:Ne}),ut;case"geojson":if(ut=wu({key:K,value:D,valueSpec:ve.source_geojson,style:Ee,styleSpec:ve,validateSpec:Ne,objectElementValidators:Wu}),D.cluster)for(const wt in D.clusterProperties){const[Ot,ar]=D.clusterProperties[wt],lr=typeof Ot=="string"?[Ot,["accumulated"],["get",wt]]:Ot;ut.push(...ac({key:`${K}.${wt}.map`,value:ar,expressionContext:"cluster-map"})),ut.push(...ac({key:`${K}.${wt}.reduce`,value:lr,expressionContext:"cluster-reduce"}))}return ut;case"video":return wu({key:K,value:D,valueSpec:ve.source_video,style:Ee,validateSpec:Ne,styleSpec:ve});case"image":return wu({key:K,value:D,valueSpec:ve.source_image,style:Ee,validateSpec:Ne,styleSpec:ve});case"canvas":return[new we(K,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return hu({key:`${K}.type`,value:D.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]}})}}function al(W){const D=W.value,K=W.styleSpec,ve=K.light,Ee=W.style;let Ne=[];const qe=Ms(D);if(D===void 0)return Ne;if(qe!=="object")return Ne=Ne.concat([new we("light",D,`object expected, ${qe} found`)]),Ne;for(const ut in D){const wt=ut.match(/^(.*)-transition$/);Ne=Ne.concat(wt&&ve[wt[1]]&&ve[wt[1]].transition?W.validateSpec({key:ut,value:D[ut],valueSpec:K.transition,validateSpec:W.validateSpec,style:Ee,styleSpec:K}):ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],validateSpec:W.validateSpec,style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)])}return Ne}function Yl(W){const D=W.value,K=W.styleSpec,ve=K.sky,Ee=W.style,Ne=Ms(D);if(D===void 0)return[];if(Ne!=="object")return[new we("sky",D,`object expected, ${Ne} found`)];let qe=[];for(const ut in D)qe=qe.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return qe}function Ks(W){const D=W.value,K=W.styleSpec,ve=K.terrain,Ee=W.style;let Ne=[];const qe=Ms(D);if(D===void 0)return Ne;if(qe!=="object")return Ne=Ne.concat([new we("terrain",D,`object expected, ${qe} found`)]),Ne;for(const ut in D)Ne=Ne.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],validateSpec:W.validateSpec,style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return Ne}function nc(W){let D=[];const K=W.value,ve=W.key;if(Array.isArray(K)){const Ee=[],Ne=[];for(const qe in K)K[qe].id&&Ee.includes(K[qe].id)&&D.push(new we(ve,K,`all the sprites' ids must be unique, but ${K[qe].id} is duplicated`)),Ee.push(K[qe].id),K[qe].url&&Ne.includes(K[qe].url)&&D.push(new we(ve,K,`all the sprites' URLs must be unique, but ${K[qe].url} is duplicated`)),Ne.push(K[qe].url),D=D.concat(wu({key:`${ve}[${qe}]`,value:K[qe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:W.validateSpec}));return D}return vu({key:ve,value:K})}const Du={"*":()=>[],array:Xc,boolean:function(W){const D=W.value,K=W.key,ve=Ms(D);return ve!=="boolean"?[new we(K,D,`boolean expected, ${ve} found`)]:[]},number:Ws,color:function(W){const D=W.key,K=W.value,ve=Ms(K);return ve!=="string"?[new we(D,K,`color expected, ${ve} found`)]:Ht.parse(String(K))?[]:[new we(D,K,`color expected, "${K}" found`)]},constants:gc,enum:hu,filter:Mc,function:Sc,layer:tf,object:wu,source:Ru,light:al,sky:Yl,terrain:Ks,projection:function(W){const D=W.value,K=W.styleSpec,ve=K.projection,Ee=W.style,Ne=Ms(D);if(D===void 0)return[];if(Ne!=="object")return[new we("projection",D,`object expected, ${Ne} found`)];let qe=[];for(const ut in D)qe=qe.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return qe},string:vu,formatted:function(W){return vu(W).length===0?[]:ac(W)},resolvedImage:function(W){return vu(W).length===0?[]:ac(W)},padding:function(W){const D=W.key,K=W.value;if(Ms(K)==="array"){if(K.length<1||K.length>4)return[new we(D,K,`padding requires 1 to 4 values; ${K.length} values found`)];const ve={type:"number"};let Ee=[];for(let Ne=0;Ne[]}})),W.constants&&(K=K.concat(gc({key:"constants",value:W.constants}))),Vr(K)}function $r(W){return function(D){return W(pv(Od({},D),{validateSpec:Zc}))}}function Vr(W){return[].concat(W).sort((D,K)=>D.line-K.line)}function ma(W){return function(...D){return Vr(W.apply(this,D))}}yr.source=ma($r(Ru)),yr.sprite=ma($r(nc)),yr.glyphs=ma($r(Qt)),yr.light=ma($r(al)),yr.sky=ma($r(Yl)),yr.terrain=ma($r(Ks)),yr.layer=ma($r(tf)),yr.filter=ma($r(Mc)),yr.paintProperty=ma($r(wf)),yr.layoutProperty=ma($r(Fl));const tn=yr,Ja=tn.light,Ln=tn.sky,On=tn.paintProperty,Qn=tn.layoutProperty;function _n(W,D){let K=!1;if(D&&D.length)for(const ve of D)W.fire(new V(new Error(ve.message))),K=!0;return K}class qn{constructor(D,K,ve){const Ee=this.cells=[];if(D instanceof ArrayBuffer){this.arrayBuffer=D;const qe=new Int32Array(this.arrayBuffer);D=qe[0],this.d=(K=qe[1])+2*(ve=qe[2]);for(let wt=0;wt=lr[Yr+0]&&Ee>=lr[Yr+1])?(ut[Fr]=!0,qe.push(ar[Fr])):ut[Fr]=!1}}}}_forEachCell(D,K,ve,Ee,Ne,qe,ut,wt){const Ot=this._convertToCellCoord(D),ar=this._convertToCellCoord(K),lr=this._convertToCellCoord(ve),Sr=this._convertToCellCoord(Ee);for(let Fr=Ot;Fr<=lr;Fr++)for(let Yr=ar;Yr<=Sr;Yr++){const sa=this.d*Yr+Fr;if((!wt||wt(this._convertFromCellCoord(Fr),this._convertFromCellCoord(Yr),this._convertFromCellCoord(Fr+1),this._convertFromCellCoord(Yr+1)))&&Ne.call(this,D,K,ve,Ee,sa,qe,ut,wt))return}}_convertFromCellCoord(D){return(D-this.padding)/this.scale}_convertToCellCoord(D){return Math.max(0,Math.min(this.d-1,Math.floor(D*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const D=this.cells,K=3+this.cells.length+1+1;let ve=0;for(let qe=0;qe=0)continue;const qe=W[Ne];Ee[Ne]=En[K].shallow.indexOf(Ne)>=0?qe:Zi(qe,D)}W instanceof Error&&(Ee.message=W.message)}if(Ee.$name)throw new Error("$name property is reserved for worker serialization logic.");return K!=="Object"&&(Ee.$name=K),Ee}function Wi(W){if(Fi(W))return W;if(Array.isArray(W))return W.map(Wi);if(typeof W!="object")throw new Error("can't deserialize object of type "+typeof W);const D=Hi(W)||"Object";if(!En[D])throw new Error(`can't deserialize unregistered class ${D}`);const{klass:K}=En[D];if(!K)throw new Error(`can't deserialize unregistered class ${D}`);if(K.deserialize)return K.deserialize(W);const ve=Object.create(K.prototype);for(const Ee of Object.keys(W)){if(Ee==="$name")continue;const Ne=W[Ee];ve[Ee]=En[D].shallow.indexOf(Ee)>=0?Ne:Wi(Ne)}return ve}class ii{constructor(){this.first=!0}update(D,K){const ve=Math.floor(D);return this.first?(this.first=!1,this.lastIntegerZoom=ve,this.lastIntegerZoomTime=0,this.lastZoom=D,this.lastFloorZoom=ve,!0):(this.lastFloorZoom>ve?(this.lastIntegerZoom=ve+1,this.lastIntegerZoomTime=K):this.lastFloorZoomW>=128&&W<=255,"Hangul Jamo":W=>W>=4352&&W<=4607,Khmer:W=>W>=6016&&W<=6143,"General Punctuation":W=>W>=8192&&W<=8303,"Letterlike Symbols":W=>W>=8448&&W<=8527,"Number Forms":W=>W>=8528&&W<=8591,"Miscellaneous Technical":W=>W>=8960&&W<=9215,"Control Pictures":W=>W>=9216&&W<=9279,"Optical Character Recognition":W=>W>=9280&&W<=9311,"Enclosed Alphanumerics":W=>W>=9312&&W<=9471,"Geometric Shapes":W=>W>=9632&&W<=9727,"Miscellaneous Symbols":W=>W>=9728&&W<=9983,"Miscellaneous Symbols and Arrows":W=>W>=11008&&W<=11263,"Ideographic Description Characters":W=>W>=12272&&W<=12287,"CJK Symbols and Punctuation":W=>W>=12288&&W<=12351,Katakana:W=>W>=12448&&W<=12543,Kanbun:W=>W>=12688&&W<=12703,"CJK Strokes":W=>W>=12736&&W<=12783,"Enclosed CJK Letters and Months":W=>W>=12800&&W<=13055,"CJK Compatibility":W=>W>=13056&&W<=13311,"Yijing Hexagram Symbols":W=>W>=19904&&W<=19967,"Private Use Area":W=>W>=57344&&W<=63743,"Vertical Forms":W=>W>=65040&&W<=65055,"CJK Compatibility Forms":W=>W>=65072&&W<=65103,"Small Form Variants":W=>W>=65104&&W<=65135,"Halfwidth and Fullwidth Forms":W=>W>=65280&&W<=65519};function ao(W){for(const D of W)if(Yo(D.charCodeAt(0)))return!0;return!1}function Fo(W){for(const D of W)if(!vs(D.charCodeAt(0)))return!1;return!0}function hs(W){const D=W.map(K=>{try{return new RegExp(`\\p{sc=${K}}`,"u").source}catch{return null}}).filter(K=>K);return new RegExp(D.join("|"),"u")}const Is=hs(["Arab","Dupl","Mong","Ougr","Syrc"]);function vs(W){return!Is.test(String.fromCodePoint(W))}const Rs=hs(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Yo(W){return!(W!==746&&W!==747&&(W<4352||!(Wn["CJK Compatibility Forms"](W)&&!(W>=65097&&W<=65103)||Wn["CJK Compatibility"](W)||Wn["CJK Strokes"](W)||!(!Wn["CJK Symbols and Punctuation"](W)||W>=12296&&W<=12305||W>=12308&&W<=12319||W===12336)||Wn["Enclosed CJK Letters and Months"](W)||Wn["Ideographic Description Characters"](W)||Wn.Kanbun(W)||Wn.Katakana(W)&&W!==12540||!(!Wn["Halfwidth and Fullwidth Forms"](W)||W===65288||W===65289||W===65293||W>=65306&&W<=65310||W===65339||W===65341||W===65343||W>=65371&&W<=65503||W===65507||W>=65512&&W<=65519)||!(!Wn["Small Form Variants"](W)||W>=65112&&W<=65118||W>=65123&&W<=65126)||Wn["Vertical Forms"](W)||Wn["Yijing Hexagram Symbols"](W)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(W))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(W))||Rs.test(String.fromCodePoint(W)))))}function sl(W){return!(Yo(W)||function(D){return!!(Wn["Latin-1 Supplement"](D)&&(D===167||D===169||D===174||D===177||D===188||D===189||D===190||D===215||D===247)||Wn["General Punctuation"](D)&&(D===8214||D===8224||D===8225||D===8240||D===8241||D===8251||D===8252||D===8258||D===8263||D===8264||D===8265||D===8273)||Wn["Letterlike Symbols"](D)||Wn["Number Forms"](D)||Wn["Miscellaneous Technical"](D)&&(D>=8960&&D<=8967||D>=8972&&D<=8991||D>=8996&&D<=9e3||D===9003||D>=9085&&D<=9114||D>=9150&&D<=9165||D===9167||D>=9169&&D<=9179||D>=9186&&D<=9215)||Wn["Control Pictures"](D)&&D!==9251||Wn["Optical Character Recognition"](D)||Wn["Enclosed Alphanumerics"](D)||Wn["Geometric Shapes"](D)||Wn["Miscellaneous Symbols"](D)&&!(D>=9754&&D<=9759)||Wn["Miscellaneous Symbols and Arrows"](D)&&(D>=11026&&D<=11055||D>=11088&&D<=11097||D>=11192&&D<=11243)||Wn["CJK Symbols and Punctuation"](D)||Wn.Katakana(D)||Wn["Private Use Area"](D)||Wn["CJK Compatibility Forms"](D)||Wn["Small Form Variants"](D)||Wn["Halfwidth and Fullwidth Forms"](D)||D===8734||D===8756||D===8757||D>=9984&&D<=10087||D>=10102&&D<=10131||D===65532||D===65533)}(W))}const nl=hs(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ls(W){return nl.test(String.fromCodePoint(W))}function wi(W,D){return!(!D&&Ls(W)||W>=2304&&W<=3583||W>=3840&&W<=4255||Wn.Khmer(W))}function go(W){for(const D of W)if(Ls(D.charCodeAt(0)))return!0;return!1}const ws=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(W){this.pluginStatus=W.pluginStatus,this.pluginURL=W.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(W){this.applyArabicShaping=W.applyArabicShaping,this.processBidirectionalText=W.processBidirectionalText,this.processStyledBidirectionalText=W.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class os{constructor(D,K){this.zoom=D,K?(this.now=K.now,this.fadeDuration=K.fadeDuration,this.zoomHistory=K.zoomHistory,this.transition=K.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ii,this.transition={})}isSupportedScript(D){return function(K,ve){for(const Ee of K)if(!wi(Ee.charCodeAt(0),ve))return!1;return!0}(D,ws.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const D=this.zoom,K=D-Math.floor(D),ve=this.crossFadingFactor();return D>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:K+(1-K)*ve}:{fromScale:.5,toScale:1,t:1-(1-ve)*K}}}class Hl{constructor(D,K){this.property=D,this.value=K,this.expression=function(ve,Ee){if(Lc(ve))return new Ys(ve,Ee);if(tc(ve)){const Ne=au(ve,Ee);if(Ne.result==="error")throw new Error(Ne.value.map(qe=>`${qe.key}: ${qe.message}`).join(", "));return Ne.value}{let Ne=ve;return Ee.type==="color"&&typeof ve=="string"?Ne=Ht.parse(ve):Ee.type!=="padding"||typeof ve!="number"&&!Array.isArray(ve)?Ee.type==="variableAnchorOffsetCollection"&&Array.isArray(ve)&&(Ne=Da.parse(ve)):Ne=Gr.parse(ve),{kind:"constant",evaluate:()=>Ne}}}(K===void 0?D.specification.default:K,D.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(D,K,ve){return this.property.possiblyEvaluate(this,D,K,ve)}}class Wl{constructor(D){this.property=D,this.value=new Hl(D,void 0)}transitioned(D,K){return new uc(this.property,this.value,K,M({},D.transition,this.transition),D.now)}untransitioned(){return new uc(this.property,this.value,null,{},0)}}class $l{constructor(D){this._properties=D,this._values=Object.create(D.defaultTransitionablePropertyValues)}getValue(D){return u(this._values[D].value.value)}setValue(D,K){Object.prototype.hasOwnProperty.call(this._values,D)||(this._values[D]=new Wl(this._values[D].property)),this._values[D].value=new Hl(this._values[D].property,K===null?void 0:u(K))}getTransition(D){return u(this._values[D].transition)}setTransition(D,K){Object.prototype.hasOwnProperty.call(this._values,D)||(this._values[D]=new Wl(this._values[D].property)),this._values[D].transition=u(K)||void 0}serialize(){const D={};for(const K of Object.keys(this._values)){const ve=this.getValue(K);ve!==void 0&&(D[K]=ve);const Ee=this.getTransition(K);Ee!==void 0&&(D[`${K}-transition`]=Ee)}return D}transitioned(D,K){const ve=new Xl(this._properties);for(const Ee of Object.keys(this._values))ve._values[Ee]=this._values[Ee].transitioned(D,K._values[Ee]);return ve}untransitioned(){const D=new Xl(this._properties);for(const K of Object.keys(this._values))D._values[K]=this._values[K].untransitioned();return D}}class uc{constructor(D,K,ve,Ee,Ne){this.property=D,this.value=K,this.begin=Ne+Ee.delay||0,this.end=this.begin+Ee.duration||0,D.specification.transition&&(Ee.delay||Ee.duration)&&(this.prior=ve)}possiblyEvaluate(D,K,ve){const Ee=D.now||0,Ne=this.value.possiblyEvaluate(D,K,ve),qe=this.prior;if(qe){if(Ee>this.end)return this.prior=null,Ne;if(this.value.isDataDriven())return this.prior=null,Ne;if(Ee=1)return 1;const Ot=wt*wt,ar=Ot*wt;return 4*(wt<.5?ar:3*(wt-Ot)+ar-.75)}(ut))}}return Ne}}class Xl{constructor(D){this._properties=D,this._values=Object.create(D.defaultTransitioningPropertyValues)}possiblyEvaluate(D,K,ve){const Ee=new Zu(this._properties);for(const Ne of Object.keys(this._values))Ee._values[Ne]=this._values[Ne].possiblyEvaluate(D,K,ve);return Ee}hasTransition(){for(const D of Object.keys(this._values))if(this._values[D].prior)return!0;return!1}}class Xu{constructor(D){this._properties=D,this._values=Object.create(D.defaultPropertyValues)}hasValue(D){return this._values[D].value!==void 0}getValue(D){return u(this._values[D].value)}setValue(D,K){this._values[D]=new Hl(this._values[D].property,K===null?void 0:u(K))}serialize(){const D={};for(const K of Object.keys(this._values)){const ve=this.getValue(K);ve!==void 0&&(D[K]=ve)}return D}possiblyEvaluate(D,K,ve){const Ee=new Zu(this._properties);for(const Ne of Object.keys(this._values))Ee._values[Ne]=this._values[Ne].possiblyEvaluate(D,K,ve);return Ee}}class ll{constructor(D,K,ve){this.property=D,this.value=K,this.parameters=ve}isConstant(){return this.value.kind==="constant"}constantOr(D){return this.value.kind==="constant"?this.value.value:D}evaluate(D,K,ve,Ee){return this.property.evaluate(this.value,this.parameters,D,K,ve,Ee)}}class Zu{constructor(D){this._properties=D,this._values=Object.create(D.defaultPossiblyEvaluatedValues)}get(D){return this._values[D]}}class Yi{constructor(D){this.specification=D}possiblyEvaluate(D,K){if(D.isDataDriven())throw new Error("Value should not be data driven");return D.expression.evaluate(K)}interpolate(D,K,ve){const Ee=Li[this.specification.type];return Ee?Ee(D,K,ve):D}}class io{constructor(D,K){this.specification=D,this.overrides=K}possiblyEvaluate(D,K,ve,Ee){return new ll(this,D.expression.kind==="constant"||D.expression.kind==="camera"?{kind:"constant",value:D.expression.evaluate(K,null,{},ve,Ee)}:D.expression,K)}interpolate(D,K,ve){if(D.value.kind!=="constant"||K.value.kind!=="constant")return D;if(D.value.value===void 0||K.value.value===void 0)return new ll(this,{kind:"constant",value:void 0},D.parameters);const Ee=Li[this.specification.type];if(Ee){const Ne=Ee(D.value.value,K.value.value,ve);return new ll(this,{kind:"constant",value:Ne},D.parameters)}return D}evaluate(D,K,ve,Ee,Ne,qe){return D.kind==="constant"?D.value:D.evaluate(K,ve,Ee,Ne,qe)}}class Yu extends io{possiblyEvaluate(D,K,ve,Ee){if(D.value===void 0)return new ll(this,{kind:"constant",value:void 0},K);if(D.expression.kind==="constant"){const Ne=D.expression.evaluate(K,null,{},ve,Ee),qe=D.property.specification.type==="resolvedImage"&&typeof Ne!="string"?Ne.name:Ne,ut=this._calculate(qe,qe,qe,K);return new ll(this,{kind:"constant",value:ut},K)}if(D.expression.kind==="camera"){const Ne=this._calculate(D.expression.evaluate({zoom:K.zoom-1}),D.expression.evaluate({zoom:K.zoom}),D.expression.evaluate({zoom:K.zoom+1}),K);return new ll(this,{kind:"constant",value:Ne},K)}return new ll(this,D.expression,K)}evaluate(D,K,ve,Ee,Ne,qe){if(D.kind==="source"){const ut=D.evaluate(K,ve,Ee,Ne,qe);return this._calculate(ut,ut,ut,K)}return D.kind==="composite"?this._calculate(D.evaluate({zoom:Math.floor(K.zoom)-1},ve,Ee),D.evaluate({zoom:Math.floor(K.zoom)},ve,Ee),D.evaluate({zoom:Math.floor(K.zoom)+1},ve,Ee),K):D.value}_calculate(D,K,ve,Ee){return Ee.zoom>Ee.zoomHistory.lastIntegerZoom?{from:D,to:K}:{from:ve,to:K}}interpolate(D){return D}}class du{constructor(D){this.specification=D}possiblyEvaluate(D,K,ve,Ee){if(D.value!==void 0){if(D.expression.kind==="constant"){const Ne=D.expression.evaluate(K,null,{},ve,Ee);return this._calculate(Ne,Ne,Ne,K)}return this._calculate(D.expression.evaluate(new os(Math.floor(K.zoom-1),K)),D.expression.evaluate(new os(Math.floor(K.zoom),K)),D.expression.evaluate(new os(Math.floor(K.zoom+1),K)),K)}}_calculate(D,K,ve,Ee){return Ee.zoom>Ee.zoomHistory.lastIntegerZoom?{from:D,to:K}:{from:ve,to:K}}interpolate(D){return D}}class iu{constructor(D){this.specification=D}possiblyEvaluate(D,K,ve,Ee){return!!D.expression.evaluate(K,null,{},ve,Ee)}interpolate(){return!1}}class ze{constructor(D){this.properties=D,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const K in D){const ve=D[K];ve.specification.overridable&&this.overridableProperties.push(K);const Ee=this.defaultPropertyValues[K]=new Hl(ve,void 0),Ne=this.defaultTransitionablePropertyValues[K]=new Wl(ve);this.defaultTransitioningPropertyValues[K]=Ne.untransitioned(),this.defaultPossiblyEvaluatedValues[K]=Ee.possiblyEvaluate({})}}}dn("DataDrivenProperty",io),dn("DataConstantProperty",Yi),dn("CrossFadedDataDrivenProperty",Yu),dn("CrossFadedProperty",du),dn("ColorRampProperty",iu);const L="-transition";class ne extends re{constructor(D,K){if(super(),this.id=D.id,this.type=D.type,this._featureFilter={filter:()=>!0,needGeometry:!1},D.type!=="custom"&&(this.metadata=D.metadata,this.minzoom=D.minzoom,this.maxzoom=D.maxzoom,D.type!=="background"&&(this.source=D.source,this.sourceLayer=D["source-layer"],this.filter=D.filter),K.layout&&(this._unevaluatedLayout=new Xu(K.layout)),K.paint)){this._transitionablePaint=new $l(K.paint);for(const ve in D.paint)this.setPaintProperty(ve,D.paint[ve],{validate:!1});for(const ve in D.layout)this.setLayoutProperty(ve,D.layout[ve],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Zu(K.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(D){return D==="visibility"?this.visibility:this._unevaluatedLayout.getValue(D)}setLayoutProperty(D,K,ve={}){K!=null&&this._validate(Qn,`layers.${this.id}.layout.${D}`,D,K,ve)||(D!=="visibility"?this._unevaluatedLayout.setValue(D,K):this.visibility=K)}getPaintProperty(D){return D.endsWith(L)?this._transitionablePaint.getTransition(D.slice(0,-11)):this._transitionablePaint.getValue(D)}setPaintProperty(D,K,ve={}){if(K!=null&&this._validate(On,`layers.${this.id}.paint.${D}`,D,K,ve))return!1;if(D.endsWith(L))return this._transitionablePaint.setTransition(D.slice(0,-11),K||void 0),!1;{const Ee=this._transitionablePaint._values[D],Ne=Ee.property.specification["property-type"]==="cross-faded-data-driven",qe=Ee.value.isDataDriven(),ut=Ee.value;this._transitionablePaint.setValue(D,K),this._handleSpecialPaintPropertyUpdate(D);const wt=this._transitionablePaint._values[D].value;return wt.isDataDriven()||qe||Ne||this._handleOverridablePaintPropertyUpdate(D,ut,wt)}}_handleSpecialPaintPropertyUpdate(D){}_handleOverridablePaintPropertyUpdate(D,K,ve){return!1}isHidden(D){return!!(this.minzoom&&D=this.maxzoom)||this.visibility==="none"}updateTransitions(D){this._transitioningPaint=this._transitionablePaint.transitioned(D,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(D,K){D.getCrossfadeParameters&&(this._crossfadeParameters=D.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(D,void 0,K)),this.paint=this._transitioningPaint.possiblyEvaluate(D,void 0,K)}serialize(){const D={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(D.layout=D.layout||{},D.layout.visibility=this.visibility),d(D,(K,ve)=>!(K===void 0||ve==="layout"&&!Object.keys(K).length||ve==="paint"&&!Object.keys(K).length))}_validate(D,K,ve,Ee,Ne={}){return(!Ne||Ne.validate!==!1)&&_n(this,D.call(tn,{key:K,layerType:this.type,objectKey:ve,value:Ee,styleSpec:ae,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const D in this.paint._values){const K=this.paint.get(D);if(K instanceof ll&&Ml(K.property.specification)&&(K.value.kind==="source"||K.value.kind==="composite")&&K.value.isStateDependent)return!0}return!1}}const Te={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Se{constructor(D,K){this._structArray=D,this._pos1=K*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Re{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(D,K){return D._trim(),K&&(D.isTransferred=!0,K.push(D.arrayBuffer)),{length:D.length,arrayBuffer:D.arrayBuffer}}static deserialize(D){const K=Object.create(this.prototype);return K.arrayBuffer=D.arrayBuffer,K.length=D.length,K.capacity=D.arrayBuffer.byteLength/K.bytesPerElement,K._refreshViews(),K}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(D){this.reserve(D),this.length=D}reserve(D){if(D>this.capacity){this.capacity=Math.max(D,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const K=this.uint8;this._refreshViews(),K&&this.uint8.set(K)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ft(W,D=1){let K=0,ve=0;return{members:W.map(Ee=>{const Ne=Te[Ee.type].BYTES_PER_ELEMENT,qe=K=xt(K,Math.max(D,Ne)),ut=Ee.components||1;return ve=Math.max(ve,Ne),K+=Ne*ut,{name:Ee.name,type:Ee.type,components:ut,offset:qe}}),size:xt(K,Math.max(ve,D)),alignment:D}}function xt(W,D){return Math.ceil(W/D)*D}class Dt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.int16[Ee+0]=K,this.int16[Ee+1]=ve,D}}Dt.prototype.bytesPerElement=4,dn("StructArrayLayout2i4",Dt);class er extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.int16[Ne+0]=K,this.int16[Ne+1]=ve,this.int16[Ne+2]=Ee,D}}er.prototype.bytesPerElement=6,dn("StructArrayLayout3i6",er);class fr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee){const Ne=this.length;return this.resize(Ne+1),this.emplace(Ne,D,K,ve,Ee)}emplace(D,K,ve,Ee,Ne){const qe=4*D;return this.int16[qe+0]=K,this.int16[qe+1]=ve,this.int16[qe+2]=Ee,this.int16[qe+3]=Ne,D}}fr.prototype.bytesPerElement=8,dn("StructArrayLayout4i8",fr);class pr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=6*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.int16[wt+2]=Ee,this.int16[wt+3]=Ne,this.int16[wt+4]=qe,this.int16[wt+5]=ut,D}}pr.prototype.bytesPerElement=12,dn("StructArrayLayout2i4i12",pr);class Br extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=4*D,Ot=8*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.uint8[Ot+4]=Ee,this.uint8[Ot+5]=Ne,this.uint8[Ot+6]=qe,this.uint8[Ot+7]=ut,D}}Br.prototype.bytesPerElement=8,dn("StructArrayLayout2i4ub8",Br);class ea extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.float32[Ee+0]=K,this.float32[Ee+1]=ve,D}}ea.prototype.bytesPerElement=8,dn("StructArrayLayout2f8",ea);class Ve extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){const lr=this.length;return this.resize(lr+1),this.emplace(lr,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr){const Sr=10*D;return this.uint16[Sr+0]=K,this.uint16[Sr+1]=ve,this.uint16[Sr+2]=Ee,this.uint16[Sr+3]=Ne,this.uint16[Sr+4]=qe,this.uint16[Sr+5]=ut,this.uint16[Sr+6]=wt,this.uint16[Sr+7]=Ot,this.uint16[Sr+8]=ar,this.uint16[Sr+9]=lr,D}}Ve.prototype.bytesPerElement=20,dn("StructArrayLayout10ui20",Ve);class Ye extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr){const Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr){const Yr=12*D;return this.int16[Yr+0]=K,this.int16[Yr+1]=ve,this.int16[Yr+2]=Ee,this.int16[Yr+3]=Ne,this.uint16[Yr+4]=qe,this.uint16[Yr+5]=ut,this.uint16[Yr+6]=wt,this.uint16[Yr+7]=Ot,this.int16[Yr+8]=ar,this.int16[Yr+9]=lr,this.int16[Yr+10]=Sr,this.int16[Yr+11]=Fr,D}}Ye.prototype.bytesPerElement=24,dn("StructArrayLayout4i4ui4i24",Ye);class it extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.float32[Ne+0]=K,this.float32[Ne+1]=ve,this.float32[Ne+2]=Ee,D}}it.prototype.bytesPerElement=12,dn("StructArrayLayout3f12",it);class vt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.uint32[1*D+0]=K,D}}vt.prototype.bytesPerElement=4,dn("StructArrayLayout1ul4",vt);class St extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot){const ar=this.length;return this.resize(ar+1),this.emplace(ar,D,K,ve,Ee,Ne,qe,ut,wt,Ot)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){const lr=10*D,Sr=5*D;return this.int16[lr+0]=K,this.int16[lr+1]=ve,this.int16[lr+2]=Ee,this.int16[lr+3]=Ne,this.int16[lr+4]=qe,this.int16[lr+5]=ut,this.uint32[Sr+3]=wt,this.uint16[lr+8]=Ot,this.uint16[lr+9]=ar,D}}St.prototype.bytesPerElement=20,dn("StructArrayLayout6i1ul2ui20",St);class _t extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=6*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.int16[wt+2]=Ee,this.int16[wt+3]=Ne,this.int16[wt+4]=qe,this.int16[wt+5]=ut,D}}_t.prototype.bytesPerElement=12,dn("StructArrayLayout2i2i2i12",_t);class Lt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne){const qe=this.length;return this.resize(qe+1),this.emplace(qe,D,K,ve,Ee,Ne)}emplace(D,K,ve,Ee,Ne,qe){const ut=4*D,wt=8*D;return this.float32[ut+0]=K,this.float32[ut+1]=ve,this.float32[ut+2]=Ee,this.int16[wt+6]=Ne,this.int16[wt+7]=qe,D}}Lt.prototype.bytesPerElement=16,dn("StructArrayLayout2f1f2i16",Lt);class nr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=16*D,Ot=4*D,ar=8*D;return this.uint8[wt+0]=K,this.uint8[wt+1]=ve,this.float32[Ot+1]=Ee,this.float32[Ot+2]=Ne,this.int16[ar+6]=qe,this.int16[ar+7]=ut,D}}nr.prototype.bytesPerElement=16,dn("StructArrayLayout2ub2f2i16",nr);class cr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.uint16[Ne+0]=K,this.uint16[Ne+1]=ve,this.uint16[Ne+2]=Ee,D}}cr.prototype.bytesPerElement=6,dn("StructArrayLayout3ui6",cr);class gr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa){const zn=this.length;return this.resize(zn+1),this.emplace(zn,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn){const vn=24*D,Cn=12*D,$n=48*D;return this.int16[vn+0]=K,this.int16[vn+1]=ve,this.uint16[vn+2]=Ee,this.uint16[vn+3]=Ne,this.uint32[Cn+2]=qe,this.uint32[Cn+3]=ut,this.uint32[Cn+4]=wt,this.uint16[vn+10]=Ot,this.uint16[vn+11]=ar,this.uint16[vn+12]=lr,this.float32[Cn+7]=Sr,this.float32[Cn+8]=Fr,this.uint8[$n+36]=Yr,this.uint8[$n+37]=sa,this.uint8[$n+38]=_a,this.uint32[Cn+10]=Wa,this.int16[vn+22]=zn,D}}gr.prototype.bytesPerElement=48,dn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",gr);class Cr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To){const _o=this.length;return this.resize(_o+1),this.emplace(_o,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To,_o){const li=32*D,jo=16*D;return this.int16[li+0]=K,this.int16[li+1]=ve,this.int16[li+2]=Ee,this.int16[li+3]=Ne,this.int16[li+4]=qe,this.int16[li+5]=ut,this.int16[li+6]=wt,this.int16[li+7]=Ot,this.uint16[li+8]=ar,this.uint16[li+9]=lr,this.uint16[li+10]=Sr,this.uint16[li+11]=Fr,this.uint16[li+12]=Yr,this.uint16[li+13]=sa,this.uint16[li+14]=_a,this.uint16[li+15]=Wa,this.uint16[li+16]=zn,this.uint16[li+17]=vn,this.uint16[li+18]=Cn,this.uint16[li+19]=$n,this.uint16[li+20]=gi,this.uint16[li+21]=Ji,this.uint16[li+22]=as,this.uint32[jo+12]=oo,this.float32[jo+13]=$i,this.float32[jo+14]=Ro,this.uint16[li+30]=To,this.uint16[li+31]=_o,D}}Cr.prototype.bytesPerElement=64,dn("StructArrayLayout8i15ui1ul2f2ui64",Cr);class Wr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.float32[1*D+0]=K,D}}Wr.prototype.bytesPerElement=4,dn("StructArrayLayout1f4",Wr);class ua extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.uint16[6*D+0]=K,this.float32[Ne+1]=ve,this.float32[Ne+2]=Ee,D}}ua.prototype.bytesPerElement=12,dn("StructArrayLayout1ui2f12",ua);class va extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=4*D;return this.uint32[2*D+0]=K,this.uint16[Ne+2]=ve,this.uint16[Ne+3]=Ee,D}}va.prototype.bytesPerElement=8,dn("StructArrayLayout1ul2ui8",va);class Ma extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.uint16[Ee+0]=K,this.uint16[Ee+1]=ve,D}}Ma.prototype.bytesPerElement=4,dn("StructArrayLayout2ui4",Ma);class en extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.uint16[1*D+0]=K,D}}en.prototype.bytesPerElement=2,dn("StructArrayLayout1ui2",en);class Pn extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee){const Ne=this.length;return this.resize(Ne+1),this.emplace(Ne,D,K,ve,Ee)}emplace(D,K,ve,Ee,Ne){const qe=4*D;return this.float32[qe+0]=K,this.float32[qe+1]=ve,this.float32[qe+2]=Ee,this.float32[qe+3]=Ne,D}}Pn.prototype.bytesPerElement=16,dn("StructArrayLayout4f16",Pn);class Tn extends Se{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new o(this.anchorPointX,this.anchorPointY)}}Tn.prototype.size=20;class In extends St{get(D){return new Tn(this,D)}}dn("CollisionBoxArray",In);class oi extends Se{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(D){this._structArray.uint8[this._pos1+37]=D}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(D){this._structArray.uint8[this._pos1+38]=D}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(D){this._structArray.uint32[this._pos4+10]=D}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}oi.prototype.size=48;class Si extends gr{get(D){return new oi(this,D)}}dn("PlacedSymbolArray",Si);class _i extends Se{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(D){this._structArray.uint32[this._pos4+12]=D}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}_i.prototype.size=64;class Ki extends Cr{get(D){return new _i(this,D)}}dn("SymbolInstanceArray",Ki);class Go extends Wr{getoffsetX(D){return this.float32[1*D+0]}}dn("GlyphOffsetArray",Go);class Ho extends er{getx(D){return this.int16[3*D+0]}gety(D){return this.int16[3*D+1]}gettileUnitDistanceFromAnchor(D){return this.int16[3*D+2]}}dn("SymbolLineVertexArray",Ho);class Ao extends Se{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Ao.prototype.size=12;class Ko extends ua{get(D){return new Ao(this,D)}}dn("TextAnchorOffsetArray",Ko);class Js extends Se{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Js.prototype.size=8;class Hs extends va{get(D){return new Js(this,D)}}dn("FeatureIndexArray",Hs);class ko extends Dt{}class Co extends Dt{}class fl extends Dt{}class Dl extends pr{}class ou extends Br{}class pe extends ea{}class Le extends Ve{}class $e extends Ye{}class dt extends it{}class gt extends vt{}class Tt extends _t{}class Vt extends nr{}class jt extends cr{}class sr extends Ma{}const Pr=ft([{name:"a_pos",components:2,type:"Int16"}],4),{members:kr}=Pr;class Zr{constructor(D=[]){this.segments=D}prepareSegment(D,K,ve,Ee){let Ne=this.segments[this.segments.length-1];return D>Zr.MAX_VERTEX_ARRAY_LENGTH&&y(`Max vertices per segment is ${Zr.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${D}`),(!Ne||Ne.vertexLength+D>Zr.MAX_VERTEX_ARRAY_LENGTH||Ne.sortKey!==Ee)&&(Ne={vertexOffset:K.length,primitiveOffset:ve.length,vertexLength:0,primitiveLength:0},Ee!==void 0&&(Ne.sortKey=Ee),this.segments.push(Ne)),Ne}get(){return this.segments}destroy(){for(const D of this.segments)for(const K in D.vaos)D.vaos[K].destroy()}static simpleSegment(D,K,ve,Ee){return new Zr([{vertexOffset:D,primitiveOffset:K,vertexLength:ve,primitiveLength:Ee,vaos:{},sortKey:0}])}}function la(W,D){return 256*(W=w(Math.floor(W),0,255))+w(Math.floor(D),0,255)}Zr.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,dn("SegmentVector",Zr);const ca=ft([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var nn={exports:{}},pa={exports:{}};pa.exports=function(W,D){var K,ve,Ee,Ne,qe,ut,wt,Ot;for(ve=W.length-(K=3&W.length),Ee=D,qe=3432918353,ut=461845907,Ot=0;Ot>>16)*qe&65535)<<16)&4294967295)<<15|wt>>>17))*ut+(((wt>>>16)*ut&65535)<<16)&4294967295)<<13|Ee>>>19))+((5*(Ee>>>16)&65535)<<16)&4294967295))+((58964+(Ne>>>16)&65535)<<16);switch(wt=0,K){case 3:wt^=(255&W.charCodeAt(Ot+2))<<16;case 2:wt^=(255&W.charCodeAt(Ot+1))<<8;case 1:Ee^=wt=(65535&(wt=(wt=(65535&(wt^=255&W.charCodeAt(Ot)))*qe+(((wt>>>16)*qe&65535)<<16)&4294967295)<<15|wt>>>17))*ut+(((wt>>>16)*ut&65535)<<16)&4294967295}return Ee^=W.length,Ee=2246822507*(65535&(Ee^=Ee>>>16))+((2246822507*(Ee>>>16)&65535)<<16)&4294967295,Ee=3266489909*(65535&(Ee^=Ee>>>13))+((3266489909*(Ee>>>16)&65535)<<16)&4294967295,(Ee^=Ee>>>16)>>>0};var Pa=pa.exports,Na={exports:{}};Na.exports=function(W,D){for(var K,ve=W.length,Ee=D^ve,Ne=0;ve>=4;)K=1540483477*(65535&(K=255&W.charCodeAt(Ne)|(255&W.charCodeAt(++Ne))<<8|(255&W.charCodeAt(++Ne))<<16|(255&W.charCodeAt(++Ne))<<24))+((1540483477*(K>>>16)&65535)<<16),Ee=1540483477*(65535&Ee)+((1540483477*(Ee>>>16)&65535)<<16)^(K=1540483477*(65535&(K^=K>>>24))+((1540483477*(K>>>16)&65535)<<16)),ve-=4,++Ne;switch(ve){case 3:Ee^=(255&W.charCodeAt(Ne+2))<<16;case 2:Ee^=(255&W.charCodeAt(Ne+1))<<8;case 1:Ee=1540483477*(65535&(Ee^=255&W.charCodeAt(Ne)))+((1540483477*(Ee>>>16)&65535)<<16)}return Ee=1540483477*(65535&(Ee^=Ee>>>13))+((1540483477*(Ee>>>16)&65535)<<16),(Ee^=Ee>>>15)>>>0};var rn=Pa,sn=Na.exports;nn.exports=rn,nn.exports.murmur3=rn,nn.exports.murmur2=sn;var Ba=r(nn.exports);class Rn{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(D,K,ve,Ee){this.ids.push(ni(D)),this.positions.push(K,ve,Ee)}getPositions(D){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const K=ni(D);let ve=0,Ee=this.ids.length-1;for(;ve>1;this.ids[qe]>=K?Ee=qe:ve=qe+1}const Ne=[];for(;this.ids[ve]===K;)Ne.push({index:this.positions[3*ve],start:this.positions[3*ve+1],end:this.positions[3*ve+2]}),ve++;return Ne}static serialize(D,K){const ve=new Float64Array(D.ids),Ee=new Uint32Array(D.positions);return Zn(ve,Ee,0,ve.length-1),K&&K.push(ve.buffer,Ee.buffer),{ids:ve,positions:Ee}}static deserialize(D){const K=new Rn;return K.ids=D.ids,K.positions=D.positions,K.indexed=!0,K}}function ni(W){const D=+W;return!isNaN(D)&&D<=Number.MAX_SAFE_INTEGER?D:Ba(String(W))}function Zn(W,D,K,ve){for(;K>1];let Ne=K-1,qe=ve+1;for(;;){do Ne++;while(W[Ne]Ee);if(Ne>=qe)break;ri(W,Ne,qe),ri(D,3*Ne,3*qe),ri(D,3*Ne+1,3*qe+1),ri(D,3*Ne+2,3*qe+2)}qe-K`u_${Ee}`),this.type=ve}setUniform(D,K,ve){D.set(ve.constantOr(this.value))}getBinding(D,K,ve){return this.type==="color"?new Ii(D,K):new ki(D,K)}}class Ns{constructor(D,K){this.uniformNames=K.map(ve=>`u_${ve}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(D,K){this.pixelRatioFrom=K.pixelRatio,this.pixelRatioTo=D.pixelRatio,this.patternFrom=K.tlbr,this.patternTo=D.tlbr}setUniform(D,K,ve,Ee){const Ne=Ee==="u_pattern_to"?this.patternTo:Ee==="u_pattern_from"?this.patternFrom:Ee==="u_pixel_ratio_to"?this.pixelRatioTo:Ee==="u_pixel_ratio_from"?this.pixelRatioFrom:null;Ne&&D.set(Ne)}getBinding(D,K,ve){return ve.substr(0,9)==="u_pattern"?new Vo(D,K):new ki(D,K)}}class di{constructor(D,K,ve,Ee){this.expression=D,this.type=ve,this.maxValue=0,this.paintVertexAttributes=K.map(Ne=>({name:`a_${Ne}`,type:"Float32",components:ve==="color"?2:1,offset:0})),this.paintVertexArray=new Ee}populatePaintArray(D,K,ve,Ee,Ne){const qe=this.paintVertexArray.length,ut=this.expression.evaluate(new os(0),K,{},Ee,[],Ne);this.paintVertexArray.resize(D),this._setPaintValue(qe,D,ut)}updatePaintArray(D,K,ve,Ee){const Ne=this.expression.evaluate({zoom:0},ve,Ee);this._setPaintValue(D,K,Ne)}_setPaintValue(D,K,ve){if(this.type==="color"){const Ee=$o(ve);for(let Ne=D;Ne`u_${ut}_t`),this.type=ve,this.useIntegerZoom=Ee,this.zoom=Ne,this.maxValue=0,this.paintVertexAttributes=K.map(ut=>({name:`a_${ut}`,type:"Float32",components:ve==="color"?4:2,offset:0})),this.paintVertexArray=new qe}populatePaintArray(D,K,ve,Ee,Ne){const qe=this.expression.evaluate(new os(this.zoom),K,{},Ee,[],Ne),ut=this.expression.evaluate(new os(this.zoom+1),K,{},Ee,[],Ne),wt=this.paintVertexArray.length;this.paintVertexArray.resize(D),this._setPaintValue(wt,D,qe,ut)}updatePaintArray(D,K,ve,Ee){const Ne=this.expression.evaluate({zoom:this.zoom},ve,Ee),qe=this.expression.evaluate({zoom:this.zoom+1},ve,Ee);this._setPaintValue(D,K,Ne,qe)}_setPaintValue(D,K,ve,Ee){if(this.type==="color"){const Ne=$o(ve),qe=$o(Ee);for(let ut=D;ut`#define HAS_UNIFORM_${Ee}`))}return D}getBinderAttributes(){const D=[];for(const K in this.binders){const ve=this.binders[K];if(ve instanceof di||ve instanceof Lo)for(let Ee=0;Ee!0){this.programConfigurations={};for(const Ee of D)this.programConfigurations[Ee.id]=new Ds(Ee,K,ve);this.needsUpload=!1,this._featureMap=new Rn,this._bufferOffset=0}populatePaintArrays(D,K,ve,Ee,Ne,qe){for(const ut in this.programConfigurations)this.programConfigurations[ut].populatePaintArrays(D,K,Ee,Ne,qe);K.id!==void 0&&this._featureMap.add(K.id,ve,this._bufferOffset,D),this._bufferOffset=D,this.needsUpload=!0}updatePaintArrays(D,K,ve,Ee){for(const Ne of ve)this.needsUpload=this.programConfigurations[Ne.id].updatePaintArrays(D,this._featureMap,K,Ne,Ee)||this.needsUpload}get(D){return this.programConfigurations[D]}upload(D){if(this.needsUpload){for(const K in this.programConfigurations)this.programConfigurations[K].upload(D);this.needsUpload=!1}}destroy(){for(const D in this.programConfigurations)this.programConfigurations[D].destroy()}}function Kl(W,D){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[W]||[W.replace(`${D}-`,"").replace(/-/g,"_")]}function ds(W,D,K){const ve={color:{source:ea,composite:Pn},number:{source:Wr,composite:ea}},Ee=function(Ne){return{"line-pattern":{source:Le,composite:Le},"fill-pattern":{source:Le,composite:Le},"fill-extrusion-pattern":{source:Le,composite:Le}}[Ne]}(W);return Ee&&Ee[K]||ve[D][K]}dn("ConstantBinder",hl),dn("CrossFadedConstantBinder",Ns),dn("SourceExpressionBinder",di),dn("CrossFadedCompositeBinder",Wo),dn("CompositeExpressionBinder",Lo),dn("ProgramConfiguration",Ds,{omit:["_buffers"]}),dn("ProgramConfigurationSet",Ts);const zs=8192,pu=Math.pow(2,14)-1,ul=-pu-1;function lt(W){const D=zs/W.extent,K=W.loadGeometry();for(let ve=0;veqe.x+1||wtqe.y+1)&&y("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return K}function ir(W,D){return{type:W.type,id:W.id,properties:W.properties,geometry:D?lt(W):[]}}function ur(W,D,K,ve,Ee){W.emplaceBack(2*D+(ve+1)/2,2*K+(Ee+1)/2)}class fa{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.layoutVertexArray=new Co,this.indexArray=new jt,this.segments=new Zr,this.programConfigurations=new Ts(D.layers,D.zoom),this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){const Ee=this.layers[0],Ne=[];let qe=null,ut=!1;Ee.type==="circle"&&(qe=Ee.layout.get("circle-sort-key"),ut=!qe.isConstant());for(const{feature:wt,id:Ot,index:ar,sourceLayerIndex:lr}of D){const Sr=this.layers[0]._featureFilter.needGeometry,Fr=ir(wt,Sr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Fr,ve))continue;const Yr=ut?qe.evaluate(Fr,{},ve):void 0,sa={id:Ot,properties:wt.properties,type:wt.type,sourceLayerIndex:lr,index:ar,geometry:Sr?Fr.geometry:lt(wt),patterns:{},sortKey:Yr};Ne.push(sa)}ut&&Ne.sort((wt,Ot)=>wt.sortKey-Ot.sortKey);for(const wt of Ne){const{geometry:Ot,index:ar,sourceLayerIndex:lr}=wt,Sr=D[ar].feature;this.addFeature(wt,Ot,ar,ve),K.featureIndex.insert(Sr,Ot,ar,lr,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,kr),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(D,K,ve,Ee){for(const Ne of K)for(const qe of Ne){const ut=qe.x,wt=qe.y;if(ut<0||ut>=zs||wt<0||wt>=zs)continue;const Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,D.sortKey),ar=Ot.vertexLength;ur(this.layoutVertexArray,ut,wt,-1,-1),ur(this.layoutVertexArray,ut,wt,1,-1),ur(this.layoutVertexArray,ut,wt,1,1),ur(this.layoutVertexArray,ut,wt,-1,1),this.indexArray.emplaceBack(ar,ar+1,ar+2),this.indexArray.emplaceBack(ar,ar+3,ar+2),Ot.vertexLength+=4,Ot.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,D,ve,{},Ee)}}function Va(W,D){for(let K=0;K1){if(ln(W,D))return!0;for(let ve=0;ve1?K:K.sub(D)._mult(Ee)._add(D))}function jn(W,D){let K,ve,Ee,Ne=!1;for(let qe=0;qeD.y!=Ee.y>D.y&&D.x<(Ee.x-ve.x)*(D.y-ve.y)/(Ee.y-ve.y)+ve.x&&(Ne=!Ne)}return Ne}function xn(W,D){let K=!1;for(let ve=0,Ee=W.length-1;veD.y!=qe.y>D.y&&D.x<(qe.x-Ne.x)*(D.y-Ne.y)/(qe.y-Ne.y)+Ne.x&&(K=!K)}return K}function Za(W,D,K){const ve=K[0],Ee=K[2];if(W.xEe.x&&D.x>Ee.x||W.yEe.y&&D.y>Ee.y)return!1;const Ne=R(W,D,K[0]);return Ne!==R(W,D,K[1])||Ne!==R(W,D,K[2])||Ne!==R(W,D,K[3])}function Ur(W,D,K){const ve=D.paint.get(W).value;return ve.kind==="constant"?ve.value:K.programConfigurations.get(D.id).getMaxValue(W)}function ya(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])}function Ra(W,D,K,ve,Ee){if(!D[0]&&!D[1])return W;const Ne=o.convert(D)._mult(Ee);K==="viewport"&&Ne._rotate(-ve);const qe=[];for(let ut=0;utYn(_a,sa))}(Ot,wt),Fr=lr?ar*ut:ar;for(const Yr of Ee)for(const sa of Yr){const _a=lr?sa:Yn(sa,wt);let Wa=Fr;const zn=An([],[sa.x,sa.y,0,1],wt);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?Wa*=zn[3]/qe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(Wa*=qe.cameraToCenterDistance/zn[3]),Jr(Sr,_a,Wa))return!0}return!1}}function Yn(W,D){const K=An([],[W.x,W.y,0,1],D);return new o(K[0]/K[3],K[1]/K[3])}class Pi extends fa{}let Vn;dn("HeatmapBucket",Pi,{omit:["layers"]});var ei={get paint(){return Vn=Vn||new ze({"heatmap-radius":new io(ae.paint_heatmap["heatmap-radius"]),"heatmap-weight":new io(ae.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Yi(ae.paint_heatmap["heatmap-intensity"]),"heatmap-color":new iu(ae.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Yi(ae.paint_heatmap["heatmap-opacity"])})}};function bn(W,{width:D,height:K},ve,Ee){if(Ee){if(Ee instanceof Uint8ClampedArray)Ee=new Uint8Array(Ee.buffer);else if(Ee.length!==D*K*ve)throw new RangeError(`mismatched image size. expected: ${Ee.length} but got: ${D*K*ve}`)}else Ee=new Uint8Array(D*K*ve);return W.width=D,W.height=K,W.data=Ee,W}function Mi(W,{width:D,height:K},ve){if(D===W.width&&K===W.height)return;const Ee=bn({},{width:D,height:K},ve);Xi(W,Ee,{x:0,y:0},{x:0,y:0},{width:Math.min(W.width,D),height:Math.min(W.height,K)},ve),W.width=D,W.height=K,W.data=Ee.data}function Xi(W,D,K,ve,Ee,Ne){if(Ee.width===0||Ee.height===0)return D;if(Ee.width>W.width||Ee.height>W.height||K.x>W.width-Ee.width||K.y>W.height-Ee.height)throw new RangeError("out of range source coordinates for image copy");if(Ee.width>D.width||Ee.height>D.height||ve.x>D.width-Ee.width||ve.y>D.height-Ee.height)throw new RangeError("out of range destination coordinates for image copy");const qe=W.data,ut=D.data;if(qe===ut)throw new Error("srcData equals dstData, so image is already copied");for(let wt=0;wt{D[W.evaluationKey]=wt;const Ot=W.expression.evaluate(D);Ee.data[qe+ut+0]=Math.floor(255*Ot.r/Ot.a),Ee.data[qe+ut+1]=Math.floor(255*Ot.g/Ot.a),Ee.data[qe+ut+2]=Math.floor(255*Ot.b/Ot.a),Ee.data[qe+ut+3]=Math.floor(255*Ot.a)};if(W.clips)for(let qe=0,ut=0;qe80*K){ut=1/0,wt=1/0;let ar=-1/0,lr=-1/0;for(let Sr=K;Srar&&(ar=Fr),Yr>lr&&(lr=Yr)}Ot=Math.max(ar-ut,lr-wt),Ot=Ot!==0?32767/Ot:0}return Oo(Ne,qe,K,ut,wt,Ot,0),qe}function mi(W,D,K,ve,Ee){let Ne;if(Ee===function(qe,ut,wt,Ot){let ar=0;for(let lr=ut,Sr=wt-Ot;lr0)for(let qe=D;qe=D;qe-=ve)Ne=It(qe/ve|0,W[qe],W[qe+1],Ne);return Ne&&rt(Ne,Ne.next)&&(Nt(Ne),Ne=Ne.next),Ne}function kl(W,D){if(!W)return W;D||(D=W);let K,ve=W;do if(K=!1,ve.steiner||!rt(ve,ve.next)&&Be(ve.prev,ve,ve.next)!==0)ve=ve.next;else{if(Nt(ve),ve=D=ve.prev,ve===ve.next)break;K=!0}while(K||ve!==D);return D}function Oo(W,D,K,ve,Ee,Ne,qe){if(!W)return;!qe&&Ne&&function(wt,Ot,ar,lr){let Sr=wt;do Sr.z===0&&(Sr.z=j(Sr.x,Sr.y,Ot,ar,lr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==wt);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Fr){let Yr,sa=1;do{let _a,Wa=Fr;Fr=null;let zn=null;for(Yr=0;Wa;){Yr++;let vn=Wa,Cn=0;for(let gi=0;gi0||$n>0&&vn;)Cn!==0&&($n===0||!vn||Wa.z<=vn.z)?(_a=Wa,Wa=Wa.nextZ,Cn--):(_a=vn,vn=vn.nextZ,$n--),zn?zn.nextZ=_a:Fr=_a,_a.prevZ=zn,zn=_a;Wa=vn}zn.nextZ=null,sa*=2}while(Yr>1)}(Sr)}(W,ve,Ee,Ne);let ut=W;for(;W.prev!==W.next;){const wt=W.prev,Ot=W.next;if(Ne?Ol(W,ve,Ee,Ne):As(W))D.push(wt.i,W.i,Ot.i),Nt(W),W=Ot.next,ut=Ot.next;else if((W=Ot)===ut){qe?qe===1?Oo(W=Bl(kl(W),D),D,K,ve,Ee,Ne,2):qe===2&&Ci(W,D,K,ve,Ee,Ne):Oo(kl(W),D,K,ve,Ee,Ne,1);break}}}function As(W){const D=W.prev,K=W,ve=W.next;if(Be(D,K,ve)>=0)return!1;const Ee=D.x,Ne=K.x,qe=ve.x,ut=D.y,wt=K.y,Ot=ve.y,ar=EeNe?Ee>qe?Ee:qe:Ne>qe?Ne:qe,Fr=ut>wt?ut>Ot?ut:Ot:wt>Ot?wt:Ot;let Yr=ve.next;for(;Yr!==D;){if(Yr.x>=ar&&Yr.x<=Sr&&Yr.y>=lr&&Yr.y<=Fr&&$(Ee,ut,Ne,wt,qe,Ot,Yr.x,Yr.y)&&Be(Yr.prev,Yr,Yr.next)>=0)return!1;Yr=Yr.next}return!0}function Ol(W,D,K,ve){const Ee=W.prev,Ne=W,qe=W.next;if(Be(Ee,Ne,qe)>=0)return!1;const ut=Ee.x,wt=Ne.x,Ot=qe.x,ar=Ee.y,lr=Ne.y,Sr=qe.y,Fr=utwt?ut>Ot?ut:Ot:wt>Ot?wt:Ot,_a=ar>lr?ar>Sr?ar:Sr:lr>Sr?lr:Sr,Wa=j(Fr,Yr,D,K,ve),zn=j(sa,_a,D,K,ve);let vn=W.prevZ,Cn=W.nextZ;for(;vn&&vn.z>=Wa&&Cn&&Cn.z<=zn;){if(vn.x>=Fr&&vn.x<=sa&&vn.y>=Yr&&vn.y<=_a&&vn!==Ee&&vn!==qe&&$(ut,ar,wt,lr,Ot,Sr,vn.x,vn.y)&&Be(vn.prev,vn,vn.next)>=0||(vn=vn.prevZ,Cn.x>=Fr&&Cn.x<=sa&&Cn.y>=Yr&&Cn.y<=_a&&Cn!==Ee&&Cn!==qe&&$(ut,ar,wt,lr,Ot,Sr,Cn.x,Cn.y)&&Be(Cn.prev,Cn,Cn.next)>=0))return!1;Cn=Cn.nextZ}for(;vn&&vn.z>=Wa;){if(vn.x>=Fr&&vn.x<=sa&&vn.y>=Yr&&vn.y<=_a&&vn!==Ee&&vn!==qe&&$(ut,ar,wt,lr,Ot,Sr,vn.x,vn.y)&&Be(vn.prev,vn,vn.next)>=0)return!1;vn=vn.prevZ}for(;Cn&&Cn.z<=zn;){if(Cn.x>=Fr&&Cn.x<=sa&&Cn.y>=Yr&&Cn.y<=_a&&Cn!==Ee&&Cn!==qe&&$(ut,ar,wt,lr,Ot,Sr,Cn.x,Cn.y)&&Be(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.nextZ}return!0}function Bl(W,D){let K=W;do{const ve=K.prev,Ee=K.next.next;!rt(ve,Ee)&&st(ve,K,K.next,Ee)&&pt(ve,Ee)&&pt(Ee,ve)&&(D.push(ve.i,K.i,Ee.i),Nt(K),Nt(K.next),K=W=Ee),K=K.next}while(K!==W);return kl(K)}function Ci(W,D,K,ve,Ee,Ne){let qe=W;do{let ut=qe.next.next;for(;ut!==qe.prev;){if(qe.i!==ut.i&&ge(qe,ut)){let wt=Bt(qe,ut);return qe=kl(qe,qe.next),wt=kl(wt,wt.next),Oo(qe,D,K,ve,Ee,Ne,0),void Oo(wt,D,K,ve,Ee,Ne,0)}ut=ut.next}qe=qe.next}while(qe!==W)}function fo(W,D){return W.x-D.x}function mo(W,D){const K=function(Ee,Ne){let qe=Ne;const ut=Ee.x,wt=Ee.y;let Ot,ar=-1/0;do{if(wt<=qe.y&&wt>=qe.next.y&&qe.next.y!==qe.y){const sa=qe.x+(wt-qe.y)*(qe.next.x-qe.x)/(qe.next.y-qe.y);if(sa<=ut&&sa>ar&&(ar=sa,Ot=qe.x=qe.x&&qe.x>=Sr&&ut!==qe.x&&$(wtOt.x||qe.x===Ot.x&&ye(Ot,qe)))&&(Ot=qe,Yr=sa)}qe=qe.next}while(qe!==lr);return Ot}(W,D);if(!K)return D;const ve=Bt(K,W);return kl(ve,ve.next),kl(K,K.next)}function ye(W,D){return Be(W.prev,W,D.prev)<0&&Be(D.next,W,W.next)<0}function j(W,D,K,ve,Ee){return(W=1431655765&((W=858993459&((W=252645135&((W=16711935&((W=(W-K)*Ee|0)|W<<8))|W<<4))|W<<2))|W<<1))|(D=1431655765&((D=858993459&((D=252645135&((D=16711935&((D=(D-ve)*Ee|0)|D<<8))|D<<4))|D<<2))|D<<1))<<1}function ce(W){let D=W,K=W;do(D.x=(W-qe)*(Ne-ut)&&(W-qe)*(ve-ut)>=(K-qe)*(D-ut)&&(K-qe)*(Ne-ut)>=(Ee-qe)*(ve-ut)}function ge(W,D){return W.next.i!==D.i&&W.prev.i!==D.i&&!function(K,ve){let Ee=K;do{if(Ee.i!==K.i&&Ee.next.i!==K.i&&Ee.i!==ve.i&&Ee.next.i!==ve.i&&st(Ee,Ee.next,K,ve))return!0;Ee=Ee.next}while(Ee!==K);return!1}(W,D)&&(pt(W,D)&&pt(D,W)&&function(K,ve){let Ee=K,Ne=!1;const qe=(K.x+ve.x)/2,ut=(K.y+ve.y)/2;do Ee.y>ut!=Ee.next.y>ut&&Ee.next.y!==Ee.y&&qe<(Ee.next.x-Ee.x)*(ut-Ee.y)/(Ee.next.y-Ee.y)+Ee.x&&(Ne=!Ne),Ee=Ee.next;while(Ee!==K);return Ne}(W,D)&&(Be(W.prev,W,D.prev)||Be(W,D.prev,D))||rt(W,D)&&Be(W.prev,W,W.next)>0&&Be(D.prev,D,D.next)>0)}function Be(W,D,K){return(D.y-W.y)*(K.x-D.x)-(D.x-W.x)*(K.y-D.y)}function rt(W,D){return W.x===D.x&&W.y===D.y}function st(W,D,K,ve){const Ee=Qe(Be(W,D,K)),Ne=Qe(Be(W,D,ve)),qe=Qe(Be(K,ve,W)),ut=Qe(Be(K,ve,D));return Ee!==Ne&&qe!==ut||!(Ee!==0||!Ge(W,K,D))||!(Ne!==0||!Ge(W,ve,D))||!(qe!==0||!Ge(K,W,ve))||!(ut!==0||!Ge(K,D,ve))}function Ge(W,D,K){return D.x<=Math.max(W.x,K.x)&&D.x>=Math.min(W.x,K.x)&&D.y<=Math.max(W.y,K.y)&&D.y>=Math.min(W.y,K.y)}function Qe(W){return W>0?1:W<0?-1:0}function pt(W,D){return Be(W.prev,W,W.next)<0?Be(W,D,W.next)>=0&&Be(W,W.prev,D)>=0:Be(W,D,W.prev)<0||Be(W,W.next,D)<0}function Bt(W,D){const K=Xt(W.i,W.x,W.y),ve=Xt(D.i,D.x,D.y),Ee=W.next,Ne=D.prev;return W.next=D,D.prev=W,K.next=Ee,Ee.prev=K,ve.next=K,K.prev=ve,Ne.next=ve,ve.prev=Ne,ve}function It(W,D,K,ve){const Ee=Xt(W,D,K);return ve?(Ee.next=ve.next,Ee.prev=ve,ve.next.prev=Ee,ve.next=Ee):(Ee.prev=Ee,Ee.next=Ee),Ee}function Nt(W){W.next.prev=W.prev,W.prev.next=W.next,W.prevZ&&(W.prevZ.nextZ=W.nextZ),W.nextZ&&(W.nextZ.prevZ=W.prevZ)}function Xt(W,D,K){return{i:W,x:D,y:K,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function qt(W,D,K){const ve=K.patternDependencies;let Ee=!1;for(const Ne of D){const qe=Ne.paint.get(`${W}-pattern`);qe.isConstant()||(Ee=!0);const ut=qe.constantOr(null);ut&&(Ee=!0,ve[ut.to]=!0,ve[ut.from]=!0)}return Ee}function Mt(W,D,K,ve,Ee){const Ne=Ee.patternDependencies;for(const qe of D){const ut=qe.paint.get(`${W}-pattern`).value;if(ut.kind!=="constant"){let wt=ut.evaluate({zoom:ve-1},K,{},Ee.availableImages),Ot=ut.evaluate({zoom:ve},K,{},Ee.availableImages),ar=ut.evaluate({zoom:ve+1},K,{},Ee.availableImages);wt=wt&&wt.name?wt.name:wt,Ot=Ot&&Ot.name?Ot.name:Ot,ar=ar&&ar.name?ar.name:ar,Ne[wt]=!0,Ne[Ot]=!0,Ne[ar]=!0,K.patterns[qe.id]={min:wt,mid:Ot,max:ar}}}return K}class Ft{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new fl,this.indexArray=new jt,this.indexArray2=new sr,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.hasPattern=qt("fill",this.layers,K);const Ee=this.layers[0].layout.get("fill-sort-key"),Ne=!Ee.isConstant(),qe=[];for(const{feature:ut,id:wt,index:Ot,sourceLayerIndex:ar}of D){const lr=this.layers[0]._featureFilter.needGeometry,Sr=ir(ut,lr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Sr,ve))continue;const Fr=Ne?Ee.evaluate(Sr,{},ve,K.availableImages):void 0,Yr={id:wt,properties:ut.properties,type:ut.type,sourceLayerIndex:ar,index:Ot,geometry:lr?Sr.geometry:lt(ut),patterns:{},sortKey:Fr};qe.push(Yr)}Ne&&qe.sort((ut,wt)=>ut.sortKey-wt.sortKey);for(const ut of qe){const{geometry:wt,index:Ot,sourceLayerIndex:ar}=ut;if(this.hasPattern){const lr=Mt("fill",this.layers,ut,this.zoom,K);this.patternFeatures.push(lr)}else this.addFeature(ut,wt,Ot,ve,{});K.featureIndex.insert(D[Ot].feature,wt,Ot,ar,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}addFeatures(D,K,ve){for(const Ee of this.patternFeatures)this.addFeature(Ee,Ee.geometry,Ee.index,K,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,Us),this.indexBuffer=D.createIndexBuffer(this.indexArray),this.indexBuffer2=D.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(D,K,ve,Ee,Ne){for(const qe of Vu(K,500)){let ut=0;for(const Fr of qe)ut+=Fr.length;const wt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray),Ot=wt.vertexLength,ar=[],lr=[];for(const Fr of qe){if(Fr.length===0)continue;Fr!==qe[0]&&lr.push(ar.length/2);const Yr=this.segments2.prepareSegment(Fr.length,this.layoutVertexArray,this.indexArray2),sa=Yr.vertexLength;this.layoutVertexArray.emplaceBack(Fr[0].x,Fr[0].y),this.indexArray2.emplaceBack(sa+Fr.length-1,sa),ar.push(Fr[0].x),ar.push(Fr[0].y);for(let _a=1;_a>3}if(Ee--,ve===1||ve===2)Ne+=W.readSVarint(),qe+=W.readSVarint(),ve===1&&(D&&ut.push(D),D=[]),D.push(new Ha(Ne,qe));else{if(ve!==7)throw new Error("unknown command "+ve);D&&D.push(D[0].clone())}}return D&&ut.push(D),ut},qa.prototype.bbox=function(){var W=this._pbf;W.pos=this._geometry;for(var D=W.readVarint()+W.pos,K=1,ve=0,Ee=0,Ne=0,qe=1/0,ut=-1/0,wt=1/0,Ot=-1/0;W.pos>3}if(ve--,K===1||K===2)(Ee+=W.readSVarint())ut&&(ut=Ee),(Ne+=W.readSVarint())Ot&&(Ot=Ne);else if(K!==7)throw new Error("unknown command "+K)}return[qe,wt,ut,Ot]},qa.prototype.toGeoJSON=function(W,D,K){var ve,Ee,Ne=this.extent*Math.pow(2,K),qe=this.extent*W,ut=this.extent*D,wt=this.loadGeometry(),Ot=qa.types[this.type];function ar(Fr){for(var Yr=0;Yr>3;Ee=qe===1?ve.readString():qe===2?ve.readFloat():qe===3?ve.readDouble():qe===4?ve.readVarint64():qe===5?ve.readVarint():qe===6?ve.readSVarint():qe===7?ve.readBoolean():null}return Ee}(K))}yo.prototype.feature=function(W){if(W<0||W>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[W];var D=this._pbf.readVarint()+this._pbf.pos;return new Gn(this._pbf,D,this.extent,this._keys,this._values)};var ss=ti;function rs(W,D,K){if(W===3){var ve=new ss(K,K.readVarint()+K.pos);ve.length&&(D[ve.name]=ve)}}ja.VectorTile=function(W,D){this.layers=W.readFields(rs,{},D)},ja.VectorTileFeature=on,ja.VectorTileLayer=ti;const fs=ja.VectorTileFeature.types,ls=Math.pow(2,13);function Cl(W,D,K,ve,Ee,Ne,qe,ut){W.emplaceBack(D,K,2*Math.floor(ve*ls)+qe,Ee*ls*2,Ne*ls*2,Math.round(ut))}class Qo{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.layoutVertexArray=new Dl,this.centroidVertexArray=new ko,this.indexArray=new jt,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.features=[],this.hasPattern=qt("fill-extrusion",this.layers,K);for(const{feature:Ee,id:Ne,index:qe,sourceLayerIndex:ut}of D){const wt=this.layers[0]._featureFilter.needGeometry,Ot=ir(Ee,wt);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Ot,ve))continue;const ar={id:Ne,sourceLayerIndex:ut,index:qe,geometry:wt?Ot.geometry:lt(Ee),properties:Ee.properties,type:Ee.type,patterns:{}};this.hasPattern?this.features.push(Mt("fill-extrusion",this.layers,ar,this.zoom,K)):this.addFeature(ar,ar.geometry,qe,ve,{}),K.featureIndex.insert(Ee,ar.geometry,qe,ut,this.index,!0)}}addFeatures(D,K,ve){for(const Ee of this.features){const{geometry:Ne}=Ee;this.addFeature(Ee,Ne,Ee.index,K,ve)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,xa),this.centroidVertexBuffer=D.createVertexBuffer(this.centroidVertexArray,ka.members,!0),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(D,K,ve,Ee,Ne){for(const qe of Vu(K,500)){const ut={x:0,y:0,vertexCount:0};let wt=0;for(const Yr of qe)wt+=Yr.length;let Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const Yr of qe){if(Yr.length===0||cc(Yr))continue;let sa=0;for(let _a=0;_a=1){const zn=Yr[_a-1];if(!tl(Wa,zn)){Ot.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const vn=Wa.sub(zn)._perp()._unit(),Cn=zn.dist(Wa);sa+Cn>32768&&(sa=0),Cl(this.layoutVertexArray,Wa.x,Wa.y,vn.x,vn.y,0,0,sa),Cl(this.layoutVertexArray,Wa.x,Wa.y,vn.x,vn.y,0,1,sa),ut.x+=2*Wa.x,ut.y+=2*Wa.y,ut.vertexCount+=2,sa+=Cn,Cl(this.layoutVertexArray,zn.x,zn.y,vn.x,vn.y,0,0,sa),Cl(this.layoutVertexArray,zn.x,zn.y,vn.x,vn.y,0,1,sa),ut.x+=2*zn.x,ut.y+=2*zn.y,ut.vertexCount+=2;const $n=Ot.vertexLength;this.indexArray.emplaceBack($n,$n+2,$n+1),this.indexArray.emplaceBack($n+1,$n+2,$n+3),Ot.vertexLength+=4,Ot.primitiveLength+=2}}}}if(Ot.vertexLength+wt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(Ot=this.segments.prepareSegment(wt,this.layoutVertexArray,this.indexArray)),fs[D.type]!=="Polygon")continue;const ar=[],lr=[],Sr=Ot.vertexLength;for(const Yr of qe)if(Yr.length!==0){Yr!==qe[0]&&lr.push(ar.length/2);for(let sa=0;sazs)||W.y===D.y&&(W.y<0||W.y>zs)}function cc(W){return W.every(D=>D.x<0)||W.every(D=>D.x>zs)||W.every(D=>D.y<0)||W.every(D=>D.y>zs)}let Dc;dn("FillExtrusionBucket",Qo,{omit:["layers","features"]});var yh={get paint(){return Dc=Dc||new ze({"fill-extrusion-opacity":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new io(ae["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Yu(ae["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new io(ae["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new io(ae["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class _h extends ne{constructor(D){super(D,yh)}createBucket(D){return new Qo(D)}queryRadius(){return ya(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(D,K,ve,Ee,Ne,qe,ut,wt){const Ot=Ra(D,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),qe.angle,ut),ar=this.paint.get("fill-extrusion-height").evaluate(K,ve),lr=this.paint.get("fill-extrusion-base").evaluate(K,ve),Sr=function(Yr,sa,_a,Wa){const zn=[];for(const vn of Yr){const Cn=[vn.x,vn.y,0,1];An(Cn,Cn,sa),zn.push(new o(Cn[0]/Cn[3],Cn[1]/Cn[3]))}return zn}(Ot,wt),Fr=function(Yr,sa,_a,Wa){const zn=[],vn=[],Cn=Wa[8]*sa,$n=Wa[9]*sa,gi=Wa[10]*sa,Ji=Wa[11]*sa,as=Wa[8]*_a,oo=Wa[9]*_a,$i=Wa[10]*_a,Ro=Wa[11]*_a;for(const To of Yr){const _o=[],li=[];for(const jo of To){const Do=jo.x,xs=jo.y,Tu=Wa[0]*Do+Wa[4]*xs+Wa[12],gu=Wa[1]*Do+Wa[5]*xs+Wa[13],vf=Wa[2]*Do+Wa[6]*xs+Wa[14],fh=Wa[3]*Do+Wa[7]*xs+Wa[15],zc=vf+gi,nf=fh+Ji,rh=Tu+as,ah=gu+oo,nh=vf+$i,fc=fh+Ro,df=new o((Tu+Cn)/nf,(gu+$n)/nf);df.z=zc/nf,_o.push(df);const Xf=new o(rh/fc,ah/fc);Xf.z=nh/fc,li.push(Xf)}zn.push(_o),vn.push(li)}return[zn,vn]}(Ee,lr,ar,wt);return function(Yr,sa,_a){let Wa=1/0;Kr(_a,sa)&&(Wa=Lh(_a,sa[0]));for(let zn=0;znK.id),this.index=D.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(K=>{this.gradients[K.id]={}}),this.layoutVertexArray=new ou,this.layoutVertexArray2=new pe,this.indexArray=new jt,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.hasPattern=qt("line",this.layers,K);const Ee=this.layers[0].layout.get("line-sort-key"),Ne=!Ee.isConstant(),qe=[];for(const{feature:ut,id:wt,index:Ot,sourceLayerIndex:ar}of D){const lr=this.layers[0]._featureFilter.needGeometry,Sr=ir(ut,lr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Sr,ve))continue;const Fr=Ne?Ee.evaluate(Sr,{},ve):void 0,Yr={id:wt,properties:ut.properties,type:ut.type,sourceLayerIndex:ar,index:Ot,geometry:lr?Sr.geometry:lt(ut),patterns:{},sortKey:Fr};qe.push(Yr)}Ne&&qe.sort((ut,wt)=>ut.sortKey-wt.sortKey);for(const ut of qe){const{geometry:wt,index:Ot,sourceLayerIndex:ar}=ut;if(this.hasPattern){const lr=Mt("line",this.layers,ut,this.zoom,K);this.patternFeatures.push(lr)}else this.addFeature(ut,wt,Ot,ve,{});K.featureIndex.insert(D[Ot].feature,wt,Ot,ar,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}addFeatures(D,K,ve){for(const Ee of this.patternFeatures)this.addFeature(Ee,Ee.geometry,Ee.index,K,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=D.createVertexBuffer(this.layoutVertexArray2,Oh)),this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,Fh),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(D){if(D.properties&&Object.prototype.hasOwnProperty.call(D.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(D.properties,"mapbox_clip_end"))return{start:+D.properties.mapbox_clip_start,end:+D.properties.mapbox_clip_end}}addFeature(D,K,ve,Ee,Ne){const qe=this.layers[0].layout,ut=qe.get("line-join").evaluate(D,{}),wt=qe.get("line-cap"),Ot=qe.get("line-miter-limit"),ar=qe.get("line-round-limit");this.lineClips=this.lineFeatureClips(D);for(const lr of K)this.addLine(lr,D,ut,wt,Ot,ar);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,D,ve,Ne,Ee)}addLine(D,K,ve,Ee,Ne,qe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Wa=0;Wa=2&&D[wt-1].equals(D[wt-2]);)wt--;let Ot=0;for(;Ot0;if(Ji&&Wa>Ot){const Ro=Sr.dist(Fr);if(Ro>2*ar){const To=Sr.sub(Sr.sub(Fr)._mult(ar/Ro)._round());this.updateDistance(Fr,To),this.addCurrentVertex(To,sa,0,0,lr),Fr=To}}const oo=Fr&&Yr;let $i=oo?ve:ut?"butt":Ee;if(oo&&$i==="round"&&($nNe&&($i="bevel"),$i==="bevel"&&($n>2&&($i="flipbevel"),$n100)zn=_a.mult(-1);else{const Ro=$n*sa.add(_a).mag()/sa.sub(_a).mag();zn._perp()._mult(Ro*(as?-1:1))}this.addCurrentVertex(Sr,zn,0,0,lr),this.addCurrentVertex(Sr,zn.mult(-1),0,0,lr)}else if($i==="bevel"||$i==="fakeround"){const Ro=-Math.sqrt($n*$n-1),To=as?Ro:0,_o=as?0:Ro;if(Fr&&this.addCurrentVertex(Sr,sa,To,_o,lr),$i==="fakeround"){const li=Math.round(180*gi/Math.PI/20);for(let jo=1;jo2*ar){const To=Sr.add(Yr.sub(Sr)._mult(ar/Ro)._round());this.updateDistance(Sr,To),this.addCurrentVertex(To,_a,0,0,lr),Sr=To}}}}addCurrentVertex(D,K,ve,Ee,Ne,qe=!1){const ut=K.y*Ee-K.x,wt=-K.y-K.x*Ee;this.addHalfVertex(D,K.x+K.y*ve,K.y-K.x*ve,qe,!1,ve,Ne),this.addHalfVertex(D,ut,wt,qe,!0,-Ee,Ne),this.distance>xh/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(D,K,ve,Ee,Ne,qe))}addHalfVertex({x:D,y:K},ve,Ee,Ne,qe,ut,wt){const Ot=.5*(this.lineClips?this.scaledDistance*(xh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((D<<1)+(Ne?1:0),(K<<1)+(qe?1:0),Math.round(63*ve)+128,Math.round(63*Ee)+128,1+(ut===0?0:ut<0?-1:1)|(63&Ot)<<2,Ot>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const ar=wt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ar),wt.primitiveLength++),qe?this.e2=ar:this.e1=ar}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(D,K){this.distance+=D.dist(K),this.updateScaledDistance()}}let bh,Wv;dn("LineBucket",Ph,{omit:["layers","patternFeatures"]});var fv={get paint(){return Wv=Wv||new ze({"line-opacity":new io(ae.paint_line["line-opacity"]),"line-color":new io(ae.paint_line["line-color"]),"line-translate":new Yi(ae.paint_line["line-translate"]),"line-translate-anchor":new Yi(ae.paint_line["line-translate-anchor"]),"line-width":new io(ae.paint_line["line-width"]),"line-gap-width":new io(ae.paint_line["line-gap-width"]),"line-offset":new io(ae.paint_line["line-offset"]),"line-blur":new io(ae.paint_line["line-blur"]),"line-dasharray":new du(ae.paint_line["line-dasharray"]),"line-pattern":new Yu(ae.paint_line["line-pattern"]),"line-gradient":new iu(ae.paint_line["line-gradient"])})},get layout(){return bh=bh||new ze({"line-cap":new Yi(ae.layout_line["line-cap"]),"line-join":new io(ae.layout_line["line-join"]),"line-miter-limit":new Yi(ae.layout_line["line-miter-limit"]),"line-round-limit":new Yi(ae.layout_line["line-round-limit"]),"line-sort-key":new io(ae.layout_line["line-sort-key"])})}};class rf extends io{possiblyEvaluate(D,K){return K=new os(Math.floor(K.zoom),{now:K.now,fadeDuration:K.fadeDuration,zoomHistory:K.zoomHistory,transition:K.transition}),super.possiblyEvaluate(D,K)}evaluate(D,K,ve,Ee){return K=M({},K,{zoom:Math.floor(K.zoom)}),super.evaluate(D,K,ve,Ee)}}let hv;class Xv extends ne{constructor(D){super(D,fv),this.gradientVersion=0,hv||(hv=new rf(fv.paint.properties["line-width"].specification),hv.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(D){if(D==="line-gradient"){const K=this.gradientExpression();this.stepInterpolant=!!function(ve){return ve._styleExpression!==void 0}(K)&&K._styleExpression.expression instanceof Ta,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(D,K){super.recalculate(D,K),this.paint._values["line-floorwidth"]=hv.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,D)}createBucket(D){return new Ph(D)}queryRadius(D){const K=D,ve=Tf(Ur("line-width",this,K),Ur("line-gap-width",this,K)),Ee=Ur("line-offset",this,K);return ve/2+Math.abs(Ee)+ya(this.paint.get("line-translate"))}queryIntersectsFeature(D,K,ve,Ee,Ne,qe,ut){const wt=Ra(D,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),qe.angle,ut),Ot=ut/2*Tf(this.paint.get("line-width").evaluate(K,ve),this.paint.get("line-gap-width").evaluate(K,ve)),ar=this.paint.get("line-offset").evaluate(K,ve);return ar&&(Ee=function(lr,Sr){const Fr=[];for(let Yr=0;Yr=3){for(let _a=0;_a0?D+2*W:W}const Sv=ft([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),pd=ft([{name:"a_projected_pos",components:3,type:"Float32"}],4);ft([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const gd=ft([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);ft([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Zv=ft([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Mv=ft([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ev(W,D,K){return W.sections.forEach(ve=>{ve.text=function(Ee,Ne,qe){const ut=Ne.layout.get("text-transform").evaluate(qe,{});return ut==="uppercase"?Ee=Ee.toLocaleUpperCase():ut==="lowercase"&&(Ee=Ee.toLocaleLowerCase()),ws.applyArabicShaping&&(Ee=ws.applyArabicShaping(Ee)),Ee}(ve.text,D,K)}),W}ft([{name:"triangle",components:3,type:"Uint16"}]),ft([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ft([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),ft([{type:"Float32",name:"offsetX"}]),ft([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ft([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const Fu={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var Nl=24,Wf=Jl,Yv=function(W,D,K,ve,Ee){var Ne,qe,ut=8*Ee-ve-1,wt=(1<>1,ar=-7,lr=Ee-1,Sr=-1,Fr=W[D+lr];for(lr+=Sr,Ne=Fr&(1<<-ar)-1,Fr>>=-ar,ar+=ut;ar>0;Ne=256*Ne+W[D+lr],lr+=Sr,ar-=8);for(qe=Ne&(1<<-ar)-1,Ne>>=-ar,ar+=ve;ar>0;qe=256*qe+W[D+lr],lr+=Sr,ar-=8);if(Ne===0)Ne=1-Ot;else{if(Ne===wt)return qe?NaN:1/0*(Fr?-1:1);qe+=Math.pow(2,ve),Ne-=Ot}return(Fr?-1:1)*qe*Math.pow(2,Ne-ve)},md=function(W,D,K,ve,Ee,Ne){var qe,ut,wt,Ot=8*Ne-Ee-1,ar=(1<>1,Sr=Ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,Fr=0,Yr=1,sa=D<0||D===0&&1/D<0?1:0;for(D=Math.abs(D),isNaN(D)||D===1/0?(ut=isNaN(D)?1:0,qe=ar):(qe=Math.floor(Math.log(D)/Math.LN2),D*(wt=Math.pow(2,-qe))<1&&(qe--,wt*=2),(D+=qe+lr>=1?Sr/wt:Sr*Math.pow(2,1-lr))*wt>=2&&(qe++,wt/=2),qe+lr>=ar?(ut=0,qe=ar):qe+lr>=1?(ut=(D*wt-1)*Math.pow(2,Ee),qe+=lr):(ut=D*Math.pow(2,lr-1)*Math.pow(2,Ee),qe=0));Ee>=8;W[K+Fr]=255&ut,Fr+=Yr,ut/=256,Ee-=8);for(qe=qe<0;W[K+Fr]=255&qe,Fr+=Yr,qe/=256,Ot-=8);W[K+Fr-Yr]|=128*sa};function Jl(W){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(W)?W:new Uint8Array(W||0),this.pos=0,this.type=0,this.length=this.buf.length}Jl.Varint=0,Jl.Fixed64=1,Jl.Bytes=2,Jl.Fixed32=5;var fp=4294967296,kv=1/fp,Jp=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function wh(W){return W.type===Jl.Bytes?W.readVarint()+W.pos:W.pos+1}function Cv(W,D,K){return K?4294967296*D+(W>>>0):4294967296*(D>>>0)+(W>>>0)}function Qp(W,D,K){var ve=D<=16383?1:D<=2097151?2:D<=268435455?3:Math.floor(Math.log(D)/(7*Math.LN2));K.realloc(ve);for(var Ee=K.pos-1;Ee>=W;Ee--)K.buf[Ee+ve]=K.buf[Ee]}function hp(W,D){for(var K=0;K>>8,W[K+2]=D>>>16,W[K+3]=D>>>24}function ry(W,D){return(W[D]|W[D+1]<<8|W[D+2]<<16)+(W[D+3]<<24)}Jl.prototype={destroy:function(){this.buf=null},readFields:function(W,D,K){for(K=K||this.length;this.pos>3,Ne=this.pos;this.type=7&ve,W(Ee,D,this),this.pos===Ne&&this.skip(ve)}return D},readMessage:function(W,D){return this.readFields(W,D,this.readVarint()+this.pos)},readFixed32:function(){var W=t0(this.buf,this.pos);return this.pos+=4,W},readSFixed32:function(){var W=ry(this.buf,this.pos);return this.pos+=4,W},readFixed64:function(){var W=t0(this.buf,this.pos)+t0(this.buf,this.pos+4)*fp;return this.pos+=8,W},readSFixed64:function(){var W=t0(this.buf,this.pos)+ry(this.buf,this.pos+4)*fp;return this.pos+=8,W},readFloat:function(){var W=Yv(this.buf,this.pos,!0,23,4);return this.pos+=4,W},readDouble:function(){var W=Yv(this.buf,this.pos,!0,52,8);return this.pos+=8,W},readVarint:function(W){var D,K,ve=this.buf;return D=127&(K=ve[this.pos++]),K<128?D:(D|=(127&(K=ve[this.pos++]))<<7,K<128?D:(D|=(127&(K=ve[this.pos++]))<<14,K<128?D:(D|=(127&(K=ve[this.pos++]))<<21,K<128?D:function(Ee,Ne,qe){var ut,wt,Ot=qe.buf;if(ut=(112&(wt=Ot[qe.pos++]))>>4,wt<128||(ut|=(127&(wt=Ot[qe.pos++]))<<3,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<10,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<17,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<24,wt<128)||(ut|=(1&(wt=Ot[qe.pos++]))<<31,wt<128))return Cv(Ee,ut,Ne);throw new Error("Expected varint not more than 10 bytes")}(D|=(15&(K=ve[this.pos]))<<28,W,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var W=this.readVarint();return W%2==1?(W+1)/-2:W/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var W=this.readVarint()+this.pos,D=this.pos;return this.pos=W,W-D>=12&&Jp?function(K,ve,Ee){return Jp.decode(K.subarray(ve,Ee))}(this.buf,D,W):function(K,ve,Ee){for(var Ne="",qe=ve;qe239?4:ar>223?3:ar>191?2:1;if(qe+Sr>Ee)break;Sr===1?ar<128&&(lr=ar):Sr===2?(192&(ut=K[qe+1]))==128&&(lr=(31&ar)<<6|63&ut)<=127&&(lr=null):Sr===3?(wt=K[qe+2],(192&(ut=K[qe+1]))==128&&(192&wt)==128&&((lr=(15&ar)<<12|(63&ut)<<6|63&wt)<=2047||lr>=55296&&lr<=57343)&&(lr=null)):Sr===4&&(wt=K[qe+2],Ot=K[qe+3],(192&(ut=K[qe+1]))==128&&(192&wt)==128&&(192&Ot)==128&&((lr=(15&ar)<<18|(63&ut)<<12|(63&wt)<<6|63&Ot)<=65535||lr>=1114112)&&(lr=null)),lr===null?(lr=65533,Sr=1):lr>65535&&(lr-=65536,Ne+=String.fromCharCode(lr>>>10&1023|55296),lr=56320|1023&lr),Ne+=String.fromCharCode(lr),qe+=Sr}return Ne}(this.buf,D,W)},readBytes:function(){var W=this.readVarint()+this.pos,D=this.buf.subarray(this.pos,W);return this.pos=W,D},readPackedVarint:function(W,D){if(this.type!==Jl.Bytes)return W.push(this.readVarint(D));var K=wh(this);for(W=W||[];this.pos127;);else if(D===Jl.Bytes)this.pos=this.readVarint()+this.pos;else if(D===Jl.Fixed32)this.pos+=4;else{if(D!==Jl.Fixed64)throw new Error("Unimplemented type: "+D);this.pos+=8}},writeTag:function(W,D){this.writeVarint(W<<3|D)},realloc:function(W){for(var D=this.length||16;D268435455||W<0?function(D,K){var ve,Ee;if(D>=0?(ve=D%4294967296|0,Ee=D/4294967296|0):(Ee=~(-D/4294967296),4294967295^(ve=~(-D%4294967296))?ve=ve+1|0:(ve=0,Ee=Ee+1|0)),D>=18446744073709552e3||D<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");K.realloc(10),function(Ne,qe,ut){ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,ut.buf[ut.pos]=127&(Ne>>>=7)}(ve,0,K),function(Ne,qe){var ut=(7&Ne)<<4;qe.buf[qe.pos++]|=ut|((Ne>>>=3)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne)))))}(Ee,K)}(W,this):(this.realloc(4),this.buf[this.pos++]=127&W|(W>127?128:0),W<=127||(this.buf[this.pos++]=127&(W>>>=7)|(W>127?128:0),W<=127||(this.buf[this.pos++]=127&(W>>>=7)|(W>127?128:0),W<=127||(this.buf[this.pos++]=W>>>7&127))))},writeSVarint:function(W){this.writeVarint(W<0?2*-W-1:2*W)},writeBoolean:function(W){this.writeVarint(!!W)},writeString:function(W){W=String(W),this.realloc(4*W.length),this.pos++;var D=this.pos;this.pos=function(ve,Ee,Ne){for(var qe,ut,wt=0;wt55295&&qe<57344){if(!ut){qe>56319||wt+1===Ee.length?(ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189):ut=qe;continue}if(qe<56320){ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189,ut=qe;continue}qe=ut-55296<<10|qe-56320|65536,ut=null}else ut&&(ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189,ut=null);qe<128?ve[Ne++]=qe:(qe<2048?ve[Ne++]=qe>>6|192:(qe<65536?ve[Ne++]=qe>>12|224:(ve[Ne++]=qe>>18|240,ve[Ne++]=qe>>12&63|128),ve[Ne++]=qe>>6&63|128),ve[Ne++]=63&qe|128)}return Ne}(this.buf,W,this.pos);var K=this.pos-D;K>=128&&Qp(D,K,this),this.pos=D-1,this.writeVarint(K),this.pos+=K},writeFloat:function(W){this.realloc(4),md(this.buf,W,this.pos,!0,23,4),this.pos+=4},writeDouble:function(W){this.realloc(8),md(this.buf,W,this.pos,!0,52,8),this.pos+=8},writeBytes:function(W){var D=W.length;this.writeVarint(D),this.realloc(D);for(var K=0;K=128&&Qp(K,ve,this),this.pos=K-1,this.writeVarint(ve),this.pos+=ve},writeMessage:function(W,D,K){this.writeTag(W,Jl.Bytes),this.writeRawMessage(D,K)},writePackedVarint:function(W,D){D.length&&this.writeMessage(W,hp,D)},writePackedSVarint:function(W,D){D.length&&this.writeMessage(W,Cx,D)},writePackedBoolean:function(W,D){D.length&&this.writeMessage(W,Ix,D)},writePackedFloat:function(W,D){D.length&&this.writeMessage(W,Lx,D)},writePackedDouble:function(W,D){D.length&&this.writeMessage(W,Px,D)},writePackedFixed32:function(W,D){D.length&&this.writeMessage(W,Rx,D)},writePackedSFixed32:function(W,D){D.length&&this.writeMessage(W,Dx,D)},writePackedFixed64:function(W,D){D.length&&this.writeMessage(W,zx,D)},writePackedSFixed64:function(W,D){D.length&&this.writeMessage(W,e0,D)},writeBytesField:function(W,D){this.writeTag(W,Jl.Bytes),this.writeBytes(D)},writeFixed32Field:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeFixed32(D)},writeSFixed32Field:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeSFixed32(D)},writeFixed64Field:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeFixed64(D)},writeSFixed64Field:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeSFixed64(D)},writeVarintField:function(W,D){this.writeTag(W,Jl.Varint),this.writeVarint(D)},writeSVarintField:function(W,D){this.writeTag(W,Jl.Varint),this.writeSVarint(D)},writeStringField:function(W,D){this.writeTag(W,Jl.Bytes),this.writeString(D)},writeFloatField:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeFloat(D)},writeDoubleField:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeDouble(D)},writeBooleanField:function(W,D){this.writeVarintField(W,!!D)}};var pg=r(Wf);const r0=3;function Fx(W,D,K){W===1&&K.readMessage(ay,D)}function ay(W,D,K){if(W===3){const{id:ve,bitmap:Ee,width:Ne,height:qe,left:ut,top:wt,advance:Ot}=K.readMessage(gg,{});D.push({id:ve,bitmap:new eo({width:Ne+2*r0,height:qe+2*r0},Ee),metrics:{width:Ne,height:qe,left:ut,top:wt,advance:Ot}})}}function gg(W,D,K){W===1?D.id=K.readVarint():W===2?D.bitmap=K.readBytes():W===3?D.width=K.readVarint():W===4?D.height=K.readVarint():W===5?D.left=K.readSVarint():W===6?D.top=K.readSVarint():W===7&&(D.advance=K.readVarint())}const mg=r0;function a0(W){let D=0,K=0;for(const qe of W)D+=qe.w*qe.h,K=Math.max(K,qe.w);W.sort((qe,ut)=>ut.h-qe.h);const ve=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(D/.95)),K),h:1/0}];let Ee=0,Ne=0;for(const qe of W)for(let ut=ve.length-1;ut>=0;ut--){const wt=ve[ut];if(!(qe.w>wt.w||qe.h>wt.h)){if(qe.x=wt.x,qe.y=wt.y,Ne=Math.max(Ne,qe.y+qe.h),Ee=Math.max(Ee,qe.x+qe.w),qe.w===wt.w&&qe.h===wt.h){const Ot=ve.pop();ut=0&&ve>=D&&i0[this.text.charCodeAt(ve)];ve--)K--;this.text=this.text.substring(D,K),this.sectionIndex=this.sectionIndex.slice(D,K)}substring(D,K){const ve=new xd;return ve.text=this.text.substring(D,K),ve.sectionIndex=this.sectionIndex.slice(D,K),ve.sections=this.sections,ve}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((D,K)=>Math.max(D,this.sections[K].scale),0)}addTextSection(D,K){this.text+=D.text,this.sections.push(vp.forText(D.scale,D.fontStack||K));const ve=this.sections.length-1;for(let Ee=0;Ee=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function n0(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr){const sa=xd.fromFeature(W,Ee);let _a;lr===e.ah.vertical&&sa.verticalizePunctuation();const{processBidirectionalText:Wa,processStyledBidirectionalText:zn}=ws;if(Wa&&sa.sections.length===1){_a=[];const $n=Wa(sa.toString(),$v(sa,Ot,Ne,D,ve,Fr));for(const gi of $n){const Ji=new xd;Ji.text=gi,Ji.sections=sa.sections;for(let as=0;as0&&Nh>Sf&&(Sf=Nh)}else{const Au=Ji[ml.fontStack],Mf=Au&&Au[su];if(Mf&&Mf.rect)Cd=Mf.rect,Bu=Mf.metrics;else{const Nh=gi[ml.fontStack],Sh=Nh&&Nh[su];if(!Sh)continue;Bu=Sh.metrics}ic=(df-ml.scale)*Nl}Zf?($n.verticalizable=!0,ih.push({glyph:su,imageName:jh,x:xs,y:Tu+ic,vertical:Zf,scale:ml.scale,fontStack:ml.fontStack,sectionIndex:Ql,metrics:Bu,rect:Cd}),xs+=Vh*ml.scale+li):(ih.push({glyph:su,imageName:jh,x:xs,y:Tu+ic,vertical:Zf,scale:ml.scale,fontStack:ml.fontStack,sectionIndex:Ql,metrics:Bu,rect:Cd}),xs+=Bu.advance*ml.scale+li)}ih.length!==0&&(gu=Math.max(xs-li,gu),Nx(ih,0,ih.length-1,fh,Sf)),xs=0;const Ah=$i*df+Sf;Ff.lineOffset=Math.max(Sf,Xf),Tu+=Ah,vf=Math.max(Ah,vf),++zc}var nf;const rh=Tu-_d,{horizontalAlign:ah,verticalAlign:nh}=_g(Ro);(function(fc,df,Xf,Ff,ih,Sf,Ah,Ou,ml){const Ql=(df-Xf)*ih;let su=0;su=Sf!==Ah?-Ou*Ff-_d:(-Ff*ml+.5)*Ah;for(const ic of fc)for(const Bu of ic.positionedGlyphs)Bu.x+=Ql,Bu.y+=su})($n.positionedLines,fh,ah,nh,gu,vf,$i,rh,oo.length),$n.top+=-nh*rh,$n.bottom=$n.top+rh,$n.left+=-ah*gu,$n.right=$n.left+gu}(Cn,D,K,ve,_a,qe,ut,wt,lr,Ot,Sr,Yr),!function($n){for(const gi of $n)if(gi.positionedGlyphs.length!==0)return!1;return!0}(vn)&&Cn}const i0={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Ox={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Bx={40:!0};function o0(W,D,K,ve,Ee,Ne){if(D.imageName){const qe=ve[D.imageName];return qe?qe.displaySize[0]*D.scale*Nl/Ne+Ee:0}{const qe=K[D.fontStack],ut=qe&&qe[W];return ut?ut.metrics.advance*D.scale+Ee:0}}function iy(W,D,K,ve){const Ee=Math.pow(W-D,2);return ve?W=0;let Ot=0;for(let lr=0;lrOt){const ar=Math.ceil(Ne/Ot);Ee*=ar/qe,qe=ar}return{x1:ve,y1:Ee,x2:ve+Ne,y2:Ee+qe}}function sy(W,D,K,ve,Ee,Ne){const qe=W.image;let ut;if(qe.content){const _a=qe.content,Wa=qe.pixelRatio||1;ut=[_a[0]/Wa,_a[1]/Wa,qe.displaySize[0]-_a[2]/Wa,qe.displaySize[1]-_a[3]/Wa]}const wt=D.left*Ne,Ot=D.right*Ne;let ar,lr,Sr,Fr;K==="width"||K==="both"?(Fr=Ee[0]+wt-ve[3],lr=Ee[0]+Ot+ve[1]):(Fr=Ee[0]+(wt+Ot-qe.displaySize[0])/2,lr=Fr+qe.displaySize[0]);const Yr=D.top*Ne,sa=D.bottom*Ne;return K==="height"||K==="both"?(ar=Ee[1]+Yr-ve[0],Sr=Ee[1]+sa+ve[2]):(ar=Ee[1]+(Yr+sa-qe.displaySize[1])/2,Sr=ar+qe.displaySize[1]),{image:qe,top:ar,right:lr,bottom:Sr,left:Fr,collisionPadding:ut}}const dp=255,$h=128,Pv=dp*$h;function ly(W,D){const{expression:K}=D;if(K.kind==="constant")return{kind:"constant",layoutSize:K.evaluate(new os(W+1))};if(K.kind==="source")return{kind:"source"};{const{zoomStops:ve,interpolationType:Ee}=K;let Ne=0;for(;Neqe.id),this.index=D.index,this.pixelRatio=D.pixelRatio,this.sourceLayerIndex=D.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Oa([]),this.placementViewportMatrix=Oa([]);const K=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ly(this.zoom,K["text-size"]),this.iconSizeData=ly(this.zoom,K["icon-size"]);const ve=this.layers[0].layout,Ee=ve.get("symbol-sort-key"),Ne=ve.get("symbol-z-order");this.canOverlap=xg(ve,"text-overlap","text-allow-overlap")!=="never"||xg(ve,"icon-overlap","icon-allow-overlap")!=="never"||ve.get("text-ignore-placement")||ve.get("icon-ignore-placement"),this.sortFeaturesByKey=Ne!=="viewport-y"&&!Ee.isConstant(),this.sortFeaturesByY=(Ne==="viewport-y"||Ne==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,ve.get("symbol-placement")==="point"&&(this.writingModes=ve.get("text-writing-mode").map(qe=>e.ah[qe])),this.stateDependentLayerIds=this.layers.filter(qe=>qe.isStateDependent()).map(qe=>qe.id),this.sourceID=D.sourceID}createArrays(){this.text=new mc(new Ts(this.layers,this.zoom,D=>/^text/.test(D))),this.icon=new mc(new Ts(this.layers,this.zoom,D=>/^icon/.test(D))),this.glyphOffsetArray=new Go,this.lineVertexArray=new Ho,this.symbolInstances=new Ki,this.textAnchorOffsets=new Ko}calculateGlyphDependencies(D,K,ve,Ee,Ne){for(let qe=0;qe0)&&(qe.value.kind!=="constant"||qe.value.value.length>0),ar=wt.value.kind!=="constant"||!!wt.value.value||Object.keys(wt.parameters).length>0,lr=Ne.get("symbol-sort-key");if(this.features=[],!Ot&&!ar)return;const Sr=K.iconDependencies,Fr=K.glyphDependencies,Yr=K.availableImages,sa=new os(this.zoom);for(const{feature:_a,id:Wa,index:zn,sourceLayerIndex:vn}of D){const Cn=Ee._featureFilter.needGeometry,$n=ir(_a,Cn);if(!Ee._featureFilter.filter(sa,$n,ve))continue;let gi,Ji;if(Cn||($n.geometry=lt(_a)),Ot){const oo=Ee.getValueAndResolveTokens("text-field",$n,ve,Yr),$i=ha.factory(oo),Ro=this.hasRTLText=this.hasRTLText||Vx($i);(!Ro||ws.getRTLTextPluginStatus()==="unavailable"||Ro&&ws.isParsed())&&(gi=Ev($i,Ee,$n))}if(ar){const oo=Ee.getValueAndResolveTokens("icon-image",$n,ve,Yr);Ji=oo instanceof Ya?oo:Ya.fromString(oo)}if(!gi&&!Ji)continue;const as=this.sortFeaturesByKey?lr.evaluate($n,{},ve):void 0;if(this.features.push({id:Wa,text:gi,icon:Ji,index:zn,sourceLayerIndex:vn,geometry:$n.geometry,properties:_a.properties,type:jx[_a.type],sortKey:as}),Ji&&(Sr[Ji.name]=!0),gi){const oo=qe.evaluate($n,{},ve).join(","),$i=Ne.get("text-rotation-alignment")!=="viewport"&&Ne.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.ah.vertical)>=0;for(const Ro of gi.sections)if(Ro.image)Sr[Ro.image.name]=!0;else{const To=ao(gi.toString()),_o=Ro.fontStack||oo,li=Fr[_o]=Fr[_o]||{};this.calculateGlyphDependencies(Ro.text,li,$i,this.allowVerticalPlacement,To)}}}Ne.get("symbol-placement")==="line"&&(this.features=function(_a){const Wa={},zn={},vn=[];let Cn=0;function $n(oo){vn.push(_a[oo]),Cn++}function gi(oo,$i,Ro){const To=zn[oo];return delete zn[oo],zn[$i]=To,vn[To].geometry[0].pop(),vn[To].geometry[0]=vn[To].geometry[0].concat(Ro[0]),To}function Ji(oo,$i,Ro){const To=Wa[$i];return delete Wa[$i],Wa[oo]=To,vn[To].geometry[0].shift(),vn[To].geometry[0]=Ro[0].concat(vn[To].geometry[0]),To}function as(oo,$i,Ro){const To=Ro?$i[0][$i[0].length-1]:$i[0][0];return`${oo}:${To.x}:${To.y}`}for(let oo=0;oo<_a.length;oo++){const $i=_a[oo],Ro=$i.geometry,To=$i.text?$i.text.toString():null;if(!To){$n(oo);continue}const _o=as(To,Ro),li=as(To,Ro,!0);if(_o in zn&&li in Wa&&zn[_o]!==Wa[li]){const jo=Ji(_o,li,Ro),Do=gi(_o,li,vn[jo].geometry);delete Wa[_o],delete zn[li],zn[as(To,vn[Do].geometry,!0)]=Do,vn[jo].geometry=null}else _o in zn?gi(_o,li,Ro):li in Wa?Ji(_o,li,Ro):($n(oo),Wa[_o]=Cn-1,zn[li]=Cn-1)}return vn.filter(oo=>oo.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((_a,Wa)=>_a.sortKey-Wa.sortKey)}update(D,K,ve){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(D,K,this.layers,ve),this.icon.programConfigurations.updatePaintArrays(D,K,this.layers,ve))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(D){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(D),this.iconCollisionBox.upload(D)),this.text.upload(D,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(D,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(D,K){const ve=this.lineVertexArray.length;if(D.segment!==void 0){let Ee=D.dist(K[D.segment+1]),Ne=D.dist(K[D.segment]);const qe={};for(let ut=D.segment+1;ut=0;ut--)qe[ut]={x:K[ut].x,y:K[ut].y,tileUnitDistanceFromAnchor:Ne},ut>0&&(Ne+=K[ut-1].dist(K[ut]));for(let ut=0;ut0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(D,K){const ve=D.placedSymbolArray.get(K),Ee=ve.vertexStartIndex+4*ve.numGlyphs;for(let Ne=ve.vertexStartIndex;NeEe[ut]-Ee[wt]||Ne[wt]-Ne[ut]),qe}addToSortKeyRanges(D,K){const ve=this.sortKeyRanges[this.sortKeyRanges.length-1];ve&&ve.sortKey===K?ve.symbolInstanceEnd=D+1:this.sortKeyRanges.push({sortKey:K,symbolInstanceStart:D,symbolInstanceEnd:D+1})}sortFeatures(D){if(this.sortFeaturesByY&&this.sortedAngle!==D&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(D),this.sortedAngle=D,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const K of this.symbolInstanceIndexes){const ve=this.symbolInstances.get(K);this.featureSortOrder.push(ve.featureIndex),[ve.rightJustifiedTextSymbolIndex,ve.centerJustifiedTextSymbolIndex,ve.leftJustifiedTextSymbolIndex].forEach((Ee,Ne,qe)=>{Ee>=0&&qe.indexOf(Ee)===Ne&&this.addIndicesForPlacedSymbol(this.text,Ee)}),ve.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ve.verticalPlacedTextSymbolIndex),ve.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.placedIconSymbolIndex),ve.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let pp,gp;dn("SymbolBucket",Kv,{omit:["layers","collisionBoxArray","features","compareText"]}),Kv.MAX_GLYPHS=65535,Kv.addDynamicAttributes=Iv;var wg={get paint(){return gp=gp||new ze({"icon-opacity":new io(ae.paint_symbol["icon-opacity"]),"icon-color":new io(ae.paint_symbol["icon-color"]),"icon-halo-color":new io(ae.paint_symbol["icon-halo-color"]),"icon-halo-width":new io(ae.paint_symbol["icon-halo-width"]),"icon-halo-blur":new io(ae.paint_symbol["icon-halo-blur"]),"icon-translate":new Yi(ae.paint_symbol["icon-translate"]),"icon-translate-anchor":new Yi(ae.paint_symbol["icon-translate-anchor"]),"text-opacity":new io(ae.paint_symbol["text-opacity"]),"text-color":new io(ae.paint_symbol["text-color"],{runtimeType:Ut,getOverride:W=>W.textColor,hasOverride:W=>!!W.textColor}),"text-halo-color":new io(ae.paint_symbol["text-halo-color"]),"text-halo-width":new io(ae.paint_symbol["text-halo-width"]),"text-halo-blur":new io(ae.paint_symbol["text-halo-blur"]),"text-translate":new Yi(ae.paint_symbol["text-translate"]),"text-translate-anchor":new Yi(ae.paint_symbol["text-translate-anchor"])})},get layout(){return pp=pp||new ze({"symbol-placement":new Yi(ae.layout_symbol["symbol-placement"]),"symbol-spacing":new Yi(ae.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Yi(ae.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new io(ae.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Yi(ae.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Yi(ae.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Yi(ae.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Yi(ae.layout_symbol["icon-ignore-placement"]),"icon-optional":new Yi(ae.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Yi(ae.layout_symbol["icon-rotation-alignment"]),"icon-size":new io(ae.layout_symbol["icon-size"]),"icon-text-fit":new Yi(ae.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Yi(ae.layout_symbol["icon-text-fit-padding"]),"icon-image":new io(ae.layout_symbol["icon-image"]),"icon-rotate":new io(ae.layout_symbol["icon-rotate"]),"icon-padding":new io(ae.layout_symbol["icon-padding"]),"icon-keep-upright":new Yi(ae.layout_symbol["icon-keep-upright"]),"icon-offset":new io(ae.layout_symbol["icon-offset"]),"icon-anchor":new io(ae.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Yi(ae.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Yi(ae.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Yi(ae.layout_symbol["text-rotation-alignment"]),"text-field":new io(ae.layout_symbol["text-field"]),"text-font":new io(ae.layout_symbol["text-font"]),"text-size":new io(ae.layout_symbol["text-size"]),"text-max-width":new io(ae.layout_symbol["text-max-width"]),"text-line-height":new Yi(ae.layout_symbol["text-line-height"]),"text-letter-spacing":new io(ae.layout_symbol["text-letter-spacing"]),"text-justify":new io(ae.layout_symbol["text-justify"]),"text-radial-offset":new io(ae.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Yi(ae.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new io(ae.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new io(ae.layout_symbol["text-anchor"]),"text-max-angle":new Yi(ae.layout_symbol["text-max-angle"]),"text-writing-mode":new Yi(ae.layout_symbol["text-writing-mode"]),"text-rotate":new io(ae.layout_symbol["text-rotate"]),"text-padding":new Yi(ae.layout_symbol["text-padding"]),"text-keep-upright":new Yi(ae.layout_symbol["text-keep-upright"]),"text-transform":new io(ae.layout_symbol["text-transform"]),"text-offset":new io(ae.layout_symbol["text-offset"]),"text-allow-overlap":new Yi(ae.layout_symbol["text-allow-overlap"]),"text-overlap":new Yi(ae.layout_symbol["text-overlap"]),"text-ignore-placement":new Yi(ae.layout_symbol["text-ignore-placement"]),"text-optional":new Yi(ae.layout_symbol["text-optional"])})}};class wd{constructor(D){if(D.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=D.property.overrides?D.property.overrides.runtimeType:nt,this.defaultValue=D}evaluate(D){if(D.formattedSection){const K=this.defaultValue.property.overrides;if(K&&K.hasOverride(D.formattedSection))return K.getOverride(D.formattedSection)}return D.feature&&D.featureState?this.defaultValue.evaluate(D.feature,D.featureState):this.defaultValue.property.specification.default}eachChild(D){this.defaultValue.isConstant()||D(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}dn("FormatSectionOverride",wd,{omit:["defaultValue"]});class u0 extends ne{constructor(D){super(D,wg)}recalculate(D,K){if(super.recalculate(D,K),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){const ve=this.layout.get("text-writing-mode");if(ve){const Ee=[];for(const Ne of ve)Ee.indexOf(Ne)<0&&Ee.push(Ne);this.layout._values["text-writing-mode"]=Ee}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(D,K,ve,Ee){const Ne=this.layout.get(D).evaluate(K,{},ve,Ee),qe=this._unevaluatedLayout._values[D];return qe.isDataDriven()||tc(qe.value)||!Ne?Ne:function(ut,wt){return wt.replace(/{([^{}]+)}/g,(Ot,ar)=>ut&&ar in ut?String(ut[ar]):"")}(K.properties,Ne)}createBucket(D){return new Kv(D)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const D of wg.paint.overridableProperties){if(!u0.hasPaintOverride(this.layout,D))continue;const K=this.paint.get(D),ve=new wd(K),Ee=new ru(ve,K.property.specification);let Ne=null;Ne=K.value.kind==="constant"||K.value.kind==="source"?new Hu("source",Ee):new Gl("composite",Ee,K.value.zoomStops),this.paint._values[D]=new ll(K.property,Ne,K.parameters)}}_handleOverridablePaintPropertyUpdate(D,K,ve){return!(!this.layout||K.isDataDriven()||ve.isDataDriven())&&u0.hasPaintOverride(this.layout,D)}static hasPaintOverride(D,K){const ve=D.get("text-field"),Ee=wg.paint.properties[K];let Ne=!1;const qe=ut=>{for(const wt of ut)if(Ee.overrides&&Ee.overrides.hasOverride(wt))return void(Ne=!0)};if(ve.value.kind==="constant"&&ve.value.value instanceof ha)qe(ve.value.value.sections);else if(ve.value.kind==="source"){const ut=Ot=>{Ne||(Ot instanceof Lr&&mt(Ot.value)===Rr?qe(Ot.value.sections):Ot instanceof cs?qe(Ot.sections):Ot.eachChild(ut))},wt=ve.value;wt._styleExpression&&ut(wt._styleExpression.expression)}return Ne}}let Tg;var uy={get paint(){return Tg=Tg||new ze({"background-color":new Yi(ae.paint_background["background-color"]),"background-pattern":new du(ae.paint_background["background-pattern"]),"background-opacity":new Yi(ae.paint_background["background-opacity"])})}};class mp extends ne{constructor(D){super(D,uy)}}let c0;var Ag={get paint(){return c0=c0||new ze({"raster-opacity":new Yi(ae.paint_raster["raster-opacity"]),"raster-hue-rotate":new Yi(ae.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Yi(ae.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Yi(ae.paint_raster["raster-brightness-max"]),"raster-saturation":new Yi(ae.paint_raster["raster-saturation"]),"raster-contrast":new Yi(ae.paint_raster["raster-contrast"]),"raster-resampling":new Yi(ae.paint_raster["raster-resampling"]),"raster-fade-duration":new Yi(ae.paint_raster["raster-fade-duration"])})}};class qx extends ne{constructor(D){super(D,Ag)}}class cy extends ne{constructor(D){super(D,{}),this.onAdd=K=>{this.implementation.onAdd&&this.implementation.onAdd(K,K.painter.context.gl)},this.onRemove=K=>{this.implementation.onRemove&&this.implementation.onRemove(K,K.painter.context.gl)},this.implementation=D}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class yp{constructor(D){this._methodToThrottle=D,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}const Sg=63710088e-1;class Kh{constructor(D,K){if(isNaN(D)||isNaN(K))throw new Error(`Invalid LngLat object: (${D}, ${K})`);if(this.lng=+D,this.lat=+K,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Kh(S(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(D){const K=Math.PI/180,ve=this.lat*K,Ee=D.lat*K,Ne=Math.sin(ve)*Math.sin(Ee)+Math.cos(ve)*Math.cos(Ee)*Math.cos((D.lng-this.lng)*K);return Sg*Math.acos(Math.min(Ne,1))}static convert(D){if(D instanceof Kh)return D;if(Array.isArray(D)&&(D.length===2||D.length===3))return new Kh(Number(D[0]),Number(D[1]));if(!Array.isArray(D)&&typeof D=="object"&&D!==null)return new Kh(Number("lng"in D?D.lng:D.lon),Number(D.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const fy=2*Math.PI*Sg;function f0(W){return fy*Math.cos(W*Math.PI/180)}function h0(W){return(180+W)/360}function hy(W){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+W*Math.PI/360)))/360}function Bh(W,D){return W/f0(D)}function Mg(W){return 360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90}class _p{constructor(D,K,ve=0){this.x=+D,this.y=+K,this.z=+ve}static fromLngLat(D,K=0){const ve=Kh.convert(D);return new _p(h0(ve.lng),hy(ve.lat),Bh(K,ve.lat))}toLngLat(){return new Kh(360*this.x-180,Mg(this.y))}toAltitude(){return this.z*f0(Mg(this.y))}meterInMercatorCoordinateUnits(){return 1/fy*(D=Mg(this.y),1/Math.cos(D*Math.PI/180));var D}}function vy(W,D,K){var ve=2*Math.PI*6378137/256/Math.pow(2,K);return[W*ve-2*Math.PI*6378137/2,D*ve-2*Math.PI*6378137/2]}class Eg{constructor(D,K,ve){if(!function(Ee,Ne,qe){return!(Ee<0||Ee>25||qe<0||qe>=Math.pow(2,Ee)||Ne<0||Ne>=Math.pow(2,Ee))}(D,K,ve))throw new Error(`x=${K}, y=${ve}, z=${D} outside of bounds. 0<=x<${Math.pow(2,D)}, 0<=y<${Math.pow(2,D)} 0<=z<=25 `);this.z=D,this.x=K,this.y=ve,this.key=Td(0,D,D,K,ve)}equals(D){return this.z===D.z&&this.x===D.x&&this.y===D.y}url(D,K,ve){const Ee=(qe=this.y,ut=this.z,wt=vy(256*(Ne=this.x),256*(qe=Math.pow(2,ut)-qe-1),ut),Ot=vy(256*(Ne+1),256*(qe+1),ut),wt[0]+","+wt[1]+","+Ot[0]+","+Ot[1]);var Ne,qe,ut,wt,Ot;const ar=function(lr,Sr,Fr){let Yr,sa="";for(let _a=lr;_a>0;_a--)Yr=1<<_a-1,sa+=(Sr&Yr?1:0)+(Fr&Yr?2:0);return sa}(this.z,this.x,this.y);return D[(this.x+this.y)%D.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(ve==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,K>1?"@2x":"").replace(/{quadkey}/g,ar).replace(/{bbox-epsg-3857}/g,Ee)}isChildOf(D){const K=this.z-D.z;return K>0&&D.x===this.x>>K&&D.y===this.y>>K}getTilePoint(D){const K=Math.pow(2,this.z);return new o((D.x*K-this.x)*zs,(D.y*K-this.y)*zs)}toString(){return`${this.z}/${this.x}/${this.y}`}}class dy{constructor(D,K){this.wrap=D,this.canonical=K,this.key=Td(D,K.z,K.z,K.x,K.y)}}class Ih{constructor(D,K,ve,Ee,Ne){if(D= z; overscaledZ = ${D}; z = ${ve}`);this.overscaledZ=D,this.wrap=K,this.canonical=new Eg(ve,+Ee,+Ne),this.key=Td(K,D,ve,Ee,Ne)}clone(){return new Ih(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(D){return this.overscaledZ===D.overscaledZ&&this.wrap===D.wrap&&this.canonical.equals(D.canonical)}scaledTo(D){if(D>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${D}; overscaledZ = ${this.overscaledZ}`);const K=this.canonical.z-D;return D>this.canonical.z?new Ih(D,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ih(D,this.wrap,D,this.canonical.x>>K,this.canonical.y>>K)}calculateScaledKey(D,K){if(D>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${D}; overscaledZ = ${this.overscaledZ}`);const ve=this.canonical.z-D;return D>this.canonical.z?Td(this.wrap*+K,D,this.canonical.z,this.canonical.x,this.canonical.y):Td(this.wrap*+K,D,D,this.canonical.x>>ve,this.canonical.y>>ve)}isChildOf(D){if(D.wrap!==this.wrap)return!1;const K=this.canonical.z-D.canonical.z;return D.overscaledZ===0||D.overscaledZ>K&&D.canonical.y===this.canonical.y>>K}children(D){if(this.overscaledZ>=D)return[new Ih(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const K=this.canonical.z+1,ve=2*this.canonical.x,Ee=2*this.canonical.y;return[new Ih(K,this.wrap,K,ve,Ee),new Ih(K,this.wrap,K,ve+1,Ee),new Ih(K,this.wrap,K,ve,Ee+1),new Ih(K,this.wrap,K,ve+1,Ee+1)]}isLessThan(D){return this.wrapD.wrap)&&(this.overscaledZD.overscaledZ)&&(this.canonical.xD.canonical.x)&&this.canonical.ythis.max&&(this.max=lr),lr=this.dim+1||K<-1||K>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(K+1)*this.stride+(D+1)}unpack(D,K,ve){return D*this.redFactor+K*this.greenFactor+ve*this.blueFactor-this.baseShift}getPixels(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(D,K,ve){if(this.dim!==D.dim)throw new Error("dem dimension mismatch");let Ee=K*this.dim,Ne=K*this.dim+this.dim,qe=ve*this.dim,ut=ve*this.dim+this.dim;switch(K){case-1:Ee=Ne-1;break;case 1:Ne=Ee+1}switch(ve){case-1:qe=ut-1;break;case 1:ut=qe+1}const wt=-K*this.dim,Ot=-ve*this.dim;for(let ar=qe;ar=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${D} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[D]}}class gy{constructor(D,K,ve,Ee,Ne){this.type="Feature",this._vectorTileFeature=D,D._z=K,D._x=ve,D._y=Ee,this.properties=D.properties,this.id=Ne}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(D){this._geometry=D}toJSON(){const D={geometry:this.geometry};for(const K in this)K!=="_geometry"&&K!=="_vectorTileFeature"&&(D[K]=this[K]);return D}}class my{constructor(D,K){this.tileID=D,this.x=D.canonical.x,this.y=D.canonical.y,this.z=D.canonical.z,this.grid=new qn(zs,16,0),this.grid3D=new qn(zs,16,0),this.featureIndexArray=new Hs,this.promoteId=K}insert(D,K,ve,Ee,Ne,qe){const ut=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(ve,Ee,Ne);const wt=qe?this.grid3D:this.grid;for(let Ot=0;Ot=0&&lr[3]>=0&&wt.insert(ut,lr[0],lr[1],lr[2],lr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new ja.VectorTile(new pg(this.rawTileData)).layers,this.sourceLayerCoder=new py(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(D,K,ve,Ee){this.loadVTLayers();const Ne=D.params||{},qe=zs/D.tileSize/D.scale,ut=Pc(Ne.filter),wt=D.queryGeometry,Ot=D.queryPadding*qe,ar=kg(wt),lr=this.grid.query(ar.minX-Ot,ar.minY-Ot,ar.maxX+Ot,ar.maxY+Ot),Sr=kg(D.cameraQueryGeometry),Fr=this.grid3D.query(Sr.minX-Ot,Sr.minY-Ot,Sr.maxX+Ot,Sr.maxY+Ot,(_a,Wa,zn,vn)=>function(Cn,$n,gi,Ji,as){for(const $i of Cn)if($n<=$i.x&&gi<=$i.y&&Ji>=$i.x&&as>=$i.y)return!0;const oo=[new o($n,gi),new o($n,as),new o(Ji,as),new o(Ji,gi)];if(Cn.length>2){for(const $i of oo)if(xn(Cn,$i))return!0}for(let $i=0;$i(vn||(vn=lt(Cn)),$n.queryIntersectsFeature(wt,Cn,gi,vn,this.z,D.transform,qe,D.pixelPosMatrix)))}return Yr}loadMatchingFeature(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr){const Sr=this.bucketLayerIDs[K];if(qe&&!function(_a,Wa){for(let zn=0;zn<_a.length;zn++)if(Wa.indexOf(_a[zn])>=0)return!0;return!1}(qe,Sr))return;const Fr=this.sourceLayerCoder.decode(ve),Yr=this.vtLayers[Fr].feature(Ee);if(Ne.needGeometry){const _a=ir(Yr,!0);if(!Ne.filter(new os(this.tileID.overscaledZ),_a,this.tileID.canonical))return}else if(!Ne.filter(new os(this.tileID.overscaledZ),Yr))return;const sa=this.getId(Yr,Fr);for(let _a=0;_a{const ut=D instanceof Zu?D.get(qe):null;return ut&&ut.evaluate?ut.evaluate(K,ve,Ee):ut})}function kg(W){let D=1/0,K=1/0,ve=-1/0,Ee=-1/0;for(const Ne of W)D=Math.min(D,Ne.x),K=Math.min(K,Ne.y),ve=Math.max(ve,Ne.x),Ee=Math.max(Ee,Ne.y);return{minX:D,minY:K,maxX:ve,maxY:Ee}}function _y(W,D){return D-W}function xy(W,D,K,ve,Ee){const Ne=[];for(let qe=0;qe=ve&&lr.x>=ve||(ar.x>=ve?ar=new o(ve,ar.y+(ve-ar.x)/(lr.x-ar.x)*(lr.y-ar.y))._round():lr.x>=ve&&(lr=new o(ve,ar.y+(ve-ar.x)/(lr.x-ar.x)*(lr.y-ar.y))._round()),ar.y>=Ee&&lr.y>=Ee||(ar.y>=Ee?ar=new o(ar.x+(Ee-ar.y)/(lr.y-ar.y)*(lr.x-ar.x),Ee)._round():lr.y>=Ee&&(lr=new o(ar.x+(Ee-ar.y)/(lr.y-ar.y)*(lr.x-ar.x),Ee)._round()),wt&&ar.equals(wt[wt.length-1])||(wt=[ar],Ne.push(wt)),wt.push(lr)))))}}return Ne}dn("FeatureIndex",my,{omit:["rawTileData","sourceLayerCoder"]});class Rv extends o{constructor(D,K,ve,Ee){super(D,K),this.angle=ve,Ee!==void 0&&(this.segment=Ee)}clone(){return new Rv(this.x,this.y,this.angle,this.segment)}}function by(W,D,K,ve,Ee){if(D.segment===void 0||K===0)return!0;let Ne=D,qe=D.segment+1,ut=0;for(;ut>-K/2;){if(qe--,qe<0)return!1;ut-=W[qe].dist(Ne),Ne=W[qe]}ut+=W[qe].dist(W[qe+1]),qe++;const wt=[];let Ot=0;for(;utve;)Ot-=wt.shift().angleDelta;if(Ot>Ee)return!1;qe++,ut+=ar.dist(lr)}return!0}function wy(W){let D=0;for(let K=0;KOt){const Yr=(Ot-wt)/Fr,sa=Li.number(lr.x,Sr.x,Yr),_a=Li.number(lr.y,Sr.y,Yr),Wa=new Rv(sa,_a,Sr.angleTo(lr),ar);return Wa._round(),!qe||by(W,Wa,ut,qe,D)?Wa:void 0}wt+=Fr}}function Hx(W,D,K,ve,Ee,Ne,qe,ut,wt){const Ot=Ty(ve,Ne,qe),ar=Ay(ve,Ee),lr=ar*qe,Sr=W[0].x===0||W[0].x===wt||W[0].y===0||W[0].y===wt;return D-lr=0&&Cn=0&&$n=0&&Sr+Ot<=ar){const gi=new Rv(Cn,$n,zn,Yr);gi._round(),ve&&!by(W,gi,Ne,ve,Ee)||Fr.push(gi)}}lr+=Wa}return ut||Fr.length||qe||(Fr=Qv(W,lr/2,K,ve,Ee,Ne,qe,!0,wt)),Fr}dn("Anchor",Rv);const Ad=af;function Sy(W,D,K,ve){const Ee=[],Ne=W.image,qe=Ne.pixelRatio,ut=Ne.paddedRect.w-2*Ad,wt=Ne.paddedRect.h-2*Ad;let Ot={x1:W.left,y1:W.top,x2:W.right,y2:W.bottom};const ar=Ne.stretchX||[[0,ut]],lr=Ne.stretchY||[[0,wt]],Sr=(li,jo)=>li+jo[1]-jo[0],Fr=ar.reduce(Sr,0),Yr=lr.reduce(Sr,0),sa=ut-Fr,_a=wt-Yr;let Wa=0,zn=Fr,vn=0,Cn=Yr,$n=0,gi=sa,Ji=0,as=_a;if(Ne.content&&ve){const li=Ne.content,jo=li[2]-li[0],Do=li[3]-li[1];(Ne.textFitWidth||Ne.textFitHeight)&&(Ot=oy(W)),Wa=Sd(ar,0,li[0]),vn=Sd(lr,0,li[1]),zn=Sd(ar,li[0],li[2]),Cn=Sd(lr,li[1],li[3]),$n=li[0]-Wa,Ji=li[1]-vn,gi=jo-zn,as=Do-Cn}const oo=Ot.x1,$i=Ot.y1,Ro=Ot.x2-oo,To=Ot.y2-$i,_o=(li,jo,Do,xs)=>{const Tu=Th(li.stretch-Wa,zn,Ro,oo),gu=v0(li.fixed-$n,gi,li.stretch,Fr),vf=Th(jo.stretch-vn,Cn,To,$i),fh=v0(jo.fixed-Ji,as,jo.stretch,Yr),zc=Th(Do.stretch-Wa,zn,Ro,oo),nf=v0(Do.fixed-$n,gi,Do.stretch,Fr),rh=Th(xs.stretch-vn,Cn,To,$i),ah=v0(xs.fixed-Ji,as,xs.stretch,Yr),nh=new o(Tu,vf),fc=new o(zc,vf),df=new o(zc,rh),Xf=new o(Tu,rh),Ff=new o(gu/qe,fh/qe),ih=new o(nf/qe,ah/qe),Sf=D*Math.PI/180;if(Sf){const ml=Math.sin(Sf),Ql=Math.cos(Sf),su=[Ql,-ml,ml,Ql];nh._matMult(su),fc._matMult(su),Xf._matMult(su),df._matMult(su)}const Ah=li.stretch+li.fixed,Ou=jo.stretch+jo.fixed;return{tl:nh,tr:fc,bl:Xf,br:df,tex:{x:Ne.paddedRect.x+Ad+Ah,y:Ne.paddedRect.y+Ad+Ou,w:Do.stretch+Do.fixed-Ah,h:xs.stretch+xs.fixed-Ou},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ff,pixelOffsetBR:ih,minFontScaleX:gi/qe/Ro,minFontScaleY:as/qe/To,isSDF:K}};if(ve&&(Ne.stretchX||Ne.stretchY)){const li=Md(ar,sa,Fr),jo=Md(lr,_a,Yr);for(let Do=0;Do0&&(sa=Math.max(10,sa),this.circleDiameter=sa)}else{const Sr=!((lr=qe.image)===null||lr===void 0)&&lr.content&&(qe.image.textFitWidth||qe.image.textFitHeight)?oy(qe):{x1:qe.left,y1:qe.top,x2:qe.right,y2:qe.bottom};Sr.y1=Sr.y1*ut-wt[0],Sr.y2=Sr.y2*ut+wt[2],Sr.x1=Sr.x1*ut-wt[3],Sr.x2=Sr.x2*ut+wt[1];const Fr=qe.collisionPadding;if(Fr&&(Sr.x1-=Fr[0]*ut,Sr.y1-=Fr[1]*ut,Sr.x2+=Fr[2]*ut,Sr.y2+=Fr[3]*ut),ar){const Yr=new o(Sr.x1,Sr.y1),sa=new o(Sr.x2,Sr.y1),_a=new o(Sr.x1,Sr.y2),Wa=new o(Sr.x2,Sr.y2),zn=ar*Math.PI/180;Yr._rotate(zn),sa._rotate(zn),_a._rotate(zn),Wa._rotate(zn),Sr.x1=Math.min(Yr.x,sa.x,_a.x,Wa.x),Sr.x2=Math.max(Yr.x,sa.x,_a.x,Wa.x),Sr.y1=Math.min(Yr.y,sa.y,_a.y,Wa.y),Sr.y2=Math.max(Yr.y,sa.y,_a.y,Wa.y)}D.emplaceBack(K.x,K.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,ve,Ee,Ne)}this.boxEndIndex=D.length}}class Wx{constructor(D=[],K=(ve,Ee)=>veEe?1:0){if(this.data=D,this.length=this.data.length,this.compare=K,this.length>0)for(let ve=(this.length>>1)-1;ve>=0;ve--)this._down(ve)}push(D){this.data.push(D),this._up(this.length++)}pop(){if(this.length===0)return;const D=this.data[0],K=this.data.pop();return--this.length>0&&(this.data[0]=K,this._down(0)),D}peek(){return this.data[0]}_up(D){const{data:K,compare:ve}=this,Ee=K[D];for(;D>0;){const Ne=D-1>>1,qe=K[Ne];if(ve(Ee,qe)>=0)break;K[D]=qe,D=Ne}K[D]=Ee}_down(D){const{data:K,compare:ve}=this,Ee=this.length>>1,Ne=K[D];for(;D=0)break;K[D]=K[qe],D=qe}K[D]=Ne}}function Xx(W,D=1,K=!1){let ve=1/0,Ee=1/0,Ne=-1/0,qe=-1/0;const ut=W[0];for(let Fr=0;FrNe)&&(Ne=Yr.x),(!Fr||Yr.y>qe)&&(qe=Yr.y)}const wt=Math.min(Ne-ve,qe-Ee);let Ot=wt/2;const ar=new Wx([],Zx);if(wt===0)return new o(ve,Ee);for(let Fr=ve;Frlr.d||!lr.d)&&(lr=Fr,K&&console.log("found best %d after %d probes",Math.round(1e4*Fr.d)/1e4,Sr)),Fr.max-lr.d<=D||(Ot=Fr.h/2,ar.push(new Jh(Fr.p.x-Ot,Fr.p.y-Ot,Ot,W)),ar.push(new Jh(Fr.p.x+Ot,Fr.p.y-Ot,Ot,W)),ar.push(new Jh(Fr.p.x-Ot,Fr.p.y+Ot,Ot,W)),ar.push(new Jh(Fr.p.x+Ot,Fr.p.y+Ot,Ot,W)),Sr+=4)}return K&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${lr.d}`)),lr.p}function Zx(W,D){return D.max-W.max}function Jh(W,D,K,ve){this.p=new o(W,D),this.h=K,this.d=function(Ee,Ne){let qe=!1,ut=1/0;for(let wt=0;wtEe.y!=Yr.y>Ee.y&&Ee.x<(Yr.x-Fr.x)*(Ee.y-Fr.y)/(Yr.y-Fr.y)+Fr.x&&(qe=!qe),ut=Math.min(ut,Jn(Ee,Fr,Yr))}}return(qe?1:-1)*Math.sqrt(ut)}(this.p,ve),this.max=this.d+this.h*Math.SQRT2}var Af;e.aq=void 0,(Af=e.aq||(e.aq={}))[Af.center=1]="center",Af[Af.left=2]="left",Af[Af.right=3]="right",Af[Af.top=4]="top",Af[Af.bottom=5]="bottom",Af[Af["top-left"]=6]="top-left",Af[Af["top-right"]=7]="top-right",Af[Af["bottom-left"]=8]="bottom-left",Af[Af["bottom-right"]=9]="bottom-right";const Dv=7,Cg=Number.POSITIVE_INFINITY;function My(W,D){return D[1]!==Cg?function(K,ve,Ee){let Ne=0,qe=0;switch(ve=Math.abs(ve),Ee=Math.abs(Ee),K){case"top-right":case"top-left":case"top":qe=Ee-Dv;break;case"bottom-right":case"bottom-left":case"bottom":qe=-Ee+Dv}switch(K){case"top-right":case"bottom-right":case"right":Ne=-ve;break;case"top-left":case"bottom-left":case"left":Ne=ve}return[Ne,qe]}(W,D[0],D[1]):function(K,ve){let Ee=0,Ne=0;ve<0&&(ve=0);const qe=ve/Math.SQRT2;switch(K){case"top-right":case"top-left":Ne=qe-Dv;break;case"bottom-right":case"bottom-left":Ne=-qe+Dv;break;case"bottom":Ne=-ve+Dv;break;case"top":Ne=ve-Dv}switch(K){case"top-right":case"bottom-right":Ee=-qe;break;case"top-left":case"bottom-left":Ee=qe;break;case"left":Ee=ve;break;case"right":Ee=-ve}return[Ee,Ne]}(W,D[0])}function Ey(W,D,K){var ve;const Ee=W.layout,Ne=(ve=Ee.get("text-variable-anchor-offset"))===null||ve===void 0?void 0:ve.evaluate(D,{},K);if(Ne){const ut=Ne.values,wt=[];for(let Ot=0;OtSr*Nl);ar.startsWith("top")?lr[1]-=Dv:ar.startsWith("bottom")&&(lr[1]+=Dv),wt[Ot+1]=lr}return new Da(wt)}const qe=Ee.get("text-variable-anchor");if(qe){let ut;ut=W._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[Ee.get("text-radial-offset").evaluate(D,{},K)*Nl,Cg]:Ee.get("text-offset").evaluate(D,{},K).map(Ot=>Ot*Nl);const wt=[];for(const Ot of qe)wt.push(Ot,My(Ot,ut));return new Da(wt)}return null}function Lg(W){switch(W){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Yx(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){let lr=Ne.textMaxSize.evaluate(D,{});lr===void 0&&(lr=qe);const Sr=W.layers[0].layout,Fr=Sr.get("icon-offset").evaluate(D,{},ar),Yr=Cy(K.horizontal),sa=qe/24,_a=W.tilePixelRatio*sa,Wa=W.tilePixelRatio*lr/24,zn=W.tilePixelRatio*ut,vn=W.tilePixelRatio*Sr.get("symbol-spacing"),Cn=Sr.get("text-padding")*W.tilePixelRatio,$n=function(li,jo,Do,xs=1){const Tu=li.get("icon-padding").evaluate(jo,{},Do),gu=Tu&&Tu.values;return[gu[0]*xs,gu[1]*xs,gu[2]*xs,gu[3]*xs]}(Sr,D,ar,W.tilePixelRatio),gi=Sr.get("text-max-angle")/180*Math.PI,Ji=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",as=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",oo=Sr.get("symbol-placement"),$i=vn/2,Ro=Sr.get("icon-text-fit");let To;ve&&Ro!=="none"&&(W.allowVerticalPlacement&&K.vertical&&(To=sy(ve,K.vertical,Ro,Sr.get("icon-text-fit-padding"),Fr,sa)),Yr&&(ve=sy(ve,Yr,Ro,Sr.get("icon-text-fit-padding"),Fr,sa)));const _o=(li,jo)=>{jo.x<0||jo.x>=zs||jo.y<0||jo.y>=zs||function(Do,xs,Tu,gu,vf,fh,zc,nf,rh,ah,nh,fc,df,Xf,Ff,ih,Sf,Ah,Ou,ml,Ql,su,ic,Bu,Cd){const jh=Do.addToLineVertexArray(xs,Tu);let Vh,Zf,Au,Mf,Nh=0,Sh=0,oh=0,Fg=0,Og=-1,y0=-1;const dv={};let Bg=Ba("");if(Do.allowVerticalPlacement&&gu.vertical){const Of=nf.layout.get("text-rotate").evaluate(Ql,{},Bu)+90;Au=new d0(rh,xs,ah,nh,fc,gu.vertical,df,Xf,Ff,Of),zc&&(Mf=new d0(rh,xs,ah,nh,fc,zc,Sf,Ah,Ff,Of))}if(vf){const Of=nf.layout.get("icon-rotate").evaluate(Ql,{}),Mh=nf.layout.get("icon-text-fit")!=="none",zv=Sy(vf,Of,ic,Mh),qh=zc?Sy(zc,Of,ic,Mh):void 0;Zf=new d0(rh,xs,ah,nh,fc,vf,Sf,Ah,!1,Of),Nh=4*zv.length;const ed=Do.iconSizeData;let Gh=null;ed.kind==="source"?(Gh=[$h*nf.layout.get("icon-size").evaluate(Ql,{})],Gh[0]>Pv&&y(`${Do.layerIds[0]}: Value for "icon-size" is >= ${dp}. Reduce your "icon-size".`)):ed.kind==="composite"&&(Gh=[$h*su.compositeIconSizes[0].evaluate(Ql,{},Bu),$h*su.compositeIconSizes[1].evaluate(Ql,{},Bu)],(Gh[0]>Pv||Gh[1]>Pv)&&y(`${Do.layerIds[0]}: Value for "icon-size" is >= ${dp}. Reduce your "icon-size".`)),Do.addSymbols(Do.icon,zv,Gh,ml,Ou,Ql,e.ah.none,xs,jh.lineStartIndex,jh.lineLength,-1,Bu),Og=Do.icon.placedSymbolArray.length-1,qh&&(Sh=4*qh.length,Do.addSymbols(Do.icon,qh,Gh,ml,Ou,Ql,e.ah.vertical,xs,jh.lineStartIndex,jh.lineLength,-1,Bu),y0=Do.icon.placedSymbolArray.length-1)}const Ng=Object.keys(gu.horizontal);for(const Of of Ng){const Mh=gu.horizontal[Of];if(!Vh){Bg=Ba(Mh.text);const qh=nf.layout.get("text-rotate").evaluate(Ql,{},Bu);Vh=new d0(rh,xs,ah,nh,fc,Mh,df,Xf,Ff,qh)}const zv=Mh.positionedLines.length===1;if(oh+=ky(Do,xs,Mh,fh,nf,Ff,Ql,ih,jh,gu.vertical?e.ah.horizontal:e.ah.horizontalOnly,zv?Ng:[Of],dv,Og,su,Bu),zv)break}gu.vertical&&(Fg+=ky(Do,xs,gu.vertical,fh,nf,Ff,Ql,ih,jh,e.ah.vertical,["vertical"],dv,y0,su,Bu));const Ug=Vh?Vh.boxStartIndex:Do.collisionBoxArray.length,jg=Vh?Vh.boxEndIndex:Do.collisionBoxArray.length,$x=Au?Au.boxStartIndex:Do.collisionBoxArray.length,Kx=Au?Au.boxEndIndex:Do.collisionBoxArray.length,Jx=Zf?Zf.boxStartIndex:Do.collisionBoxArray.length,Qx=Zf?Zf.boxEndIndex:Do.collisionBoxArray.length,Dy=Mf?Mf.boxStartIndex:Do.collisionBoxArray.length,Ld=Mf?Mf.boxEndIndex:Do.collisionBoxArray.length;let of=-1;const Pd=(Of,Mh)=>Of&&Of.circleDiameter?Math.max(Of.circleDiameter,Mh):Mh;of=Pd(Vh,of),of=Pd(Au,of),of=Pd(Zf,of),of=Pd(Mf,of);const Vg=of>-1?1:0;Vg&&(of*=Cd/Nl),Do.glyphOffsetArray.length>=Kv.MAX_GLYPHS&&y("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ql.sortKey!==void 0&&Do.addToSortKeyRanges(Do.symbolInstances.length,Ql.sortKey);const zy=Ey(nf,Ql,Bu),[eb,Fy]=function(Of,Mh){const zv=Of.length,qh=Mh?.values;if(qh?.length>0)for(let ed=0;ed=0?dv.right:-1,dv.center>=0?dv.center:-1,dv.left>=0?dv.left:-1,dv.vertical||-1,Og,y0,Bg,Ug,jg,$x,Kx,Jx,Qx,Dy,Ld,ah,oh,Fg,Nh,Sh,Vg,0,df,of,eb,Fy)}(W,jo,li,K,ve,Ee,To,W.layers[0],W.collisionBoxArray,D.index,D.sourceLayerIndex,W.index,_a,[Cn,Cn,Cn,Cn],Ji,wt,zn,$n,as,Fr,D,Ne,Ot,ar,qe)};if(oo==="line")for(const li of xy(D.geometry,0,0,zs,zs)){const jo=Hx(li,vn,gi,K.vertical||Yr,ve,24,Wa,W.overscaling,zs);for(const Do of jo)Yr&&Ly(W,Yr.text,$i,Do)||_o(li,Do)}else if(oo==="line-center"){for(const li of D.geometry)if(li.length>1){const jo=Gx(li,gi,K.vertical||Yr,ve,24,Wa);jo&&_o(li,jo)}}else if(D.type==="Polygon")for(const li of Vu(D.geometry,0)){const jo=Xx(li,16);_o(li[0],new Rv(jo.x,jo.y,0))}else if(D.type==="LineString")for(const li of D.geometry)_o(li,new Rv(li[0].x,li[0].y,0));else if(D.type==="Point")for(const li of D.geometry)for(const jo of li)_o([jo],new Rv(jo.x,jo.y,0))}function ky(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr){const sa=function(zn,vn,Cn,$n,gi,Ji,as,oo){const $i=$n.layout.get("text-rotate").evaluate(Ji,{})*Math.PI/180,Ro=[];for(const To of vn.positionedLines)for(const _o of To.positionedGlyphs){if(!_o.rect)continue;const li=_o.rect||{};let jo=mg+1,Do=!0,xs=1,Tu=0;const gu=(gi||oo)&&_o.vertical,vf=_o.metrics.advance*_o.scale/2;if(oo&&vn.verticalizable&&(Tu=To.lineOffset/2-(_o.imageName?-(Nl-_o.metrics.width*_o.scale)/2:(_o.scale-1)*Nl)),_o.imageName){const ml=as[_o.imageName];Do=ml.sdf,xs=ml.pixelRatio,jo=af/xs}const fh=gi?[_o.x+vf,_o.y]:[0,0];let zc=gi?[0,0]:[_o.x+vf+Cn[0],_o.y+Cn[1]-Tu],nf=[0,0];gu&&(nf=zc,zc=[0,0]);const rh=_o.metrics.isDoubleResolution?2:1,ah=(_o.metrics.left-jo)*_o.scale-vf+zc[0],nh=(-_o.metrics.top-jo)*_o.scale+zc[1],fc=ah+li.w/rh*_o.scale/xs,df=nh+li.h/rh*_o.scale/xs,Xf=new o(ah,nh),Ff=new o(fc,nh),ih=new o(ah,df),Sf=new o(fc,df);if(gu){const ml=new o(-vf,vf-_d),Ql=-Math.PI/2,su=Nl/2-vf,ic=new o(5-_d-su,-(_o.imageName?su:0)),Bu=new o(...nf);Xf._rotateAround(Ql,ml)._add(ic)._add(Bu),Ff._rotateAround(Ql,ml)._add(ic)._add(Bu),ih._rotateAround(Ql,ml)._add(ic)._add(Bu),Sf._rotateAround(Ql,ml)._add(ic)._add(Bu)}if($i){const ml=Math.sin($i),Ql=Math.cos($i),su=[Ql,-ml,ml,Ql];Xf._matMult(su),Ff._matMult(su),ih._matMult(su),Sf._matMult(su)}const Ah=new o(0,0),Ou=new o(0,0);Ro.push({tl:Xf,tr:Ff,bl:ih,br:Sf,tex:li,writingMode:vn.writingMode,glyphOffset:fh,sectionIndex:_o.sectionIndex,isSDF:Do,pixelOffsetTL:Ah,pixelOffsetBR:Ou,minFontScaleX:0,minFontScaleY:0})}return Ro}(0,K,ut,Ee,Ne,qe,ve,W.allowVerticalPlacement),_a=W.textSizeData;let Wa=null;_a.kind==="source"?(Wa=[$h*Ee.layout.get("text-size").evaluate(qe,{})],Wa[0]>Pv&&y(`${W.layerIds[0]}: Value for "text-size" is >= ${dp}. Reduce your "text-size".`)):_a.kind==="composite"&&(Wa=[$h*Fr.compositeTextSizes[0].evaluate(qe,{},Yr),$h*Fr.compositeTextSizes[1].evaluate(qe,{},Yr)],(Wa[0]>Pv||Wa[1]>Pv)&&y(`${W.layerIds[0]}: Value for "text-size" is >= ${dp}. Reduce your "text-size".`)),W.addSymbols(W.text,sa,Wa,ut,Ne,qe,Ot,D,wt.lineStartIndex,wt.lineLength,Sr,Yr);for(const zn of ar)lr[zn]=W.text.placedSymbolArray.length-1;return 4*sa.length}function Cy(W){for(const D in W)return W[D];return null}function Ly(W,D,K,ve){const Ee=W.compareText;if(D in Ee){const Ne=Ee[D];for(let qe=Ne.length-1;qe>=0;qe--)if(ve.dist(Ne[qe])>4;if(Ee!==1)throw new Error(`Got v${Ee} data when expected v1.`);const Ne=Py[15&ve];if(!Ne)throw new Error("Unrecognized array type.");const[qe]=new Uint16Array(D,2,1),[ut]=new Uint32Array(D,4,1);return new Pg(ut,qe,Ne,D)}constructor(D,K=64,ve=Float64Array,Ee){if(isNaN(D)||D<0)throw new Error(`Unpexpected numItems value: ${D}.`);this.numItems=+D,this.nodeSize=Math.min(Math.max(+K,2),65535),this.ArrayType=ve,this.IndexArrayType=D<65536?Uint16Array:Uint32Array;const Ne=Py.indexOf(this.ArrayType),qe=2*D*this.ArrayType.BYTES_PER_ELEMENT,ut=D*this.IndexArrayType.BYTES_PER_ELEMENT,wt=(8-ut%8)%8;if(Ne<0)throw new Error(`Unexpected typed array class: ${ve}.`);Ee&&Ee instanceof ArrayBuffer?(this.data=Ee,this.ids=new this.IndexArrayType(this.data,8,D),this.coords=new this.ArrayType(this.data,8+ut+wt,2*D),this._pos=2*D,this._finished=!0):(this.data=new ArrayBuffer(8+qe+ut+wt),this.ids=new this.IndexArrayType(this.data,8,D),this.coords=new this.ArrayType(this.data,8+ut+wt,2*D),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+Ne]),new Uint16Array(this.data,2,1)[0]=K,new Uint32Array(this.data,4,1)[0]=D)}add(D,K){const ve=this._pos>>1;return this.ids[ve]=ve,this.coords[this._pos++]=D,this.coords[this._pos++]=K,ve}finish(){const D=this._pos>>1;if(D!==this.numItems)throw new Error(`Added ${D} items when expected ${this.numItems}.`);return Ig(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(D,K,ve,Ee){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Ne,coords:qe,nodeSize:ut}=this,wt=[0,Ne.length-1,0],Ot=[];for(;wt.length;){const ar=wt.pop()||0,lr=wt.pop()||0,Sr=wt.pop()||0;if(lr-Sr<=ut){for(let _a=Sr;_a<=lr;_a++){const Wa=qe[2*_a],zn=qe[2*_a+1];Wa>=D&&Wa<=ve&&zn>=K&&zn<=Ee&&Ot.push(Ne[_a])}continue}const Fr=Sr+lr>>1,Yr=qe[2*Fr],sa=qe[2*Fr+1];Yr>=D&&Yr<=ve&&sa>=K&&sa<=Ee&&Ot.push(Ne[Fr]),(ar===0?D<=Yr:K<=sa)&&(wt.push(Sr),wt.push(Fr-1),wt.push(1-ar)),(ar===0?ve>=Yr:Ee>=sa)&&(wt.push(Fr+1),wt.push(lr),wt.push(1-ar))}return Ot}within(D,K,ve){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Ee,coords:Ne,nodeSize:qe}=this,ut=[0,Ee.length-1,0],wt=[],Ot=ve*ve;for(;ut.length;){const ar=ut.pop()||0,lr=ut.pop()||0,Sr=ut.pop()||0;if(lr-Sr<=qe){for(let _a=Sr;_a<=lr;_a++)zf(Ne[2*_a],Ne[2*_a+1],D,K)<=Ot&&wt.push(Ee[_a]);continue}const Fr=Sr+lr>>1,Yr=Ne[2*Fr],sa=Ne[2*Fr+1];zf(Yr,sa,D,K)<=Ot&&wt.push(Ee[Fr]),(ar===0?D-ve<=Yr:K-ve<=sa)&&(ut.push(Sr),ut.push(Fr-1),ut.push(1-ar)),(ar===0?D+ve>=Yr:K+ve>=sa)&&(ut.push(Fr+1),ut.push(lr),ut.push(1-ar))}return wt}}function Ig(W,D,K,ve,Ee,Ne){if(Ee-ve<=K)return;const qe=ve+Ee>>1;Iy(W,D,qe,ve,Ee,Ne),Ig(W,D,K,ve,qe-1,1-Ne),Ig(W,D,K,qe+1,Ee,1-Ne)}function Iy(W,D,K,ve,Ee,Ne){for(;Ee>ve;){if(Ee-ve>600){const Ot=Ee-ve+1,ar=K-ve+1,lr=Math.log(Ot),Sr=.5*Math.exp(2*lr/3),Fr=.5*Math.sqrt(lr*Sr*(Ot-Sr)/Ot)*(ar-Ot/2<0?-1:1);Iy(W,D,K,Math.max(ve,Math.floor(K-ar*Sr/Ot+Fr)),Math.min(Ee,Math.floor(K+(Ot-ar)*Sr/Ot+Fr)),Ne)}const qe=D[2*K+Ne];let ut=ve,wt=Ee;for(Ed(W,D,ve,K),D[2*Ee+Ne]>qe&&Ed(W,D,ve,Ee);utqe;)wt--}D[2*ve+Ne]===qe?Ed(W,D,ve,wt):(wt++,Ed(W,D,wt,Ee)),wt<=K&&(ve=wt+1),K<=wt&&(Ee=wt-1)}}function Ed(W,D,K,ve){p0(W,K,ve),p0(D,2*K,2*ve),p0(D,2*K+1,2*ve+1)}function p0(W,D,K){const ve=W[D];W[D]=W[K],W[K]=ve}function zf(W,D,K,ve){const Ee=W-K,Ne=D-ve;return Ee*Ee+Ne*Ne}var Rg;e.bg=void 0,(Rg=e.bg||(e.bg={})).create="create",Rg.load="load",Rg.fullLoad="fullLoad";let g0=null,kd=[];const Dg=1e3/60,m0="loadTime",zg="fullLoadTime",Ry={mark(W){performance.mark(W)},frame(W){const D=W;g0!=null&&kd.push(D-g0),g0=D},clearMetrics(){g0=null,kd=[],performance.clearMeasures(m0),performance.clearMeasures(zg);for(const W in e.bg)performance.clearMarks(e.bg[W])},getPerformanceMetrics(){performance.measure(m0,e.bg.create,e.bg.load),performance.measure(zg,e.bg.create,e.bg.fullLoad);const W=performance.getEntriesByName(m0)[0].duration,D=performance.getEntriesByName(zg)[0].duration,K=kd.length,ve=1/(kd.reduce((Ne,qe)=>Ne+qe,0)/K/1e3),Ee=kd.filter(Ne=>Ne>Dg).reduce((Ne,qe)=>Ne+(qe-Dg)/Dg,0);return{loadTime:W,fullLoadTime:D,fps:ve,percentDroppedFrames:Ee/(K+Ee)*100,totalFrames:K}}};e.$=class extends fr{},e.A=Xn,e.B=Ln,e.C=function(W){if(z==null){const D=W.navigator?W.navigator.userAgent:null;z=!!W.safari||!(!D||!(/\b(iPad|iPhone|iPod)\b/.test(D)||D.match("Safari")&&!D.match("Chrome")))}return z},e.D=Yi,e.E=re,e.F=class{constructor(W,D){this.target=W,this.mapId=D,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new yp(()=>this.process()),this.subscription=function(K,ve,Ee,Ne){return K.addEventListener(ve,Ee,!1),{unsubscribe:()=>{K.removeEventListener(ve,Ee,!1)}}}(this.target,"message",K=>this.receive(K)),this.globalScope=I(self)?W:window}registerMessageHandler(W,D){this.messageHandlers[W]=D}sendAsync(W,D){return new Promise((K,ve)=>{const Ee=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[Ee]={resolve:K,reject:ve},D&&D.signal.addEventListener("abort",()=>{delete this.resolveRejects[Ee];const ut={id:Ee,type:"",origin:location.origin,targetMapId:W.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ut)},{once:!0});const Ne=[],qe=Object.assign(Object.assign({},W),{id:Ee,sourceMapId:this.mapId,origin:location.origin,data:Zi(W.data,Ne)});this.target.postMessage(qe,{transfer:Ne})})}receive(W){const D=W.data,K=D.id;if(!(D.origin!=="file://"&&location.origin!=="file://"&&D.origin!=="resource://android"&&location.origin!=="resource://android"&&D.origin!==location.origin||D.targetMapId&&this.mapId!==D.targetMapId)){if(D.type===""){delete this.tasks[K];const ve=this.abortControllers[K];return delete this.abortControllers[K],void(ve&&ve.abort())}if(I(self)||D.mustQueue)return this.tasks[K]=D,this.taskQueue.push(K),void this.invoker.trigger();this.processTask(K,D)}}process(){if(this.taskQueue.length===0)return;const W=this.taskQueue.shift(),D=this.tasks[W];delete this.tasks[W],this.taskQueue.length>0&&this.invoker.trigger(),D&&this.processTask(W,D)}processTask(W,D){return t(this,void 0,void 0,function*(){if(D.type===""){const Ee=this.resolveRejects[W];return delete this.resolveRejects[W],Ee?void(D.error?Ee.reject(Wi(D.error)):Ee.resolve(Wi(D.data))):void 0}if(!this.messageHandlers[D.type])return void this.completeTask(W,new Error(`Could not find a registered handler for ${D.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));const K=Wi(D.data),ve=new AbortController;this.abortControllers[W]=ve;try{const Ee=yield this.messageHandlers[D.type](D.sourceMapId,K,ve);this.completeTask(W,null,Ee)}catch(Ee){this.completeTask(W,Ee)}})}completeTask(W,D,K){const ve=[];delete this.abortControllers[W];const Ee={id:W,type:"",sourceMapId:this.mapId,origin:location.origin,error:D?Zi(D):null,data:Zi(K,ve)};this.target.postMessage(Ee,{transfer:ve})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},e.G=ie,e.H=function(){var W=new Xn(16);return Xn!=Float32Array&&(W[1]=0,W[2]=0,W[3]=0,W[4]=0,W[6]=0,W[7]=0,W[8]=0,W[9]=0,W[11]=0,W[12]=0,W[13]=0,W[14]=0),W[0]=1,W[5]=1,W[10]=1,W[15]=1,W},e.I=Df,e.J=function(W,D,K){var ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa=K[0],_a=K[1],Wa=K[2];return D===W?(W[12]=D[0]*sa+D[4]*_a+D[8]*Wa+D[12],W[13]=D[1]*sa+D[5]*_a+D[9]*Wa+D[13],W[14]=D[2]*sa+D[6]*_a+D[10]*Wa+D[14],W[15]=D[3]*sa+D[7]*_a+D[11]*Wa+D[15]):(Ee=D[1],Ne=D[2],qe=D[3],ut=D[4],wt=D[5],Ot=D[6],ar=D[7],lr=D[8],Sr=D[9],Fr=D[10],Yr=D[11],W[0]=ve=D[0],W[1]=Ee,W[2]=Ne,W[3]=qe,W[4]=ut,W[5]=wt,W[6]=Ot,W[7]=ar,W[8]=lr,W[9]=Sr,W[10]=Fr,W[11]=Yr,W[12]=ve*sa+ut*_a+lr*Wa+D[12],W[13]=Ee*sa+wt*_a+Sr*Wa+D[13],W[14]=Ne*sa+Ot*_a+Fr*Wa+D[14],W[15]=qe*sa+ar*_a+Yr*Wa+D[15]),W},e.K=function(W,D,K){var ve=K[0],Ee=K[1],Ne=K[2];return W[0]=D[0]*ve,W[1]=D[1]*ve,W[2]=D[2]*ve,W[3]=D[3]*ve,W[4]=D[4]*Ee,W[5]=D[5]*Ee,W[6]=D[6]*Ee,W[7]=D[7]*Ee,W[8]=D[8]*Ne,W[9]=D[9]*Ne,W[10]=D[10]*Ne,W[11]=D[11]*Ne,W[12]=D[12],W[13]=D[13],W[14]=D[14],W[15]=D[15],W},e.L=Ea,e.M=function(W,D){const K={};for(let ve=0;ve{const D=window.document.createElement("video");return D.muted=!0,new Promise(K=>{D.onloadstart=()=>{K(D)};for(const ve of W){const Ee=window.document.createElement("source");ee(ve)||(D.crossOrigin="Anonymous"),Ee.src=ve,D.appendChild(Ee)}})},e.a4=function(){return _++},e.a5=In,e.a6=Kv,e.a7=Pc,e.a8=ir,e.a9=gy,e.aA=function(W){if(W.type==="custom")return new cy(W);switch(W.type){case"background":return new mp(W);case"circle":return new fn(W);case"fill":return new Xr(W);case"fill-extrusion":return new _h(W);case"heatmap":return new Xo(W);case"hillshade":return new El(W);case"line":return new Xv(W);case"raster":return new qx(W);case"symbol":return new u0(W)}},e.aB=u,e.aC=function(W,D){if(!W)return[{command:"setStyle",args:[D]}];let K=[];try{if(!Ae(W.version,D.version))return[{command:"setStyle",args:[D]}];Ae(W.center,D.center)||K.push({command:"setCenter",args:[D.center]}),Ae(W.zoom,D.zoom)||K.push({command:"setZoom",args:[D.zoom]}),Ae(W.bearing,D.bearing)||K.push({command:"setBearing",args:[D.bearing]}),Ae(W.pitch,D.pitch)||K.push({command:"setPitch",args:[D.pitch]}),Ae(W.sprite,D.sprite)||K.push({command:"setSprite",args:[D.sprite]}),Ae(W.glyphs,D.glyphs)||K.push({command:"setGlyphs",args:[D.glyphs]}),Ae(W.transition,D.transition)||K.push({command:"setTransition",args:[D.transition]}),Ae(W.light,D.light)||K.push({command:"setLight",args:[D.light]}),Ae(W.terrain,D.terrain)||K.push({command:"setTerrain",args:[D.terrain]}),Ae(W.sky,D.sky)||K.push({command:"setSky",args:[D.sky]}),Ae(W.projection,D.projection)||K.push({command:"setProjection",args:[D.projection]});const ve={},Ee=[];(function(qe,ut,wt,Ot){let ar;for(ar in ut=ut||{},qe=qe||{})Object.prototype.hasOwnProperty.call(qe,ar)&&(Object.prototype.hasOwnProperty.call(ut,ar)||je(ar,wt,Ot));for(ar in ut)Object.prototype.hasOwnProperty.call(ut,ar)&&(Object.prototype.hasOwnProperty.call(qe,ar)?Ae(qe[ar],ut[ar])||(qe[ar].type==="geojson"&&ut[ar].type==="geojson"&&tt(qe,ut,ar)?Pe(wt,{command:"setGeoJSONSourceData",args:[ar,ut[ar].data]}):at(ar,ut,wt,Ot)):Ce(ar,ut,wt))})(W.sources,D.sources,Ee,ve);const Ne=[];W.layers&&W.layers.forEach(qe=>{"source"in qe&&ve[qe.source]?K.push({command:"removeLayer",args:[qe.id]}):Ne.push(qe)}),K=K.concat(Ee),function(qe,ut,wt){ut=ut||[];const Ot=(qe=qe||[]).map(Ze),ar=ut.map(Ze),lr=qe.reduce(Me,{}),Sr=ut.reduce(Me,{}),Fr=Ot.slice(),Yr=Object.create(null);let sa,_a,Wa,zn,vn;for(let Cn=0,$n=0;Cn@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(K,ve,Ee,Ne)=>{const qe=Ee||Ne;return D[ve]=!qe||qe.toLowerCase(),""}),D["max-age"]){const K=parseInt(D["max-age"],10);isNaN(K)?delete D["max-age"]:D["max-age"]=K}return D},e.ab=function(W,D){const K=[];for(const ve in W)ve in D||K.push(ve);return K},e.ac=w,e.ad=function(W,D,K){var ve=Math.sin(K),Ee=Math.cos(K),Ne=D[0],qe=D[1],ut=D[2],wt=D[3],Ot=D[4],ar=D[5],lr=D[6],Sr=D[7];return D!==W&&(W[8]=D[8],W[9]=D[9],W[10]=D[10],W[11]=D[11],W[12]=D[12],W[13]=D[13],W[14]=D[14],W[15]=D[15]),W[0]=Ne*Ee+Ot*ve,W[1]=qe*Ee+ar*ve,W[2]=ut*Ee+lr*ve,W[3]=wt*Ee+Sr*ve,W[4]=Ot*Ee-Ne*ve,W[5]=ar*Ee-qe*ve,W[6]=lr*Ee-ut*ve,W[7]=Sr*Ee-wt*ve,W},e.ae=function(W){var D=new Xn(16);return D[0]=W[0],D[1]=W[1],D[2]=W[2],D[3]=W[3],D[4]=W[4],D[5]=W[5],D[6]=W[6],D[7]=W[7],D[8]=W[8],D[9]=W[9],D[10]=W[10],D[11]=W[11],D[12]=W[12],D[13]=W[13],D[14]=W[14],D[15]=W[15],D},e.af=An,e.ag=function(W,D){let K=0,ve=0;if(W.kind==="constant")ve=W.layoutSize;else if(W.kind!=="source"){const{interpolationType:Ee,minZoom:Ne,maxZoom:qe}=W,ut=Ee?w(Ni.interpolationFactor(Ee,D,Ne,qe),0,1):0;W.kind==="camera"?ve=Li.number(W.minSize,W.maxSize,ut):K=ut}return{uSizeT:K,uSize:ve}},e.ai=function(W,{uSize:D,uSizeT:K},{lowerSize:ve,upperSize:Ee}){return W.kind==="source"?ve/$h:W.kind==="composite"?Li.number(ve/$h,Ee/$h,K):D},e.aj=Iv,e.ak=function(W,D,K,ve){const Ee=D.y-W.y,Ne=D.x-W.x,qe=ve.y-K.y,ut=ve.x-K.x,wt=qe*Ne-ut*Ee;if(wt===0)return null;const Ot=(ut*(W.y-K.y)-qe*(W.x-K.x))/wt;return new o(W.x+Ot*Ne,W.y+Ot*Ee)},e.al=xy,e.am=Va,e.an=Oa,e.ao=function(W){let D=1/0,K=1/0,ve=-1/0,Ee=-1/0;for(const Ne of W)D=Math.min(D,Ne.x),K=Math.min(K,Ne.y),ve=Math.max(ve,Ne.x),Ee=Math.max(Ee,Ne.y);return[D,K,ve,Ee]},e.ap=Nl,e.ar=xg,e.as=function(W,D){var K=D[0],ve=D[1],Ee=D[2],Ne=D[3],qe=D[4],ut=D[5],wt=D[6],Ot=D[7],ar=D[8],lr=D[9],Sr=D[10],Fr=D[11],Yr=D[12],sa=D[13],_a=D[14],Wa=D[15],zn=K*ut-ve*qe,vn=K*wt-Ee*qe,Cn=K*Ot-Ne*qe,$n=ve*wt-Ee*ut,gi=ve*Ot-Ne*ut,Ji=Ee*Ot-Ne*wt,as=ar*sa-lr*Yr,oo=ar*_a-Sr*Yr,$i=ar*Wa-Fr*Yr,Ro=lr*_a-Sr*sa,To=lr*Wa-Fr*sa,_o=Sr*Wa-Fr*_a,li=zn*_o-vn*To+Cn*Ro+$n*$i-gi*oo+Ji*as;return li?(W[0]=(ut*_o-wt*To+Ot*Ro)*(li=1/li),W[1]=(Ee*To-ve*_o-Ne*Ro)*li,W[2]=(sa*Ji-_a*gi+Wa*$n)*li,W[3]=(Sr*gi-lr*Ji-Fr*$n)*li,W[4]=(wt*$i-qe*_o-Ot*oo)*li,W[5]=(K*_o-Ee*$i+Ne*oo)*li,W[6]=(_a*Cn-Yr*Ji-Wa*vn)*li,W[7]=(ar*Ji-Sr*Cn+Fr*vn)*li,W[8]=(qe*To-ut*$i+Ot*as)*li,W[9]=(ve*$i-K*To-Ne*as)*li,W[10]=(Yr*gi-sa*Cn+Wa*zn)*li,W[11]=(lr*Cn-ar*gi-Fr*zn)*li,W[12]=(ut*oo-qe*Ro-wt*as)*li,W[13]=(K*Ro-ve*oo+Ee*as)*li,W[14]=(sa*vn-Yr*$n-_a*zn)*li,W[15]=(ar*$n-lr*vn+Sr*zn)*li,W):null},e.at=Lg,e.au=_g,e.av=Pg,e.aw=function(){const W={},D=ae.$version;for(const K in ae.$root){const ve=ae.$root[K];if(ve.required){let Ee=null;Ee=K==="version"?D:ve.type==="array"?[]:{},Ee!=null&&(W[K]=Ee)}}return W},e.ax=ii,e.ay=q,e.az=function(W){W=W.slice();const D=Object.create(null);for(let K=0;K25||ve<0||ve>=1||K<0||K>=1)},e.bc=function(W,D){return W[0]=D[0],W[1]=0,W[2]=0,W[3]=0,W[4]=0,W[5]=D[1],W[6]=0,W[7]=0,W[8]=0,W[9]=0,W[10]=D[2],W[11]=0,W[12]=0,W[13]=0,W[14]=0,W[15]=1,W},e.bd=class extends er{},e.be=Sg,e.bf=Ry,e.bh=le,e.bi=function(W,D){te.REGISTERED_PROTOCOLS[W]=D},e.bj=function(W){delete te.REGISTERED_PROTOCOLS[W]},e.bk=function(W,D){const K={};for(let Ee=0;Ee_o*Nl)}let oo=qe?"center":K.get("text-justify").evaluate(Ot,{},W.canonical);const $i=K.get("symbol-placement")==="point"?K.get("text-max-width").evaluate(Ot,{},W.canonical)*Nl:1/0,Ro=()=>{W.bucket.allowVerticalPlacement&&ao(Cn)&&(Yr.vertical=n0(sa,W.glyphMap,W.glyphPositions,W.imagePositions,ar,$i,Ne,Ji,"left",gi,Wa,e.ah.vertical,!0,Sr,lr))};if(!qe&&as){const To=new Set;if(oo==="auto")for(let li=0;lit(void 0,void 0,void 0,function*(){if(W.byteLength===0)return createImageBitmap(new ImageData(1,1));const D=new Blob([new Uint8Array(W)],{type:"image/png"});try{return createImageBitmap(D)}catch(K){throw new Error(`Could not load image because of ${K.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),e.e=M,e.f=W=>new Promise((D,K)=>{const ve=new Image;ve.onload=()=>{D(ve),URL.revokeObjectURL(ve.src),ve.onload=null,window.requestAnimationFrame(()=>{ve.src=B})},ve.onerror=()=>K(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const Ee=new Blob([new Uint8Array(W)],{type:"image/png"});ve.src=W.byteLength?URL.createObjectURL(Ee):B}),e.g=ue,e.h=(W,D)=>J(M(W,{type:"json"}),D),e.i=I,e.j=V,e.k=Q,e.l=(W,D)=>J(M(W,{type:"arrayBuffer"}),D),e.m=J,e.n=function(W){return new pg(W).readFields(Fx,[])},e.o=eo,e.p=a0,e.q=ze,e.r=Ja,e.s=ee,e.t=_n,e.u=tn,e.v=ae,e.w=y,e.x=function([W,D,K]){return D+=90,D*=Math.PI/180,K*=Math.PI/180,{x:W*Math.cos(D)*Math.sin(K),y:W*Math.sin(D)*Math.sin(K),z:W*Math.cos(K)}},e.y=Li,e.z=os}),A("worker",["./shared"],function(e){class t{constructor(Fe){this.keyCache={},Fe&&this.replace(Fe)}replace(Fe){this._layerConfigs={},this._layers={},this.update(Fe,[])}update(Fe,We){for(const de of Fe){this._layerConfigs[de.id]=de;const me=this._layers[de.id]=e.aA(de);me._featureFilter=e.a7(me.filter),this.keyCache[de.id]&&delete this.keyCache[de.id]}for(const de of We)delete this.keyCache[de],delete this._layerConfigs[de],delete this._layers[de];this.familiesBySource={};const Oe=e.bk(Object.values(this._layerConfigs),this.keyCache);for(const de of Oe){const me=de.map(Ct=>this._layers[Ct.id]),be=me[0];if(be.visibility==="none")continue;const Ie=be.source||"";let Xe=this.familiesBySource[Ie];Xe||(Xe=this.familiesBySource[Ie]={});const ht=be.sourceLayer||"_geojsonTileLayer";let bt=Xe[ht];bt||(bt=Xe[ht]=[]),bt.push(me)}}}class r{constructor(Fe){const We={},Oe=[];for(const Ie in Fe){const Xe=Fe[Ie],ht=We[Ie]={};for(const bt in Xe){const Ct=Xe[+bt];if(!Ct||Ct.bitmap.width===0||Ct.bitmap.height===0)continue;const Zt={x:0,y:0,w:Ct.bitmap.width+2,h:Ct.bitmap.height+2};Oe.push(Zt),ht[bt]={rect:Zt,metrics:Ct.metrics}}}const{w:de,h:me}=e.p(Oe),be=new e.o({width:de||1,height:me||1});for(const Ie in Fe){const Xe=Fe[Ie];for(const ht in Xe){const bt=Xe[+ht];if(!bt||bt.bitmap.width===0||bt.bitmap.height===0)continue;const Ct=We[Ie][ht].rect;e.o.copy(bt.bitmap,be,{x:0,y:0},{x:Ct.x+1,y:Ct.y+1},bt.bitmap)}}this.image=be,this.positions=We}}e.bl("GlyphAtlas",r);class i{constructor(Fe){this.tileID=new e.S(Fe.tileID.overscaledZ,Fe.tileID.wrap,Fe.tileID.canonical.z,Fe.tileID.canonical.x,Fe.tileID.canonical.y),this.uid=Fe.uid,this.zoom=Fe.zoom,this.pixelRatio=Fe.pixelRatio,this.tileSize=Fe.tileSize,this.source=Fe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Fe.showCollisionBoxes,this.collectResourceTiming=!!Fe.collectResourceTiming,this.returnDependencies=!!Fe.returnDependencies,this.promoteId=Fe.promoteId,this.inFlightDependencies=[]}parse(Fe,We,Oe,de){return e._(this,void 0,void 0,function*(){this.status="parsing",this.data=Fe,this.collisionBoxArray=new e.a5;const me=new e.bm(Object.keys(Fe.layers).sort()),be=new e.bn(this.tileID,this.promoteId);be.bucketLayerIDs=[];const Ie={},Xe={featureIndex:be,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Oe},ht=We.familiesBySource[this.source];for(const Ga in ht){const ba=Fe.layers[Ga];if(!ba)continue;ba.version===1&&e.w(`Vector tile source "${this.source}" layer "${Ga}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const Xa=me.encode(Ga),yn=[];for(let Kt=0;Kt=zt.maxzoom||zt.visibility!=="none"&&(a(Kt,this.zoom,Oe),(Ie[zt.id]=zt.createBucket({index:be.bucketLayerIDs.length,layers:Kt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Xa,sourceID:this.source})).populate(yn,Xe,this.tileID.canonical),be.bucketLayerIDs.push(Kt.map($t=>$t.id)))}}const bt=e.aF(Xe.glyphDependencies,Ga=>Object.keys(Ga).map(Number));this.inFlightDependencies.forEach(Ga=>Ga?.abort()),this.inFlightDependencies=[];let Ct=Promise.resolve({});if(Object.keys(bt).length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Ct=de.sendAsync({type:"GG",data:{stacks:bt,source:this.source,tileID:this.tileID,type:"glyphs"}},Ga)}const Zt=Object.keys(Xe.iconDependencies);let Wt=Promise.resolve({});if(Zt.length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Wt=de.sendAsync({type:"GI",data:{icons:Zt,source:this.source,tileID:this.tileID,type:"icons"}},Ga)}const rr=Object.keys(Xe.patternDependencies);let Jt=Promise.resolve({});if(rr.length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Jt=de.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"patterns"}},Ga)}const[mr,ia,Ia]=yield Promise.all([Ct,Wt,Jt]),La=new r(mr),Aa=new e.bo(ia,Ia);for(const Ga in Ie){const ba=Ie[Ga];ba instanceof e.a6?(a(ba.layers,this.zoom,Oe),e.bp({bucket:ba,glyphMap:mr,glyphPositions:La.positions,imageMap:ia,imagePositions:Aa.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ba.hasPattern&&(ba instanceof e.bq||ba instanceof e.br||ba instanceof e.bs)&&(a(ba.layers,this.zoom,Oe),ba.addFeatures(Xe,this.tileID.canonical,Aa.patternPositions))}return this.status="done",{buckets:Object.values(Ie).filter(Ga=>!Ga.isEmpty()),featureIndex:be,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:La.image,imageAtlas:Aa,glyphMap:this.returnDependencies?mr:null,iconMap:this.returnDependencies?ia:null,glyphPositions:this.returnDependencies?La.positions:null}})}}function a(yt,Fe,We){const Oe=new e.z(Fe);for(const de of yt)de.recalculate(Oe,We)}class o{constructor(Fe,We,Oe){this.actor=Fe,this.layerIndex=We,this.availableImages=Oe,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Fe,We){return e._(this,void 0,void 0,function*(){const Oe=yield e.l(Fe.request,We);try{return{vectorTile:new e.bt.VectorTile(new e.bu(Oe.data)),rawData:Oe.data,cacheControl:Oe.cacheControl,expires:Oe.expires}}catch(de){const me=new Uint8Array(Oe.data);let be=`Unable to parse the tile at ${Fe.request.url}, `;throw be+=me[0]===31&&me[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${de.message}`,new Error(be)}})}loadTile(Fe){return e._(this,void 0,void 0,function*(){const We=Fe.uid,Oe=!!(Fe&&Fe.request&&Fe.request.collectResourceTiming)&&new e.bv(Fe.request),de=new i(Fe);this.loading[We]=de;const me=new AbortController;de.abort=me;try{const be=yield this.loadVectorTile(Fe,me);if(delete this.loading[We],!be)return null;const Ie=be.rawData,Xe={};be.expires&&(Xe.expires=be.expires),be.cacheControl&&(Xe.cacheControl=be.cacheControl);const ht={};if(Oe){const Ct=Oe.finish();Ct&&(ht.resourceTiming=JSON.parse(JSON.stringify(Ct)))}de.vectorTile=be.vectorTile;const bt=de.parse(be.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[We]=de,this.fetching[We]={rawTileData:Ie,cacheControl:Xe,resourceTiming:ht};try{const Ct=yield bt;return e.e({rawTileData:Ie.slice(0)},Ct,Xe,ht)}finally{delete this.fetching[We]}}catch(be){throw delete this.loading[We],de.status="done",this.loaded[We]=de,be}})}reloadTile(Fe){return e._(this,void 0,void 0,function*(){const We=Fe.uid;if(!this.loaded||!this.loaded[We])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");const Oe=this.loaded[We];if(Oe.showCollisionBoxes=Fe.showCollisionBoxes,Oe.status==="parsing"){const de=yield Oe.parse(Oe.vectorTile,this.layerIndex,this.availableImages,this.actor);let me;if(this.fetching[We]){const{rawTileData:be,cacheControl:Ie,resourceTiming:Xe}=this.fetching[We];delete this.fetching[We],me=e.e({rawTileData:be.slice(0)},de,Ie,Xe)}else me=de;return me}if(Oe.status==="done"&&Oe.vectorTile)return Oe.parse(Oe.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Fe){return e._(this,void 0,void 0,function*(){const We=this.loading,Oe=Fe.uid;We&&We[Oe]&&We[Oe].abort&&(We[Oe].abort.abort(),delete We[Oe])})}removeTile(Fe){return e._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Fe.uid]&&delete this.loaded[Fe.uid]})}}class n{constructor(){this.loaded={}}loadTile(Fe){return e._(this,void 0,void 0,function*(){const{uid:We,encoding:Oe,rawImageData:de,redFactor:me,greenFactor:be,blueFactor:Ie,baseShift:Xe}=Fe,ht=de.width+2,bt=de.height+2,Ct=e.b(de)?new e.R({width:ht,height:bt},yield e.bw(de,-1,-1,ht,bt)):de,Zt=new e.bx(We,Ct,Oe,me,be,Ie,Xe);return this.loaded=this.loaded||{},this.loaded[We]=Zt,Zt})}removeTile(Fe){const We=this.loaded,Oe=Fe.uid;We&&We[Oe]&&delete We[Oe]}}function s(yt,Fe){if(yt.length!==0){c(yt[0],Fe);for(var We=1;We=Math.abs(Ie)?We-Xe+Ie:Ie-Xe+We,We=Xe}We+Oe>=0!=!!Fe&&yt.reverse()}var f=e.by(function yt(Fe,We){var Oe,de=Fe&&Fe.type;if(de==="FeatureCollection")for(Oe=0;Oe>31}function I(yt,Fe){for(var We=yt.loadGeometry(),Oe=yt.type,de=0,me=0,be=We.length,Ie=0;Ieyt},O=Math.fround||(P=new Float32Array(1),yt=>(P[0]=+yt,P[0]));var P;const N=3,U=5,X=6;class te{constructor(Fe){this.options=Object.assign(Object.create(B),Fe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Fe){const{log:We,minZoom:Oe,maxZoom:de}=this.options;We&&console.time("total time");const me=`prepare ${Fe.length} points`;We&&console.time(me),this.points=Fe;const be=[];for(let Xe=0;Xe=Oe;Xe--){const ht=+Date.now();Ie=this.trees[Xe]=this._createTree(this._cluster(Ie,Xe)),We&&console.log("z%d: %d clusters in %dms",Xe,Ie.numItems,+Date.now()-ht)}return We&&console.timeEnd("total time"),this}getClusters(Fe,We){let Oe=((Fe[0]+180)%360+360)%360-180;const de=Math.max(-90,Math.min(90,Fe[1]));let me=Fe[2]===180?180:((Fe[2]+180)%360+360)%360-180;const be=Math.max(-90,Math.min(90,Fe[3]));if(Fe[2]-Fe[0]>=360)Oe=-180,me=180;else if(Oe>me){const Ct=this.getClusters([Oe,de,180,be],We),Zt=this.getClusters([-180,de,me,be],We);return Ct.concat(Zt)}const Ie=this.trees[this._limitZoom(We)],Xe=Ie.range(le(Oe),q(be),le(me),q(de)),ht=Ie.data,bt=[];for(const Ct of Xe){const Zt=this.stride*Ct;bt.push(ht[Zt+U]>1?ue(ht,Zt,this.clusterProps):this.points[ht[Zt+N]])}return bt}getChildren(Fe){const We=this._getOriginId(Fe),Oe=this._getOriginZoom(Fe),de="No cluster with the specified id.",me=this.trees[Oe];if(!me)throw new Error(de);const be=me.data;if(We*this.stride>=be.length)throw new Error(de);const Ie=this.options.radius/(this.options.extent*Math.pow(2,Oe-1)),Xe=me.within(be[We*this.stride],be[We*this.stride+1],Ie),ht=[];for(const bt of Xe){const Ct=bt*this.stride;be[Ct+4]===Fe&&ht.push(be[Ct+U]>1?ue(be,Ct,this.clusterProps):this.points[be[Ct+N]])}if(ht.length===0)throw new Error(de);return ht}getLeaves(Fe,We,Oe){const de=[];return this._appendLeaves(de,Fe,We=We||10,Oe=Oe||0,0),de}getTile(Fe,We,Oe){const de=this.trees[this._limitZoom(Fe)],me=Math.pow(2,Fe),{extent:be,radius:Ie}=this.options,Xe=Ie/be,ht=(Oe-Xe)/me,bt=(Oe+1+Xe)/me,Ct={features:[]};return this._addTileFeatures(de.range((We-Xe)/me,ht,(We+1+Xe)/me,bt),de.data,We,Oe,me,Ct),We===0&&this._addTileFeatures(de.range(1-Xe/me,ht,1,bt),de.data,me,Oe,me,Ct),We===me-1&&this._addTileFeatures(de.range(0,ht,Xe/me,bt),de.data,-1,Oe,me,Ct),Ct.features.length?Ct:null}getClusterExpansionZoom(Fe){let We=this._getOriginZoom(Fe)-1;for(;We<=this.options.maxZoom;){const Oe=this.getChildren(Fe);if(We++,Oe.length!==1)break;Fe=Oe[0].properties.cluster_id}return We}_appendLeaves(Fe,We,Oe,de,me){const be=this.getChildren(We);for(const Ie of be){const Xe=Ie.properties;if(Xe&&Xe.cluster?me+Xe.point_count<=de?me+=Xe.point_count:me=this._appendLeaves(Fe,Xe.cluster_id,Oe,de,me):me1;let bt,Ct,Zt;if(ht)bt=ie(We,Xe,this.clusterProps),Ct=We[Xe],Zt=We[Xe+1];else{const Jt=this.points[We[Xe+N]];bt=Jt.properties;const[mr,ia]=Jt.geometry.coordinates;Ct=le(mr),Zt=q(ia)}const Wt={type:1,geometry:[[Math.round(this.options.extent*(Ct*me-Oe)),Math.round(this.options.extent*(Zt*me-de))]],tags:bt};let rr;rr=ht||this.options.generateId?We[Xe+N]:this.points[We[Xe+N]].id,rr!==void 0&&(Wt.id=rr),be.features.push(Wt)}}_limitZoom(Fe){return Math.max(this.options.minZoom,Math.min(Math.floor(+Fe),this.options.maxZoom+1))}_cluster(Fe,We){const{radius:Oe,extent:de,reduce:me,minPoints:be}=this.options,Ie=Oe/(de*Math.pow(2,We)),Xe=Fe.data,ht=[],bt=this.stride;for(let Ct=0;CtWe&&(mr+=Xe[Ia+U])}if(mr>Jt&&mr>=be){let ia,Ia=Zt*Jt,La=Wt*Jt,Aa=-1;const Ga=((Ct/bt|0)<<5)+(We+1)+this.points.length;for(const ba of rr){const Xa=ba*bt;if(Xe[Xa+2]<=We)continue;Xe[Xa+2]=We;const yn=Xe[Xa+U];Ia+=Xe[Xa]*yn,La+=Xe[Xa+1]*yn,Xe[Xa+4]=Ga,me&&(ia||(ia=this._map(Xe,Ct,!0),Aa=this.clusterProps.length,this.clusterProps.push(ia)),me(ia,this._map(Xe,Xa)))}Xe[Ct+4]=Ga,ht.push(Ia/mr,La/mr,1/0,Ga,-1,mr),me&&ht.push(Aa)}else{for(let ia=0;ia1)for(const ia of rr){const Ia=ia*bt;if(!(Xe[Ia+2]<=We)){Xe[Ia+2]=We;for(let La=0;La>5}_getOriginZoom(Fe){return(Fe-this.points.length)%32}_map(Fe,We,Oe){if(Fe[We+U]>1){const be=this.clusterProps[Fe[We+X]];return Oe?Object.assign({},be):be}const de=this.points[Fe[We+N]].properties,me=this.options.map(de);return Oe&&me===de?Object.assign({},me):me}}function ue(yt,Fe,We){return{type:"Feature",id:yt[Fe+N],properties:ie(yt,Fe,We),geometry:{type:"Point",coordinates:[(Oe=yt[Fe],360*(Oe-.5)),J(yt[Fe+1])]}};var Oe}function ie(yt,Fe,We){const Oe=yt[Fe+U],de=Oe>=1e4?`${Math.round(Oe/1e3)}k`:Oe>=1e3?Math.round(Oe/100)/10+"k":Oe,me=yt[Fe+X],be=me===-1?{}:Object.assign({},We[me]);return Object.assign(be,{cluster:!0,cluster_id:yt[Fe+N],point_count:Oe,point_count_abbreviated:de})}function le(yt){return yt/360+.5}function q(yt){const Fe=Math.sin(yt*Math.PI/180),We=.5-.25*Math.log((1+Fe)/(1-Fe))/Math.PI;return We<0?0:We>1?1:We}function J(yt){const Fe=(180-360*yt)*Math.PI/180;return 360*Math.atan(Math.exp(Fe))/Math.PI-90}function ee(yt,Fe,We,Oe){let de=Oe;const me=Fe+(We-Fe>>1);let be,Ie=We-Fe;const Xe=yt[Fe],ht=yt[Fe+1],bt=yt[We],Ct=yt[We+1];for(let Zt=Fe+3;Ztde)be=Zt,de=Wt;else if(Wt===de){const rr=Math.abs(Zt-me);rrOe&&(be-Fe>3&&ee(yt,Fe,be,Oe),yt[be+2]=de,We-be>3&&ee(yt,be,We,Oe))}function Z(yt,Fe,We,Oe,de,me){let be=de-We,Ie=me-Oe;if(be!==0||Ie!==0){const Xe=((yt-We)*be+(Fe-Oe)*Ie)/(be*be+Ie*Ie);Xe>1?(We=de,Oe=me):Xe>0&&(We+=be*Xe,Oe+=Ie*Xe)}return be=yt-We,Ie=Fe-Oe,be*be+Ie*Ie}function se(yt,Fe,We,Oe){const de={id:yt??null,type:Fe,geometry:We,tags:Oe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Fe==="Point"||Fe==="MultiPoint"||Fe==="LineString")Q(de,We);else if(Fe==="Polygon")Q(de,We[0]);else if(Fe==="MultiLineString")for(const me of We)Q(de,me);else if(Fe==="MultiPolygon")for(const me of We)Q(de,me[0]);return de}function Q(yt,Fe){for(let We=0;We0&&(be+=Oe?(de*bt-ht*me)/2:Math.sqrt(Math.pow(ht-de,2)+Math.pow(bt-me,2))),de=ht,me=bt}const Ie=Fe.length-3;Fe[2]=1,ee(Fe,0,Ie,We),Fe[Ie+2]=1,Fe.size=Math.abs(be),Fe.start=0,Fe.end=Fe.size}function fe(yt,Fe,We,Oe){for(let de=0;de1?1:We}function Pe(yt,Fe,We,Oe,de,me,be,Ie){if(Oe/=Fe,me>=(We/=Fe)&&be=Oe)return null;const Xe=[];for(const ht of yt){const bt=ht.geometry;let Ct=ht.type;const Zt=de===0?ht.minX:ht.minY,Wt=de===0?ht.maxX:ht.maxY;if(Zt>=We&&Wt=Oe)continue;let rr=[];if(Ct==="Point"||Ct==="MultiPoint")Ce(bt,rr,We,Oe,de);else if(Ct==="LineString")je(bt,rr,We,Oe,de,!1,Ie.lineMetrics);else if(Ct==="MultiLineString")tt(bt,rr,We,Oe,de,!1);else if(Ct==="Polygon")tt(bt,rr,We,Oe,de,!0);else if(Ct==="MultiPolygon")for(const Jt of bt){const mr=[];tt(Jt,mr,We,Oe,de,!0),mr.length&&rr.push(mr)}if(rr.length){if(Ie.lineMetrics&&Ct==="LineString"){for(const Jt of rr)Xe.push(se(ht.id,Ct,Jt,ht.tags));continue}Ct!=="LineString"&&Ct!=="MultiLineString"||(rr.length===1?(Ct="LineString",rr=rr[0]):Ct="MultiLineString"),Ct!=="Point"&&Ct!=="MultiPoint"||(Ct=rr.length===3?"Point":"MultiPoint"),Xe.push(se(ht.id,Ct,rr,ht.tags))}}return Xe.length?Xe:null}function Ce(yt,Fe,We,Oe,de){for(let me=0;me=We&&be<=Oe&&Je(Fe,yt[me],yt[me+1],yt[me+2])}}function je(yt,Fe,We,Oe,de,me,be){let Ie=at(yt);const Xe=de===0?Ze:Me;let ht,bt,Ct=yt.start;for(let mr=0;mrWe&&(bt=Xe(Ie,ia,Ia,Aa,Ga,We),be&&(Ie.start=Ct+ht*bt)):ba>Oe?Xa=We&&(bt=Xe(Ie,ia,Ia,Aa,Ga,We),yn=!0),Xa>Oe&&ba<=Oe&&(bt=Xe(Ie,ia,Ia,Aa,Ga,Oe),yn=!0),!me&&yn&&(be&&(Ie.end=Ct+ht*bt),Fe.push(Ie),Ie=at(yt)),be&&(Ct+=ht)}let Zt=yt.length-3;const Wt=yt[Zt],rr=yt[Zt+1],Jt=de===0?Wt:rr;Jt>=We&&Jt<=Oe&&Je(Ie,Wt,rr,yt[Zt+2]),Zt=Ie.length-3,me&&Zt>=3&&(Ie[Zt]!==Ie[0]||Ie[Zt+1]!==Ie[1])&&Je(Ie,Ie[0],Ie[1],Ie[2]),Ie.length&&Fe.push(Ie)}function at(yt){const Fe=[];return Fe.size=yt.size,Fe.start=yt.start,Fe.end=yt.end,Fe}function tt(yt,Fe,We,Oe,de,me){for(const be of yt)je(be,Fe,We,Oe,de,me,!1)}function Je(yt,Fe,We,Oe){yt.push(Fe,We,Oe)}function Ze(yt,Fe,We,Oe,de,me){const be=(me-Fe)/(Oe-Fe);return Je(yt,me,We+(de-We)*be,1),be}function Me(yt,Fe,We,Oe,de,me){const be=(me-We)/(de-We);return Je(yt,Fe+(Oe-Fe)*be,me,1),be}function we(yt,Fe){const We=[];for(let Oe=0;Oe0&&Fe.size<(de?be:Oe))return void(We.numPoints+=Fe.length/3);const Ie=[];for(let Xe=0;Xebe)&&(We.numSimplified++,Ie.push(Fe[Xe],Fe[Xe+1])),We.numPoints++;de&&function(Xe,ht){let bt=0;for(let Ct=0,Zt=Xe.length,Wt=Zt-2;Ct0===ht)for(let Ct=0,Zt=Xe.length;Ct24)throw new Error("maxZoom should be in the 0-24 range");if(We.promoteId&&We.generateId)throw new Error("promoteId and generateId cannot be used together.");let de=function(me,be){const Ie=[];if(me.type==="FeatureCollection")for(let Xe=0;Xe1&&console.time("creation"),Wt=this.tiles[Zt]=nt(Fe,We,Oe,de,ht),this.tileCoords.push({z:We,x:Oe,y:de}),bt)){bt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",We,Oe,de,Wt.numFeatures,Wt.numPoints,Wt.numSimplified),console.timeEnd("creation"));const yn=`z${We}`;this.stats[yn]=(this.stats[yn]||0)+1,this.total++}if(Wt.source=Fe,me==null){if(We===ht.indexMaxZoom||Wt.numPoints<=ht.indexMaxPoints)continue}else{if(We===ht.maxZoom||We===me)continue;if(me!=null){const yn=me-We;if(Oe!==be>>yn||de!==Ie>>yn)continue}}if(Wt.source=null,Fe.length===0)continue;bt>1&&console.time("clipping");const rr=.5*ht.buffer/ht.extent,Jt=.5-rr,mr=.5+rr,ia=1+rr;let Ia=null,La=null,Aa=null,Ga=null,ba=Pe(Fe,Ct,Oe-rr,Oe+mr,0,Wt.minX,Wt.maxX,ht),Xa=Pe(Fe,Ct,Oe+Jt,Oe+ia,0,Wt.minX,Wt.maxX,ht);Fe=null,ba&&(Ia=Pe(ba,Ct,de-rr,de+mr,1,Wt.minY,Wt.maxY,ht),La=Pe(ba,Ct,de+Jt,de+ia,1,Wt.minY,Wt.maxY,ht),ba=null),Xa&&(Aa=Pe(Xa,Ct,de-rr,de+mr,1,Wt.minY,Wt.maxY,ht),Ga=Pe(Xa,Ct,de+Jt,de+ia,1,Wt.minY,Wt.maxY,ht),Xa=null),bt>1&&console.timeEnd("clipping"),Xe.push(Ia||[],We+1,2*Oe,2*de),Xe.push(La||[],We+1,2*Oe,2*de+1),Xe.push(Aa||[],We+1,2*Oe+1,2*de),Xe.push(Ga||[],We+1,2*Oe+1,2*de+1)}}getTile(Fe,We,Oe){Fe=+Fe,We=+We,Oe=+Oe;const de=this.options,{extent:me,debug:be}=de;if(Fe<0||Fe>24)return null;const Ie=1<1&&console.log("drilling down to z%d-%d-%d",Fe,We,Oe);let ht,bt=Fe,Ct=We,Zt=Oe;for(;!ht&&bt>0;)bt--,Ct>>=1,Zt>>=1,ht=this.tiles[Yt(bt,Ct,Zt)];return ht&&ht.source?(be>1&&(console.log("found parent tile z%d-%d-%d",bt,Ct,Zt),console.time("drilling down")),this.splitTile(ht.source,bt,Ct,Zt,Fe,We,Oe),be>1&&console.timeEnd("drilling down"),this.tiles[Xe]?De(this.tiles[Xe],me):null):null}}function Yt(yt,Fe,We){return 32*((1<{Ct.properties=Wt;const rr={};for(const Jt of Zt)rr[Jt]=Xe[Jt].evaluate(bt,Ct);return rr},be.reduce=(Wt,rr)=>{Ct.properties=rr;for(const Jt of Zt)bt.accumulated=Wt[Jt],Wt[Jt]=ht[Jt].evaluate(bt,Ct)},be}(Fe)).load((yield this._pendingData).features):(de=yield this._pendingData,new Ut(de,Fe.geojsonVtOptions)),this.loaded={};const me={};if(Oe){const be=Oe.finish();be&&(me.resourceTiming={},me.resourceTiming[Fe.source]=JSON.parse(JSON.stringify(be)))}return me}catch(me){if(delete this._pendingRequest,e.bB(me))return{abandoned:!0};throw me}var de})}getData(){return e._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Fe){const We=this.loaded;return We&&We[Fe.uid]?super.reloadTile(Fe):this.loadTile(Fe)}loadAndProcessGeoJSON(Fe,We){return e._(this,void 0,void 0,function*(){let Oe=yield this.loadGeoJSON(Fe,We);if(delete this._pendingRequest,typeof Oe!="object")throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`);if(f(Oe,!0),Fe.filter){const de=e.bC(Fe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(de.result==="error")throw new Error(de.value.map(be=>`${be.key}: ${be.message}`).join(", "));Oe={type:"FeatureCollection",features:Oe.features.filter(be=>de.value.evaluate({zoom:0},be))}}return Oe})}loadGeoJSON(Fe,We){return e._(this,void 0,void 0,function*(){const{promoteId:Oe}=Fe;if(Fe.request){const de=yield e.h(Fe.request,We);return this._dataUpdateable=hr(de.data,Oe)?Rr(de.data,Oe):void 0,de.data}if(typeof Fe.data=="string")try{const de=JSON.parse(Fe.data);return this._dataUpdateable=hr(de,Oe)?Rr(de,Oe):void 0,de}catch{throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`)}if(!Fe.dataDiff)throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Fe.source}`);return function(de,me,be){var Ie,Xe,ht,bt;if(me.removeAll&&de.clear(),me.remove)for(const Ct of me.remove)de.delete(Ct);if(me.add)for(const Ct of me.add){const Zt=vr(Ct,be);Zt!=null&&de.set(Zt,Ct)}if(me.update)for(const Ct of me.update){let Zt=de.get(Ct.id);if(Zt==null)continue;const Wt=!Ct.removeAllProperties&&(((Ie=Ct.removeProperties)===null||Ie===void 0?void 0:Ie.length)>0||((Xe=Ct.addOrUpdateProperties)===null||Xe===void 0?void 0:Xe.length)>0);if((Ct.newGeometry||Ct.removeAllProperties||Wt)&&(Zt=Object.assign({},Zt),de.set(Ct.id,Zt),Wt&&(Zt.properties=Object.assign({},Zt.properties))),Ct.newGeometry&&(Zt.geometry=Ct.newGeometry),Ct.removeAllProperties)Zt.properties={};else if(((ht=Ct.removeProperties)===null||ht===void 0?void 0:ht.length)>0)for(const rr of Ct.removeProperties)Object.prototype.hasOwnProperty.call(Zt.properties,rr)&&delete Zt.properties[rr];if(((bt=Ct.addOrUpdateProperties)===null||bt===void 0?void 0:bt.length)>0)for(const{key:rr,value:Jt}of Ct.addOrUpdateProperties)Zt.properties[rr]=Jt}}(this._dataUpdateable,Fe.dataDiff,Oe),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Fe){return e._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Fe){return this._geoJSONIndex.getClusterExpansionZoom(Fe.clusterId)}getClusterChildren(Fe){return this._geoJSONIndex.getChildren(Fe.clusterId)}getClusterLeaves(Fe){return this._geoJSONIndex.getLeaves(Fe.clusterId,Fe.limit,Fe.offset)}}class wr{constructor(Fe){this.self=Fe,this.actor=new e.F(Fe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(We,Oe)=>{if(this.externalWorkerSourceTypes[We])throw new Error(`Worker source with name "${We}" already registered.`);this.externalWorkerSourceTypes[We]=Oe},this.self.addProtocol=e.bi,this.self.removeProtocol=e.bj,this.self.registerRTLTextPlugin=We=>{if(e.bD.isParsed())throw new Error("RTL text plugin already registered.");e.bD.setMethods(We)},this.actor.registerMessageHandler("LDT",(We,Oe)=>this._getDEMWorkerSource(We,Oe.source).loadTile(Oe)),this.actor.registerMessageHandler("RDT",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getDEMWorkerSource(We,Oe.source).removeTile(Oe)})),this.actor.registerMessageHandler("GCEZ",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterExpansionZoom(Oe)})),this.actor.registerMessageHandler("GCC",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterChildren(Oe)})),this.actor.registerMessageHandler("GCL",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterLeaves(Oe)})),this.actor.registerMessageHandler("LD",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).loadData(Oe)),this.actor.registerMessageHandler("GD",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).getData()),this.actor.registerMessageHandler("LT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).loadTile(Oe)),this.actor.registerMessageHandler("RT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).reloadTile(Oe)),this.actor.registerMessageHandler("AT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).abortTile(Oe)),this.actor.registerMessageHandler("RMT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).removeTile(Oe)),this.actor.registerMessageHandler("RS",(We,Oe)=>e._(this,void 0,void 0,function*(){if(!this.workerSources[We]||!this.workerSources[We][Oe.type]||!this.workerSources[We][Oe.type][Oe.source])return;const de=this.workerSources[We][Oe.type][Oe.source];delete this.workerSources[We][Oe.type][Oe.source],de.removeSource!==void 0&&de.removeSource(Oe)})),this.actor.registerMessageHandler("RM",We=>e._(this,void 0,void 0,function*(){delete this.layerIndexes[We],delete this.availableImages[We],delete this.workerSources[We],delete this.demWorkerSources[We]})),this.actor.registerMessageHandler("SR",(We,Oe)=>e._(this,void 0,void 0,function*(){this.referrer=Oe})),this.actor.registerMessageHandler("SRPS",(We,Oe)=>this._syncRTLPluginState(We,Oe)),this.actor.registerMessageHandler("IS",(We,Oe)=>e._(this,void 0,void 0,function*(){this.self.importScripts(Oe)})),this.actor.registerMessageHandler("SI",(We,Oe)=>this._setImages(We,Oe)),this.actor.registerMessageHandler("UL",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(We).update(Oe.layers,Oe.removedIds)})),this.actor.registerMessageHandler("SL",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(We).replace(Oe)}))}_setImages(Fe,We){return e._(this,void 0,void 0,function*(){this.availableImages[Fe]=We;for(const Oe in this.workerSources[Fe]){const de=this.workerSources[Fe][Oe];for(const me in de)de[me].availableImages=We}})}_syncRTLPluginState(Fe,We){return e._(this,void 0,void 0,function*(){if(e.bD.isParsed())return e.bD.getState();if(We.pluginStatus!=="loading")return e.bD.setState(We),We;const Oe=We.pluginURL;if(this.self.importScripts(Oe),e.bD.isParsed()){const de={pluginStatus:"loaded",pluginURL:Oe};return e.bD.setState(de),de}throw e.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Oe}`)})}_getAvailableImages(Fe){let We=this.availableImages[Fe];return We||(We=[]),We}_getLayerIndex(Fe){let We=this.layerIndexes[Fe];return We||(We=this.layerIndexes[Fe]=new t),We}_getWorkerSource(Fe,We,Oe){if(this.workerSources[Fe]||(this.workerSources[Fe]={}),this.workerSources[Fe][We]||(this.workerSources[Fe][We]={}),!this.workerSources[Fe][We][Oe]){const de={sendAsync:(me,be)=>(me.targetMapId=Fe,this.actor.sendAsync(me,be))};switch(We){case"vector":this.workerSources[Fe][We][Oe]=new o(de,this._getLayerIndex(Fe),this._getAvailableImages(Fe));break;case"geojson":this.workerSources[Fe][We][Oe]=new dr(de,this._getLayerIndex(Fe),this._getAvailableImages(Fe));break;default:this.workerSources[Fe][We][Oe]=new this.externalWorkerSourceTypes[We](de,this._getLayerIndex(Fe),this._getAvailableImages(Fe))}}return this.workerSources[Fe][We][Oe]}_getDEMWorkerSource(Fe,We){return this.demWorkerSources[Fe]||(this.demWorkerSources[Fe]={}),this.demWorkerSources[Fe][We]||(this.demWorkerSources[Fe][We]=new n),this.demWorkerSources[Fe][We]}}return e.i(self)&&(self.worker=new wr(self)),wr}),A("index",["exports","./shared"],function(e,t){var r="4.7.1";let i,a;const o={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ze=>new Promise((L,ne)=>{const Te=requestAnimationFrame(L);ze.signal.addEventListener("abort",()=>{cancelAnimationFrame(Te),ne(t.c())})}),getImageData(ze,L=0){return this.getImageCanvasContext(ze).getImageData(-L,-L,ze.width+2*L,ze.height+2*L)},getImageCanvasContext(ze){const L=window.document.createElement("canvas"),ne=L.getContext("2d",{willReadFrequently:!0});if(!ne)throw new Error("failed to create canvas 2d context");return L.width=ze.width,L.height=ze.height,ne.drawImage(ze,0,0,ze.width,ze.height),ne},resolveURL:ze=>(i||(i=document.createElement("a")),i.href=ze,i.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(a==null&&(a=matchMedia("(prefers-reduced-motion: reduce)")),a.matches)}};class n{static testProp(L){if(!n.docStyle)return L[0];for(let ne=0;ne{window.removeEventListener("click",n.suppressClickInternal,!0)},0)}static getScale(L){const ne=L.getBoundingClientRect();return{x:ne.width/L.offsetWidth||1,y:ne.height/L.offsetHeight||1,boundingClientRect:ne}}static getPoint(L,ne,Te){const Se=ne.boundingClientRect;return new t.P((Te.clientX-Se.left)/ne.x-L.clientLeft,(Te.clientY-Se.top)/ne.y-L.clientTop)}static mousePos(L,ne){const Te=n.getScale(L);return n.getPoint(L,Te,ne)}static touchPos(L,ne){const Te=[],Se=n.getScale(L);for(let Re=0;Re{c&&T(c),c=null,v=!0},f.onerror=()=>{p=!0,c=null},f.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ze){let L,ne,Te,Se;ze.resetRequestQueue=()=>{L=[],ne=0,Te=0,Se={}},ze.addThrottleControl=Dt=>{const er=Te++;return Se[er]=Dt,er},ze.removeThrottleControl=Dt=>{delete Se[Dt],ft()},ze.getImage=(Dt,er,fr=!0)=>new Promise((pr,Br)=>{s.supported&&(Dt.headers||(Dt.headers={}),Dt.headers.accept="image/webp,*/*"),t.e(Dt,{type:"image"}),L.push({abortController:er,requestParameters:Dt,supportImageRefresh:fr,state:"queued",onError:ea=>{Br(ea)},onSuccess:ea=>{pr(ea)}}),ft()});const Re=Dt=>t._(this,void 0,void 0,function*(){Dt.state="running";const{requestParameters:er,supportImageRefresh:fr,onError:pr,onSuccess:Br,abortController:ea}=Dt,Ve=fr===!1&&!t.i(self)&&!t.g(er.url)&&(!er.headers||Object.keys(er.headers).reduce((vt,St)=>vt&&St==="accept",!0));ne++;const Ye=Ve?xt(er,ea):t.m(er,ea);try{const vt=yield Ye;delete Dt.abortController,Dt.state="completed",vt.data instanceof HTMLImageElement||t.b(vt.data)?Br(vt):vt.data&&Br({data:yield(it=vt.data,typeof createImageBitmap=="function"?t.d(it):t.f(it)),cacheControl:vt.cacheControl,expires:vt.expires})}catch(vt){delete Dt.abortController,pr(vt)}finally{ne--,ft()}var it}),ft=()=>{const Dt=(()=>{for(const er of Object.keys(Se))if(Se[er]())return!0;return!1})()?t.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:t.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let er=ne;er0;er++){const fr=L.shift();fr.abortController.signal.aborted?er--:Re(fr)}},xt=(Dt,er)=>new Promise((fr,pr)=>{const Br=new Image,ea=Dt.url,Ve=Dt.credentials;Ve&&Ve==="include"?Br.crossOrigin="use-credentials":(Ve&&Ve==="same-origin"||!t.s(ea))&&(Br.crossOrigin="anonymous"),er.signal.addEventListener("abort",()=>{Br.src="",pr(t.c())}),Br.fetchPriority="high",Br.onload=()=>{Br.onerror=Br.onload=null,fr({data:Br})},Br.onerror=()=>{Br.onerror=Br.onload=null,er.signal.aborted||pr(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},Br.src=ea})}(l||(l={})),l.resetRequestQueue();class m{constructor(L){this._transformRequestFn=L}transformRequest(L,ne){return this._transformRequestFn&&this._transformRequestFn(L,ne)||{url:L}}setTransformRequest(L){this._transformRequestFn=L}}function w(ze){var L=new t.A(3);return L[0]=ze[0],L[1]=ze[1],L[2]=ze[2],L}var S,M=function(ze,L,ne){return ze[0]=L[0]-ne[0],ze[1]=L[1]-ne[1],ze[2]=L[2]-ne[2],ze};S=new t.A(3),t.A!=Float32Array&&(S[0]=0,S[1]=0,S[2]=0);var _=function(ze){var L=ze[0],ne=ze[1];return L*L+ne*ne};function b(ze){const L=[];if(typeof ze=="string")L.push({id:"default",url:ze});else if(ze&&ze.length>0){const ne=[];for(const{id:Te,url:Se}of ze){const Re=`${Te}${Se}`;ne.indexOf(Re)===-1&&(ne.push(Re),L.push({id:Te,url:Se}))}}return L}function d(ze,L,ne){const Te=ze.split("?");return Te[0]+=`${L}${ne}`,Te.join("?")}(function(){var ze=new t.A(2);t.A!=Float32Array&&(ze[0]=0,ze[1]=0)})();class u{constructor(L,ne,Te,Se){this.context=L,this.format=Te,this.texture=L.gl.createTexture(),this.update(ne,Se)}update(L,ne,Te){const{width:Se,height:Re}=L,ft=!(this.size&&this.size[0]===Se&&this.size[1]===Re||Te),{context:xt}=this,{gl:Dt}=xt;if(this.useMipmap=!!(ne&&ne.useMipmap),Dt.bindTexture(Dt.TEXTURE_2D,this.texture),xt.pixelStoreUnpackFlipY.set(!1),xt.pixelStoreUnpack.set(1),xt.pixelStoreUnpackPremultiplyAlpha.set(this.format===Dt.RGBA&&(!ne||ne.premultiply!==!1)),ft)this.size=[Se,Re],L instanceof HTMLImageElement||L instanceof HTMLCanvasElement||L instanceof HTMLVideoElement||L instanceof ImageData||t.b(L)?Dt.texImage2D(Dt.TEXTURE_2D,0,this.format,this.format,Dt.UNSIGNED_BYTE,L):Dt.texImage2D(Dt.TEXTURE_2D,0,this.format,Se,Re,0,this.format,Dt.UNSIGNED_BYTE,L.data);else{const{x:er,y:fr}=Te||{x:0,y:0};L instanceof HTMLImageElement||L instanceof HTMLCanvasElement||L instanceof HTMLVideoElement||L instanceof ImageData||t.b(L)?Dt.texSubImage2D(Dt.TEXTURE_2D,0,er,fr,Dt.RGBA,Dt.UNSIGNED_BYTE,L):Dt.texSubImage2D(Dt.TEXTURE_2D,0,er,fr,Se,Re,Dt.RGBA,Dt.UNSIGNED_BYTE,L.data)}this.useMipmap&&this.isSizePowerOfTwo()&&Dt.generateMipmap(Dt.TEXTURE_2D)}bind(L,ne,Te){const{context:Se}=this,{gl:Re}=Se;Re.bindTexture(Re.TEXTURE_2D,this.texture),Te!==Re.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Te=Re.LINEAR),L!==this.filter&&(Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MAG_FILTER,L),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MIN_FILTER,Te||L),this.filter=L),ne!==this.wrap&&(Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_S,ne),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_T,ne),this.wrap=ne)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:L}=this.context;L.deleteTexture(this.texture),this.texture=null}}function g(ze){const{userImage:L}=ze;return!!(L&&L.render&&L.render())&&(ze.data.replace(new Uint8Array(L.data.buffer)),!0)}class y extends t.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(L){if(this.loaded!==L&&(this.loaded=L,L)){for(const{ids:ne,promiseResolve:Te}of this.requestors)Te(this._getImagesForIds(ne));this.requestors=[]}}getImage(L){const ne=this.images[L];if(ne&&!ne.data&&ne.spriteData){const Te=ne.spriteData;ne.data=new t.R({width:Te.width,height:Te.height},Te.context.getImageData(Te.x,Te.y,Te.width,Te.height).data),ne.spriteData=null}return ne}addImage(L,ne){if(this.images[L])throw new Error(`Image id ${L} already exist, use updateImage instead`);this._validate(L,ne)&&(this.images[L]=ne)}_validate(L,ne){let Te=!0;const Se=ne.data||ne.spriteData;return this._validateStretch(ne.stretchX,Se&&Se.width)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "stretchX" value`))),Te=!1),this._validateStretch(ne.stretchY,Se&&Se.height)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "stretchY" value`))),Te=!1),this._validateContent(ne.content,ne)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "content" value`))),Te=!1),Te}_validateStretch(L,ne){if(!L)return!0;let Te=0;for(const Se of L){if(Se[0]{let Se=!0;if(!this.isLoaded())for(const Re of L)this.images[Re]||(Se=!1);this.isLoaded()||Se?ne(this._getImagesForIds(L)):this.requestors.push({ids:L,promiseResolve:ne})})}_getImagesForIds(L){const ne={};for(const Te of L){let Se=this.getImage(Te);Se||(this.fire(new t.k("styleimagemissing",{id:Te})),Se=this.getImage(Te)),Se?ne[Te]={data:Se.data.clone(),pixelRatio:Se.pixelRatio,sdf:Se.sdf,version:Se.version,stretchX:Se.stretchX,stretchY:Se.stretchY,content:Se.content,textFitWidth:Se.textFitWidth,textFitHeight:Se.textFitHeight,hasRenderCallback:!!(Se.userImage&&Se.userImage.render)}:t.w(`Image "${Te}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return ne}getPixelSize(){const{width:L,height:ne}=this.atlasImage;return{width:L,height:ne}}getPattern(L){const ne=this.patterns[L],Te=this.getImage(L);if(!Te)return null;if(ne&&ne.position.version===Te.version)return ne.position;if(ne)ne.position.version=Te.version;else{const Se={w:Te.data.width+2,h:Te.data.height+2,x:0,y:0},Re=new t.I(Se,Te);this.patterns[L]={bin:Se,position:Re}}return this._updatePatternAtlas(),this.patterns[L].position}bind(L){const ne=L.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new u(L,this.atlasImage,ne.RGBA),this.atlasTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE)}_updatePatternAtlas(){const L=[];for(const Re in this.patterns)L.push(this.patterns[Re].bin);const{w:ne,h:Te}=t.p(L),Se=this.atlasImage;Se.resize({width:ne||1,height:Te||1});for(const Re in this.patterns){const{bin:ft}=this.patterns[Re],xt=ft.x+1,Dt=ft.y+1,er=this.getImage(Re).data,fr=er.width,pr=er.height;t.R.copy(er,Se,{x:0,y:0},{x:xt,y:Dt},{width:fr,height:pr}),t.R.copy(er,Se,{x:0,y:pr-1},{x:xt,y:Dt-1},{width:fr,height:1}),t.R.copy(er,Se,{x:0,y:0},{x:xt,y:Dt+pr},{width:fr,height:1}),t.R.copy(er,Se,{x:fr-1,y:0},{x:xt-1,y:Dt},{width:1,height:pr}),t.R.copy(er,Se,{x:0,y:0},{x:xt+fr,y:Dt},{width:1,height:pr})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(L){for(const ne of L){if(this.callbackDispatchedThisFrame[ne])continue;this.callbackDispatchedThisFrame[ne]=!0;const Te=this.getImage(ne);Te||t.w(`Image with ID: "${ne}" was not found`),g(Te)&&this.updateImage(ne,Te)}}}const R=1e20;function I(ze,L,ne,Te,Se,Re,ft,xt,Dt){for(let er=L;er-1);Dt++,Re[Dt]=xt,ft[Dt]=er,ft[Dt+1]=R}for(let xt=0,Dt=0;xt65535)throw new Error("glyphs > 65535 not supported");if(Te.ranges[Re])return{stack:L,id:ne,glyph:Se};if(!this.url)throw new Error("glyphsUrl is not set");if(!Te.requests[Re]){const xt=F.loadGlyphRange(L,Re,this.url,this.requestManager);Te.requests[Re]=xt}const ft=yield Te.requests[Re];for(const xt in ft)this._doesCharSupportLocalGlyph(+xt)||(Te.glyphs[+xt]=ft[+xt]);return Te.ranges[Re]=!0,{stack:L,id:ne,glyph:ft[ne]||null}})}_doesCharSupportLocalGlyph(L){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(L))}_tinySDF(L,ne,Te){const Se=this.localIdeographFontFamily;if(!Se||!this._doesCharSupportLocalGlyph(Te))return;let Re=L.tinySDF;if(!Re){let xt="400";/bold/i.test(ne)?xt="900":/medium/i.test(ne)?xt="500":/light/i.test(ne)&&(xt="200"),Re=L.tinySDF=new F.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:Se,fontWeight:xt})}const ft=Re.draw(String.fromCharCode(Te));return{id:Te,bitmap:new t.o({width:ft.width||60,height:ft.height||60},ft.data),metrics:{width:ft.glyphWidth/2||24,height:ft.glyphHeight/2||24,left:ft.glyphLeft/2+.5||0,top:ft.glyphTop/2-27.5||-8,advance:ft.glyphAdvance/2||24,isDoubleResolution:!0}}}}F.loadGlyphRange=function(ze,L,ne,Te){return t._(this,void 0,void 0,function*(){const Se=256*L,Re=Se+255,ft=Te.transformRequest(ne.replace("{fontstack}",ze).replace("{range}",`${Se}-${Re}`),"Glyphs"),xt=yield t.l(ft,new AbortController);if(!xt||!xt.data)throw new Error(`Could not load glyph range. range: ${L}, ${Se}-${Re}`);const Dt={};for(const er of t.n(xt.data))Dt[er.id]=er;return Dt})},F.TinySDF=class{constructor({fontSize:ze=24,buffer:L=3,radius:ne=8,cutoff:Te=.25,fontFamily:Se="sans-serif",fontWeight:Re="normal",fontStyle:ft="normal"}={}){this.buffer=L,this.cutoff=Te,this.radius=ne;const xt=this.size=ze+4*L,Dt=this._createCanvas(xt),er=this.ctx=Dt.getContext("2d",{willReadFrequently:!0});er.font=`${ft} ${Re} ${ze}px ${Se}`,er.textBaseline="alphabetic",er.textAlign="left",er.fillStyle="black",this.gridOuter=new Float64Array(xt*xt),this.gridInner=new Float64Array(xt*xt),this.f=new Float64Array(xt),this.z=new Float64Array(xt+1),this.v=new Uint16Array(xt)}_createCanvas(ze){const L=document.createElement("canvas");return L.width=L.height=ze,L}draw(ze){const{width:L,actualBoundingBoxAscent:ne,actualBoundingBoxDescent:Te,actualBoundingBoxLeft:Se,actualBoundingBoxRight:Re}=this.ctx.measureText(ze),ft=Math.ceil(ne),xt=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(Re-Se))),Dt=Math.min(this.size-this.buffer,ft+Math.ceil(Te)),er=xt+2*this.buffer,fr=Dt+2*this.buffer,pr=Math.max(er*fr,0),Br=new Uint8ClampedArray(pr),ea={data:Br,width:er,height:fr,glyphWidth:xt,glyphHeight:Dt,glyphTop:ft,glyphLeft:0,glyphAdvance:L};if(xt===0||Dt===0)return ea;const{ctx:Ve,buffer:Ye,gridInner:it,gridOuter:vt}=this;Ve.clearRect(Ye,Ye,xt,Dt),Ve.fillText(ze,Ye,Ye+ft);const St=Ve.getImageData(Ye,Ye,xt,Dt);vt.fill(R,0,pr),it.fill(0,0,pr);for(let _t=0;_t0?gr*gr:0,it[cr]=gr<0?gr*gr:0}}I(vt,0,0,er,fr,er,this.f,this.v,this.z),I(it,Ye,Ye,xt,Dt,er,this.f,this.v,this.z);for(let _t=0;_t1&&(Dt=L[++xt]);const fr=Math.abs(er-Dt.left),pr=Math.abs(er-Dt.right),Br=Math.min(fr,pr);let ea;const Ve=Re/Te*(Se+1);if(Dt.isDash){const Ye=Se-Math.abs(Ve);ea=Math.sqrt(Br*Br+Ye*Ye)}else ea=Se-Math.sqrt(Br*Br+Ve*Ve);this.data[ft+er]=Math.max(0,Math.min(255,ea+128))}}}addRegularDash(L){for(let xt=L.length-1;xt>=0;--xt){const Dt=L[xt],er=L[xt+1];Dt.zeroLength?L.splice(xt,1):er&&er.isDash===Dt.isDash&&(er.left=Dt.left,L.splice(xt,1))}const ne=L[0],Te=L[L.length-1];ne.isDash===Te.isDash&&(ne.left=Te.left-this.width,Te.right=ne.right+this.width);const Se=this.width*this.nextRow;let Re=0,ft=L[Re];for(let xt=0;xt1&&(ft=L[++Re]);const Dt=Math.abs(xt-ft.left),er=Math.abs(xt-ft.right),fr=Math.min(Dt,er);this.data[Se+xt]=Math.max(0,Math.min(255,(ft.isDash?fr:-fr)+128))}}addDash(L,ne){const Te=ne?7:0,Se=2*Te+1;if(this.nextRow+Se>this.height)return t.w("LineAtlas out of space"),null;let Re=0;for(let xt=0;xt{ne.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[te]}numActive(){return Object.keys(this.active).length}}const ie=Math.floor(o.hardwareConcurrency/2);let le,q;function J(){return le||(le=new ue),le}ue.workerCount=t.C(globalThis)?Math.max(Math.min(ie,3),1):1;class ee{constructor(L,ne){this.workerPool=L,this.actors=[],this.currentActor=0,this.id=ne;const Te=this.workerPool.acquire(ne);for(let Se=0;Se{ne.remove()}),this.actors=[],L&&this.workerPool.release(this.id)}registerMessageHandler(L,ne){for(const Te of this.actors)Te.registerMessageHandler(L,ne)}}function Z(){return q||(q=new ee(J(),t.G),q.registerMessageHandler("GR",(ze,L,ne)=>t.m(L,ne))),q}function se(ze,L){const ne=t.H();return t.J(ne,ne,[1,1,0]),t.K(ne,ne,[.5*ze.width,.5*ze.height,1]),t.L(ne,ne,ze.calculatePosMatrix(L.toUnwrapped()))}function Q(ze,L,ne,Te,Se,Re){const ft=function(pr,Br,ea){if(pr)for(const Ve of pr){const Ye=Br[Ve];if(Ye&&Ye.source===ea&&Ye.type==="fill-extrusion")return!0}else for(const Ve in Br){const Ye=Br[Ve];if(Ye.source===ea&&Ye.type==="fill-extrusion")return!0}return!1}(Se&&Se.layers,L,ze.id),xt=Re.maxPitchScaleFactor(),Dt=ze.tilesIn(Te,xt,ft);Dt.sort(V);const er=[];for(const pr of Dt)er.push({wrappedTileID:pr.tileID.wrapped().key,queryResults:pr.tile.queryRenderedFeatures(L,ne,ze._state,pr.queryGeometry,pr.cameraQueryGeometry,pr.scale,Se,Re,xt,se(ze.transform,pr.tileID))});const fr=function(pr){const Br={},ea={};for(const Ve of pr){const Ye=Ve.queryResults,it=Ve.wrappedTileID,vt=ea[it]=ea[it]||{};for(const St in Ye){const _t=Ye[St],Lt=vt[St]=vt[St]||{},nr=Br[St]=Br[St]||[];for(const cr of _t)Lt[cr.featureIndex]||(Lt[cr.featureIndex]=!0,nr.push(cr))}}return Br}(er);for(const pr in fr)fr[pr].forEach(Br=>{const ea=Br.feature,Ve=ze.getFeatureState(ea.layer["source-layer"],ea.id);ea.source=ea.layer.source,ea.layer["source-layer"]&&(ea.sourceLayer=ea.layer["source-layer"]),ea.state=Ve});return fr}function V(ze,L){const ne=ze.tileID,Te=L.tileID;return ne.overscaledZ-Te.overscaledZ||ne.canonical.y-Te.canonical.y||ne.wrap-Te.wrap||ne.canonical.x-Te.canonical.x}function re(ze,L,ne){return t._(this,void 0,void 0,function*(){let Te=ze;if(ze.url?Te=(yield t.h(L.transformRequest(ze.url,"Source"),ne)).data:yield o.frameAsync(ne),!Te)return null;const Se=t.M(t.e(Te,ze),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Te&&Te.vector_layers&&(Se.vectorLayerIds=Te.vector_layers.map(Re=>Re.id)),Se})}class ae{constructor(L,ne){L&&(ne?this.setSouthWest(L).setNorthEast(ne):Array.isArray(L)&&(L.length===4?this.setSouthWest([L[0],L[1]]).setNorthEast([L[2],L[3]]):this.setSouthWest(L[0]).setNorthEast(L[1])))}setNorthEast(L){return this._ne=L instanceof t.N?new t.N(L.lng,L.lat):t.N.convert(L),this}setSouthWest(L){return this._sw=L instanceof t.N?new t.N(L.lng,L.lat):t.N.convert(L),this}extend(L){const ne=this._sw,Te=this._ne;let Se,Re;if(L instanceof t.N)Se=L,Re=L;else{if(!(L instanceof ae))return Array.isArray(L)?L.length===4||L.every(Array.isArray)?this.extend(ae.convert(L)):this.extend(t.N.convert(L)):L&&("lng"in L||"lon"in L)&&"lat"in L?this.extend(t.N.convert(L)):this;if(Se=L._sw,Re=L._ne,!Se||!Re)return this}return ne||Te?(ne.lng=Math.min(Se.lng,ne.lng),ne.lat=Math.min(Se.lat,ne.lat),Te.lng=Math.max(Re.lng,Te.lng),Te.lat=Math.max(Re.lat,Te.lat)):(this._sw=new t.N(Se.lng,Se.lat),this._ne=new t.N(Re.lng,Re.lat)),this}getCenter(){return new t.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new t.N(this.getWest(),this.getNorth())}getSouthEast(){return new t.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(L){const{lng:ne,lat:Te}=t.N.convert(L);let Se=this._sw.lng<=ne&&ne<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Se=this._sw.lng>=ne&&ne>=this._ne.lng),this._sw.lat<=Te&&Te<=this._ne.lat&&Se}static convert(L){return L instanceof ae?L:L&&new ae(L)}static fromLngLat(L,ne=0){const Te=360*ne/40075017,Se=Te/Math.cos(Math.PI/180*L.lat);return new ae(new t.N(L.lng-Se,L.lat-Te),new t.N(L.lng+Se,L.lat+Te))}adjustAntiMeridian(){const L=new t.N(this._sw.lng,this._sw.lat),ne=new t.N(this._ne.lng,this._ne.lat);return new ae(L,L.lng>ne.lng?new t.N(ne.lng+360,ne.lat):ne)}}class fe{constructor(L,ne,Te){this.bounds=ae.convert(this.validateBounds(L)),this.minzoom=ne||0,this.maxzoom=Te||24}validateBounds(L){return Array.isArray(L)&&L.length===4?[Math.max(-180,L[0]),Math.max(-90,L[1]),Math.min(180,L[2]),Math.min(90,L[3])]:[-180,-90,180,90]}contains(L){const ne=Math.pow(2,L.z),Te=Math.floor(t.O(this.bounds.getWest())*ne),Se=Math.floor(t.Q(this.bounds.getNorth())*ne),Re=Math.ceil(t.O(this.bounds.getEast())*ne),ft=Math.ceil(t.Q(this.bounds.getSouth())*ne);return L.x>=Te&&L.x=Se&&L.y{this._options.tiles=L}),this}setUrl(L){return this.setSourceProperty(()=>{this.url=L,this._options.url=L}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return t.e({},this._options)}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Te={request:this.map._requestManager.transformRequest(ne,"Tile"),uid:L.uid,tileID:L.tileID,zoom:L.tileID.overscaledZ,tileSize:this.tileSize*L.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Te.request.collectResourceTiming=this._collectResourceTiming;let Se="RT";if(L.actor&&L.state!=="expired"){if(L.state==="loading")return new Promise((Re,ft)=>{L.reloadPromise={resolve:Re,reject:ft}})}else L.actor=this.dispatcher.getActor(),Se="LT";L.abortController=new AbortController;try{const Re=yield L.actor.sendAsync({type:Se,data:Te},L.abortController);if(delete L.abortController,L.aborted)return;this._afterTileLoadWorkerResponse(L,Re)}catch(Re){if(delete L.abortController,L.aborted)return;if(Re&&Re.status!==404)throw Re;this._afterTileLoadWorkerResponse(L,null)}})}_afterTileLoadWorkerResponse(L,ne){if(ne&&ne.resourceTiming&&(L.resourceTiming=ne.resourceTiming),ne&&this.map._refreshExpiredTiles&&L.setExpiryData(ne),L.loadVectorData(ne,this.map.painter),L.reloadPromise){const Te=L.reloadPromise;L.reloadPromise=null,this.loadTile(L).then(Te.resolve).catch(Te.reject)}}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController),L.actor&&(yield L.actor.sendAsync({type:"AT",data:{uid:L.uid,type:this.type,source:this.id}}))})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.unloadVectorData(),L.actor&&(yield L.actor.sendAsync({type:"RMT",data:{uid:L.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class Ae extends t.E{constructor(L,ne,Te,Se){super(),this.id=L,this.dispatcher=Te,this.setEventedParent(Se),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.e({type:"raster"},ne),t.e(this,t.M(ne,["url","scheme","tileSize"]))}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{const L=yield re(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,L&&(t.e(this,L),L.bounds&&(this.tileBounds=new fe(L.bounds,this.minzoom,this.maxzoom)),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})))}catch(L){this._tileJSONRequest=null,this.fire(new t.j(L))}})}loaded(){return this._loaded}onAdd(L){this.map=L,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(L){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),L(),this.load()}setTiles(L){return this.setSourceProperty(()=>{this._options.tiles=L}),this}setUrl(L){return this.setSourceProperty(()=>{this.url=L,this._options.url=L}),this}serialize(){return t.e({},this._options)}hasTile(L){return!this.tileBounds||this.tileBounds.contains(L.canonical)}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);L.abortController=new AbortController;try{const Te=yield l.getImage(this.map._requestManager.transformRequest(ne,"Tile"),L.abortController,this.map._refreshExpiredTiles);if(delete L.abortController,L.aborted)return void(L.state="unloaded");if(Te&&Te.data){this.map._refreshExpiredTiles&&Te.cacheControl&&Te.expires&&L.setExpiryData({cacheControl:Te.cacheControl,expires:Te.expires});const Se=this.map.painter.context,Re=Se.gl,ft=Te.data;L.texture=this.map.painter.getTileTexture(ft.width),L.texture?L.texture.update(ft,{useMipmap:!0}):(L.texture=new u(Se,ft,Re.RGBA,{useMipmap:!0}),L.texture.bind(Re.LINEAR,Re.CLAMP_TO_EDGE,Re.LINEAR_MIPMAP_NEAREST)),L.state="loaded"}}catch(Te){if(delete L.abortController,L.aborted)L.state="unloaded";else if(Te)throw L.state="errored",Te}})}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController)})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.texture&&this.map.painter.saveTileTexture(L.texture)})}hasTransition(){return!1}}class Pe extends Ae{constructor(L,ne,Te,Se){super(L,ne,Te,Se),this.type="raster-dem",this.maxzoom=22,this._options=t.e({type:"raster-dem"},ne),this.encoding=ne.encoding||"mapbox",this.redFactor=ne.redFactor,this.greenFactor=ne.greenFactor,this.blueFactor=ne.blueFactor,this.baseShift=ne.baseShift}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Te=this.map._requestManager.transformRequest(ne,"Tile");L.neighboringTiles=this._getNeighboringTiles(L.tileID),L.abortController=new AbortController;try{const Se=yield l.getImage(Te,L.abortController,this.map._refreshExpiredTiles);if(delete L.abortController,L.aborted)return void(L.state="unloaded");if(Se&&Se.data){const Re=Se.data;this.map._refreshExpiredTiles&&Se.cacheControl&&Se.expires&&L.setExpiryData({cacheControl:Se.cacheControl,expires:Se.expires});const ft=t.b(Re)&&t.U()?Re:yield this.readImageNow(Re),xt={type:this.type,uid:L.uid,source:this.id,rawImageData:ft,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!L.actor||L.state==="expired"){L.actor=this.dispatcher.getActor();const Dt=yield L.actor.sendAsync({type:"LDT",data:xt});L.dem=Dt,L.needsHillshadePrepare=!0,L.needsTerrainPrepare=!0,L.state="loaded"}}}catch(Se){if(delete L.abortController,L.aborted)L.state="unloaded";else if(Se)throw L.state="errored",Se}})}readImageNow(L){return t._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&t.V()){const ne=L.width+2,Te=L.height+2;try{return new t.R({width:ne,height:Te},yield t.W(L,-1,-1,ne,Te))}catch{}}return o.getImageData(L,1)})}_getNeighboringTiles(L){const ne=L.canonical,Te=Math.pow(2,ne.z),Se=(ne.x-1+Te)%Te,Re=ne.x===0?L.wrap-1:L.wrap,ft=(ne.x+1+Te)%Te,xt=ne.x+1===Te?L.wrap+1:L.wrap,Dt={};return Dt[new t.S(L.overscaledZ,Re,ne.z,Se,ne.y).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,xt,ne.z,ft,ne.y).key]={backfilled:!1},ne.y>0&&(Dt[new t.S(L.overscaledZ,Re,ne.z,Se,ne.y-1).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,L.wrap,ne.z,ne.x,ne.y-1).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,xt,ne.z,ft,ne.y-1).key]={backfilled:!1}),ne.y+10&&t.e(Re,{resourceTiming:Se}),this.fire(new t.k("data",Object.assign(Object.assign({},Re),{sourceDataType:"metadata"}))),this.fire(new t.k("data",Object.assign(Object.assign({},Re),{sourceDataType:"content"})))}catch(Te){if(this._pendingLoads--,this._removed)return void this.fire(new t.k("dataabort",{dataType:"source"}));this.fire(new t.j(Te))}})}loaded(){return this._pendingLoads===0}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.actor?"RT":"LT";L.actor=this.actor;const Te={type:this.type,uid:L.uid,tileID:L.tileID,zoom:L.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};L.abortController=new AbortController;const Se=yield this.actor.sendAsync({type:ne,data:Te},L.abortController);delete L.abortController,L.unloadVectorData(),L.aborted||L.loadVectorData(Se,this.map.painter,ne==="RT")})}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController),L.aborted=!0})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:L.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return t.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var je=t.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class at extends t.E{constructor(L,ne,Te,Se){super(),this.id=L,this.dispatcher=Te,this.coordinates=ne.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Se),this.options=ne}load(L){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{const ne=yield l.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,ne&&ne.data&&(this.image=ne.data,L&&(this.coordinates=L),this._finishLoading())}catch(ne){this._request=null,this._loaded=!0,this.fire(new t.j(ne))}})}loaded(){return this._loaded}updateImage(L){return L.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=L.url,this.load(L.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(L){this.map=L,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(L){this.coordinates=L;const ne=L.map(t.Z.fromLngLat);this.tileID=function(Se){let Re=1/0,ft=1/0,xt=-1/0,Dt=-1/0;for(const Br of Se)Re=Math.min(Re,Br.x),ft=Math.min(ft,Br.y),xt=Math.max(xt,Br.x),Dt=Math.max(Dt,Br.y);const er=Math.max(xt-Re,Dt-ft),fr=Math.max(0,Math.floor(-Math.log(er)/Math.LN2)),pr=Math.pow(2,fr);return new t.a1(fr,Math.floor((Re+xt)/2*pr),Math.floor((ft+Dt)/2*pr))}(ne),this.minzoom=this.maxzoom=this.tileID.z;const Te=ne.map(Se=>this.tileID.getTilePoint(Se)._round());return this._boundsArray=new t.$,this._boundsArray.emplaceBack(Te[0].x,Te[0].y,0,0),this._boundsArray.emplaceBack(Te[1].x,Te[1].y,t.X,0),this._boundsArray.emplaceBack(Te[3].x,Te[3].y,0,t.X),this._boundsArray.emplaceBack(Te[2].x,Te[2].y,t.X,t.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const L=this.map.painter.context,ne=L.gl;this.boundsBuffer||(this.boundsBuffer=L.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new u(L,this.image,ne.RGBA),this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE));let Te=!1;for(const Se in this.tiles){const Re=this.tiles[Se];Re.state!=="loaded"&&(Re.state="loaded",Re.texture=this.texture,Te=!0)}Te&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(L){return t._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(L.tileID.canonical)?(this.tiles[String(L.tileID.wrap)]=L,L.buckets={}):L.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class tt extends at{constructor(L,ne,Te,Se){super(L,ne,Te,Se),this.roundZoom=!0,this.type="video",this.options=ne}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1;const L=this.options;this.urls=[];for(const ne of L.urls)this.urls.push(this.map._requestManager.transformRequest(ne,"Source").url);try{const ne=yield t.a3(this.urls);if(this._loaded=!0,!ne)return;this.video=ne,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(ne){this.fire(new t.j(ne))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(L){if(this.video){const ne=this.video.seekable;Lne.end(0)?this.fire(new t.j(new t.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${ne.start(0)} and ${ne.end(0)}-second mark.`))):this.video.currentTime=L}}getVideo(){return this.video}onAdd(L){this.map||(this.map=L,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const L=this.map.painter.context,ne=L.gl;this.boundsBuffer||(this.boundsBuffer=L.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),ne.texSubImage2D(ne.TEXTURE_2D,0,0,0,ne.RGBA,ne.UNSIGNED_BYTE,this.video)):(this.texture=new u(L,this.video,ne.RGBA),this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE));let Te=!1;for(const Se in this.tiles){const Re=this.tiles[Se];Re.state!=="loaded"&&(Re.state="loaded",Re.texture=this.texture,Te=!0)}Te&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Je extends at{constructor(L,ne,Te,Se){super(L,ne,Te,Se),ne.coordinates?Array.isArray(ne.coordinates)&&ne.coordinates.length===4&&!ne.coordinates.some(Re=>!Array.isArray(Re)||Re.length!==2||Re.some(ft=>typeof ft!="number"))||this.fire(new t.j(new t.a2(`sources.${L}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.j(new t.a2(`sources.${L}`,null,'missing required property "coordinates"'))),ne.animate&&typeof ne.animate!="boolean"&&this.fire(new t.j(new t.a2(`sources.${L}`,null,'optional "animate" property must be a boolean value'))),ne.canvas?typeof ne.canvas=="string"||ne.canvas instanceof HTMLCanvasElement||this.fire(new t.j(new t.a2(`sources.${L}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.j(new t.a2(`sources.${L}`,null,'missing required property "canvas"'))),this.options=ne,this.animate=ne.animate===void 0||ne.animate}load(){return t._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(L){this.map=L,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let L=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,L=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,L=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const ne=this.map.painter.context,Te=ne.gl;this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?(L||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new u(ne,this.canvas,Te.RGBA,{premultiply:!0});let Se=!1;for(const Re in this.tiles){const ft=this.tiles[Re];ft.state!=="loaded"&&(ft.state="loaded",ft.texture=this.texture,Se=!0)}Se&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const L of[this.canvas.width,this.canvas.height])if(isNaN(L)||L<=0)return!0;return!1}}const Ze={},Me=ze=>{switch(ze){case"geojson":return Ce;case"image":return at;case"raster":return Ae;case"raster-dem":return Pe;case"vector":return xe;case"video":return tt;case"canvas":return Je}return Ze[ze]},we="RTLPluginLoaded";class he extends t.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Z()}_syncState(L){return this.status=L,this.dispatcher.broadcast("SRPS",{pluginStatus:L,pluginURL:this.url}).catch(ne=>{throw this.status="error",ne})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(L){return t._(this,arguments,void 0,function*(ne,Te=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=o.resolveURL(ne),!this.url)throw new Error(`requested url ${ne} is invalid`);if(this.status==="unavailable"){if(!Te)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return t._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new t.k(we))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let De=null;function et(){return De||(De=new he),De}class nt{constructor(L,ne){this.timeAdded=0,this.fadeEndTime=0,this.tileID=L,this.uid=t.a4(),this.uses=0,this.tileSize=ne,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(L){const ne=L+this.timeAdded;neRe.getLayer(er)).filter(Boolean);if(Dt.length!==0){xt.layers=Dt,xt.stateDependentLayerIds&&(xt.stateDependentLayers=xt.stateDependentLayerIds.map(er=>Dt.filter(fr=>fr.id===er)[0]));for(const er of Dt)ft[er.id]=xt}}return ft}(L.buckets,ne.style),this.hasSymbolBuckets=!1;for(const Se in this.buckets){const Re=this.buckets[Se];if(Re instanceof t.a6){if(this.hasSymbolBuckets=!0,!Te)break;Re.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const Se in this.buckets){const Re=this.buckets[Se];if(Re instanceof t.a6&&Re.hasRTLText){this.hasRTLText=!0,et().lazyLoad();break}}this.queryPadding=0;for(const Se in this.buckets){const Re=this.buckets[Se];this.queryPadding=Math.max(this.queryPadding,ne.style.getLayer(Se).queryRadius(Re))}L.imageAtlas&&(this.imageAtlas=L.imageAtlas),L.glyphAtlasImage&&(this.glyphAtlasImage=L.glyphAtlasImage)}else this.collisionBoxArray=new t.a5}unloadVectorData(){for(const L in this.buckets)this.buckets[L].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(L){return this.buckets[L.id]}upload(L){for(const Te in this.buckets){const Se=this.buckets[Te];Se.uploadPending()&&Se.upload(L)}const ne=L.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new u(L,this.imageAtlas.image,ne.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new u(L,this.glyphAtlasImage,ne.ALPHA),this.glyphAtlasImage=null)}prepare(L){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(L,this.imageAtlasTexture)}queryRenderedFeatures(L,ne,Te,Se,Re,ft,xt,Dt,er,fr){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:Se,cameraQueryGeometry:Re,scale:ft,tileSize:this.tileSize,pixelPosMatrix:fr,transform:Dt,params:xt,queryPadding:this.queryPadding*er},L,ne,Te):{}}querySourceFeatures(L,ne){const Te=this.latestFeatureIndex;if(!Te||!Te.rawTileData)return;const Se=Te.loadVTLayers(),Re=ne&&ne.sourceLayer?ne.sourceLayer:"",ft=Se._geojsonTileLayer||Se[Re];if(!ft)return;const xt=t.a7(ne&&ne.filter),{z:Dt,x:er,y:fr}=this.tileID.canonical,pr={z:Dt,x:er,y:fr};for(let Br=0;BrTe)Se=!1;else if(ne)if(this.expirationTime{this.remove(L,Re)},Te)),this.data[Se].push(Re),this.order.push(Se),this.order.length>this.max){const ft=this._getAndRemoveByKey(this.order[0]);ft&&this.onRemove(ft)}return this}has(L){return L.wrapped().key in this.data}getAndRemove(L){return this.has(L)?this._getAndRemoveByKey(L.wrapped().key):null}_getAndRemoveByKey(L){const ne=this.data[L].shift();return ne.timeout&&clearTimeout(ne.timeout),this.data[L].length===0&&delete this.data[L],this.order.splice(this.order.indexOf(L),1),ne.value}getByKey(L){const ne=this.data[L];return ne?ne[0].value:null}get(L){return this.has(L)?this.data[L.wrapped().key][0].value:null}remove(L,ne){if(!this.has(L))return this;const Te=L.wrapped().key,Se=ne===void 0?0:this.data[Te].indexOf(ne),Re=this.data[Te][Se];return this.data[Te].splice(Se,1),Re.timeout&&clearTimeout(Re.timeout),this.data[Te].length===0&&delete this.data[Te],this.onRemove(Re.value),this.order.splice(this.order.indexOf(Te),1),this}setMaxSize(L){for(this.max=L;this.order.length>this.max;){const ne=this._getAndRemoveByKey(this.order[0]);ne&&this.onRemove(ne)}return this}filter(L){const ne=[];for(const Te in this.data)for(const Se of this.data[Te])L(Se.value)||ne.push(Se);for(const Te of ne)this.remove(Te.value.tileID,Te)}}class Et{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(L,ne,Te){const Se=String(ne);if(this.stateChanges[L]=this.stateChanges[L]||{},this.stateChanges[L][Se]=this.stateChanges[L][Se]||{},t.e(this.stateChanges[L][Se],Te),this.deletedStates[L]===null){this.deletedStates[L]={};for(const Re in this.state[L])Re!==Se&&(this.deletedStates[L][Re]=null)}else if(this.deletedStates[L]&&this.deletedStates[L][Se]===null){this.deletedStates[L][Se]={};for(const Re in this.state[L][Se])Te[Re]||(this.deletedStates[L][Se][Re]=null)}else for(const Re in Te)this.deletedStates[L]&&this.deletedStates[L][Se]&&this.deletedStates[L][Se][Re]===null&&delete this.deletedStates[L][Se][Re]}removeFeatureState(L,ne,Te){if(this.deletedStates[L]===null)return;const Se=String(ne);if(this.deletedStates[L]=this.deletedStates[L]||{},Te&&ne!==void 0)this.deletedStates[L][Se]!==null&&(this.deletedStates[L][Se]=this.deletedStates[L][Se]||{},this.deletedStates[L][Se][Te]=null);else if(ne!==void 0)if(this.stateChanges[L]&&this.stateChanges[L][Se])for(Te in this.deletedStates[L][Se]={},this.stateChanges[L][Se])this.deletedStates[L][Se][Te]=null;else this.deletedStates[L][Se]=null;else this.deletedStates[L]=null}getState(L,ne){const Te=String(ne),Se=t.e({},(this.state[L]||{})[Te],(this.stateChanges[L]||{})[Te]);if(this.deletedStates[L]===null)return{};if(this.deletedStates[L]){const Re=this.deletedStates[L][ne];if(Re===null)return{};for(const ft in Re)delete Se[ft]}return Se}initializeTileState(L,ne){L.setFeatureState(this.state,ne)}coalesceChanges(L,ne){const Te={};for(const Se in this.stateChanges){this.state[Se]=this.state[Se]||{};const Re={};for(const ft in this.stateChanges[Se])this.state[Se][ft]||(this.state[Se][ft]={}),t.e(this.state[Se][ft],this.stateChanges[Se][ft]),Re[ft]=this.state[Se][ft];Te[Se]=Re}for(const Se in this.deletedStates){this.state[Se]=this.state[Se]||{};const Re={};if(this.deletedStates[Se]===null)for(const ft in this.state[Se])Re[ft]={},this.state[Se][ft]={};else for(const ft in this.deletedStates[Se]){if(this.deletedStates[Se][ft]===null)this.state[Se][ft]={};else for(const xt of Object.keys(this.deletedStates[Se][ft]))delete this.state[Se][ft][xt];Re[ft]=this.state[Se][ft]}Te[Se]=Te[Se]||{},t.e(Te[Se],Re)}if(this.stateChanges={},this.deletedStates={},Object.keys(Te).length!==0)for(const Se in L)L[Se].setFeatureState(Te,ne)}}class kt extends t.E{constructor(L,ne,Te){super(),this.id=L,this.dispatcher=Te,this.on("data",Se=>this._dataHandler(Se)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((Se,Re,ft,xt)=>{const Dt=new(Me(Re.type))(Se,Re,ft,xt);if(Dt.id!==Se)throw new Error(`Expected Source id to be ${Se} instead of ${Dt.id}`);return Dt})(L,ne,Te,this),this._tiles={},this._cache=new Ke(0,Se=>this._unloadTile(Se)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Et,this._didEmitContent=!1,this._updated=!1}onAdd(L){this.map=L,this._maxTileCacheSize=L?L._maxTileCacheSize:null,this._maxTileCacheZoomLevels=L?L._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(L)}onRemove(L){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(L)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const L in this._tiles){const ne=this._tiles[L];if(ne.state!=="loaded"&&ne.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const L=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,L&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(L,ne,Te){return t._(this,void 0,void 0,function*(){try{yield this._source.loadTile(L),this._tileLoaded(L,ne,Te)}catch(Se){L.state="errored",Se.status!==404?this._source.fire(new t.j(Se,{tile:L})):this.update(this.transform,this.terrain)}})}_unloadTile(L){this._source.unloadTile&&this._source.unloadTile(L)}_abortTile(L){this._source.abortTile&&this._source.abortTile(L),this._source.fire(new t.k("dataabort",{tile:L,coord:L.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(L){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const ne in this._tiles){const Te=this._tiles[ne];Te.upload(L),Te.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(L=>L.tileID).sort(Ut).map(L=>L.key)}getRenderableIds(L){const ne=[];for(const Te in this._tiles)this._isIdRenderable(Te,L)&&ne.push(this._tiles[Te]);return L?ne.sort((Te,Se)=>{const Re=Te.tileID,ft=Se.tileID,xt=new t.P(Re.canonical.x,Re.canonical.y)._rotate(this.transform.angle),Dt=new t.P(ft.canonical.x,ft.canonical.y)._rotate(this.transform.angle);return Re.overscaledZ-ft.overscaledZ||Dt.y-xt.y||Dt.x-xt.x}).map(Te=>Te.tileID.key):ne.map(Te=>Te.tileID).sort(Ut).map(Te=>Te.key)}hasRenderableParent(L){const ne=this.findLoadedParent(L,0);return!!ne&&this._isIdRenderable(ne.tileID.key)}_isIdRenderable(L,ne){return this._tiles[L]&&this._tiles[L].hasData()&&!this._coveredTiles[L]&&(ne||!this._tiles[L].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const L in this._tiles)this._tiles[L].state!=="errored"&&this._reloadTile(L,"reloading")}}_reloadTile(L,ne){return t._(this,void 0,void 0,function*(){const Te=this._tiles[L];Te&&(Te.state!=="loading"&&(Te.state=ne),yield this._loadTile(Te,L,ne))})}_tileLoaded(L,ne,Te){L.timeAdded=o.now(),Te==="expired"&&(L.refreshedUponExpiration=!0),this._setTileReloadTimer(ne,L),this.getSource().type==="raster-dem"&&L.dem&&this._backfillDEM(L),this._state.initializeTileState(L,this.map?this.map.painter:null),L.aborted||this._source.fire(new t.k("data",{dataType:"source",tile:L,coord:L.tileID}))}_backfillDEM(L){const ne=this.getRenderableIds();for(let Se=0;Se1||(Math.abs(ft)>1&&(Math.abs(ft+Dt)===1?ft+=Dt:Math.abs(ft-Dt)===1&&(ft-=Dt)),Re.dem&&Se.dem&&(Se.dem.backfillBorder(Re.dem,ft,xt),Se.neighboringTiles&&Se.neighboringTiles[er]&&(Se.neighboringTiles[er].backfilled=!0)))}}getTile(L){return this.getTileByID(L.key)}getTileByID(L){return this._tiles[L]}_retainLoadedChildren(L,ne,Te,Se){for(const Re in this._tiles){let ft=this._tiles[Re];if(Se[Re]||!ft.hasData()||ft.tileID.overscaledZ<=ne||ft.tileID.overscaledZ>Te)continue;let xt=ft.tileID;for(;ft&&ft.tileID.overscaledZ>ne+1;){const er=ft.tileID.scaledTo(ft.tileID.overscaledZ-1);ft=this._tiles[er.key],ft&&ft.hasData()&&(xt=er)}let Dt=xt;for(;Dt.overscaledZ>ne;)if(Dt=Dt.scaledTo(Dt.overscaledZ-1),L[Dt.key]){Se[xt.key]=xt;break}}}findLoadedParent(L,ne){if(L.key in this._loadedParentTiles){const Te=this._loadedParentTiles[L.key];return Te&&Te.tileID.overscaledZ>=ne?Te:null}for(let Te=L.overscaledZ-1;Te>=ne;Te--){const Se=L.scaledTo(Te),Re=this._getLoadedTile(Se);if(Re)return Re}}findLoadedSibling(L){return this._getLoadedTile(L)}_getLoadedTile(L){const ne=this._tiles[L.key];return ne&&ne.hasData()?ne:this._cache.getByKey(L.wrapped().key)}updateCacheSize(L){const ne=Math.ceil(L.width/this._source.tileSize)+1,Te=Math.ceil(L.height/this._source.tileSize)+1,Se=Math.floor(ne*Te*(this._maxTileCacheZoomLevels===null?t.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),Re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Se):Se;this._cache.setMaxSize(Re)}handleWrapJump(L){const ne=Math.round((L-(this._prevLng===void 0?L:this._prevLng))/360);if(this._prevLng=L,ne){const Te={};for(const Se in this._tiles){const Re=this._tiles[Se];Re.tileID=Re.tileID.unwrapTo(Re.tileID.wrap+ne),Te[Re.tileID.key]=Re}this._tiles=Te;for(const Se in this._timers)clearTimeout(this._timers[Se]),delete this._timers[Se];for(const Se in this._tiles)this._setTileReloadTimer(Se,this._tiles[Se])}}_updateCoveredAndRetainedTiles(L,ne,Te,Se,Re,ft){const xt={},Dt={},er=Object.keys(L),fr=o.now();for(const pr of er){const Br=L[pr],ea=this._tiles[pr];if(!ea||ea.fadeEndTime!==0&&ea.fadeEndTime<=fr)continue;const Ve=this.findLoadedParent(Br,ne),Ye=this.findLoadedSibling(Br),it=Ve||Ye||null;it&&(this._addTile(it.tileID),xt[it.tileID.key]=it.tileID),Dt[pr]=Br}this._retainLoadedChildren(Dt,Se,Te,L);for(const pr in xt)L[pr]||(this._coveredTiles[pr]=!0,L[pr]=xt[pr]);if(ft){const pr={},Br={};for(const ea of Re)this._tiles[ea.key].hasData()?pr[ea.key]=ea:Br[ea.key]=ea;for(const ea in Br){const Ve=Br[ea].children(this._source.maxzoom);this._tiles[Ve[0].key]&&this._tiles[Ve[1].key]&&this._tiles[Ve[2].key]&&this._tiles[Ve[3].key]&&(pr[Ve[0].key]=L[Ve[0].key]=Ve[0],pr[Ve[1].key]=L[Ve[1].key]=Ve[1],pr[Ve[2].key]=L[Ve[2].key]=Ve[2],pr[Ve[3].key]=L[Ve[3].key]=Ve[3],delete Br[ea])}for(const ea in Br){const Ve=Br[ea],Ye=this.findLoadedParent(Ve,this._source.minzoom),it=this.findLoadedSibling(Ve),vt=Ye||it||null;if(vt){pr[vt.tileID.key]=L[vt.tileID.key]=vt.tileID;for(const St in pr)pr[St].isChildOf(vt.tileID)&&delete pr[St]}}for(const ea in this._tiles)pr[ea]||(this._coveredTiles[ea]=!0)}}update(L,ne){if(!this._sourceLoaded||this._paused)return;let Te;this.transform=L,this.terrain=ne,this.updateCacheSize(L),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Te=L.getVisibleUnwrappedCoordinates(this._source.tileID).map(fr=>new t.S(fr.canonical.z,fr.wrap,fr.canonical.z,fr.canonical.x,fr.canonical.y)):(Te=L.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:ne}),this._source.hasTile&&(Te=Te.filter(fr=>this._source.hasTile(fr)))):Te=[];const Se=L.coveringZoomLevel(this._source),Re=Math.max(Se-kt.maxOverzooming,this._source.minzoom),ft=Math.max(Se+kt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const fr={};for(const pr of Te)if(pr.canonical.z>this._source.minzoom){const Br=pr.scaledTo(pr.canonical.z-1);fr[Br.key]=Br;const ea=pr.scaledTo(Math.max(this._source.minzoom,Math.min(pr.canonical.z,5)));fr[ea.key]=ea}Te=Te.concat(Object.values(fr))}const xt=Te.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,xt&&this.fire(new t.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const Dt=this._updateRetainedTiles(Te,Se);Yt(this._source.type)&&this._updateCoveredAndRetainedTiles(Dt,Re,ft,Se,Te,ne);for(const fr in Dt)this._tiles[fr].clearFadeHold();const er=t.ab(this._tiles,Dt);for(const fr of er){const pr=this._tiles[fr];pr.hasSymbolBuckets&&!pr.holdingForFade()?pr.setHoldDuration(this.map._fadeDuration):pr.hasSymbolBuckets&&!pr.symbolFadeFinished()||this._removeTile(fr)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(const L in this._tiles)this._tiles[L].holdingForFade()&&this._removeTile(L)}_updateRetainedTiles(L,ne){var Te;const Se={},Re={},ft=Math.max(ne-kt.maxOverzooming,this._source.minzoom),xt=Math.max(ne+kt.maxUnderzooming,this._source.minzoom),Dt={};for(const er of L){const fr=this._addTile(er);Se[er.key]=er,fr.hasData()||nethis._source.maxzoom){const Br=er.children(this._source.maxzoom)[0],ea=this.getTile(Br);if(ea&&ea.hasData()){Se[Br.key]=Br;continue}}else{const Br=er.children(this._source.maxzoom);if(Se[Br[0].key]&&Se[Br[1].key]&&Se[Br[2].key]&&Se[Br[3].key])continue}let pr=fr.wasRequested();for(let Br=er.overscaledZ-1;Br>=ft;--Br){const ea=er.scaledTo(Br);if(Re[ea.key])break;if(Re[ea.key]=!0,fr=this.getTile(ea),!fr&&pr&&(fr=this._addTile(ea)),fr){const Ve=fr.hasData();if((Ve||!(!((Te=this.map)===null||Te===void 0)&&Te.cancelPendingTileRequestsWhileZooming)||pr)&&(Se[ea.key]=ea),pr=fr.wasRequested(),Ve)break}}}return Se}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const L in this._tiles){const ne=[];let Te,Se=this._tiles[L].tileID;for(;Se.overscaledZ>0;){if(Se.key in this._loadedParentTiles){Te=this._loadedParentTiles[Se.key];break}ne.push(Se.key);const Re=Se.scaledTo(Se.overscaledZ-1);if(Te=this._getLoadedTile(Re),Te)break;Se=Re}for(const Re of ne)this._loadedParentTiles[Re]=Te}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(const L in this._tiles){const ne=this._tiles[L].tileID,Te=this._getLoadedTile(ne);this._loadedSiblingTiles[ne.key]=Te}}_addTile(L){let ne=this._tiles[L.key];if(ne)return ne;ne=this._cache.getAndRemove(L),ne&&(this._setTileReloadTimer(L.key,ne),ne.tileID=L,this._state.initializeTileState(ne,this.map?this.map.painter:null),this._cacheTimers[L.key]&&(clearTimeout(this._cacheTimers[L.key]),delete this._cacheTimers[L.key],this._setTileReloadTimer(L.key,ne)));const Te=ne;return ne||(ne=new nt(L,this._source.tileSize*L.overscaleFactor()),this._loadTile(ne,L.key,ne.state)),ne.uses++,this._tiles[L.key]=ne,Te||this._source.fire(new t.k("dataloading",{tile:ne,coord:ne.tileID,dataType:"source"})),ne}_setTileReloadTimer(L,ne){L in this._timers&&(clearTimeout(this._timers[L]),delete this._timers[L]);const Te=ne.getExpiryTimeout();Te&&(this._timers[L]=setTimeout(()=>{this._reloadTile(L,"expired"),delete this._timers[L]},Te))}_removeTile(L){const ne=this._tiles[L];ne&&(ne.uses--,delete this._tiles[L],this._timers[L]&&(clearTimeout(this._timers[L]),delete this._timers[L]),ne.uses>0||(ne.hasData()&&ne.state!=="reloading"?this._cache.add(ne.tileID,ne,ne.getExpiryTimeout()):(ne.aborted=!0,this._abortTile(ne),this._unloadTile(ne))))}_dataHandler(L){const ne=L.sourceDataType;L.dataType==="source"&&ne==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&L.dataType==="source"&&ne==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const L in this._tiles)this._removeTile(L);this._cache.reset()}tilesIn(L,ne,Te){const Se=[],Re=this.transform;if(!Re)return Se;const ft=Te?Re.getCameraQueryGeometry(L):L,xt=L.map(Ve=>Re.pointCoordinate(Ve,this.terrain)),Dt=ft.map(Ve=>Re.pointCoordinate(Ve,this.terrain)),er=this.getIds();let fr=1/0,pr=1/0,Br=-1/0,ea=-1/0;for(const Ve of Dt)fr=Math.min(fr,Ve.x),pr=Math.min(pr,Ve.y),Br=Math.max(Br,Ve.x),ea=Math.max(ea,Ve.y);for(let Ve=0;Ve=0&&_t[1].y+St>=0){const Lt=xt.map(cr=>it.getTilePoint(cr)),nr=Dt.map(cr=>it.getTilePoint(cr));Se.push({tile:Ye,tileID:it,queryGeometry:Lt,cameraQueryGeometry:nr,scale:vt})}}return Se}getVisibleCoordinates(L){const ne=this.getRenderableIds(L).map(Te=>this._tiles[Te].tileID);for(const Te of ne)Te.posMatrix=this.transform.calculatePosMatrix(Te.toUnwrapped());return ne}hasTransition(){if(this._source.hasTransition())return!0;if(Yt(this._source.type)){const L=o.now();for(const ne in this._tiles)if(this._tiles[ne].fadeEndTime>=L)return!0}return!1}setFeatureState(L,ne,Te){this._state.updateState(L=L||"_geojsonTileLayer",ne,Te)}removeFeatureState(L,ne,Te){this._state.removeFeatureState(L=L||"_geojsonTileLayer",ne,Te)}getFeatureState(L,ne){return this._state.getState(L=L||"_geojsonTileLayer",ne)}setDependencies(L,ne,Te){const Se=this._tiles[L];Se&&Se.setDependencies(ne,Te)}reloadTilesForDependencies(L,ne){for(const Te in this._tiles)this._tiles[Te].hasDependency(L,ne)&&this._reloadTile(Te,"reloading");this._cache.filter(Te=>!Te.hasDependency(L,ne))}}function Ut(ze,L){const ne=Math.abs(2*ze.wrap)-+(ze.wrap<0),Te=Math.abs(2*L.wrap)-+(L.wrap<0);return ze.overscaledZ-L.overscaledZ||Te-ne||L.canonical.y-ze.canonical.y||L.canonical.x-ze.canonical.x}function Yt(ze){return ze==="raster"||ze==="image"||ze==="video"}kt.maxOverzooming=10,kt.maxUnderzooming=3;class vr{constructor(L,ne){this.reset(L,ne)}reset(L,ne){this.points=L||[],this._distances=[0];for(let Te=1;Te0?(Se-ft)/xt:0;return this.points[Re].mult(1-Dt).add(this.points[ne].mult(Dt))}}function hr(ze,L){let ne=!0;return ze==="always"||ze!=="never"&&L!=="never"||(ne=!1),ne}class Rr{constructor(L,ne,Te){const Se=this.boxCells=[],Re=this.circleCells=[];this.xCellCount=Math.ceil(L/Te),this.yCellCount=Math.ceil(ne/Te);for(let ft=0;ftthis.width||Se<0||ne>this.height)return[];const Dt=[];if(L<=0&&ne<=0&&this.width<=Te&&this.height<=Se){if(Re)return[{key:null,x1:L,y1:ne,x2:Te,y2:Se}];for(let er=0;er0}hitTestCircle(L,ne,Te,Se,Re){const ft=L-Te,xt=L+Te,Dt=ne-Te,er=ne+Te;if(xt<0||ft>this.width||er<0||Dt>this.height)return!1;const fr=[];return this._forEachCell(ft,Dt,xt,er,this._queryCellCircle,fr,{hitTest:!0,overlapMode:Se,circle:{x:L,y:ne,radius:Te},seenUids:{box:{},circle:{}}},Re),fr.length>0}_queryCell(L,ne,Te,Se,Re,ft,xt,Dt){const{seenUids:er,hitTest:fr,overlapMode:pr}=xt,Br=this.boxCells[Re];if(Br!==null){const Ve=this.bboxes;for(const Ye of Br)if(!er.box[Ye]){er.box[Ye]=!0;const it=4*Ye,vt=this.boxKeys[Ye];if(L<=Ve[it+2]&&ne<=Ve[it+3]&&Te>=Ve[it+0]&&Se>=Ve[it+1]&&(!Dt||Dt(vt))&&(!fr||!hr(pr,vt.overlapMode))&&(ft.push({key:vt,x1:Ve[it],y1:Ve[it+1],x2:Ve[it+2],y2:Ve[it+3]}),fr))return!0}}const ea=this.circleCells[Re];if(ea!==null){const Ve=this.circles;for(const Ye of ea)if(!er.circle[Ye]){er.circle[Ye]=!0;const it=3*Ye,vt=this.circleKeys[Ye];if(this._circleAndRectCollide(Ve[it],Ve[it+1],Ve[it+2],L,ne,Te,Se)&&(!Dt||Dt(vt))&&(!fr||!hr(pr,vt.overlapMode))){const St=Ve[it],_t=Ve[it+1],Lt=Ve[it+2];if(ft.push({key:vt,x1:St-Lt,y1:_t-Lt,x2:St+Lt,y2:_t+Lt}),fr)return!0}}}return!1}_queryCellCircle(L,ne,Te,Se,Re,ft,xt,Dt){const{circle:er,seenUids:fr,overlapMode:pr}=xt,Br=this.boxCells[Re];if(Br!==null){const Ve=this.bboxes;for(const Ye of Br)if(!fr.box[Ye]){fr.box[Ye]=!0;const it=4*Ye,vt=this.boxKeys[Ye];if(this._circleAndRectCollide(er.x,er.y,er.radius,Ve[it+0],Ve[it+1],Ve[it+2],Ve[it+3])&&(!Dt||Dt(vt))&&!hr(pr,vt.overlapMode))return ft.push(!0),!0}}const ea=this.circleCells[Re];if(ea!==null){const Ve=this.circles;for(const Ye of ea)if(!fr.circle[Ye]){fr.circle[Ye]=!0;const it=3*Ye,vt=this.circleKeys[Ye];if(this._circlesCollide(Ve[it],Ve[it+1],Ve[it+2],er.x,er.y,er.radius)&&(!Dt||Dt(vt))&&!hr(pr,vt.overlapMode))return ft.push(!0),!0}}}_forEachCell(L,ne,Te,Se,Re,ft,xt,Dt){const er=this._convertToXCellCoord(L),fr=this._convertToYCellCoord(ne),pr=this._convertToXCellCoord(Te),Br=this._convertToYCellCoord(Se);for(let ea=er;ea<=pr;ea++)for(let Ve=fr;Ve<=Br;Ve++)if(Re.call(this,L,ne,Te,Se,this.xCellCount*Ve+ea,ft,xt,Dt))return}_convertToXCellCoord(L){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(L*this.xScale)))}_convertToYCellCoord(L){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(L*this.yScale)))}_circlesCollide(L,ne,Te,Se,Re,ft){const xt=Se-L,Dt=Re-ne,er=Te+ft;return er*er>xt*xt+Dt*Dt}_circleAndRectCollide(L,ne,Te,Se,Re,ft,xt){const Dt=(ft-Se)/2,er=Math.abs(L-(Se+Dt));if(er>Dt+Te)return!1;const fr=(xt-Re)/2,pr=Math.abs(ne-(Re+fr));if(pr>fr+Te)return!1;if(er<=Dt||pr<=fr)return!0;const Br=er-Dt,ea=pr-fr;return Br*Br+ea*ea<=Te*Te}}function dr(ze,L,ne,Te,Se){const Re=t.H();return L?(t.K(Re,Re,[1/Se,1/Se,1]),ne||t.ad(Re,Re,Te.angle)):t.L(Re,Te.labelPlaneMatrix,ze),Re}function wr(ze,L,ne,Te,Se){if(L){const Re=t.ae(ze);return t.K(Re,Re,[Se,Se,1]),ne||t.ad(Re,Re,-Te.angle),Re}return Te.glCoordMatrix}function yt(ze,L,ne,Te){let Se;Te?(Se=[ze,L,Te(ze,L),1],t.af(Se,Se,ne)):(Se=[ze,L,0,1],Jt(Se,Se,ne));const Re=Se[3];return{point:new t.P(Se[0]/Re,Se[1]/Re),signedDistanceFromCamera:Re,isOccluded:!1}}function Fe(ze,L){return .5+ze/L*.5}function We(ze,L){return ze.x>=-L[0]&&ze.x<=L[0]&&ze.y>=-L[1]&&ze.y<=L[1]}function Oe(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve){const Ye=Te?ze.textSizeData:ze.iconSizeData,it=t.ag(Ye,ne.transform.zoom),vt=[256/ne.width*2+1,256/ne.height*2+1],St=Te?ze.text.dynamicLayoutVertexArray:ze.icon.dynamicLayoutVertexArray;St.clear();const _t=ze.lineVertexArray,Lt=Te?ze.text.placedSymbolArray:ze.icon.placedSymbolArray,nr=ne.transform.width/ne.transform.height;let cr=!1;for(let gr=0;grMath.abs(ne.x-L.x)*Te?{useVertical:!0}:(ze===t.ah.vertical?L.yne.x)?{needsFlipping:!0}:null}function be(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr){const pr=ne/24,Br=L.lineOffsetX*pr,ea=L.lineOffsetY*pr;let Ve;if(L.numGlyphs>1){const Ye=L.glyphStartIndex+L.numGlyphs,it=L.lineStartIndex,vt=L.lineStartIndex+L.lineLength,St=de(pr,xt,Br,ea,Te,L,fr,ze);if(!St)return{notEnoughRoom:!0};const _t=yt(St.first.point.x,St.first.point.y,ft,ze.getElevation).point,Lt=yt(St.last.point.x,St.last.point.y,ft,ze.getElevation).point;if(Se&&!Te){const nr=me(L.writingMode,_t,Lt,er);if(nr)return nr}Ve=[St.first];for(let nr=L.glyphStartIndex+1;nr0?_t.point:function(cr,gr,Cr,Wr,ua,va){return Ie(cr,gr,Cr,1,ua,va)}(ze.tileAnchorPoint,St,it,0,Re,ze),nr=me(L.writingMode,it,Lt,er);if(nr)return nr}const Ye=Zt(pr*xt.getoffsetX(L.glyphStartIndex),Br,ea,Te,L.segment,L.lineStartIndex,L.lineStartIndex+L.lineLength,ze,fr);if(!Ye||ze.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};Ve=[Ye]}for(const Ye of Ve)t.aj(Dt,Ye.point,Ye.angle);return{}}function Ie(ze,L,ne,Te,Se,Re){const ft=ze.add(ze.sub(L)._unit()),xt=Se!==void 0?yt(ft.x,ft.y,Se,Re.getElevation).point:ht(ft.x,ft.y,Re).point,Dt=ne.sub(xt);return ne.add(Dt._mult(Te/Dt.mag()))}function Xe(ze,L,ne){const Te=L.projectionCache;if(Te.projections[ze])return Te.projections[ze];const Se=new t.P(L.lineVertexArray.getx(ze),L.lineVertexArray.gety(ze)),Re=ht(Se.x,Se.y,L);if(Re.signedDistanceFromCamera>0)return Te.projections[ze]=Re.point,Te.anyProjectionOccluded=Te.anyProjectionOccluded||Re.isOccluded,Re.point;const ft=ze-ne.direction;return function(xt,Dt,er,fr,pr){return Ie(xt,Dt,er,fr,void 0,pr)}(ne.distanceFromAnchor===0?L.tileAnchorPoint:new t.P(L.lineVertexArray.getx(ft),L.lineVertexArray.gety(ft)),Se,ne.previousVertex,ne.absOffsetX-ne.distanceFromAnchor+1,L)}function ht(ze,L,ne){const Te=ze+ne.translation[0],Se=L+ne.translation[1];let Re;return!ne.pitchWithMap&&ne.projection.useSpecialProjectionForSymbols?(Re=ne.projection.projectTileCoordinates(Te,Se,ne.unwrappedTileID,ne.getElevation),Re.point.x=(.5*Re.point.x+.5)*ne.width,Re.point.y=(.5*-Re.point.y+.5)*ne.height):(Re=yt(Te,Se,ne.labelPlaneMatrix,ne.getElevation),Re.isOccluded=!1),Re}function bt(ze,L,ne){return ze._unit()._perp()._mult(L*ne)}function Ct(ze,L,ne,Te,Se,Re,ft,xt,Dt){if(xt.projectionCache.offsets[ze])return xt.projectionCache.offsets[ze];const er=ne.add(L);if(ze+Dt.direction=Se)return xt.projectionCache.offsets[ze]=er,er;const fr=Xe(ze+Dt.direction,xt,Dt),pr=bt(fr.sub(ne),ft,Dt.direction),Br=ne.add(pr),ea=fr.add(pr);return xt.projectionCache.offsets[ze]=t.ak(Re,er,Br,ea)||er,xt.projectionCache.offsets[ze]}function Zt(ze,L,ne,Te,Se,Re,ft,xt,Dt){const er=Te?ze-L:ze+L;let fr=er>0?1:-1,pr=0;Te&&(fr*=-1,pr=Math.PI),fr<0&&(pr+=Math.PI);let Br,ea=fr>0?Re+Se:Re+Se+1;xt.projectionCache.cachedAnchorPoint?Br=xt.projectionCache.cachedAnchorPoint:(Br=ht(xt.tileAnchorPoint.x,xt.tileAnchorPoint.y,xt).point,xt.projectionCache.cachedAnchorPoint=Br);let Ve,Ye,it=Br,vt=Br,St=0,_t=0;const Lt=Math.abs(er),nr=[];let cr;for(;St+_t<=Lt;){if(ea+=fr,ea=ft)return null;St+=_t,vt=it,Ye=Ve;const Wr={absOffsetX:Lt,direction:fr,distanceFromAnchor:St,previousVertex:vt};if(it=Xe(ea,xt,Wr),ne===0)nr.push(vt),cr=it.sub(vt);else{let ua;const va=it.sub(vt);ua=va.mag()===0?bt(Xe(ea+fr,xt,Wr).sub(it),ne,fr):bt(va,ne,fr),Ye||(Ye=vt.add(ua)),Ve=Ct(ea,ua,it,Re,ft,Ye,ne,xt,Wr),nr.push(Ye),cr=Ve.sub(Ye)}_t=cr.mag()}const gr=cr._mult((Lt-St)/_t)._add(Ye||vt),Cr=pr+Math.atan2(it.y-vt.y,it.x-vt.x);return nr.push(gr),{point:gr,angle:Dt?Cr:0,path:nr}}const Wt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function rr(ze,L){for(let ne=0;ne=1;_i--)In.push(Pn.path[_i]);for(let _i=1;_iKi.signedDistanceFromCamera<=0)?[]:_i.map(Ki=>Ki.point)}let Si=[];if(In.length>0){const _i=In[0].clone(),Ki=In[0].clone();for(let Go=1;Go=va.x&&Ki.x<=Ma.x&&_i.y>=va.y&&Ki.y<=Ma.y?[In]:Ki.xMa.x||Ki.yMa.y?[]:t.al([In],va.x,va.y,Ma.x,Ma.y)}for(const _i of Si){en.reset(_i,.25*ua);let Ki=0;Ki=en.length<=.5*ua?1:Math.ceil(en.paddedLength/oi)+1;for(let Go=0;Goyt(Se.x,Se.y,Te,ne.getElevation))}queryRenderedSymbols(L){if(L.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};const ne=[];let Te=1/0,Se=1/0,Re=-1/0,ft=-1/0;for(const fr of L){const pr=new t.P(fr.x+mr,fr.y+mr);Te=Math.min(Te,pr.x),Se=Math.min(Se,pr.y),Re=Math.max(Re,pr.x),ft=Math.max(ft,pr.y),ne.push(pr)}const xt=this.grid.query(Te,Se,Re,ft).concat(this.ignoredGrid.query(Te,Se,Re,ft)),Dt={},er={};for(const fr of xt){const pr=fr.key;if(Dt[pr.bucketInstanceId]===void 0&&(Dt[pr.bucketInstanceId]={}),Dt[pr.bucketInstanceId][pr.featureIndex])continue;const Br=[new t.P(fr.x1,fr.y1),new t.P(fr.x2,fr.y1),new t.P(fr.x2,fr.y2),new t.P(fr.x1,fr.y2)];t.am(ne,Br)&&(Dt[pr.bucketInstanceId][pr.featureIndex]=!0,er[pr.bucketInstanceId]===void 0&&(er[pr.bucketInstanceId]=[]),er[pr.bucketInstanceId].push(pr.featureIndex))}return er}insertCollisionBox(L,ne,Te,Se,Re,ft){(Te?this.ignoredGrid:this.grid).insert({bucketInstanceId:Se,featureIndex:Re,collisionGroupID:ft,overlapMode:ne},L[0],L[1],L[2],L[3])}insertCollisionCircles(L,ne,Te,Se,Re,ft){const xt=Te?this.ignoredGrid:this.grid,Dt={bucketInstanceId:Se,featureIndex:Re,collisionGroupID:ft,overlapMode:ne};for(let er=0;er=this.screenRightBoundary||Sethis.screenBottomBoundary}isInsideGrid(L,ne,Te,Se){return Te>=0&&L=0&&nethis.projectAndGetPerspectiveRatio(Te,ua.x,ua.y,Se,er));Cr=Wr.some(ua=>!ua.isOccluded),gr=Wr.map(ua=>ua.point)}else Cr=!0;return{box:t.ao(gr),allPointsOccluded:!Cr}}}function Ia(ze,L,ne){return L*(t.X/(ze.tileSize*Math.pow(2,ne-ze.tileID.overscaledZ)))}class La{constructor(L,ne,Te,Se){this.opacity=L?Math.max(0,Math.min(1,L.opacity+(L.placed?ne:-ne))):Se&&Te?1:0,this.placed=Te}isHidden(){return this.opacity===0&&!this.placed}}class Aa{constructor(L,ne,Te,Se,Re){this.text=new La(L?L.text:null,ne,Te,Re),this.icon=new La(L?L.icon:null,ne,Se,Re)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Ga{constructor(L,ne,Te){this.text=L,this.icon=ne,this.skipFade=Te}}class ba{constructor(){this.invProjMatrix=t.H(),this.viewportMatrix=t.H(),this.circles=[]}}class Xa{constructor(L,ne,Te,Se,Re){this.bucketInstanceId=L,this.featureIndex=ne,this.sourceLayerIndex=Te,this.bucketIndex=Se,this.tileID=Re}}class yn{constructor(L){this.crossSourceCollisions=L,this.maxGroupID=0,this.collisionGroups={}}get(L){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[L]){const ne=++this.maxGroupID;this.collisionGroups[L]={ID:ne,predicate:Te=>Te.collisionGroupID===ne}}return this.collisionGroups[L]}}function Kt(ze,L,ne,Te,Se){const{horizontalAlign:Re,verticalAlign:ft}=t.au(ze);return new t.P(-(Re-.5)*L+Te[0]*Se,-(ft-.5)*ne+Te[1]*Se)}class zt{constructor(L,ne,Te,Se,Re,ft){this.transform=L.clone(),this.terrain=Te,this.collisionIndex=new ia(this.transform,ne),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=Se,this.retainedQueryData={},this.collisionGroups=new yn(Re),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=ft,ft&&(ft.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(L){const ne=this.terrain;return ne?(Te,Se)=>ne.getElevation(L,Te,Se):null}getBucketParts(L,ne,Te,Se){const Re=Te.getBucket(ne),ft=Te.latestFeatureIndex;if(!Re||!ft||ne.id!==Re.layerIds[0])return;const xt=Te.collisionBoxArray,Dt=Re.layers[0].layout,er=Re.layers[0].paint,fr=Math.pow(2,this.transform.zoom-Te.tileID.overscaledZ),pr=Te.tileSize/t.X,Br=Te.tileID.toUnwrapped(),ea=this.transform.calculatePosMatrix(Br),Ve=Dt.get("text-pitch-alignment")==="map",Ye=Dt.get("text-rotation-alignment")==="map",it=Ia(Te,1,this.transform.zoom),vt=this.collisionIndex.mapProjection.translatePosition(this.transform,Te,er.get("text-translate"),er.get("text-translate-anchor")),St=this.collisionIndex.mapProjection.translatePosition(this.transform,Te,er.get("icon-translate"),er.get("icon-translate-anchor")),_t=dr(ea,Ve,Ye,this.transform,it);let Lt=null;if(Ve){const cr=wr(ea,Ve,Ye,this.transform,it);Lt=t.L([],this.transform.labelPlaneMatrix,cr)}this.retainedQueryData[Re.bucketInstanceId]=new Xa(Re.bucketInstanceId,ft,Re.sourceLayerIndex,Re.index,Te.tileID);const nr={bucket:Re,layout:Dt,translationText:vt,translationIcon:St,posMatrix:ea,unwrappedTileID:Br,textLabelPlaneMatrix:_t,labelToScreenMatrix:Lt,scale:fr,textPixelRatio:pr,holdingForFade:Te.holdingForFade(),collisionBoxArray:xt,partiallyEvaluatedTextSize:t.ag(Re.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(Re.sourceID)};if(Se)for(const cr of Re.sortKeyRanges){const{sortKey:gr,symbolInstanceStart:Cr,symbolInstanceEnd:Wr}=cr;L.push({sortKey:gr,symbolInstanceStart:Cr,symbolInstanceEnd:Wr,parameters:nr})}else L.push({symbolInstanceStart:0,symbolInstanceEnd:Re.symbolInstances.length,parameters:nr})}attemptAnchorPlacement(L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve,Ye,it,vt,St,_t){const Lt=t.aq[L.textAnchor],nr=[L.textOffset0,L.textOffset1],cr=Kt(Lt,Te,Se,nr,Re),gr=this.collisionIndex.placeCollisionBox(ne,Br,Dt,er,fr,xt,ft,it,pr.predicate,_t,cr);if((!St||this.collisionIndex.placeCollisionBox(St,Br,Dt,er,fr,xt,ft,vt,pr.predicate,_t,cr).placeable)&&gr.placeable){let Cr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[ea.crossTileID]&&this.prevPlacement.placements[ea.crossTileID]&&this.prevPlacement.placements[ea.crossTileID].text&&(Cr=this.prevPlacement.variableOffsets[ea.crossTileID].anchor),ea.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[ea.crossTileID]={textOffset:nr,width:Te,height:Se,anchor:Lt,textBoxScale:Re,prevAnchor:Cr},this.markUsedJustification(Ve,Lt,ea,Ye),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,Ye,ea),this.placedOrientations[ea.crossTileID]=Ye),{shift:cr,placedGlyphBoxes:gr}}}placeLayerBucketPart(L,ne,Te){const{bucket:Se,layout:Re,translationText:ft,translationIcon:xt,posMatrix:Dt,unwrappedTileID:er,textLabelPlaneMatrix:fr,labelToScreenMatrix:pr,textPixelRatio:Br,holdingForFade:ea,collisionBoxArray:Ve,partiallyEvaluatedTextSize:Ye,collisionGroup:it}=L.parameters,vt=Re.get("text-optional"),St=Re.get("icon-optional"),_t=t.ar(Re,"text-overlap","text-allow-overlap"),Lt=_t==="always",nr=t.ar(Re,"icon-overlap","icon-allow-overlap"),cr=nr==="always",gr=Re.get("text-rotation-alignment")==="map",Cr=Re.get("text-pitch-alignment")==="map",Wr=Re.get("icon-text-fit")!=="none",ua=Re.get("symbol-z-order")==="viewport-y",va=Lt&&(cr||!Se.hasIconData()||St),Ma=cr&&(Lt||!Se.hasTextData()||vt);!Se.collisionArrays&&Ve&&Se.deserializeCollisionBoxes(Ve);const en=this._getTerrainElevationFunc(this.retainedQueryData[Se.bucketInstanceId].tileID),Pn=(Tn,In,oi)=>{var Si,_i;if(ne[Tn.crossTileID])return;if(ea)return void(this.placements[Tn.crossTileID]=new Ga(!1,!1,!1));let Ki=!1,Go=!1,Ho=!0,Ao=null,Ko={box:null,placeable:!1,offscreen:null},Js={placeable:!1},Hs=null,ko=null,Co=null,fl=0,Dl=0,ou=0;In.textFeatureIndex?fl=In.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(fl=Tn.featureIndex),In.verticalTextFeatureIndex&&(Dl=In.verticalTextFeatureIndex);const pe=In.textBox;if(pe){const gt=sr=>{let Pr=t.ah.horizontal;if(Se.allowVerticalPlacement&&!sr&&this.prevPlacement){const kr=this.prevPlacement.placedOrientations[Tn.crossTileID];kr&&(this.placedOrientations[Tn.crossTileID]=kr,Pr=kr,this.markUsedOrientation(Se,Pr,Tn))}return Pr},Tt=(sr,Pr)=>{if(Se.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(const kr of Se.writingModes)if(kr===t.ah.vertical?(Ko=Pr(),Js=Ko):Ko=sr(),Ko&&Ko.placeable)break}else Ko=sr()},Vt=Tn.textAnchorOffsetStartIndex,jt=Tn.textAnchorOffsetEndIndex;if(jt===Vt){const sr=(Pr,kr)=>{const Zr=this.collisionIndex.placeCollisionBox(Pr,_t,Br,Dt,er,Cr,gr,ft,it.predicate,en);return Zr&&Zr.placeable&&(this.markUsedOrientation(Se,kr,Tn),this.placedOrientations[Tn.crossTileID]=kr),Zr};Tt(()=>sr(pe,t.ah.horizontal),()=>{const Pr=In.verticalTextBox;return Se.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pr?sr(Pr,t.ah.vertical):{box:null,offscreen:null}}),gt(Ko&&Ko.placeable)}else{let sr=t.aq[(_i=(Si=this.prevPlacement)===null||Si===void 0?void 0:Si.variableOffsets[Tn.crossTileID])===null||_i===void 0?void 0:_i.anchor];const Pr=(Zr,la,ca)=>{const nn=Zr.x2-Zr.x1,pa=Zr.y2-Zr.y1,Pa=Tn.textBoxScale,Na=Wr&&nr==="never"?la:null;let rn=null,sn=_t==="never"?1:2,Ba="never";sr&&sn++;for(let Rn=0;RnPr(pe,In.iconBox,t.ah.horizontal),()=>{const Zr=In.verticalTextBox;return Se.allowVerticalPlacement&&(!Ko||!Ko.placeable)&&Tn.numVerticalGlyphVertices>0&&Zr?Pr(Zr,In.verticalIconBox,t.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Ko&&(Ki=Ko.placeable,Ho=Ko.offscreen);const kr=gt(Ko&&Ko.placeable);if(!Ki&&this.prevPlacement){const Zr=this.prevPlacement.variableOffsets[Tn.crossTileID];Zr&&(this.variableOffsets[Tn.crossTileID]=Zr,this.markUsedJustification(Se,Zr.anchor,Tn,kr))}}}if(Hs=Ko,Ki=Hs&&Hs.placeable,Ho=Hs&&Hs.offscreen,Tn.useRuntimeCollisionCircles){const gt=Se.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),Tt=t.ai(Se.textSizeData,Ye,gt),Vt=Re.get("text-padding");ko=this.collisionIndex.placeCollisionCircles(_t,gt,Se.lineVertexArray,Se.glyphOffsetArray,Tt,Dt,er,fr,pr,Te,Cr,it.predicate,Tn.collisionCircleDiameter,Vt,ft,en),ko.circles.length&&ko.collisionDetected&&!Te&&t.w("Collisions detected, but collision boxes are not shown"),Ki=Lt||ko.circles.length>0&&!ko.collisionDetected,Ho=Ho&&ko.offscreen}if(In.iconFeatureIndex&&(ou=In.iconFeatureIndex),In.iconBox){const gt=Tt=>this.collisionIndex.placeCollisionBox(Tt,nr,Br,Dt,er,Cr,gr,xt,it.predicate,en,Wr&&Ao?Ao:void 0);Js&&Js.placeable&&In.verticalIconBox?(Co=gt(In.verticalIconBox),Go=Co.placeable):(Co=gt(In.iconBox),Go=Co.placeable),Ho=Ho&&Co.offscreen}const Le=vt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,$e=St||Tn.numIconVertices===0;Le||$e?$e?Le||(Go=Go&&Ki):Ki=Go&&Ki:Go=Ki=Go&&Ki;const dt=Go&&Co.placeable;if(Ki&&Hs.placeable&&this.collisionIndex.insertCollisionBox(Hs.box,_t,Re.get("text-ignore-placement"),Se.bucketInstanceId,Js&&Js.placeable&&Dl?Dl:fl,it.ID),dt&&this.collisionIndex.insertCollisionBox(Co.box,nr,Re.get("icon-ignore-placement"),Se.bucketInstanceId,ou,it.ID),ko&&Ki&&this.collisionIndex.insertCollisionCircles(ko.circles,_t,Re.get("text-ignore-placement"),Se.bucketInstanceId,fl,it.ID),Te&&this.storeCollisionData(Se.bucketInstanceId,oi,In,Hs,Co,ko),Tn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(Se.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Tn.crossTileID]=new Ga(Ki||va,Go||Ma,Ho||Se.justReloaded),ne[Tn.crossTileID]=!0};if(ua){if(L.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");const Tn=Se.getSortedSymbolIndexes(this.transform.angle);for(let In=Tn.length-1;In>=0;--In){const oi=Tn[In];Pn(Se.symbolInstances.get(oi),Se.collisionArrays[oi],oi)}}else for(let Tn=L.symbolInstanceStart;Tn=0&&(L.text.placedSymbolArray.get(xt).crossTileID=Re>=0&&xt!==Re?0:Te.crossTileID)}markUsedOrientation(L,ne,Te){const Se=ne===t.ah.horizontal||ne===t.ah.horizontalOnly?ne:0,Re=ne===t.ah.vertical?ne:0,ft=[Te.leftJustifiedTextSymbolIndex,Te.centerJustifiedTextSymbolIndex,Te.rightJustifiedTextSymbolIndex];for(const xt of ft)L.text.placedSymbolArray.get(xt).placedOrientation=Se;Te.verticalPlacedTextSymbolIndex&&(L.text.placedSymbolArray.get(Te.verticalPlacedTextSymbolIndex).placedOrientation=Re)}commit(L){this.commitTime=L,this.zoomAtLastRecencyCheck=this.transform.zoom;const ne=this.prevPlacement;let Te=!1;this.prevZoomAdjustment=ne?ne.zoomAdjustment(this.transform.zoom):0;const Se=ne?ne.symbolFadeChange(L):1,Re=ne?ne.opacities:{},ft=ne?ne.variableOffsets:{},xt=ne?ne.placedOrientations:{};for(const Dt in this.placements){const er=this.placements[Dt],fr=Re[Dt];fr?(this.opacities[Dt]=new Aa(fr,Se,er.text,er.icon),Te=Te||er.text!==fr.text.placed||er.icon!==fr.icon.placed):(this.opacities[Dt]=new Aa(null,Se,er.text,er.icon,er.skipFade),Te=Te||er.text||er.icon)}for(const Dt in Re){const er=Re[Dt];if(!this.opacities[Dt]){const fr=new Aa(er,Se,!1,!1);fr.isHidden()||(this.opacities[Dt]=fr,Te=Te||er.text.placed||er.icon.placed)}}for(const Dt in ft)this.variableOffsets[Dt]||!this.opacities[Dt]||this.opacities[Dt].isHidden()||(this.variableOffsets[Dt]=ft[Dt]);for(const Dt in xt)this.placedOrientations[Dt]||!this.opacities[Dt]||this.opacities[Dt].isHidden()||(this.placedOrientations[Dt]=xt[Dt]);if(ne&&ne.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Te?this.lastPlacementChangeTime=L:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=ne?ne.lastPlacementChangeTime:L)}updateLayerOpacities(L,ne){const Te={};for(const Se of ne){const Re=Se.getBucket(L);Re&&Se.latestFeatureIndex&&L.id===Re.layerIds[0]&&this.updateBucketOpacities(Re,Se.tileID,Te,Se.collisionBoxArray)}}updateBucketOpacities(L,ne,Te,Se){L.hasTextData()&&(L.text.opacityVertexArray.clear(),L.text.hasVisibleVertices=!1),L.hasIconData()&&(L.icon.opacityVertexArray.clear(),L.icon.hasVisibleVertices=!1),L.hasIconCollisionBoxData()&&L.iconCollisionBox.collisionVertexArray.clear(),L.hasTextCollisionBoxData()&&L.textCollisionBox.collisionVertexArray.clear();const Re=L.layers[0],ft=Re.layout,xt=new Aa(null,0,!1,!1,!0),Dt=ft.get("text-allow-overlap"),er=ft.get("icon-allow-overlap"),fr=Re._unevaluatedLayout.hasValue("text-variable-anchor")||Re._unevaluatedLayout.hasValue("text-variable-anchor-offset"),pr=ft.get("text-rotation-alignment")==="map",Br=ft.get("text-pitch-alignment")==="map",ea=ft.get("icon-text-fit")!=="none",Ve=new Aa(null,0,Dt&&(er||!L.hasIconData()||ft.get("icon-optional")),er&&(Dt||!L.hasTextData()||ft.get("text-optional")),!0);!L.collisionArrays&&Se&&(L.hasIconCollisionBoxData()||L.hasTextCollisionBoxData())&&L.deserializeCollisionBoxes(Se);const Ye=(vt,St,_t)=>{for(let Lt=0;Lt0,Cr=this.placedOrientations[St.crossTileID],Wr=Cr===t.ah.vertical,ua=Cr===t.ah.horizontal||Cr===t.ah.horizontalOnly;if(_t>0||Lt>0){const Ma=Ya(cr.text);Ye(L.text,_t,Wr?Ka:Ma),Ye(L.text,Lt,ua?Ka:Ma);const en=cr.text.isHidden();[St.rightJustifiedTextSymbolIndex,St.centerJustifiedTextSymbolIndex,St.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(L.text.placedSymbolArray.get(In).hidden=en||Wr?1:0)}),St.verticalPlacedTextSymbolIndex>=0&&(L.text.placedSymbolArray.get(St.verticalPlacedTextSymbolIndex).hidden=en||ua?1:0);const Pn=this.variableOffsets[St.crossTileID];Pn&&this.markUsedJustification(L,Pn.anchor,St,Cr);const Tn=this.placedOrientations[St.crossTileID];Tn&&(this.markUsedJustification(L,"left",St,Tn),this.markUsedOrientation(L,Tn,St))}if(gr){const Ma=Ya(cr.icon),en=!(ea&&St.verticalPlacedIconSymbolIndex&&Wr);St.placedIconSymbolIndex>=0&&(Ye(L.icon,St.numIconVertices,en?Ma:Ka),L.icon.placedSymbolArray.get(St.placedIconSymbolIndex).hidden=cr.icon.isHidden()),St.verticalPlacedIconSymbolIndex>=0&&(Ye(L.icon,St.numVerticalIconVertices,en?Ka:Ma),L.icon.placedSymbolArray.get(St.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden())}const va=it&&it.has(vt)?it.get(vt):{text:null,icon:null};if(L.hasIconCollisionBoxData()||L.hasTextCollisionBoxData()){const Ma=L.collisionArrays[vt];if(Ma){let en=new t.P(0,0);if(Ma.textBox||Ma.verticalTextBox){let Pn=!0;if(fr){const Tn=this.variableOffsets[nr];Tn?(en=Kt(Tn.anchor,Tn.width,Tn.height,Tn.textOffset,Tn.textBoxScale),pr&&en._rotate(Br?this.transform.angle:-this.transform.angle)):Pn=!1}if(Ma.textBox||Ma.verticalTextBox){let Tn;Ma.textBox&&(Tn=Wr),Ma.verticalTextBox&&(Tn=ua),$t(L.textCollisionBox.collisionVertexArray,cr.text.placed,!Pn||Tn,va.text,en.x,en.y)}}if(Ma.iconBox||Ma.verticalIconBox){const Pn=!!(!ua&&Ma.verticalIconBox);let Tn;Ma.iconBox&&(Tn=Pn),Ma.verticalIconBox&&(Tn=!Pn),$t(L.iconCollisionBox.collisionVertexArray,cr.icon.placed,Tn,va.icon,ea?en.x:0,ea?en.y:0)}}}}if(L.sortFeatures(this.transform.angle),this.retainedQueryData[L.bucketInstanceId]&&(this.retainedQueryData[L.bucketInstanceId].featureSortOrder=L.featureSortOrder),L.hasTextData()&&L.text.opacityVertexBuffer&&L.text.opacityVertexBuffer.updateData(L.text.opacityVertexArray),L.hasIconData()&&L.icon.opacityVertexBuffer&&L.icon.opacityVertexBuffer.updateData(L.icon.opacityVertexArray),L.hasIconCollisionBoxData()&&L.iconCollisionBox.collisionVertexBuffer&&L.iconCollisionBox.collisionVertexBuffer.updateData(L.iconCollisionBox.collisionVertexArray),L.hasTextCollisionBoxData()&&L.textCollisionBox.collisionVertexBuffer&&L.textCollisionBox.collisionVertexBuffer.updateData(L.textCollisionBox.collisionVertexArray),L.text.opacityVertexArray.length!==L.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${L.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${L.text.layoutVertexArray.length}) / 4`);if(L.icon.opacityVertexArray.length!==L.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${L.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${L.icon.layoutVertexArray.length}) / 4`);if(L.bucketInstanceId in this.collisionCircleArrays){const vt=this.collisionCircleArrays[L.bucketInstanceId];L.placementInvProjMatrix=vt.invProjMatrix,L.placementViewportMatrix=vt.viewportMatrix,L.collisionCircleArray=vt.circles,delete this.collisionCircleArrays[L.bucketInstanceId]}}symbolFadeChange(L){return this.fadeDuration===0?1:(L-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(L){return Math.max(0,(this.transform.zoom-L)/1.5)}hasTransitions(L){return this.stale||L-this.lastPlacementChangeTimeL}setStale(){this.stale=!0}}function $t(ze,L,ne,Te,Se,Re){Te&&Te.length!==0||(Te=[0,0,0,0]);const ft=Te[0]-mr,xt=Te[1]-mr,Dt=Te[2]-mr,er=Te[3]-mr;ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,ft,xt),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,Dt,xt),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,Dt,er),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,ft,er)}const Ht=Math.pow(2,25),Tr=Math.pow(2,24),qr=Math.pow(2,17),ha=Math.pow(2,16),Gr=Math.pow(2,9),wa=Math.pow(2,8),Da=Math.pow(2,1);function Ya(ze){if(ze.opacity===0&&!ze.placed)return 0;if(ze.opacity===1&&ze.placed)return 4294967295;const L=ze.placed?1:0,ne=Math.floor(127*ze.opacity);return ne*Ht+L*Tr+ne*qr+L*ha+ne*Gr+L*wa+ne*Da+L}const Ka=0;function an(){return{isOccluded:(ze,L,ne)=>!1,getPitchedTextCorrection:(ze,L,ne)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ze,L,ne,Te){throw new Error("Not implemented.")},translatePosition:(ze,L,ne,Te)=>function(Se,Re,ft,xt,Dt=!1){if(!ft[0]&&!ft[1])return[0,0];const er=Dt?xt==="map"?Se.angle:0:xt==="viewport"?-Se.angle:0;if(er){const fr=Math.sin(er),pr=Math.cos(er);ft=[ft[0]*pr-ft[1]*fr,ft[0]*fr+ft[1]*pr]}return[Dt?ft[0]:Ia(Re,ft[0],Se.zoom),Dt?ft[1]:Ia(Re,ft[1],Se.zoom)]}(ze,L,ne,Te),getCircleRadiusCorrection:ze=>1}}class mt{constructor(L){this._sortAcrossTiles=L.layout.get("symbol-z-order")!=="viewport-y"&&!L.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(L,ne,Te,Se,Re){const ft=this._bucketParts;for(;this._currentTileIndexxt.sortKey-Dt.sortKey));this._currentPartIndex!this._forceFullPlacement&&o.now()-Se>2;for(;this._currentPlacementIndex>=0;){const ft=ne[L[this._currentPlacementIndex]],xt=this.placement.collisionIndex.transform.zoom;if(ft.type==="symbol"&&(!ft.minzoom||ft.minzoom<=xt)&&(!ft.maxzoom||ft.maxzoom>xt)){if(this._inProgressLayer||(this._inProgressLayer=new mt(ft)),this._inProgressLayer.continuePlacement(Te[ft.source],this.placement,this._showCollisionBoxes,ft,Re))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(L){return this.placement.commit(L),this.placement}}const Lr=512/t.X/2;class Er{constructor(L,ne,Te){this.tileID=L,this.bucketInstanceId=Te,this._symbolsByKey={};const Se=new Map;for(let Re=0;Re({x:Math.floor(Dt.anchorX*Lr),y:Math.floor(Dt.anchorY*Lr)})),crossTileIDs:ft.map(Dt=>Dt.crossTileID)};if(xt.positions.length>128){const Dt=new t.av(xt.positions.length,16,Uint16Array);for(const{x:er,y:fr}of xt.positions)Dt.add(er,fr);Dt.finish(),delete xt.positions,xt.index=Dt}this._symbolsByKey[Re]=xt}}getScaledCoordinates(L,ne){const{x:Te,y:Se,z:Re}=this.tileID.canonical,{x:ft,y:xt,z:Dt}=ne.canonical,er=Lr/Math.pow(2,Dt-Re),fr=(xt*t.X+L.anchorY)*er,pr=Se*t.X*Lr;return{x:Math.floor((ft*t.X+L.anchorX)*er-Te*t.X*Lr),y:Math.floor(fr-pr)}}findMatches(L,ne,Te){const Se=this.tileID.canonical.zL)}}class Mr{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class br{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(L){const ne=Math.round((L-this.lng)/360);if(ne!==0)for(const Te in this.indexes){const Se=this.indexes[Te],Re={};for(const ft in Se){const xt=Se[ft];xt.tileID=xt.tileID.unwrapTo(xt.tileID.wrap+ne),Re[xt.tileID.key]=xt}this.indexes[Te]=Re}this.lng=L}addBucket(L,ne,Te){if(this.indexes[L.overscaledZ]&&this.indexes[L.overscaledZ][L.key]){if(this.indexes[L.overscaledZ][L.key].bucketInstanceId===ne.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(L.overscaledZ,this.indexes[L.overscaledZ][L.key])}for(let Re=0;ReL.overscaledZ)for(const xt in ft){const Dt=ft[xt];Dt.tileID.isChildOf(L)&&Dt.findMatches(ne.symbolInstances,L,Se)}else{const xt=ft[L.scaledTo(Number(Re)).key];xt&&xt.findMatches(ne.symbolInstances,L,Se)}}for(let Re=0;Re{ne[Te]=!0});for(const Te in this.layerIndexes)ne[Te]||delete this.layerIndexes[Te]}}const jr=(ze,L)=>t.t(ze,L&&L.filter(ne=>ne.identifier!=="source.canvas")),Dr=t.aw();class Hr extends t.E{constructor(L,ne={}){super(),this._rtlPluginLoaded=()=>{for(const Te in this.sourceCaches){const Se=this.sourceCaches[Te].getSource().type;Se!=="vector"&&Se!=="geojson"||this.sourceCaches[Te].reload()}},this.map=L,this.dispatcher=new ee(J(),L._getMapId()),this.dispatcher.registerMessageHandler("GG",(Te,Se)=>this.getGlyphs(Te,Se)),this.dispatcher.registerMessageHandler("GI",(Te,Se)=>this.getImages(Te,Se)),this.imageManager=new y,this.imageManager.setEventedParent(this),this.glyphManager=new F(L._requestManager,ne.localIdeographFontFamily),this.lineAtlas=new X(256,512),this.crossTileSymbolIndex=new Or,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",t.ay()),et().on(we,this._rtlPluginLoaded),this.on("data",Te=>{if(Te.dataType!=="source"||Te.sourceDataType!=="metadata")return;const Se=this.sourceCaches[Te.sourceId];if(!Se)return;const Re=Se.getSource();if(Re&&Re.vectorLayerIds)for(const ft in this._layers){const xt=this._layers[ft];xt.source===Re.id&&this._validateLayer(xt)}})}loadURL(L,ne={},Te){this.fire(new t.k("dataloading",{dataType:"style"})),ne.validate=typeof ne.validate!="boolean"||ne.validate;const Se=this.map._requestManager.transformRequest(L,"Style");this._loadStyleRequest=new AbortController;const Re=this._loadStyleRequest;t.h(Se,this._loadStyleRequest).then(ft=>{this._loadStyleRequest=null,this._load(ft.data,ne,Te)}).catch(ft=>{this._loadStyleRequest=null,ft&&!Re.signal.aborted&&this.fire(new t.j(ft))})}loadJSON(L,ne={},Te){this.fire(new t.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,o.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,ne.validate=ne.validate!==!1,this._load(L,ne,Te)}).catch(()=>{})}loadEmpty(){this.fire(new t.k("dataloading",{dataType:"style"})),this._load(Dr,{validate:!1})}_load(L,ne,Te){var Se;const Re=ne.transformStyle?ne.transformStyle(Te,L):L;if(!ne.validate||!jr(this,t.u(Re))){this._loaded=!0,this.stylesheet=Re;for(const ft in Re.sources)this.addSource(ft,Re.sources[ft],{validate:!1});Re.sprite?this._loadSprite(Re.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(Re.glyphs),this._createLayers(),this.light=new P(this.stylesheet.light),this.sky=new U(this.stylesheet.sky),this.map.setTerrain((Se=this.stylesheet.terrain)!==null&&Se!==void 0?Se:null),this.fire(new t.k("data",{dataType:"style"})),this.fire(new t.k("style.load"))}}_createLayers(){const L=t.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",L),this._order=L.map(ne=>ne.id),this._layers={},this._serializedLayers=null;for(const ne of L){const Te=t.aA(ne);Te.setEventedParent(this,{layer:{id:ne.id}}),this._layers[ne.id]=Te}}_loadSprite(L,ne=!1,Te=void 0){let Se;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(Re,ft,xt,Dt){return t._(this,void 0,void 0,function*(){const er=b(Re),fr=xt>1?"@2x":"",pr={},Br={};for(const{id:ea,url:Ve}of er){const Ye=ft.transformRequest(d(Ve,fr,".json"),"SpriteJSON");pr[ea]=t.h(Ye,Dt);const it=ft.transformRequest(d(Ve,fr,".png"),"SpriteImage");Br[ea]=l.getImage(it,Dt)}return yield Promise.all([...Object.values(pr),...Object.values(Br)]),function(ea,Ve){return t._(this,void 0,void 0,function*(){const Ye={};for(const it in ea){Ye[it]={};const vt=o.getImageCanvasContext((yield Ve[it]).data),St=(yield ea[it]).data;for(const _t in St){const{width:Lt,height:nr,x:cr,y:gr,sdf:Cr,pixelRatio:Wr,stretchX:ua,stretchY:va,content:Ma,textFitWidth:en,textFitHeight:Pn}=St[_t];Ye[it][_t]={data:null,pixelRatio:Wr,sdf:Cr,stretchX:ua,stretchY:va,content:Ma,textFitWidth:en,textFitHeight:Pn,spriteData:{width:Lt,height:nr,x:cr,y:gr,context:vt}}}}return Ye})}(pr,Br)})}(L,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(Re=>{if(this._spriteRequest=null,Re)for(const ft in Re){this._spritesImagesIds[ft]=[];const xt=this._spritesImagesIds[ft]?this._spritesImagesIds[ft].filter(Dt=>!(Dt in Re)):[];for(const Dt of xt)this.imageManager.removeImage(Dt),this._changedImages[Dt]=!0;for(const Dt in Re[ft]){const er=ft==="default"?Dt:`${ft}:${Dt}`;this._spritesImagesIds[ft].push(er),er in this.imageManager.images?this.imageManager.updateImage(er,Re[ft][Dt],!1):this.imageManager.addImage(er,Re[ft][Dt]),ne&&(this._changedImages[er]=!0)}}}).catch(Re=>{this._spriteRequest=null,Se=Re,this.fire(new t.j(Se))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),ne&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"})),Te&&Te(Se)})}_unloadSprite(){for(const L of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(L),this._changedImages[L]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}_validateLayer(L){const ne=this.sourceCaches[L.source];if(!ne)return;const Te=L.sourceLayer;if(!Te)return;const Se=ne.getSource();(Se.type==="geojson"||Se.vectorLayerIds&&Se.vectorLayerIds.indexOf(Te)===-1)&&this.fire(new t.j(new Error(`Source layer "${Te}" does not exist on source "${Se.id}" as specified by style layer "${L.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const L in this.sourceCaches)if(!this.sourceCaches[L].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(L,ne=!1){const Te=this._serializedAllLayers();if(!L||L.length===0)return Object.values(ne?t.aB(Te):Te);const Se=[];for(const Re of L)if(Te[Re]){const ft=ne?t.aB(Te[Re]):Te[Re];Se.push(ft)}return Se}_serializedAllLayers(){let L=this._serializedLayers;if(L)return L;L=this._serializedLayers={};const ne=Object.keys(this._layers);for(const Te of ne){const Se=this._layers[Te];Se.type!=="custom"&&(L[Te]=Se.serialize())}return L}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(const L in this.sourceCaches)if(this.sourceCaches[L].hasTransition())return!0;for(const L in this._layers)if(this._layers[L].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(L){if(!this._loaded)return;const ne=this._changed;if(ne){const Se=Object.keys(this._updatedLayers),Re=Object.keys(this._removedLayers);(Se.length||Re.length)&&this._updateWorkerLayers(Se,Re);for(const ft in this._updatedSources){const xt=this._updatedSources[ft];if(xt==="reload")this._reloadSource(ft);else{if(xt!=="clear")throw new Error(`Invalid action ${xt}`);this._clearSource(ft)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const ft in this._updatedPaintProps)this._layers[ft].updateTransitions(L);this.light.updateTransitions(L),this.sky.updateTransitions(L),this._resetUpdates()}const Te={};for(const Se in this.sourceCaches){const Re=this.sourceCaches[Se];Te[Se]=Re.used,Re.used=!1}for(const Se of this._order){const Re=this._layers[Se];Re.recalculate(L,this._availableImages),!Re.isHidden(L.zoom)&&Re.source&&(this.sourceCaches[Re.source].used=!0)}for(const Se in Te){const Re=this.sourceCaches[Se];!!Te[Se]!=!!Re.used&&Re.fire(new t.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:Se}))}this.light.recalculate(L),this.sky.recalculate(L),this.z=L.zoom,ne&&this.fire(new t.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){const L=Object.keys(this._changedImages);if(L.length){for(const ne in this.sourceCaches)this.sourceCaches[ne].reloadTilesForDependencies(["icons","patterns"],L);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const L in this.sourceCaches)this.sourceCaches[L].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(L,ne){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(L,!1),removedIds:ne})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(L,ne={}){var Te;this._checkLoaded();const Se=this.serialize();if(L=ne.transformStyle?ne.transformStyle(Se,L):L,((Te=ne.validate)===null||Te===void 0||Te)&&jr(this,t.u(L)))return!1;(L=t.aB(L)).layers=t.az(L.layers);const Re=t.aC(Se,L),ft=this._getOperationsToPerform(Re);if(ft.unimplemented.length>0)throw new Error(`Unimplemented: ${ft.unimplemented.join(", ")}.`);if(ft.operations.length===0)return!1;for(const xt of ft.operations)xt();return this.stylesheet=L,this._serializedLayers=null,!0}_getOperationsToPerform(L){const ne=[],Te=[];for(const Se of L)switch(Se.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":ne.push(()=>this.addLayer.apply(this,Se.args));break;case"removeLayer":ne.push(()=>this.removeLayer.apply(this,Se.args));break;case"setPaintProperty":ne.push(()=>this.setPaintProperty.apply(this,Se.args));break;case"setLayoutProperty":ne.push(()=>this.setLayoutProperty.apply(this,Se.args));break;case"setFilter":ne.push(()=>this.setFilter.apply(this,Se.args));break;case"addSource":ne.push(()=>this.addSource.apply(this,Se.args));break;case"removeSource":ne.push(()=>this.removeSource.apply(this,Se.args));break;case"setLayerZoomRange":ne.push(()=>this.setLayerZoomRange.apply(this,Se.args));break;case"setLight":ne.push(()=>this.setLight.apply(this,Se.args));break;case"setGeoJSONSourceData":ne.push(()=>this.setGeoJSONSourceData.apply(this,Se.args));break;case"setGlyphs":ne.push(()=>this.setGlyphs.apply(this,Se.args));break;case"setSprite":ne.push(()=>this.setSprite.apply(this,Se.args));break;case"setSky":ne.push(()=>this.setSky.apply(this,Se.args));break;case"setTerrain":ne.push(()=>this.map.setTerrain.apply(this,Se.args));break;case"setTransition":ne.push(()=>{});break;default:Te.push(Se.command)}return{operations:ne,unimplemented:Te}}addImage(L,ne){if(this.getImage(L))return this.fire(new t.j(new Error(`An image named "${L}" already exists.`)));this.imageManager.addImage(L,ne),this._afterImageUpdated(L)}updateImage(L,ne){this.imageManager.updateImage(L,ne)}getImage(L){return this.imageManager.getImage(L)}removeImage(L){if(!this.getImage(L))return this.fire(new t.j(new Error(`An image named "${L}" does not exist.`)));this.imageManager.removeImage(L),this._afterImageUpdated(L)}_afterImageUpdated(L){this._availableImages=this.imageManager.listImages(),this._changedImages[L]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(L,ne,Te={}){if(this._checkLoaded(),this.sourceCaches[L]!==void 0)throw new Error(`Source "${L}" already exists.`);if(!ne.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(ne).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(ne.type)>=0&&this._validate(t.u.source,`sources.${L}`,ne,null,Te))return;this.map&&this.map._collectResourceTiming&&(ne.collectResourceTiming=!0);const Se=this.sourceCaches[L]=new kt(L,ne,this.dispatcher);Se.style=this,Se.setEventedParent(this,()=>({isSourceLoaded:Se.loaded(),source:Se.serialize(),sourceId:L})),Se.onAdd(this.map),this._changed=!0}removeSource(L){if(this._checkLoaded(),this.sourceCaches[L]===void 0)throw new Error("There is no source with this ID");for(const Te in this._layers)if(this._layers[Te].source===L)return this.fire(new t.j(new Error(`Source "${L}" cannot be removed while layer "${Te}" is using it.`)));const ne=this.sourceCaches[L];delete this.sourceCaches[L],delete this._updatedSources[L],ne.fire(new t.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:L})),ne.setEventedParent(null),ne.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(L,ne){if(this._checkLoaded(),this.sourceCaches[L]===void 0)throw new Error(`There is no source with this ID=${L}`);const Te=this.sourceCaches[L].getSource();if(Te.type!=="geojson")throw new Error(`geojsonSource.type is ${Te.type}, which is !== 'geojson`);Te.setData(ne),this._changed=!0}getSource(L){return this.sourceCaches[L]&&this.sourceCaches[L].getSource()}addLayer(L,ne,Te={}){this._checkLoaded();const Se=L.id;if(this.getLayer(Se))return void this.fire(new t.j(new Error(`Layer "${Se}" already exists on this map.`)));let Re;if(L.type==="custom"){if(jr(this,t.aD(L)))return;Re=t.aA(L)}else{if("source"in L&&typeof L.source=="object"&&(this.addSource(Se,L.source),L=t.aB(L),L=t.e(L,{source:Se})),this._validate(t.u.layer,`layers.${Se}`,L,{arrayIndex:-1},Te))return;Re=t.aA(L),this._validateLayer(Re),Re.setEventedParent(this,{layer:{id:Se}})}const ft=ne?this._order.indexOf(ne):this._order.length;if(ne&&ft===-1)this.fire(new t.j(new Error(`Cannot add layer "${Se}" before non-existing layer "${ne}".`)));else{if(this._order.splice(ft,0,Se),this._layerOrderChanged=!0,this._layers[Se]=Re,this._removedLayers[Se]&&Re.source&&Re.type!=="custom"){const xt=this._removedLayers[Se];delete this._removedLayers[Se],xt.type!==Re.type?this._updatedSources[Re.source]="clear":(this._updatedSources[Re.source]="reload",this.sourceCaches[Re.source].pause())}this._updateLayer(Re),Re.onAdd&&Re.onAdd(this.map)}}moveLayer(L,ne){if(this._checkLoaded(),this._changed=!0,!this._layers[L])return void this.fire(new t.j(new Error(`The layer '${L}' does not exist in the map's style and cannot be moved.`)));if(L===ne)return;const Te=this._order.indexOf(L);this._order.splice(Te,1);const Se=ne?this._order.indexOf(ne):this._order.length;ne&&Se===-1?this.fire(new t.j(new Error(`Cannot move layer "${L}" before non-existing layer "${ne}".`))):(this._order.splice(Se,0,L),this._layerOrderChanged=!0)}removeLayer(L){this._checkLoaded();const ne=this._layers[L];if(!ne)return void this.fire(new t.j(new Error(`Cannot remove non-existing layer "${L}".`)));ne.setEventedParent(null);const Te=this._order.indexOf(L);this._order.splice(Te,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[L]=ne,delete this._layers[L],this._serializedLayers&&delete this._serializedLayers[L],delete this._updatedLayers[L],delete this._updatedPaintProps[L],ne.onRemove&&ne.onRemove(this.map)}getLayer(L){return this._layers[L]}getLayersOrder(){return[...this._order]}hasLayer(L){return L in this._layers}setLayerZoomRange(L,ne,Te){this._checkLoaded();const Se=this.getLayer(L);Se?Se.minzoom===ne&&Se.maxzoom===Te||(ne!=null&&(Se.minzoom=ne),Te!=null&&(Se.maxzoom=Te),this._updateLayer(Se)):this.fire(new t.j(new Error(`Cannot set the zoom range of non-existing layer "${L}".`)))}setFilter(L,ne,Te={}){this._checkLoaded();const Se=this.getLayer(L);if(Se){if(!t.aE(Se.filter,ne))return ne==null?(Se.filter=void 0,void this._updateLayer(Se)):void(this._validate(t.u.filter,`layers.${Se.id}.filter`,ne,null,Te)||(Se.filter=t.aB(ne),this._updateLayer(Se)))}else this.fire(new t.j(new Error(`Cannot filter non-existing layer "${L}".`)))}getFilter(L){return t.aB(this.getLayer(L).filter)}setLayoutProperty(L,ne,Te,Se={}){this._checkLoaded();const Re=this.getLayer(L);Re?t.aE(Re.getLayoutProperty(ne),Te)||(Re.setLayoutProperty(ne,Te,Se),this._updateLayer(Re)):this.fire(new t.j(new Error(`Cannot style non-existing layer "${L}".`)))}getLayoutProperty(L,ne){const Te=this.getLayer(L);if(Te)return Te.getLayoutProperty(ne);this.fire(new t.j(new Error(`Cannot get style of non-existing layer "${L}".`)))}setPaintProperty(L,ne,Te,Se={}){this._checkLoaded();const Re=this.getLayer(L);Re?t.aE(Re.getPaintProperty(ne),Te)||(Re.setPaintProperty(ne,Te,Se)&&this._updateLayer(Re),this._changed=!0,this._updatedPaintProps[L]=!0,this._serializedLayers=null):this.fire(new t.j(new Error(`Cannot style non-existing layer "${L}".`)))}getPaintProperty(L,ne){return this.getLayer(L).getPaintProperty(ne)}setFeatureState(L,ne){this._checkLoaded();const Te=L.source,Se=L.sourceLayer,Re=this.sourceCaches[Te];if(Re===void 0)return void this.fire(new t.j(new Error(`The source '${Te}' does not exist in the map's style.`)));const ft=Re.getSource().type;ft==="geojson"&&Se?this.fire(new t.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):ft!=="vector"||Se?(L.id===void 0&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),Re.setFeatureState(Se,L.id,ne)):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(L,ne){this._checkLoaded();const Te=L.source,Se=this.sourceCaches[Te];if(Se===void 0)return void this.fire(new t.j(new Error(`The source '${Te}' does not exist in the map's style.`)));const Re=Se.getSource().type,ft=Re==="vector"?L.sourceLayer:void 0;Re!=="vector"||ft?ne&&typeof L.id!="string"&&typeof L.id!="number"?this.fire(new t.j(new Error("A feature id is required to remove its specific state property."))):Se.removeFeatureState(ft,L.id,ne):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(L){this._checkLoaded();const ne=L.source,Te=L.sourceLayer,Se=this.sourceCaches[ne];if(Se!==void 0)return Se.getSource().type!=="vector"||Te?(L.id===void 0&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),Se.getFeatureState(Te,L.id)):void this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new t.j(new Error(`The source '${ne}' does not exist in the map's style.`)))}getTransition(){return t.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const L=t.aF(this.sourceCaches,Re=>Re.serialize()),ne=this._serializeByIds(this._order,!0),Te=this.map.getTerrain()||void 0,Se=this.stylesheet;return t.aG({version:Se.version,name:Se.name,metadata:Se.metadata,light:Se.light,sky:Se.sky,center:Se.center,zoom:Se.zoom,bearing:Se.bearing,pitch:Se.pitch,sprite:Se.sprite,glyphs:Se.glyphs,transition:Se.transition,sources:L,layers:ne,terrain:Te},Re=>Re!==void 0)}_updateLayer(L){this._updatedLayers[L.id]=!0,L.source&&!this._updatedSources[L.source]&&this.sourceCaches[L.source].getSource().type!=="raster"&&(this._updatedSources[L.source]="reload",this.sourceCaches[L.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(L){const ne=ft=>this._layers[ft].type==="fill-extrusion",Te={},Se=[];for(let ft=this._order.length-1;ft>=0;ft--){const xt=this._order[ft];if(ne(xt)){Te[xt]=ft;for(const Dt of L){const er=Dt[xt];if(er)for(const fr of er)Se.push(fr)}}}Se.sort((ft,xt)=>xt.intersectionZ-ft.intersectionZ);const Re=[];for(let ft=this._order.length-1;ft>=0;ft--){const xt=this._order[ft];if(ne(xt))for(let Dt=Se.length-1;Dt>=0;Dt--){const er=Se[Dt].feature;if(Te[er.layer.id]{const Cr=vt.featureSortOrder;if(Cr){const Wr=Cr.indexOf(cr.featureIndex);return Cr.indexOf(gr.featureIndex)-Wr}return gr.featureIndex-cr.featureIndex});for(const cr of nr)Lt.push(cr)}}for(const vt in Ve)Ve[vt].forEach(St=>{const _t=St.feature,Lt=er[xt[vt].source].getFeatureState(_t.layer["source-layer"],_t.id);_t.source=_t.layer.source,_t.layer["source-layer"]&&(_t.sourceLayer=_t.layer["source-layer"]),_t.state=Lt});return Ve}(this._layers,ft,this.sourceCaches,L,ne,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(Re)}querySourceFeatures(L,ne){ne&&ne.filter&&this._validate(t.u.filter,"querySourceFeatures.filter",ne.filter,null,ne);const Te=this.sourceCaches[L];return Te?function(Se,Re){const ft=Se.getRenderableIds().map(er=>Se.getTileByID(er)),xt=[],Dt={};for(let er=0;erBr.getTileByID(ea)).sort((ea,Ve)=>Ve.tileID.overscaledZ-ea.tileID.overscaledZ||(ea.tileID.isLessThan(Ve.tileID)?-1:1))}const pr=this.crossTileSymbolIndex.addLayer(fr,Dt[fr.source],L.center.lng);ft=ft||pr}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((Re=Re||this._layerOrderChanged||Te===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(o.now(),L.zoom))&&(this.pauseablePlacement=new ot(L,this.map.terrain,this._order,Re,ne,Te,Se,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Dt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(o.now()),xt=!0),ft&&this.pauseablePlacement.placement.setStale()),xt||ft)for(const er of this._order){const fr=this._layers[er];fr.type==="symbol"&&this.placement.updateLayerOpacities(fr,Dt[fr.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(o.now())}_releaseSymbolFadeTiles(){for(const L in this.sourceCaches)this.sourceCaches[L].releaseSymbolFadeTiles()}getImages(L,ne){return t._(this,void 0,void 0,function*(){const Te=yield this.imageManager.getImages(ne.icons);this._updateTilesForChangedImages();const Se=this.sourceCaches[ne.source];return Se&&Se.setDependencies(ne.tileID.key,ne.type,ne.icons),Te})}getGlyphs(L,ne){return t._(this,void 0,void 0,function*(){const Te=yield this.glyphManager.getGlyphs(ne.stacks),Se=this.sourceCaches[ne.source];return Se&&Se.setDependencies(ne.tileID.key,ne.type,[""]),Te})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(L,ne={}){this._checkLoaded(),L&&this._validate(t.u.glyphs,"glyphs",L,null,ne)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=L,this.glyphManager.entries={},this.glyphManager.setURL(L))}addSprite(L,ne,Te={},Se){this._checkLoaded();const Re=[{id:L,url:ne}],ft=[...b(this.stylesheet.sprite),...Re];this._validate(t.u.sprite,"sprite",ft,null,Te)||(this.stylesheet.sprite=ft,this._loadSprite(Re,!0,Se))}removeSprite(L){this._checkLoaded();const ne=b(this.stylesheet.sprite);if(ne.find(Te=>Te.id===L)){if(this._spritesImagesIds[L])for(const Te of this._spritesImagesIds[L])this.imageManager.removeImage(Te),this._changedImages[Te]=!0;ne.splice(ne.findIndex(Te=>Te.id===L),1),this.stylesheet.sprite=ne.length>0?ne:void 0,delete this._spritesImagesIds[L],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}else this.fire(new t.j(new Error(`Sprite "${L}" doesn't exists on this map.`)))}getSprite(){return b(this.stylesheet.sprite)}setSprite(L,ne={},Te){this._checkLoaded(),L&&this._validate(t.u.sprite,"sprite",L,null,ne)||(this.stylesheet.sprite=L,L?this._loadSprite(L,!0,Te):(this._unloadSprite(),Te&&Te(null)))}}var na=t.Y([{name:"a_pos",type:"Int16",components:2}]);const ta={prelude:At(`#ifdef GL_ES +precision mediump float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +`,`#ifdef GL_ES +precision highp float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 +);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} +#ifdef TERRAIN3D +uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; +#endif +const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { +#ifdef TERRAIN3D +highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); +#else +return 1.0; +#endif +}float calculate_visibility(vec4 pos) { +#ifdef TERRAIN3D +vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; +#else +return 1.0; +#endif +}float ele(vec2 pos) { +#ifdef TERRAIN3D +vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; +#else +return 0.0; +#endif +}float get_elevation(vec2 pos) { +#ifdef TERRAIN3D +vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; +#else +return 0.0; +#endif +}`),background:At(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:At(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:At(`varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main(void) { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:At("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:At(`uniform highp float u_intensity;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#define GAUSS_COEF 0.3989422804014327 +void main() { +#pragma mapbox: initialize highp float weight +float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#pragma mapbox: define mediump float radius +const highp float ZERO=1.0/255.0/16.0; +#define GAUSS_COEF 0.3989422804014327 +void main(void) { +#pragma mapbox: initialize highp float weight +#pragma mapbox: initialize mediump float radius +vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:At(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(0.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:At("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:At("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:At("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:At(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:At(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:At(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:At(`#ifdef GL_ES +precision highp float; +#endif +uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:At(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:At(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:At(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:At(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:At(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),lineGradient:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),linePattern:At(`#ifdef GL_ES +precision highp float; +#endif +uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:At(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:At(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:At(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:At(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:At("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:At("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:At("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:At("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function At(ze,L){const ne=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Te=L.match(/attribute ([\w]+) ([\w]+)/g),Se=ze.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Re=L.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ft=Re?Re.concat(Se):Se,xt={};return{fragmentSource:ze=ze.replace(ne,(Dt,er,fr,pr,Br)=>(xt[Br]=!0,er==="define"?` +#ifndef HAS_UNIFORM_u_${Br} +varying ${fr} ${pr} ${Br}; +#else +uniform ${fr} ${pr} u_${Br}; +#endif +`:` +#ifdef HAS_UNIFORM_u_${Br} + ${fr} ${pr} ${Br} = u_${Br}; +#endif +`)),vertexSource:L=L.replace(ne,(Dt,er,fr,pr,Br)=>{const ea=pr==="float"?"vec2":"vec4",Ve=Br.match(/color/)?"color":ea;return xt[Br]?er==="define"?` +#ifndef HAS_UNIFORM_u_${Br} +uniform lowp float u_${Br}_t; +attribute ${fr} ${ea} a_${Br}; +varying ${fr} ${pr} ${Br}; +#else +uniform ${fr} ${pr} u_${Br}; +#endif +`:Ve==="vec4"?` +#ifndef HAS_UNIFORM_u_${Br} + ${Br} = a_${Br}; +#else + ${fr} ${pr} ${Br} = u_${Br}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${Br} + ${Br} = unpack_mix_${Ve}(a_${Br}, u_${Br}_t); +#else + ${fr} ${pr} ${Br} = u_${Br}; +#endif +`:er==="define"?` +#ifndef HAS_UNIFORM_u_${Br} +uniform lowp float u_${Br}_t; +attribute ${fr} ${ea} a_${Br}; +#else +uniform ${fr} ${pr} u_${Br}; +#endif +`:Ve==="vec4"?` +#ifndef HAS_UNIFORM_u_${Br} + ${fr} ${pr} ${Br} = a_${Br}; +#else + ${fr} ${pr} ${Br} = u_${Br}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${Br} + ${fr} ${pr} ${Br} = unpack_mix_${Ve}(a_${Br}, u_${Br}_t); +#else + ${fr} ${pr} ${Br} = u_${Br}; +#endif +`}),staticAttributes:Te,staticUniforms:ft}}class or{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(L,ne,Te,Se,Re,ft,xt,Dt,er){this.context=L;let fr=this.boundPaintVertexBuffers.length!==Se.length;for(let pr=0;!fr&&pr({u_matrix:ze,u_texture:0,u_ele_delta:L,u_fog_matrix:ne,u_fog_color:Te?Te.properties.get("fog-color"):t.aM.white,u_fog_ground_blend:Te?Te.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Te?Te.calculateFogBlendOpacity(Se):0,u_horizon_color:Te?Te.properties.get("horizon-color"):t.aM.white,u_horizon_fog_blend:Te?Te.properties.get("horizon-fog-blend"):1});function oa(ze){const L=[];for(let ne=0;ne({u_depth:new t.aH(cr,gr.u_depth),u_terrain:new t.aH(cr,gr.u_terrain),u_terrain_dim:new t.aI(cr,gr.u_terrain_dim),u_terrain_matrix:new t.aJ(cr,gr.u_terrain_matrix),u_terrain_unpack:new t.aK(cr,gr.u_terrain_unpack),u_terrain_exaggeration:new t.aI(cr,gr.u_terrain_exaggeration)}))(L,nr),this.binderUniforms=Te?Te.getUniforms(L,nr):[]}draw(L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve,Ye,it,vt,St){const _t=L.gl;if(this.failedToCreate)return;if(L.program.set(this.program),L.setDepthMode(Te),L.setStencilMode(Se),L.setColorMode(Re),L.setCullFace(ft),Dt){L.activeTexture.set(_t.TEXTURE2),_t.bindTexture(_t.TEXTURE_2D,Dt.depthTexture),L.activeTexture.set(_t.TEXTURE3),_t.bindTexture(_t.TEXTURE_2D,Dt.texture);for(const nr in this.terrainUniforms)this.terrainUniforms[nr].set(Dt[nr])}for(const nr in this.fixedUniforms)this.fixedUniforms[nr].set(xt[nr]);Ye&&Ye.setUniforms(L,this.binderUniforms,ea,{zoom:Ve});let Lt=0;switch(ne){case _t.LINES:Lt=2;break;case _t.TRIANGLES:Lt=3;break;case _t.LINE_STRIP:Lt=1}for(const nr of Br.get()){const cr=nr.vaos||(nr.vaos={});(cr[er]||(cr[er]=new or)).bind(L,this,fr,Ye?Ye.getPaintVertexBuffers():[],pr,nr.vertexOffset,it,vt,St),_t.drawElements(ne,nr.primitiveLength*Lt,_t.UNSIGNED_SHORT,nr.primitiveOffset*Lt*2)}}}function Sa(ze,L,ne){const Te=1/Ia(ne,1,L.transform.tileZoom),Se=Math.pow(2,ne.tileID.overscaledZ),Re=ne.tileSize*Math.pow(2,L.transform.tileZoom)/Se,ft=Re*(ne.tileID.canonical.x+ne.tileID.wrap*Se),xt=Re*ne.tileID.canonical.y;return{u_image:0,u_texsize:ne.imageAtlasTexture.size,u_scale:[Te,ze.fromScale,ze.toScale],u_fade:ze.t,u_pixel_coord_upper:[ft>>16,xt>>16],u_pixel_coord_lower:[65535&ft,65535&xt]}}const za=(ze,L,ne,Te)=>{const Se=L.style.light,Re=Se.properties.get("position"),ft=[Re.x,Re.y,Re.z],xt=function(){var er=new t.A(9);return t.A!=Float32Array&&(er[1]=0,er[2]=0,er[3]=0,er[5]=0,er[6]=0,er[7]=0),er[0]=1,er[4]=1,er[8]=1,er}();Se.properties.get("anchor")==="viewport"&&function(er,fr){var pr=Math.sin(fr),Br=Math.cos(fr);er[0]=Br,er[1]=pr,er[2]=0,er[3]=-pr,er[4]=Br,er[5]=0,er[6]=0,er[7]=0,er[8]=1}(xt,-L.transform.angle),function(er,fr,pr){var Br=fr[0],ea=fr[1],Ve=fr[2];er[0]=Br*pr[0]+ea*pr[3]+Ve*pr[6],er[1]=Br*pr[1]+ea*pr[4]+Ve*pr[7],er[2]=Br*pr[2]+ea*pr[5]+Ve*pr[8]}(ft,ft,xt);const Dt=Se.properties.get("color");return{u_matrix:ze,u_lightpos:ft,u_lightintensity:Se.properties.get("intensity"),u_lightcolor:[Dt.r,Dt.g,Dt.b],u_vertical_gradient:+ne,u_opacity:Te}},ra=(ze,L,ne,Te,Se,Re,ft)=>t.e(za(ze,L,ne,Te),Sa(Re,L,ft),{u_height_factor:-Math.pow(2,Se.overscaledZ)/ft.tileSize/8}),Ta=ze=>({u_matrix:ze}),Fn=(ze,L,ne,Te)=>t.e(Ta(ze),Sa(ne,L,Te)),mn=(ze,L)=>({u_matrix:ze,u_world:L}),Kn=(ze,L,ne,Te,Se)=>t.e(Fn(ze,L,ne,Te),{u_world:Se}),ui=(ze,L,ne,Te)=>{const Se=ze.transform;let Re,ft;if(Te.paint.get("circle-pitch-alignment")==="map"){const xt=Ia(ne,1,Se.zoom);Re=!0,ft=[xt,xt]}else Re=!1,ft=Se.pixelsToGLUnits;return{u_camera_to_center_distance:Se.cameraToCenterDistance,u_scale_with_map:+(Te.paint.get("circle-pitch-scale")==="map"),u_matrix:ze.translatePosMatrix(L.posMatrix,ne,Te.paint.get("circle-translate"),Te.paint.get("circle-translate-anchor")),u_pitch_with_map:+Re,u_device_pixel_ratio:ze.pixelRatio,u_extrude_scale:ft}},pi=(ze,L,ne)=>({u_matrix:ze,u_inv_matrix:L,u_camera_to_center_distance:ne.cameraToCenterDistance,u_viewport_size:[ne.width,ne.height]}),vi=(ze,L,ne=1)=>({u_matrix:ze,u_color:L,u_overlay:0,u_overlay_scale:ne}),Li=ze=>({u_matrix:ze}),Ni=(ze,L,ne,Te)=>({u_matrix:ze,u_extrude_scale:Ia(L,1,ne),u_intensity:Te}),ci=(ze,L,ne,Te)=>{const Se=t.H();t.aP(Se,0,ze.width,ze.height,0,0,1);const Re=ze.context.gl;return{u_matrix:Se,u_world:[Re.drawingBufferWidth,Re.drawingBufferHeight],u_image:ne,u_color_ramp:Te,u_opacity:L.paint.get("heatmap-opacity")}};function bi(ze,L){const ne=Math.pow(2,L.canonical.z),Te=L.canonical.y;return[new t.Z(0,Te/ne).toLngLat().lat,new t.Z(0,(Te+1)/ne).toLngLat().lat]}const ho=(ze,L,ne,Te)=>{const Se=ze.transform;return{u_matrix:Ri(ze,L,ne,Te),u_ratio:1/Ia(L,1,Se.zoom),u_device_pixel_ratio:ze.pixelRatio,u_units_to_pixels:[1/Se.pixelsToGLUnits[0],1/Se.pixelsToGLUnits[1]]}},Bo=(ze,L,ne,Te,Se)=>t.e(ho(ze,L,ne,Se),{u_image:0,u_image_height:Te}),gs=(ze,L,ne,Te,Se)=>{const Re=ze.transform,ft=Ei(L,Re);return{u_matrix:Ri(ze,L,ne,Se),u_texsize:L.imageAtlasTexture.size,u_ratio:1/Ia(L,1,Re.zoom),u_device_pixel_ratio:ze.pixelRatio,u_image:0,u_scale:[ft,Te.fromScale,Te.toScale],u_fade:Te.t,u_units_to_pixels:[1/Re.pixelsToGLUnits[0],1/Re.pixelsToGLUnits[1]]}},ro=(ze,L,ne,Te,Se,Re)=>{const ft=ze.lineAtlas,xt=Ei(L,ze.transform),Dt=ne.layout.get("line-cap")==="round",er=ft.getDash(Te.from,Dt),fr=ft.getDash(Te.to,Dt),pr=er.width*Se.fromScale,Br=fr.width*Se.toScale;return t.e(ho(ze,L,ne,Re),{u_patternscale_a:[xt/pr,-er.height/2],u_patternscale_b:[xt/Br,-fr.height/2],u_sdfgamma:ft.width/(256*Math.min(pr,Br)*ze.pixelRatio)/2,u_image:0,u_tex_y_a:er.y,u_tex_y_b:fr.y,u_mix:Se.t})};function Ei(ze,L){return 1/Ia(ze,1,L.tileZoom)}function Ri(ze,L,ne,Te){return ze.translatePosMatrix(Te?Te.posMatrix:L.tileID.posMatrix,L,ne.paint.get("line-translate"),ne.paint.get("line-translate-anchor"))}const xo=(ze,L,ne,Te,Se)=>{return{u_matrix:ze,u_tl_parent:L,u_scale_parent:ne,u_buffer_scale:1,u_fade_t:Te.mix,u_opacity:Te.opacity*Se.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:Se.paint.get("raster-brightness-min"),u_brightness_high:Se.paint.get("raster-brightness-max"),u_saturation_factor:(ft=Se.paint.get("raster-saturation"),ft>0?1-1/(1.001-ft):-ft),u_contrast_factor:(Re=Se.paint.get("raster-contrast"),Re>0?1/(1-Re):1+Re),u_spin_weights:So(Se.paint.get("raster-hue-rotate"))};var Re,ft};function So(ze){ze*=Math.PI/180;const L=Math.sin(ze),ne=Math.cos(ze);return[(2*ne+1)/3,(-Math.sqrt(3)*L-ne+1)/3,(Math.sqrt(3)*L-ne+1)/3]}const bo=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea)=>{const Ve=ft.transform;return{u_is_size_zoom_constant:+(ze==="constant"||ze==="source"),u_is_size_feature_constant:+(ze==="constant"||ze==="camera"),u_size_t:L?L.uSizeT:0,u_size:L?L.uSize:0,u_camera_to_center_distance:Ve.cameraToCenterDistance,u_pitch:Ve.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:Ve.width/Ve.height,u_fade_change:ft.options.fadeDuration?ft.symbolFadeChange:1,u_matrix:xt,u_label_plane_matrix:Dt,u_coord_matrix:er,u_is_text:+pr,u_pitch_with_map:+Te,u_is_along_line:Se,u_is_variable_anchor:Re,u_texsize:Br,u_texture:0,u_translation:fr,u_pitched_scale:ea}},Ui=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve)=>{const Ye=ft.transform;return t.e(bo(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,Ve),{u_gamma_scale:Te?Math.cos(Ye._pitch)*Ye.cameraToCenterDistance:1,u_device_pixel_ratio:ft.pixelRatio,u_is_halo:1})},no=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea)=>t.e(Ui(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,!0,pr,!0,ea),{u_texsize_icon:Br,u_texture_icon:1}),cs=(ze,L,ne)=>({u_matrix:ze,u_opacity:L,u_color:ne}),ks=(ze,L,ne,Te,Se,Re)=>t.e(function(ft,xt,Dt,er){const fr=Dt.imageManager.getPattern(ft.from.toString()),pr=Dt.imageManager.getPattern(ft.to.toString()),{width:Br,height:ea}=Dt.imageManager.getPixelSize(),Ve=Math.pow(2,er.tileID.overscaledZ),Ye=er.tileSize*Math.pow(2,Dt.transform.tileZoom)/Ve,it=Ye*(er.tileID.canonical.x+er.tileID.wrap*Ve),vt=Ye*er.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:fr.tl,u_pattern_br_a:fr.br,u_pattern_tl_b:pr.tl,u_pattern_br_b:pr.br,u_texsize:[Br,ea],u_mix:xt.t,u_pattern_size_a:fr.displaySize,u_pattern_size_b:pr.displaySize,u_scale_a:xt.fromScale,u_scale_b:xt.toScale,u_tile_units_to_pixels:1/Ia(er,1,Dt.transform.tileZoom),u_pixel_coord_upper:[it>>16,vt>>16],u_pixel_coord_lower:[65535&it,65535&vt]}}(Te,Re,ne,Se),{u_matrix:ze,u_opacity:L}),ms={fillExtrusion:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_lightpos:new t.aN(ze,L.u_lightpos),u_lightintensity:new t.aI(ze,L.u_lightintensity),u_lightcolor:new t.aN(ze,L.u_lightcolor),u_vertical_gradient:new t.aI(ze,L.u_vertical_gradient),u_opacity:new t.aI(ze,L.u_opacity)}),fillExtrusionPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_lightpos:new t.aN(ze,L.u_lightpos),u_lightintensity:new t.aI(ze,L.u_lightintensity),u_lightcolor:new t.aN(ze,L.u_lightcolor),u_vertical_gradient:new t.aI(ze,L.u_vertical_gradient),u_height_factor:new t.aI(ze,L.u_height_factor),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade),u_opacity:new t.aI(ze,L.u_opacity)}),fill:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix)}),fillPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),fillOutline:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world)}),fillOutlinePattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),circle:(ze,L)=>({u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_scale_with_map:new t.aH(ze,L.u_scale_with_map),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_extrude_scale:new t.aO(ze,L.u_extrude_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_matrix:new t.aJ(ze,L.u_matrix)}),collisionBox:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_pixel_extrude_scale:new t.aO(ze,L.u_pixel_extrude_scale)}),collisionCircle:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_inv_matrix:new t.aJ(ze,L.u_inv_matrix),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_viewport_size:new t.aO(ze,L.u_viewport_size)}),debug:(ze,L)=>({u_color:new t.aL(ze,L.u_color),u_matrix:new t.aJ(ze,L.u_matrix),u_overlay:new t.aH(ze,L.u_overlay),u_overlay_scale:new t.aI(ze,L.u_overlay_scale)}),clippingMask:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix)}),heatmap:(ze,L)=>({u_extrude_scale:new t.aI(ze,L.u_extrude_scale),u_intensity:new t.aI(ze,L.u_intensity),u_matrix:new t.aJ(ze,L.u_matrix)}),heatmapTexture:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world),u_image:new t.aH(ze,L.u_image),u_color_ramp:new t.aH(ze,L.u_color_ramp),u_opacity:new t.aI(ze,L.u_opacity)}),hillshade:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_latrange:new t.aO(ze,L.u_latrange),u_light:new t.aO(ze,L.u_light),u_shadow:new t.aL(ze,L.u_shadow),u_highlight:new t.aL(ze,L.u_highlight),u_accent:new t.aL(ze,L.u_accent)}),hillshadePrepare:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_dimension:new t.aO(ze,L.u_dimension),u_zoom:new t.aI(ze,L.u_zoom),u_unpack:new t.aK(ze,L.u_unpack)}),line:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels)}),lineGradient:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_image:new t.aH(ze,L.u_image),u_image_height:new t.aI(ze,L.u_image_height)}),linePattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texsize:new t.aO(ze,L.u_texsize),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_image:new t.aH(ze,L.u_image),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),lineSDF:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_patternscale_a:new t.aO(ze,L.u_patternscale_a),u_patternscale_b:new t.aO(ze,L.u_patternscale_b),u_sdfgamma:new t.aI(ze,L.u_sdfgamma),u_image:new t.aH(ze,L.u_image),u_tex_y_a:new t.aI(ze,L.u_tex_y_a),u_tex_y_b:new t.aI(ze,L.u_tex_y_b),u_mix:new t.aI(ze,L.u_mix)}),raster:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_tl_parent:new t.aO(ze,L.u_tl_parent),u_scale_parent:new t.aI(ze,L.u_scale_parent),u_buffer_scale:new t.aI(ze,L.u_buffer_scale),u_fade_t:new t.aI(ze,L.u_fade_t),u_opacity:new t.aI(ze,L.u_opacity),u_image0:new t.aH(ze,L.u_image0),u_image1:new t.aH(ze,L.u_image1),u_brightness_low:new t.aI(ze,L.u_brightness_low),u_brightness_high:new t.aI(ze,L.u_brightness_high),u_saturation_factor:new t.aI(ze,L.u_saturation_factor),u_contrast_factor:new t.aI(ze,L.u_contrast_factor),u_spin_weights:new t.aN(ze,L.u_spin_weights)}),symbolIcon:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texture:new t.aH(ze,L.u_texture),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),symbolSDF:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texture:new t.aH(ze,L.u_texture),u_gamma_scale:new t.aI(ze,L.u_gamma_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_is_halo:new t.aH(ze,L.u_is_halo),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),symbolTextAndIcon:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texsize_icon:new t.aO(ze,L.u_texsize_icon),u_texture:new t.aH(ze,L.u_texture),u_texture_icon:new t.aH(ze,L.u_texture_icon),u_gamma_scale:new t.aI(ze,L.u_gamma_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_is_halo:new t.aH(ze,L.u_is_halo),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),background:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_opacity:new t.aI(ze,L.u_opacity),u_color:new t.aL(ze,L.u_color)}),backgroundPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_opacity:new t.aI(ze,L.u_opacity),u_image:new t.aH(ze,L.u_image),u_pattern_tl_a:new t.aO(ze,L.u_pattern_tl_a),u_pattern_br_a:new t.aO(ze,L.u_pattern_br_a),u_pattern_tl_b:new t.aO(ze,L.u_pattern_tl_b),u_pattern_br_b:new t.aO(ze,L.u_pattern_br_b),u_texsize:new t.aO(ze,L.u_texsize),u_mix:new t.aI(ze,L.u_mix),u_pattern_size_a:new t.aO(ze,L.u_pattern_size_a),u_pattern_size_b:new t.aO(ze,L.u_pattern_size_b),u_scale_a:new t.aI(ze,L.u_scale_a),u_scale_b:new t.aI(ze,L.u_scale_b),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_tile_units_to_pixels:new t.aI(ze,L.u_tile_units_to_pixels)}),terrain:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texture:new t.aH(ze,L.u_texture),u_ele_delta:new t.aI(ze,L.u_ele_delta),u_fog_matrix:new t.aJ(ze,L.u_fog_matrix),u_fog_color:new t.aL(ze,L.u_fog_color),u_fog_ground_blend:new t.aI(ze,L.u_fog_ground_blend),u_fog_ground_blend_opacity:new t.aI(ze,L.u_fog_ground_blend_opacity),u_horizon_color:new t.aL(ze,L.u_horizon_color),u_horizon_fog_blend:new t.aI(ze,L.u_horizon_fog_blend)}),terrainDepth:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ele_delta:new t.aI(ze,L.u_ele_delta)}),terrainCoords:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texture:new t.aH(ze,L.u_texture),u_terrain_coords_id:new t.aI(ze,L.u_terrain_coords_id),u_ele_delta:new t.aI(ze,L.u_ele_delta)}),sky:(ze,L)=>({u_sky_color:new t.aL(ze,L.u_sky_color),u_horizon_color:new t.aL(ze,L.u_horizon_color),u_horizon:new t.aI(ze,L.u_horizon),u_sky_horizon_blend:new t.aI(ze,L.u_sky_horizon_blend)})};class Mo{constructor(L,ne,Te){this.context=L;const Se=L.gl;this.buffer=Se.createBuffer(),this.dynamicDraw=!!Te,this.context.unbindVAO(),L.bindElementBuffer.set(this.buffer),Se.bufferData(Se.ELEMENT_ARRAY_BUFFER,ne.arrayBuffer,this.dynamicDraw?Se.DYNAMIC_DRAW:Se.STATIC_DRAW),this.dynamicDraw||delete ne.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(L){const ne=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),ne.bufferSubData(ne.ELEMENT_ARRAY_BUFFER,0,L.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const kn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class fi{constructor(L,ne,Te,Se){this.length=ne.length,this.attributes=Te,this.itemSize=ne.bytesPerElement,this.dynamicDraw=Se,this.context=L;const Re=L.gl;this.buffer=Re.createBuffer(),L.bindVertexBuffer.set(this.buffer),Re.bufferData(Re.ARRAY_BUFFER,ne.arrayBuffer,this.dynamicDraw?Re.DYNAMIC_DRAW:Re.STATIC_DRAW),this.dynamicDraw||delete ne.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(L){if(L.length!==this.length)throw new Error(`Length of new data is ${L.length}, which doesn't match current length of ${this.length}`);const ne=this.context.gl;this.bind(),ne.bufferSubData(ne.ARRAY_BUFFER,0,L.arrayBuffer)}enableAttributes(L,ne){for(let Te=0;Te0){const cr=t.H();t.aQ(cr,_t.placementInvProjMatrix,ze.transform.glCoordMatrix),t.aQ(cr,cr,_t.placementViewportMatrix),Dt.push({circleArray:nr,circleOffset:fr,transform:St.posMatrix,invTransform:cr,coord:St}),er+=nr.length/4,fr=er}Lt&&xt.draw(Re,ft.LINES,zo.disabled,is.disabled,ze.colorModeForRenderPass(),Bi.disabled,{u_matrix:St.posMatrix,u_pixel_extrude_scale:[1/(pr=ze.transform).width,1/pr.height]},ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(St),ne.id,Lt.layoutVertexBuffer,Lt.indexBuffer,Lt.segments,null,ze.transform.zoom,null,null,Lt.collisionVertexBuffer)}var pr;if(!Se||!Dt.length)return;const Br=ze.useProgram("collisionCircle"),ea=new t.aR;ea.resize(4*er),ea._trim();let Ve=0;for(const vt of Dt)for(let St=0;St=0&&(vt[_t.associatedIconIndex]={shiftedAnchor:oi,angle:Si})}else rr(_t.numGlyphs,Ye)}if(er){it.clear();const St=ze.icon.placedSymbolArray;for(let _t=0;_tze.style.map.terrain.getElevation(va,ca,nn):null,la=ne.layout.get("text-rotation-alignment")==="map";Oe(en,va.posMatrix,ze,Se,Dl,pe,vt,er,la,Ye,va.toUnwrapped(),Ve.width,Ve.height,Le,Zr)}const gt=va.posMatrix,Tt=Se&&Cr||dt,Vt=St||Tt?dl:Dl,jt=ou,sr=In&&ne.paint.get(Se?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let Pr;Pr=In?en.iconsInText?no(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Ho,Hs,ua):Ui(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Se,Ho,!0,ua):bo(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Se,Ho,ua);const kr={program:_i,buffers:Pn,uniformValues:Pr,atlasTexture:Ao,atlasTextureIcon:ko,atlasInterpolation:Ko,atlasInterpolationIcon:Js,isSDF:In,hasHalo:sr};if(nr&&en.canOverlap){cr=!0;const Zr=Pn.segments.get();for(const la of Zr)Wr.push({segments:new t.a0([la]),sortKey:la.sortKey,state:kr,terrainData:Go})}else Wr.push({segments:Pn.segments,sortKey:0,state:kr,terrainData:Go})}cr&&Wr.sort((va,Ma)=>va.sortKey-Ma.sortKey);for(const va of Wr){const Ma=va.state;if(Br.activeTexture.set(ea.TEXTURE0),Ma.atlasTexture.bind(Ma.atlasInterpolation,ea.CLAMP_TO_EDGE),Ma.atlasTextureIcon&&(Br.activeTexture.set(ea.TEXTURE1),Ma.atlasTextureIcon&&Ma.atlasTextureIcon.bind(Ma.atlasInterpolationIcon,ea.CLAMP_TO_EDGE)),Ma.isSDF){const en=Ma.uniformValues;Ma.hasHalo&&(en.u_is_halo=1,Yc(Ma.buffers,va.segments,ne,ze,Ma.program,gr,fr,pr,en,va.terrainData)),en.u_is_halo=0}Yc(Ma.buffers,va.segments,ne,ze,Ma.program,gr,fr,pr,Ma.uniformValues,va.terrainData)}}function Yc(ze,L,ne,Te,Se,Re,ft,xt,Dt,er){const fr=Te.context;Se.draw(fr,fr.gl.TRIANGLES,Re,ft,xt,Bi.disabled,Dt,er,ne.id,ze.layoutVertexBuffer,ze.indexBuffer,L,ne.paint,Te.transform.zoom,ze.programConfigurations.get(ne.id),ze.dynamicLayoutVertexBuffer,ze.opacityVertexBuffer)}function Tc(ze,L,ne,Te){const Se=ze.context,Re=Se.gl,ft=is.disabled,xt=new Zs([Re.ONE,Re.ONE],t.aM.transparent,[!0,!0,!0,!0]),Dt=L.getBucket(ne);if(!Dt)return;const er=Te.key;let fr=ne.heatmapFbos.get(er);fr||(fr=Gc(Se,L.tileSize,L.tileSize),ne.heatmapFbos.set(er,fr)),Se.bindFramebuffer.set(fr.framebuffer),Se.viewport.set([0,0,L.tileSize,L.tileSize]),Se.clear({color:t.aM.transparent});const pr=Dt.programConfigurations.get(ne.id),Br=ze.useProgram("heatmap",pr),ea=ze.style.map.terrain.getTerrainData(Te);Br.draw(Se,Re.TRIANGLES,zo.disabled,ft,xt,Bi.disabled,Ni(Te.posMatrix,L,ze.transform.zoom,ne.paint.get("heatmap-intensity")),ea,ne.id,Dt.layoutVertexBuffer,Dt.indexBuffer,Dt.segments,ne.paint,ze.transform.zoom,pr)}function ec(ze,L,ne){const Te=ze.context,Se=Te.gl;Te.setColorMode(ze.colorModeForRenderPass());const Re=Hc(Te,L),ft=ne.key,xt=L.heatmapFbos.get(ft);xt&&(Te.activeTexture.set(Se.TEXTURE0),Se.bindTexture(Se.TEXTURE_2D,xt.colorAttachment.get()),Te.activeTexture.set(Se.TEXTURE1),Re.bind(Se.LINEAR,Se.CLAMP_TO_EDGE),ze.useProgram("heatmapTexture").draw(Te,Se.TRIANGLES,zo.disabled,is.disabled,ze.colorModeForRenderPass(),Bi.disabled,ci(ze,L,0,1),null,L.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments,L.paint,ze.transform.zoom),xt.destroy(),L.heatmapFbos.delete(ft))}function Gc(ze,L,ne){var Te,Se;const Re=ze.gl,ft=Re.createTexture();Re.bindTexture(Re.TEXTURE_2D,ft),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_S,Re.CLAMP_TO_EDGE),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_T,Re.CLAMP_TO_EDGE),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MIN_FILTER,Re.LINEAR),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MAG_FILTER,Re.LINEAR);const xt=(Te=ze.HALF_FLOAT)!==null&&Te!==void 0?Te:Re.UNSIGNED_BYTE,Dt=(Se=ze.RGBA16F)!==null&&Se!==void 0?Se:Re.RGBA;Re.texImage2D(Re.TEXTURE_2D,0,Dt,L,ne,0,Re.RGBA,xt,null);const er=ze.createFramebuffer(L,ne,!1,!1);return er.colorAttachment.set(ft),er}function Hc(ze,L){return L.colorRampTexture||(L.colorRampTexture=new u(ze,L.colorRamp,ze.gl.RGBA)),L.colorRampTexture}function bu(ze,L,ne,Te,Se){if(!ne||!Te||!Te.imageAtlas)return;const Re=Te.imageAtlas.patternPositions;let ft=Re[ne.to.toString()],xt=Re[ne.from.toString()];if(!ft&&xt&&(ft=xt),!xt&&ft&&(xt=ft),!ft||!xt){const Dt=Se.getPaintProperty(L);ft=Re[Dt],xt=Re[Dt]}ft&&xt&&ze.setConstantPatternPositions(ft,xt)}function $c(ze,L,ne,Te,Se,Re,ft){const xt=ze.context.gl,Dt="fill-pattern",er=ne.paint.get(Dt),fr=er&&er.constantOr(1),pr=ne.getCrossfadeParameters();let Br,ea,Ve,Ye,it;ft?(ea=fr&&!ne.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Br=xt.LINES):(ea=fr?"fillPattern":"fill",Br=xt.TRIANGLES);const vt=er.constantOr(null);for(const St of Te){const _t=L.getTile(St);if(fr&&!_t.patternsLoaded())continue;const Lt=_t.getBucket(ne);if(!Lt)continue;const nr=Lt.programConfigurations.get(ne.id),cr=ze.useProgram(ea,nr),gr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(St);fr&&(ze.context.activeTexture.set(xt.TEXTURE0),_t.imageAtlasTexture.bind(xt.LINEAR,xt.CLAMP_TO_EDGE),nr.updatePaintBuffers(pr)),bu(nr,Dt,vt,_t,ne);const Cr=gr?St:null,Wr=ze.translatePosMatrix(Cr?Cr.posMatrix:St.posMatrix,_t,ne.paint.get("fill-translate"),ne.paint.get("fill-translate-anchor"));if(ft){Ye=Lt.indexBuffer2,it=Lt.segments2;const ua=[xt.drawingBufferWidth,xt.drawingBufferHeight];Ve=ea==="fillOutlinePattern"&&fr?Kn(Wr,ze,pr,_t,ua):mn(Wr,ua)}else Ye=Lt.indexBuffer,it=Lt.segments,Ve=fr?Fn(Wr,ze,pr,_t):Ta(Wr);cr.draw(ze.context,Br,Se,ze.stencilModeForClipping(St),Re,Bi.disabled,Ve,gr,ne.id,Lt.layoutVertexBuffer,Ye,it,ne.paint,ze.transform.zoom,nr)}}function Gu(ze,L,ne,Te,Se,Re,ft){const xt=ze.context,Dt=xt.gl,er="fill-extrusion-pattern",fr=ne.paint.get(er),pr=fr.constantOr(1),Br=ne.getCrossfadeParameters(),ea=ne.paint.get("fill-extrusion-opacity"),Ve=fr.constantOr(null);for(const Ye of Te){const it=L.getTile(Ye),vt=it.getBucket(ne);if(!vt)continue;const St=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(Ye),_t=vt.programConfigurations.get(ne.id),Lt=ze.useProgram(pr?"fillExtrusionPattern":"fillExtrusion",_t);pr&&(ze.context.activeTexture.set(Dt.TEXTURE0),it.imageAtlasTexture.bind(Dt.LINEAR,Dt.CLAMP_TO_EDGE),_t.updatePaintBuffers(Br)),bu(_t,er,Ve,it,ne);const nr=ze.translatePosMatrix(Ye.posMatrix,it,ne.paint.get("fill-extrusion-translate"),ne.paint.get("fill-extrusion-translate-anchor")),cr=ne.paint.get("fill-extrusion-vertical-gradient"),gr=pr?ra(nr,ze,cr,ea,Ye,Br,it):za(nr,ze,cr,ea);Lt.draw(xt,xt.gl.TRIANGLES,Se,Re,ft,Bi.backCCW,gr,St,ne.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,ne.paint,ze.transform.zoom,_t,ze.style.map.terrain&&vt.centroidVertexBuffer)}}function Lu(ze,L,ne,Te,Se,Re,ft){const xt=ze.context,Dt=xt.gl,er=ne.fbo;if(!er)return;const fr=ze.useProgram("hillshade"),pr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(L);xt.activeTexture.set(Dt.TEXTURE0),Dt.bindTexture(Dt.TEXTURE_2D,er.colorAttachment.get()),fr.draw(xt,Dt.TRIANGLES,Se,Re,ft,Bi.disabled,((Br,ea,Ve,Ye)=>{const it=Ve.paint.get("hillshade-shadow-color"),vt=Ve.paint.get("hillshade-highlight-color"),St=Ve.paint.get("hillshade-accent-color");let _t=Ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);Ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(_t-=Br.transform.angle);const Lt=!Br.options.moving;return{u_matrix:Ye?Ye.posMatrix:Br.transform.calculatePosMatrix(ea.tileID.toUnwrapped(),Lt),u_image:0,u_latrange:bi(0,ea.tileID),u_light:[Ve.paint.get("hillshade-exaggeration"),_t],u_shadow:it,u_highlight:vt,u_accent:St}})(ze,ne,Te,pr?L:null),pr,Te.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments)}function Ml(ze,L,ne,Te,Se,Re){const ft=ze.context,xt=ft.gl,Dt=L.dem;if(Dt&&Dt.data){const er=Dt.dim,fr=Dt.stride,pr=Dt.getPixels();if(ft.activeTexture.set(xt.TEXTURE1),ft.pixelStoreUnpackPremultiplyAlpha.set(!1),L.demTexture=L.demTexture||ze.getTileTexture(fr),L.demTexture){const ea=L.demTexture;ea.update(pr,{premultiply:!1}),ea.bind(xt.NEAREST,xt.CLAMP_TO_EDGE)}else L.demTexture=new u(ft,pr,xt.RGBA,{premultiply:!1}),L.demTexture.bind(xt.NEAREST,xt.CLAMP_TO_EDGE);ft.activeTexture.set(xt.TEXTURE0);let Br=L.fbo;if(!Br){const ea=new u(ft,{width:er,height:er,data:null},xt.RGBA);ea.bind(xt.LINEAR,xt.CLAMP_TO_EDGE),Br=L.fbo=ft.createFramebuffer(er,er,!0,!1),Br.colorAttachment.set(ea.texture)}ft.bindFramebuffer.set(Br.framebuffer),ft.viewport.set([0,0,er,er]),ze.useProgram("hillshadePrepare").draw(ft,xt.TRIANGLES,Te,Se,Re,Bi.disabled,((ea,Ve)=>{const Ye=Ve.stride,it=t.H();return t.aP(it,0,t.X,-t.X,0,0,1),t.J(it,it,[0,-t.X,0]),{u_matrix:it,u_image:1,u_dimension:[Ye,Ye],u_zoom:ea.overscaledZ,u_unpack:Ve.getUnpackVector()}})(L.tileID,Dt),null,ne.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments),L.needsHillshadePrepare=!1}}function lc(ze,L,ne,Te,Se,Re){const ft=Te.paint.get("raster-fade-duration");if(!Re&&ft>0){const xt=o.now(),Dt=(xt-ze.timeAdded)/ft,er=L?(xt-L.timeAdded)/ft:-1,fr=ne.getSource(),pr=Se.coveringZoomLevel({tileSize:fr.tileSize,roundZoom:fr.roundZoom}),Br=!L||Math.abs(L.tileID.overscaledZ-pr)>Math.abs(ze.tileID.overscaledZ-pr),ea=Br&&ze.refreshedUponExpiration?1:t.ac(Br?Dt:1-er,0,1);return ze.refreshedUponExpiration&&Dt>=1&&(ze.refreshedUponExpiration=!1),L?{opacity:1,mix:1-ea}:{opacity:ea,mix:0}}return{opacity:1,mix:0}}const Wc=new t.aM(1,0,0,1),Ms=new t.aM(0,1,0,1),Lc=new t.aM(0,0,1,1),xf=new t.aM(1,0,1,1),Kc=new t.aM(0,1,1,1);function Ac(ze,L,ne,Te){tu(ze,0,L+ne/2,ze.transform.width,ne,Te)}function Jc(ze,L,ne,Te){tu(ze,L-ne/2,0,ne,ze.transform.height,Te)}function tu(ze,L,ne,Te,Se,Re){const ft=ze.context,xt=ft.gl;xt.enable(xt.SCISSOR_TEST),xt.scissor(L*ze.pixelRatio,ne*ze.pixelRatio,Te*ze.pixelRatio,Se*ze.pixelRatio),ft.clear({color:Re}),xt.disable(xt.SCISSOR_TEST)}function Qc(ze,L,ne){const Te=ze.context,Se=Te.gl,Re=ne.posMatrix,ft=ze.useProgram("debug"),xt=zo.disabled,Dt=is.disabled,er=ze.colorModeForRenderPass(),fr="$debug",pr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(ne);Te.activeTexture.set(Se.TEXTURE0);const Br=L.getTileByID(ne.key).latestRawTileData,ea=Math.floor((Br&&Br.byteLength||0)/1024),Ve=L.getTile(ne).tileSize,Ye=512/Math.min(Ve,512)*(ne.overscaledZ/ze.transform.zoom)*.5;let it=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(it+=` => ${ne.overscaledZ}`),function(vt,St){vt.initDebugOverlayCanvas();const _t=vt.debugOverlayCanvas,Lt=vt.context.gl,nr=vt.debugOverlayCanvas.getContext("2d");nr.clearRect(0,0,_t.width,_t.height),nr.shadowColor="white",nr.shadowBlur=2,nr.lineWidth=1.5,nr.strokeStyle="white",nr.textBaseline="top",nr.font="bold 36px Open Sans, sans-serif",nr.fillText(St,5,5),nr.strokeText(St,5,5),vt.debugOverlayTexture.update(_t),vt.debugOverlayTexture.bind(Lt.LINEAR,Lt.CLAMP_TO_EDGE)}(ze,`${it} ${ea}kB`),ft.draw(Te,Se.TRIANGLES,xt,Dt,Zs.alphaBlended,Bi.disabled,vi(Re,t.aM.transparent,Ye),null,fr,ze.debugBuffer,ze.quadTriangleIndexBuffer,ze.debugSegments),ft.draw(Te,Se.LINE_STRIP,xt,Dt,er,Bi.disabled,vi(Re,t.aM.red),pr,fr,ze.debugBuffer,ze.tileBorderIndexBuffer,ze.debugSegments)}function el(ze,L,ne){const Te=ze.context,Se=Te.gl,Re=ze.colorModeForRenderPass(),ft=new zo(Se.LEQUAL,zo.ReadWrite,ze.depthRangeFor3D),xt=ze.useProgram("terrain"),Dt=L.getTerrainMesh();Te.bindFramebuffer.set(null),Te.viewport.set([0,0,ze.width,ze.height]);for(const er of ne){const fr=ze.renderToTexture.getTexture(er),pr=L.getTerrainData(er.tileID);Te.activeTexture.set(Se.TEXTURE0),Se.bindTexture(Se.TEXTURE_2D,fr.texture);const Br=ze.transform.calculatePosMatrix(er.tileID.toUnwrapped()),ea=L.getMeshFrameDelta(ze.transform.zoom),Ve=ze.transform.calculateFogMatrix(er.tileID.toUnwrapped()),Ye=Ar(Br,ea,Ve,ze.style.sky,ze.transform.pitch);xt.draw(Te,Se.TRIANGLES,ft,is.disabled,Re,Bi.backCCW,Ye,pr,"terrain",Dt.vertexBuffer,Dt.indexBuffer,Dt.segments)}}class ru{constructor(L,ne,Te){this.vertexBuffer=L,this.indexBuffer=ne,this.segments=Te}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class tc{constructor(L,ne){this.context=new _f(L),this.transform=ne,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:t.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=kt.maxUnderzooming+kt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Or}resize(L,ne,Te){if(this.width=Math.floor(L*Te),this.height=Math.floor(ne*Te),this.pixelRatio=Te,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const Se of this.style._order)this.style._layers[Se].resize()}setup(){const L=this.context,ne=new t.aX;ne.emplaceBack(0,0),ne.emplaceBack(t.X,0),ne.emplaceBack(0,t.X),ne.emplaceBack(t.X,t.X),this.tileExtentBuffer=L.createVertexBuffer(ne,na.members),this.tileExtentSegments=t.a0.simpleSegment(0,0,4,2);const Te=new t.aX;Te.emplaceBack(0,0),Te.emplaceBack(t.X,0),Te.emplaceBack(0,t.X),Te.emplaceBack(t.X,t.X),this.debugBuffer=L.createVertexBuffer(Te,na.members),this.debugSegments=t.a0.simpleSegment(0,0,4,5);const Se=new t.$;Se.emplaceBack(0,0,0,0),Se.emplaceBack(t.X,0,t.X,0),Se.emplaceBack(0,t.X,0,t.X),Se.emplaceBack(t.X,t.X,t.X,t.X),this.rasterBoundsBuffer=L.createVertexBuffer(Se,je.members),this.rasterBoundsSegments=t.a0.simpleSegment(0,0,4,2);const Re=new t.aX;Re.emplaceBack(0,0),Re.emplaceBack(1,0),Re.emplaceBack(0,1),Re.emplaceBack(1,1),this.viewportBuffer=L.createVertexBuffer(Re,na.members),this.viewportSegments=t.a0.simpleSegment(0,0,4,2);const ft=new t.aZ;ft.emplaceBack(0),ft.emplaceBack(1),ft.emplaceBack(3),ft.emplaceBack(2),ft.emplaceBack(0),this.tileBorderIndexBuffer=L.createIndexBuffer(ft);const xt=new t.aY;xt.emplaceBack(0,1,2),xt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=L.createIndexBuffer(xt);const Dt=this.context.gl;this.stencilClearMode=new is({func:Dt.ALWAYS,mask:0},0,255,Dt.ZERO,Dt.ZERO,Dt.ZERO)}clearStencil(){const L=this.context,ne=L.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const Te=t.H();t.aP(Te,0,this.width,this.height,0,0,1),t.K(Te,Te,[ne.drawingBufferWidth,ne.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(L,ne.TRIANGLES,zo.disabled,this.stencilClearMode,Zs.disabled,Bi.disabled,Li(Te),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(L,ne){if(this.currentStencilSource===L.source||!L.isTileClipped()||!ne||!ne.length)return;this.currentStencilSource=L.source;const Te=this.context,Se=Te.gl;this.nextStencilID+ne.length>256&&this.clearStencil(),Te.setColorMode(Zs.disabled),Te.setDepthMode(zo.disabled);const Re=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const ft of ne){const xt=this._tileClippingMaskIDs[ft.key]=this.nextStencilID++,Dt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(ft);Re.draw(Te,Se.TRIANGLES,zo.disabled,new is({func:Se.ALWAYS,mask:0},xt,255,Se.KEEP,Se.KEEP,Se.REPLACE),Zs.disabled,Bi.disabled,Li(ft.posMatrix),Dt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const L=this.nextStencilID++,ne=this.context.gl;return new is({func:ne.NOTEQUAL,mask:255},L,255,ne.KEEP,ne.KEEP,ne.REPLACE)}stencilModeForClipping(L){const ne=this.context.gl;return new is({func:ne.EQUAL,mask:255},this._tileClippingMaskIDs[L.key],0,ne.KEEP,ne.KEEP,ne.REPLACE)}stencilConfigForOverlap(L){const ne=this.context.gl,Te=L.sort((ft,xt)=>xt.overscaledZ-ft.overscaledZ),Se=Te[Te.length-1].overscaledZ,Re=Te[0].overscaledZ-Se+1;if(Re>1){this.currentStencilSource=void 0,this.nextStencilID+Re>256&&this.clearStencil();const ft={};for(let xt=0;xt({u_sky_color:vt.properties.get("sky-color"),u_horizon_color:vt.properties.get("horizon-color"),u_horizon:(St.height/2+St.getHorizon())*_t,u_sky_horizon_blend:vt.properties.get("sky-horizon-blend")*St.height/2*_t}))(er,Dt.style.map.transform,Dt.pixelRatio),ea=new zo(pr.LEQUAL,zo.ReadWrite,[0,1]),Ve=is.disabled,Ye=Dt.colorModeForRenderPass(),it=Dt.useProgram("sky");if(!er.mesh){const vt=new t.aX;vt.emplaceBack(-1,-1),vt.emplaceBack(1,-1),vt.emplaceBack(1,1),vt.emplaceBack(-1,1);const St=new t.aY;St.emplaceBack(0,1,2),St.emplaceBack(0,2,3),er.mesh=new ru(fr.createVertexBuffer(vt,na.members),fr.createIndexBuffer(St),t.a0.simpleSegment(0,0,vt.length,St.length))}it.draw(fr,pr.TRIANGLES,ea,Ve,Ye,Bi.disabled,Br,void 0,"sky",er.mesh.vertexBuffer,er.mesh.indexBuffer,er.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=ne.showOverdrawInspector,this.depthRangeFor3D=[0,1-(L._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Te.length-1;this.currentLayer>=0;this.currentLayer--){const Dt=this.style._layers[Te[this.currentLayer]],er=Se[Dt.source],fr=Re[Dt.source];this._renderTileClippingMasks(Dt,fr),this.renderLayer(this,er,Dt,fr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerit.source&&!it.isHidden(fr)?[er.sourceCaches[it.source]]:[]),ea=Br.filter(it=>it.getSource().type==="vector"),Ve=Br.filter(it=>it.getSource().type!=="vector"),Ye=it=>{(!pr||pr.getSource().maxzoomYe(it)),pr||Ve.forEach(it=>Ye(it)),pr}(this.style,this.transform.zoom);Dt&&function(er,fr,pr){for(let Br=0;Br0),Se&&(t.b0(ne,Te),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(Re,ft){const xt=Re.context,Dt=xt.gl,er=Zs.unblended,fr=new zo(Dt.LEQUAL,zo.ReadWrite,[0,1]),pr=ft.getTerrainMesh(),Br=ft.sourceCache.getRenderableTiles(),ea=Re.useProgram("terrainDepth");xt.bindFramebuffer.set(ft.getFramebuffer("depth").framebuffer),xt.viewport.set([0,0,Re.width/devicePixelRatio,Re.height/devicePixelRatio]),xt.clear({color:t.aM.transparent,depth:1});for(const Ve of Br){const Ye=ft.getTerrainData(Ve.tileID),it={u_matrix:Re.transform.calculatePosMatrix(Ve.tileID.toUnwrapped()),u_ele_delta:ft.getMeshFrameDelta(Re.transform.zoom)};ea.draw(xt,Dt.TRIANGLES,fr,is.disabled,er,Bi.backCCW,it,Ye,"terrain",pr.vertexBuffer,pr.indexBuffer,pr.segments)}xt.bindFramebuffer.set(null),xt.viewport.set([0,0,Re.width,Re.height])}(this,this.style.map.terrain),function(Re,ft){const xt=Re.context,Dt=xt.gl,er=Zs.unblended,fr=new zo(Dt.LEQUAL,zo.ReadWrite,[0,1]),pr=ft.getTerrainMesh(),Br=ft.getCoordsTexture(),ea=ft.sourceCache.getRenderableTiles(),Ve=Re.useProgram("terrainCoords");xt.bindFramebuffer.set(ft.getFramebuffer("coords").framebuffer),xt.viewport.set([0,0,Re.width/devicePixelRatio,Re.height/devicePixelRatio]),xt.clear({color:t.aM.transparent,depth:1}),ft.coordsIndex=[];for(const Ye of ea){const it=ft.getTerrainData(Ye.tileID);xt.activeTexture.set(Dt.TEXTURE0),Dt.bindTexture(Dt.TEXTURE_2D,Br.texture);const vt={u_matrix:Re.transform.calculatePosMatrix(Ye.tileID.toUnwrapped()),u_terrain_coords_id:(255-ft.coordsIndex.length)/255,u_texture:0,u_ele_delta:ft.getMeshFrameDelta(Re.transform.zoom)};Ve.draw(xt,Dt.TRIANGLES,fr,is.disabled,er,Bi.backCCW,vt,it,"terrain",pr.vertexBuffer,pr.indexBuffer,pr.segments),ft.coordsIndex.push(Ye.tileID.key)}xt.bindFramebuffer.set(null),xt.viewport.set([0,0,Re.width,Re.height])}(this,this.style.map.terrain))}renderLayer(L,ne,Te,Se){if(!Te.isHidden(this.transform.zoom)&&(Te.type==="background"||Te.type==="custom"||(Se||[]).length))switch(this.id=Te.id,Te.type){case"symbol":(function(Re,ft,xt,Dt,er){if(Re.renderPass!=="translucent")return;const fr=is.disabled,pr=Re.colorModeForRenderPass();(xt._unevaluatedLayout.hasValue("text-variable-anchor")||xt._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(Br,ea,Ve,Ye,it,vt,St,_t,Lt){const nr=ea.transform,cr=an(),gr=it==="map",Cr=vt==="map";for(const Wr of Br){const ua=Ye.getTile(Wr),va=ua.getBucket(Ve);if(!va||!va.text||!va.text.segments.get().length)continue;const Ma=t.ag(va.textSizeData,nr.zoom),en=Ia(ua,1,ea.transform.zoom),Pn=dr(Wr.posMatrix,Cr,gr,ea.transform,en),Tn=Ve.layout.get("icon-text-fit")!=="none"&&va.hasIconData();if(Ma){const In=Math.pow(2,nr.zoom-ua.tileID.overscaledZ),oi=ea.style.map.terrain?(_i,Ki)=>ea.style.map.terrain.getElevation(Wr,_i,Ki):null,Si=cr.translatePosition(nr,ua,St,_t);wc(va,gr,Cr,Lt,nr,Pn,Wr.posMatrix,In,Ma,Tn,cr,Si,Wr.toUnwrapped(),oi)}}}(Dt,Re,xt,ft,xt.layout.get("text-rotation-alignment"),xt.layout.get("text-pitch-alignment"),xt.paint.get("text-translate"),xt.paint.get("text-translate-anchor"),er),xt.paint.get("icon-opacity").constantOr(1)!==0&&hf(Re,ft,xt,Dt,!1,xt.paint.get("icon-translate"),xt.paint.get("icon-translate-anchor"),xt.layout.get("icon-rotation-alignment"),xt.layout.get("icon-pitch-alignment"),xt.layout.get("icon-keep-upright"),fr,pr),xt.paint.get("text-opacity").constantOr(1)!==0&&hf(Re,ft,xt,Dt,!0,xt.paint.get("text-translate"),xt.paint.get("text-translate-anchor"),xt.layout.get("text-rotation-alignment"),xt.layout.get("text-pitch-alignment"),xt.layout.get("text-keep-upright"),fr,pr),ft.map.showCollisionBoxes&&(xu(Re,ft,xt,Dt,!0),xu(Re,ft,xt,Dt,!1))})(L,ne,Te,Se,this.style.placement.variableOffsets);break;case"circle":(function(Re,ft,xt,Dt){if(Re.renderPass!=="translucent")return;const er=xt.paint.get("circle-opacity"),fr=xt.paint.get("circle-stroke-width"),pr=xt.paint.get("circle-stroke-opacity"),Br=!xt.layout.get("circle-sort-key").isConstant();if(er.constantOr(1)===0&&(fr.constantOr(1)===0||pr.constantOr(1)===0))return;const ea=Re.context,Ve=ea.gl,Ye=Re.depthModeForSublayer(0,zo.ReadOnly),it=is.disabled,vt=Re.colorModeForRenderPass(),St=[];for(let _t=0;_t_t.sortKey-Lt.sortKey);for(const _t of St){const{programConfiguration:Lt,program:nr,layoutVertexBuffer:cr,indexBuffer:gr,uniformValues:Cr,terrainData:Wr}=_t.state;nr.draw(ea,Ve.TRIANGLES,Ye,it,vt,Bi.disabled,Cr,Wr,xt.id,cr,gr,_t.segments,xt.paint,Re.transform.zoom,Lt)}})(L,ne,Te,Se);break;case"heatmap":(function(Re,ft,xt,Dt){if(xt.paint.get("heatmap-opacity")===0)return;const er=Re.context;if(Re.style.map.terrain){for(const fr of Dt){const pr=ft.getTile(fr);ft.hasRenderableParent(fr)||(Re.renderPass==="offscreen"?Tc(Re,pr,xt,fr):Re.renderPass==="translucent"&&ec(Re,xt,fr))}er.viewport.set([0,0,Re.width,Re.height])}else Re.renderPass==="offscreen"?function(fr,pr,Br,ea){const Ve=fr.context,Ye=Ve.gl,it=is.disabled,vt=new Zs([Ye.ONE,Ye.ONE],t.aM.transparent,[!0,!0,!0,!0]);(function(St,_t,Lt){const nr=St.gl;St.activeTexture.set(nr.TEXTURE1),St.viewport.set([0,0,_t.width/4,_t.height/4]);let cr=Lt.heatmapFbos.get(t.aU);cr?(nr.bindTexture(nr.TEXTURE_2D,cr.colorAttachment.get()),St.bindFramebuffer.set(cr.framebuffer)):(cr=Gc(St,_t.width/4,_t.height/4),Lt.heatmapFbos.set(t.aU,cr))})(Ve,fr,Br),Ve.clear({color:t.aM.transparent});for(let St=0;St20&&fr.texParameterf(fr.TEXTURE_2D,er.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,er.extTextureFilterAnisotropicMax);const va=Re.style.map.terrain&&Re.style.map.terrain.getTerrainData(St),Ma=va?St:null,en=Ma?Ma.posMatrix:Re.transform.calculatePosMatrix(St.toUnwrapped(),vt),Pn=xo(en,Wr||[0,0],Cr||1,gr,xt);pr instanceof at?Br.draw(er,fr.TRIANGLES,_t,is.disabled,ea,Bi.disabled,Pn,va,xt.id,pr.boundsBuffer,Re.quadTriangleIndexBuffer,pr.boundsSegments):Br.draw(er,fr.TRIANGLES,_t,Ve[St.overscaledZ],ea,Bi.disabled,Pn,va,xt.id,Re.rasterBoundsBuffer,Re.quadTriangleIndexBuffer,Re.rasterBoundsSegments)}})(L,ne,Te,Se);break;case"background":(function(Re,ft,xt,Dt){const er=xt.paint.get("background-color"),fr=xt.paint.get("background-opacity");if(fr===0)return;const pr=Re.context,Br=pr.gl,ea=Re.transform,Ve=ea.tileSize,Ye=xt.paint.get("background-pattern");if(Re.isPatternMissing(Ye))return;const it=!Ye&&er.a===1&&fr===1&&Re.opaquePassEnabledForLayer()?"opaque":"translucent";if(Re.renderPass!==it)return;const vt=is.disabled,St=Re.depthModeForSublayer(0,it==="opaque"?zo.ReadWrite:zo.ReadOnly),_t=Re.colorModeForRenderPass(),Lt=Re.useProgram(Ye?"backgroundPattern":"background"),nr=Dt||ea.coveringTiles({tileSize:Ve,terrain:Re.style.map.terrain});Ye&&(pr.activeTexture.set(Br.TEXTURE0),Re.imageManager.bind(Re.context));const cr=xt.getCrossfadeParameters();for(const gr of nr){const Cr=Dt?gr.posMatrix:Re.transform.calculatePosMatrix(gr.toUnwrapped()),Wr=Ye?ks(Cr,fr,Re,Ye,{tileID:gr,tileSize:Ve},cr):cs(Cr,fr,er),ua=Re.style.map.terrain&&Re.style.map.terrain.getTerrainData(gr);Lt.draw(pr,Br.TRIANGLES,St,vt,_t,Bi.disabled,Wr,ua,xt.id,Re.tileExtentBuffer,Re.quadTriangleIndexBuffer,Re.tileExtentSegments)}})(L,0,Te,Se);break;case"custom":(function(Re,ft,xt){const Dt=Re.context,er=xt.implementation;if(Re.renderPass==="offscreen"){const fr=er.prerender;fr&&(Re.setCustomLayerDefaults(),Dt.setColorMode(Re.colorModeForRenderPass()),fr.call(er,Dt.gl,Re.transform.customLayerMatrix()),Dt.setDirty(),Re.setBaseState())}else if(Re.renderPass==="translucent"){Re.setCustomLayerDefaults(),Dt.setColorMode(Re.colorModeForRenderPass()),Dt.setStencilMode(is.disabled);const fr=er.renderingMode==="3d"?new zo(Re.context.gl.LEQUAL,zo.ReadWrite,Re.depthRangeFor3D):Re.depthModeForSublayer(0,zo.ReadOnly);Dt.setDepthMode(fr),er.render(Dt.gl,Re.transform.customLayerMatrix(),{farZ:Re.transform.farZ,nearZ:Re.transform.nearZ,fov:Re.transform._fov,modelViewProjectionMatrix:Re.transform.modelViewProjectionMatrix,projectionMatrix:Re.transform.projectionMatrix}),Dt.setDirty(),Re.setBaseState(),Dt.bindFramebuffer.set(null)}})(L,0,Te)}}translatePosMatrix(L,ne,Te,Se,Re){if(!Te[0]&&!Te[1])return L;const ft=Re?Se==="map"?this.transform.angle:0:Se==="viewport"?-this.transform.angle:0;if(ft){const er=Math.sin(ft),fr=Math.cos(ft);Te=[Te[0]*fr-Te[1]*er,Te[0]*er+Te[1]*fr]}const xt=[Re?Te[0]:Ia(ne,Te[0],this.transform.zoom),Re?Te[1]:Ia(ne,Te[1],this.transform.zoom),0],Dt=new Float32Array(16);return t.J(Dt,L,xt),Dt}saveTileTexture(L){const ne=this._tileTextures[L.size[0]];ne?ne.push(L):this._tileTextures[L.size[0]]=[L]}getTileTexture(L){const ne=this._tileTextures[L];return ne&&ne.length>0?ne.pop():null}isPatternMissing(L){if(!L)return!1;if(!L.from||!L.to)return!0;const ne=this.imageManager.getPattern(L.from.toString()),Te=this.imageManager.getPattern(L.to.toString());return!ne||!Te}useProgram(L,ne){this.cache=this.cache||{};const Te=L+(ne?ne.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Te]||(this.cache[Te]=new ga(this.context,ta[L],ne,ms[L],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Te]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const L=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(L.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new u(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:L,drawingBufferHeight:ne}=this.context.gl;return this.width!==L||this.height!==ne}}class Bs{constructor(L,ne){this.points=L,this.planes=ne}static fromInvProjectionMatrix(L,ne,Te){const Se=Math.pow(2,Te),Re=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(xt=>{const Dt=1/(xt=t.af([],xt,L))[3]/ne*Se;return t.b1(xt,xt,[Dt,Dt,1/xt[3],Dt])}),ft=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(xt=>{const Dt=function(Br,ea){var Ve=ea[0],Ye=ea[1],it=ea[2],vt=Ve*Ve+Ye*Ye+it*it;return vt>0&&(vt=1/Math.sqrt(vt)),Br[0]=ea[0]*vt,Br[1]=ea[1]*vt,Br[2]=ea[2]*vt,Br}([],function(Br,ea,Ve){var Ye=ea[0],it=ea[1],vt=ea[2],St=Ve[0],_t=Ve[1],Lt=Ve[2];return Br[0]=it*Lt-vt*_t,Br[1]=vt*St-Ye*Lt,Br[2]=Ye*_t-it*St,Br}([],M([],Re[xt[0]],Re[xt[1]]),M([],Re[xt[2]],Re[xt[1]]))),er=-((fr=Dt)[0]*(pr=Re[xt[1]])[0]+fr[1]*pr[1]+fr[2]*pr[2]);var fr,pr;return Dt.concat(er)});return new Bs(Re,ft)}}class Hu{constructor(L,ne){this.min=L,this.max=ne,this.center=function(Te,Se,Re){return Te[0]=.5*Se[0],Te[1]=.5*Se[1],Te[2]=.5*Se[2],Te}([],function(Te,Se,Re){return Te[0]=Se[0]+Re[0],Te[1]=Se[1]+Re[1],Te[2]=Se[2]+Re[2],Te}([],this.min,this.max))}quadrant(L){const ne=[L%2==0,L<2],Te=w(this.min),Se=w(this.max);for(let Re=0;Re=0&&ft++;if(ft===0)return 0;ft!==ne.length&&(Te=!1)}if(Te)return 2;for(let Se=0;Se<3;Se++){let Re=Number.MAX_VALUE,ft=-Number.MAX_VALUE;for(let xt=0;xtthis.max[Se]-this.min[Se])return 0}return 1}}class Gl{constructor(L=0,ne=0,Te=0,Se=0){if(isNaN(L)||L<0||isNaN(ne)||ne<0||isNaN(Te)||Te<0||isNaN(Se)||Se<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=L,this.bottom=ne,this.left=Te,this.right=Se}interpolate(L,ne,Te){return ne.top!=null&&L.top!=null&&(this.top=t.y.number(L.top,ne.top,Te)),ne.bottom!=null&&L.bottom!=null&&(this.bottom=t.y.number(L.bottom,ne.bottom,Te)),ne.left!=null&&L.left!=null&&(this.left=t.y.number(L.left,ne.left,Te)),ne.right!=null&&L.right!=null&&(this.right=t.y.number(L.right,ne.right,Te)),this}getCenter(L,ne){const Te=t.ac((this.left+L-this.right)/2,0,L),Se=t.ac((this.top+ne-this.bottom)/2,0,ne);return new t.P(Te,Se)}equals(L){return this.top===L.top&&this.bottom===L.bottom&&this.left===L.left&&this.right===L.right}clone(){return new Gl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const au=85.051129;class Ys{constructor(L,ne,Te,Se,Re){this.tileSize=512,this._renderWorldCopies=Re===void 0||!!Re,this._minZoom=L||0,this._maxZoom=ne||22,this._minPitch=Te??0,this._maxPitch=Se??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Gl,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){const L=new Ys(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return L.apply(this),L}apply(L){this.tileSize=L.tileSize,this.latRange=L.latRange,this.lngRange=L.lngRange,this.width=L.width,this.height=L.height,this._center=L._center,this._elevation=L._elevation,this.minElevationForCurrentTile=L.minElevationForCurrentTile,this.zoom=L.zoom,this.angle=L.angle,this._fov=L._fov,this._pitch=L._pitch,this._unmodified=L._unmodified,this._edgeInsets=L._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(L){this._minZoom!==L&&(this._minZoom=L,this.zoom=Math.max(this.zoom,L))}get maxZoom(){return this._maxZoom}set maxZoom(L){this._maxZoom!==L&&(this._maxZoom=L,this.zoom=Math.min(this.zoom,L))}get minPitch(){return this._minPitch}set minPitch(L){this._minPitch!==L&&(this._minPitch=L,this.pitch=Math.max(this.pitch,L))}get maxPitch(){return this._maxPitch}set maxPitch(L){this._maxPitch!==L&&(this._maxPitch=L,this.pitch=Math.min(this.pitch,L))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(L){L===void 0?L=!0:L===null&&(L=!1),this._renderWorldCopies=L}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(L){const ne=-t.b3(L,-180,180)*Math.PI/180;this.angle!==ne&&(this._unmodified=!1,this.angle=ne,this._calcMatrices(),this.rotationMatrix=function(){var Te=new t.A(4);return t.A!=Float32Array&&(Te[1]=0,Te[2]=0),Te[0]=1,Te[3]=1,Te}(),function(Te,Se,Re){var ft=Se[0],xt=Se[1],Dt=Se[2],er=Se[3],fr=Math.sin(Re),pr=Math.cos(Re);Te[0]=ft*pr+Dt*fr,Te[1]=xt*pr+er*fr,Te[2]=ft*-fr+Dt*pr,Te[3]=xt*-fr+er*pr}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(L){const ne=t.ac(L,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==ne&&(this._unmodified=!1,this._pitch=ne,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(L){L=Math.max(.01,Math.min(60,L)),this._fov!==L&&(this._unmodified=!1,this._fov=L/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(L){const ne=Math.min(Math.max(L,this.minZoom),this.maxZoom);this._zoom!==ne&&(this._unmodified=!1,this._zoom=ne,this.tileZoom=Math.max(0,Math.floor(ne)),this.scale=this.zoomScale(ne),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(L){L.lat===this._center.lat&&L.lng===this._center.lng||(this._unmodified=!1,this._center=L,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(L){L!==this._elevation&&(this._elevation=L,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(L){this._edgeInsets.equals(L)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,L,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(L){return this._edgeInsets.equals(L)}interpolatePadding(L,ne,Te){this._unmodified=!1,this._edgeInsets.interpolate(L,ne,Te),this._constrain(),this._calcMatrices()}coveringZoomLevel(L){const ne=(L.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/L.tileSize));return Math.max(0,ne)}getVisibleUnwrappedCoordinates(L){const ne=[new t.b4(0,L)];if(this._renderWorldCopies){const Te=this.pointCoordinate(new t.P(0,0)),Se=this.pointCoordinate(new t.P(this.width,0)),Re=this.pointCoordinate(new t.P(this.width,this.height)),ft=this.pointCoordinate(new t.P(0,this.height)),xt=Math.floor(Math.min(Te.x,Se.x,Re.x,ft.x)),Dt=Math.floor(Math.max(Te.x,Se.x,Re.x,ft.x)),er=1;for(let fr=xt-er;fr<=Dt+er;fr++)fr!==0&&ne.push(new t.b4(fr,L))}return ne}coveringTiles(L){var ne,Te;let Se=this.coveringZoomLevel(L);const Re=Se;if(L.minzoom!==void 0&&SeL.maxzoom&&(Se=L.maxzoom);const ft=this.pointCoordinate(this.getCameraPoint()),xt=t.Z.fromLngLat(this.center),Dt=Math.pow(2,Se),er=[Dt*ft.x,Dt*ft.y,0],fr=[Dt*xt.x,Dt*xt.y,0],pr=Bs.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,Se);let Br=L.minzoom||0;!L.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Br=Se);const ea=L.terrain?2/Math.min(this.tileSize,L.tileSize)*this.tileSize:3,Ve=_t=>({aabb:new Hu([_t*Dt,0,0],[(_t+1)*Dt,Dt,0]),zoom:0,x:0,y:0,wrap:_t,fullyVisible:!1}),Ye=[],it=[],vt=Se,St=L.reparseOverscaled?Re:Se;if(this._renderWorldCopies)for(let _t=1;_t<=3;_t++)Ye.push(Ve(-_t)),Ye.push(Ve(_t));for(Ye.push(Ve(0));Ye.length>0;){const _t=Ye.pop(),Lt=_t.x,nr=_t.y;let cr=_t.fullyVisible;if(!cr){const va=_t.aabb.intersects(pr);if(va===0)continue;cr=va===2}const gr=L.terrain?er:fr,Cr=_t.aabb.distanceX(gr),Wr=_t.aabb.distanceY(gr),ua=Math.max(Math.abs(Cr),Math.abs(Wr));if(_t.zoom===vt||ua>ea+(1<=Br){const va=vt-_t.zoom,Ma=er[0]-.5-(Lt<>1),Pn=_t.zoom+1;let Tn=_t.aabb.quadrant(va);if(L.terrain){const In=new t.S(Pn,_t.wrap,Pn,Ma,en),oi=L.terrain.getMinMaxElevation(In),Si=(ne=oi.minElevation)!==null&&ne!==void 0?ne:this.elevation,_i=(Te=oi.maxElevation)!==null&&Te!==void 0?Te:this.elevation;Tn=new Hu([Tn.min[0],Tn.min[1],Si],[Tn.max[0],Tn.max[1],_i])}Ye.push({aabb:Tn,zoom:Pn,x:Ma,y:en,wrap:_t.wrap,fullyVisible:cr})}}return it.sort((_t,Lt)=>_t.distanceSq-Lt.distanceSq).map(_t=>_t.tileID)}resize(L,ne){this.width=L,this.height=ne,this.pixelsToGLUnits=[2/L,-2/ne],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(L){return Math.pow(2,L)}scaleZoom(L){return Math.log(L)/Math.LN2}project(L){const ne=t.ac(L.lat,-85.051129,au);return new t.P(t.O(L.lng)*this.worldSize,t.Q(ne)*this.worldSize)}unproject(L){return new t.Z(L.x/this.worldSize,L.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(L){const ne=this.elevation,Te=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,Se=this.pointLocation(this.centerPoint,L),Re=L.getElevationForLngLatZoom(Se,this.tileZoom);if(!(this.elevation-Re))return;const ft=Te+ne-Re,xt=Math.cos(this._pitch)*this.cameraToCenterDistance/ft/t.b5(1,Se.lat),Dt=this.scaleZoom(xt/this.tileSize);this._elevation=Re,this._center=Se,this.zoom=Dt}setLocationAtPoint(L,ne){const Te=this.pointCoordinate(ne),Se=this.pointCoordinate(this.centerPoint),Re=this.locationCoordinate(L),ft=new t.Z(Re.x-(Te.x-Se.x),Re.y-(Te.y-Se.y));this.center=this.coordinateLocation(ft),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(L,ne){return ne?this.coordinatePoint(this.locationCoordinate(L),ne.getElevationForLngLatZoom(L,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(L))}pointLocation(L,ne){return this.coordinateLocation(this.pointCoordinate(L,ne))}locationCoordinate(L){return t.Z.fromLngLat(L)}coordinateLocation(L){return L&&L.toLngLat()}pointCoordinate(L,ne){if(ne){const Br=ne.pointCoordinate(L);if(Br!=null)return Br}const Te=[L.x,L.y,0,1],Se=[L.x,L.y,1,1];t.af(Te,Te,this.pixelMatrixInverse),t.af(Se,Se,this.pixelMatrixInverse);const Re=Te[3],ft=Se[3],xt=Te[1]/Re,Dt=Se[1]/ft,er=Te[2]/Re,fr=Se[2]/ft,pr=er===fr?0:(0-er)/(fr-er);return new t.Z(t.y.number(Te[0]/Re,Se[0]/ft,pr)/this.worldSize,t.y.number(xt,Dt,pr)/this.worldSize)}coordinatePoint(L,ne=0,Te=this.pixelMatrix){const Se=[L.x*this.worldSize,L.y*this.worldSize,ne,1];return t.af(Se,Se,Te),new t.P(Se[0]/Se[3],Se[1]/Se[3])}getBounds(){const L=Math.max(0,this.height/2-this.getHorizon());return new ae().extend(this.pointLocation(new t.P(0,L))).extend(this.pointLocation(new t.P(this.width,L))).extend(this.pointLocation(new t.P(this.width,this.height))).extend(this.pointLocation(new t.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ae([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(L){L?(this.lngRange=[L.getWest(),L.getEast()],this.latRange=[L.getSouth(),L.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,au])}calculateTileMatrix(L){const ne=L.canonical,Te=this.worldSize/this.zoomScale(ne.z),Se=ne.x+Math.pow(2,ne.z)*L.wrap,Re=t.an(new Float64Array(16));return t.J(Re,Re,[Se*Te,ne.y*Te,0]),t.K(Re,Re,[Te/t.X,Te/t.X,1]),Re}calculatePosMatrix(L,ne=!1){const Te=L.key,Se=ne?this._alignedPosMatrixCache:this._posMatrixCache;if(Se[Te])return Se[Te];const Re=this.calculateTileMatrix(L);return t.L(Re,ne?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,Re),Se[Te]=new Float32Array(Re),Se[Te]}calculateFogMatrix(L){const ne=L.key,Te=this._fogMatrixCache;if(Te[ne])return Te[ne];const Se=this.calculateTileMatrix(L);return t.L(Se,this.fogMatrix,Se),Te[ne]=new Float32Array(Se),Te[ne]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(L,ne){ne=t.ac(+ne,this.minZoom,this.maxZoom);const Te={center:new t.N(L.lng,L.lat),zoom:ne};let Se=this.lngRange;if(!this._renderWorldCopies&&Se===null){const _t=179.9999999999;Se=[-_t,_t]}const Re=this.tileSize*this.zoomScale(Te.zoom);let ft=0,xt=Re,Dt=0,er=Re,fr=0,pr=0;const{x:Br,y:ea}=this.size;if(this.latRange){const _t=this.latRange;ft=t.Q(_t[1])*Re,xt=t.Q(_t[0])*Re,xt-ftxt&&(vt=xt-_t)}if(Se){const _t=(Dt+er)/2;let Lt=Ve;this._renderWorldCopies&&(Lt=t.b3(Ve,_t-Re/2,_t+Re/2));const nr=Br/2;Lt-nrer&&(it=er-nr)}if(it!==void 0||vt!==void 0){const _t=new t.P(it??Ve,vt??Ye);Te.center=this.unproject.call({worldSize:Re},_t).wrap()}return Te}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const L=this._unmodified,{center:ne,zoom:Te}=this.getConstrained(this.center,this.zoom);this.center=ne,this.zoom=Te,this._unmodified=L,this._constraining=!1}_calcMatrices(){if(!this.height)return;const L=this.centerOffset,ne=this.point.x,Te=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=t.b5(1,this.center.lat)*this.worldSize;let Se=t.an(new Float64Array(16));t.K(Se,Se,[this.width/2,-this.height/2,1]),t.J(Se,Se,[1,-1,0]),this.labelPlaneMatrix=Se,Se=t.an(new Float64Array(16)),t.K(Se,Se,[1,-1,1]),t.J(Se,Se,[-1,-1,0]),t.K(Se,Se,[2/this.width,2/this.height,1]),this.glCoordMatrix=Se;const Re=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),ft=Math.min(this.elevation,this.minElevationForCurrentTile),xt=Re-ft*this._pixelPerMeter/Math.cos(this._pitch),Dt=ft<0?xt:Re,er=Math.PI/2+this._pitch,fr=this._fov*(.5+L.y/this.height),pr=Math.sin(fr)*Dt/Math.sin(t.ac(Math.PI-er-fr,.01,Math.PI-.01)),Br=this.getHorizon(),ea=2*Math.atan(Br/this.cameraToCenterDistance)*(.5+L.y/(2*Br)),Ve=Math.sin(ea)*Dt/Math.sin(t.ac(Math.PI-er-ea,.01,Math.PI-.01)),Ye=Math.min(pr,Ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Ye+Dt),this.nearZ=this.height/50,Se=new Float64Array(16),t.b6(Se,this._fov,this.width/this.height,this.nearZ,this.farZ),Se[8]=2*-L.x/this.width,Se[9]=2*L.y/this.height,this.projectionMatrix=t.ae(Se),t.K(Se,Se,[1,-1,1]),t.J(Se,Se,[0,0,-this.cameraToCenterDistance]),t.b7(Se,Se,this._pitch),t.ad(Se,Se,this.angle),t.J(Se,Se,[-ne,-Te,0]),this.mercatorMatrix=t.K([],Se,[this.worldSize,this.worldSize,this.worldSize]),t.K(Se,Se,[1,1,this._pixelPerMeter]),this.pixelMatrix=t.L(new Float64Array(16),this.labelPlaneMatrix,Se),t.J(Se,Se,[0,0,-this.elevation]),this.modelViewProjectionMatrix=Se,this.invModelViewProjectionMatrix=t.as([],Se),this.fogMatrix=new Float64Array(16),t.b6(this.fogMatrix,this._fov,this.width/this.height,Re,this.farZ),this.fogMatrix[8]=2*-L.x/this.width,this.fogMatrix[9]=2*L.y/this.height,t.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),t.b7(this.fogMatrix,this.fogMatrix,this._pitch),t.ad(this.fogMatrix,this.fogMatrix,this.angle),t.J(this.fogMatrix,this.fogMatrix,[-ne,-Te,0]),t.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=t.L(new Float64Array(16),this.labelPlaneMatrix,Se);const it=this.width%2/2,vt=this.height%2/2,St=Math.cos(this.angle),_t=Math.sin(this.angle),Lt=ne-Math.round(ne)+St*it+_t*vt,nr=Te-Math.round(Te)+St*vt+_t*it,cr=new Float64Array(Se);if(t.J(cr,cr,[Lt>.5?Lt-1:Lt,nr>.5?nr-1:nr,0]),this.alignedModelViewProjectionMatrix=cr,Se=t.as(new Float64Array(16),this.pixelMatrix),!Se)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Se,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const L=this.pointCoordinate(new t.P(0,0)),ne=[L.x*this.worldSize,L.y*this.worldSize,0,1];return t.af(ne,ne,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const L=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.P(0,L))}getCameraQueryGeometry(L){const ne=this.getCameraPoint();if(L.length===1)return[L[0],ne];{let Te=ne.x,Se=ne.y,Re=ne.x,ft=ne.y;for(const xt of L)Te=Math.min(Te,xt.x),Se=Math.min(Se,xt.y),Re=Math.max(Re,xt.x),ft=Math.max(ft,xt.y);return[new t.P(Te,Se),new t.P(Re,Se),new t.P(Re,ft),new t.P(Te,ft),new t.P(Te,Se)]}}lngLatToCameraDepth(L,ne){const Te=this.locationCoordinate(L),Se=[Te.x*this.worldSize,Te.y*this.worldSize,ne,1];return t.af(Se,Se,this.modelViewProjectionMatrix),Se[2]/Se[3]}}function vc(ze,L){let ne,Te=!1,Se=null,Re=null;const ft=()=>{Se=null,Te&&(ze.apply(Re,ne),Se=setTimeout(ft,L),Te=!1)};return(...xt)=>(Te=!0,Re=this,ne=xt,Se||ft(),Se)}class Pu{constructor(L){this._getCurrentHash=()=>{const ne=window.location.hash.replace("#","");if(this._hashName){let Te;return ne.split("&").map(Se=>Se.split("=")).forEach(Se=>{Se[0]===this._hashName&&(Te=Se)}),(Te&&Te[1]||"").split("/")}return ne.split("/")},this._onHashChange=()=>{const ne=this._getCurrentHash();if(ne.length>=3&&!ne.some(Te=>isNaN(Te))){const Te=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(ne[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+ne[2],+ne[1]],zoom:+ne[0],bearing:Te,pitch:+(ne[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const ne=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,ne)},this._removeHash=()=>{const ne=this._getCurrentHash();if(ne.length===0)return;const Te=ne.join("/");let Se=Te;Se.split("&").length>0&&(Se=Se.split("&")[0]),this._hashName&&(Se=`${this._hashName}=${Te}`);let Re=window.location.hash.replace(Se,"");Re.startsWith("#&")?Re=Re.slice(0,1)+Re.slice(2):Re==="#"&&(Re="");let ft=window.location.href.replace(/(#.+)?$/,Re);ft=ft.replace("&&","&"),window.history.replaceState(window.history.state,null,ft)},this._updateHash=vc(this._updateHashUnthrottled,300),this._hashName=L&&encodeURIComponent(L)}addTo(L){return this._map=L,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(L){const ne=this._map.getCenter(),Te=Math.round(100*this._map.getZoom())/100,Se=Math.ceil((Te*Math.LN2+Math.log(512/360/.5))/Math.LN10),Re=Math.pow(10,Se),ft=Math.round(ne.lng*Re)/Re,xt=Math.round(ne.lat*Re)/Re,Dt=this._map.getBearing(),er=this._map.getPitch();let fr="";if(fr+=L?`/${ft}/${xt}/${Te}`:`${Te}/${xt}/${ft}`,(Dt||er)&&(fr+="/"+Math.round(10*Dt)/10),er&&(fr+=`/${Math.round(er)}`),this._hashName){const pr=this._hashName;let Br=!1;const ea=window.location.hash.slice(1).split("&").map(Ve=>{const Ye=Ve.split("=")[0];return Ye===pr?(Br=!0,`${Ye}=${fr}`):Ve}).filter(Ve=>Ve);return Br||ea.push(`${pr}=${fr}`),`#${ea.join("&")}`}return`#${fr}`}}const rc={linearity:.3,easing:t.b8(0,0,.3,1)},Pc=t.e({deceleration:2500,maxSpeed:1400},rc),bf=t.e({deceleration:20,maxSpeed:1400},rc),Vf=t.e({deceleration:1e3,maxSpeed:360},rc),dc=t.e({deceleration:1e3,maxSpeed:90},rc);class Ic{constructor(L){this._map=L,this.clear()}clear(){this._inertiaBuffer=[]}record(L){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:o.now(),settings:L})}_drainInertiaBuffer(){const L=this._inertiaBuffer,ne=o.now();for(;L.length>0&&ne-L[0].time>160;)L.shift()}_onMoveEnd(L){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const ne={zoom:0,bearing:0,pitch:0,pan:new t.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:Re}of this._inertiaBuffer)ne.zoom+=Re.zoomDelta||0,ne.bearing+=Re.bearingDelta||0,ne.pitch+=Re.pitchDelta||0,Re.panDelta&&ne.pan._add(Re.panDelta),Re.around&&(ne.around=Re.around),Re.pinchAround&&(ne.pinchAround=Re.pinchAround);const Te=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,Se={};if(ne.pan.mag()){const Re=Rc(ne.pan.mag(),Te,t.e({},Pc,L||{}));Se.offset=ne.pan.mult(Re.amount/ne.pan.mag()),Se.center=this._map.transform.center,fu(Se,Re)}if(ne.zoom){const Re=Rc(ne.zoom,Te,bf);Se.zoom=this._map.transform.zoom+Re.amount,fu(Se,Re)}if(ne.bearing){const Re=Rc(ne.bearing,Te,Vf);Se.bearing=this._map.transform.bearing+t.ac(Re.amount,-179,179),fu(Se,Re)}if(ne.pitch){const Re=Rc(ne.pitch,Te,dc);Se.pitch=this._map.transform.pitch+Re.amount,fu(Se,Re)}if(Se.zoom||Se.bearing){const Re=ne.pinchAround===void 0?ne.around:ne.pinchAround;Se.around=Re?this._map.unproject(Re):this._map.getCenter()}return this.clear(),t.e(Se,{noMoveStart:!0})}}function fu(ze,L){(!ze.duration||ze.durationne.unproject(Dt)),xt=Re.reduce((Dt,er,fr,pr)=>Dt.add(er.div(pr.length)),new t.P(0,0));super(L,{points:Re,point:xt,lngLats:ft,lngLat:ne.unproject(xt),originalEvent:Te}),this._defaultPrevented=!1}}class ef extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(L,ne,Te){super(L,{originalEvent:Te}),this._defaultPrevented=!1}}class gc{constructor(L,ne){this._map=L,this._clickTolerance=ne.clickTolerance}reset(){delete this._mousedownPos}wheel(L){return this._firePreventable(new ef(L.type,this._map,L))}mousedown(L,ne){return this._mousedownPos=ne,this._firePreventable(new Rl(L.type,this._map,L))}mouseup(L){this._map.fire(new Rl(L.type,this._map,L))}click(L,ne){this._mousedownPos&&this._mousedownPos.dist(ne)>=this._clickTolerance||this._map.fire(new Rl(L.type,this._map,L))}dblclick(L){return this._firePreventable(new Rl(L.type,this._map,L))}mouseover(L){this._map.fire(new Rl(L.type,this._map,L))}mouseout(L){this._map.fire(new Rl(L.type,this._map,L))}touchstart(L){return this._firePreventable(new pc(L.type,this._map,L))}touchmove(L){this._map.fire(new pc(L.type,this._map,L))}touchend(L){this._map.fire(new pc(L.type,this._map,L))}touchcancel(L){this._map.fire(new pc(L.type,this._map,L))}_firePreventable(L){if(this._map.fire(L),L.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Gs{constructor(L){this._map=L}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(L){this._map.fire(new Rl(L.type,this._map,L))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(L){this._delayContextMenu?this._contextMenuEvent=L:this._ignoreContextMenu||this._map.fire(new Rl(L.type,this._map,L)),this._map.listens("contextmenu")&&L.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nu{constructor(L){this._map=L}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(L){return this.transform.pointLocation(t.P.convert(L),this._map.terrain)}}class wu{constructor(L,ne){this._map=L,this._tr=new nu(L),this._el=L.getCanvasContainer(),this._container=L.getContainer(),this._clickTolerance=ne.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(L,ne){this.isEnabled()&&L.shiftKey&&L.button===0&&(n.disableDrag(),this._startPos=this._lastPos=ne,this._active=!0)}mousemoveWindow(L,ne){if(!this._active)return;const Te=ne;if(this._lastPos.equals(Te)||!this._box&&Te.dist(this._startPos)Re.fitScreenCoordinates(Te,Se,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",L)}keydown(L){this._active&&L.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",L))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(L,ne){return this._map.fire(new t.k(L,{originalEvent:ne}))}}function Xc(ze,L){if(ze.length!==L.length)throw new Error(`The number of touches and points are not equal - touches ${ze.length}, points ${L.length}`);const ne={};for(let Te=0;Tethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=L.timeStamp),Te.length===this.numTouches&&(this.centroid=function(Se){const Re=new t.P(0,0);for(const ft of Se)Re._add(ft);return Re.div(Se.length)}(ne),this.touches=Xc(Te,ne)))}touchmove(L,ne,Te){if(this.aborted||!this.centroid)return;const Se=Xc(Te,ne);for(const Re in this.touches){const ft=Se[Re];(!ft||ft.dist(this.touches[Re])>30)&&(this.aborted=!0)}}touchend(L,ne,Te){if((!this.centroid||L.timeStamp-this.startTime>500)&&(this.aborted=!0),Te.length===0){const Se=!this.aborted&&this.centroid;if(this.reset(),Se)return Se}}}class Sc{constructor(L){this.singleTap=new Ws(L),this.numTaps=L.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(L,ne,Te){this.singleTap.touchstart(L,ne,Te)}touchmove(L,ne,Te){this.singleTap.touchmove(L,ne,Te)}touchend(L,ne,Te){const Se=this.singleTap.touchend(L,ne,Te);if(Se){const Re=L.timeStamp-this.lastTime<500,ft=!this.lastTap||this.lastTap.dist(Se)<30;if(Re&&ft||this.reset(),this.count++,this.lastTime=L.timeStamp,this.lastTap=Se,this.count===this.numTaps)return this.reset(),Se}}}class ac{constructor(L){this._tr=new nu(L),this._zoomIn=new Sc({numTouches:1,numTaps:2}),this._zoomOut=new Sc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(L,ne,Te){this._zoomIn.touchstart(L,ne,Te),this._zoomOut.touchstart(L,ne,Te)}touchmove(L,ne,Te){this._zoomIn.touchmove(L,ne,Te),this._zoomOut.touchmove(L,ne,Te)}touchend(L,ne,Te){const Se=this._zoomIn.touchend(L,ne,Te),Re=this._zoomOut.touchend(L,ne,Te),ft=this._tr;return Se?(this._active=!0,L.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:xt=>xt.easeTo({duration:300,zoom:ft.zoom+1,around:ft.unproject(Se)},{originalEvent:L})}):Re?(this._active=!0,L.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:xt=>xt.easeTo({duration:300,zoom:ft.zoom-1,around:ft.unproject(Re)},{originalEvent:L})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hu{constructor(L){this._enabled=!!L.enable,this._moveStateManager=L.moveStateManager,this._clickTolerance=L.clickTolerance||1,this._moveFunction=L.move,this._activateOnStart=!!L.activateOnStart,L.assignEvents(this),this.reset()}reset(L){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(L)}_move(...L){const ne=this._moveFunction(...L);if(ne.bearingDelta||ne.pitchDelta||ne.around||ne.panDelta)return this._active=!0,ne}dragStart(L,ne){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(L)&&(this._moveStateManager.startMove(L),this._lastPoint=ne.length?ne[0]:ne,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(L,ne){if(!this.isEnabled())return;const Te=this._lastPoint;if(!Te)return;if(L.preventDefault(),!this._moveStateManager.isValidMoveEvent(L))return void this.reset(L);const Se=ne.length?ne[0]:ne;return!this._moved&&Se.dist(Te){ze.mousedown=ze.dragStart,ze.mousemoveWindow=ze.dragMove,ze.mouseup=ze.dragEnd,ze.contextmenu=L=>{L.preventDefault()}},Fl=({enable:ze,clickTolerance:L,bearingDegreesPerPixelMoved:ne=.8})=>{const Te=new Iu({checkCorrectEvent:Se=>n.mouseButton(Se)===0&&Se.ctrlKey||n.mouseButton(Se)===2});return new hu({clickTolerance:L,move:(Se,Re)=>({bearingDelta:(Re.x-Se.x)*ne}),moveStateManager:Te,enable:ze,assignEvents:wf})},tf=({enable:ze,clickTolerance:L,pitchDegreesPerPixelMoved:ne=-.5})=>{const Te=new Iu({checkCorrectEvent:Se=>n.mouseButton(Se)===0&&Se.ctrlKey||n.mouseButton(Se)===2});return new hu({clickTolerance:L,move:(Se,Re)=>({pitchDelta:(Re.y-Se.y)*ne}),moveStateManager:Te,enable:ze,assignEvents:wf})};class vu{constructor(L,ne){this._clickTolerance=L.clickTolerance||1,this._map=ne,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new t.P(0,0)}_shouldBePrevented(L){return L<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(L,ne,Te){return this._calculateTransform(L,ne,Te)}touchmove(L,ne,Te){if(this._active){if(!this._shouldBePrevented(Te.length))return L.preventDefault(),this._calculateTransform(L,ne,Te);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",L)}}touchend(L,ne,Te){this._calculateTransform(L,ne,Te),this._active&&this._shouldBePrevented(Te.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(L,ne,Te){Te.length>0&&(this._active=!0);const Se=Xc(Te,ne),Re=new t.P(0,0),ft=new t.P(0,0);let xt=0;for(const er in Se){const fr=Se[er],pr=this._touches[er];pr&&(Re._add(fr),ft._add(fr.sub(pr)),xt++,Se[er]=fr)}if(this._touches=Se,this._shouldBePrevented(xt)||!ft.mag())return;const Dt=ft.div(xt);return this._sum._add(Dt),this._sum.mag()Math.abs(ze.x)}class Zc extends Wu{constructor(L){super(),this._currentTouchCount=0,this._map=L}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(L,ne,Te){super.touchstart(L,ne,Te),this._currentTouchCount=Te.length}_start(L){this._lastPoints=L,Du(L[0].sub(L[1]))&&(this._valid=!1)}_move(L,ne,Te){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const Se=L[0].sub(this._lastPoints[0]),Re=L[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(Se,Re,Te.timeStamp),this._valid?(this._lastPoints=L,this._active=!0,{pitchDelta:(Se.y+Re.y)/2*-.5}):void 0}gestureBeginsVertically(L,ne,Te){if(this._valid!==void 0)return this._valid;const Se=L.mag()>=2,Re=ne.mag()>=2;if(!Se&&!Re)return;if(!Se||!Re)return this._firstMove===void 0&&(this._firstMove=Te),Te-this._firstMove<100&&void 0;const ft=L.y>0==ne.y>0;return Du(L)&&Du(ne)&&ft}}const Qt={panStep:100,bearingStep:15,pitchStep:10};class yr{constructor(L){this._tr=new nu(L);const ne=Qt;this._panStep=ne.panStep,this._bearingStep=ne.bearingStep,this._pitchStep=ne.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(L){if(L.altKey||L.ctrlKey||L.metaKey)return;let ne=0,Te=0,Se=0,Re=0,ft=0;switch(L.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:L.shiftKey?Te=-1:(L.preventDefault(),Re=-1);break;case 39:L.shiftKey?Te=1:(L.preventDefault(),Re=1);break;case 38:L.shiftKey?Se=1:(L.preventDefault(),ft=-1);break;case 40:L.shiftKey?Se=-1:(L.preventDefault(),ft=1);break;default:return}return this._rotationDisabled&&(Te=0,Se=0),{cameraAnimation:xt=>{const Dt=this._tr;xt.easeTo({duration:300,easeId:"keyboardHandler",easing:$r,zoom:ne?Math.round(Dt.zoom)+ne*(L.shiftKey?2:1):Dt.zoom,bearing:Dt.bearing+Te*this._bearingStep,pitch:Dt.pitch+Se*this._pitchStep,offset:[-Re*this._panStep,-ft*this._panStep],center:Dt.center},{originalEvent:L})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function $r(ze){return ze*(2-ze)}const Vr=4.000244140625;class ma{constructor(L,ne){this._onTimeout=Te=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Te)},this._map=L,this._tr=new nu(L),this._triggerRenderFrame=ne,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(L){this._defaultZoomRate=L}setWheelZoomRate(L){this._wheelZoomRate=L}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(L){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!L&&L.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(L){return!!this._map.cooperativeGestures.isEnabled()&&!(L.ctrlKey||this._map.cooperativeGestures.isBypassed(L))}wheel(L){if(!this.isEnabled())return;if(this._shouldBePrevented(L))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",L);let ne=L.deltaMode===WheelEvent.DOM_DELTA_LINE?40*L.deltaY:L.deltaY;const Te=o.now(),Se=Te-(this._lastWheelEventTime||0);this._lastWheelEventTime=Te,ne!==0&&ne%Vr==0?this._type="wheel":ne!==0&&Math.abs(ne)<4?this._type="trackpad":Se>400?(this._type=null,this._lastValue=ne,this._timeout=setTimeout(this._onTimeout,40,L)):this._type||(this._type=Math.abs(Se*ne)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,ne+=this._lastValue)),L.shiftKey&&ne&&(ne/=4),this._type&&(this._lastWheelEvent=L,this._delta-=ne,this._active||this._start(L)),L.preventDefault()}_start(L){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const ne=n.mousePos(this._map.getCanvas(),L),Te=this._tr;this._around=ne.y>Te.transform.height/2-Te.transform.getHorizon()?t.N.convert(this._aroundCenter?Te.center:Te.unproject(ne)):t.N.convert(Te.center),this._aroundPoint=Te.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const L=this._tr.transform;if(this._delta!==0){const Dt=this._type==="wheel"&&Math.abs(this._delta)>Vr?this._wheelZoomRate:this._defaultZoomRate;let er=2/(1+Math.exp(-Math.abs(this._delta*Dt)));this._delta<0&&er!==0&&(er=1/er);const fr=typeof this._targetZoom=="number"?L.zoomScale(this._targetZoom):L.scale;this._targetZoom=Math.min(L.maxZoom,Math.max(L.minZoom,L.scaleZoom(fr*er))),this._type==="wheel"&&(this._startZoom=L.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const ne=typeof this._targetZoom=="number"?this._targetZoom:L.zoom,Te=this._startZoom,Se=this._easing;let Re,ft=!1;const xt=o.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Te&&Se&&xt){const Dt=Math.min(xt/200,1),er=Se(Dt);Re=t.y.number(Te,ne,er),Dt<1?this._frameId||(this._frameId=!0):ft=!0}else Re=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Re-L.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(L){let ne=t.b9;if(this._prevEase){const Te=this._prevEase,Se=(o.now()-Te.start)/Te.duration,Re=Te.easing(Se+.01)-Te.easing(Se),ft=.27/Math.sqrt(Re*Re+1e-4)*.01,xt=Math.sqrt(.0729-ft*ft);ne=t.b8(ft,xt,.25,1)}return this._prevEase={start:o.now(),duration:L,easing:ne},ne}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class tn{constructor(L,ne){this._clickZoom=L,this._tapZoom=ne}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ja{constructor(L){this._tr=new nu(L),this.reset()}reset(){this._active=!1}dblclick(L,ne){return L.preventDefault(),{cameraAnimation:Te=>{Te.easeTo({duration:300,zoom:this._tr.zoom+(L.shiftKey?-1:1),around:this._tr.unproject(ne)},{originalEvent:L})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ln{constructor(){this._tap=new Sc({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(L,ne,Te){if(!this._swipePoint)if(this._tapTime){const Se=ne[0],Re=L.timeStamp-this._tapTime<500,ft=this._tapPoint.dist(Se)<30;Re&&ft?Te.length>0&&(this._swipePoint=Se,this._swipeTouch=Te[0].identifier):this.reset()}else this._tap.touchstart(L,ne,Te)}touchmove(L,ne,Te){if(this._tapTime){if(this._swipePoint){if(Te[0].identifier!==this._swipeTouch)return;const Se=ne[0],Re=Se.y-this._swipePoint.y;return this._swipePoint=Se,L.preventDefault(),this._active=!0,{zoomDelta:Re/128}}}else this._tap.touchmove(L,ne,Te)}touchend(L,ne,Te){if(this._tapTime)this._swipePoint&&Te.length===0&&this.reset();else{const Se=this._tap.touchend(L,ne,Te);Se&&(this._tapTime=L.timeStamp,this._tapPoint=Se)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class On{constructor(L,ne,Te){this._el=L,this._mousePan=ne,this._touchPan=Te}enable(L){this._inertiaOptions=L||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Qn{constructor(L,ne,Te){this._pitchWithRotate=L.pitchWithRotate,this._mouseRotate=ne,this._mousePitch=Te}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class _n{constructor(L,ne,Te,Se){this._el=L,this._touchZoom=ne,this._touchRotate=Te,this._tapDragZoom=Se,this._rotationDisabled=!1,this._enabled=!0}enable(L){this._touchZoom.enable(L),this._rotationDisabled||this._touchRotate.enable(L),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class qn{constructor(L,ne){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=L,this._options=ne,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const L=this._map.getCanvasContainer();L.classList.add("maplibregl-cooperative-gestures"),this._container=n.create("div","maplibregl-cooperative-gesture-screen",L);let ne=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(ne=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));const Te=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),Se=document.createElement("div");Se.className="maplibregl-desktop-message",Se.textContent=ne,this._container.appendChild(Se);const Re=document.createElement("div");Re.className="maplibregl-mobile-message",Re.textContent=Te,this._container.appendChild(Re),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(n.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(L){return L[this._bypassKey]}notifyGestureBlocked(L,ne){this._enabled&&(this._map.fire(new t.k("cooperativegestureprevented",{gestureType:L,originalEvent:ne})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}const En=ze=>ze.zoom||ze.drag||ze.pitch||ze.rotate;class dn extends t.k{}function ai(ze){return ze.panDelta&&ze.panDelta.mag()||ze.zoomDelta||ze.bearingDelta||ze.pitchDelta}class Hi{constructor(L,ne){this.handleWindowEvent=Se=>{this.handleEvent(Se,`${Se.type}Window`)},this.handleEvent=(Se,Re)=>{if(Se.type==="blur")return void this.stop(!0);this._updatingCamera=!0;const ft=Se.type==="renderFrame"?void 0:Se,xt={needsRenderFrame:!1},Dt={},er={},fr=Se.touches,pr=fr?this._getMapTouches(fr):void 0,Br=pr?n.touchPos(this._map.getCanvas(),pr):n.mousePos(this._map.getCanvas(),Se);for(const{handlerName:Ye,handler:it,allowed:vt}of this._handlers){if(!it.isEnabled())continue;let St;this._blockedByActive(er,vt,Ye)?it.reset():it[Re||Se.type]&&(St=it[Re||Se.type](Se,Br,pr),this.mergeHandlerResult(xt,Dt,St,Ye,ft),St&&St.needsRenderFrame&&this._triggerRenderFrame()),(St||it.isActive())&&(er[Ye]=it)}const ea={};for(const Ye in this._previousActiveHandlers)er[Ye]||(ea[Ye]=ft);this._previousActiveHandlers=er,(Object.keys(ea).length||ai(xt))&&(this._changes.push([xt,Dt,ea]),this._triggerRenderFrame()),(Object.keys(er).length||ai(xt))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:Ve}=xt;Ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],Ve(this._map))},this._map=L,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ic(L),this._bearingSnap=ne.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(ne);const Te=this._el;this._listeners=[[Te,"touchstart",{passive:!0}],[Te,"touchmove",{passive:!1}],[Te,"touchend",void 0],[Te,"touchcancel",void 0],[Te,"mousedown",void 0],[Te,"mousemove",void 0],[Te,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Te,"mouseover",void 0],[Te,"mouseout",void 0],[Te,"dblclick",void 0],[Te,"click",void 0],[Te,"keydown",{capture:!1}],[Te,"keyup",void 0],[Te,"wheel",{passive:!1}],[Te,"contextmenu",void 0],[window,"blur",void 0]];for(const[Se,Re,ft]of this._listeners)n.addEventListener(Se,Re,Se===document?this.handleWindowEvent:this.handleEvent,ft)}destroy(){for(const[L,ne,Te]of this._listeners)n.removeEventListener(L,ne,L===document?this.handleWindowEvent:this.handleEvent,Te)}_addDefaultHandlers(L){const ne=this._map,Te=ne.getCanvasContainer();this._add("mapEvent",new gc(ne,L));const Se=ne.boxZoom=new wu(ne,L);this._add("boxZoom",Se),L.interactive&&L.boxZoom&&Se.enable();const Re=ne.cooperativeGestures=new qn(ne,L.cooperativeGestures);this._add("cooperativeGestures",Re),L.cooperativeGestures&&Re.enable();const ft=new ac(ne),xt=new Ja(ne);ne.doubleClickZoom=new tn(xt,ft),this._add("tapZoom",ft),this._add("clickZoom",xt),L.interactive&&L.doubleClickZoom&&ne.doubleClickZoom.enable();const Dt=new Ln;this._add("tapDragZoom",Dt);const er=ne.touchPitch=new Zc(ne);this._add("touchPitch",er),L.interactive&&L.touchPitch&&ne.touchPitch.enable(L.touchPitch);const fr=Fl(L),pr=tf(L);ne.dragRotate=new Qn(L,fr,pr),this._add("mouseRotate",fr,["mousePitch"]),this._add("mousePitch",pr,["mouseRotate"]),L.interactive&&L.dragRotate&&ne.dragRotate.enable();const Br=(({enable:St,clickTolerance:_t})=>{const Lt=new Iu({checkCorrectEvent:nr=>n.mouseButton(nr)===0&&!nr.ctrlKey});return new hu({clickTolerance:_t,move:(nr,cr)=>({around:cr,panDelta:cr.sub(nr)}),activateOnStart:!0,moveStateManager:Lt,enable:St,assignEvents:wf})})(L),ea=new vu(L,ne);ne.dragPan=new On(Te,Br,ea),this._add("mousePan",Br),this._add("touchPan",ea,["touchZoom","touchRotate"]),L.interactive&&L.dragPan&&ne.dragPan.enable(L.dragPan);const Ve=new nc,Ye=new Yl;ne.touchZoomRotate=new _n(Te,Ye,Ve,Dt),this._add("touchRotate",Ve,["touchPan","touchZoom"]),this._add("touchZoom",Ye,["touchPan","touchRotate"]),L.interactive&&L.touchZoomRotate&&ne.touchZoomRotate.enable(L.touchZoomRotate);const it=ne.scrollZoom=new ma(ne,()=>this._triggerRenderFrame());this._add("scrollZoom",it,["mousePan"]),L.interactive&&L.scrollZoom&&ne.scrollZoom.enable(L.scrollZoom);const vt=ne.keyboard=new yr(ne);this._add("keyboard",vt),L.interactive&&L.keyboard&&ne.keyboard.enable(),this._add("blockableMapEvent",new Gs(ne))}_add(L,ne,Te){this._handlers.push({handlerName:L,handler:ne,allowed:Te}),this._handlersById[L]=ne}stop(L){if(!this._updatingCamera){for(const{handler:ne}of this._handlers)ne.reset();this._inertia.clear(),this._fireEvents({},{},L),this._changes=[]}}isActive(){for(const{handler:L}of this._handlers)if(L.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!En(this._eventsInProgress)||this.isZooming()}_blockedByActive(L,ne,Te){for(const Se in L)if(Se!==Te&&(!ne||ne.indexOf(Se)<0))return!0;return!1}_getMapTouches(L){const ne=[];for(const Te of L)this._el.contains(Te.target)&&ne.push(Te);return ne}mergeHandlerResult(L,ne,Te,Se,Re){if(!Te)return;t.e(L,Te);const ft={handlerName:Se,originalEvent:Te.originalEvent||Re};Te.zoomDelta!==void 0&&(ne.zoom=ft),Te.panDelta!==void 0&&(ne.drag=ft),Te.pitchDelta!==void 0&&(ne.pitch=ft),Te.bearingDelta!==void 0&&(ne.rotate=ft)}_applyChanges(){const L={},ne={},Te={};for(const[Se,Re,ft]of this._changes)Se.panDelta&&(L.panDelta=(L.panDelta||new t.P(0,0))._add(Se.panDelta)),Se.zoomDelta&&(L.zoomDelta=(L.zoomDelta||0)+Se.zoomDelta),Se.bearingDelta&&(L.bearingDelta=(L.bearingDelta||0)+Se.bearingDelta),Se.pitchDelta&&(L.pitchDelta=(L.pitchDelta||0)+Se.pitchDelta),Se.around!==void 0&&(L.around=Se.around),Se.pinchAround!==void 0&&(L.pinchAround=Se.pinchAround),Se.noInertia&&(L.noInertia=Se.noInertia),t.e(ne,Re),t.e(Te,ft);this._updateMapTransform(L,ne,Te),this._changes=[]}_updateMapTransform(L,ne,Te){const Se=this._map,Re=Se._getTransformForUpdate(),ft=Se.terrain;if(!(ai(L)||ft&&this._terrainMovement))return this._fireEvents(ne,Te,!0);let{panDelta:xt,zoomDelta:Dt,bearingDelta:er,pitchDelta:fr,around:pr,pinchAround:Br}=L;Br!==void 0&&(pr=Br),Se._stop(!0),pr=pr||Se.transform.centerPoint;const ea=Re.pointLocation(xt?pr.sub(xt):pr);er&&(Re.bearing+=er),fr&&(Re.pitch+=fr),Dt&&(Re.zoom+=Dt),ft?this._terrainMovement||!ne.drag&&!ne.zoom?ne.drag&&this._terrainMovement?Re.center=Re.pointLocation(Re.centerPoint.sub(xt)):Re.setLocationAtPoint(ea,pr):(this._terrainMovement=!0,this._map._elevationFreeze=!0,Re.setLocationAtPoint(ea,pr)):Re.setLocationAtPoint(ea,pr),Se._applyUpdatedTransform(Re),this._map._update(),L.noInertia||this._inertia.record(L),this._fireEvents(ne,Te,!0)}_fireEvents(L,ne,Te){const Se=En(this._eventsInProgress),Re=En(L),ft={};for(const pr in L){const{originalEvent:Br}=L[pr];this._eventsInProgress[pr]||(ft[`${pr}start`]=Br),this._eventsInProgress[pr]=L[pr]}!Se&&Re&&this._fireEvent("movestart",Re.originalEvent);for(const pr in ft)this._fireEvent(pr,ft[pr]);Re&&this._fireEvent("move",Re.originalEvent);for(const pr in L){const{originalEvent:Br}=L[pr];this._fireEvent(pr,Br)}const xt={};let Dt;for(const pr in this._eventsInProgress){const{handlerName:Br,originalEvent:ea}=this._eventsInProgress[pr];this._handlersById[Br].isActive()||(delete this._eventsInProgress[pr],Dt=ne[Br]||ea,xt[`${pr}end`]=Dt)}for(const pr in xt)this._fireEvent(pr,xt[pr]);const er=En(this._eventsInProgress),fr=(Se||Re)&&!er;if(fr&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;const pr=this._map._getTransformForUpdate();pr.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(pr)}if(Te&&fr){this._updatingCamera=!0;const pr=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Br=ea=>ea!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new dn("renderFrame",{timeStamp:L})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Fi extends t.E{constructor(L,ne){super(),this._renderFrameCallback=()=>{const Te=Math.min((o.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Te)),Te<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=L,this._bearingSnap=ne.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new t.N(this.transform.center.lng,this.transform.center.lat)}setCenter(L,ne){return this.jumpTo({center:L},ne)}panBy(L,ne,Te){return L=t.P.convert(L).mult(-1),this.panTo(this.transform.center,t.e({offset:L},ne),Te)}panTo(L,ne,Te){return this.easeTo(t.e({center:L},ne),Te)}getZoom(){return this.transform.zoom}setZoom(L,ne){return this.jumpTo({zoom:L},ne),this}zoomTo(L,ne,Te){return this.easeTo(t.e({zoom:L},ne),Te)}zoomIn(L,ne){return this.zoomTo(this.getZoom()+1,L,ne),this}zoomOut(L,ne){return this.zoomTo(this.getZoom()-1,L,ne),this}getBearing(){return this.transform.bearing}setBearing(L,ne){return this.jumpTo({bearing:L},ne),this}getPadding(){return this.transform.padding}setPadding(L,ne){return this.jumpTo({padding:L},ne),this}rotateTo(L,ne,Te){return this.easeTo(t.e({bearing:L},ne),Te)}resetNorth(L,ne){return this.rotateTo(0,t.e({duration:1e3},L),ne),this}resetNorthPitch(L,ne){return this.easeTo(t.e({bearing:0,pitch:0,duration:1e3},L),ne),this}snapToNorth(L,ne){return Math.abs(this.getBearing()){if(this._zooming&&(Se.zoom=t.y.number(Re,it,gr)),this._rotating&&(Se.bearing=t.y.number(ft,er,gr)),this._pitching&&(Se.pitch=t.y.number(xt,fr,gr)),this._padding&&(Se.interpolatePadding(Dt,pr,gr),ea=Se.centerPoint.add(Br)),this.terrain&&!L.freezeElevation&&this._updateElevation(gr),Lt)Se.setLocationAtPoint(Lt,nr);else{const Cr=Se.zoomScale(Se.zoom-Re),Wr=it>Re?Math.min(2,_t):Math.max(.5,_t),ua=Math.pow(Wr,1-gr),va=Se.unproject(vt.add(St.mult(gr*ua)).mult(Cr));Se.setLocationAtPoint(Se.renderWorldCopies?va.wrap():va,ea)}this._applyUpdatedTransform(Se),this._fireMoveEvents(ne)},gr=>{this.terrain&&L.freezeElevation&&this._finalizeElevation(),this._afterEase(ne,gr)},L),this}_prepareEase(L,ne,Te={}){this._moving=!0,ne||Te.moving||this.fire(new t.k("movestart",L)),this._zooming&&!Te.zooming&&this.fire(new t.k("zoomstart",L)),this._rotating&&!Te.rotating&&this.fire(new t.k("rotatestart",L)),this._pitching&&!Te.pitching&&this.fire(new t.k("pitchstart",L))}_prepareElevation(L){this._elevationCenter=L,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(L,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(L){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const ne=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(L<1&&ne!==this._elevationTarget){const Te=this._elevationTarget-this._elevationStart;this._elevationStart+=L*(Te-(ne-(Te*L+this._elevationStart))/(1-L)),this._elevationTarget=ne}this.transform.elevation=t.y.number(this._elevationStart,this._elevationTarget,L)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(L){const ne=L.getCameraPosition(),Te=this.terrain.getElevationForLngLatZoom(ne.lngLat,L.zoom);if(ne.altitudethis._elevateCameraIfInsideTerrain(Se)),this.transformCameraUpdate&&ne.push(Se=>this.transformCameraUpdate(Se)),!ne.length)return;const Te=L.clone();for(const Se of ne){const Re=Te.clone(),{center:ft,zoom:xt,pitch:Dt,bearing:er,elevation:fr}=Se(Re);ft&&(Re.center=ft),xt!==void 0&&(Re.zoom=xt),Dt!==void 0&&(Re.pitch=Dt),er!==void 0&&(Re.bearing=er),fr!==void 0&&(Re.elevation=fr),Te.apply(Re)}this.transform.apply(Te)}_fireMoveEvents(L){this.fire(new t.k("move",L)),this._zooming&&this.fire(new t.k("zoom",L)),this._rotating&&this.fire(new t.k("rotate",L)),this._pitching&&this.fire(new t.k("pitch",L))}_afterEase(L,ne){if(this._easeId&&ne&&this._easeId===ne)return;delete this._easeId;const Te=this._zooming,Se=this._rotating,Re=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Te&&this.fire(new t.k("zoomend",L)),Se&&this.fire(new t.k("rotateend",L)),Re&&this.fire(new t.k("pitchend",L)),this.fire(new t.k("moveend",L))}flyTo(L,ne){var Te;if(!L.essential&&o.prefersReducedMotion){const In=t.M(L,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,ne)}this.stop(),L=t.e({offset:[0,0],speed:1.2,curve:1.42,easing:t.b9},L);const Se=this._getTransformForUpdate(),Re=Se.zoom,ft=Se.bearing,xt=Se.pitch,Dt=Se.padding,er="bearing"in L?this._normalizeBearing(L.bearing,ft):ft,fr="pitch"in L?+L.pitch:xt,pr="padding"in L?L.padding:Se.padding,Br=t.P.convert(L.offset);let ea=Se.centerPoint.add(Br);const Ve=Se.pointLocation(ea),{center:Ye,zoom:it}=Se.getConstrained(t.N.convert(L.center||Ve),(Te=L.zoom)!==null&&Te!==void 0?Te:Re);this._normalizeCenter(Ye,Se);const vt=Se.zoomScale(it-Re),St=Se.project(Ve),_t=Se.project(Ye).sub(St);let Lt=L.curve;const nr=Math.max(Se.width,Se.height),cr=nr/vt,gr=_t.mag();if("minZoom"in L){const In=t.ac(Math.min(L.minZoom,Re,it),Se.minZoom,Se.maxZoom),oi=nr/Se.zoomScale(In-Re);Lt=Math.sqrt(oi/gr*2)}const Cr=Lt*Lt;function Wr(In){const oi=(cr*cr-nr*nr+(In?-1:1)*Cr*Cr*gr*gr)/(2*(In?cr:nr)*Cr*gr);return Math.log(Math.sqrt(oi*oi+1)-oi)}function ua(In){return(Math.exp(In)-Math.exp(-In))/2}function va(In){return(Math.exp(In)+Math.exp(-In))/2}const Ma=Wr(!1);let en=function(In){return va(Ma)/va(Ma+Lt*In)},Pn=function(In){return nr*((va(Ma)*(ua(oi=Ma+Lt*In)/va(oi))-ua(Ma))/Cr)/gr;var oi},Tn=(Wr(!0)-Ma)/Lt;if(Math.abs(gr)<1e-6||!isFinite(Tn)){if(Math.abs(nr-cr)<1e-6)return this.easeTo(L,ne);const In=cr0,en=oi=>Math.exp(In*Lt*oi)}return L.duration="duration"in L?+L.duration:1e3*Tn/("screenSpeed"in L?+L.screenSpeed/Lt:+L.speed),L.maxDuration&&L.duration>L.maxDuration&&(L.duration=0),this._zooming=!0,this._rotating=ft!==er,this._pitching=fr!==xt,this._padding=!Se.isPaddingEqual(pr),this._prepareEase(ne,!1),this.terrain&&this._prepareElevation(Ye),this._ease(In=>{const oi=In*Tn,Si=1/en(oi);Se.zoom=In===1?it:Re+Se.scaleZoom(Si),this._rotating&&(Se.bearing=t.y.number(ft,er,In)),this._pitching&&(Se.pitch=t.y.number(xt,fr,In)),this._padding&&(Se.interpolatePadding(Dt,pr,In),ea=Se.centerPoint.add(Br)),this.terrain&&!L.freezeElevation&&this._updateElevation(In);const _i=In===1?Ye:Se.unproject(St.add(_t.mult(Pn(oi))).mult(Si));Se.setLocationAtPoint(Se.renderWorldCopies?_i.wrap():_i,ea),this._applyUpdatedTransform(Se),this._fireMoveEvents(ne)},()=>{this.terrain&&L.freezeElevation&&this._finalizeElevation(),this._afterEase(ne)},L),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(L,ne){var Te;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const Se=this._onEaseEnd;delete this._onEaseEnd,Se.call(this,ne)}return L||(Te=this.handlers)===null||Te===void 0||Te.stop(!1),this}_ease(L,ne,Te){Te.animate===!1||Te.duration===0?(L(1),ne()):(this._easeStart=o.now(),this._easeOptions=Te,this._onEaseFrame=L,this._onEaseEnd=ne,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(L,ne){L=t.b3(L,-180,180);const Te=Math.abs(L-ne);return Math.abs(L-360-ne)180?-360:Te<-180?360:0}queryTerrainElevation(L){return this.terrain?this.terrain.getElevationForLngLatZoom(t.N.convert(L),this.transform.tileZoom)-this.transform.elevation:null}}const Zi={compact:!0,customAttribution:'MapLibre'};class Wi{constructor(L=Zi){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=ne=>{!ne||ne.sourceDataType!=="metadata"&&ne.sourceDataType!=="visibility"&&ne.dataType!=="style"&&ne.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=L}getDefaultPosition(){return"bottom-right"}onAdd(L){return this._map=L,this._compact=this.options.compact,this._container=n.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=n.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(L,ne){const Te=this._map._getUIString(`AttributionControl.${ne}`);L.title=Te,L.setAttribute("aria-label",Te)}_updateAttributions(){if(!this._map.style)return;let L=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?L=L.concat(this.options.customAttribution.map(Se=>typeof Se!="string"?"":Se)):typeof this.options.customAttribution=="string"&&L.push(this.options.customAttribution)),this._map.style.stylesheet){const Se=this._map.style.stylesheet;this.styleOwner=Se.owner,this.styleId=Se.id}const ne=this._map.style.sourceCaches;for(const Se in ne){const Re=ne[Se];if(Re.used||Re.usedForTerrain){const ft=Re.getSource();ft.attribution&&L.indexOf(ft.attribution)<0&&L.push(ft.attribution)}}L=L.filter(Se=>String(Se).trim()),L.sort((Se,Re)=>Se.length-Re.length),L=L.filter((Se,Re)=>{for(let ft=Re+1;ft=0)return!1;return!0});const Te=L.join(" | ");Te!==this._attribHTML&&(this._attribHTML=Te,L.length?(this._innerContainer.innerHTML=Te,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class ii{constructor(L={}){this._updateCompact=()=>{const ne=this._container.children;if(ne.length){const Te=ne[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Te.classList.add("maplibregl-compact"):Te.classList.remove("maplibregl-compact")}},this.options=L}getDefaultPosition(){return"bottom-left"}onAdd(L){this._map=L,this._compact=this.options&&this.options.compact,this._container=n.create("div","maplibregl-ctrl");const ne=n.create("a","maplibregl-ctrl-logo");return ne.target="_blank",ne.rel="noopener nofollow",ne.href="https://maplibre.org/",ne.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),ne.setAttribute("rel","noopener nofollow"),this._container.appendChild(ne),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){n.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Wn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(L){const ne=++this._id;return this._queue.push({callback:L,id:ne,cancelled:!1}),ne}remove(L){const ne=this._currentlyRunning,Te=ne?this._queue.concat(ne):this._queue;for(const Se of Te)if(Se.id===L)return void(Se.cancelled=!0)}run(L=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const ne=this._currentlyRunning=this._queue;this._queue=[];for(const Te of ne)if(!Te.cancelled&&(Te.callback(L),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var ao=t.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Fo extends t.E{constructor(L){super(),this.sourceCache=L,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,L.usedForTerrain=!0,L.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(L,ne){this.sourceCache.update(L,ne),this._renderableTilesKeys=[];const Te={};for(const Se of L.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:ne}))Te[Se.key]=!0,this._renderableTilesKeys.push(Se.key),this._tiles[Se.key]||(Se.posMatrix=new Float64Array(16),t.aP(Se.posMatrix,0,t.X,0,t.X,0,1),this._tiles[Se.key]=new nt(Se,this.tileSize));for(const Se in this._tiles)Te[Se]||delete this._tiles[Se]}freeRtt(L){for(const ne in this._tiles){const Te=this._tiles[ne];(!L||Te.tileID.equals(L)||Te.tileID.isChildOf(L)||L.isChildOf(Te.tileID))&&(Te.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(L=>this.getTileByID(L))}getTileByID(L){return this._tiles[L]}getTerrainCoords(L){const ne={};for(const Te of this._renderableTilesKeys){const Se=this._tiles[Te].tileID;if(Se.canonical.equals(L.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16),t.aP(Re.posMatrix,0,t.X,0,t.X,0,1),ne[Te]=Re}else if(Se.canonical.isChildOf(L.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16);const ft=Se.canonical.z-L.canonical.z,xt=Se.canonical.x-(Se.canonical.x>>ft<>ft<>ft;t.aP(Re.posMatrix,0,er,0,er,0,1),t.J(Re.posMatrix,Re.posMatrix,[-xt*er,-Dt*er,0]),ne[Te]=Re}else if(L.canonical.isChildOf(Se.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16);const ft=L.canonical.z-Se.canonical.z,xt=L.canonical.x-(L.canonical.x>>ft<>ft<>ft;t.aP(Re.posMatrix,0,t.X,0,t.X,0,1),t.J(Re.posMatrix,Re.posMatrix,[xt*er,Dt*er,0]),t.K(Re.posMatrix,Re.posMatrix,[1/2**ft,1/2**ft,0]),ne[Te]=Re}}return ne}getSourceTile(L,ne){const Te=this.sourceCache._source;let Se=L.overscaledZ-this.deltaZoom;if(Se>Te.maxzoom&&(Se=Te.maxzoom),Se=Te.minzoom&&(!Re||!Re.dem);)Re=this.sourceCache.getTileByID(L.scaledTo(Se--).key);return Re}tilesAfterTime(L=Date.now()){return Object.values(this._tiles).filter(ne=>ne.timeAdded>=L)}}class hs{constructor(L,ne,Te){this.painter=L,this.sourceCache=new Fo(ne),this.options=Te,this.exaggeration=typeof Te.exaggeration=="number"?Te.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(L,ne,Te,Se=t.X){var Re;if(!(ne>=0&&ne=0&&TeL.canonical.z&&(L.canonical.z>=Se?Re=L.canonical.z-Se:t.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const ft=L.canonical.x-(L.canonical.x>>Re<>Re<>8<<4|Re>>8,ne[ft+3]=0;const Te=new t.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(ne.buffer)),Se=new u(L,Te,L.gl.RGBA,{premultiply:!1});return Se.bind(L.gl.NEAREST,L.gl.CLAMP_TO_EDGE),this._coordsTexture=Se,Se}pointCoordinate(L){this.painter.maybeDrawDepthAndCoords(!0);const ne=new Uint8Array(4),Te=this.painter.context,Se=Te.gl,Re=Math.round(L.x*this.painter.pixelRatio/devicePixelRatio),ft=Math.round(L.y*this.painter.pixelRatio/devicePixelRatio),xt=Math.round(this.painter.height/devicePixelRatio);Te.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),Se.readPixels(Re,xt-ft-1,1,1,Se.RGBA,Se.UNSIGNED_BYTE,ne),Te.bindFramebuffer.set(null);const Dt=ne[0]+(ne[2]>>4<<8),er=ne[1]+((15&ne[2])<<8),fr=this.coordsIndex[255-ne[3]],pr=fr&&this.sourceCache.getTileByID(fr);if(!pr)return null;const Br=this._coordsTextureSize,ea=(1<L.id!==ne),this._recentlyUsed.push(L.id)}stampObject(L){L.stamp=++this._stamp}getOrCreateFreeObject(){for(const ne of this._recentlyUsed)if(!this._objects[ne].inUse)return this._objects[ne];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const L=this._createObject(this._objects.length);return this._objects.push(L),L}freeObject(L){L.inUse=!1}freeAllObjects(){for(const L of this._objects)this.freeObject(L)}isFull(){return!(this._objects.length!L.inUse)===!1}}const vs={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Rs{constructor(L,ne){this.painter=L,this.terrain=ne,this.pool=new Is(L.context,30,ne.sourceCache.tileSize*ne.qualityFactor)}destruct(){this.pool.destruct()}getTexture(L){return this.pool.getObjectForId(L.rtt[this._stacks.length-1].id).texture}prepareForRender(L,ne){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=L._order.filter(Te=>!L._layers[Te].isHidden(ne)),this._coordsDescendingInv={};for(const Te in L.sourceCaches){this._coordsDescendingInv[Te]={};const Se=L.sourceCaches[Te].getVisibleCoordinates();for(const Re of Se){const ft=this.terrain.sourceCache.getTerrainCoords(Re);for(const xt in ft)this._coordsDescendingInv[Te][xt]||(this._coordsDescendingInv[Te][xt]=[]),this._coordsDescendingInv[Te][xt].push(ft[xt])}}this._coordsDescendingInvStr={};for(const Te of L._order){const Se=L._layers[Te],Re=Se.source;if(vs[Se.type]&&!this._coordsDescendingInvStr[Re]){this._coordsDescendingInvStr[Re]={};for(const ft in this._coordsDescendingInv[Re])this._coordsDescendingInvStr[Re][ft]=this._coordsDescendingInv[Re][ft].map(xt=>xt.key).sort().join()}}for(const Te of this._renderableTiles)for(const Se in this._coordsDescendingInvStr){const Re=this._coordsDescendingInvStr[Se][Te.tileID.key];Re&&Re!==Te.rttCoords[Se]&&(Te.rtt=[])}}renderLayer(L){if(L.isHidden(this.painter.transform.zoom))return!1;const ne=L.type,Te=this.painter,Se=this._renderableLayerIds[this._renderableLayerIds.length-1]===L.id;if(vs[ne]&&(this._prevType&&vs[this._prevType]||this._stacks.push([]),this._prevType=ne,this._stacks[this._stacks.length-1].push(L.id),!Se))return!0;if(vs[this._prevType]||vs[ne]&&Se){this._prevType=ne;const Re=this._stacks.length-1,ft=this._stacks[Re]||[];for(const xt of this._renderableTiles){if(this.pool.isFull()&&(el(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(xt),xt.rtt[Re]){const er=this.pool.getObjectForId(xt.rtt[Re].id);if(er.stamp===xt.rtt[Re].stamp){this.pool.useObject(er);continue}}const Dt=this.pool.getOrCreateFreeObject();this.pool.useObject(Dt),this.pool.stampObject(Dt),xt.rtt[Re]={id:Dt.id,stamp:Dt.stamp},Te.context.bindFramebuffer.set(Dt.fbo.framebuffer),Te.context.clear({color:t.aM.transparent,stencil:0}),Te.currentStencilSource=void 0;for(let er=0;er{ze.touchstart=ze.dragStart,ze.touchmoveWindow=ze.dragMove,ze.touchend=ze.dragEnd},wi={showCompass:!0,showZoom:!0,visualizePitch:!1};class go{constructor(L,ne,Te=!1){this.mousedown=ft=>{this.startMouse(t.e({},ft,{ctrlKey:!0,preventDefault:()=>ft.preventDefault()}),n.mousePos(this.element,ft)),n.addEventListener(window,"mousemove",this.mousemove),n.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=ft=>{this.moveMouse(ft,n.mousePos(this.element,ft))},this.mouseup=ft=>{this.mouseRotate.dragEnd(ft),this.mousePitch&&this.mousePitch.dragEnd(ft),this.offTemp()},this.touchstart=ft=>{ft.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,ft.targetTouches)[0],this.startTouch(ft,this._startPos),n.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.addEventListener(window,"touchend",this.touchend))},this.touchmove=ft=>{ft.targetTouches.length!==1?this.reset():(this._lastPos=n.touchPos(this.element,ft.targetTouches)[0],this.moveTouch(ft,this._lastPos))},this.touchend=ft=>{ft.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;const Se=L.dragRotate._mouseRotate.getClickTolerance(),Re=L.dragRotate._mousePitch.getClickTolerance();this.element=ne,this.mouseRotate=Fl({clickTolerance:Se,enable:!0}),this.touchRotate=(({enable:ft,clickTolerance:xt,bearingDegreesPerPixelMoved:Dt=.8})=>{const er=new Ec;return new hu({clickTolerance:xt,move:(fr,pr)=>({bearingDelta:(pr.x-fr.x)*Dt}),moveStateManager:er,enable:ft,assignEvents:Ls})})({clickTolerance:Se,enable:!0}),this.map=L,Te&&(this.mousePitch=tf({clickTolerance:Re,enable:!0}),this.touchPitch=(({enable:ft,clickTolerance:xt,pitchDegreesPerPixelMoved:Dt=-.5})=>{const er=new Ec;return new hu({clickTolerance:xt,move:(fr,pr)=>({pitchDelta:(pr.y-fr.y)*Dt}),moveStateManager:er,enable:ft,assignEvents:Ls})})({clickTolerance:Re,enable:!0})),n.addEventListener(ne,"mousedown",this.mousedown),n.addEventListener(ne,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(ne,"touchcancel",this.reset)}startMouse(L,ne){this.mouseRotate.dragStart(L,ne),this.mousePitch&&this.mousePitch.dragStart(L,ne),n.disableDrag()}startTouch(L,ne){this.touchRotate.dragStart(L,ne),this.touchPitch&&this.touchPitch.dragStart(L,ne),n.disableDrag()}moveMouse(L,ne){const Te=this.map,{bearingDelta:Se}=this.mouseRotate.dragMove(L,ne)||{};if(Se&&Te.setBearing(Te.getBearing()+Se),this.mousePitch){const{pitchDelta:Re}=this.mousePitch.dragMove(L,ne)||{};Re&&Te.setPitch(Te.getPitch()+Re)}}moveTouch(L,ne){const Te=this.map,{bearingDelta:Se}=this.touchRotate.dragMove(L,ne)||{};if(Se&&Te.setBearing(Te.getBearing()+Se),this.touchPitch){const{pitchDelta:Re}=this.touchPitch.dragMove(L,ne)||{};Re&&Te.setPitch(Te.getPitch()+Re)}}off(){const L=this.element;n.removeEventListener(L,"mousedown",this.mousedown),n.removeEventListener(L,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.removeEventListener(window,"touchend",this.touchend),n.removeEventListener(L,"touchcancel",this.reset),this.offTemp()}offTemp(){n.enableDrag(),n.removeEventListener(window,"mousemove",this.mousemove),n.removeEventListener(window,"mouseup",this.mouseup),n.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.removeEventListener(window,"touchend",this.touchend)}}let ws;function os(ze,L,ne){const Te=new t.N(ze.lng,ze.lat);if(ze=new t.N(ze.lng,ze.lat),L){const Se=new t.N(ze.lng-360,ze.lat),Re=new t.N(ze.lng+360,ze.lat),ft=ne.locationPoint(ze).distSqr(L);ne.locationPoint(Se).distSqr(L)180;){const Se=ne.locationPoint(ze);if(Se.x>=0&&Se.y>=0&&Se.x<=ne.width&&Se.y<=ne.height)break;ze.lng>ne.center.lng?ze.lng-=360:ze.lng+=360}return ze.lng!==Te.lng&&ne.locationPoint(ze).y>ne.height/2-ne.getHorizon()?ze:Te}const Hl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Wl(ze,L,ne){const Te=ze.classList;for(const Se in Hl)Te.remove(`maplibregl-${ne}-anchor-${Se}`);Te.add(`maplibregl-${ne}-anchor-${L}`)}class $l extends t.E{constructor(L){if(super(),this._onKeyPress=ne=>{const Te=ne.code,Se=ne.charCode||ne.keyCode;Te!=="Space"&&Te!=="Enter"&&Se!==32&&Se!==13||this.togglePopup()},this._onMapClick=ne=>{const Te=ne.originalEvent.target,Se=this._element;this._popup&&(Te===Se||Se.contains(Te))&&this.togglePopup()},this._update=ne=>{var Te;if(!this._map)return;const Se=this._map.loaded()&&!this._map.isMoving();(ne?.type==="terrain"||ne?.type==="render"&&!Se)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?os(this._lngLat,this._flatPos,this._map.transform):(Te=this._lngLat)===null||Te===void 0?void 0:Te.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let Re="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?Re=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(Re=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let ft="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?ft="rotateX(0deg)":this._pitchAlignment==="map"&&(ft=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||ne&&ne.type!=="moveend"||(this._pos=this._pos.round()),n.setTransform(this._element,`${Hl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${ft} ${Re}`),o.frameAsync(new AbortController).then(()=>{this._updateOpacity(ne&&ne.type==="moveend")}).catch(()=>{})},this._onMove=ne=>{if(!this._isDragging){const Te=this._clickTolerance||this._map._clickTolerance;this._isDragging=ne.point.dist(this._pointerdownPos)>=Te}this._isDragging&&(this._pos=ne.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new t.k("dragstart"))),this.fire(new t.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new t.k("dragend")),this._state="inactive"},this._addDragHandler=ne=>{this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=L&&L.anchor||"center",this._color=L&&L.color||"#3FB1CE",this._scale=L&&L.scale||1,this._draggable=L&&L.draggable||!1,this._clickTolerance=L&&L.clickTolerance||0,this._subpixelPositioning=L&&L.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=L&&L.rotation||0,this._rotationAlignment=L&&L.rotationAlignment||"auto",this._pitchAlignment=L&&L.pitchAlignment&&L.pitchAlignment!=="auto"?L.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(L?.opacity,L?.opacityWhenCovered),L&&L.element)this._element=L.element,this._offset=t.P.convert(L&&L.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div");const ne=n.createNS("http://www.w3.org/2000/svg","svg"),Te=41,Se=27;ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height",`${Te}px`),ne.setAttributeNS(null,"width",`${Se}px`),ne.setAttributeNS(null,"viewBox",`0 0 ${Se} ${Te}`);const Re=n.createNS("http://www.w3.org/2000/svg","g");Re.setAttributeNS(null,"stroke","none"),Re.setAttributeNS(null,"stroke-width","1"),Re.setAttributeNS(null,"fill","none"),Re.setAttributeNS(null,"fill-rule","evenodd");const ft=n.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"fill-rule","nonzero");const xt=n.createNS("http://www.w3.org/2000/svg","g");xt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),xt.setAttributeNS(null,"fill","#000000");const Dt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const vt of Dt){const St=n.createNS("http://www.w3.org/2000/svg","ellipse");St.setAttributeNS(null,"opacity","0.04"),St.setAttributeNS(null,"cx","10.5"),St.setAttributeNS(null,"cy","5.80029008"),St.setAttributeNS(null,"rx",vt.rx),St.setAttributeNS(null,"ry",vt.ry),xt.appendChild(St)}const er=n.createNS("http://www.w3.org/2000/svg","g");er.setAttributeNS(null,"fill",this._color);const fr=n.createNS("http://www.w3.org/2000/svg","path");fr.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),er.appendChild(fr);const pr=n.createNS("http://www.w3.org/2000/svg","g");pr.setAttributeNS(null,"opacity","0.25"),pr.setAttributeNS(null,"fill","#000000");const Br=n.createNS("http://www.w3.org/2000/svg","path");Br.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),pr.appendChild(Br);const ea=n.createNS("http://www.w3.org/2000/svg","g");ea.setAttributeNS(null,"transform","translate(6.0, 7.0)"),ea.setAttributeNS(null,"fill","#FFFFFF");const Ve=n.createNS("http://www.w3.org/2000/svg","g");Ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");const Ye=n.createNS("http://www.w3.org/2000/svg","circle");Ye.setAttributeNS(null,"fill","#000000"),Ye.setAttributeNS(null,"opacity","0.25"),Ye.setAttributeNS(null,"cx","5.5"),Ye.setAttributeNS(null,"cy","5.5"),Ye.setAttributeNS(null,"r","5.4999962");const it=n.createNS("http://www.w3.org/2000/svg","circle");it.setAttributeNS(null,"fill","#FFFFFF"),it.setAttributeNS(null,"cx","5.5"),it.setAttributeNS(null,"cy","5.5"),it.setAttributeNS(null,"r","5.4999962"),Ve.appendChild(Ye),Ve.appendChild(it),ft.appendChild(xt),ft.appendChild(er),ft.appendChild(pr),ft.appendChild(ea),ft.appendChild(Ve),ne.appendChild(ft),ne.setAttributeNS(null,"height",Te*this._scale+"px"),ne.setAttributeNS(null,"width",Se*this._scale+"px"),this._element.appendChild(ne),this._offset=t.P.convert(L&&L.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",ne=>{ne.preventDefault()}),this._element.addEventListener("mousedown",ne=>{ne.preventDefault()}),Wl(this._element,this._anchor,"marker"),L&&L.className)for(const ne of L.className.split(" "))this._element.classList.add(ne);this._popup=null}addTo(L){return this.remove(),this._map=L,this._element.setAttribute("aria-label",L._getUIString("Marker.Title")),L.getCanvasContainer().appendChild(this._element),L.on("move",this._update),L.on("moveend",this._update),L.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(L){return this._lngLat=t.N.convert(L),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(L){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),L){if(!("offset"in L.options)){const Se=Math.abs(13.5)/Math.SQRT2;L.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[Se,-1*(38.1-13.5+Se)],"bottom-right":[-Se,-1*(38.1-13.5+Se)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=L,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(L){return this._subpixelPositioning=L,this}getPopup(){return this._popup}togglePopup(){const L=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:L?(L.isOpen()?L.remove():(L.setLngLat(this._lngLat),L.addTo(this._map)),this):this}_updateOpacity(L=!1){var ne,Te;if(!(!((ne=this._map)===null||ne===void 0)&&ne.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(L)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}const Se=this._map,Re=Se.terrain.depthAtPoint(this._pos),ft=Se.terrain.getElevationForLngLatZoom(this._lngLat,Se.transform.tileZoom);if(Se.transform.lngLatToCameraDepth(this._lngLat,ft)-Re<.006)return void(this._element.style.opacity=this._opacity);const xt=-this._offset.y/Se.transform._pixelPerMeter,Dt=Math.sin(Se.getPitch()*Math.PI/180)*xt,er=Se.terrain.depthAtPoint(new t.P(this._pos.x,this._pos.y-this._offset.y)),fr=Se.transform.lngLatToCameraDepth(this._lngLat,ft+Dt)-er>.006;!((Te=this._popup)===null||Te===void 0)&&Te.isOpen()&&fr&&this._popup.remove(),this._element.style.opacity=fr?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(L){return this._offset=t.P.convert(L),this._update(),this}addClassName(L){this._element.classList.add(L)}removeClassName(L){this._element.classList.remove(L)}toggleClassName(L){return this._element.classList.toggle(L)}setDraggable(L){return this._draggable=!!L,this._map&&(L?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(L){return this._rotation=L||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(L){return this._rotationAlignment=L||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(L){return this._pitchAlignment=L&&L!=="auto"?L:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(L,ne){return L===void 0&&ne===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),L!==void 0&&(this._opacity=L),ne!==void 0&&(this._opacityWhenCovered=ne),this._map&&this._updateOpacity(!0),this}}const uc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Xl=0,Xu=!1;const ll={maxWidth:100,unit:"metric"};function Zu(ze,L,ne){const Te=ne&&ne.maxWidth||100,Se=ze._container.clientHeight/2,Re=ze.unproject([0,Se]),ft=ze.unproject([Te,Se]),xt=Re.distanceTo(ft);if(ne&&ne.unit==="imperial"){const Dt=3.2808*xt;Dt>5280?Yi(L,Te,Dt/5280,ze._getUIString("ScaleControl.Miles")):Yi(L,Te,Dt,ze._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Yi(L,Te,xt/1852,ze._getUIString("ScaleControl.NauticalMiles")):xt>=1e3?Yi(L,Te,xt/1e3,ze._getUIString("ScaleControl.Kilometers")):Yi(L,Te,xt,ze._getUIString("ScaleControl.Meters"))}function Yi(ze,L,ne,Te){const Se=function(Re){const ft=Math.pow(10,`${Math.floor(Re)}`.length-1);let xt=Re/ft;return xt=xt>=10?10:xt>=5?5:xt>=3?3:xt>=2?2:xt>=1?1:function(Dt){const er=Math.pow(10,Math.ceil(-Math.log(Dt)/Math.LN10));return Math.round(Dt*er)/er}(xt),ft*xt}(ne);ze.style.width=L*(Se/ne)+"px",ze.innerHTML=`${Se} ${Te}`}const io={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Yu=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function du(ze){if(ze){if(typeof ze=="number"){const L=Math.round(Math.abs(ze)/Math.SQRT2);return{center:new t.P(0,0),top:new t.P(0,ze),"top-left":new t.P(L,L),"top-right":new t.P(-L,L),bottom:new t.P(0,-ze),"bottom-left":new t.P(L,-L),"bottom-right":new t.P(-L,-L),left:new t.P(ze,0),right:new t.P(-ze,0)}}if(ze instanceof t.P||Array.isArray(ze)){const L=t.P.convert(ze);return{center:L,top:L,"top-left":L,"top-right":L,bottom:L,"bottom-left":L,"bottom-right":L,left:L,right:L}}return{center:t.P.convert(ze.center||[0,0]),top:t.P.convert(ze.top||[0,0]),"top-left":t.P.convert(ze["top-left"]||[0,0]),"top-right":t.P.convert(ze["top-right"]||[0,0]),bottom:t.P.convert(ze.bottom||[0,0]),"bottom-left":t.P.convert(ze["bottom-left"]||[0,0]),"bottom-right":t.P.convert(ze["bottom-right"]||[0,0]),left:t.P.convert(ze.left||[0,0]),right:t.P.convert(ze.right||[0,0])}}return du(new t.P(0,0))}const iu=r;e.AJAXError=t.bh,e.Evented=t.E,e.LngLat=t.N,e.MercatorCoordinate=t.Z,e.Point=t.P,e.addProtocol=t.bi,e.config=t.a,e.removeProtocol=t.bj,e.AttributionControl=Wi,e.BoxZoomHandler=wu,e.CanvasSource=Je,e.CooperativeGesturesHandler=qn,e.DoubleClickZoomHandler=tn,e.DragPanHandler=On,e.DragRotateHandler=Qn,e.EdgeInsets=Gl,e.FullscreenControl=class extends t.E{constructor(ze={}){super(),this._onFullscreenChange=()=>{var L;let ne=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((L=ne?.shadowRoot)===null||L===void 0)&&L.fullscreenElement;)ne=ne.shadowRoot.fullscreenElement;ne===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ze&&ze.container&&(ze.container instanceof HTMLElement?this._container=ze.container:t.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ze){return this._map=ze,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){n.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const ze=this._fullscreenButton=n.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);n.create("span","maplibregl-ctrl-icon",ze).setAttribute("aria-hidden","true"),ze.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const ze=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ze),this._fullscreenButton.title=ze}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new t.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new t.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},e.GeoJSONSource=Ce,e.GeolocateControl=class extends t.E{constructor(ze){super(),this._onSuccess=L=>{if(this._map){if(this._isOutOfMapMaxBounds(L))return this._setErrorState(),this.fire(new t.k("outofmaxbounds",L)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=L,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(L),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(L),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new t.k("geolocate",L)),this._finish()}},this._updateCamera=L=>{const ne=new t.N(L.coords.longitude,L.coords.latitude),Te=L.coords.accuracy,Se=this._map.getBearing(),Re=t.e({bearing:Se},this.options.fitBoundsOptions),ft=ae.fromLngLat(ne,Te);this._map.fitBounds(ft,Re,{geolocateSource:!0})},this._updateMarker=L=>{if(L){const ne=new t.N(L.coords.longitude,L.coords.latitude);this._accuracyCircleMarker.setLngLat(ne).addTo(this._map),this._userLocationDotMarker.setLngLat(ne).addTo(this._map),this._accuracy=L.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=L=>{if(this._map){if(this.options.trackUserLocation)if(L.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(L.code===3&&Xu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new t.k("error",L)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",L=>L.preventDefault()),this._geolocateButton=n.create("button","maplibregl-ctrl-geolocate",this._container),n.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=L=>{if(this._map){if(L===!1){t.w("Geolocation support is not available so the GeolocateControl will be disabled.");const ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{const ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new $l({element:this._dotElement}),this._circleElement=n.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new $l({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",ne=>{ne.geolocateSource||this._watchState!=="ACTIVE_LOCK"||ne.originalEvent&&ne.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new t.k("trackuserlocationend")),this.fire(new t.k("userlocationlostfocus")))})}},this.options=t.e({},uc,ze)}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return t._(this,arguments,void 0,function*(L=!1){if(ws!==void 0&&!L)return ws;if(window.navigator.permissions===void 0)return ws=!!window.navigator.geolocation,ws;try{ws=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{ws=!!window.navigator.geolocation}return ws})}().then(L=>this._finishSetupUI(L)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Xl=0,Xu=!1}_isOutOfMapMaxBounds(ze){const L=this._map.getMaxBounds(),ne=ze.coords;return L&&(ne.longitudeL.getEast()||ne.latitudeL.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){const ze=this._map.getBounds(),L=ze.getSouthEast(),ne=ze.getNorthEast(),Te=L.distanceTo(ne),Se=Math.ceil(this._accuracy/(Te/this._map._container.clientHeight)*2);this._circleElement.style.width=`${Se}px`,this._circleElement.style.height=`${Se}px`}trigger(){if(!this._setup)return t.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Xl--,Xu=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new t.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.k("trackuserlocationstart")),this.fire(new t.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ze;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Xl++,Xl>1?(ze={maximumAge:6e5,timeout:0},Xu=!0):(ze=this.options.positionOptions,Xu=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ze)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},e.Hash=Pu,e.ImageSource=at,e.KeyboardHandler=yr,e.LngLatBounds=ae,e.LogoControl=ii,e.Map=class extends Fi{constructor(ze){t.bf.mark(t.bg.create);const L=Object.assign(Object.assign({},nl),ze);if(L.minZoom!=null&&L.maxZoom!=null&&L.minZoom>L.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(L.minPitch!=null&&L.maxPitch!=null&&L.minPitch>L.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(L.minPitch!=null&&L.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(L.maxPitch!=null&&L.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Ys(L.minZoom,L.maxZoom,L.minPitch,L.maxPitch,L.renderWorldCopies),{bearingSnap:L.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Wn,this._controls=[],this._mapId=t.a4(),this._contextLost=ne=>{ne.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new t.k("webglcontextlost",{originalEvent:ne}))},this._contextRestored=ne=>{this._setupPainter(),this.resize(),this._update(),this.fire(new t.k("webglcontextrestored",{originalEvent:ne}))},this._onMapScroll=ne=>{if(ne.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=L.interactive,this._maxTileCacheSize=L.maxTileCacheSize,this._maxTileCacheZoomLevels=L.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=L.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=L.preserveDrawingBuffer===!0,this._antialias=L.antialias===!0,this._trackResize=L.trackResize===!0,this._bearingSnap=L.bearingSnap,this._refreshExpiredTiles=L.refreshExpiredTiles===!0,this._fadeDuration=L.fadeDuration,this._crossSourceCollisions=L.crossSourceCollisions===!0,this._collectResourceTiming=L.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Yo),L.locale),this._clickTolerance=L.clickTolerance,this._overridePixelRatio=L.pixelRatio,this._maxCanvasSize=L.maxCanvasSize,this.transformCameraUpdate=L.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=L.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=l.addThrottleControl(()=>this.isMoving()),this._requestManager=new m(L.transformRequest),typeof L.container=="string"){if(this._container=document.getElementById(L.container),!this._container)throw new Error(`Container '${L.container}' not found.`)}else{if(!(L.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=L.container}if(L.maxBounds&&this.setMaxBounds(L.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let ne=!1;const Te=vc(Se=>{this._trackResize&&!this._removed&&(this.resize(Se),this.redraw())},50);this._resizeObserver=new ResizeObserver(Se=>{ne?Te(Se):ne=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Hi(this,L),this._hash=L.hash&&new Pu(typeof L.hash=="string"&&L.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:L.center,zoom:L.zoom,bearing:L.bearing,pitch:L.pitch}),L.bounds&&(this.resize(),this.fitBounds(L.bounds,t.e({},L.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=L.localIdeographFontFamily,this._validateStyle=L.validateStyle,L.style&&this.setStyle(L.style,{localIdeographFontFamily:L.localIdeographFontFamily}),L.attributionControl&&this.addControl(new Wi(typeof L.attributionControl=="boolean"?void 0:L.attributionControl)),L.maplibreLogo&&this.addControl(new ii,L.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",ne=>{this._update(ne.dataType==="style"),this.fire(new t.k(`${ne.dataType}data`,ne))}),this.on("dataloading",ne=>{this.fire(new t.k(`${ne.dataType}dataloading`,ne))}),this.on("dataabort",ne=>{this.fire(new t.k("sourcedataabort",ne))})}_getMapId(){return this._mapId}addControl(ze,L){if(L===void 0&&(L=ze.getDefaultPosition?ze.getDefaultPosition():"top-right"),!ze||!ze.onAdd)return this.fire(new t.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const ne=ze.onAdd(this);this._controls.push(ze);const Te=this._controlPositions[L];return L.indexOf("bottom")!==-1?Te.insertBefore(ne,Te.firstChild):Te.appendChild(ne),this}removeControl(ze){if(!ze||!ze.onRemove)return this.fire(new t.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const L=this._controls.indexOf(ze);return L>-1&&this._controls.splice(L,1),ze.onRemove(this),this}hasControl(ze){return this._controls.indexOf(ze)>-1}calculateCameraOptionsFromTo(ze,L,ne,Te){return Te==null&&this.terrain&&(Te=this.terrain.getElevationForLngLatZoom(ne,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ze,L,ne,Te)}resize(ze){var L;const ne=this._containerDimensions(),Te=ne[0],Se=ne[1],Re=this._getClampedPixelRatio(Te,Se);if(this._resizeCanvas(Te,Se,Re),this.painter.resize(Te,Se,Re),this.painter.overLimit()){const xt=this.painter.context.gl;this._maxCanvasSize=[xt.drawingBufferWidth,xt.drawingBufferHeight];const Dt=this._getClampedPixelRatio(Te,Se);this._resizeCanvas(Te,Se,Dt),this.painter.resize(Te,Se,Dt)}this.transform.resize(Te,Se),(L=this._requestedCameraState)===null||L===void 0||L.resize(Te,Se);const ft=!this._moving;return ft&&(this.stop(),this.fire(new t.k("movestart",ze)).fire(new t.k("move",ze))),this.fire(new t.k("resize",ze)),ft&&this.fire(new t.k("moveend",ze)),this}_getClampedPixelRatio(ze,L){const{0:ne,1:Te}=this._maxCanvasSize,Se=this.getPixelRatio(),Re=ze*Se,ft=L*Se;return Math.min(Re>ne?ne/Re:1,ft>Te?Te/ft:1)*Se}getPixelRatio(){var ze;return(ze=this._overridePixelRatio)!==null&&ze!==void 0?ze:devicePixelRatio}setPixelRatio(ze){this._overridePixelRatio=ze,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ze){return this.transform.setMaxBounds(ae.convert(ze)),this._update()}setMinZoom(ze){if((ze=ze??-2)>=-2&&ze<=this.transform.maxZoom)return this.transform.minZoom=ze,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ze,this._update(),this.getZoom()>ze&&this.setZoom(ze),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ze){if((ze=ze??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(ze>=0&&ze<=this.transform.maxPitch)return this.transform.minPitch=ze,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ze>=this.transform.minPitch)return this.transform.maxPitch=ze,this._update(),this.getPitch()>ze&&this.setPitch(ze),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ze){return this.transform.renderWorldCopies=ze,this._update()}project(ze){return this.transform.locationPoint(t.N.convert(ze),this.style&&this.terrain)}unproject(ze){return this.transform.pointLocation(t.P.convert(ze),this.terrain)}isMoving(){var ze;return this._moving||((ze=this.handlers)===null||ze===void 0?void 0:ze.isMoving())}isZooming(){var ze;return this._zooming||((ze=this.handlers)===null||ze===void 0?void 0:ze.isZooming())}isRotating(){var ze;return this._rotating||((ze=this.handlers)===null||ze===void 0?void 0:ze.isRotating())}_createDelegatedListener(ze,L,ne){if(ze==="mouseenter"||ze==="mouseover"){let Te=!1;return{layers:L,listener:ne,delegates:{mousemove:Re=>{const ft=L.filter(Dt=>this.getLayer(Dt)),xt=ft.length!==0?this.queryRenderedFeatures(Re.point,{layers:ft}):[];xt.length?Te||(Te=!0,ne.call(this,new Rl(ze,this,Re.originalEvent,{features:xt}))):Te=!1},mouseout:()=>{Te=!1}}}}if(ze==="mouseleave"||ze==="mouseout"){let Te=!1;return{layers:L,listener:ne,delegates:{mousemove:ft=>{const xt=L.filter(Dt=>this.getLayer(Dt));(xt.length!==0?this.queryRenderedFeatures(ft.point,{layers:xt}):[]).length?Te=!0:Te&&(Te=!1,ne.call(this,new Rl(ze,this,ft.originalEvent)))},mouseout:ft=>{Te&&(Te=!1,ne.call(this,new Rl(ze,this,ft.originalEvent)))}}}}{const Te=Se=>{const Re=L.filter(xt=>this.getLayer(xt)),ft=Re.length!==0?this.queryRenderedFeatures(Se.point,{layers:Re}):[];ft.length&&(Se.features=ft,ne.call(this,Se),delete Se.features)};return{layers:L,listener:ne,delegates:{[ze]:Te}}}}_saveDelegatedListener(ze,L){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ze]=this._delegatedListeners[ze]||[],this._delegatedListeners[ze].push(L)}_removeDelegatedListener(ze,L,ne){if(!this._delegatedListeners||!this._delegatedListeners[ze])return;const Te=this._delegatedListeners[ze];for(let Se=0;SeL.includes(ft))){for(const ft in Re.delegates)this.off(ft,Re.delegates[ft]);return void Te.splice(Se,1)}}}on(ze,L,ne){if(ne===void 0)return super.on(ze,L);const Te=this._createDelegatedListener(ze,typeof L=="string"?[L]:L,ne);this._saveDelegatedListener(ze,Te);for(const Se in Te.delegates)this.on(Se,Te.delegates[Se]);return this}once(ze,L,ne){if(ne===void 0)return super.once(ze,L);const Te=typeof L=="string"?[L]:L,Se=this._createDelegatedListener(ze,Te,ne);for(const Re in Se.delegates){const ft=Se.delegates[Re];Se.delegates[Re]=(...xt)=>{this._removeDelegatedListener(ze,Te,ne),ft(...xt)}}this._saveDelegatedListener(ze,Se);for(const Re in Se.delegates)this.once(Re,Se.delegates[Re]);return this}off(ze,L,ne){return ne===void 0?super.off(ze,L):(this._removeDelegatedListener(ze,typeof L=="string"?[L]:L,ne),this)}queryRenderedFeatures(ze,L){if(!this.style)return[];let ne;const Te=ze instanceof t.P||Array.isArray(ze),Se=Te?ze:[[0,0],[this.transform.width,this.transform.height]];if(L=L||(Te?{}:ze)||{},Se instanceof t.P||typeof Se[0]=="number")ne=[t.P.convert(Se)];else{const Re=t.P.convert(Se[0]),ft=t.P.convert(Se[1]);ne=[Re,new t.P(ft.x,Re.y),ft,new t.P(Re.x,ft.y),Re]}return this.style.queryRenderedFeatures(ne,L,this.transform)}querySourceFeatures(ze,L){return this.style.querySourceFeatures(ze,L)}setStyle(ze,L){return(L=t.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},L)).diff!==!1&&L.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ze?(this._diffStyle(ze,L),this):(this._localIdeographFontFamily=L.localIdeographFontFamily,this._updateStyle(ze,L))}setTransformRequest(ze){return this._requestManager.setTransformRequest(ze),this}_getUIString(ze){const L=this._locale[ze];if(L==null)throw new Error(`Missing UI string '${ze}'`);return L}_updateStyle(ze,L){if(L.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ze,L));const ne=this.style&&L.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ze)),ze?(this.style=new Hr(this,L||{}),this.style.setEventedParent(this,{style:this.style}),typeof ze=="string"?this.style.loadURL(ze,L,ne):this.style.loadJSON(ze,L,ne),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Hr(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ze,L){if(typeof ze=="string"){const ne=this._requestManager.transformRequest(ze,"Style");t.h(ne,new AbortController).then(Te=>{this._updateDiff(Te.data,L)}).catch(Te=>{Te&&this.fire(new t.j(Te))})}else typeof ze=="object"&&this._updateDiff(ze,L)}_updateDiff(ze,L){try{this.style.setState(ze,L)&&this._update(!0)}catch(ne){t.w(`Unable to perform style diff: ${ne.message||ne.error||ne}. Rebuilding the style from scratch.`),this._updateStyle(ze,L)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.w("There is no style added to the map.")}addSource(ze,L){return this._lazyInitEmptyStyle(),this.style.addSource(ze,L),this._update(!0)}isSourceLoaded(ze){const L=this.style&&this.style.sourceCaches[ze];if(L!==void 0)return L.loaded();this.fire(new t.j(new Error(`There is no source with ID '${ze}'`)))}setTerrain(ze){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ze){const L=this.style.sourceCaches[ze.source];if(!L)throw new Error(`cannot load terrain, because there exists no source with ID: ${ze.source}`);this.terrain===null&&L.reload();for(const ne in this.style._layers){const Te=this.style._layers[ne];Te.type==="hillshade"&&Te.source===ze.source&&t.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new hs(this.painter,L,ze),this.painter.renderToTexture=new Rs(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=ne=>{ne.dataType==="style"?this.terrain.sourceCache.freeRtt():ne.dataType==="source"&&ne.tile&&(ne.sourceId!==ze.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(ne.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new t.k("terrain",{terrain:ze})),this}getTerrain(){var ze,L;return(L=(ze=this.terrain)===null||ze===void 0?void 0:ze.options)!==null&&L!==void 0?L:null}areTilesLoaded(){const ze=this.style&&this.style.sourceCaches;for(const L in ze){const ne=ze[L]._tiles;for(const Te in ne){const Se=ne[Te];if(Se.state!=="loaded"&&Se.state!=="errored")return!1}}return!0}removeSource(ze){return this.style.removeSource(ze),this._update(!0)}getSource(ze){return this.style.getSource(ze)}addImage(ze,L,ne={}){const{pixelRatio:Te=1,sdf:Se=!1,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er}=ne;if(this._lazyInitEmptyStyle(),!(L instanceof HTMLImageElement||t.b(L))){if(L.width===void 0||L.height===void 0)return this.fire(new t.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:fr,height:pr,data:Br}=L,ea=L;return this.style.addImage(ze,{data:new t.R({width:fr,height:pr},new Uint8Array(Br)),pixelRatio:Te,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er,sdf:Se,version:0,userImage:ea}),ea.onAdd&&ea.onAdd(this,ze),this}}{const{width:fr,height:pr,data:Br}=o.getImageData(L);this.style.addImage(ze,{data:new t.R({width:fr,height:pr},Br),pixelRatio:Te,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er,sdf:Se,version:0})}}updateImage(ze,L){const ne=this.style.getImage(ze);if(!ne)return this.fire(new t.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const Te=L instanceof HTMLImageElement||t.b(L)?o.getImageData(L):L,{width:Se,height:Re,data:ft}=Te;if(Se===void 0||Re===void 0)return this.fire(new t.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(Se!==ne.data.width||Re!==ne.data.height)return this.fire(new t.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));const xt=!(L instanceof HTMLImageElement||t.b(L));return ne.data.replace(ft,xt),this.style.updateImage(ze,ne),this}getImage(ze){return this.style.getImage(ze)}hasImage(ze){return ze?!!this.style.getImage(ze):(this.fire(new t.j(new Error("Missing required image id"))),!1)}removeImage(ze){this.style.removeImage(ze)}loadImage(ze){return l.getImage(this._requestManager.transformRequest(ze,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ze,L){return this._lazyInitEmptyStyle(),this.style.addLayer(ze,L),this._update(!0)}moveLayer(ze,L){return this.style.moveLayer(ze,L),this._update(!0)}removeLayer(ze){return this.style.removeLayer(ze),this._update(!0)}getLayer(ze){return this.style.getLayer(ze)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ze,L,ne){return this.style.setLayerZoomRange(ze,L,ne),this._update(!0)}setFilter(ze,L,ne={}){return this.style.setFilter(ze,L,ne),this._update(!0)}getFilter(ze){return this.style.getFilter(ze)}setPaintProperty(ze,L,ne,Te={}){return this.style.setPaintProperty(ze,L,ne,Te),this._update(!0)}getPaintProperty(ze,L){return this.style.getPaintProperty(ze,L)}setLayoutProperty(ze,L,ne,Te={}){return this.style.setLayoutProperty(ze,L,ne,Te),this._update(!0)}getLayoutProperty(ze,L){return this.style.getLayoutProperty(ze,L)}setGlyphs(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ze,L),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ze,L,ne={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ze,L,ne,Te=>{Te||this._update(!0)}),this}removeSprite(ze){return this._lazyInitEmptyStyle(),this.style.removeSprite(ze),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ze,L,ne=>{ne||this._update(!0)}),this}setLight(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setLight(ze,L),this._update(!0)}getLight(){return this.style.getLight()}setSky(ze){return this._lazyInitEmptyStyle(),this.style.setSky(ze),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ze,L){return this.style.setFeatureState(ze,L),this._update()}removeFeatureState(ze,L){return this.style.removeFeatureState(ze,L),this._update()}getFeatureState(ze){return this.style.getFeatureState(ze)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ze=0,L=0;return this._container&&(ze=this._container.clientWidth||400,L=this._container.clientHeight||300),[ze,L]}_setupContainer(){const ze=this._container;ze.classList.add("maplibregl-map");const L=this._canvasContainer=n.create("div","maplibregl-canvas-container",ze);this._interactive&&L.classList.add("maplibregl-interactive"),this._canvas=n.create("canvas","maplibregl-canvas",L),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");const ne=this._containerDimensions(),Te=this._getClampedPixelRatio(ne[0],ne[1]);this._resizeCanvas(ne[0],ne[1],Te);const Se=this._controlContainer=n.create("div","maplibregl-control-container",ze),Re=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(ft=>{Re[ft]=n.create("div",`maplibregl-ctrl-${ft} `,Se)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ze,L,ne){this._canvas.width=Math.floor(ne*ze),this._canvas.height=Math.floor(ne*L),this._canvas.style.width=`${ze}px`,this._canvas.style.height=`${L}px`}_setupPainter(){const ze={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let L=null;this._canvas.addEventListener("webglcontextcreationerror",Te=>{L={requestedAttributes:ze},Te&&(L.statusMessage=Te.statusMessage,L.type=Te.type)},{once:!0});const ne=this._canvas.getContext("webgl2",ze)||this._canvas.getContext("webgl",ze);if(!ne){const Te="Failed to initialize WebGL";throw L?(L.message=Te,new Error(JSON.stringify(L))):new Error(Te)}this.painter=new tc(ne,this.transform),s.testSupport(ne)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ze){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ze,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ze){return this._update(),this._renderTaskQueue.add(ze)}_cancelRenderFrame(ze){this._renderTaskQueue.remove(ze)}_render(ze){const L=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ze),this._removed)return;let ne=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const Se=this.transform.zoom,Re=o.now();this.style.zoomHistory.update(Se,Re);const ft=new t.z(Se,{now:Re,fadeDuration:L,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),xt=ft.crossFadingFactor();xt===1&&xt===this._crossFadingFactor||(ne=!0,this._crossFadingFactor=xt),this.style.update(ft)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,L,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:L,showPadding:this.showPadding}),this.fire(new t.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,t.bf.mark(t.bg.load),this.fire(new t.k("load"))),this.style&&(this.style.hasTransitions()||ne)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const Te=this._sourcesDirty||this._styleDirty||this._placementDirty;return Te||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.k("idle")),!this._loaded||this._fullyLoaded||Te||(this._fullyLoaded=!0,t.bf.mark(t.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ze;this._hash&&this._hash.remove();for(const ne of this._controls)ne.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),l.removeThrottleControl(this._imageQueueHandle),(ze=this._resizeObserver)===null||ze===void 0||ze.disconnect();const L=this.painter.context.gl.getExtension("WEBGL_lose_context");L?.loseContext&&L.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),n.remove(this._canvasContainer),n.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),t.bf.clearMetrics(),this._removed=!0,this.fire(new t.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,o.frameAsync(this._frameRequest).then(ze=>{t.bf.frame(ze),this._frameRequest=null,this._render(ze)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ze){this._showTileBoundaries!==ze&&(this._showTileBoundaries=ze,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ze){this._showPadding!==ze&&(this._showPadding=ze,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ze){this._showCollisionBoxes!==ze&&(this._showCollisionBoxes=ze,ze?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ze){this._showOverdrawInspector!==ze&&(this._showOverdrawInspector=ze,this._update())}get repaint(){return!!this._repaint}set repaint(ze){this._repaint!==ze&&(this._repaint=ze,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ze){this._vertices=ze,this._update()}get version(){return sl}getCameraTargetElevation(){return this.transform.elevation}},e.MapMouseEvent=Rl,e.MapTouchEvent=pc,e.MapWheelEvent=ef,e.Marker=$l,e.NavigationControl=class{constructor(ze){this._updateZoomButtons=()=>{const L=this._map.getZoom(),ne=L===this._map.getMaxZoom(),Te=L===this._map.getMinZoom();this._zoomInButton.disabled=ne,this._zoomOutButton.disabled=Te,this._zoomInButton.setAttribute("aria-disabled",ne.toString()),this._zoomOutButton.setAttribute("aria-disabled",Te.toString())},this._rotateCompassArrow=()=>{const L=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=L},this._setButtonTitle=(L,ne)=>{const Te=this._map._getUIString(`NavigationControl.${ne}`);L.title=Te,L.setAttribute("aria-label",Te)},this.options=t.e({},wi,ze),this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",L=>L.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",L=>this._map.zoomIn({},{originalEvent:L})),n.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",L=>this._map.zoomOut({},{originalEvent:L})),n.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",L=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:L}):this._map.resetNorth({},{originalEvent:L})}),this._compassIcon=n.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ze){return this._map=ze,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new go(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ze,L){const ne=n.create("button",ze,this._container);return ne.type="button",ne.addEventListener("click",L),ne}},e.Popup=class extends t.E{constructor(ze){super(),this.remove=()=>(this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new t.k("close"))),this),this._onMouseUp=L=>{this._update(L.point)},this._onMouseMove=L=>{this._update(L.point)},this._onDrag=L=>{this._update(L.point)},this._update=L=>{var ne;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=n.create("div","maplibregl-popup",this._map.getContainer()),this._tip=n.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const xt of this.options.className.split(" "))this._container.classList.add(xt);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?os(this._lngLat,this._flatPos,this._map.transform):(ne=this._lngLat)===null||ne===void 0?void 0:ne.wrap(),this._trackPointer&&!L)return;const Te=this._flatPos=this._pos=this._trackPointer&&L?L:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&L?L:this._map.transform.locationPoint(this._lngLat));let Se=this.options.anchor;const Re=du(this.options.offset);if(!Se){const xt=this._container.offsetWidth,Dt=this._container.offsetHeight;let er;er=Te.y+Re.bottom.ythis._map.transform.height-Dt?["bottom"]:[],Te.xthis._map.transform.width-xt/2&&er.push("right"),Se=er.length===0?"bottom":er.join("-")}let ft=Te.add(Re[Se]);this.options.subpixelPositioning||(ft=ft.round()),n.setTransform(this._container,`${Hl[Se]} translate(${ft.x}px,${ft.y}px)`),Wl(this._container,Se,"popup")},this._onClose=()=>{this.remove()},this.options=t.e(Object.create(io),ze)}addTo(ze){return this._map&&this.remove(),this._map=ze,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new t.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ze){return this._lngLat=t.N.convert(ze),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ze){return this.setDOMContent(document.createTextNode(ze))}setHTML(ze){const L=document.createDocumentFragment(),ne=document.createElement("body");let Te;for(ne.innerHTML=ze;Te=ne.firstChild,Te;)L.appendChild(Te);return this.setDOMContent(L)}getMaxWidth(){var ze;return(ze=this._container)===null||ze===void 0?void 0:ze.style.maxWidth}setMaxWidth(ze){return this.options.maxWidth=ze,this._update(),this}setDOMContent(ze){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ze),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ze){return this._container&&this._container.classList.add(ze),this}removeClassName(ze){return this._container&&this._container.classList.remove(ze),this}setOffset(ze){return this.options.offset=ze,this._update(),this}toggleClassName(ze){if(this._container)return this._container.classList.toggle(ze)}setSubpixelPositioning(ze){this.options.subpixelPositioning=ze}_createCloseButton(){this.options.closeButton&&(this._closeButton=n.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const ze=this._container.querySelector(Yu);ze&&ze.focus()}},e.RasterDEMTileSource=Pe,e.RasterTileSource=Ae,e.ScaleControl=class{constructor(ze){this._onMove=()=>{Zu(this._map,this._container,this.options)},this.setUnit=L=>{this.options.unit=L,Zu(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},ll),ze)}getDefaultPosition(){return"bottom-left"}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ze.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},e.ScrollZoomHandler=ma,e.Style=Hr,e.TerrainControl=class{constructor(ze){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ze}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=n.create("button","maplibregl-ctrl-terrain",this._container),n.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){n.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},e.TwoFingersTouchPitchHandler=Zc,e.TwoFingersTouchRotateHandler=nc,e.TwoFingersTouchZoomHandler=Yl,e.TwoFingersTouchZoomRotateHandler=_n,e.VectorTileSource=xe,e.VideoSource=tt,e.addSourceType=(ze,L)=>t._(void 0,void 0,void 0,function*(){if(Me(ze))throw new Error(`A source type called "${ze}" already exists.`);((ne,Te)=>{Ze[ne]=Te})(ze,L)}),e.clearPrewarmedResources=function(){const ze=le;ze&&(ze.isPreloaded()&&ze.numActive()===1?(ze.release(te),le=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},e.getMaxParallelImageRequests=function(){return t.a.MAX_PARALLEL_IMAGE_REQUESTS},e.getRTLTextPluginStatus=function(){return et().getRTLTextPluginStatus()},e.getVersion=function(){return iu},e.getWorkerCount=function(){return ue.workerCount},e.getWorkerUrl=function(){return t.a.WORKER_URL},e.importScriptInWorkers=function(ze){return Z().broadcast("IS",ze)},e.prewarm=function(){J().acquire(te)},e.setMaxParallelImageRequests=function(ze){t.a.MAX_PARALLEL_IMAGE_REQUESTS=ze},e.setRTLTextPlugin=function(ze,L){return et().setRTLTextPlugin(ze,L)},e.setWorkerCount=function(ze){ue.workerCount=ze},e.setWorkerUrl=function(ze){t.a.WORKER_URL=ze}});var E=h;return E})}}),aD=He({"src/plots/map/layers.js"(Y,H){var h=Qr(),x=jl().sanitizeHTML,A=iA(),E=cp();function e(o,n){this.subplot=o,this.uid=o.uid+"-"+n,this.index=n,this.idSource="source-"+this.uid,this.idLayer=E.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var t=e.prototype;t.update=function(n){this.visible?this.needsNewImage(n)?this.updateImage(n):this.needsNewSource(n)?(this.removeLayer(),this.updateSource(n),this.updateLayer(n)):this.needsNewLayer(n)?this.updateLayer(n):this.updateStyle(n):(this.updateSource(n),this.updateLayer(n)),this.visible=r(n)},t.needsNewImage=function(o){var n=this.subplot.map;return n.getSource(this.idSource)&&this.sourceType==="image"&&o.sourcetype==="image"&&(this.source!==o.source||JSON.stringify(this.coordinates)!==JSON.stringify(o.coordinates))},t.needsNewSource=function(o){return this.sourceType!==o.sourcetype||JSON.stringify(this.source)!==JSON.stringify(o.source)||this.layerType!==o.type},t.needsNewLayer=function(o){return this.layerType!==o.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},t.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},t.updateImage=function(o){var n=this.subplot.map;n.getSource(this.idSource).updateImage({url:o.source,coordinates:o.coordinates});var s=this.findFollowingMapLayerId(this.lookupBelow());s!==null&&this.subplot.map.moveLayer(this.idLayer,s)},t.updateSource=function(o){var n=this.subplot.map;if(n.getSource(this.idSource)&&n.removeSource(this.idSource),this.sourceType=o.sourcetype,this.source=o.source,!!r(o)){var s=a(o);n.addSource(this.idSource,s)}},t.findFollowingMapLayerId=function(o){if(o==="traces")for(var n=this.subplot.getMapLayers(),s=0;s0){for(var s=0;s0}function i(o){var n={},s={};switch(o.type){case"circle":h.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":h.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":h.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var c=o.symbol,f=A(c.textposition,c.iconsize);h.extendFlat(n,{"icon-image":c.icon+"-15","icon-size":c.iconsize/10,"text-field":c.text,"text-size":c.textfont.size,"text-anchor":f.anchor,"text-offset":f.offset,"symbol-placement":c.placement}),h.extendFlat(s,{"icon-color":o.color,"text-color":c.textfont.color,"text-opacity":o.opacity});break;case"raster":h.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:n,paint:s}}function a(o){var n=o.sourcetype,s=o.source,c={type:n},f;return n==="geojson"?f="data":n==="vector"?f=typeof s=="string"?"url":"tiles":n==="raster"?(f="tiles",c.tileSize=256):n==="image"&&(f="url",c.coordinates=o.coordinates),c[f]=s,o.sourceattribution&&(c.attribution=x(o.sourceattribution)),c}H.exports=function(n,s,c){var f=new e(n,s);return f.update(c),f}}}),nD=He({"src/plots/map/map.js"(Y,H){var h=rD(),x=Qr(),A=op(),E=qi(),e=wo(),t=ph(),r=xc(),i=yv(),a=i.drawMode,o=i.selectMode,n=Uc().prepSelect,s=Uc().clearOutline,c=Uc().clearSelectionsCache,f=Uc().selectOnClick,p=cp(),v=aD();function T(_,b){this.id=b,this.gd=_;var d=_._fullLayout,u=_._context;this.container=d._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=d._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(d),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=T.prototype;l.plot=function(_,b,d){var u=this,g;u.map?g=new Promise(function(y,R){u.updateMap(_,b,y,R)}):g=new Promise(function(y,R){u.createMap(_,b,y,R)}),d.push(g)},l.createMap=function(_,b,d,u){var g=this,y=b[g.id],R=g.styleObj=w(y.style),I=y.bounds,z=I?[[I.west,I.south],[I.east,I.north]]:null,F=g.map=new h.Map({container:g.div,style:R.style,center:M(y.center),zoom:y.zoom,bearing:y.bearing,pitch:y.pitch,maxBounds:z,interactive:!g.isStatic,preserveDrawingBuffer:g.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new h.AttributionControl({compact:!0})),B={};F.on("styleimagemissing",function(P){var N=P.id;if(!B[N]&&N.includes("-15")){B[N]=!0;var U=new Image(15,15);U.onload=function(){F.addImage(N,U)},U.crossOrigin="Anonymous",U.src="https://unpkg.com/maki@2.1.0/icons/"+N+".svg"}}),F.setTransformRequest(function(P){return P=P.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),P=P.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),P=P.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:P}}),F._canvas.style.left="0px",F._canvas.style.top="0px",g.rejectOnError(u),g.isStatic||g.initFx(_,b);var O=[];O.push(new Promise(function(P){F.once("load",P)})),O=O.concat(A.fetchTraceGeoData(_)),Promise.all(O).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.updateMap=function(_,b,d,u){var g=this,y=g.map,R=b[this.id];g.rejectOnError(u);var I=[],z=w(R.style);JSON.stringify(g.styleObj)!==JSON.stringify(z)&&(g.styleObj=z,y.setStyle(z.style),g.traceHash={},I.push(new Promise(function(F){y.once("styledata",F)}))),I=I.concat(A.fetchTraceGeoData(_)),Promise.all(I).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.fillBelowLookup=function(_,b){var d=b[this.id],u=d.layers,g,y,R=this.belowLookup={},I=!1;for(g=0;g<_.length;g++){var z=_[g][0].trace,F=z._module;typeof z.below=="string"?y=z.below:F.getBelow&&(y=F.getBelow(z,this)),y===""&&(I=!0),R["trace-"+z.uid]=y||""}for(g=0;g1)for(g=0;g-1&&f(z.originalEvent,u,[d.xaxis],[d.yaxis],d.id,I),F.indexOf("event")>-1&&r.click(u,z.originalEvent)}}},l.updateFx=function(_){var b=this,d=b.map,u=b.gd;if(b.isStatic)return;function g(z){var F=b.map.unproject(z);return[F.lng,F.lat]}var y=_.dragmode,R;R=function(z,F){if(F.isRect){var B=z.range={};B[b.id]=[g([F.xmin,F.ymin]),g([F.xmax,F.ymax])]}else{var O=z.lassoPoints={};O[b.id]=F.map(g)}};var I=b.dragOptions;b.dragOptions=x.extendDeep(I||{},{dragmode:_.dragmode,element:b.div,gd:u,plotinfo:{id:b.id,domain:_[b.id].domain,xaxis:b.xaxis,yaxis:b.yaxis,fillRangeItems:R},xaxes:[b.xaxis],yaxes:[b.yaxis],subplot:b.id}),d.off("click",b.onClickInPanHandler),o(y)||a(y)?(d.dragPan.disable(),d.on("zoomstart",b.clearOutline),b.dragOptions.prepFn=function(z,F,B){n(z,F,B,b.dragOptions,y)},t.init(b.dragOptions)):(d.dragPan.enable(),d.off("zoomstart",b.clearOutline),b.div.onmousedown=null,b.div.ontouchstart=null,b.div.removeEventListener("touchstart",b.div._ontouchstart),b.onClickInPanHandler=b.onClickInPanFn(b.dragOptions),d.on("click",b.onClickInPanHandler))},l.updateFramework=function(_){var b=_[this.id].domain,d=_._size,u=this.div.style;u.width=d.w*(b.x[1]-b.x[0])+"px",u.height=d.h*(b.y[1]-b.y[0])+"px",u.left=d.l+b.x[0]*d.w+"px",u.top=d.t+(1-b.y[1])*d.h+"px",this.xaxis._offset=d.l+b.x[0]*d.w,this.xaxis._length=d.w*(b.x[1]-b.x[0]),this.yaxis._offset=d.t+(1-b.y[1])*d.h,this.yaxis._length=d.h*(b.y[1]-b.y[0])},l.updateLayers=function(_){var b=_[this.id],d=b.layers,u=this.layerList,g;if(d.length!==u.length){for(g=0;gd/2){var u=S.split("|").join("
");_.text(u).attr("data-unformatted",u).call(r.convertToTspans,o),b=t.bBox(_.node())}_.attr("transform",h(-3,-b.height+8)),M.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var g=1;b.width+6>d&&(g=d/(b.width+6));var y=[c.l+c.w*v.x[1],c.t+c.h*(1-v.y[0])];M.attr("transform",h(y[0],y[1])+x(g))}},Y.updateFx=function(o){for(var n=o._fullLayout,s=n._subplots[a],c=0;c=0;i--)t.removeLayer(r[i][1])},e.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},H.exports=function(r,i){var a=i[0].trace,o=new E(r,a.uid),n=o.sourceId,s=h(i),c=o.below=r.belowLookup["trace-"+a.uid];return r.map.addSource(n,{type:"geojson",data:s.geojson}),o._addLayers(s,c),i[0].trace._glTrace=o,o}}}),cD=He({"src/traces/choroplethmap/index.js"(Y,H){H.exports={attributes:oA(),supplyDefaults:lD(),colorbar:Zd(),calc:K_(),plot:uD(),hoverPoints:Q_(),eventData:ex(),selectPoints:tx(),styleOnSelect:function(h,x){if(x){var A=x[0].trace;A._glTrace.updateOnSelect(x)}},getBelow:function(h,x){for(var A=x.getMapLayers(),E=A.length-2;E>=0;E--){var e=A[E].id;if(typeof e=="string"&&e.indexOf("water")===0){for(var t=E+1;t0?+v[f]:0),c.push({type:"Feature",geometry:{type:"Point",coordinates:w},properties:S})}}var _=E.extractOpts(a),b=_.reversescale?E.flipScale(_.colorscale):_.colorscale,d=b[0][1],u=A.opacity(d)<1?d:A.addOpacity(d,0),g=["interpolate",["linear"],["heatmap-density"],0,u];for(f=1;f=0;r--)e.removeLayer(t[r][1])},E.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},H.exports=function(t,r){var i=r[0].trace,a=new A(t,i.uid),o=a.sourceId,n=h(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(o,{type:"geojson",data:n.geojson}),a._addLayers(n,s),a}}}),gD=He({"src/traces/densitymap/hover.js"(Y,H){var h=wo(),x=mx().hoverPoints,A=mx().getExtraText;H.exports=function(e,t,r){var i=x(e,t,r);if(i){var a=i[0],o=a.cd,n=o[0].trace,s=o[a.index];if(delete a.color,"z"in s){var c=a.subplot.mockAxis;a.z=s.z,a.zLabel=h.tickText(c,c.c2l(s.z),"hover").text}return a.extraText=A(n,s,o[0].t.labels),[a]}}}}),mD=He({"src/traces/densitymap/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x.z=A.z,x}}}),yD=He({"src/traces/densitymap/index.js"(Y,H){H.exports={attributes:lA(),supplyDefaults:hD(),colorbar:Zd(),formatLabels:nA(),calc:vD(),plot:pD(),hoverPoints:gD(),eventData:mD(),getBelow:function(h,x){for(var A=x.getMapLayers(),E=0;E0;){l=w[w.length-1];var S=x[l];if(r[l]=0&&a[l].push(i[_])}r[l]=M}else{if(e[l]===E[l]){for(var b=[],d=[],u=0,M=m.length-1;M>=0;--M){var g=m[M];if(t[g]=!1,b.push(g),d.push(a[g]),u+=a[g].length,i[g]=s.length,g===l){m.length=M;break}}s.push(b);for(var y=new Array(u),M=0;M_&&(_=n.source[m]),n.target[m]>_&&(_=n.target[m]);var b=_+1;a.node._count=b;var d,u=a.node.groups,g={};for(m=0;m0&&e(B,b)&&e(O,b)&&!(g.hasOwnProperty(B)&&g.hasOwnProperty(O)&&g[B]===g[O])){g.hasOwnProperty(O)&&(O=g[O]),g.hasOwnProperty(B)&&(B=g[B]),B=+B,O=+O,v[B]=v[O]=!0;var P="";n.label&&n.label[m]&&(P=n.label[m]);var N=null;P&&T.hasOwnProperty(P)&&(N=T[P]),s.push({pointNumber:m,label:P,color:c?n.color[m]:n.color,hovercolor:f?n.hovercolor[m]:n.hovercolor,customdata:p?n.customdata[m]:n.customdata,concentrationscale:N,source:B,target:O,value:+F}),z.source.push(B),z.target.push(O)}}var U=b+u.length,X=E(o.color),te=E(o.customdata),ue=[];for(m=0;mb-1,childrenNodes:[],pointNumber:m,label:ie,color:X?o.color[m]:o.color,customdata:te?o.customdata[m]:o.customdata})}var le=!1;return i(U,z.source,z.target)&&(le=!0),{circular:le,links:s,nodes:ue,groups:u,groupLookup:g}}function i(a,o,n){for(var s=x.init2dArray(a,0),c=0;c1})}H.exports=function(o,n){var s=r(n);return A({circular:s.circular,_nodes:s.nodes,_links:s.links,_groups:s.groups,_groupLookup:s.groupLookup})}}}),wD=He({"node_modules/d3-quadtree/dist/d3-quadtree.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(b){var d=+this._x.call(null,b),u=+this._y.call(null,b);return A(this.cover(d,u),d,u,b)}function A(b,d,u,g){if(isNaN(d)||isNaN(u))return b;var y,R=b._root,I={data:g},z=b._x0,F=b._y0,B=b._x1,O=b._y1,P,N,U,X,te,ue,ie,le;if(!R)return b._root=I,b;for(;R.length;)if((te=d>=(P=(z+B)/2))?z=P:B=P,(ue=u>=(N=(F+O)/2))?F=N:O=N,y=R,!(R=R[ie=ue<<1|te]))return y[ie]=I,b;if(U=+b._x.call(null,R.data),X=+b._y.call(null,R.data),d===U&&u===X)return I.next=R,y?y[ie]=I:b._root=I,b;do y=y?y[ie]=new Array(4):b._root=new Array(4),(te=d>=(P=(z+B)/2))?z=P:B=P,(ue=u>=(N=(F+O)/2))?F=N:O=N;while((ie=ue<<1|te)===(le=(X>=N)<<1|U>=P));return y[le]=R,y[ie]=I,b}function E(b){var d,u,g=b.length,y,R,I=new Array(g),z=new Array(g),F=1/0,B=1/0,O=-1/0,P=-1/0;for(u=0;uO&&(O=y),RP&&(P=R));if(F>O||B>P)return this;for(this.cover(F,B).cover(O,P),u=0;ub||b>=y||g>d||d>=R;)switch(B=(dO||(z=X.y0)>P||(F=X.x1)=ie)<<1|b>=ue)&&(X=N[N.length-1],N[N.length-1]=N[N.length-1-te],N[N.length-1-te]=X)}else{var le=b-+this._x.call(null,U.data),q=d-+this._y.call(null,U.data),J=le*le+q*q;if(J=(N=(I+F)/2))?I=N:F=N,(te=P>=(U=(z+B)/2))?z=U:B=U,d=u,!(u=u[ue=te<<1|X]))return this;if(!u.length)break;(d[ue+1&3]||d[ue+2&3]||d[ue+3&3])&&(g=d,ie=ue)}for(;u.data!==b;)if(y=u,!(u=u.next))return this;return(R=u.next)&&delete u.next,y?(R?y.next=R:delete y.next,this):d?(R?d[ue]=R:delete d[ue],(u=d[0]||d[1]||d[2]||d[3])&&u===(d[3]||d[2]||d[1]||d[0])&&!u.length&&(g?g[ie]=u:this._root=u),this):(this._root=R,this)}function n(b){for(var d=0,u=b.length;d=v.length)return l!=null&&_.sort(l),m!=null?m(_):_;for(var g=-1,y=_.length,R=v[b++],I,z,F=E(),B,O=d();++gv.length)return _;var d,u=T[b-1];return m!=null&&b>=v.length?d=_.entries():(d=[],_.each(function(g,y){d.push({key:y,values:M(g,b)})})),u!=null?d.sort(function(g,y){return u(g.key,y.key)}):d}return w={object:function(_){return S(_,0,t,r)},map:function(_){return S(_,0,i,a)},entries:function(_){return M(S(_,0,i,a),0)},key:function(_){return v.push(_),w},sortKeys:function(_){return T[v.length-1]=_,w},sortValues:function(_){return l=_,w},rollup:function(_){return m=_,w}}}function t(){return{}}function r(v,T,l){v[T]=l}function i(){return E()}function a(v,T,l){v.set(T,l)}function o(){}var n=E.prototype;o.prototype=s.prototype={constructor:o,has:n.has,add:function(v){return v+="",this[x+v]=v,this},remove:n.remove,clear:n.clear,values:n.keys,size:n.size,empty:n.empty,each:n.each};function s(v,T){var l=new o;if(v instanceof o)v.each(function(S){l.add(S)});else if(v){var m=-1,w=v.length;if(T==null)for(;++m=0&&(n=o.slice(s+1),o=o.slice(0,s)),o&&!a.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:n}})}E.prototype=A.prototype={constructor:E,on:function(i,a){var o=this._,n=e(i+"",o),s,c=-1,f=n.length;if(arguments.length<2){for(;++c0)for(var o=new Array(s),n=0,s,c;n=0&&b._call.call(null,d),b=b._next;--x}function l(){a=(i=n.now())+o,x=A=0;try{T()}finally{x=0,w(),a=0}}function m(){var b=n.now(),d=b-i;d>e&&(o-=d,i=b)}function w(){for(var b,d=t,u,g=1/0;d;)d._call?(g>d._time&&(g=d._time),b=d,d=d._next):(u=d._next,d._next=null,d=b?b._next=u:t=u);r=b,S(g)}function S(b){if(!x){A&&(A=clearTimeout(A));var d=b-a;d>24?(b<1/0&&(A=setTimeout(l,b-n.now()-o)),E&&(E=clearInterval(E))):(E||(i=n.now(),E=setInterval(m,e)),x=1,s(l))}}function M(b,d,u){var g=new p;return d=d==null?0:+d,g.restart(function(y){g.stop(),b(y+d)},d,u),g}function _(b,d,u){var g=new p,y=d;return d==null?(g.restart(b,d,u),g):(d=+d,u=u==null?c():+u,g.restart(function R(I){I+=y,g.restart(R,y+=d,u),b(I)},d,u),g)}h.interval=_,h.now=c,h.timeout=M,h.timer=v,h.timerFlush=T,Object.defineProperty(h,"__esModule",{value:!0})})}}),SD=He({"node_modules/d3-force/dist/d3-force.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,wD(),_x(),TD(),AD()):x(h.d3=h.d3||{},h.d3,h.d3,h.d3,h.d3)})(Y,function(h,x,A,E,e){function t(b,d){var u;b==null&&(b=0),d==null&&(d=0);function g(){var y,R=u.length,I,z=0,F=0;for(y=0;yP.index){var re=N-se.x-se.vx,ae=U-se.y-se.vy,fe=re*re+ae*ae;feN+V||eeU+V||ZF.r&&(F.r=F[B].r)}function z(){if(d){var F,B=d.length,O;for(u=new Array(B),F=0;F1?(te==null?z.remove(X):z.set(X,U(te)),d):z.get(X)},find:function(X,te,ue){var ie=0,le=b.length,q,J,ee,Z,se;for(ue==null?ue=1/0:ue*=ue,ie=0;ie1?(B.on(X,te),d):B.on(X)}}}function w(){var b,d,u,g=r(-30),y,R=1,I=1/0,z=.81;function F(N){var U,X=b.length,te=x.quadtree(b,p,v).visitAfter(O);for(u=N,U=0;U=I)return;(N.data!==d||N.next)&&(ue===0&&(ue=i(),q+=ue*ue),ie===0&&(ie=i(),q+=ie*ie),qE)if(!(Math.abs(l*p-v*T)>E)||!s)this._+="L"+(this._x1=i)+","+(this._y1=a);else{var w=o-c,S=n-f,M=p*p+v*v,_=w*w+S*S,b=Math.sqrt(M),d=Math.sqrt(m),u=s*Math.tan((x-Math.acos((M+m-_)/(2*b*d)))/2),g=u/d,y=u/b;Math.abs(g-1)>E&&(this._+="L"+(i+g*T)+","+(a+g*l)),this._+="A"+s+","+s+",0,0,"+ +(l*w>T*S)+","+(this._x1=i+y*p)+","+(this._y1=a+y*v)}},arc:function(i,a,o,n,s,c){i=+i,a=+a,o=+o,c=!!c;var f=o*Math.cos(n),p=o*Math.sin(n),v=i+f,T=a+p,l=1^c,m=c?n-s:s-n;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+v+","+T:(Math.abs(this._x1-v)>E||Math.abs(this._y1-T)>E)&&(this._+="L"+v+","+T),o&&(m<0&&(m=m%A+A),m>e?this._+="A"+o+","+o+",0,1,"+l+","+(i-f)+","+(a-p)+"A"+o+","+o+",0,1,"+l+","+(this._x1=v)+","+(this._y1=T):m>E&&(this._+="A"+o+","+o+",0,"+ +(m>=x)+","+l+","+(this._x1=i+o*Math.cos(s))+","+(this._y1=a+o*Math.sin(s))))},rect:function(i,a,o,n){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +o+"v"+ +n+"h"+-o+"Z"},toString:function(){return this._}},h.path=r,Object.defineProperty(h,"__esModule",{value:!0})})}}),fA=He({"node_modules/d3-shape/dist/d3-shape.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,MD()):(h=h||self,x(h.d3=h.d3||{},h.d3))})(Y,function(h,x){function A(At){return function(){return At}}var E=Math.abs,e=Math.atan2,t=Math.cos,r=Math.max,i=Math.min,a=Math.sin,o=Math.sqrt,n=1e-12,s=Math.PI,c=s/2,f=2*s;function p(At){return At>1?0:At<-1?s:Math.acos(At)}function v(At){return At>=1?c:At<=-1?-c:Math.asin(At)}function T(At){return At.innerRadius}function l(At){return At.outerRadius}function m(At){return At.startAngle}function w(At){return At.endAngle}function S(At){return At&&At.padAngle}function M(At,or,Ar,oa,ga,Sa,za,ra){var Ta=Ar-At,Fn=oa-or,mn=za-ga,Kn=ra-Sa,ui=Kn*Ta-mn*Fn;if(!(ui*uics*cs+ks*ks&&(Ri=So,xo=bo),{cx:Ri,cy:xo,x01:-mn,y01:-Kn,x11:Ri*(ga/gs-1),y11:xo*(ga/gs-1)}}function b(){var At=T,or=l,Ar=A(0),oa=null,ga=m,Sa=w,za=S,ra=null;function Ta(){var Fn,mn,Kn=+At.apply(this,arguments),ui=+or.apply(this,arguments),pi=ga.apply(this,arguments)-c,vi=Sa.apply(this,arguments)-c,Li=E(vi-pi),Ni=vi>pi;if(ra||(ra=Fn=x.path()),uin))ra.moveTo(0,0);else if(Li>f-n)ra.moveTo(ui*t(pi),ui*a(pi)),ra.arc(0,0,ui,pi,vi,!Ni),Kn>n&&(ra.moveTo(Kn*t(vi),Kn*a(vi)),ra.arc(0,0,Kn,vi,pi,Ni));else{var ci=pi,bi=vi,ho=pi,Bo=vi,gs=Li,ro=Li,Ei=za.apply(this,arguments)/2,Ri=Ei>n&&(oa?+oa.apply(this,arguments):o(Kn*Kn+ui*ui)),xo=i(E(ui-Kn)/2,+Ar.apply(this,arguments)),So=xo,bo=xo,Ui,no;if(Ri>n){var cs=v(Ri/Kn*a(Ei)),ks=v(Ri/ui*a(Ei));(gs-=cs*2)>n?(cs*=Ni?1:-1,ho+=cs,Bo-=cs):(gs=0,ho=Bo=(pi+vi)/2),(ro-=ks*2)>n?(ks*=Ni?1:-1,ci+=ks,bi-=ks):(ro=0,ci=bi=(pi+vi)/2)}var ms=ui*t(ci),Mo=ui*a(ci),kn=Kn*t(Bo),fi=Kn*a(Bo);if(xo>n){var Fs=ui*t(bi),Ss=ui*a(bi),Gi=Kn*t(ho),js=Kn*a(ho),No;if(Lin?bo>n?(Ui=_(Gi,js,ms,Mo,ui,bo,Ni),no=_(Fs,Ss,kn,fi,ui,bo,Ni),ra.moveTo(Ui.cx+Ui.x01,Ui.cy+Ui.y01),bon)||!(gs>n)?ra.lineTo(kn,fi):So>n?(Ui=_(kn,fi,Fs,Ss,Kn,-So,Ni),no=_(ms,Mo,Gi,js,Kn,-So,Ni),ra.lineTo(Ui.cx+Ui.x01,Ui.cy+Ui.y01),So=ui;--pi)ra.point(bi[pi],ho[pi]);ra.lineEnd(),ra.areaEnd()}Ni&&(bi[Kn]=+At(Li,Kn,mn),ho[Kn]=+Ar(Li,Kn,mn),ra.point(or?+or(Li,Kn,mn):bi[Kn],oa?+oa(Li,Kn,mn):ho[Kn]))}if(ci)return ra=null,ci+""||null}function Fn(){return R().defined(ga).curve(za).context(Sa)}return Ta.x=function(mn){return arguments.length?(At=typeof mn=="function"?mn:A(+mn),or=null,Ta):At},Ta.x0=function(mn){return arguments.length?(At=typeof mn=="function"?mn:A(+mn),Ta):At},Ta.x1=function(mn){return arguments.length?(or=mn==null?null:typeof mn=="function"?mn:A(+mn),Ta):or},Ta.y=function(mn){return arguments.length?(Ar=typeof mn=="function"?mn:A(+mn),oa=null,Ta):Ar},Ta.y0=function(mn){return arguments.length?(Ar=typeof mn=="function"?mn:A(+mn),Ta):Ar},Ta.y1=function(mn){return arguments.length?(oa=mn==null?null:typeof mn=="function"?mn:A(+mn),Ta):oa},Ta.lineX0=Ta.lineY0=function(){return Fn().x(At).y(Ar)},Ta.lineY1=function(){return Fn().x(At).y(oa)},Ta.lineX1=function(){return Fn().x(or).y(Ar)},Ta.defined=function(mn){return arguments.length?(ga=typeof mn=="function"?mn:A(!!mn),Ta):ga},Ta.curve=function(mn){return arguments.length?(za=mn,Sa!=null&&(ra=za(Sa)),Ta):za},Ta.context=function(mn){return arguments.length?(mn==null?Sa=ra=null:ra=za(Sa=mn),Ta):Sa},Ta}function z(At,or){return orAt?1:or>=At?0:NaN}function F(At){return At}function B(){var At=F,or=z,Ar=null,oa=A(0),ga=A(f),Sa=A(0);function za(ra){var Ta,Fn=ra.length,mn,Kn,ui=0,pi=new Array(Fn),vi=new Array(Fn),Li=+oa.apply(this,arguments),Ni=Math.min(f,Math.max(-f,ga.apply(this,arguments)-Li)),ci,bi=Math.min(Math.abs(Ni)/Fn,Sa.apply(this,arguments)),ho=bi*(Ni<0?-1:1),Bo;for(Ta=0;Ta0&&(ui+=Bo);for(or!=null?pi.sort(function(gs,ro){return or(vi[gs],vi[ro])}):Ar!=null&&pi.sort(function(gs,ro){return Ar(ra[gs],ra[ro])}),Ta=0,Kn=ui?(Ni-Fn*ho)/ui:0;Ta0?Bo*Kn:0)+ho,vi[mn]={data:ra[mn],index:Ta,value:Bo,startAngle:Li,endAngle:ci,padAngle:bi};return vi}return za.value=function(ra){return arguments.length?(At=typeof ra=="function"?ra:A(+ra),za):At},za.sortValues=function(ra){return arguments.length?(or=ra,Ar=null,za):or},za.sort=function(ra){return arguments.length?(Ar=ra,or=null,za):Ar},za.startAngle=function(ra){return arguments.length?(oa=typeof ra=="function"?ra:A(+ra),za):oa},za.endAngle=function(ra){return arguments.length?(ga=typeof ra=="function"?ra:A(+ra),za):ga},za.padAngle=function(ra){return arguments.length?(Sa=typeof ra=="function"?ra:A(+ra),za):Sa},za}var O=N(u);function P(At){this._curve=At}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(At,or){this._curve.point(or*Math.sin(At),or*-Math.cos(At))}};function N(At){function or(Ar){return new P(At(Ar))}return or._curve=At,or}function U(At){var or=At.curve;return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At.curve=function(Ar){return arguments.length?or(N(Ar)):or()._curve},At}function X(){return U(R().curve(O))}function te(){var At=I().curve(O),or=At.curve,Ar=At.lineX0,oa=At.lineX1,ga=At.lineY0,Sa=At.lineY1;return At.angle=At.x,delete At.x,At.startAngle=At.x0,delete At.x0,At.endAngle=At.x1,delete At.x1,At.radius=At.y,delete At.y,At.innerRadius=At.y0,delete At.y0,At.outerRadius=At.y1,delete At.y1,At.lineStartAngle=function(){return U(Ar())},delete At.lineX0,At.lineEndAngle=function(){return U(oa())},delete At.lineX1,At.lineInnerRadius=function(){return U(ga())},delete At.lineY0,At.lineOuterRadius=function(){return U(Sa())},delete At.lineY1,At.curve=function(za){return arguments.length?or(N(za)):or()._curve},At}function ue(At,or){return[(or=+or)*Math.cos(At-=Math.PI/2),or*Math.sin(At)]}var ie=Array.prototype.slice;function le(At){return At.source}function q(At){return At.target}function J(At){var or=le,Ar=q,oa=g,ga=y,Sa=null;function za(){var ra,Ta=ie.call(arguments),Fn=or.apply(this,Ta),mn=Ar.apply(this,Ta);if(Sa||(Sa=ra=x.path()),At(Sa,+oa.apply(this,(Ta[0]=Fn,Ta)),+ga.apply(this,Ta),+oa.apply(this,(Ta[0]=mn,Ta)),+ga.apply(this,Ta)),ra)return Sa=null,ra+""||null}return za.source=function(ra){return arguments.length?(or=ra,za):or},za.target=function(ra){return arguments.length?(Ar=ra,za):Ar},za.x=function(ra){return arguments.length?(oa=typeof ra=="function"?ra:A(+ra),za):oa},za.y=function(ra){return arguments.length?(ga=typeof ra=="function"?ra:A(+ra),za):ga},za.context=function(ra){return arguments.length?(Sa=ra??null,za):Sa},za}function ee(At,or,Ar,oa,ga){At.moveTo(or,Ar),At.bezierCurveTo(or=(or+oa)/2,Ar,or,ga,oa,ga)}function Z(At,or,Ar,oa,ga){At.moveTo(or,Ar),At.bezierCurveTo(or,Ar=(Ar+ga)/2,oa,Ar,oa,ga)}function se(At,or,Ar,oa,ga){var Sa=ue(or,Ar),za=ue(or,Ar=(Ar+ga)/2),ra=ue(oa,Ar),Ta=ue(oa,ga);At.moveTo(Sa[0],Sa[1]),At.bezierCurveTo(za[0],za[1],ra[0],ra[1],Ta[0],Ta[1])}function Q(){return J(ee)}function V(){return J(Z)}function re(){var At=J(se);return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At}var ae={draw:function(At,or){var Ar=Math.sqrt(or/s);At.moveTo(Ar,0),At.arc(0,0,Ar,0,f)}},fe={draw:function(At,or){var Ar=Math.sqrt(or/5)/2;At.moveTo(-3*Ar,-Ar),At.lineTo(-Ar,-Ar),At.lineTo(-Ar,-3*Ar),At.lineTo(Ar,-3*Ar),At.lineTo(Ar,-Ar),At.lineTo(3*Ar,-Ar),At.lineTo(3*Ar,Ar),At.lineTo(Ar,Ar),At.lineTo(Ar,3*Ar),At.lineTo(-Ar,3*Ar),At.lineTo(-Ar,Ar),At.lineTo(-3*Ar,Ar),At.closePath()}},xe=Math.sqrt(1/3),Ae=xe*2,Pe={draw:function(At,or){var Ar=Math.sqrt(or/Ae),oa=Ar*xe;At.moveTo(0,-Ar),At.lineTo(oa,0),At.lineTo(0,Ar),At.lineTo(-oa,0),At.closePath()}},Ce=.8908130915292852,je=Math.sin(s/10)/Math.sin(7*s/10),at=Math.sin(f/10)*je,tt=-Math.cos(f/10)*je,Je={draw:function(At,or){var Ar=Math.sqrt(or*Ce),oa=at*Ar,ga=tt*Ar;At.moveTo(0,-Ar),At.lineTo(oa,ga);for(var Sa=1;Sa<5;++Sa){var za=f*Sa/5,ra=Math.cos(za),Ta=Math.sin(za);At.lineTo(Ta*Ar,-ra*Ar),At.lineTo(ra*oa-Ta*ga,Ta*oa+ra*ga)}At.closePath()}},Ze={draw:function(At,or){var Ar=Math.sqrt(or),oa=-Ar/2;At.rect(oa,oa,Ar,Ar)}},Me=Math.sqrt(3),we={draw:function(At,or){var Ar=-Math.sqrt(or/(Me*3));At.moveTo(0,Ar*2),At.lineTo(-Me*Ar,-Ar),At.lineTo(Me*Ar,-Ar),At.closePath()}},he=-.5,De=Math.sqrt(3)/2,et=1/Math.sqrt(12),nt=(et/2+1)*3,Ke={draw:function(At,or){var Ar=Math.sqrt(or/nt),oa=Ar/2,ga=Ar*et,Sa=oa,za=Ar*et+Ar,ra=-Sa,Ta=za;At.moveTo(oa,ga),At.lineTo(Sa,za),At.lineTo(ra,Ta),At.lineTo(he*oa-De*ga,De*oa+he*ga),At.lineTo(he*Sa-De*za,De*Sa+he*za),At.lineTo(he*ra-De*Ta,De*ra+he*Ta),At.lineTo(he*oa+De*ga,he*ga-De*oa),At.lineTo(he*Sa+De*za,he*za-De*Sa),At.lineTo(he*ra+De*Ta,he*Ta-De*ra),At.closePath()}},Et=[ae,fe,Pe,Ze,Je,we,Ke];function kt(){var At=A(ae),or=A(64),Ar=null;function oa(){var ga;if(Ar||(Ar=ga=x.path()),At.apply(this,arguments).draw(Ar,+or.apply(this,arguments)),ga)return Ar=null,ga+""||null}return oa.type=function(ga){return arguments.length?(At=typeof ga=="function"?ga:A(ga),oa):At},oa.size=function(ga){return arguments.length?(or=typeof ga=="function"?ga:A(+ga),oa):or},oa.context=function(ga){return arguments.length?(Ar=ga??null,oa):Ar},oa}function Ut(){}function Yt(At,or,Ar){At._context.bezierCurveTo((2*At._x0+At._x1)/3,(2*At._y0+At._y1)/3,(At._x0+2*At._x1)/3,(At._y0+2*At._y1)/3,(At._x0+4*At._x1+or)/6,(At._y0+4*At._y1+Ar)/6)}function vr(At){this._context=At}vr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Yt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function hr(At){return new vr(At)}function Rr(At){this._context=At}Rr.prototype={areaStart:Ut,areaEnd:Ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._x2=At,this._y2=or;break;case 1:this._point=2,this._x3=At,this._y3=or;break;case 2:this._point=3,this._x4=At,this._y4=or,this._context.moveTo((this._x0+4*this._x1+At)/6,(this._y0+4*this._y1+or)/6);break;default:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function dr(At){return new Rr(At)}function wr(At){this._context=At}wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Ar=(this._x0+4*this._x1+At)/6,oa=(this._y0+4*this._y1+or)/6;this._line?this._context.lineTo(Ar,oa):this._context.moveTo(Ar,oa);break;case 3:this._point=4;default:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function yt(At){return new wr(At)}function Fe(At,or){this._basis=new vr(At),this._beta=or}Fe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var At=this._x,or=this._y,Ar=At.length-1;if(Ar>0)for(var oa=At[0],ga=or[0],Sa=At[Ar]-oa,za=or[Ar]-ga,ra=-1,Ta;++ra<=Ar;)Ta=ra/Ar,this._basis.point(this._beta*At[ra]+(1-this._beta)*(oa+Ta*Sa),this._beta*or[ra]+(1-this._beta)*(ga+Ta*za));this._x=this._y=null,this._basis.lineEnd()},point:function(At,or){this._x.push(+At),this._y.push(+or)}};var We=function At(or){function Ar(oa){return or===1?new vr(oa):new Fe(oa,or)}return Ar.beta=function(oa){return At(+oa)},Ar}(.85);function Oe(At,or,Ar){At._context.bezierCurveTo(At._x1+At._k*(At._x2-At._x0),At._y1+At._k*(At._y2-At._y0),At._x2+At._k*(At._x1-or),At._y2+At._k*(At._y1-Ar),At._x2,At._y2)}function de(At,or){this._context=At,this._k=(1-or)/6}de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oe(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2,this._x1=At,this._y1=or;break;case 2:this._point=3;default:Oe(this,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var me=function At(or){function Ar(oa){return new de(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function be(At,or){this._context=At,this._k=(1-or)/6}be.prototype={areaStart:Ut,areaEnd:Ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._x3=At,this._y3=or;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=or);break;case 2:this._point=3,this._x5=At,this._y5=or;break;default:Oe(this,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var Ie=function At(or){function Ar(oa){return new be(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function Xe(At,or){this._context=At,this._k=(1-or)/6}Xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oe(this,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var ht=function At(or){function Ar(oa){return new Xe(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function bt(At,or,Ar){var oa=At._x1,ga=At._y1,Sa=At._x2,za=At._y2;if(At._l01_a>n){var ra=2*At._l01_2a+3*At._l01_a*At._l12_a+At._l12_2a,Ta=3*At._l01_a*(At._l01_a+At._l12_a);oa=(oa*ra-At._x0*At._l12_2a+At._x2*At._l01_2a)/Ta,ga=(ga*ra-At._y0*At._l12_2a+At._y2*At._l01_2a)/Ta}if(At._l23_a>n){var Fn=2*At._l23_2a+3*At._l23_a*At._l12_a+At._l12_2a,mn=3*At._l23_a*(At._l23_a+At._l12_a);Sa=(Sa*Fn+At._x1*At._l23_2a-or*At._l12_2a)/mn,za=(za*Fn+At._y1*At._l23_2a-Ar*At._l12_2a)/mn}At._context.bezierCurveTo(oa,ga,Sa,za,At._x2,At._y2)}function Ct(At,or){this._context=At,this._alpha=or}Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;break;case 2:this._point=3;default:bt(this,At,or);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var Zt=function At(or){function Ar(oa){return or?new Ct(oa,or):new de(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function Wt(At,or){this._context=At,this._alpha=or}Wt.prototype={areaStart:Ut,areaEnd:Ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=At,this._y3=or;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=or);break;case 2:this._point=3,this._x5=At,this._y5=or;break;default:bt(this,At,or);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var rr=function At(or){function Ar(oa){return or?new Wt(oa,or):new be(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function Jt(At,or){this._context=At,this._alpha=or}Jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bt(this,At,or);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var mr=function At(or){function Ar(oa){return or?new Jt(oa,or):new Xe(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function ia(At){this._context=At}ia.prototype={areaStart:Ut,areaEnd:Ut,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(At,or){At=+At,or=+or,this._point?this._context.lineTo(At,or):(this._point=1,this._context.moveTo(At,or))}};function Ia(At){return new ia(At)}function La(At){return At<0?-1:1}function Aa(At,or,Ar){var oa=At._x1-At._x0,ga=or-At._x1,Sa=(At._y1-At._y0)/(oa||ga<0&&-0),za=(Ar-At._y1)/(ga||oa<0&&-0),ra=(Sa*ga+za*oa)/(oa+ga);return(La(Sa)+La(za))*Math.min(Math.abs(Sa),Math.abs(za),.5*Math.abs(ra))||0}function Ga(At,or){var Ar=At._x1-At._x0;return Ar?(3*(At._y1-At._y0)/Ar-or)/2:or}function ba(At,or,Ar){var oa=At._x0,ga=At._y0,Sa=At._x1,za=At._y1,ra=(Sa-oa)/3;At._context.bezierCurveTo(oa+ra,ga+ra*or,Sa-ra,za-ra*Ar,Sa,za)}function Xa(At){this._context=At}Xa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ba(this,this._t0,Ga(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){var Ar=NaN;if(At=+At,or=+or,!(At===this._x1&&or===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;break;case 2:this._point=3,ba(this,Ga(this,Ar=Aa(this,At,or)),Ar);break;default:ba(this,this._t0,Ar=Aa(this,At,or));break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or,this._t0=Ar}}};function yn(At){this._context=new Kt(At)}(yn.prototype=Object.create(Xa.prototype)).point=function(At,or){Xa.prototype.point.call(this,or,At)};function Kt(At){this._context=At}Kt.prototype={moveTo:function(At,or){this._context.moveTo(or,At)},closePath:function(){this._context.closePath()},lineTo:function(At,or){this._context.lineTo(or,At)},bezierCurveTo:function(At,or,Ar,oa,ga,Sa){this._context.bezierCurveTo(or,At,oa,Ar,Sa,ga)}};function zt(At){return new Xa(At)}function $t(At){return new yn(At)}function Ht(At){this._context=At}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var At=this._x,or=this._y,Ar=At.length;if(Ar)if(this._line?this._context.lineTo(At[0],or[0]):this._context.moveTo(At[0],or[0]),Ar===2)this._context.lineTo(At[1],or[1]);else for(var oa=Tr(At),ga=Tr(or),Sa=0,za=1;za=0;--or)ga[or]=(za[or]-ga[or+1])/Sa[or];for(Sa[Ar-1]=(At[Ar]+ga[Ar-1])/2,or=0;or=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,or),this._context.lineTo(At,or);else{var Ar=this._x*(1-this._t)+At*this._t;this._context.lineTo(Ar,this._y),this._context.lineTo(Ar,or)}break}}this._x=At,this._y=or}};function Gr(At){return new ha(At,.5)}function wa(At){return new ha(At,0)}function Da(At){return new ha(At,1)}function Ya(At,or){if((za=At.length)>1)for(var Ar=1,oa,ga,Sa=At[or[0]],za,ra=Sa.length;Ar=0;)Ar[or]=or;return Ar}function an(At,or){return At[or]}function mt(){var At=A([]),or=Ka,Ar=Ya,oa=an;function ga(Sa){var za=At.apply(this,arguments),ra,Ta=Sa.length,Fn=za.length,mn=new Array(Fn),Kn;for(ra=0;ra0){for(var Ar,oa,ga=0,Sa=At[0].length,za;ga0)for(var Ar,oa=0,ga,Sa,za,ra,Ta,Fn=At[or[0]].length;oa0?(ga[0]=za,ga[1]=za+=Sa):Sa<0?(ga[1]=ra,ga[0]=ra+=Sa):(ga[0]=0,ga[1]=Sa)}function Er(At,or){if((ga=At.length)>0){for(var Ar=0,oa=At[or[0]],ga,Sa=oa.length;Ar0)||!((Sa=(ga=At[or[0]]).length)>0))){for(var Ar=0,oa=1,ga,Sa,za;oaSa&&(Sa=ga,Ar=or);return Ar}function jr(At){var or=At.map(Dr);return Ka(At).sort(function(Ar,oa){return or[Ar]-or[oa]})}function Dr(At){for(var or=0,Ar=-1,oa=At.length,ga;++Ar0;--se)re(Z*=.99),ae(),V(Z),ae();function Q(){var fe=x.max(ee,function(Pe){return Pe.length}),xe=U*(R-g)/(fe-1);z>xe&&(z=xe);var Ae=x.min(ee,function(Pe){return(R-g-(Pe.length-1)*z)/x.sum(Pe,f)});ee.forEach(function(Pe){Pe.forEach(function(Ce,je){Ce.y1=(Ce.y0=je)+Ce.value*Ae})}),J.links.forEach(function(Pe){Pe.width=Pe.value*Ae})}function V(fe){ee.forEach(function(xe){xe.forEach(function(Ae){if(Ae.targetLinks.length){var Pe=(x.sum(Ae.targetLinks,v)/x.sum(Ae.targetLinks,f)-p(Ae))*fe;Ae.y0+=Pe,Ae.y1+=Pe}})})}function re(fe){ee.slice().reverse().forEach(function(xe){xe.forEach(function(Ae){if(Ae.sourceLinks.length){var Pe=(x.sum(Ae.sourceLinks,T)/x.sum(Ae.sourceLinks,f)-p(Ae))*fe;Ae.y0+=Pe,Ae.y1+=Pe}})})}function ae(){ee.forEach(function(fe){var xe,Ae,Pe=g,Ce=fe.length,je;for(fe.sort(c),je=0;je0&&(xe.y0+=Ae,xe.y1+=Ae),Pe=xe.y1+z;if(Ae=Pe-z-R,Ae>0)for(Pe=xe.y0-=Ae,xe.y1-=Ae,je=Ce-2;je>=0;--je)xe=fe[je],Ae=xe.y1+z-Pe,Ae>0&&(xe.y0-=Ae,xe.y1-=Ae),Pe=xe.y0})}}function q(J){J.nodes.forEach(function(ee){ee.sourceLinks.sort(s),ee.targetLinks.sort(n)}),J.nodes.forEach(function(ee){var Z=ee.y0,se=Z;ee.sourceLinks.forEach(function(Q){Q.y0=Z+Q.width/2,Z+=Q.width}),ee.targetLinks.forEach(function(Q){Q.y1=se+Q.width/2,se+=Q.width})})}return X};function _(u){return[u.source.x1,u.y0]}function b(u){return[u.target.x0,u.y1]}var d=function(){return E.linkHorizontal().source(_).target(b)};h.sankey=M,h.sankeyCenter=a,h.sankeyLeft=t,h.sankeyRight=r,h.sankeyJustify=i,h.sankeyLinkHorizontal=d,Object.defineProperty(h,"__esModule",{value:!0})})}}),kD=He({"node_modules/elementary-circuits-directed-graph/johnson.js"(Y,H){var h=cA();H.exports=function(A,E){var e=[],t=[],r=[],i={},a=[],o;function n(S){r[S]=!1,i.hasOwnProperty(S)&&Object.keys(i[S]).forEach(function(M){delete i[S][M],r[M]&&n(M)})}function s(S){var M=!1;t.push(S),r[S]=!0;var _,b;for(_=0;_=S})}function p(S){f(S);for(var M=A,_=h(M),b=_.components.filter(function(z){return z.length>1}),d=1/0,u,g=0;g"u"?"undefined":s(de))!=="object"&&(de=We.source=_(Fe,de)),(typeof me>"u"?"undefined":s(me))!=="object"&&(me=We.target=_(Fe,me)),de.sourceLinks.push(We),me.targetLinks.push(We)}),yt}function Yt(yt){yt.nodes.forEach(function(Fe){Fe.partOfCycle=!1,Fe.value=Math.max(x.sum(Fe.sourceLinks,v),x.sum(Fe.targetLinks,v)),Fe.sourceLinks.forEach(function(We){We.circular&&(Fe.partOfCycle=!0,Fe.circularLinkType=We.circularLinkType)}),Fe.targetLinks.forEach(function(We){We.circular&&(Fe.partOfCycle=!0,Fe.circularLinkType=We.circularLinkType)})})}function vr(yt){var Fe=0,We=0,Oe=0,de=0,me=x.max(yt.nodes,function(be){return be.column});return yt.links.forEach(function(be){be.circular&&(be.circularLinkType=="top"?Fe=Fe+be.width:We=We+be.width,be.target.column==0&&(de=de+be.width),be.source.column==me&&(Oe=Oe+be.width))}),Fe=Fe>0?Fe+d+u:Fe,We=We>0?We+d+u:We,Oe=Oe>0?Oe+d+u:Oe,de=de>0?de+d+u:de,{top:Fe,bottom:We,left:de,right:Oe}}function hr(yt,Fe){var We=x.max(yt.nodes,function(ht){return ht.column}),Oe=at-Ce,de=tt-je,me=Oe+Fe.right+Fe.left,be=de+Fe.top+Fe.bottom,Ie=Oe/me,Xe=de/be;return Ce=Ce*Ie+Fe.left,at=Fe.right==0?at:at*Ie,je=je*Xe+Fe.top,tt=tt*Xe,yt.nodes.forEach(function(ht){ht.x0=Ce+ht.column*((at-Ce-Je)/We),ht.x1=ht.x0+Je}),Xe}function Rr(yt){var Fe,We,Oe;for(Fe=yt.nodes,We=[],Oe=0;Fe.length;++Oe,Fe=We,We=[])Fe.forEach(function(de){de.depth=Oe,de.sourceLinks.forEach(function(me){We.indexOf(me.target)<0&&!me.circular&&We.push(me.target)})});for(Fe=yt.nodes,We=[],Oe=0;Fe.length;++Oe,Fe=We,We=[])Fe.forEach(function(de){de.height=Oe,de.targetLinks.forEach(function(me){We.indexOf(me.source)<0&&!me.circular&&We.push(me.source)})});yt.nodes.forEach(function(de){de.column=Math.floor(we.call(null,de,Oe))})}function dr(yt,Fe,We){var Oe=A.nest().key(function(ht){return ht.column}).sortKeys(x.ascending).entries(yt.nodes).map(function(ht){return ht.values});be(We),Xe();for(var de=1,me=Fe;me>0;--me)Ie(de*=.99,We),Xe();function be(ht){if(Ke){var bt=1/0;Oe.forEach(function(rr){var Jt=tt*Ke/(rr.length+1);bt=Jt0))if(rr==0&&Wt==1)mr=Jt.y1-Jt.y0,Jt.y0=tt/2-mr/2,Jt.y1=tt/2+mr/2;else if(rr==Ct-1&&Wt==1)mr=Jt.y1-Jt.y0,Jt.y0=tt/2-mr/2,Jt.y1=tt/2+mr/2;else{var ia=0,Ia=x.mean(Jt.sourceLinks,m),La=x.mean(Jt.targetLinks,l);Ia&&La?ia=(Ia+La)/2:ia=Ia||La;var Aa=(ia-T(Jt))*ht;Jt.y0+=Aa,Jt.y1+=Aa}})})}function Xe(){Oe.forEach(function(ht){var bt,Ct,Zt=je,Wt=ht.length,rr;for(ht.sort(p),rr=0;rr0&&(bt.y0+=Ct,bt.y1+=Ct),Zt=bt.y1+Ze;if(Ct=Zt-Ze-tt,Ct>0)for(Zt=bt.y0-=Ct,bt.y1-=Ct,rr=Wt-2;rr>=0;--rr)bt=ht[rr],Ct=bt.y1+Ze-Zt,Ct>0&&(bt.y0-=Ct,bt.y1-=Ct),Zt=bt.y0})}}function wr(yt){yt.nodes.forEach(function(Fe){Fe.sourceLinks.sort(f),Fe.targetLinks.sort(c)}),yt.nodes.forEach(function(Fe){var We=Fe.y0,Oe=We,de=Fe.y1,me=de;Fe.sourceLinks.forEach(function(be){be.circular?(be.y0=de-be.width/2,de=de-be.width):(be.y0=We+be.width/2,We+=be.width)}),Fe.targetLinks.forEach(function(be){be.circular?(be.y1=me-be.width/2,me=me-be.width):(be.y1=Oe+be.width/2,Oe+=be.width)})})}return kt}function R(Ce,je,at){var tt=0;if(at===null){for(var Je=[],Ze=0;Zeje.source.column)}function B(Ce,je){var at=0;Ce.sourceLinks.forEach(function(Je){at=Je.circular&&!Ae(Je,je)?at+1:at});var tt=0;return Ce.targetLinks.forEach(function(Je){tt=Je.circular&&!Ae(Je,je)?tt+1:tt}),at+tt}function O(Ce){var je=Ce.source.sourceLinks,at=0;je.forEach(function(Ze){at=Ze.circular?at+1:at});var tt=Ce.target.targetLinks,Je=0;return tt.forEach(function(Ze){Je=Ze.circular?Je+1:Je}),!(at>1||Je>1)}function P(Ce,je,at){return Ce.sort(X),Ce.forEach(function(tt,Je){var Ze=0;if(Ae(tt,at)&&O(tt))tt.circularPathData.verticalBuffer=Ze+tt.width/2;else{var Me=0;for(Me;MeZe?we:Ze}tt.circularPathData.verticalBuffer=Ze+tt.width/2}}),Ce}function N(Ce,je,at,tt){var Je=5,Ze=x.min(Ce.links,function(he){return he.source.y0});Ce.links.forEach(function(he){he.circular&&(he.circularPathData={})});var Me=Ce.links.filter(function(he){return he.circularLinkType=="top"});P(Me,je,tt);var we=Ce.links.filter(function(he){return he.circularLinkType=="bottom"});P(we,je,tt),Ce.links.forEach(function(he){if(he.circular){if(he.circularPathData.arcRadius=he.width+u,he.circularPathData.leftNodeBuffer=Je,he.circularPathData.rightNodeBuffer=Je,he.circularPathData.sourceWidth=he.source.x1-he.source.x0,he.circularPathData.sourceX=he.source.x0+he.circularPathData.sourceWidth,he.circularPathData.targetX=he.target.x0,he.circularPathData.sourceY=he.y0,he.circularPathData.targetY=he.y1,Ae(he,tt)&&O(he))he.circularPathData.leftSmallArcRadius=u+he.width/2,he.circularPathData.leftLargeArcRadius=u+he.width/2,he.circularPathData.rightSmallArcRadius=u+he.width/2,he.circularPathData.rightLargeArcRadius=u+he.width/2,he.circularLinkType=="bottom"?(he.circularPathData.verticalFullExtent=he.source.y1+d+he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.rightLargeArcRadius):(he.circularPathData.verticalFullExtent=he.source.y0-d-he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.rightLargeArcRadius);else{var De=he.source.column,et=he.circularLinkType,nt=Ce.links.filter(function(kt){return kt.source.column==De&&kt.circularLinkType==et});he.circularLinkType=="bottom"?nt.sort(ue):nt.sort(te);var Ke=0;nt.forEach(function(kt,Ut){kt.circularLinkID==he.circularLinkID&&(he.circularPathData.leftSmallArcRadius=u+he.width/2+Ke,he.circularPathData.leftLargeArcRadius=u+he.width/2+Ut*je+Ke),Ke=Ke+kt.width}),De=he.target.column,nt=Ce.links.filter(function(kt){return kt.target.column==De&&kt.circularLinkType==et}),he.circularLinkType=="bottom"?nt.sort(le):nt.sort(ie),Ke=0,nt.forEach(function(kt,Ut){kt.circularLinkID==he.circularLinkID&&(he.circularPathData.rightSmallArcRadius=u+he.width/2+Ke,he.circularPathData.rightLargeArcRadius=u+he.width/2+Ut*je+Ke),Ke=Ke+kt.width}),he.circularLinkType=="bottom"?(he.circularPathData.verticalFullExtent=Math.max(at,he.source.y1,he.target.y1)+d+he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.rightLargeArcRadius):(he.circularPathData.verticalFullExtent=Ze-d-he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.rightLargeArcRadius)}he.circularPathData.leftInnerExtent=he.circularPathData.sourceX+he.circularPathData.leftNodeBuffer,he.circularPathData.rightInnerExtent=he.circularPathData.targetX-he.circularPathData.rightNodeBuffer,he.circularPathData.leftFullExtent=he.circularPathData.sourceX+he.circularPathData.leftLargeArcRadius+he.circularPathData.leftNodeBuffer,he.circularPathData.rightFullExtent=he.circularPathData.targetX-he.circularPathData.rightLargeArcRadius-he.circularPathData.rightNodeBuffer}if(he.circular)he.path=U(he);else{var Et=E.linkHorizontal().source(function(kt){var Ut=kt.source.x0+(kt.source.x1-kt.source.x0),Yt=kt.y0;return[Ut,Yt]}).target(function(kt){var Ut=kt.target.x0,Yt=kt.y1;return[Ut,Yt]});he.path=Et(he)}})}function U(Ce){var je="";return Ce.circularLinkType=="top"?je="M"+Ce.circularPathData.sourceX+" "+Ce.circularPathData.sourceY+" L"+Ce.circularPathData.leftInnerExtent+" "+Ce.circularPathData.sourceY+" A"+Ce.circularPathData.leftLargeArcRadius+" "+Ce.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ce.circularPathData.leftFullExtent+" "+(Ce.circularPathData.sourceY-Ce.circularPathData.leftSmallArcRadius)+" L"+Ce.circularPathData.leftFullExtent+" "+Ce.circularPathData.verticalLeftInnerExtent+" A"+Ce.circularPathData.leftLargeArcRadius+" "+Ce.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ce.circularPathData.leftInnerExtent+" "+Ce.circularPathData.verticalFullExtent+" L"+Ce.circularPathData.rightInnerExtent+" "+Ce.circularPathData.verticalFullExtent+" A"+Ce.circularPathData.rightLargeArcRadius+" "+Ce.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ce.circularPathData.rightFullExtent+" "+Ce.circularPathData.verticalRightInnerExtent+" L"+Ce.circularPathData.rightFullExtent+" "+(Ce.circularPathData.targetY-Ce.circularPathData.rightSmallArcRadius)+" A"+Ce.circularPathData.rightLargeArcRadius+" "+Ce.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ce.circularPathData.rightInnerExtent+" "+Ce.circularPathData.targetY+" L"+Ce.circularPathData.targetX+" "+Ce.circularPathData.targetY:je="M"+Ce.circularPathData.sourceX+" "+Ce.circularPathData.sourceY+" L"+Ce.circularPathData.leftInnerExtent+" "+Ce.circularPathData.sourceY+" A"+Ce.circularPathData.leftLargeArcRadius+" "+Ce.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ce.circularPathData.leftFullExtent+" "+(Ce.circularPathData.sourceY+Ce.circularPathData.leftSmallArcRadius)+" L"+Ce.circularPathData.leftFullExtent+" "+Ce.circularPathData.verticalLeftInnerExtent+" A"+Ce.circularPathData.leftLargeArcRadius+" "+Ce.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ce.circularPathData.leftInnerExtent+" "+Ce.circularPathData.verticalFullExtent+" L"+Ce.circularPathData.rightInnerExtent+" "+Ce.circularPathData.verticalFullExtent+" A"+Ce.circularPathData.rightLargeArcRadius+" "+Ce.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ce.circularPathData.rightFullExtent+" "+Ce.circularPathData.verticalRightInnerExtent+" L"+Ce.circularPathData.rightFullExtent+" "+(Ce.circularPathData.targetY+Ce.circularPathData.rightSmallArcRadius)+" A"+Ce.circularPathData.rightLargeArcRadius+" "+Ce.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ce.circularPathData.rightInnerExtent+" "+Ce.circularPathData.targetY+" L"+Ce.circularPathData.targetX+" "+Ce.circularPathData.targetY,je}function X(Ce,je){return q(Ce)==q(je)?Ce.circularLinkType=="bottom"?ue(Ce,je):te(Ce,je):q(je)-q(Ce)}function te(Ce,je){return Ce.y0-je.y0}function ue(Ce,je){return je.y0-Ce.y0}function ie(Ce,je){return Ce.y1-je.y1}function le(Ce,je){return je.y1-Ce.y1}function q(Ce){return Ce.target.column-Ce.source.column}function J(Ce){return Ce.target.x0-Ce.source.x1}function ee(Ce,je){var at=z(Ce),tt=J(je)/Math.tan(at),Je=xe(Ce)=="up"?Ce.y1+tt:Ce.y1-tt;return Je}function Z(Ce,je){var at=z(Ce),tt=J(je)/Math.tan(at),Je=xe(Ce)=="up"?Ce.y1-tt:Ce.y1+tt;return Je}function se(Ce,je,at,tt){Ce.links.forEach(function(Je){if(!Je.circular&&Je.target.column-Je.source.column>1){var Ze=Je.source.column+1,Me=Je.target.column-1,we=1,he=Me-Ze+1;for(we=1;Ze<=Me;Ze++,we++)Ce.nodes.forEach(function(De){if(De.column==Ze){var et=we/(he+1),nt=Math.pow(1-et,3),Ke=3*et*Math.pow(1-et,2),Et=3*Math.pow(et,2)*(1-et),kt=Math.pow(et,3),Ut=nt*Je.y0+Ke*Je.y0+Et*Je.y1+kt*Je.y1,Yt=Ut-Je.width/2,vr=Ut+Je.width/2,hr;Yt>De.y0&&YtDe.y0&&vrDe.y1&&V(Rr,hr,je,at)})):YtDe.y1&&(hr=vr-De.y0+10,De=V(De,hr,je,at),Ce.nodes.forEach(function(Rr){b(Rr,tt)==b(De,tt)||Rr.column!=De.column||Rr.y0De.y1&&V(Rr,hr,je,at)}))}})}})}function Q(Ce,je){return Ce.y0>je.y0&&Ce.y0je.y0&&Ce.y1je.y1}function V(Ce,je,at,tt){return Ce.y0+je>=at&&Ce.y1+je<=tt&&(Ce.y0=Ce.y0+je,Ce.y1=Ce.y1+je,Ce.targetLinks.forEach(function(Je){Je.y1=Je.y1+je}),Ce.sourceLinks.forEach(function(Je){Je.y0=Je.y0+je})),Ce}function re(Ce,je,at,tt){Ce.nodes.forEach(function(Je){tt&&Je.y+(Je.y1-Je.y0)>je&&(Je.y=Je.y-(Je.y+(Je.y1-Je.y0)-je));var Ze=Ce.links.filter(function(he){return b(he.source,at)==b(Je,at)}),Me=Ze.length;Me>1&&Ze.sort(function(he,De){if(!he.circular&&!De.circular){if(he.target.column==De.target.column)return he.y1-De.y1;if(fe(he,De)){if(he.target.column>De.target.column){var et=Z(De,he);return he.y1-et}if(De.target.column>he.target.column){var nt=Z(he,De);return nt-De.y1}}else return he.y1-De.y1}if(he.circular&&!De.circular)return he.circularLinkType=="top"?-1:1;if(De.circular&&!he.circular)return De.circularLinkType=="top"?1:-1;if(he.circular&&De.circular)return he.circularLinkType===De.circularLinkType&&he.circularLinkType=="top"?he.target.column===De.target.column?he.target.y1-De.target.y1:De.target.column-he.target.column:he.circularLinkType===De.circularLinkType&&he.circularLinkType=="bottom"?he.target.column===De.target.column?De.target.y1-he.target.y1:he.target.column-De.target.column:he.circularLinkType=="top"?-1:1});var we=Je.y0;Ze.forEach(function(he){he.y0=we+he.width/2,we=we+he.width}),Ze.forEach(function(he,De){if(he.circularLinkType=="bottom"){var et=De+1,nt=0;for(et;et1&&Je.sort(function(we,he){if(!we.circular&&!he.circular){if(we.source.column==he.source.column)return we.y0-he.y0;if(fe(we,he)){if(he.source.column0?"up":"down"}function Ae(Ce,je){return b(Ce.source,je)==b(Ce.target,je)}function Pe(Ce,je,at){var tt=Ce.nodes,Je=Ce.links,Ze=!1,Me=!1;if(Je.forEach(function(Ke){Ke.circularLinkType=="top"?Ze=!0:Ke.circularLinkType=="bottom"&&(Me=!0)}),Ze==!1||Me==!1){var we=x.min(tt,function(Ke){return Ke.y0}),he=x.max(tt,function(Ke){return Ke.y1}),De=he-we,et=at-je,nt=et/De;tt.forEach(function(Ke){var Et=(Ke.y1-Ke.y0)*nt;Ke.y0=(Ke.y0-we)*nt,Ke.y1=Ke.y0+Et}),Je.forEach(function(Ke){Ke.y0=(Ke.y0-we)*nt,Ke.y1=(Ke.y1-we)*nt,Ke.width=Ke.width*nt})}}h.sankeyCircular=y,h.sankeyCenter=o,h.sankeyLeft=r,h.sankeyRight=i,h.sankeyJustify=a,Object.defineProperty(h,"__esModule",{value:!0})})}}),hA=He({"src/traces/sankey/constants.js"(Y,H){H.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}}}),LD=He({"src/traces/sankey/render.js"(Y,H){var h=SD(),x=(Hp(),Bv(rp)).interpolateNumber,A=yi(),E=ED(),e=CD(),t=hA(),r=Uf(),i=zi(),a=Io(),o=Qr(),n=o.strTranslate,s=o.strRotate,c=Hv(),f=c.keyFun,p=c.repeat,v=c.unwrap,T=jl(),l=qi(),m=Pf(),w=m.CAP_SHIFT,S=m.LINE_SPACING,M=3;function _(ee,Z,se){var Q=v(Z),V=Q.trace,re=V.domain,ae=V.orientation==="h",fe=V.node.pad,xe=V.node.thickness,Ae={justify:E.sankeyJustify,left:E.sankeyLeft,right:E.sankeyRight,center:E.sankeyCenter}[V.node.align],Pe=ee.width*(re.x[1]-re.x[0]),Ce=ee.height*(re.y[1]-re.y[0]),je=Q._nodes,at=Q._links,tt=Q.circular,Je;tt?Je=e.sankeyCircular().circularLinkGap(0):Je=E.sankey(),Je.iterations(t.sankeyIterations).size(ae?[Pe,Ce]:[Ce,Pe]).nodeWidth(xe).nodePadding(fe).nodeId(function(Rr){return Rr.pointNumber}).nodeAlign(Ae).nodes(je).links(at);var Ze=Je();Je.nodePadding()=Fe||(yt=Fe-wr.y0,yt>1e-6&&(wr.y0+=yt,wr.y1+=yt)),Fe=wr.y1+fe})}function Ut(Rr){var dr=Rr.map(function(me,be){return{x0:me.x0,index:be}}).sort(function(me,be){return me.x0-be.x0}),wr=[],yt=-1,Fe,We=-1/0,Oe;for(Me=0;MeWe+xe&&(yt+=1,Fe=de.x0),We=de.x0,wr[yt]||(wr[yt]=[]),wr[yt].push(de),Oe=Fe-de.x0,de.x0+=Oe,de.x1+=Oe}return wr}if(V.node.x.length&&V.node.y.length){for(Me=0;Me0?" L "+V.targetX+" "+V.targetY:"")+"Z"):(se="M "+(V.targetX-Z)+" "+(V.targetY-Q)+" L "+(V.rightInnerExtent-Z)+" "+(V.targetY-Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightSmallArcRadius+Q)+" 0 0 0 "+(V.rightFullExtent-Q-Z)+" "+(V.targetY+V.rightSmallArcRadius)+" L "+(V.rightFullExtent-Q-Z)+" "+V.verticalRightInnerExtent,re&&ae?se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightInnerExtent-Q-Z)+" "+(V.verticalFullExtent+Q)+" L "+(V.rightFullExtent+Q-Z-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent+Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent:re?se+=" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent-Z-Q-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" L "+(V.leftFullExtent+Q+(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent:se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightInnerExtent-Z)+" "+(V.verticalFullExtent+Q)+" L "+V.leftInnerExtent+" "+(V.verticalFullExtent+Q)+" A "+(V.leftLargeArcRadius+Q)+" "+(V.leftLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent,se+=" L "+(V.leftFullExtent+Q)+" "+(V.sourceY+V.leftSmallArcRadius)+" A "+(V.leftLargeArcRadius+Q)+" "+(V.leftSmallArcRadius+Q)+" 0 0 0 "+V.leftInnerExtent+" "+(V.sourceY-Q)+" L "+V.sourceX+" "+(V.sourceY-Q)+" L "+V.sourceX+" "+(V.sourceY+Q)+" L "+V.leftInnerExtent+" "+(V.sourceY+Q)+" A "+(V.leftLargeArcRadius-Q)+" "+(V.leftSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent-Q)+" "+(V.sourceY+V.leftSmallArcRadius)+" L "+(V.leftFullExtent-Q)+" "+V.verticalLeftInnerExtent,re&&ae?se+=" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent-Q-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" L "+(V.rightFullExtent+Q-Z+(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent:re?se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+(V.verticalFullExtent+Q)+" L "+(V.rightFullExtent-Z-Q)+" "+(V.verticalFullExtent+Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent:se+=" A "+(V.leftLargeArcRadius-Q)+" "+(V.leftLargeArcRadius-Q)+" 0 0 1 "+V.leftInnerExtent+" "+(V.verticalFullExtent-Q)+" L "+(V.rightInnerExtent-Z)+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightLargeArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent,se+=" L "+(V.rightFullExtent+Q-Z)+" "+(V.targetY+V.rightSmallArcRadius)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightInnerExtent-Z)+" "+(V.targetY+Q)+" L "+(V.targetX-Z)+" "+(V.targetY+Q)+(Z>0?" L "+V.targetX+" "+V.targetY:"")+"Z"),se}function u(){var ee=.5;function Z(se){var Q=se.linkArrowLength;if(se.link.circular)return d(se.link,Q);var V=Math.abs((se.link.target.x0-se.link.source.x1)/2);Q>V&&(Q=V);var re=se.link.source.x1,ae=se.link.target.x0-Q,fe=x(re,ae),xe=fe(ee),Ae=fe(1-ee),Pe=se.link.y0-se.link.width/2,Ce=se.link.y0+se.link.width/2,je=se.link.y1-se.link.width/2,at=se.link.y1+se.link.width/2,tt="M"+re+","+Pe,Je="C"+xe+","+Pe+" "+Ae+","+je+" "+ae+","+je,Ze="C"+Ae+","+at+" "+xe+","+Ce+" "+re+","+Ce,Me=Q>0?"L"+(ae+Q)+","+(je+se.link.width/2):"";return Me+="L"+ae+","+at,tt+Je+Me+Ze+"Z"}return Z}function g(ee,Z){var se=r(Z.color),Q=t.nodePadAcross,V=ee.nodePad/2;Z.dx=Z.x1-Z.x0,Z.dy=Z.y1-Z.y0;var re=Z.dx,ae=Math.max(.5,Z.dy),fe="node_"+Z.pointNumber;return Z.group&&(fe=o.randstr()),Z.trace=ee.trace,Z.curveNumber=ee.trace.index,{index:Z.pointNumber,key:fe,partOfGroup:Z.partOfGroup||!1,group:Z.group,traceId:ee.key,trace:ee.trace,node:Z,nodePad:ee.nodePad,nodeLineColor:ee.nodeLineColor,nodeLineWidth:ee.nodeLineWidth,textFont:ee.textFont,size:ee.horizontal?ee.height:ee.width,visibleWidth:Math.ceil(re),visibleHeight:ae,zoneX:-Q,zoneY:-V,zoneWidth:re+2*Q,zoneHeight:ae+2*V,labelY:ee.horizontal?Z.dy/2+1:Z.dx/2+1,left:Z.originalLayer===1,sizeAcross:ee.width,forceLayouts:ee.forceLayouts,horizontal:ee.horizontal,darkBackground:se.getBrightness()<=128,tinyColorHue:i.tinyRGB(se),tinyColorAlpha:se.getAlpha(),valueFormat:ee.valueFormat,valueSuffix:ee.valueSuffix,sankey:ee.sankey,graph:ee.graph,arrangement:ee.arrangement,uniqueNodeLabelPathId:[ee.guid,ee.key,fe].join("_"),interactionState:ee.interactionState,figure:ee}}function y(ee){ee.attr("transform",function(Z){return n(Z.node.x0.toFixed(3),Z.node.y0.toFixed(3))})}function R(ee){ee.call(y)}function I(ee,Z){ee.call(R),Z.attr("d",u())}function z(ee){ee.attr("width",function(Z){return Z.node.x1-Z.node.x0}).attr("height",function(Z){return Z.visibleHeight})}function F(ee){return ee.link.width>1||ee.linkLineWidth>0}function B(ee){var Z=n(ee.translateX,ee.translateY);return Z+(ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function O(ee,Z,se){ee.on(".basic",null).on("mouseover.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.hover(this,Q,Z),Q.interactionState.hovered=[this,Q])}).on("mousemove.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.follow(this,Q),Q.interactionState.hovered=[this,Q])}).on("mouseout.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.unhover(this,Q,Z),Q.interactionState.hovered=!1)}).on("click.basic",function(Q){Q.interactionState.hovered&&(se.unhover(this,Q,Z),Q.interactionState.hovered=!1),!Q.interactionState.dragInProgress&&!Q.partOfGroup&&se.select(this,Q,Z)})}function P(ee,Z,se,Q){var V=A.behavior.drag().origin(function(re){return{x:re.node.x0+re.visibleWidth/2,y:re.node.y0+re.visibleHeight/2}}).on("dragstart",function(re){if(re.arrangement!=="fixed"&&(o.ensureSingle(Q._fullLayout._infolayer,"g","dragcover",function(fe){Q._fullLayout._dragCover=fe}),o.raiseToTop(this),re.interactionState.dragInProgress=re.node,ie(re.node),re.interactionState.hovered&&(se.nodeEvents.unhover.apply(0,re.interactionState.hovered),re.interactionState.hovered=!1),re.arrangement==="snap")){var ae=re.traceId+"|"+re.key;re.forceLayouts[ae]?re.forceLayouts[ae].alpha(1):N(ee,ae,re),U(ee,Z,re,ae,Q)}}).on("drag",function(re){if(re.arrangement!=="fixed"){var ae=A.event.x,fe=A.event.y;re.arrangement==="snap"?(re.node.x0=ae-re.visibleWidth/2,re.node.x1=ae+re.visibleWidth/2,re.node.y0=fe-re.visibleHeight/2,re.node.y1=fe+re.visibleHeight/2):(re.arrangement==="freeform"&&(re.node.x0=ae-re.visibleWidth/2,re.node.x1=ae+re.visibleWidth/2),fe=Math.max(0,Math.min(re.size-re.visibleHeight/2,fe)),re.node.y0=fe-re.visibleHeight/2,re.node.y1=fe+re.visibleHeight/2),ie(re.node),re.arrangement!=="snap"&&(re.sankey.update(re.graph),I(ee.filter(le(re)),Z))}}).on("dragend",function(re){if(re.arrangement!=="fixed"){re.interactionState.dragInProgress=!1;for(var ae=0;ae0)window.requestAnimationFrame(re);else{var xe=se.node.originalX;se.node.x0=xe-se.visibleWidth/2,se.node.x1=xe+se.visibleWidth/2,te(se,V)}})}function X(ee,Z,se,Q){return function(){for(var re=0,ae=0;ae0&&Q.forceLayouts[Z].alpha(0)}}function te(ee,Z){for(var se=[],Q=[],V=0;V"),color:m(q,"bgcolor")||t.addOpacity(Q.color,1),borderColor:m(q,"bordercolor"),fontFamily:m(q,"font.family"),fontSize:m(q,"font.size"),fontColor:m(q,"font.color"),fontWeight:m(q,"font.weight"),fontStyle:m(q,"font.style"),fontVariant:m(q,"font.variant"),fontTextcase:m(q,"font.textcase"),fontLineposition:m(q,"font.lineposition"),fontShadow:m(q,"font.shadow"),nameLength:m(q,"namelength"),textAlign:m(q,"align"),idealAlign:h.event.x"),color:m(q,"bgcolor")||le.tinyColorHue,borderColor:m(q,"bordercolor"),fontFamily:m(q,"font.family"),fontSize:m(q,"font.size"),fontColor:m(q,"font.color"),fontWeight:m(q,"font.weight"),fontStyle:m(q,"font.style"),fontVariant:m(q,"font.variant"),fontTextcase:m(q,"font.textcase"),fontLineposition:m(q,"font.lineposition"),fontShadow:m(q,"font.shadow"),nameLength:m(q,"namelength"),textAlign:m(q,"align"),idealAlign:"left",hovertemplate:q.hovertemplate,hovertemplateLabels:re,eventData:[le.node]},{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:S});n(xe,.85),s(xe)}}},ue=function(ie,le,q){S._fullLayout.hovermode!==!1&&(h.select(ie).call(v,le,q),le.node.trace.node.hoverinfo!=="skip"&&(le.node.fullData=le.node.trace,S.emit("plotly_unhover",{event:h.event,points:[le.node]})),e.loneUnhover(_._hoverlayer.node()))};E(S,b,M,{width:d.w,height:d.h,margin:{t:d.t,r:d.r,b:d.b,l:d.l}},{linkEvents:{hover:R,follow:P,unhover:N,select:y},nodeEvents:{hover:X,follow:te,unhover:ue,select:U}})}}}),PD=He({"src/traces/sankey/base_plot.js"(Y){var H=Uu().overrideAll,h=$f().getModuleCalcData,x=vA(),A=Bd(),E=mv(),e=ph(),t=Uc().prepSelect,r=Qr(),i=qi(),a="sankey";Y.name=a,Y.baseLayoutAttrOverrides=H({hoverlabel:A.hoverlabel},"plot","nested"),Y.plot=function(n){var s=h(n.calcdata,a)[0];x(n,s),Y.updateFx(n)},Y.clean=function(n,s,c,f){var p=f._has&&f._has(a),v=s._has&&s._has(a);p&&!v&&(f._paperdiv.selectAll(".sankey").remove(),f._paperdiv.selectAll(".bgsankey").remove())},Y.updateFx=function(n){for(var s=0;s0}H.exports=function(F,B,O,P){var N=F._fullLayout,U;w(O)&&P&&(U=P()),E.makeTraceGroups(N._indicatorlayer,B,"trace").each(function(X){var te=X[0],ue=te.trace,ie=h.select(this),le=ue._hasGauge,q=ue._isAngular,J=ue._isBullet,ee=ue.domain,Z={w:N._size.w*(ee.x[1]-ee.x[0]),h:N._size.h*(ee.y[1]-ee.y[0]),l:N._size.l+N._size.w*ee.x[0],r:N._size.r+N._size.w*(1-ee.x[1]),t:N._size.t+N._size.h*(1-ee.y[1]),b:N._size.b+N._size.h*ee.y[0]},se=Z.l+Z.w/2,Q=Z.t+Z.h/2,V=Math.min(Z.w/2,Z.h),re=o.innerRadius*V,ae,fe,xe,Ae=ue.align||"center";if(fe=Q,!le)ae=Z.l+l[Ae]*Z.w,xe=function(he){return g(he,Z.w,Z.h)};else if(q&&(ae=se,fe=Q+V/2,xe=function(he){return y(he,.9*re)}),J){var Pe=o.bulletPadding,Ce=1-o.bulletNumberDomainSize+Pe;ae=Z.l+(Ce+(1-Ce)*l[Ae])*Z.w,xe=function(he){return g(he,(o.bulletNumberDomainSize-Pe)*Z.w,Z.h)}}_(F,ie,X,{numbersX:ae,numbersY:fe,numbersScaler:xe,transitionOpts:O,onComplete:U});var je,at;le&&(je={range:ue.gauge.axis.range,color:ue.gauge.bgcolor,line:{color:ue.gauge.bordercolor,width:0},thickness:1},at={range:ue.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ue.gauge.bordercolor,width:ue.gauge.borderwidth},thickness:1});var tt=ie.selectAll("g.angular").data(q?X:[]);tt.exit().remove();var Je=ie.selectAll("g.angularaxis").data(q?X:[]);Je.exit().remove(),q&&M(F,ie,X,{radius:V,innerRadius:re,gauge:tt,layer:Je,size:Z,gaugeBg:je,gaugeOutline:at,transitionOpts:O,onComplete:U});var Ze=ie.selectAll("g.bullet").data(J?X:[]);Ze.exit().remove();var Me=ie.selectAll("g.bulletaxis").data(J?X:[]);Me.exit().remove(),J&&S(F,ie,X,{gauge:Ze,layer:Me,size:Z,gaugeBg:je,gaugeOutline:at,transitionOpts:O,onComplete:U});var we=ie.selectAll("text.title").data(X);we.exit().remove(),we.enter().append("text").classed("title",!0),we.attr("text-anchor",function(){return J?T.right:T[ue.title.align]}).text(ue.title.text).call(a.font,ue.title.font).call(n.convertToTspans,F),we.attr("transform",function(){var he=Z.l+Z.w*l[ue.title.align],De,et=o.titlePadding,nt=a.bBox(we.node());if(le){if(q)if(ue.gauge.axis.visible){var Ke=a.bBox(Je.node());De=Ke.top-et-nt.bottom}else De=Z.t+Z.h/2-V/2-nt.bottom-et;J&&(De=fe-(nt.top+nt.bottom)/2,he=Z.l-o.bulletPadding*Z.w)}else De=ue._numbersTop-et-nt.bottom;return t(he,De)})})};function S(z,F,B,O){var P=B[0].trace,N=O.gauge,U=O.layer,X=O.gaugeBg,te=O.gaugeOutline,ue=O.size,ie=P.domain,le=O.transitionOpts,q=O.onComplete,J,ee,Z,se,Q;N.enter().append("g").classed("bullet",!0),N.attr("transform",t(ue.l,ue.t)),U.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),U.selectAll("g.xbulletaxistick,path,text").remove();var V=ue.h,re=P.gauge.bar.thickness*V,ae=ie.x[0],fe=ie.x[0]+(ie.x[1]-ie.x[0])*(P._hasNumber||P._hasDelta?1-o.bulletNumberDomainSize:1);J=u(z,P.gauge.axis),J._id="xbulletaxis",J.domain=[ae,fe],J.setScale(),ee=s.calcTicks(J),Z=s.makeTransTickFn(J),se=s.getTickSigns(J)[2],Q=ue.t+ue.h,J.visible&&(s.drawTicks(z,J,{vals:J.ticks==="inside"?s.clipEnds(J,ee):ee,layer:U,path:s.makeTickPath(J,Q,se),transFn:Z}),s.drawLabels(z,J,{vals:ee,layer:U,transFn:Z,labelFns:s.makeLabelFns(J,Q)}));function xe(Je){Je.attr("width",function(Ze){return Math.max(0,J.c2p(Ze.range[1])-J.c2p(Ze.range[0]))}).attr("x",function(Ze){return J.c2p(Ze.range[0])}).attr("y",function(Ze){return .5*(1-Ze.thickness)*V}).attr("height",function(Ze){return Ze.thickness*V})}var Ae=[X].concat(P.gauge.steps),Pe=N.selectAll("g.bg-bullet").data(Ae);Pe.enter().append("g").classed("bg-bullet",!0).append("rect"),Pe.select("rect").call(xe).call(b),Pe.exit().remove();var Ce=N.selectAll("g.value-bullet").data([P.gauge.bar]);Ce.enter().append("g").classed("value-bullet",!0).append("rect"),Ce.select("rect").attr("height",re).attr("y",(V-re)/2).call(b),w(le)?Ce.select("rect").transition().duration(le.duration).ease(le.easing).each("end",function(){q&&q()}).each("interrupt",function(){q&&q()}).attr("width",Math.max(0,J.c2p(Math.min(P.gauge.axis.range[1],B[0].y)))):Ce.select("rect").attr("width",typeof B[0].y=="number"?Math.max(0,J.c2p(Math.min(P.gauge.axis.range[1],B[0].y))):0),Ce.exit().remove();var je=B.filter(function(){return P.gauge.threshold.value||P.gauge.threshold.value===0}),at=N.selectAll("g.threshold-bullet").data(je);at.enter().append("g").classed("threshold-bullet",!0).append("line"),at.select("line").attr("x1",J.c2p(P.gauge.threshold.value)).attr("x2",J.c2p(P.gauge.threshold.value)).attr("y1",(1-P.gauge.threshold.thickness)/2*V).attr("y2",(1-(1-P.gauge.threshold.thickness)/2)*V).call(v.stroke,P.gauge.threshold.line.color).style("stroke-width",P.gauge.threshold.line.width),at.exit().remove();var tt=N.selectAll("g.gauge-outline").data([te]);tt.enter().append("g").classed("gauge-outline",!0).append("rect"),tt.select("rect").call(xe).call(b),tt.exit().remove()}function M(z,F,B,O){var P=B[0].trace,N=O.size,U=O.radius,X=O.innerRadius,te=O.gaugeBg,ue=O.gaugeOutline,ie=[N.l+N.w/2,N.t+N.h/2+U/2],le=O.gauge,q=O.layer,J=O.transitionOpts,ee=O.onComplete,Z=Math.PI/2;function se(Et){var kt=P.gauge.axis.range[0],Ut=P.gauge.axis.range[1],Yt=(Et-kt)/(Ut-kt)*Math.PI-Z;return Yt<-Z?-Z:Yt>Z?Z:Yt}function Q(Et){return h.svg.arc().innerRadius((X+U)/2-Et/2*(U-X)).outerRadius((X+U)/2+Et/2*(U-X)).startAngle(-Z)}function V(Et){Et.attr("d",function(kt){return Q(kt.thickness).startAngle(se(kt.range[0])).endAngle(se(kt.range[1]))()})}var re,ae,fe,xe;le.enter().append("g").classed("angular",!0),le.attr("transform",t(ie[0],ie[1])),q.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),q.selectAll("g.xangularaxistick,path,text").remove(),re=u(z,P.gauge.axis),re.type="linear",re.range=P.gauge.axis.range,re._id="xangularaxis",re.ticklabeloverflow="allow",re.setScale();var Ae=function(Et){return(re.range[0]-Et.x)/(re.range[1]-re.range[0])*Math.PI+Math.PI},Pe={},Ce=s.makeLabelFns(re,0),je=Ce.labelStandoff;Pe.xFn=function(Et){var kt=Ae(Et);return Math.cos(kt)*je},Pe.yFn=function(Et){var kt=Ae(Et),Ut=Math.sin(kt)>0?.2:1;return-Math.sin(kt)*(je+Et.fontSize*Ut)+Math.abs(Math.cos(kt))*(Et.fontSize*i)},Pe.anchorFn=function(Et){var kt=Ae(Et),Ut=Math.cos(kt);return Math.abs(Ut)<.1?"middle":Ut>0?"start":"end"},Pe.heightFn=function(Et,kt,Ut){var Yt=Ae(Et);return-.5*(1+Math.sin(Yt))*Ut};var at=function(Et){return t(ie[0]+U*Math.cos(Et),ie[1]-U*Math.sin(Et))};fe=function(Et){return at(Ae(Et))};var tt=function(Et){var kt=Ae(Et);return at(kt)+"rotate("+-r(kt)+")"};if(ae=s.calcTicks(re),xe=s.getTickSigns(re)[2],re.visible){xe=re.ticks==="inside"?-1:1;var Je=(re.linewidth||1)/2;s.drawTicks(z,re,{vals:ae,layer:q,path:"M"+xe*Je+",0h"+xe*re.ticklen,transFn:tt}),s.drawLabels(z,re,{vals:ae,layer:q,transFn:fe,labelFns:Pe})}var Ze=[te].concat(P.gauge.steps),Me=le.selectAll("g.bg-arc").data(Ze);Me.enter().append("g").classed("bg-arc",!0).append("path"),Me.select("path").call(V).call(b),Me.exit().remove();var we=Q(P.gauge.bar.thickness),he=le.selectAll("g.value-arc").data([P.gauge.bar]);he.enter().append("g").classed("value-arc",!0).append("path");var De=he.select("path");w(J)?(De.transition().duration(J.duration).ease(J.easing).each("end",function(){ee&&ee()}).each("interrupt",function(){ee&&ee()}).attrTween("d",d(we,se(B[0].lastY),se(B[0].y))),P._lastValue=B[0].y):De.attr("d",typeof B[0].y=="number"?we.endAngle(se(B[0].y)):"M0,0Z"),De.call(b),he.exit().remove(),Ze=[];var et=P.gauge.threshold.value;(et||et===0)&&Ze.push({range:[et,et],color:P.gauge.threshold.color,line:{color:P.gauge.threshold.line.color,width:P.gauge.threshold.line.width},thickness:P.gauge.threshold.thickness});var nt=le.selectAll("g.threshold-arc").data(Ze);nt.enter().append("g").classed("threshold-arc",!0).append("path"),nt.select("path").call(V).call(b),nt.exit().remove();var Ke=le.selectAll("g.gauge-outline").data([ue]);Ke.enter().append("g").classed("gauge-outline",!0).append("path"),Ke.select("path").call(V).call(b),Ke.exit().remove()}function _(z,F,B,O){var P=B[0].trace,N=O.numbersX,U=O.numbersY,X=P.align||"center",te=T[X],ue=O.transitionOpts,ie=O.onComplete,le=E.ensureSingle(F,"g","numbers"),q,J,ee,Z=[];P._hasNumber&&Z.push("number"),P._hasDelta&&(Z.push("delta"),P.delta.position==="left"&&Z.reverse());var se=le.selectAll("text").data(Z);se.enter().append("text"),se.attr("text-anchor",function(){return te}).attr("class",function(at){return at}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),se.exit().remove();function Q(at,tt,Je,Ze){if(at.match("s")&&Je>=0!=Ze>=0&&!tt(Je).slice(-1).match(m)&&!tt(Ze).slice(-1).match(m)){var Me=at.slice().replace("s","f").replace(/\d+/,function(he){return parseInt(he)-1}),we=u(z,{tickformat:Me});return function(he){return Math.abs(he)<1?s.tickText(we,he).text:tt(he)}}else return tt}function V(){var at=u(z,{tickformat:P.number.valueformat},P._range);at.setScale(),s.prepTicks(at);var tt=function(he){return s.tickText(at,he).text},Je=P.number.suffix,Ze=P.number.prefix,Me=le.select("text.number");function we(){var he=typeof B[0].y=="number"?Ze+tt(B[0].y)+Je:"-";Me.text(he).call(a.font,P.number.font).call(n.convertToTspans,z)}return w(ue)?Me.transition().duration(ue.duration).ease(ue.easing).each("end",function(){we(),ie&&ie()}).each("interrupt",function(){we(),ie&&ie()}).attrTween("text",function(){var he=h.select(this),De=A(B[0].lastY,B[0].y);P._lastValue=B[0].y;var et=Q(P.number.valueformat,tt,B[0].lastY,B[0].y);return function(nt){he.text(Ze+et(De(nt))+Je)}}):we(),q=R(Ze+tt(B[0].y)+Je,P.number.font,te,z),Me}function re(){var at=u(z,{tickformat:P.delta.valueformat},P._range);at.setScale(),s.prepTicks(at);var tt=function(nt){return s.tickText(at,nt).text},Je=P.delta.suffix,Ze=P.delta.prefix,Me=function(nt){var Ke=P.delta.relative?nt.relativeDelta:nt.delta;return Ke},we=function(nt,Ke){return nt===0||typeof nt!="number"||isNaN(nt)?"-":(nt>0?P.delta.increasing.symbol:P.delta.decreasing.symbol)+Ze+Ke(nt)+Je},he=function(nt){return nt.delta>=0?P.delta.increasing.color:P.delta.decreasing.color};P._deltaLastValue===void 0&&(P._deltaLastValue=Me(B[0]));var De=le.select("text.delta");De.call(a.font,P.delta.font).call(v.fill,he({delta:P._deltaLastValue}));function et(){De.text(we(Me(B[0]),tt)).call(v.fill,he(B[0])).call(n.convertToTspans,z)}return w(ue)?De.transition().duration(ue.duration).ease(ue.easing).tween("text",function(){var nt=h.select(this),Ke=Me(B[0]),Et=P._deltaLastValue,kt=Q(P.delta.valueformat,tt,Et,Ke),Ut=A(Et,Ke);return P._deltaLastValue=Ke,function(Yt){nt.text(we(Ut(Yt),kt)),nt.call(v.fill,he({delta:Ut(Yt)}))}}).each("end",function(){et(),ie&&ie()}).each("interrupt",function(){et(),ie&&ie()}):et(),J=R(we(Me(B[0]),tt),P.delta.font,te,z),De}var ae=P.mode+P.align,fe;if(P._hasDelta&&(fe=re(),ae+=P.delta.position+P.delta.font.size+P.delta.font.family+P.delta.valueformat,ae+=P.delta.increasing.symbol+P.delta.decreasing.symbol,ee=J),P._hasNumber&&(V(),ae+=P.number.font.size+P.number.font.family+P.number.valueformat+P.number.suffix+P.number.prefix,ee=q),P._hasDelta&&P._hasNumber){var xe=[(q.left+q.right)/2,(q.top+q.bottom)/2],Ae=[(J.left+J.right)/2,(J.top+J.bottom)/2],Pe,Ce,je=.75*P.delta.font.size;P.delta.position==="left"&&(Pe=I(P,"deltaPos",0,-1*(q.width*l[P.align]+J.width*(1-l[P.align])+je),ae,Math.min),Ce=xe[1]-Ae[1],ee={width:q.width+J.width+je,height:Math.max(q.height,J.height),left:J.left+Pe,right:q.right,top:Math.min(q.top,J.top+Ce),bottom:Math.max(q.bottom,J.bottom+Ce)}),P.delta.position==="right"&&(Pe=I(P,"deltaPos",0,q.width*(1-l[P.align])+J.width*l[P.align]+je,ae,Math.max),Ce=xe[1]-Ae[1],ee={width:q.width+J.width+je,height:Math.max(q.height,J.height),left:q.left,right:J.right+Pe,top:Math.min(q.top,J.top+Ce),bottom:Math.max(q.bottom,J.bottom+Ce)}),P.delta.position==="bottom"&&(Pe=null,Ce=J.height,ee={width:Math.max(q.width,J.width),height:q.height+J.height,left:Math.min(q.left,J.left),right:Math.max(q.right,J.right),top:q.bottom-q.height,bottom:q.bottom+J.height}),P.delta.position==="top"&&(Pe=null,Ce=q.top,ee={width:Math.max(q.width,J.width),height:q.height+J.height,left:Math.min(q.left,J.left),right:Math.max(q.right,J.right),top:q.bottom-q.height-J.height,bottom:q.bottom}),fe.attr({dx:Pe,dy:Ce})}(P._hasNumber||P._hasDelta)&&le.attr("transform",function(){var at=O.numbersScaler(ee);ae+=at[2];var tt=I(P,"numbersScale",1,at[0],ae,Math.min),Je;P._scaleNumbers||(tt=1),P._isAngular?Je=U-tt*ee.bottom:Je=U-tt*(ee.top+ee.bottom)/2,P._numbersTop=tt*ee.top+Je;var Ze=ee[X];X==="center"&&(Ze=(ee.left+ee.right)/2);var Me=N-tt*Ze;return Me=I(P,"numbersTranslate",0,Me,ae,Math.max),t(Me,Je)+e(tt)})}function b(z){z.each(function(F){v.stroke(h.select(this),F.line.color)}).each(function(F){v.fill(h.select(this),F.color)}).style("stroke-width",function(F){return F.line.width})}function d(z,F,B){return function(){var O=x(F,B);return function(P){return z.endAngle(O(P))()}}}function u(z,F,B){var O=z._fullLayout,P=E.extendFlat({type:"linear",ticks:"outside",range:B,showline:!0},F),N={type:"linear",_id:"x"+F._id},U={letter:"x",font:O.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function X(te,ue){return E.coerce(P,N,p,te,ue)}return c(P,N,X,U,O),f(P,N,X,U),N}function g(z,F,B){var O=Math.min(F/z.width,B/z.height);return[O,z,F+"x"+B]}function y(z,F){var B=Math.sqrt(z.width/2*(z.width/2)+z.height*z.height),O=F/B;return[O,z,F]}function R(z,F,B,O){var P=document.createElementNS("http://www.w3.org/2000/svg","text"),N=h.select(P);return N.text(z).attr("x",0).attr("y",0).attr("text-anchor",B).attr("data-unformatted",z).call(n.convertToTspans,O).call(a.font,F),a.bBox(N.node())}function I(z,F,B,O,P,N){var U="_cache"+F;z[U]&&z[U].key===P||(z[U]={key:P,value:B});var X=E.aggNums(N,null,[z[U].value,O],2);return z[U].value=X,X}}}),ND=He({"src/traces/indicator/index.js"(Y,H){H.exports={moduleType:"trace",name:"indicator",basePlotModule:zD(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:dA(),supplyDefaults:FD().supplyDefaults,calc:OD().calc,plot:BD(),meta:{}}}}),UD=He({"lib/indicator.js"(Y,H){H.exports=ND()}}),gA=He({"src/traces/table/attributes.js"(Y,H){var h=Cp(),x=Po().extendFlat,A=Uu().overrideAll,E=Mu(),e=Ku().attributes,t=_c().descriptionOnlyNumbers;H.exports=A({domain:e({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:t("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:x({},h.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:x({},E({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:t("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:x({},h.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:x({},E({arrayOk:!0}))}},"calc","from-root")}}),jD=He({"src/traces/table/defaults.js"(Y,H){var h=Qr(),x=gA(),A=Ku().defaults;function E(e,t){for(var r=e.columnorder||[],i=e.header.values.length,a=r.slice(0,i),o=a.slice().sort(function(c,f){return c-f}),n=a.map(function(c){return o.indexOf(c)}),s=n.length;s",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}}}),qD=He({"src/traces/table/data_preparation_helper.js"(Y,H){var h=mA(),x=Po().extendFlat,A=Vi(),E=Lf().isTypedArray,e=Lf().isArrayOrTypedArray;H.exports=function(p,v){var T=i(v.cells.values),l=function(te){return te.slice(v.header.values.length,te.length)},m=i(v.header.values);m.length&&!m[0].length&&(m[0]=[""],m=i(m));var w=m.concat(l(T).map(function(){return a((m[0]||[""]).length)})),S=v.domain,M=Math.floor(p._fullLayout._size.w*(S.x[1]-S.x[0])),_=Math.floor(p._fullLayout._size.h*(S.y[1]-S.y[0])),b=v.header.values.length?w[0].map(function(){return v.header.height}):[h.emptyHeaderHeight],d=T.length?T[0].map(function(){return v.cells.height}):[],u=b.reduce(r,0),g=_-u,y=g+h.uplift,R=s(d,y),I=s(b,u),z=n(I,[]),F=n(R,z),B={},O=v._fullInput.columnorder;e(O)&&(O=Array.from(O)),O=O.concat(l(T.map(function(te,ue){return ue})));var P=w.map(function(te,ue){var ie=e(v.columnwidth)?v.columnwidth[Math.min(ue,v.columnwidth.length-1)]:v.columnwidth;return A(ie)?Number(ie):1}),N=P.reduce(r,0);P=P.map(function(te){return te/N*M});var U=Math.max(t(v.header.line.width),t(v.cells.line.width)),X={key:v.uid+p._context.staticPlot,translateX:S.x[0]*p._fullLayout._size.w,translateY:p._fullLayout._size.h*(1-S.y[1]),size:p._fullLayout._size,width:M,maxLineWidth:U,height:_,columnOrder:O,groupHeight:_,rowBlocks:F,headerRowBlocks:z,scrollY:0,cells:x({},v.cells,{values:T}),headerCells:x({},v.header,{values:w}),gdColumns:w.map(function(te){return te[0]}),gdColumnsOriginalOrder:w.map(function(te){return te[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:w.map(function(te,ue){var ie=B[te];B[te]=(ie||0)+1;var le=te+"__"+B[te];return{key:le,label:te,specIndex:ue,xIndex:O[ue],xScale:o,x:void 0,calcdata:void 0,columnWidth:P[ue]}})};return X.columns.forEach(function(te){te.calcdata=X,te.x=o(te)}),X};function t(f){if(e(f)){for(var p=0,v=0;v=p||_===f.length-1)&&(v[l]=w,w.key=M++,w.firstRowIndex=S,w.lastRowIndex=_,w=c(),l+=m,S=_+1,m=0);return v}function c(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}}}),GD=He({"src/traces/table/data_split_helpers.js"(Y){var H=Po().extendFlat;Y.splitToPanels=function(x){var A=[0,0],E=H({},x,{key:"header",type:"header",page:0,prevPages:A,currentRepaint:[null,null],dragHandle:!0,values:x.calcdata.headerCells.values[x.specIndex],rowBlocks:x.calcdata.headerRowBlocks,calcdata:H({},x.calcdata,{cells:x.calcdata.headerCells})}),e=H({},x,{key:"cells1",type:"cells",page:0,prevPages:A,currentRepaint:[null,null],dragHandle:!1,values:x.calcdata.cells.values[x.specIndex],rowBlocks:x.calcdata.rowBlocks}),t=H({},x,{key:"cells2",type:"cells",page:1,prevPages:A,currentRepaint:[null,null],dragHandle:!1,values:x.calcdata.cells.values[x.specIndex],rowBlocks:x.calcdata.rowBlocks});return[e,t,E]},Y.splitToCells=function(x){var A=h(x);return(x.values||[]).slice(A[0],A[1]).map(function(E,e){var t=typeof E=="string"&&E.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:e+t,key:A[0]+e,column:x,calcdata:x.calcdata,page:x.page,rowBlocks:x.rowBlocks,value:E}})};function h(x){var A=x.rowBlocks[x.page],E=A?A.rows[0].rowIndex:0,e=A?E+A.rows.length:0;return[E,e]}}}),yA=He({"src/traces/table/plot.js"(Y,H){var h=mA(),x=yi(),A=Qr(),E=A.numberFormat,e=Hv(),t=Io(),r=jl(),i=Qr().raiseToTop,a=Qr().strTranslate,o=Qr().cancelTransition,n=qD(),s=GD(),c=zi();H.exports=function(ae,fe){var xe=!ae._context.staticPlot,Ae=ae._fullLayout._paper.selectAll("."+h.cn.table).data(fe.map(function(Ke){var Et=e.unwrap(Ke),kt=Et.trace;return n(ae,kt)}),e.keyFun);Ae.exit().remove(),Ae.enter().append("g").classed(h.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),Ae.attr("width",function(Ke){return Ke.width+Ke.size.l+Ke.size.r}).attr("height",function(Ke){return Ke.height+Ke.size.t+Ke.size.b}).attr("transform",function(Ke){return a(Ke.translateX,Ke.translateY)});var Pe=Ae.selectAll("."+h.cn.tableControlView).data(e.repeat,e.keyFun),Ce=Pe.enter().append("g").classed(h.cn.tableControlView,!0).style("box-sizing","content-box");if(xe){var je="onwheel"in document?"wheel":"mousewheel";Ce.on("mousemove",function(Ke){Pe.filter(function(Et){return Ke===Et}).call(l,ae)}).on(je,function(Ke){if(!Ke.scrollbarState.wheeling){Ke.scrollbarState.wheeling=!0;var Et=Ke.scrollY+x.event.deltaY,kt=te(ae,Pe,null,Et)(Ke);kt||(x.event.stopPropagation(),x.event.preventDefault()),Ke.scrollbarState.wheeling=!1}}).call(l,ae,!0)}Pe.attr("transform",function(Ke){return a(Ke.size.l,Ke.size.t)});var at=Pe.selectAll("."+h.cn.scrollBackground).data(e.repeat,e.keyFun);at.enter().append("rect").classed(h.cn.scrollBackground,!0).attr("fill","none"),at.attr("width",function(Ke){return Ke.width}).attr("height",function(Ke){return Ke.height}),Pe.each(function(Ke){t.setClipUrl(x.select(this),p(ae,Ke),ae)});var tt=Pe.selectAll("."+h.cn.yColumn).data(function(Ke){return Ke.columns},e.keyFun);tt.enter().append("g").classed(h.cn.yColumn,!0),tt.exit().remove(),tt.attr("transform",function(Ke){return a(Ke.x,0)}),xe&&tt.call(x.behavior.drag().origin(function(Ke){var Et=x.select(this);return B(Et,Ke,-h.uplift),i(this),Ke.calcdata.columnDragInProgress=!0,l(Pe.filter(function(kt){return Ke.calcdata.key===kt.key}),ae),Ke}).on("drag",function(Ke){var Et=x.select(this),kt=function(vr){return(Ke===vr?x.event.x:vr.x)+vr.columnWidth/2};Ke.x=Math.max(-h.overdrag,Math.min(Ke.calcdata.width+h.overdrag-Ke.columnWidth,x.event.x));var Ut=T(tt).filter(function(vr){return vr.calcdata.key===Ke.calcdata.key}),Yt=Ut.sort(function(vr,hr){return kt(vr)-kt(hr)});Yt.forEach(function(vr,hr){vr.xIndex=hr,vr.x=Ke===vr?vr.x:vr.xScale(vr)}),tt.filter(function(vr){return Ke!==vr}).transition().ease(h.transitionEase).duration(h.transitionDuration).attr("transform",function(vr){return a(vr.x,0)}),Et.call(o).attr("transform",a(Ke.x,-h.uplift))}).on("dragend",function(Ke){var Et=x.select(this),kt=Ke.calcdata;Ke.x=Ke.xScale(Ke),Ke.calcdata.columnDragInProgress=!1,B(Et,Ke,0),z(ae,kt,kt.columns.map(function(Ut){return Ut.xIndex}))})),tt.each(function(Ke){t.setClipUrl(x.select(this),v(ae,Ke),ae)});var Je=tt.selectAll("."+h.cn.columnBlock).data(s.splitToPanels,e.keyFun);Je.enter().append("g").classed(h.cn.columnBlock,!0).attr("id",function(Ke){return Ke.key}),Je.style("cursor",function(Ke){return Ke.dragHandle?"ew-resize":Ke.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var Ze=Je.filter(P),Me=Je.filter(O);xe&&Me.call(x.behavior.drag().origin(function(Ke){return x.event.stopPropagation(),Ke}).on("drag",te(ae,Pe,-1)).on("dragend",function(){})),m(ae,Pe,Ze,Je),m(ae,Pe,Me,Je);var we=Pe.selectAll("."+h.cn.scrollAreaClip).data(e.repeat,e.keyFun);we.enter().append("clipPath").classed(h.cn.scrollAreaClip,!0).attr("id",function(Ke){return p(ae,Ke)});var he=we.selectAll("."+h.cn.scrollAreaClipRect).data(e.repeat,e.keyFun);he.enter().append("rect").classed(h.cn.scrollAreaClipRect,!0).attr("x",-h.overdrag).attr("y",-h.uplift).attr("fill","none"),he.attr("width",function(Ke){return Ke.width+2*h.overdrag}).attr("height",function(Ke){return Ke.height+h.uplift});var De=tt.selectAll("."+h.cn.columnBoundary).data(e.repeat,e.keyFun);De.enter().append("g").classed(h.cn.columnBoundary,!0);var et=tt.selectAll("."+h.cn.columnBoundaryClippath).data(e.repeat,e.keyFun);et.enter().append("clipPath").classed(h.cn.columnBoundaryClippath,!0),et.attr("id",function(Ke){return v(ae,Ke)});var nt=et.selectAll("."+h.cn.columnBoundaryRect).data(e.repeat,e.keyFun);nt.enter().append("rect").classed(h.cn.columnBoundaryRect,!0).attr("fill","none"),nt.attr("width",function(Ke){return Ke.columnWidth+2*f(Ke)}).attr("height",function(Ke){return Ke.calcdata.height+2*f(Ke)+h.uplift}).attr("x",function(Ke){return-f(Ke)}).attr("y",function(Ke){return-f(Ke)}),X(null,Me,Pe)};function f(re){return Math.ceil(re.calcdata.maxLineWidth/2)}function p(re,ae){return"clip"+re._fullLayout._uid+"_scrollAreaBottomClip_"+ae.key}function v(re,ae){return"clip"+re._fullLayout._uid+"_columnBoundaryClippath_"+ae.calcdata.key+"_"+ae.specIndex}function T(re){return[].concat.apply([],re.map(function(ae){return ae})).map(function(ae){return ae.__data__})}function l(re,ae,fe){function xe(tt){var Je=tt.rowBlocks;return ee(Je,Je.length-1)+(Je.length?Z(Je[Je.length-1],1/0):1)}var Ae=re.selectAll("."+h.cn.scrollbarKit).data(e.repeat,e.keyFun);Ae.enter().append("g").classed(h.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),Ae.each(function(tt){var Je=tt.scrollbarState;Je.totalHeight=xe(tt),Je.scrollableAreaHeight=tt.groupHeight-N(tt),Je.currentlyVisibleHeight=Math.min(Je.totalHeight,Je.scrollableAreaHeight),Je.ratio=Je.currentlyVisibleHeight/Je.totalHeight,Je.barLength=Math.max(Je.ratio*Je.currentlyVisibleHeight,h.goldenRatio*h.scrollbarWidth),Je.barWiggleRoom=Je.currentlyVisibleHeight-Je.barLength,Je.wiggleRoom=Math.max(0,Je.totalHeight-Je.scrollableAreaHeight),Je.topY=Je.barWiggleRoom===0?0:tt.scrollY/Je.wiggleRoom*Je.barWiggleRoom,Je.bottomY=Je.topY+Je.barLength,Je.dragMultiplier=Je.wiggleRoom/Je.barWiggleRoom}).attr("transform",function(tt){var Je=tt.width+h.scrollbarWidth/2+h.scrollbarOffset;return a(Je,N(tt))});var Pe=Ae.selectAll("."+h.cn.scrollbar).data(e.repeat,e.keyFun);Pe.enter().append("g").classed(h.cn.scrollbar,!0);var Ce=Pe.selectAll("."+h.cn.scrollbarSlider).data(e.repeat,e.keyFun);Ce.enter().append("g").classed(h.cn.scrollbarSlider,!0),Ce.attr("transform",function(tt){return a(0,tt.scrollbarState.topY||0)});var je=Ce.selectAll("."+h.cn.scrollbarGlyph).data(e.repeat,e.keyFun);je.enter().append("line").classed(h.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",h.scrollbarWidth).attr("stroke-linecap","round").attr("y1",h.scrollbarWidth/2),je.attr("y2",function(tt){return tt.scrollbarState.barLength-h.scrollbarWidth/2}).attr("stroke-opacity",function(tt){return tt.columnDragInProgress||!tt.scrollbarState.barWiggleRoom||fe?0:.4}),je.transition().delay(0).duration(0),je.transition().delay(h.scrollbarHideDelay).duration(h.scrollbarHideDuration).attr("stroke-opacity",0);var at=Pe.selectAll("."+h.cn.scrollbarCaptureZone).data(e.repeat,e.keyFun);at.enter().append("line").classed(h.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",h.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(tt){var Je=x.event.y,Ze=this.getBoundingClientRect(),Me=tt.scrollbarState,we=Je-Ze.top,he=x.scale.linear().domain([0,Me.scrollableAreaHeight]).range([0,Me.totalHeight]).clamp(!0);Me.topY<=we&&we<=Me.bottomY||te(ae,re,null,he(we-Me.barLength/2))(tt)}).call(x.behavior.drag().origin(function(tt){return x.event.stopPropagation(),tt.scrollbarState.scrollbarScrollInProgress=!0,tt}).on("drag",te(ae,re)).on("dragend",function(){})),at.attr("y2",function(tt){return tt.scrollbarState.scrollableAreaHeight}),ae._context.staticPlot&&(je.remove(),at.remove())}function m(re,ae,fe,xe){var Ae=w(fe),Pe=S(Ae);d(Pe);var Ce=M(Pe);g(Ce);var je=b(Pe),at=_(je);u(at),y(at,ae,xe,re),J(Pe)}function w(re){var ae=re.selectAll("."+h.cn.columnCells).data(e.repeat,e.keyFun);return ae.enter().append("g").classed(h.cn.columnCells,!0),ae.exit().remove(),ae}function S(re){var ae=re.selectAll("."+h.cn.columnCell).data(s.splitToCells,function(fe){return fe.keyWithinBlock});return ae.enter().append("g").classed(h.cn.columnCell,!0),ae.exit().remove(),ae}function M(re){var ae=re.selectAll("."+h.cn.cellRect).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("rect").classed(h.cn.cellRect,!0),ae}function _(re){var ae=re.selectAll("."+h.cn.cellText).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("text").classed(h.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){x.event.stopPropagation()}),ae}function b(re){var ae=re.selectAll("."+h.cn.cellTextHolder).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("g").classed(h.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),ae}function d(re){re.each(function(ae,fe){var xe=ae.calcdata.cells.font,Ae=ae.column.specIndex,Pe={size:F(xe.size,Ae,fe),color:F(xe.color,Ae,fe),family:F(xe.family,Ae,fe),weight:F(xe.weight,Ae,fe),style:F(xe.style,Ae,fe),variant:F(xe.variant,Ae,fe),textcase:F(xe.textcase,Ae,fe),lineposition:F(xe.lineposition,Ae,fe),shadow:F(xe.shadow,Ae,fe)};ae.rowNumber=ae.key,ae.align=F(ae.calcdata.cells.align,Ae,fe),ae.cellBorderWidth=F(ae.calcdata.cells.line.width,Ae,fe),ae.font=Pe})}function u(re){re.each(function(ae){t.font(x.select(this),ae.font)})}function g(re){re.attr("width",function(ae){return ae.column.columnWidth}).attr("stroke-width",function(ae){return ae.cellBorderWidth}).each(function(ae){var fe=x.select(this);c.stroke(fe,F(ae.calcdata.cells.line.color,ae.column.specIndex,ae.rowNumber)),c.fill(fe,F(ae.calcdata.cells.fill.color,ae.column.specIndex,ae.rowNumber))})}function y(re,ae,fe,xe){re.text(function(Ae){var Pe=Ae.column.specIndex,Ce=Ae.rowNumber,je=Ae.value,at=typeof je=="string",tt=at&&je.match(/
/i),Je=!at||tt;Ae.mayHaveMarkup=at&&je.match(/[<&>]/);var Ze=R(je);Ae.latex=Ze;var Me=Ze?"":F(Ae.calcdata.cells.prefix,Pe,Ce)||"",we=Ze?"":F(Ae.calcdata.cells.suffix,Pe,Ce)||"",he=Ze?null:F(Ae.calcdata.cells.format,Pe,Ce)||null,De=Me+(he?E(he)(Ae.value):Ae.value)+we,et;Ae.wrappingNeeded=!Ae.wrapped&&!Je&&!Ze&&(et=I(De)),Ae.cellHeightMayIncrease=tt||Ze||Ae.mayHaveMarkup||(et===void 0?I(De):et),Ae.needsConvertToTspans=Ae.mayHaveMarkup||Ae.wrappingNeeded||Ae.latex;var nt;if(Ae.wrappingNeeded){var Ke=h.wrapSplitCharacter===" "?De.replace(/Ae&&xe.push(Pe),Ae+=at}return xe}function X(re,ae,fe){var xe=T(ae)[0];if(xe!==void 0){var Ae=xe.rowBlocks,Pe=xe.calcdata,Ce=ee(Ae,Ae.length),je=xe.calcdata.groupHeight-N(xe),at=Pe.scrollY=Math.max(0,Math.min(Ce-je,Pe.scrollY)),tt=U(Ae,at,je);tt.length===1&&(tt[0]===Ae.length-1?tt.unshift(tt[0]-1):tt.push(tt[0]+1)),tt[0]%2&&tt.reverse(),ae.each(function(Je,Ze){Je.page=tt[Ze],Je.scrollY=at}),ae.attr("transform",function(Je){var Ze=ee(Je.rowBlocks,Je.page)-Je.scrollY;return a(0,Ze)}),re&&(ue(re,fe,ae,tt,xe.prevPages,xe,0),ue(re,fe,ae,tt,xe.prevPages,xe,1),l(fe,re))}}function te(re,ae,fe,xe){return function(Pe){var Ce=Pe.calcdata?Pe.calcdata:Pe,je=ae.filter(function(Ze){return Ce.key===Ze.key}),at=fe||Ce.scrollbarState.dragMultiplier,tt=Ce.scrollY;Ce.scrollY=xe===void 0?Ce.scrollY+at*x.event.dy:xe;var Je=je.selectAll("."+h.cn.yColumn).selectAll("."+h.cn.columnBlock).filter(O);return X(re,Je,je),Ce.scrollY===tt}}function ue(re,ae,fe,xe,Ae,Pe,Ce){var je=xe[Ce]!==Ae[Ce];je&&(clearTimeout(Pe.currentRepaint[Ce]),Pe.currentRepaint[Ce]=setTimeout(function(){var at=fe.filter(function(tt,Je){return Je===Ce&&xe[Je]!==Ae[Je]});m(re,ae,at,fe),Ae[Ce]=xe[Ce]}))}function ie(re,ae,fe,xe){return function(){var Pe=x.select(ae.parentNode);Pe.each(function(Ce){var je=Ce.fragments;Pe.selectAll("tspan.line").each(function(De,et){je[et].width=this.getComputedTextLength()});var at=je[je.length-1].width,tt=je.slice(0,-1),Je=[],Ze,Me,we=0,he=Ce.column.columnWidth-2*h.cellPad;for(Ce.value="";tt.length;)Ze=tt.shift(),Me=Ze.width+at,we+Me>he&&(Ce.value+=Je.join(h.wrapSpacer)+h.lineBreaker,Je=[],we=0),Je.push(Ze.text),we+=Me;we&&(Ce.value+=Je.join(h.wrapSpacer)),Ce.wrapped=!0}),Pe.selectAll("tspan.line").remove(),y(Pe.select("."+h.cn.cellText),fe,re,xe),x.select(ae.parentNode.parentNode).call(J)}}function le(re,ae,fe,xe,Ae){return function(){if(!Ae.settledY){var Ce=x.select(ae.parentNode),je=Q(Ae),at=Ae.key-je.firstRowIndex,tt=je.rows[at].rowHeight,Je=Ae.cellHeightMayIncrease?ae.parentNode.getBoundingClientRect().height+2*h.cellPad:tt,Ze=Math.max(Je,tt),Me=Ze-je.rows[at].rowHeight;Me&&(je.rows[at].rowHeight=Ze,re.selectAll("."+h.cn.columnCell).call(J),X(null,re.filter(O),0),l(fe,xe,!0)),Ce.attr("transform",function(){var we=this,he=we.parentNode,De=he.getBoundingClientRect(),et=x.select(we.parentNode).select("."+h.cn.cellRect).node().getBoundingClientRect(),nt=we.transform.baseVal.consolidate(),Ke=et.top-De.top+(nt?nt.matrix.f:h.cellPad);return a(q(Ae,x.select(we.parentNode).select("."+h.cn.cellTextHolder).node().getBoundingClientRect().width),Ke)}),Ae.settledY=!0}}}function q(re,ae){switch(re.align){case"left":return h.cellPad;case"right":return re.column.columnWidth-(ae||0)-h.cellPad;case"center":return(re.column.columnWidth-(ae||0))/2;default:return h.cellPad}}function J(re){re.attr("transform",function(ae){var fe=ae.rowBlocks[0].auxiliaryBlocks.reduce(function(Ce,je){return Ce+Z(je,1/0)},0),xe=Q(ae),Ae=Z(xe,ae.key),Pe=Ae+fe;return a(0,Pe)}).selectAll("."+h.cn.cellRect).attr("height",function(ae){return V(Q(ae),ae.key).rowHeight})}function ee(re,ae){for(var fe=0,xe=ae-1;xe>=0;xe--)fe+=se(re[xe]);return fe}function Z(re,ae){for(var fe=0,xe=0;xeE.length&&(A=A.slice(0,E.length)):A=[],t=0;t90&&(p-=180,o=-o),{angle:p,flip:o,p:x.c2p(e,A,E),offsetMultplier:n}}}}),ez=He({"src/traces/carpet/plot.js"(Y,H){var h=yi(),x=Io(),A=_A(),E=xA(),e=QD(),t=jl(),r=Qr(),i=r.strRotate,a=r.strTranslate,o=Pf();H.exports=function(m,w,S,M){var _=m._context.staticPlot,b=w.xaxis,d=w.yaxis,u=m._fullLayout,g=u._clips;r.makeTraceGroups(M,S,"trace").each(function(y){var R=h.select(this),I=y[0],z=I.trace,F=z.aaxis,B=z.baxis,O=r.ensureSingle(R,"g","minorlayer"),P=r.ensureSingle(R,"g","majorlayer"),N=r.ensureSingle(R,"g","boundarylayer"),U=r.ensureSingle(R,"g","labellayer");R.style("opacity",z.opacity),s(b,d,P,F,"a",F._gridlines,!0),s(b,d,P,B,"b",B._gridlines,!0),s(b,d,O,F,"a",F._minorgridlines,!0),s(b,d,O,B,"b",B._minorgridlines,!0),s(b,d,N,F,"a-boundary",F._boundarylines,_),s(b,d,N,B,"b-boundary",B._boundarylines,_);var X=c(m,b,d,z,I,U,F._labels,"a-label"),te=c(m,b,d,z,I,U,B._labels,"b-label");f(m,U,z,I,b,d,X,te),n(z,I,g,b,d)})};function n(l,m,w,S,M){var _,b,d,u,g=w.select("#"+l._clipPathId);g.size()||(g=w.append("clipPath").classed("carpetclip",!0));var y=r.ensureSingle(g,"path","carpetboundary"),R=m.clipsegments,I=[];for(u=0;u0?"start":"end","data-notex":1}).call(x.font,R.font).text(R.text).call(t.convertToTspans,l),P=x.bBox(this);O.attr("transform",a(z.p[0],z.p[1])+i(z.angle)+a(R.axis.labelpadding*B,P.height*.3)),g=Math.max(g,P.width+R.axis.labelpadding)}),u.exit().remove(),y.maxExtent=g,y}function f(l,m,w,S,M,_,b,d){var u,g,y,R,I=r.aggNums(Math.min,null,w.a),z=r.aggNums(Math.max,null,w.a),F=r.aggNums(Math.min,null,w.b),B=r.aggNums(Math.max,null,w.b);u=.5*(I+z),g=F,y=w.ab2xy(u,g,!0),R=w.dxyda_rough(u,g),b.angle===void 0&&r.extendFlat(b,e(w,M,_,y,w.dxydb_rough(u,g))),T(l,m,w,S,y,R,w.aaxis,M,_,b,"a-title"),u=I,g=.5*(F+B),y=w.ab2xy(u,g,!0),R=w.dxydb_rough(u,g),d.angle===void 0&&r.extendFlat(d,e(w,M,_,y,w.dxyda_rough(u,g))),T(l,m,w,S,y,R,w.baxis,M,_,d,"b-title")}var p=o.LINE_SPACING,v=(1-o.MID_SHIFT)/p+1;function T(l,m,w,S,M,_,b,d,u,g,y){var R=[];b.title.text&&R.push(b.title.text);var I=m.selectAll("text."+y).data(R),z=g.maxExtent;I.enter().append("text").classed(y,!0),I.each(function(){var F=e(w,d,u,M,_);["start","both"].indexOf(b.showticklabels)===-1&&(z=0);var B=b.title.font.size;z+=B+b.title.offset;var O=g.angle+(g.flip<0?180:0),P=(O-F.angle+450)%360,N=P>90&&P<270,U=h.select(this);U.text(b.title.text).call(t.convertToTspans,l),N&&(z=(-t.lineCount(U)+v)*p*B-z),U.attr("transform",a(F.p[0],F.p[1])+i(F.angle)+a(0,z)).attr("text-anchor","middle").call(x.font,b.title.font)}),I.exit().remove()}}}),tz=He({"src/traces/carpet/cheater_basis.js"(Y,H){var h=Qr().isArrayOrTypedArray;H.exports=function(x,A,E){var e,t,r,i,a,o,n=[],s=h(x)?x.length:x,c=h(A)?A.length:A,f=h(x)?x:null,p=h(A)?A:null;f&&(r=(f.length-1)/(f[f.length-1]-f[0])/(s-1)),p&&(i=(p.length-1)/(p[p.length-1]-p[0])/(c-1));var v,T=1/0,l=-1/0;for(t=0;t=10)return null;for(var e=1/0,t=-1/0,r=A.length,i=0;i0&&(Z=E.dxydi([],X-1,ue,0,ie),re.push(le[0]+Z[0]/3),ae.push(le[1]+Z[1]/3),se=E.dxydi([],X-1,ue,1,ie),re.push(ee[0]-se[0]/3),ae.push(ee[1]-se[1]/3)),re.push(ee[0]),ae.push(ee[1]),le=ee;else for(X=E.a2i(U),q=Math.floor(Math.max(0,Math.min(F-2,X))),J=X-q,fe.length=F,fe.crossLength=B,fe.xy=function(xe){return E.evalxy([],X,xe)},fe.dxy=function(xe,Ae){return E.dxydj([],q,xe,J,Ae)},te=0;te0&&(Q=E.dxydj([],q,te-1,J,0),re.push(le[0]+Q[0]/3),ae.push(le[1]+Q[1]/3),V=E.dxydj([],q,te-1,J,1),re.push(ee[0]-V[0]/3),ae.push(ee[1]-V[1]/3)),re.push(ee[0]),ae.push(ee[1]),le=ee;return fe.axisLetter=e,fe.axis=M,fe.crossAxis=g,fe.value=U,fe.constvar=t,fe.index=f,fe.x=re,fe.y=ae,fe.smoothing=g.smoothing,fe}function N(U){var X,te,ue,ie,le,q=[],J=[],ee={};if(ee.length=S.length,ee.crossLength=u.length,e==="b")for(ue=Math.max(0,Math.min(B-2,U)),le=Math.min(1,Math.max(0,U-ue)),ee.xy=function(Z){return E.evalxy([],Z,U)},ee.dxy=function(Z,se){return E.dxydi([],Z,ue,se,le)},X=0;XS.length-1)&&_.push(x(N(i),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=s;fS.length-1)&&!(T<0||T>S.length-1))for(l=S[a],m=S[T],r=0;rS[S.length-1])&&b.push(x(P(v),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&d.push(x(N(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&d.push(x(N(S.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(o=5e-15,n=[Math.floor((S[S.length-1]-M.tick0)/M.dtick*(1+o)),Math.ceil((S[0]-M.tick0)/M.dtick/(1+o))].sort(function(U,X){return U-X}),s=n[0],c=n[1],f=s;f<=c;f++)p=M.tick0+M.dtick*f,_.push(x(P(p),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=s-1;fS[S.length-1])&&b.push(x(P(v),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&d.push(x(P(S[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&d.push(x(P(S[S.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}}}),nz=He({"src/traces/carpet/calc_labels.js"(Y,H){var h=wo(),x=Po().extendFlat;H.exports=function(E,e){var t,r,i,a,o,n=e._labels=[],s=e._gridlines;for(t=0;t=0;t--)r[s-t]=x[c][t],i[s-t]=A[c][t];for(a.push({x:r,y:i,bicubic:o}),t=c,r=[],i=[];t>=0;t--)r[c-t]=x[t][0],i[c-t]=A[t][0];return a.push({x:r,y:i,bicubic:n}),a}}}),oz=He({"src/traces/carpet/smooth_fill_2d_array.js"(Y,H){var h=Qr();H.exports=function(A,E,e){var t,r,i,a=[],o=[],n=A[0].length,s=A.length;function c(te,ue){var ie=0,le,q=0;return te>0&&(le=A[ue][te-1])!==void 0&&(q++,ie+=le),te0&&(le=A[ue-1][te])!==void 0&&(q++,ie+=le),ue0&&r0&&tu);return h.log("Smoother converged to",g,"after",R,"iterations"),A}}}),sz=He({"src/traces/carpet/constants.js"(Y,H){H.exports={RELATIVE_CULL_TOLERANCE:1e-6}}}),lz=He({"src/traces/carpet/catmull_rom.js"(Y,H){var h=.5;H.exports=function(A,E,e,t){var r=A[0]-E[0],i=A[1]-E[1],a=e[0]-E[0],o=e[1]-E[1],n=Math.pow(r*r+i*i,h/2),s=Math.pow(a*a+o*o,h/2),c=(s*s*r-n*n*a)*t,f=(s*s*i-n*n*o)*t,p=s*(n+s)*3,v=n*(n+s)*3;return[[E[0]+(p&&c/p),E[1]+(p&&f/p)],[E[0]-(v&&c/v),E[1]-(v&&f/v)]]}}}),uz=He({"src/traces/carpet/compute_control_points.js"(Y,H){var h=lz(),x=Qr().ensureArray;function A(E,e,t){var r=-.5*t[0]+1.5*e[0],i=-.5*t[1]+1.5*e[1];return[(2*r+E[0])/3,(2*i+E[1])/3]}H.exports=function(e,t,r,i,a,o){var n,s,c,f,p,v,T,l,m,w,S=r[0].length,M=r.length,_=a?3*S-2:S,b=o?3*M-2:M;for(e=x(e,b),t=x(t,b),c=0;cp&&_T&&bv||bl},i.setScale=function(){var _=i._x,b=i._y,d=A(i._xctrl,i._yctrl,_,b,c.smoothing,f.smoothing);i._xctrl=d[0],i._yctrl=d[1],i.evalxy=E([i._xctrl,i._yctrl],n,s,c.smoothing,f.smoothing),i.dxydi=e([i._xctrl,i._yctrl],c.smoothing,f.smoothing),i.dxydj=t([i._xctrl,i._yctrl],c.smoothing,f.smoothing)},i.i2a=function(_){var b=Math.max(0,Math.floor(_[0]),n-2),d=_[0]-b;return(1-d)*a[b]+d*a[b+1]},i.j2b=function(_){var b=Math.max(0,Math.floor(_[1]),n-2),d=_[1]-b;return(1-d)*o[b]+d*o[b+1]},i.ij2ab=function(_){return[i.i2a(_[0]),i.j2b(_[1])]},i.a2i=function(_){var b=Math.max(0,Math.min(x(_,a),n-2)),d=a[b],u=a[b+1];return Math.max(0,Math.min(n-1,b+(_-d)/(u-d)))},i.b2j=function(_){var b=Math.max(0,Math.min(x(_,o),s-2)),d=o[b],u=o[b+1];return Math.max(0,Math.min(s-1,b+(_-d)/(u-d)))},i.ab2ij=function(_){return[i.a2i(_[0]),i.b2j(_[1])]},i.i2c=function(_,b){return i.evalxy([],_,b)},i.ab2xy=function(_,b,d){if(!d&&(_a[n-1]|bo[s-1]))return[!1,!1];var u=i.a2i(_),g=i.b2j(b),y=i.evalxy([],u,g);if(d){var R=0,I=0,z=[],F,B,O,P;_a[n-1]?(F=n-2,B=1,R=(_-a[n-1])/(a[n-1]-a[n-2])):(F=Math.max(0,Math.min(n-2,Math.floor(u))),B=u-F),bo[s-1]?(O=s-2,P=1,I=(b-o[s-1])/(o[s-1]-o[s-2])):(O=Math.max(0,Math.min(s-2,Math.floor(g))),P=g-O),R&&(i.dxydi(z,F,O,B,P),y[0]+=z[0]*R,y[1]+=z[1]*R),I&&(i.dxydj(z,F,O,B,P),y[0]+=z[0]*I,y[1]+=z[1]*I)}return y},i.c2p=function(_,b,d){return[b.c2p(_[0]),d.c2p(_[1])]},i.p2x=function(_,b,d){return[b.p2c(_[0]),d.p2c(_[1])]},i.dadi=function(_){var b=Math.max(0,Math.min(a.length-2,_));return a[b+1]-a[b]},i.dbdj=function(_){var b=Math.max(0,Math.min(o.length-2,_));return o[b+1]-o[b]},i.dxyda=function(_,b,d,u){var g=i.dxydi(null,_,b,d,u),y=i.dadi(_,d);return[g[0]/y,g[1]/y]},i.dxydb=function(_,b,d,u){var g=i.dxydj(null,_,b,d,u),y=i.dbdj(b,u);return[g[0]/y,g[1]/y]},i.dxyda_rough=function(_,b,d){var u=m*(d||.1),g=i.ab2xy(_+u,b,!0),y=i.ab2xy(_-u,b,!0);return[(g[0]-y[0])*.5/u,(g[1]-y[1])*.5/u]},i.dxydb_rough=function(_,b,d){var u=w*(d||.1),g=i.ab2xy(_,b+u,!0),y=i.ab2xy(_,b-u,!0);return[(g[0]-y[0])*.5/u,(g[1]-y[1])*.5/u]},i.dpdx=function(_){return _._m},i.dpdy=function(_){return _._m}}}}),dz=He({"src/traces/carpet/calc.js"(Y,H){var h=wo(),x=Qr().isArray1D,A=tz(),E=rz(),e=az(),t=nz(),r=iz(),i=B1(),a=oz(),o=O1(),n=vz();H.exports=function(c,f){var p=h.getFromId(c,f.xaxis),v=h.getFromId(c,f.yaxis),T=f.aaxis,l=f.baxis,m=f.x,w=f.y,S=[];m&&x(m)&&S.push("x"),w&&x(w)&&S.push("y"),S.length&&o(f,T,l,"a","b",S);var M=f._a=f._a||f.a,_=f._b=f._b||f.b;m=f._x||f.x,w=f._y||f.y;var b={};if(f._cheater){var d=T.cheatertype==="index"?M.length:M,u=l.cheatertype==="index"?_.length:_;m=A(d,u,f.cheaterslope)}f._x=m=i(m),f._y=w=i(w),a(m,M,_),a(w,M,_),n(f),f.setScale();var g=E(m),y=E(w),R=.5*(g[1]-g[0]),I=.5*(g[1]+g[0]),z=.5*(y[1]-y[0]),F=.5*(y[1]+y[0]),B=1.3;return g=[I-R*B,I+R*B],y=[F-z*B,F+z*B],f._extremes[p._id]=h.findExtremes(p,g,{padded:!0}),f._extremes[v._id]=h.findExtremes(v,y,{padded:!0}),e(f,"a","b"),e(f,"b","a"),t(f,T),t(f,l),b.clipsegments=r(f._xctrl,f._yctrl,T,l),b.x=m,b.y=w,b.a=M,b.b=_,[b]}}}),pz=He({"src/traces/carpet/index.js"(Y,H){H.exports={attributes:xx(),supplyDefaults:JD(),plot:ez(),calc:dz(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:cf(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}}}),gz=He({"lib/carpet.js"(Y,H){H.exports=pz()}}),bA=He({"src/traces/scattercarpet/attributes.js"(Y,H){var h=_v(),x=bc(),A=Ll(),E=us().hovertemplateAttrs,e=us().texttemplateAttrs,t=eu(),r=Po().extendFlat,i=x.marker,a=x.line,o=i.line;H.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:r({},x.mode,{dflt:"markers"}),text:r({},x.text,{}),texttemplate:e({editType:"plot"},{keys:["a","b","text"]}),hovertext:r({},x.hovertext,{}),line:{color:a.color,width:a.width,dash:a.dash,backoff:a.backoff,shape:r({},a.shape,{values:["linear","spline"]}),smoothing:a.smoothing,editType:"calc"},connectgaps:x.connectgaps,fill:r({},x.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:h(),marker:r({symbol:i.symbol,opacity:i.opacity,maxdisplayed:i.maxdisplayed,angle:i.angle,angleref:i.angleref,standoff:i.standoff,size:i.size,sizeref:i.sizeref,sizemin:i.sizemin,sizemode:i.sizemode,line:r({width:o.width,editType:"calc"},t("marker.line")),gradient:i.gradient,editType:"calc"},t("marker")),textfont:x.textfont,textposition:x.textposition,selected:x.selected,unselected:x.unselected,hoverinfo:r({},A.hoverinfo,{flags:["a","b","text","name"]}),hoveron:x.hoveron,hovertemplate:E(),zorder:x.zorder}}}),mz=He({"src/traces/scattercarpet/defaults.js"(Y,H){var h=Qr(),x=Uv(),A=cu(),E=Zh(),e=rv(),t=G0(),r=av(),i=bv(),a=bA();H.exports=function(n,s,c,f){function p(M,_){return h.coerce(n,s,a,M,_)}p("carpet"),s.xaxis="x",s.yaxis="y";var v=p("a"),T=p("b"),l=Math.min(v.length,T.length);if(!l){s.visible=!1;return}s._length=l,p("text"),p("texttemplate"),p("hovertext");var m=l0?b=M.labelprefix.replace(/ = $/,""):b=M._hovertitle,l.push(b+": "+_.toFixed(3)+M.labelsuffix)}if(!p.hovertemplate){var w=f.hi||p.hoverinfo,S=w.split("+");S.indexOf("all")!==-1&&(S=["a","b","text"]),S.indexOf("a")!==-1&&m(v.aaxis,f.a),S.indexOf("b")!==-1&&m(v.baxis,f.b),l.push("y: "+a.yLabel),S.indexOf("text")!==-1&&x(f,p,l),a.extraText=l.join("
")}return i}}}),wz=He({"src/traces/scattercarpet/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){var r=e[t];return x.a=r.a,x.b=r.b,x.y=r.y,x}}}),Tz=He({"src/traces/scattercarpet/index.js"(Y,H){H.exports={attributes:bA(),supplyDefaults:mz(),colorbar:ch(),formatLabels:yz(),calc:_z(),plot:xz(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:bz(),selectPoints:Z0(),eventData:wz(),moduleType:"trace",name:"scattercarpet",basePlotModule:cf(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}}}),Az=He({"lib/scattercarpet.js"(Y,H){H.exports=Tz()}}),wA=He({"src/traces/contourcarpet/attributes.js"(Y,H){var h=K0(),x=pm(),A=eu(),E=Po().extendFlat,e=x.contours;H.exports=E({carpet:{valType:"string",editType:"calc"},z:h.z,a:h.x,a0:h.x0,da:h.dx,b:h.y,b0:h.y0,db:h.dy,text:h.text,hovertext:h.hovertext,transpose:h.transpose,atype:h.xtype,btype:h.ytype,fillcolor:x.fillcolor,autocontour:x.autocontour,ncontours:x.ncontours,contours:{type:e.type,start:e.start,end:e.end,size:e.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:e.showlines,showlabels:e.showlabels,labelfont:e.labelfont,labelformat:e.labelformat,operation:e.operation,value:e.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:x.line.color,width:x.line.width,dash:x.line.dash,smoothing:x.line.smoothing,editType:"plot"},zorder:x.zorder},A("",{cLetter:"z",autoColorDflt:!1}))}}),TA=He({"src/traces/contourcarpet/defaults.js"(Y,H){var h=Qr(),x=F1(),A=wA(),E=Zw(),e=$1(),t=K1();H.exports=function(i,a,o,n){function s(v,T){return h.coerce(i,a,A,v,T)}function c(v){return h.coerce2(i,a,A,v)}if(s("carpet"),i.a&&i.b){var f=x(i,a,s,n,"a","b");if(!f){a.visible=!1;return}s("text");var p=s("contours.type")==="constraint";p?E(i,a,s,n,o,{hasHover:!1}):(e(i,a,s,c),t(i,a,s,n,{hasHover:!1}))}else a._defaultColor=o,a._length=null;s("zorder")}}}),Sz=He({"src/traces/contourcarpet/calc.js"(Y,H){var h=Ch(),x=Qr(),A=O1(),E=B1(),e=N1(),t=U1(),r=Iw(),i=TA(),a=bx(),o=Nw();H.exports=function(c,f){var p=f._carpetTrace=a(c,f);if(!(!p||!p.visible||p.visible==="legendonly")){if(!f.a||!f.b){var v=c.data[p.index],T=c.data[f.index];T.a||(T.a=v.a),T.b||(T.b=v.b),i(T,f,f._defaultColor,c._fullLayout)}var l=n(c,f);return o(f,f._z),l}};function n(s,c){var f=c._carpetTrace,p=f.aaxis,v=f.baxis,T,l,m,w,S,M,_;p._minDtick=0,v._minDtick=0,x.isArray1D(c.z)&&A(c,p,v,"a","b",["z"]),T=c._a=c._a||c.a,w=c._b=c._b||c.b,T=T?p.makeCalcdata(c,"_a"):[],w=w?v.makeCalcdata(c,"_b"):[],l=c.a0||0,m=c.da||1,S=c.b0||0,M=c.db||1,_=c._z=E(c._z||c.z,c.transpose),c._emptypoints=t(_),e(_,c._emptypoints);var b=x.maxRowLength(_),d=c.xtype==="scaled"?"":T,u=r(c,d,l,m,b,p),g=c.ytype==="scaled"?"":w,y=r(c,g,S,M,_.length,v),R={a:u,b:y,z:_};return c.contours.type==="levels"&&c.contours.coloring!=="none"&&h(s,c,{vals:_,containerStr:"",cLetter:"z"}),[R]}}}),Mz=He({"src/traces/carpet/axis_aligned_line.js"(Y,H){var h=Qr().isArrayOrTypedArray;H.exports=function(x,A,E,e){var t,r,i,a,o,n,s,c,f,p,v,T,l,m=h(E)?"a":"b",w=m==="a"?x.aaxis:x.baxis,S=w.smoothing,M=m==="a"?x.a2i:x.b2j,_=m==="a"?E:e,b=m==="a"?e:E,d=m==="a"?A.a.length:A.b.length,u=m==="a"?A.b.length:A.a.length,g=Math.floor(m==="a"?x.b2j(b):x.a2i(b)),y=m==="a"?function(ue){return x.evalxy([],ue,g)}:function(ue){return x.evalxy([],g,ue)};S&&(i=Math.max(0,Math.min(u-2,g)),a=g-i,r=m==="a"?function(ue,ie){return x.dxydi([],ue,i,ie,a)}:function(ue,ie){return x.dxydj([],i,ue,a,ie)});var R=M(_[0]),I=M(_[1]),z=R0?Math.floor:Math.ceil,O=z>0?Math.ceil:Math.floor,P=z>0?Math.min:Math.max,N=z>0?Math.max:Math.min,U=B(R+F),X=O(I-F);s=y(R);var te=[[s]];for(t=U;t*z=0;fe--)V=N.clipsegments[fe],re=x([],V.x,R.c2p),ae=x([],V.y,I.c2p),re.reverse(),ae.reverse(),xe.push(A(re,ae,V.bicubic));var Ae="M"+xe.join("L")+"Z";S(F,N.clipsegments,R,I,ie,q),M(O,F,R,I,Q,ee,J,P,N,q,Ae),v(F,ue,d,B,te,u,P),E.setClipUrl(F,P._clipPathId,d)})};function p(b,d){var u,g,y,R,I,z,F,B,O;for(u=0;uue&&(g.max=ue),g.len=g.max-g.min}function l(b,d,u){var g=b.getPointAtLength(d),y=b.getPointAtLength(u),R=y.x-g.x,I=y.y-g.y,z=Math.sqrt(R*R+I*I);return[R/z,I/z]}function m(b){var d=Math.sqrt(b[0]*b[0]+b[1]*b[1]);return[b[0]/d,b[1]/d]}function w(b,d){var u=Math.abs(b[0]*d[0]+b[1]*d[1]),g=Math.sqrt(1-u*u);return g/u}function S(b,d,u,g,y,R){var I,z,F,B,O=e.ensureSingle(b,"g","contourbg"),P=O.selectAll("path").data(R==="fill"&&!y?[0]:[]);P.enter().append("path"),P.exit().remove();var N=[];for(B=0;B=0&&(U=re,te=ue):Math.abs(N[1]-U[1])=0&&(U=re,te=ue):e.log("endpt to newendpt is not vert. or horz.",N,U,re)}if(te>=0)break;B+=Q(N,U),N=U}if(te===d.edgepaths.length){e.log("unclosed perimeter path");break}F=te,P=O.indexOf(F)===-1,P&&(F=O[0],B+=Q(N,U)+"Z",N=null)}for(F=0;F_):M=z>y,_=z;var F=p(y,R,I,z);F.pos=g,F.yc=(y+z)/2,F.i=u,F.dir=M?"increasing":"decreasing",F.x=F.pos,F.y=[I,R],b&&(F.orig_p=s[u]),w&&(F.tx=n.text[u]),S&&(F.htx=n.hovertext[u]),d.push(F)}else d.push({pos:g,empty:!0})}return n._extremes[f._id]=A.findExtremes(f,h.concat(l,T),{padded:!0}),d.length&&(d[0].t={labels:{open:x(o,"open:")+" ",high:x(o,"high:")+" ",low:x(o,"low:")+" ",close:x(o,"close:")+" "}}),d}function a(o,n,s){var c=s._minDiff;if(!c){var f=o._fullData,p=[];c=1/0;var v;for(v=0;v"+m.labels[z]+h.hoverLabelText(T,F,l.yhoverformat)):(O=x.extendFlat({},S),O.y0=O.y1=B,O.yLabelVal=F,O.yLabel=m.labels[z]+h.hoverLabelText(T,F,l.yhoverformat),O.name="",w.push(O),R[F]=O)}return w}function n(s,c,f,p){var v=s.cd,T=s.ya,l=v[0].trace,m=v[0].t,w=a(s,c,f,p);if(!w)return[];var S=w.index,M=v[S],_=w.index=M.i,b=M.dir;function d(F){return m.labels[F]+h.hoverLabelText(T,l[F][_],l.yhoverformat)}var u=M.hi||l.hoverinfo,g=u.split("+"),y=u==="all",R=y||g.indexOf("y")!==-1,I=y||g.indexOf("text")!==-1,z=R?[d("open"),d("high"),d("low"),d("close")+" "+r[b]]:[];return I&&e(M,l,z),w.extraText=z.join("
"),w.y0=w.y1=T.c2p(M.yc,!0),[w]}H.exports={hoverPoints:i,hoverSplit:o,hoverOnPoints:n}}}),EA=He({"src/traces/ohlc/select.js"(Y,H){H.exports=function(x,A){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],i,a=E[0].t.bPos||0;if(A===!1)for(i=0;ic?function(l){return l<=0}:function(l){return l>=0};a.c2g=function(l){var m=a.c2l(l)-s;return(T(m)?m:0)+v},a.g2c=function(l){return a.l2c(l+s-v)},a.g2p=function(l){return l*p},a.c2p=function(l){return a.g2p(a.c2g(l))}}}function t(a,o){return o==="degrees"?A(a):a}function r(a,o){return o==="degrees"?E(a):a}function i(a,o){var n=a.type;if(n==="linear"){var s=a.d2c,c=a.c2d;a.d2c=function(f,p){return t(s(f),p)},a.c2d=function(f,p){return c(r(f,p))}}a.makeCalcdata=function(f,p){var v=f[p],T=f._length,l,m,w=function(d){return a.d2c(d,f.thetaunit)};if(v)for(l=new Array(T),m=0;m0?d:1/0},M=A(w,S),_=h.mod(M+1,w.length);return[w[M],w[_]]}function p(m){return Math.abs(m)>1e-10?m:0}function v(m,w,S){w=w||0,S=S||0;for(var M=m.length,_=new Array(M),b=0;b0?1:0}function x(r){var i=r[0],a=r[1];if(!isFinite(i)||!isFinite(a))return[1,0];var o=(i+1)*(i+1)+a*a;return[(i*i+a*a-1)/o,2*a/o]}function A(r,i){var a=i[0],o=i[1];return[a*r.radius+r.cx,-o*r.radius+r.cy]}function E(r,i){return i*r.radius}function e(r,i,a,o){var n=A(r,x([a,i])),s=n[0],c=n[1],f=A(r,x([o,i])),p=f[0],v=f[1];if(i===0)return["M"+s+","+c,"L"+p+","+v].join(" ");var T=E(r,1/Math.abs(i));return["M"+s+","+c,"A"+T+","+T+" 0 0,"+(i<0?1:0)+" "+p+","+v].join(" ")}function t(r,i,a,o){var n=E(r,1/(i+1)),s=A(r,x([i,a])),c=s[0],f=s[1],p=A(r,x([i,o])),v=p[0],T=p[1];if(h(a)!==h(o)){var l=A(r,x([i,0])),m=l[0],w=l[1];return["M"+c+","+f,"A"+n+","+n+" 0 0,"+(0at?(tt=ae,Je=ae*at,we=(fe-Je)/Z.h/2,Ze=[V[0],V[1]],Me=[re[0]+we,re[1]-we]):(tt=fe/at,Je=fe,we=(ae-tt)/Z.w/2,Ze=[V[0]+we,V[1]-we],Me=[re[0],re[1]]),J.xLength2=tt,J.yLength2=Je,J.xDomain2=Ze,J.yDomain2=Me;var he=J.xOffset2=Z.l+Z.w*Ze[0],De=J.yOffset2=Z.t+Z.h*(1-Me[1]),et=J.radius=tt/Pe,nt=J.innerRadius=J.getHole(q)*et,Ke=J.cx=he-et*Ae[0],Et=J.cy=De+et*Ae[3],kt=J.cxx=Ke-he,Ut=J.cyy=Et-De,Yt=se.side,vr;Yt==="counterclockwise"?(vr=Yt,Yt="top"):Yt==="clockwise"&&(vr=Yt,Yt="bottom"),J.radialAxis=J.mockAxis(le,q,se,{_id:"x",side:Yt,_trueSide:vr,domain:[nt/Z.w,et/Z.w]}),J.angularAxis=J.mockAxis(le,q,Q,{side:"right",domain:[0,Math.PI],autorange:!1}),J.doAutoRange(le,q),J.updateAngularAxis(le,q),J.updateRadialAxis(le,q),J.updateRadialAxisTitle(le,q),J.xaxis=J.mockCartesianAxis(le,q,{_id:"x",domain:Ze}),J.yaxis=J.mockCartesianAxis(le,q,{_id:"y",domain:Me});var hr=J.pathSubplot();J.clipPaths.forTraces.select("path").attr("d",hr).attr("transform",t(kt,Ut)),ee.frontplot.attr("transform",t(he,De)).call(i.setClipUrl,J._hasClipOnAxisFalse?null:J.clipIds.forTraces,J.gd),ee.bg.attr("d",hr).attr("transform",t(Ke,Et)).call(r.fill,q.bgcolor)},U.mockAxis=function(le,q,J,ee){var Z=E.extendFlat({},J,ee);return s(Z,q,le),Z},U.mockCartesianAxis=function(le,q,J){var ee=this,Z=ee.isSmith,se=J._id,Q=E.extendFlat({type:"linear"},J);n(Q,le);var V={x:[0,2],y:[1,3]};return Q.setRange=function(){var re=ee.sectorBBox,ae=V[se],fe=ee.radialAxis._rl,xe=(fe[1]-fe[0])/(1-ee.getHole(q));Q.range=[re[ae[0]]*xe,re[ae[1]]*xe]},Q.isPtWithinRange=se==="x"&&!Z?function(re){return ee.isPtInside(re)}:function(){return!0},Q.setRange(),Q.setScale(),Q},U.doAutoRange=function(le,q){var J=this,ee=J.gd,Z=J.radialAxis,se=J.getRadial(q);c(ee,Z);var Q=Z.range;if(se.range=Q.slice(),se._input.range=Q.slice(),Z._rl=[Z.r2l(Q[0],null,"gregorian"),Z.r2l(Q[1],null,"gregorian")],Z.minallowed!==void 0){var V=Z.r2l(Z.minallowed);Z._rl[0]>Z._rl[1]?Z._rl[1]=Math.max(Z._rl[1],V):Z._rl[0]=Math.max(Z._rl[0],V)}if(Z.maxallowed!==void 0){var re=Z.r2l(Z.maxallowed);Z._rl[0]90&&fe<=270&&(xe.tickangle=180);var Ce=Pe?function(et){var nt=z(J,y([et.x,0]));return t(nt[0]-V,nt[1]-re)}:function(et){return t(xe.l2p(et.x)+Q,0)},je=Pe?function(et){return I(J,et.x,-1/0,1/0)}:function(et){return J.pathArc(xe.r2p(et.x)+Q)},at=X(ae);if(J.radialTickLayout!==at&&(Z["radial-axis"].selectAll(".xtick").remove(),J.radialTickLayout=at),Ae){xe.setScale();var tt=0,Je=Pe?(xe.tickvals||[]).filter(function(et){return et>=0}).map(function(et){return o.tickText(xe,et,!0,!1)}):o.calcTicks(xe),Ze=Pe?Je:o.clipEnds(xe,Je),Me=o.getTickSigns(xe)[2];Pe&&((xe.ticks==="top"&&xe.side==="bottom"||xe.ticks==="bottom"&&xe.side==="top")&&(Me=-Me),xe.ticks==="top"&&xe.side==="top"&&(tt=-xe.ticklen),xe.ticks==="bottom"&&xe.side==="bottom"&&(tt=xe.ticklen)),o.drawTicks(ee,xe,{vals:Je,layer:Z["radial-axis"],path:o.makeTickPath(xe,0,Me),transFn:Ce,crisp:!1}),o.drawGrid(ee,xe,{vals:Ze,layer:Z["radial-grid"],path:je,transFn:E.noop,crisp:!1}),o.drawLabels(ee,xe,{vals:Je,layer:Z["radial-axis"],transFn:Ce,labelFns:o.makeLabelFns(xe,tt)})}var we=J.radialAxisAngle=J.vangles?P(ue(O(ae.angle),J.vangles)):ae.angle,he=t(V,re),De=he+e(-we);ie(Z["radial-axis"],Ae&&(ae.showticklabels||ae.ticks),{transform:De}),ie(Z["radial-grid"],Ae&&ae.showgrid,{transform:Pe?"":he}),ie(Z["radial-line"].select("line"),Ae&&ae.showline,{x1:Pe?-se:Q,y1:0,x2:se,y2:0,transform:De}).attr("stroke-width",ae.linewidth).call(r.stroke,ae.linecolor)},U.updateRadialAxisTitle=function(le,q,J){if(!this.isSmith){var ee=this,Z=ee.gd,se=ee.radius,Q=ee.cx,V=ee.cy,re=ee.getRadial(q),ae=ee.id+"title",fe=0;if(re.title){var xe=i.bBox(ee.layers["radial-axis"].node()).height,Ae=re.title.font.size,Pe=re.side;fe=Pe==="top"?Ae:Pe==="counterclockwise"?-(xe+Ae*.4):xe+Ae*.8}var Ce=J!==void 0?J:ee.radialAxisAngle,je=O(Ce),at=Math.cos(je),tt=Math.sin(je),Je=Q+se/2*at+fe*tt,Ze=V-se/2*tt+fe*at;ee.layers["radial-axis-title"]=T.draw(Z,ae,{propContainer:re,propName:ee.id+".radialaxis.title",placeholder:F(Z,"Click to enter radial axis title"),attributes:{x:Je,y:Ze,"text-anchor":"middle"},transform:{rotate:-Ce}})}},U.updateAngularAxis=function(le,q){var J=this,ee=J.gd,Z=J.layers,se=J.radius,Q=J.innerRadius,V=J.cx,re=J.cy,ae=J.getAngular(q),fe=J.angularAxis,xe=J.isSmith;xe||(J.fillViewInitialKey("angularaxis.rotation",ae.rotation),fe.setGeometry(),fe.setScale());var Ae=xe?function(nt){var Ke=z(J,y([0,nt.x]));return Math.atan2(Ke[0]-V,Ke[1]-re)-Math.PI/2}:function(nt){return fe.t2g(nt.x)};fe.type==="linear"&&fe.thetaunit==="radians"&&(fe.tick0=P(fe.tick0),fe.dtick=P(fe.dtick));var Pe=function(nt){return t(V+se*Math.cos(nt),re-se*Math.sin(nt))},Ce=xe?function(nt){var Ke=z(J,y([0,nt.x]));return t(Ke[0],Ke[1])}:function(nt){return Pe(Ae(nt))},je=xe?function(nt){var Ke=z(J,y([0,nt.x])),Et=Math.atan2(Ke[0]-V,Ke[1]-re)-Math.PI/2;return t(Ke[0],Ke[1])+e(-P(Et))}:function(nt){var Ke=Ae(nt);return Pe(Ke)+e(-P(Ke))},at=xe?function(nt){return R(J,nt.x,0,1/0)}:function(nt){var Ke=Ae(nt),Et=Math.cos(Ke),kt=Math.sin(Ke);return"M"+[V+Q*Et,re-Q*kt]+"L"+[V+se*Et,re-se*kt]},tt=o.makeLabelFns(fe,0),Je=tt.labelStandoff,Ze={};Ze.xFn=function(nt){var Ke=Ae(nt);return Math.cos(Ke)*Je},Ze.yFn=function(nt){var Ke=Ae(nt),Et=Math.sin(Ke)>0?.2:1;return-Math.sin(Ke)*(Je+nt.fontSize*Et)+Math.abs(Math.cos(Ke))*(nt.fontSize*b)},Ze.anchorFn=function(nt){var Ke=Ae(nt),Et=Math.cos(Ke);return Math.abs(Et)<.1?"middle":Et>0?"start":"end"},Ze.heightFn=function(nt,Ke,Et){var kt=Ae(nt);return-.5*(1+Math.sin(kt))*Et};var Me=X(ae);J.angularTickLayout!==Me&&(Z["angular-axis"].selectAll("."+fe._id+"tick").remove(),J.angularTickLayout=Me);var we=xe?[1/0].concat(fe.tickvals||[]).map(function(nt){return o.tickText(fe,nt,!0,!1)}):o.calcTicks(fe);xe&&(we[0].text="∞",we[0].fontSize*=1.75);var he;if(q.gridshape==="linear"?(he=we.map(Ae),E.angleDelta(he[0],he[1])<0&&(he=he.slice().reverse())):he=null,J.vangles=he,fe.type==="category"&&(we=we.filter(function(nt){return E.isAngleInsideSector(Ae(nt),J.sectorInRad)})),fe.visible){var De=fe.ticks==="inside"?-1:1,et=(fe.linewidth||1)/2;o.drawTicks(ee,fe,{vals:we,layer:Z["angular-axis"],path:"M"+De*et+",0h"+De*fe.ticklen,transFn:je,crisp:!1}),o.drawGrid(ee,fe,{vals:we,layer:Z["angular-grid"],path:at,transFn:E.noop,crisp:!1}),o.drawLabels(ee,fe,{vals:we,layer:Z["angular-axis"],repositionOnUpdate:!0,transFn:Ce,labelFns:Ze})}ie(Z["angular-line"].select("path"),ae.showline,{d:J.pathSubplot(),transform:t(V,re)}).attr("stroke-width",ae.linewidth).call(r.stroke,ae.linecolor)},U.updateFx=function(le,q){if(!this.gd._context.staticPlot){var J=!this.isSmith;J&&(this.updateAngularDrag(le),this.updateRadialDrag(le,q,0),this.updateRadialDrag(le,q,1)),this.updateHoverAndMainDrag(le)}},U.updateHoverAndMainDrag=function(le){var q=this,J=q.isSmith,ee=q.gd,Z=q.layers,se=le._zoomlayer,Q=d.MINZOOM,V=d.OFFEDGE,re=q.radius,ae=q.innerRadius,fe=q.cx,xe=q.cy,Ae=q.cxx,Pe=q.cyy,Ce=q.sectorInRad,je=q.vangles,at=q.radialAxis,tt=u.clampTiny,Je=u.findXYatLength,Ze=u.findEnclosingVertexAngles,Me=d.cornerHalfWidth,we=d.cornerLen/2,he,De,et=f.makeDragger(Z,"path","maindrag",le.dragmode===!1?"none":"crosshair");h.select(et).attr("d",q.pathSubplot()).attr("transform",t(fe,xe)),et.onmousemove=function(rr){v.hover(ee,rr,q.id),ee._fullLayout._lasthover=et,ee._fullLayout._hoversubplot=q.id},et.onmouseout=function(rr){ee._dragging||p.unhover(ee,rr)};var nt={element:et,gd:ee,subplot:q.id,plotinfo:{id:q.id,xaxis:q.xaxis,yaxis:q.yaxis},xaxes:[q.xaxis],yaxes:[q.yaxis]},Ke,Et,kt,Ut,Yt,vr,hr,Rr,dr;function wr(rr,Jt){return Math.sqrt(rr*rr+Jt*Jt)}function yt(rr,Jt){return wr(rr-Ae,Jt-Pe)}function Fe(rr,Jt){return Math.atan2(Pe-Jt,rr-Ae)}function We(rr,Jt){return[rr*Math.cos(Jt),rr*Math.sin(-Jt)]}function Oe(rr,Jt){if(rr===0)return q.pathSector(2*Me);var mr=we/rr,ia=Jt-mr,Ia=Jt+mr,La=Math.max(0,Math.min(rr,re)),Aa=La-Me,Ga=La+Me;return"M"+We(Aa,ia)+"A"+[Aa,Aa]+" 0,0,0 "+We(Aa,Ia)+"L"+We(Ga,Ia)+"A"+[Ga,Ga]+" 0,0,1 "+We(Ga,ia)+"Z"}function de(rr,Jt,mr){if(rr===0)return q.pathSector(2*Me);var ia=We(rr,Jt),Ia=We(rr,mr),La=tt((ia[0]+Ia[0])/2),Aa=tt((ia[1]+Ia[1])/2),Ga,ba;if(La&&Aa){var Xa=Aa/La,yn=-1/Xa,Kt=Je(Me,Xa,La,Aa);Ga=Je(we,yn,Kt[0][0],Kt[0][1]),ba=Je(we,yn,Kt[1][0],Kt[1][1])}else{var zt,$t;Aa?(zt=we,$t=Me):(zt=Me,$t=we),Ga=[[La-zt,Aa-$t],[La+zt,Aa-$t]],ba=[[La-zt,Aa+$t],[La+zt,Aa+$t]]}return"M"+Ga.join("L")+"L"+ba.reverse().join("L")+"Z"}function me(){kt=null,Ut=null,Yt=q.pathSubplot(),vr=!1;var rr=ee._fullLayout[q.id];hr=x(rr.bgcolor).getLuminance(),Rr=f.makeZoombox(se,hr,fe,xe,Yt),Rr.attr("fill-rule","evenodd"),dr=f.makeCorners(se,fe,xe),w(ee)}function be(rr,Jt){return Jt=Math.max(Math.min(Jt,re),ae),rrQ?(rr-1&&rr===1&&m(Jt,ee,[q.xaxis],[q.yaxis],q.id,nt),mr.indexOf("event")>-1&&v.click(ee,Jt,q.id)}nt.prepFn=function(rr,Jt,mr){var ia=ee._fullLayout.dragmode,Ia=et.getBoundingClientRect();ee._fullLayout._calcInverseTransform(ee);var La=ee._fullLayout._invTransform;he=ee._fullLayout._invScaleX,De=ee._fullLayout._invScaleY;var Aa=E.apply3DTransform(La)(Jt-Ia.left,mr-Ia.top);if(Ke=Aa[0],Et=Aa[1],je){var Ga=u.findPolygonOffset(re,Ce[0],Ce[1],je);Ke+=Ae+Ga[0],Et+=Pe+Ga[1]}switch(ia){case"zoom":nt.clickFn=Wt,J||(je?nt.moveFn=bt:nt.moveFn=Xe,nt.doneFn=Ct,me());break;case"select":case"lasso":l(rr,Jt,mr,nt,ia);break}},p.init(nt)},U.updateRadialDrag=function(le,q,J){var ee=this,Z=ee.gd,se=ee.layers,Q=ee.radius,V=ee.innerRadius,re=ee.cx,ae=ee.cy,fe=ee.radialAxis,xe=d.radialDragBoxSize,Ae=xe/2;if(!fe.visible)return;var Pe=O(ee.radialAxisAngle),Ce=fe._rl,je=Ce[0],at=Ce[1],tt=Ce[J],Je=.75*(Ce[1]-Ce[0])/(1-ee.getHole(q))/Q,Ze,Me,we;J?(Ze=re+(Q+Ae)*Math.cos(Pe),Me=ae-(Q+Ae)*Math.sin(Pe),we="radialdrag"):(Ze=re+(V-Ae)*Math.cos(Pe),Me=ae-(V-Ae)*Math.sin(Pe),we="radialdrag-inner");var he=f.makeRectDragger(se,we,"crosshair",-Ae,-Ae,xe,xe),De={element:he,gd:Z};le.dragmode===!1&&(De.dragmode=!1),ie(h.select(he),fe.visible&&V0!=(J?Ke>je:Ke=90||Z>90&&se>=450?Pe=1:V<=0&&ae<=0?Pe=0:Pe=Math.max(V,ae),Z<=180&&se>=180||Z>180&&se>=540?fe=-1:Q>=0&&re>=0?fe=0:fe=Math.min(Q,re),Z<=270&&se>=270||Z>270&&se>=630?xe=-1:V>=0&&ae>=0?xe=0:xe=Math.min(V,ae),se>=360?Ae=1:Q<=0&&re<=0?Ae=0:Ae=Math.max(Q,re),[fe,xe,Ae,Pe]}function ue(le,q){var J=function(Z){return E.angleDist(le,Z)},ee=E.findIndexOfMin(q,J);return q[ee]}function ie(le,q,J){return q?(le.attr("display",null),le.attr(J)):le&&le.attr("display","none"),le}}}),IA=He({"src/plots/polar/layout_attributes.js"(Y,H){var h=mf(),x=Kf(),A=Ku().attributes,E=Qr().extendFlat,e=Uu().overrideAll,t=e({color:x.color,showline:E({},x.showline,{dflt:!0}),linecolor:x.linecolor,linewidth:x.linewidth,showgrid:E({},x.showgrid,{dflt:!0}),gridcolor:x.gridcolor,gridwidth:x.gridwidth,griddash:x.griddash},"plot","from-root"),r=e({tickmode:x.minor.tickmode,nticks:x.nticks,tick0:x.tick0,dtick:x.dtick,tickvals:x.tickvals,ticktext:x.ticktext,ticks:x.ticks,ticklen:x.ticklen,tickwidth:x.tickwidth,tickcolor:x.tickcolor,ticklabelstep:x.ticklabelstep,showticklabels:x.showticklabels,labelalias:x.labelalias,minorloglabels:x.minorloglabels,showtickprefix:x.showtickprefix,tickprefix:x.tickprefix,showticksuffix:x.showticksuffix,ticksuffix:x.ticksuffix,showexponent:x.showexponent,exponentformat:x.exponentformat,minexponent:x.minexponent,separatethousands:x.separatethousands,tickfont:x.tickfont,tickangle:x.tickangle,tickformat:x.tickformat,tickformatstops:x.tickformatstops,layer:x.layer},"plot","from-root"),i={visible:E({},x.visible,{dflt:!0}),type:E({},x.type,{values:["-","linear","log","date","category"]}),autotypenumbers:x.autotypenumbers,autorangeoptions:{minallowed:x.autorangeoptions.minallowed,maxallowed:x.autorangeoptions.maxallowed,clipmin:x.autorangeoptions.clipmin,clipmax:x.autorangeoptions.clipmax,include:x.autorangeoptions.include,editType:"plot"},autorange:E({},x.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:E({},x.minallowed,{editType:"plot"}),maxallowed:E({},x.maxallowed,{editType:"plot"}),range:E({},x.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:x.categoryorder,categoryarray:x.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:x.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:E({},x.title.text,{editType:"plot",dflt:""}),font:E({},x.title.font,{editType:"plot"}),editType:"plot"},hoverformat:x.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};E(i,t,r);var a={visible:E({},x.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:x.autotypenumbers,categoryorder:x.categoryorder,categoryarray:x.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:x.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};E(a,t,r),H.exports={domain:A({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:h.background},radialaxis:i,angularaxis:a,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}}}),Nz=He({"src/plots/polar/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=cl(),E=Yd(),e=$f().getSubplotData,t=Mp(),r=N0(),i=qd(),a=Gd(),o=b1(),n=sm(),s=Ob(),c=j0(),f=IA(),p=CA(),v=Tx(),T=v.axisNames;function l(w,S,M,_){var b=M("bgcolor");_.bgColor=x.combine(b,_.paper_bgcolor);var d=M("sector");M("hole");var u=e(_.fullData,v.name,_.id),g=_.layoutOut,y;function R(xe,Ae){return M(y+"."+xe,Ae)}for(var I=0;I")}}H.exports={hoverPoints:x,makeHoverPointText:A}}}),Vz=He({"src/traces/scatterpolar/index.js"(Y,H){H.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:Sx(),categories:["polar","symbols","showLegend","scatter-like"],attributes:ty(),supplyDefaults:Mx().supplyDefaults,colorbar:ch(),formatLabels:Ex(),calc:Uz(),plot:jz(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:kx().hoverPoints,selectPoints:Z0(),meta:{}}}}),qz=He({"lib/scatterpolar.js"(Y,H){H.exports=Vz()}}),RA=He({"src/traces/scatterpolargl/attributes.js"(Y,H){var h=ty(),x=Wm(),A=us().texttemplateAttrs;H.exports={mode:h.mode,r:h.r,theta:h.theta,r0:h.r0,dr:h.dr,theta0:h.theta0,dtheta:h.dtheta,thetaunit:h.thetaunit,text:h.text,texttemplate:A({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h.hovertext,hovertemplate:h.hovertemplate,line:{color:x.line.color,width:x.line.width,dash:x.line.dash,editType:"calc"},connectgaps:x.connectgaps,marker:x.marker,fill:x.fill,fillcolor:x.fillcolor,textposition:x.textposition,textfont:x.textfont,hoverinfo:h.hoverinfo,selected:h.selected,unselected:h.unselected}}}),Gz=He({"src/traces/scatterpolargl/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Mx().handleRThetaDefaults,E=Zh(),e=rv(),t=av(),r=bv(),i=Uv().PTS_LINESONLY,a=RA();H.exports=function(n,s,c,f){function p(T,l){return h.coerce(n,s,a,T,l)}var v=A(n,s,f,p);if(!v){s.visible=!1;return}p("thetaunit"),p("mode",v=r&&(_.marker.cluster=m.tree),_.marker&&(_.markerSel.positions=_.markerUnsel.positions=_.marker.positions=g),_.line&&g.length>1&&t.extendFlat(_.line,e.linePositions(o,l,g)),_.text&&(t.extendFlat(_.text,{positions:g},e.textPosition(o,l,_.text,_.marker)),t.extendFlat(_.textSel,{positions:g},e.textPosition(o,l,_.text,_.markerSel)),t.extendFlat(_.textUnsel,{positions:g},e.textPosition(o,l,_.text,_.markerUnsel))),_.fill&&!p.fill2d&&(p.fill2d=!0),_.marker&&!p.scatter2d&&(p.scatter2d=!0),_.line&&!p.line2d&&(p.line2d=!0),_.text&&!p.glText&&(p.glText=!0),p.lineOptions.push(_.line),p.fillOptions.push(_.fill),p.markerOptions.push(_.marker),p.markerSelectedOptions.push(_.markerSel),p.markerUnselectedOptions.push(_.markerUnsel),p.textOptions.push(_.text),p.textSelectedOptions.push(_.textSel),p.textUnselectedOptions.push(_.textUnsel),p.selectBatch.push([]),p.unselectBatch.push([]),m.x=y,m.y=R,m.rawx=y,m.rawy=R,m.r=S,m.theta=M,m.positions=g,m._scene=p,m.index=p.count,p.count++}}),A(o,n,s)}},H.exports.reglPrecompiled=i}}),$z=He({"src/traces/scatterpolargl/index.js"(Y,H){var h=Zz();h.plot=Yz(),H.exports=h}}),Kz=He({"lib/scatterpolargl.js"(Y,H){H.exports=$z()}}),DA=He({"src/traces/barpolar/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=Po().extendFlat,A=ty(),E=Vv();H.exports={r:A.r,theta:A.theta,r0:A.r0,dr:A.dr,theta0:A.theta0,dtheta:A.dtheta,thetaunit:A.thetaunit,base:x({},E.base,{}),offset:x({},E.offset,{}),width:x({},E.width,{}),text:x({},E.text,{}),hovertext:x({},E.hovertext,{}),marker:e(),hoverinfo:A.hoverinfo,hovertemplate:h(),selected:E.selected,unselected:E.unselected};function e(){var t=x({},E.marker);return delete t.cornerradius,t}}}),zA=He({"src/traces/barpolar/layout_attributes.js"(Y,H){H.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}}}),Jz=He({"src/traces/barpolar/defaults.js"(Y,H){var h=Qr(),x=Mx().handleRThetaDefaults,A=L1(),E=DA();H.exports=function(t,r,i,a){function o(s,c){return h.coerce(t,r,E,s,c)}var n=x(t,r,a,o);if(!n){r.visible=!1;return}o("thetaunit"),o("base"),o("offset"),o("width"),o("text"),o("hovertext"),o("hovertemplate"),A(t,r,o,i,a),h.coerceSelectionMarkerOpacity(r,o)}}}),Qz=He({"src/traces/barpolar/layout_defaults.js"(Y,H){var h=Qr(),x=zA();H.exports=function(A,E,e){var t={},r;function i(n,s){return h.coerce(A[r]||{},E[r],x,n,s)}for(var a=0;a0?(f=s,p=c):(f=c,p=s);var v=e.findEnclosingVertexAngles(f,r.vangles)[0],T=e.findEnclosingVertexAngles(p,r.vangles)[1],l=[v,(f+p)/2,T];return e.pathPolygonAnnulus(o,n,f,p,l,i,a)}:function(o,n,s,c){return A.pathAnnulus(o,n,s,c,i,a)}}}}),t8=He({"src/traces/barpolar/hover.js"(Y,H){var h=xc(),x=Qr(),A=Y0().getTraceColor,E=x.fillText,e=kx().makeHoverPointText,t=Ax().isPtInsidePolygon;H.exports=function(i,a,o){var n=i.cd,s=n[0].trace,c=i.subplot,f=c.radialAxis,p=c.angularAxis,v=c.vangles,T=v?t:x.isPtInsideSector,l=i.maxHoverDistance,m=p._period||2*Math.PI,w=Math.abs(f.g2p(Math.sqrt(a*a+o*o))),S=Math.atan2(o,a);f.range[0]>f.range[1]&&(S+=Math.PI);var M=function(u){return T(w,S,[u.rp0,u.rp1],[u.thetag0,u.thetag1],v)?l+Math.min(1,Math.abs(u.thetag1-u.thetag0)/m)-1+(u.rp1-w)/(u.rp1-u.rp0)-1:1/0};if(h.getClosest(n,M,i),i.index!==!1){var _=i.index,b=n[_];i.x0=i.x1=b.ct[0],i.y0=i.y1=b.ct[1];var d=x.extendFlat({},b,{r:b.s,theta:b.p});return E(b,s,i),e(d,s,c,i),i.hovertemplate=s.hovertemplate,i.color=A(s,b),i.xLabelVal=i.yLabelVal=void 0,b.s<0&&(i.idealAlign="left"),[i]}}}}),r8=He({"src/traces/barpolar/index.js"(Y,H){H.exports={moduleType:"trace",name:"barpolar",basePlotModule:Sx(),categories:["polar","bar","showLegend"],attributes:DA(),layoutAttributes:zA(),supplyDefaults:Jz(),supplyLayoutDefaults:Qz(),calc:FA().calc,crossTraceCalc:FA().crossTraceCalc,plot:e8(),colorbar:ch(),formatLabels:Ex(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:t8(),selectPoints:$0(),meta:{}}}}),a8=He({"lib/barpolar.js"(Y,H){H.exports=r8()}}),OA=He({"src/plots/smith/constants.js"(Y,H){H.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}}}),BA=He({"src/plots/smith/layout_attributes.js"(Y,H){var h=mf(),x=Kf(),A=Ku().attributes,E=Qr().extendFlat,e=Uu().overrideAll,t=e({color:x.color,showline:E({},x.showline,{dflt:!0}),linecolor:x.linecolor,linewidth:x.linewidth,showgrid:E({},x.showgrid,{dflt:!0}),gridcolor:x.gridcolor,gridwidth:x.gridwidth,griddash:x.griddash},"plot","from-root"),r=e({ticklen:x.ticklen,tickwidth:E({},x.tickwidth,{dflt:2}),tickcolor:x.tickcolor,showticklabels:x.showticklabels,labelalias:x.labelalias,showtickprefix:x.showtickprefix,tickprefix:x.tickprefix,showticksuffix:x.showticksuffix,ticksuffix:x.ticksuffix,tickfont:x.tickfont,tickformat:x.tickformat,hoverformat:x.hoverformat,layer:x.layer},"plot","from-root"),i=E({visible:E({},x.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:E({},x.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},t,r),a=E({visible:E({},x.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:x.ticks,editType:"calc"},t,r);H.exports={domain:A({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:h.background},realaxis:i,imaginaryaxis:a,editType:"calc"}}}),n8=He({"src/plots/smith/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=cl(),E=Yd(),e=$f().getSubplotData,t=Gd(),r=qd(),i=sm(),a=Nv(),o=BA(),n=OA(),s=n.axisNames,c=p(function(v){return h.isTypedArray(v)&&(v=Array.from(v)),v.slice().reverse().map(function(T){return-T}).concat([0]).concat(v)},String);function f(v,T,l,m){var w=l("bgcolor");m.bgColor=x.combine(w,m.paper_bgcolor);var S=e(m.fullData,n.name,m.id),M=m.layoutOut,_;function b(U,X){return l(_+"."+U,X)}for(var d=0;d")}}H.exports={hoverPoints:x,makeHoverPointText:A}}}),f8=He({"src/traces/scattersmith/index.js"(Y,H){H.exports={moduleType:"trace",name:"scattersmith",basePlotModule:i8(),categories:["smith","symbols","showLegend","scatter-like"],attributes:NA(),supplyDefaults:o8(),colorbar:ch(),formatLabels:s8(),calc:l8(),plot:u8(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:c8().hoverPoints,selectPoints:Z0(),meta:{}}}}),h8=He({"lib/scattersmith.js"(Y,H){H.exports=f8()}}),mh=He({"node_modules/world-calendars/dist/main.js"(Y,H){var h=yf();function x(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}h(x.prototype,{instance:function(i,a){i=(i||"gregorian").toLowerCase(),a=a||"";var o=this._localCals[i+"-"+a];if(!o&&this.calendars[i]&&(o=new this.calendars[i](a),this._localCals[i+"-"+a]=o),!o)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,i);return o},newDate:function(i,a,o,n,s){return n=(i!=null&&i.year?i.calendar():typeof n=="string"?this.instance(n,s):n)||this.instance(),n.newDate(i,a,o)},substituteDigits:function(i){return function(a){return(a+"").replace(/[0-9]/g,function(o){return i[o]})}},substituteChineseDigits:function(i,a){return function(o){for(var n="",s=0;o>0;){var c=o%10;n=(c===0?"":i[c]+a[s])+n,s++,o=Math.floor(o/10)}return n.indexOf(i[1]+a[1])===0&&(n=n.substr(1)),n||i[0]}}});function A(i,a,o,n){if(this._calendar=i,this._year=a,this._month=o,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(r.local.invalidDate||r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function E(i,a){return i=""+i,"000000".substring(0,a-i.length)+i}h(A.prototype,{newDate:function(i,a,o){return this._calendar.newDate(i??this,a,o)},year:function(i){return arguments.length===0?this._year:this.set(i,"y")},month:function(i){return arguments.length===0?this._month:this.set(i,"m")},day:function(i){return arguments.length===0?this._day:this.set(i,"d")},date:function(i,a,o){if(!this._calendar.isValid(i,a,o))throw(r.local.invalidDate||r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=i,this._month=a,this._day=o,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(i,a){return this._calendar.add(this,i,a)},set:function(i,a){return this._calendar.set(this,i,a)},compareTo:function(i){if(this._calendar.name!==i._calendar.name)throw(r.local.differentCalendars||r.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,i._calendar.local.name);var a=this._year!==i._year?this._year-i._year:this._month!==i._month?this.monthOfYear()-i.monthOfYear():this._day-i._day;return a===0?0:a<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(i){return this._calendar.fromJD(i)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(i){return this._calendar.fromJSDate(i)},toString:function(){return(this.year()<0?"-":"")+E(Math.abs(this.year()),4)+"-"+E(this.month(),2)+"-"+E(this.day(),2)}});function e(){this.shortYearCutoff="+10"}h(e.prototype,{_validateLevel:0,newDate:function(i,a,o){return i==null?this.today():(i.year&&(this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),o=i.day(),a=i.month(),i=i.year()),new A(this,i,a,o))},today:function(){return this.fromJSDate(new Date)},epoch:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return a.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return(a.year()<0?"-":"")+E(Math.abs(a.year()),4)},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear),12},monthOfYear:function(i,a){var o=this._validate(i,a,this.minDay,r.local.invalidMonth||r.regionalOptions[""].invalidMonth);return(o.month()+this.monthsInYear(o)-this.firstMonth)%this.monthsInYear(o)+this.minMonth},fromMonthOfYear:function(i,a){var o=(a+this.firstMonth-2*this.minMonth)%this.monthsInYear(i)+this.minMonth;return this._validate(i,o,this.minDay,r.local.invalidMonth||r.regionalOptions[""].invalidMonth),o},daysInYear:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return this.leapYear(a)?366:365},dayOfYear:function(i,a,o){var n=this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(i,a,o){var n=this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(i,a,o){return this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),{}},add:function(i,a,o){return this._validate(i,this.minMonth,this.minDay,r.local.invalidDate||r.regionalOptions[""].invalidDate),this._correctAdd(i,this._add(i,a,o),a,o)},_add:function(i,a,o){if(this._validateLevel++,o==="d"||o==="w"){var n=i.toJD()+a*(o==="w"?this.daysInWeek():1),s=i.calendar().fromJD(n);return this._validateLevel--,[s.year(),s.month(),s.day()]}try{var c=i.year()+(o==="y"?a:0),f=i.monthOfYear()+(o==="m"?a:0),s=i.day(),p=function(l){for(;fm-1+l.minMonth;)c++,f-=m,m=l.monthsInYear(c)};o==="y"?(i.month()!==this.fromMonthOfYear(c,f)&&(f=this.newDate(c,i.month(),this.minDay).monthOfYear()),f=Math.min(f,this.monthsInYear(c)),s=Math.min(s,this.daysInMonth(c,this.fromMonthOfYear(c,f)))):o==="m"&&(p(this),s=Math.min(s,this.daysInMonth(c,this.fromMonthOfYear(c,f))));var v=[c,this.fromMonthOfYear(c,f),s];return this._validateLevel--,v}catch(T){throw this._validateLevel--,T}},_correctAdd:function(i,a,o,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(a[0]===0||i.year()>0!=a[0]>0)){var s={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],c=o<0?-1:1;a=this._add(i,o*s[0]+c*s[1],s[2])}return i.date(a[0],a[1],a[2])},set:function(i,a,o){this._validate(i,this.minMonth,this.minDay,r.local.invalidDate||r.regionalOptions[""].invalidDate);var n=o==="y"?a:i.year(),s=o==="m"?a:i.month(),c=o==="d"?a:i.day();return(o==="y"||o==="m")&&(c=Math.min(c,this.daysInMonth(n,s))),i.date(n,s,c)},isValid:function(i,a,o){this._validateLevel++;var n=this.hasYearZero||i!==0;if(n){var s=this.newDate(i,a,this.minDay);n=a>=this.minMonth&&a-this.minMonth=this.minDay&&o-this.minDay13.5?13:1),T=s-(v>2.5?4716:4715);return T<=0&&T--,this.newDate(T,v,p)},toJSDate:function(i,a,o){var n=this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),s=new Date(n.year(),n.month()-1,n.day());return s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),s.setHours(s.getHours()>12?s.getHours()+2:0),s},fromJSDate:function(i){return this.newDate(i.getFullYear(),i.getMonth()+1,i.getDate())}});var r=H.exports=new x;r.cdate=A,r.baseCalendar=e,r.calendars.gregorian=t}}),v8=He({"node_modules/world-calendars/dist/plus.js"(){var Y=yf(),H=mh();Y(H.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),H.local=H.regionalOptions[""],Y(H.cdate.prototype,{formatDate:function(h,x){return typeof h!="string"&&(x=h,h=""),this._calendar.formatDate(h||"",this,x)}}),Y(H.baseCalendar.prototype,{UNIX_EPOCH:H.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:H.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(h,x,A){if(typeof h!="string"&&(A=x,x=h,h=""),!x)return"";if(x.calendar()!==this)throw H.local.invalidFormat||H.regionalOptions[""].invalidFormat;h=h||this.local.dateFormat,A=A||{};var E=A.dayNamesShort||this.local.dayNamesShort,e=A.dayNames||this.local.dayNames,t=A.monthNumbers||this.local.monthNumbers,r=A.monthNamesShort||this.local.monthNamesShort,i=A.monthNames||this.local.monthNames;A.calculateWeek||this.local.calculateWeek;for(var a=function(w,S){for(var M=1;m+M1},o=function(w,S,M,_){var b=""+S;if(a(w,_))for(;b.length1},m=function(R,I){var z=l(R,I),F=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],B=new RegExp("^-?\\d{1,"+F+"}"),O=x.substring(d).match(B);if(!O)throw(H.local.missingNumberAt||H.regionalOptions[""].missingNumberAt).replace(/\{0\}/,d);return d+=O[0].length,parseInt(O[0],10)},w=this,S=function(){if(typeof i=="function"){l("m");var R=i.call(w,x.substring(d));return d+=R.length,R}return m("m")},M=function(R,I,z,F){for(var B=l(R,F)?z:I,O=0;O-1){c=1,f=p;for(var y=this.daysInMonth(s,c);f>y;y=this.daysInMonth(s,c))c++,f-=y}return n>-1?this.fromJD(n):this.newDate(s,c,f)},determineDate:function(h,x,A,E,e){A&&typeof A!="object"&&(e=E,E=A,A=null),typeof E!="string"&&(e=E,E="");var t=this,r=function(i){try{return t.parseDate(E,i,e)}catch{}i=i.toLowerCase();for(var a=(i.match(/^c/)&&A?A.newDate():null)||t.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,n=o.exec(i);n;)a.add(parseInt(n[1],10),n[2]||"d"),n=o.exec(i);return a};return x=x?x.newDate():null,h=h==null?x:typeof h=="string"?r(h):typeof h=="number"?isNaN(h)||h===1/0||h===-1/0?x:t.today().add(h,"d"):t.newDate(h),h}})}}),d8=He({"node_modules/world-calendars/dist/calendars/chinese.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(n){this.local=this.regionalOptions[n||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(n,s){if(typeof n=="string"){var c=n.match(E);return c?c[0]:""}var f=this._validateYear(n),p=n.month(),v=""+this.toChineseMonth(f,p);return s&&v.length<2&&(v="0"+v),this.isIntercalaryMonth(f,p)&&(v+="i"),v},monthNames:function(n){if(typeof n=="string"){var s=n.match(e);return s?s[0]:""}var c=this._validateYear(n),f=n.month(),p=this.toChineseMonth(c,f),v=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][p-1];return this.isIntercalaryMonth(c,f)&&(v="闰"+v),v},monthNamesShort:function(n){if(typeof n=="string"){var s=n.match(t);return s?s[0]:""}var c=this._validateYear(n),f=n.month(),p=this.toChineseMonth(c,f),v=["一","二","三","四","五","六","七","八","九","十","十一","十二"][p-1];return this.isIntercalaryMonth(c,f)&&(v="闰"+v),v},parseMonth:function(n,s){n=this._validateYear(n);var c=parseInt(s),f;if(isNaN(c))s[0]==="闰"&&(f=!0,s=s.substring(1)),s[s.length-1]==="月"&&(s=s.substring(0,s.length-1)),c=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(s);else{var p=s[s.length-1];f=p==="i"||p==="I"}var v=this.toMonthIndex(n,c,f);return v},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(n,s){if(n.year&&(n=n.year()),typeof n!="number"||n<1888||n>2111)throw s.replace(/\{0\}/,this.local.name);return n},toMonthIndex:function(n,s,c){var f=this.intercalaryMonth(n),p=c&&s!==f;if(p||s<1||s>12)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var v;return f?!c&&s<=f?v=s-1:v=s:v=s-1,v},toChineseMonth:function(n,s){n.year&&(n=n.year(),s=n.month());var c=this.intercalaryMonth(n),f=c?12:11;if(s<0||s>f)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var p;return c?s>13;return c},isIntercalaryMonth:function(n,s){n.year&&(n=n.year(),s=n.month());var c=this.intercalaryMonth(n);return!!c&&c===s},leapYear:function(n){return this.intercalaryMonth(n)!==0},weekOfYear:function(n,s,c){var f=this._validateYear(n,Y.local.invalidyear),p=i[f-i[0]],v=p>>9&4095,T=p>>5&15,l=p&31,m;m=h.newDate(v,T,l),m.add(4-(m.dayOfWeek()||7),"d");var w=this.toJD(n,s,c)-m.toJD();return 1+Math.floor(w/7)},monthsInYear:function(n){return this.leapYear(n)?13:12},daysInMonth:function(n,s){n.year&&(s=n.month(),n=n.year()),n=this._validateYear(n);var c=r[n-r[0]],f=c>>13,p=f?12:11;if(s>p)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var v=c&1<<12-s?30:29;return v},weekDay:function(n,s,c){return(this.dayOfWeek(n,s,c)||7)<6},toJD:function(n,s,c){var f=this._validate(n,v,c,Y.local.invalidDate);n=this._validateYear(f.year()),s=f.month(),c=f.day();var p=this.isIntercalaryMonth(n,s),v=this.toChineseMonth(n,s),T=o(n,v,c,p);return h.toJD(T.year,T.month,T.day)},fromJD:function(n){var s=h.fromJD(n),c=a(s.year(),s.month(),s.day()),f=this.toMonthIndex(c.year,c.month,c.isIntercalary);return this.newDate(c.year,f,c.day)},fromString:function(n){var s=n.match(A),c=this._validateYear(+s[1]),f=+s[2],p=!!s[3],v=this.toMonthIndex(c,f,p),T=+s[4];return this.newDate(c,v,T)},add:function(n,s,c){var f=n.year(),p=n.month(),v=this.isIntercalaryMonth(f,p),T=this.toChineseMonth(f,p),l=Object.getPrototypeOf(x.prototype).add.call(this,n,s,c);if(c==="y"){var m=l.year(),w=l.month(),S=this.isIntercalaryMonth(m,T),M=v&&S?this.toMonthIndex(m,T,!0):this.toMonthIndex(m,T,!1);M!==w&&l.month(M)}return l}});var A=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,E=/^\d?\d[iI]?/m,e=/^闰?十?[一二三四五六七八九]?月/m,t=/^闰?十?[一二三四五六七八九]?/m;Y.calendars.chinese=x;var r=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],i=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function a(n,s,c,f){var p,v;if(typeof n=="object")p=n,v=s||{};else{var T=typeof n=="number"&&n>=1888&&n<=2111;if(!T)throw new Error("Solar year outside range 1888-2111");var l=typeof s=="number"&&s>=1&&s<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var m=typeof c=="number"&&c>=1&&c<=31;if(!m)throw new Error("Solar day outside range 1 - 31");p={year:n,month:s,day:c},v={}}var w=i[p.year-i[0]],S=p.year<<9|p.month<<5|p.day;v.year=S>=w?p.year:p.year-1,w=i[v.year-i[0]];var M=w>>9&4095,_=w>>5&15,b=w&31,d,u=new Date(M,_-1,b),g=new Date(p.year,p.month-1,p.day);d=Math.round((g-u)/(24*3600*1e3));var y=r[v.year-r[0]],R;for(R=0;R<13;R++){var I=y&1<<12-R?30:29;if(d>13;return!z||R=1888&&n<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var m=typeof s=="number"&&s>=1&&s<=12;if(!m)throw new Error("Lunar month outside range 1 - 12");var w=typeof c=="number"&&c>=1&&c<=30;if(!w)throw new Error("Lunar day outside range 1 - 30");var S;typeof f=="object"?(S=!1,v=f):(S=!!f,v={}),T={year:n,month:s,day:c,isIntercalary:S}}var M;M=T.day-1;var _=r[T.year-r[0]],b=_>>13,d;b&&(T.month>b||T.isIntercalary)?d=T.month:d=T.month-1;for(var u=0;u>9&4095,I=y>>5&15,z=y&31,F=new Date(R,I-1,z+M);return v.year=F.getFullYear(),v.month=1+F.getMonth(),v.day=F.getDate(),v}}}),p8=He({"node_modules/world-calendars/dist/calendars/coptic.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()+(A.year()<0?1:0);return E%4===3||E%4===-1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear),13},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===13&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),x<0&&x++,e.day()+(e.month()-1)*30+(x-1)*365+Math.floor(x/4)+this.jdEpoch-1},fromJD:function(x){var A=Math.floor(x)+.5-this.jdEpoch,E=Math.floor((A-Math.floor((A+366)/1461))/365)+1;E<=0&&E--,A=Math.floor(x)+.5-this.newDate(E,1,1).toJD();var e=Math.floor(A/30)+1,t=A-(e-1)*30+1;return this.newDate(E,e,t)}}),Y.calendars.coptic=h}}),g8=He({"node_modules/world-calendars/dist/calendars/discworld.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),!1},monthsInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),13},daysInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),400},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/8)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return(t.day()+1)%8},weekDay:function(A,E,e){var t=this.dayOfWeek(A,E,e);return t>=2&&t<=6},extraInfo:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return{century:x[Math.floor((t.year()-1)/100)+1]||""}},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return A=t.year()+(t.year()<0?1:0),E=t.month(),e=t.day(),e+(E>1?16:0)+(E>2?(E-2)*32:0)+(A-1)*400+this.jdEpoch-1},fromJD:function(A){A=Math.floor(A+.5)-Math.floor(this.jdEpoch)-1;var E=Math.floor(A/400)+1;A-=(E-1)*400,A+=A>15?16:0;var e=Math.floor(A/32)+1,t=A-(e-1)*32+1;return this.newDate(E<=0?E-1:E,e,t)}});var x={20:"Fruitbat",21:"Anchovy"};Y.calendars.discworld=h}}),m8=He({"node_modules/world-calendars/dist/calendars/ethiopian.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()+(A.year()<0?1:0);return E%4===3||E%4===-1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear),13},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===13&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),x<0&&x++,e.day()+(e.month()-1)*30+(x-1)*365+Math.floor(x/4)+this.jdEpoch-1},fromJD:function(x){var A=Math.floor(x)+.5-this.jdEpoch,E=Math.floor((A-Math.floor((A+366)/1461))/365)+1;E<=0&&E--,A=Math.floor(x)+.5-this.newDate(E,1,1).toJD();var e=Math.floor(A/30)+1,t=A-(e-1)*30+1;return this.newDate(E,e,t)}}),Y.calendars.ethiopian=h}}),y8=He({"node_modules/world-calendars/dist/calendars/hebrew.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return this._leapYear(E.year())},_leapYear:function(A){return A=A<0?A+1:A,x(A*7+1,19)<7},monthsInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),this._leapYear(A.year?A.year():A)?13:12},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return A=E.year(),this.toJD(A===-1?1:A+1,7,1)-this.toJD(A,7,1)},daysInMonth:function(A,E){return A.year&&(E=A.month(),A=A.year()),this._validate(A,E,this.minDay,Y.local.invalidMonth),E===12&&this.leapYear(A)||E===8&&x(this.daysInYear(A),10)===5?30:E===9&&x(this.daysInYear(A),10)===3?29:this.daysPerMonth[E-1]},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==6},extraInfo:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return{yearType:(this.leapYear(t)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(t)%10-3]}},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);A=t.year(),E=t.month(),e=t.day();var r=A<=0?A+1:A,i=this.jdEpoch+this._delay1(r)+this._delay2(r)+e+1;if(E<7){for(var a=7;a<=this.monthsInYear(A);a++)i+=this.daysInMonth(A,a);for(var a=1;a=this.toJD(E===-1?1:E+1,7,1);)E++;for(var e=Athis.toJD(E,e,this.daysInMonth(E,e));)e++;var t=A-this.toJD(E,e,1)+1;return this.newDate(E,e,t)}});function x(A,E){return A-E*Math.floor(A/E)}Y.calendars.hebrew=h}}),_8=He({"node_modules/world-calendars/dist/calendars/islamic.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var A=this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear);return(A.year()*11+14)%30<11},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInYear:function(x){return this.leapYear(x)?355:354},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===12&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return this.dayOfWeek(x,A,E)!==5},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),A=e.month(),E=e.day(),x=x<=0?x+1:x,E+Math.ceil(29.5*(A-1))+(x-1)*354+Math.floor((3+11*x)/30)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x)+.5;var A=Math.floor((30*(x-this.jdEpoch)+10646)/10631);A=A<=0?A-1:A;var E=Math.min(12,Math.ceil((x-29-this.toJD(A,1,1))/29.5)+1),e=x-this.toJD(A,E,1)+1;return this.newDate(A,E,e)}}),Y.calendars.islamic=h}}),x8=He({"node_modules/world-calendars/dist/calendars/julian.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()<0?A.year()+1:A.year();return E%4===0},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(4-(e.dayOfWeek()||7),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===2&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),A=e.month(),E=e.day(),x<0&&x++,A<=2&&(x--,A+=12),Math.floor(365.25*(x+4716))+Math.floor(30.6001*(A+1))+E-1524.5},fromJD:function(x){var A=Math.floor(x+.5),E=A+1524,e=Math.floor((E-122.1)/365.25),t=Math.floor(365.25*e),r=Math.floor((E-t)/30.6001),i=r-Math.floor(r<14?1:13),a=e-Math.floor(i>2?4716:4715),o=E-t-Math.floor(30.6001*r);return a<=0&&a--,this.newDate(a,i,o)}}),Y.calendars.julian=h}}),b8=He({"node_modules/world-calendars/dist/calendars/mayan.js"(){var Y=mh(),H=yf();function h(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(E){return this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),!1},formatYear:function(E){var e=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear);E=e.year();var t=Math.floor(E/400);E=E%400,E+=E<0?400:0;var r=Math.floor(E/20);return t+"."+r+"."+E%20},forYear:function(E){if(E=E.split("."),E.length<3)throw"Invalid Mayan year";for(var e=0,t=0;t19||t>0&&r<0)throw"Invalid Mayan year";e=e*20+r}return e},monthsInYear:function(E){return this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),18},weekOfYear:function(E,e,t){return this._validate(E,e,t,Y.local.invalidDate),0},daysInYear:function(E){return this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),360},daysInMonth:function(E,e){return this._validate(E,e,this.minDay,Y.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate);return r.day()},weekDay:function(E,e,t){return this._validate(E,e,t,Y.local.invalidDate),!0},extraInfo:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate),i=r.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(E){E-=this.jdEpoch;var e=x(E+8+340,365);return[Math.floor(e/20)+1,x(e,20)]},_toTzolkin:function(E){return E-=this.jdEpoch,[A(E+20,20),A(E+4,13)]},toJD:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate);return r.day()+r.month()*20+r.year()*360+this.jdEpoch},fromJD:function(E){E=Math.floor(E)+.5-this.jdEpoch;var e=Math.floor(E/360);E=E%360,E+=E<0?360:0;var t=Math.floor(E/20),r=E%20;return this.newDate(e,t,r)}});function x(E,e){return E-e*Math.floor(E/e)}function A(E,e){return x(E-1,e)+1}Y.calendars.mayan=h}}),w8=He({"node_modules/world-calendars/dist/calendars/nanakshahi.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar;var x=Y.instance("gregorian");H(h.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear);return x.leapYear(E.year()+(E.year()<1?1:0)+1469)},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(1-(t.dayOfWeek()||7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===12&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidMonth),r=t.year();r<0&&r++;for(var i=t.day(),a=1;a=this.toJD(E+1,1,1);)E++;for(var e=A-Math.floor(this.toJD(E,1,1)+.5)+1,t=1;e>this.daysInMonth(E,t);)e-=this.daysInMonth(E,t),t++;return this.newDate(E,t,e)}}),Y.calendars.nanakshahi=h}}),T8=He({"node_modules/world-calendars/dist/calendars/nepali.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(x){return this.daysInYear(x)!==this.daysPerYear},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInYear:function(x){var A=this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear);if(x=A.year(),typeof this.NEPALI_CALENDAR_DATA[x]>"u")return this.daysPerYear;for(var E=0,e=this.minMonth;e<=12;e++)E+=this.NEPALI_CALENDAR_DATA[x][e];return E},daysInMonth:function(x,A){return x.year&&(A=x.month(),x=x.year()),this._validate(x,A,this.minDay,Y.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[x]>"u"?this.daysPerMonth[A-1]:this.NEPALI_CALENDAR_DATA[x][A]},weekDay:function(x,A,E){return this.dayOfWeek(x,A,E)!==6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);x=e.year(),A=e.month(),E=e.day();var t=Y.instance(),r=0,i=A,a=x;this._createMissingCalendarData(x);var o=x-(i>9||i===9&&E>=this.NEPALI_CALENDAR_DATA[a][0]?56:57);for(A!==9&&(r=E,i--);i!==9;)i<=0&&(i=12,a--),r+=this.NEPALI_CALENDAR_DATA[a][i],i--;return A===9?(r+=E-this.NEPALI_CALENDAR_DATA[a][0],r<0&&(r+=t.daysInYear(o))):r+=this.NEPALI_CALENDAR_DATA[a][9]-this.NEPALI_CALENDAR_DATA[a][0],t.newDate(o,1,1).add(r,"d").toJD()},fromJD:function(x){var A=Y.instance(),E=A.fromJD(x),e=E.year(),t=E.dayOfYear(),r=e+56;this._createMissingCalendarData(r);for(var i=9,a=this.NEPALI_CALENDAR_DATA[r][0],o=this.NEPALI_CALENDAR_DATA[r][i]-a+1;t>o;)i++,i>12&&(i=1,r++),o+=this.NEPALI_CALENDAR_DATA[r][i];var n=this.NEPALI_CALENDAR_DATA[r][i]-(o-t);return this.newDate(r,i,n)},_createMissingCalendarData:function(x){var A=this.daysPerMonth.slice(0);A.unshift(17);for(var E=x-1;E"u"&&(this.NEPALI_CALENDAR_DATA[E]=A)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),Y.calendars.nepali=h}}),A8=He({"node_modules/world-calendars/dist/calendars/persian.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}function x(A){var E=A-475;A<0&&E++;var e=.242197,t=e*E,r=e*(E+1),i=t-Math.floor(t),a=r-Math.floor(r);return i>a}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chahārshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return x(E.year())},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-((t.dayOfWeek()+1)%7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===12&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==5},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);A=t.year(),E=t.month(),e=t.day();var r=0;if(A>0)for(var i=1;i0?A-1:A)*365+r+this.jdEpoch-1},fromJD:function(A){A=Math.floor(A)+.5;var E=475+(A-this.toJD(475,1,1))/365.242197,e=Math.floor(E);e<=0&&e--,A>this.toJD(e,12,x(e)?30:29)&&(e++,e===0&&e++);var t=A-this.toJD(e,1,1)+1,r=t<=186?Math.ceil(t/31):Math.ceil((t-6)/30),i=A-this.toJD(e,r,1)+1;return this.newDate(e,r,i)}}),Y.calendars.persian=h,Y.calendars.jalali=h}}),S8=He({"node_modules/world-calendars/dist/calendars/taiwan.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var E=this._validate(e,this.minMonth,this.minDay,Y.local.invalidYear),e=this._t2gYear(E.year());return h.leapYear(e)},weekOfYear:function(r,E,e){var t=this._validate(r,this.minMonth,this.minDay,Y.local.invalidYear),r=this._t2gYear(t.year());return h.weekOfYear(r,t.month(),t.day())},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===2&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidDate),r=this._t2gYear(t.year());return h.toJD(r,t.month(),t.day())},fromJD:function(A){var E=h.fromJD(A),e=this._g2tYear(E.year());return this.newDate(e,E.month(),E.day())},_t2gYear:function(A){return A+this.yearsOffset+(A>=-this.yearsOffset&&A<=-1?1:0)},_g2tYear:function(A){return A-this.yearsOffset-(A>=1&&A<=this.yearsOffset?1:0)}}),Y.calendars.taiwan=x}}),M8=He({"node_modules/world-calendars/dist/calendars/thai.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var E=this._validate(e,this.minMonth,this.minDay,Y.local.invalidYear),e=this._t2gYear(E.year());return h.leapYear(e)},weekOfYear:function(r,E,e){var t=this._validate(r,this.minMonth,this.minDay,Y.local.invalidYear),r=this._t2gYear(t.year());return h.weekOfYear(r,t.month(),t.day())},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===2&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidDate),r=this._t2gYear(t.year());return h.toJD(r,t.month(),t.day())},fromJD:function(A){var E=h.fromJD(A),e=this._g2tYear(E.year());return this.newDate(e,E.month(),E.day())},_t2gYear:function(A){return A-this.yearsOffset-(A>=1&&A<=this.yearsOffset?1:0)},_g2tYear:function(A){return A+this.yearsOffset+(A>=-this.yearsOffset&&A<=-1?1:0)}}),Y.calendars.thai=x}}),E8=He({"node_modules/world-calendars/dist/calendars/ummalqura.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return this.daysInYear(E.year())===355},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(A){for(var E=0,e=1;e<=12;e++)E+=this.daysInMonth(A,e);return E},daysInMonth:function(A,E){for(var e=this._validate(A,E,this.minDay,Y.local.invalidMonth),t=e.toJD()-24e5+.5,r=0,i=0;it)return x[r]-x[r-1];r++}return 30},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==5},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate),r=12*(t.year()-1)+t.month()-15292,i=t.day()+x[r-1]-1;return i+24e5-.5},fromJD:function(A){for(var E=A-24e5+.5,e=0,t=0;tE);t++)e++;var r=e+15292,i=Math.floor((r-1)/12),a=i+1,o=r-12*i,n=E-x[e-1]+1;return this.newDate(a,o,n)},isValid:function(A,E,e){var t=Y.baseCalendar.prototype.isValid.apply(this,arguments);return t&&(A=A.year!=null?A.year:A,t=A>=1276&&A<=1500),t},_validate:function(A,E,e,t){var r=Y.baseCalendar.prototype._validate.apply(this,arguments);if(r.year<1276||r.year>1500)throw t.replace(/\{0\}/,this.local.name);return r}}),Y.calendars.ummalqura=h;var x=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]}}),k8=He({"src/components/calendars/calendars.js"(Y,H){H.exports=mh(),v8(),d8(),p8(),g8(),m8(),y8(),_8(),x8(),b8(),w8(),T8(),A8(),S8(),M8(),E8()}}),C8=He({"src/components/calendars/index.js"(Y,H){var h=k8(),x=Qr(),A=qo(),E=A.EPOCHJD,e=A.ONEDAY,t={valType:"enumerated",values:x.sortObjectKeys(h.calendars),editType:"calc",dflt:"gregorian"},r=function(_,b,d,u){var g={};return g[d]=t,x.coerce(_,b,g,d,u)},i=function(_,b,d,u){for(var g=0;g + * @license MIT + *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *//*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + *//*! + * pad-left + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT license. + *//*! + * repeat-string + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + *//*! Bundled license information: + + native-promise-only/lib/npo.src.js: + (*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org + *) + + polybooljs/index.js: + (* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + *) + + ieee754/index.js: + (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) + + buffer/index.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + + safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) + + assert/build/internal/util/comparisons.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + + object-assign/index.js: + (* + object-assign + (c) Sindre Sorhus + @license MIT + *) + + maplibre-gl/dist/maplibre-gl.js: + (** + * MapLibre GL JS + * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt + *) + */return window.Plotly=mu,mu})}(Xg)),Xg.exports}var _b;function _S(){return _b||(_b=1,function(zl){Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var mu=Es(gS()),Oc=Es(yS());function Es(Bf){return Bf&&Bf.__esModule?Bf:{default:Bf}}var Ul=(0,mu.default)(Oc.default),Bc=Ul;zl.default=Bc}(Yy)),Yy}var xS=_S();const xb=cS(xS),bb=1e3,bS=({value:zl})=>{const[mu,Oc]=Wh.useState(zl),Es=Wh.useRef(zl),Ul=Wh.useRef(null),Bc=Wh.useRef(0),Bf=Wh.useCallback(()=>{Ul.current&&clearTimeout(Ul.current);const tv=Date.now()-Bc.current,Od=Math.max(0,bb-tv);Ul.current=setTimeout(()=>{Oc(Es.current),Bc.current=Date.now(),Ul.current=null},Od)},[]);if(Wh.useEffect(()=>(Es.current=zl,Bf(),()=>{Ul.current&&clearTimeout(Ul.current)}),[zl,Bf]),!mu)return Eh.jsx(Eh.Fragment,{});if(typeof mu!="object")return Eh.jsx(Eh.Fragment,{});if(!("data"in mu)||!("layout"in mu))return Eh.jsx(Eh.Fragment,{});const{data:Rh,layout:Fv,...nd}=mu,ev=Fv;return ev.autosize=!0,Eh.jsx("div",{className:"funcnodes_plotly_container",children:Eh.jsx(xb,{data:Rh,layout:ev,config:{staticPlot:!0,displayModeBar:!1,responsive:!0,doubleClick:!1,scrollZoom:!1},useResizeHandler:!0,style:{width:"100%",height:"100%",pointerEvents:"none"},...nd})})},wS=({value:zl})=>{const[mu,Oc]=Wh.useState(zl),Es=Wh.useRef(zl),Ul=Wh.useRef(null),Bc=Wh.useRef(0),Bf=Wh.useCallback(()=>{Ul.current&&clearTimeout(Ul.current);const tv=Date.now()-Bc.current,Od=Math.max(0,bb-tv);Ul.current=setTimeout(()=>{Oc(Es.current),Bc.current=Date.now(),Ul.current=null},Od)},[]);if(Wh.useEffect(()=>(Es.current=zl,Bf(),()=>{Ul.current&&clearTimeout(Ul.current)}),[zl,Bf]),!mu)return Eh.jsx(Eh.Fragment,{});if(typeof mu!="object")return Eh.jsx(Eh.Fragment,{});if(!("data"in mu)||!("layout"in mu))return Eh.jsx(Eh.Fragment,{});const{data:Rh,layout:Fv,...nd}=mu,ev=Fv;return ev.autosize=!0,Eh.jsx(xb,{data:Rh,layout:ev,style:{width:"100%",height:"100%"},useResizeHandler:!0,...nd})};return{renderpluginfactory:({})=>({data_preview_renderers:{"plotly.Figure":fb.DataViewRendererToDataPreviewViewRenderer(bS)},data_view_renderers:{"plotly.Figure":wS}}),v:fb.LATEST_VERSION}}(React,FuncNodesReactFlow); diff --git a/src/funcnodes_plotly/react_plugin/main.js b/src/funcnodes_plotly/react_plugin/main.js deleted file mode 100644 index 448293c..0000000 --- a/src/funcnodes_plotly/react_plugin/main.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.js.LICENSE.txt */ -var t={555:function(t){var e,r;e="undefined"!=typeof self?self:this,r=()=>{var t=(()=>{var t=Object.create,e=Object.defineProperty,r=Object.defineProperties,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,h=(t,e)=>()=>(t&&(e=t(t=0)),e),f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),p=(t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})},d=(t,r,i,o)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let s of a(r))!l.call(t,s)&&s!==i&&e(t,s,{get:()=>r[s],enumerable:!(o=n(r,s))||o.enumerable});return t},m=t=>d(e({},"__esModule",{value:!0}),t),g=f((t=>{t.version="3.0.1"})),y=f(((t,e)=>{var r,n;r="Promise",(n="undefined"!=typeof window?window:t)[r]=n[r]||function(){var t,e,r,n=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,r){return t[e]=r,t}}function a(t,n){r.add(t,n),e||(e=i(r.drain))}function o(t){var e,r=typeof t;return null!=t&&("object"==r||"function"==r)&&(e=t.then),"function"==typeof e&&e}function s(){for(var t=0;t0&&a(s,r))}catch(t){c.call(new f(r),t)}}}function c(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&a(s,e))}function h(t,e,r,n){for(var i=0;i{(function(){var t={version:"3.8.2"},r=[].slice,n=function(t){return r.call(t)},i=self.document;function a(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var s=this.Element.prototype,l=s.setAttribute,u=s.setAttributeNS,c=this.CSSStyleDeclaration.prototype,h=c.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+"")},s.setAttributeNS=function(t,e,r){u.call(this,t,e,r+"")},c.setProperty=function(t,e,r){h.call(this,t,e+"",r)}}function f(t,e){return te?1:t>=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function m(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}t.ascending=f,t.descending=function(t,e){return et?1:e>=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++in&&(r=n)}else{for(;++i=n){r=n;break}for(;++in&&(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++ir&&(r=n)}else{for(;++i=n){r=n;break}for(;++ir&&(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a=n){r=i=n;break}for(;++an&&(r=n),i=n){r=i=n;break}for(;++an&&(r=n),i1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e&&Math.sqrt(e)};var g=m(f);function y(t){return t.length}t.bisectLeft=g.left,t.bisect=t.bisectRight=g.right,t.bisector=function(t){return m(1===t.length?function(e,r){return f(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r};var v=Math.abs;function x(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}function b(t){return"__proto__"==(t+="")||"\0"===t[0]?"\0"+t:t}function w(t){return"\0"===(t+="")[0]?t.slice(1):t}function T(t){return b(t)in this._}function k(t){return(t=b(t))in this._&&delete this._[t]}function A(){var t=[];for(var e in this._)t.push(w(e));return t}function M(){var t=0;for(var e in this._)++t;return t}function S(){for(var t in this._)return!1;return!0}function E(){this._=Object.create(null)}function C(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function L(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=P.length;re;)i.push(n/a);else for(;(n=t+r*++o)=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,u,c,h,f=-1,p=a.length,d=i[s++],m=new _;++f=i.length)return t;var r=[],n=a[e++];return t.forEach((function(t,n){r.push({key:t,values:s(n,e)})})),n?r.sort((function(t,e){return n(t.key,e.key)})):r}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return s(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new E;if(t)for(var r=0,n=t.length;r=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(N,"\\$&")};var N=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,j={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function U(t){return j(t,G),t}var V=function(t,e){return e.querySelector(t)},q=function(t,e){return e.querySelectorAll(t)},H=function(t,e){var r=t.matches||t[L(t,"matchesSelector")];return(H=function(t,e){return r.call(t,e)})(t,e)};"function"==typeof Sizzle&&(V=function(t,e){return Sizzle(t,e)[0]||null},q=Sizzle,H=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var G=t.selection.prototype=[];function Z(t){return"function"==typeof t?t:function(){return V(t,this)}}function W(t){return"function"==typeof t?t:function(){return q(t,this)}}G.select=function(t){var e,r,n,i,a=[];t=Z(t);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),X.hasOwnProperty(r)?{space:X[r],local:t}:t}},G.attr=function(e,r){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each($(r,e[r]));return this}return this.each($(e,r))},G.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node(),n=(t=Q(t)).length,i=-1;if(e=r.classList){for(;++i=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},G.sort=function(t){t=lt.apply(this,arguments);for(var e=-1,r=this.length;++e0&&(e=e.slice(0,o));var l=pt.get(e);function u(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}return l&&(e=l,s=mt),o?r?function(){var t=s(r,n(arguments));u.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:u:r?z:function(){var r,n=new RegExp("^__on([^.]+)"+t.requote(e)+"$");for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ct,t.selection.enter.prototype=ht,ht.append=G.append,ht.empty=G.empty,ht.node=G.node,ht.call=G.call,ht.size=G.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s=e&&(e=i+1);!(o=s[e])&&++e1?Mt:t<-1?-Mt:Math.asin(t)}function Lt(t){return((t=Math.exp(t))+1/t)/2}var Pt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-a,f=c*c+h*h;if(f<1e-12)n=Math.log(u/o)/Pt,r=function(t){return[i+t*c,a+t*h,o*Math.exp(Pt*t*n)]};else{var p=Math.sqrt(f),d=(u*u-o*o+4*f)/(2*o*2*p),m=(u*u-o*o-4*f)/(2*u*2*p),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(m*m+1)-m);n=(y-g)/Pt,r=function(t){var e=t*n,r=Lt(g),s=o/(2*p)*(r*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(Pt*e+g)-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+s*c,a+s*h,o*r/Lt(Pt*e+g)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,u,c,h,f={x:0,y:0,k:1},p=[960,500],d=Dt,m=250,g=0,y="mousedown.zoom",v="mousemove.zoom",x="mouseup.zoom",_="touchstart.zoom",b=B(w,"zoomstart","zoom","zoomend");function w(t){t.on(y,L).on(Ot+".zoom",z).on("dblclick.zoom",O).on(_,P)}function T(t){return[(t[0]-f.x)/f.k,(t[1]-f.y)/f.k]}function k(t){f.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*f.k+f.x,t[1]*f.k+f.y]}(e),f.x+=t[0]-e[0],f.y+=t[1]-e[1]}function M(e,n,i,a){e.__chart__={x:f.x,y:f.y,k:f.k},k(Math.pow(2,a)),A(r=n,i),e=t.select(e),m>0&&(e=e.transition().duration(m)),e.call(w.event)}function S(){u&&u.domain(l.range().map((function(t){return(t-f.x)/f.k})).map(l.invert)),h&&h.domain(c.range().map((function(t){return(t-f.y)/f.k})).map(c.invert))}function E(t){g++||t({type:"zoomstart"})}function C(t){S(),t({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function I(t){--g||(t({type:"zoomend"}),r=null)}function L(){var e=this,r=b.of(e,arguments),n=0,i=t.select(o(e)).on(v,(function(){n=1,A(t.mouse(e),a),C(r)})).on(x,(function(){i.on(v,null).on(x,null),s(n),I(r)})),a=T(t.mouse(e)),s=vt(e);Zi.call(e),E(r)}function P(){var e,r=this,n=b.of(r,arguments),i={},a=0,o=".zoom-"+t.event.changedTouches[0].identifier,l="touchmove"+o,u="touchend"+o,c=[],h=t.select(r),p=vt(r);function d(){var n=t.touches(r);return e=f.k,n.forEach((function(t){t.identifier in i&&(i[t.identifier]=T(t))})),n}function m(){var e=t.event.target;t.select(e).on(l,g).on(u,v),c.push(e);for(var n=t.event.changedTouches,o=0,h=n.length;o1){y=p[0];var x=p[1],_=y[0]-x[0],b=y[1]-x[1];a=_*_+b*b}}function g(){var o,l,u,c,h=t.touches(r);Zi.call(r);for(var f=0,p=h.length;f360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new Qt(a(t+120),a(t),a(t-120))}function jt(e,r,n){return this instanceof jt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length<2?e instanceof jt?new jt(e.h,e.c,e.l):function(t,e,r){return t>0?new jt(Math.atan2(r,e)*Et,Math.sqrt(e*e+r*r),t):new jt(NaN,NaN,t)}(e instanceof qt?e.l:(e=oe((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new jt(e,r,n)}Bt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ft(this.h,this.s,this.l/t)},Bt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ft(this.h,this.s,t*this.l)},Bt.rgb=function(){return Nt(this.h,this.s,this.l)},t.hcl=jt;var Ut=jt.prototype=new Rt;function Vt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new qt(r,Math.cos(t*=St)*e,Math.sin(t)*e)}function qt(t,e,r){return this instanceof qt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof qt?new qt(t.l,t.a,t.b):t instanceof jt?Vt(t.h,t.c,t.l):oe((t=Qt(t)).r,t.g,t.b):new qt(t,e,r)}Ut.brighter=function(t){return new jt(this.h,this.c,Math.min(100,this.l+Ht*(arguments.length?t:1)))},Ut.darker=function(t){return new jt(this.h,this.c,Math.max(0,this.l-Ht*(arguments.length?t:1)))},Ut.rgb=function(){return Vt(this.h,this.c,this.l).rgb()},t.lab=qt;var Ht=18,Gt=.95047,Zt=1,Wt=1.08883,Yt=qt.prototype=new Rt;function Xt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new Qt(Kt(3.2404542*(i=$t(i)*Gt)-1.5371385*(n=$t(n)*Zt)-.4985314*(a=$t(a)*Wt)),Kt(-.969266*i+1.8760108*n+.041556*a),Kt(.0556434*i-.2040259*n+1.0572252*a))}function $t(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function Jt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function Kt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Qt(t,e,r){return this instanceof Qt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof Qt?new Qt(t.r,t.g,t.b):ie(""+t,Qt,Nt):new Qt(t,e,r)}function te(t){return new Qt(t>>16,t>>8&255,255&t)}function ee(t){return te(t)+""}Yt.brighter=function(t){return new qt(Math.min(100,this.l+Ht*(arguments.length?t:1)),this.a,this.b)},Yt.darker=function(t){return new qt(Math.max(0,this.l-Ht*(arguments.length?t:1)),this.a,this.b)},Yt.rgb=function(){return Xt(this.l,this.a,this.b)},t.rgb=Qt;var re=Qt.prototype=new Rt;function ne(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ie(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(","),n[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(le(i[0]),le(i[1]),le(i[2]))}return(a=ue.get(t))?e(a.r,a.g,a.b):(null!=t&&"#"===t.charAt(0)&&!isNaN(a=parseInt(t.slice(1),16))&&(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function ae(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e0&&l<1?0:n),new Ft(n,i,l)}function oe(t,e,r){var n=Jt((.4124564*(t=se(t))+.3575761*(e=se(e))+.1804375*(r=se(r)))/Gt),i=Jt((.2126729*t+.7151522*e+.072175*r)/Zt);return qt(116*i-16,500*(n-i),200*(i-Jt((.0193339*t+.119192*e+.9503041*r)/Wt)))}function se(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function le(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}re.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e=200&&e<300||304===e){try{t=i.call(o,u)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,u)}return self.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(e)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=h:u.onreadystatechange=function(){u.readyState>3&&h()},u.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,u)}finally{t.event=r}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+"",o):r},o.responseType=function(t){return arguments.length?(c=t,o):c},o.response=function(t){return i=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&&"function"==typeof n&&(i=n,n=null),u.open(t,e,!0),null!=r&&!("accept"in l)&&(l.accept=r+",*/*"),u.setRequestHeader)for(var a in l)u.setRequestHeader(a,l[a]);return null!=r&&u.overrideMimeType&&u.overrideMimeType(r),null!=c&&(u.responseType=c),null!=i&&o.on("error",i).on("load",(function(t){i(null,t)})),s.beforesend.call(o,u),u.send(null==n?null:n),o},o.abort=function(){return u.abort(),o},t.rebind(o,s,"on"),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}ue.forEach((function(t,e){ue.set(t,te(e))})),t.functor=ce,t.xhr=he(C),t.dsv=function(t,e){var r=new RegExp('["'+t+"\n]"),n=t.charCodeAt(0);function i(t,r,n){arguments.length<3&&(n=r,r=null);var i=fe(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i=l)return o;if(i)return i=!1,a;var e=u;if(34===t.charCodeAt(e)){for(var r=e;r++24?(isFinite(e)&&(clearTimeout(ge),ge=setTimeout(xe,e)),me=0):(me=1,ye(xe))}function _e(){for(var t=Date.now(),e=pe;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function be(){for(var t,e=pe,r=1/0;e;)e.c?(e.t1&&Ct(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Ae(t,e){return t[0]-e[0]||t[1]-e[1]}t.timer=function(){ve.apply(this,arguments)},t.timer.flush=function(){_e(),be()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},t.geom={},t.geom.hull=function(t){var e=we,r=Te;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,i=ce(e),a=ce(r),o=t.length,s=[],l=[];for(n=0;n=0;--n)p.push(t[s[u[n]][2]]);for(n=+h;nwt)s=s.L;else{if(!((i=a-qe(s,o))>wt)){n>-wt?(e=s.P,r=s):i>-wt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Be(t);if(Pe.insert(e,l),e||r){if(e===r)return Ye(e),r=Be(e.site),Pe.insert(l,r),l.edge=r.edge=Je(e.site,l.site),We(e),void We(r);if(!r)return void(l.edge=Je(e.site,l.site));Ye(e),Ye(r);var u=e.site,c=u.x,h=u.y,f=t.x-c,p=t.y-h,d=r.site,m=d.x-c,g=d.y-h,y=2*(f*g-p*m),v=f*f+p*p,x=m*m+g*g,_={x:(g*v-p*x)/y+c,y:(f*x-m*v)/y+h};Qe(r.edge,u,d,_),l.edge=Je(u,t,null,_),r.edge=Je(t,d,null,_),We(e),We(r)}}function Ve(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,u=l-e;if(!u)return s;var c=s-n,h=1/a-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-a/2)))/h+n:(n+s)/2}function qe(t,e){var r=t.N;if(r)return Ve(r,e);var n=t.site;return n.y===e?n.x:1/0}function He(t){this.site=t,this.edges=[]}function Ge(t,e){return e.angle-t.angle}function Ze(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function We(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,u=n.y-s,c=a.x-o,h=2*(l*(g=a.y-s)-u*c);if(!(h>=-1e-12)){var f=l*l+u*u,p=c*c+g*g,d=(g*f-u*p)/h,m=(l*p-c*f)/h,g=m+s,y=Re.pop()||new Ze;y.arc=t,y.site=i,y.x=d+o,y.y=g+Math.sqrt(d*d+m*m),y.cy=g,t.circle=y;for(var v=null,x=Oe._;x;)if(y.y=s)return;if(f>d){if(a){if(a.y>=u)return}else a={x:g,y:l};r={x:g,y:u}}else{if(a){if(a.y1)if(f>d){if(a){if(a.y>=u)return}else a={x:(l-i)/n,y:l};r={x:(u-i)/n,y:u}}else{if(a){if(a.y=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x0)){if(a/=f,f<0){if(a0){if(a>h)return;a>c&&(c=a)}if(a=r-l,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=p,p<0){if(a0){if(a>h)return;a>c&&(c=a)}if(a=n-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>c&&(c=a)}else if(p>0){if(a0&&(i.a={x:l+c*f,y:u+c*p}),h<1&&(i.b={x:l+h*f,y:u+h*p}),i}}}}}}(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Xe(e=r[i],t)||!n(e)||v(e.a.x-e.b.x)wt||v(i-r)>wt)&&(s.splice(o,0,new tr(Ke(a.site,c,v(n-h)wt?{x:h,y:v(e-h)wt?{x:v(r-d)wt?{x:f,y:v(e-f)wt?{x:v(r-p)=r&&u.x<=i&&u.y>=n&&u.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/wt)*wt,y:Math.round(i(t,e)/wt)*wt,i:e}}))}return o.links=function(t){return or(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return or(s(t)).cells.forEach((function(r,n){for(var i,a=r.site,o=r.edges.sort(Ge),s=-1,l=o.length,u=o[l-1].edge,c=u.l===a?u.r:u.l;++sa&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:mr(r,n)})),a=vr.lastIndex;return am&&(m=l.x),l.y>g&&(g=l.y),u.push(l.x),c.push(l.y);else for(h=0;hm&&(m=_),b>g&&(g=b),u.push(_),c.push(b)}var w=m-p,T=g-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,u=t.y;if(null!=l)if(v(l-r)+v(u-n)<.01)A(t,e,r,n,i,a,o,s);else{var c=t.point;t.x=t.y=t.point=null,A(t,c,l,u,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),u=.5*(a+s),c=r>=l,h=n>=u,f=h<<1|c;t.leaf=!1,c?i=l:o=l,h?a=u:s=u,k(t=t.nodes[f]||(t.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w>T?g=d+w:m=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(M,t,+y(t,++h),+x(t,h),p,d,m,g)},visit:function(t){fr(t,M,p,d,m,g)},find:function(t){return function(t,e,r,n,i,a,o){var s,l=1/0;return function t(u,c,h,f,p){if(!(c>a||h>o||f=b)<<1|e>=_,T=w+4;w=0&&!(n=t.interpolators[i](e,r)););return n}function _r(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Cr(t){return 1-Math.cos(t*Mt)}function Ir(t){return Math.pow(2,10*(t-1))}function Lr(t){return 1-Math.sqrt(1-t*t)}function Pr(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function zr(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function Or(t){var e=[t.a,t.b],r=[t.c,t.d],n=Rr(e),i=Dr(e,r),a=Rr(function(t,e,r){return t[0]+=r*e[0],t[1]+=r*e[1],t}(r,e,-i))||0;e[0]*r[1]=0?t.slice(0,e):t,i=e>=0?t.slice(e+1):"in";return n=wr.get(n)||br,function(t){return function(e){return e<=0?0:e>=1?1:t(e)}}((i=Tr.get(i)||C)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;return isNaN(s)&&(s=0,i=isNaN(i)?r.c:i),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(t){return Vt(n+o*t,i+s*t,a+l*t)+""}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;return isNaN(s)&&(s=0,i=isNaN(i)?r.s:i),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(t){return Nt(n+o*t,i+s*t,a+l*t)+""}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Xt(n+o*t,i+s*t,a+l*t)+""}},t.interpolateRound=zr,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(t){if(null!=t){r.setAttribute("transform",t);var e=r.transform.baseVal.consolidate()}return new Or(e?e.matrix:Fr)})(e)},Or.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function Br(t){return t.length?t.pop()+",":""}function Nr(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push("translate(",null,",",null,")");n.push({i:i-4,x:mr(t[0],e[0])},{i:i-2,x:mr(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(Br(r)+"rotate(",null,")")-2,x:mr(t,e)})):e&&r.push(Br(r)+"rotate("+e+")")}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(Br(r)+"skewX(",null,")")-2,x:mr(t,e)}):e&&r.push(Br(r)+"skewX("+e+")")}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Br(r)+"scale(",null,",",null,")");n.push({i:i-4,x:mr(t[0],e[0])},{i:i-2,x:mr(t[1],e[1])})}else(1!==e[0]||1!==e[1])&&r.push(Br(r)+"scale("+e+")")}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=ve(s.tick)),s):n},s.start=function(){var t,e,r,n=y.length,l=v.length,c=u[0],d=u[1];for(t=0;t=0;)r.push(i[n])}function tn(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;r&&(a.value=0),a.children=u}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return tn(i,(function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Qr(t,(function(t){t.children&&(t.value=0)})),tn(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,e,r,i){var a=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(o=a.length)){var o,s,l,u=-1;for(r=t.value?r/t.value:0;++us&&(s=n),o.push(n)}for(r=0;ri&&(n=r,i=e);return n}function mn(t){return t.reduce(gn,0)}function gn(t,e){return t+e[1]}function yn(t,e){return vn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function vn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function xn(e){return[t.min(e),t.max(e)]}function _n(t,e){return t.value-e.value}function bn(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function wn(t,e){t._pack_next=e,e._pack_prev=t}function Tn(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function kn(t){if((e=t.children)&&(l=e.length)){var e,r,n,i,a,o,s,l,u=1/0,c=-1/0,h=1/0,f=-1/0;if(e.forEach(An),(r=e[0]).x=-r.r,r.y=0,x(r),l>1&&((n=e[1]).x=n.r,n.y=0,x(n),l>2))for(En(r,n,i=e[2]),x(i),bn(r,i),r._pack_prev=i,bn(i,n),n=r._pack_next,a=3;a0)for(o=-1;++o=h[0]&&l<=h[1]&&((s=u[t.bisect(f,l,1,d)-1]).y+=m,s.push(a[o]));return u}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ce(t),a):n},a.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return vn(e,t)}:ce(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(_n),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],u=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,tn(s,(function(t){t.r=+c(t.value)})),tn(s,kn),n){var h=n*(e?1:Math.max(2*s.r/l,2*s.r/u))/2;tn(s,(function(t){t.r+=h})),tn(s,kn),tn(s,(function(t){t.r-=h}))}return Sn(s,l/2,u/2,e?1:1/Math.max(2*s.r/l,2*s.r/u)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Kr(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Cn,n=[1,1],i=null;function a(t,a){var u=e.call(this,t,a),c=u[0],h=function(t){for(var e,r={A:null,children:[t]},n=[r];null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;op.x&&(p=t),t.depth>d.depth&&(d=t)}));var m=r(f,p)/2-f.x,g=n[0]/(p.x+r(p,f)/2+m),y=n[1]/(d.depth||1);Qr(c,(function(t){t.x=(t.x+m)*g,t.y=t.depth*y}))}return u}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],u=a.m,c=o.m,h=s.m,f=l.m;s=Ln(s),a=In(a),s&&a;)l=In(l),(o=Ln(o)).a=t,(i=s.z+h-a.z-u+r(s._,a._))>0&&(Pn(zn(s,t,n),t,i),u+=i,c+=i),h+=s.m,u+=a.m,f+=l.m,c+=o.m;s&&!Ln(o)&&(o.t=s,o.m+=h-c),a&&!In(l)&&(l.t=a,l.m+=u-f,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Kr(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Cn,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),u=l[0],c=0;tn(u,(function(e){var n=e.children;n&&n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?c+=r(e,s):0,e.y=0,s=e)}));var h=On(u),f=Dn(u),p=h.x-r(h,f)/2,d=f.x+r(f,h)/2;return tn(u,i?function(t){t.x=(t.x-u.x)*n[0],t.y=(u.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(u.y?t.y/u.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Kr(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=Rn,s=!1,l="squarify",u=.5*(1+Math.sqrt(5));function c(t,e){for(var r,n,i=-1,a=t.length;++i0;)s.push(r=u[i-1]),s.area+=r.area,"squarify"!==l||(n=p(s,m))<=f?(u.pop(),f=n):(s.area-=s.pop().area,d(s,m,a,!1),m=Math.min(a.dx,a.dy),s.length=s.area=0,f=1/0);s.length&&(d(s,m,a,!0),s.length=s.area=0),e.forEach(h)}}function f(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(c(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(f)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++oi&&(i=r));return e*=e,(n*=n)?Math.max(e*i*u/n,n/(e*a*u)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,u=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++or.dx)&&(c=r.dx);++o1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r2?Hn:jn,l=n?Ur:jr;return i=o(t,e,l,r),a=o(e,t,l,xr),s}function s(t){return i(t)}return s.invert=function(t){return a(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},s.range=function(t){return arguments.length?(e=t,o()):e},s.rangeRound=function(t){return s.range(t).interpolate(zr)},s.clamp=function(t){return arguments.length?(n=t,o()):n},s.interpolate=function(t){return arguments.length?(r=t,o()):r},s.ticks=function(e){return Xn(t,e)},s.tickFormat=function(e,r){return d3_scale_linearTickFormat(t,e,r)},s.nice=function(e){return Wn(t,e),o()},s.copy=function(){return Gn(t,e,r,n)},o()}function Zn(e,r){return t.rebind(e,r,"range","rangeRound","interpolate","clamp")}function Wn(t,e){return Un(t,Vn(Yn(t,e)[2])),Un(t,Vn(Yn(t,e)[2])),t}function Yn(t,e){null==e&&(e=10);var r=Bn(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Xn(e,r){return t.range.apply(t,Yn(e,r))}function $n(t,e,r,n){function i(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return r?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((n=e.map(Number)).map(i)),o):n},o.base=function(r){return arguments.length?(e=+r,t.domain(n.map(i)),o):e},o.nice=function(){var e=Un(n.map(i),r?Math:Jn);return t.domain(e),n=e.map(a),o},o.ticks=function(){var t=Bn(n),o=[],s=t[0],l=t[1],u=Math.floor(i(s)),c=Math.ceil(i(l)),h=e%1?2:e;if(isFinite(c-u)){if(r){for(;u0;f--)o.push(a(u)*f);for(u=0;o[u]l;c--);o=o.slice(u,c)}return o},o.copy=function(){return $n(t.copy(),e,r,n)},Zn(o,t)}t.scale.linear=function(){return Gn([0,1],[0,1],xr,!1)},t.scale.log=function(){return $n(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Jn={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Kn(t,e,r){var n=Qn(e),i=Qn(1/e);function a(e){return t(n(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(n)),a):r},a.ticks=function(t){return Xn(r,t)},a.tickFormat=function(t,e){return d3_scale_linearTickFormat(r,t,e)},a.nice=function(t){return a.domain(Wn(r,t))},a.exponent=function(o){return arguments.length?(n=Qn(e=o),i=Qn(1/e),t.domain(r.map(n)),a):e},a.copy=function(){return Kn(t.copy(),e,r)},Zn(a,t)}function Qn(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ti(e,r){var n,i,a;function o(t){return i[((n.get(t)||("range"===r.t?n.set(t,e.push(t)):NaN))-1)%i.length]}function s(r,n){return t.range(e.length).map((function(t){return r+n*t}))}return o.domain=function(t){if(!arguments.length)return e;e=[],n=new _;for(var i,a=-1,s=t.length;++a0?n[t-1]:e[0],th?0:1;if(u=At)return l(u,p)+(s?l(s,1-p):"")+"Z";var d,m,g,y,v,x,_,b,w,T,k,A,M=0,S=0,E=[];if((y=(+o.apply(this,arguments)||0)/2)&&(g=n===ci?Math.sqrt(s*s+u*u):+n.apply(this,arguments),p||(S*=-1),u&&(S=It(g/u*Math.sin(y))),s&&(M=It(g/s*Math.sin(y)))),u){v=u*Math.cos(c+S),x=u*Math.sin(c+S),_=u*Math.cos(h-S),b=u*Math.sin(h-S);var C=Math.abs(h-c-2*S)<=Tt?0:1;if(S&&gi(v,x,_,b)===p^C){var I=(c+h)/2;v=u*Math.cos(I),x=u*Math.sin(I),_=b=null}}else v=x=0;if(s){w=s*Math.cos(h-M),T=s*Math.sin(h-M),k=s*Math.cos(c+M),A=s*Math.sin(c+M);var L=Math.abs(c-h+2*M)<=Tt?0:1;if(M&&gi(w,T,k,A)===1-p^L){var P=(c+h)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=A=null}}else w=T=0;if(f>wt&&(d=Math.min(Math.abs(u-s)/2,+r.apply(this,arguments)))>.001){m=s0?0:1}function yi(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,u=-s*a,c=t[0]+l,h=t[1]+u,f=e[0]+l,p=e[1]+u,d=(c+f)/2,m=(h+p)/2,g=f-c,y=p-h,v=g*g+y*y,x=r-n,_=c*p-f*h,b=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*v-_*_)),w=(_*y-g*b)/v,T=(-_*g-y*b)/v,k=(_*y+g*b)/v,A=(-_*g+y*b)/v,M=w-d,S=T-m,E=k-d,C=A-m;return M*M+S*S>E*E+C*C&&(w=k,T=A),[[w-l,T-u],[w*r/x,T*r/x]]}function vi(){return!0}function xi(t){var e=we,r=Te,n=vi,i=bi,a=i.key,o=.7;function s(a){var s,l=[],u=[],c=-1,h=a.length,f=ce(e),p=ce(r);function d(){l.push("M",i(t(u),o))}for(;++c1&&i.push("H",n[0]),i.join("")},"step-before":Ti,"step-after":ki,basis:Si,"basis-open":function(t){if(t.length<4)return bi(t);for(var e,r=[],n=-1,i=t.length,a=[0],o=[0];++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);for(r.push(Ei(Li,a)+","+Ei(Li,o)),--n;++n9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n);for(s=-1;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function bi(t){return t.length>1?t.join("L"):t+"Z"}function wi(t){return t.join("L")+"Z"}function Ti(t){for(var e=0,r=t.length,n=t[0],i=[n[0],",",n[1]];++e1){s=e[1],a=t[l],l++,n+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var u=2;uTt)+",1 "+e}function l(t,e,r,n){return"Q 0,0 "+n}return a.radius=function(t){return arguments.length?(r=ce(t),a):r},a.source=function(e){return arguments.length?(t=ce(e),a):t},a.target=function(t){return arguments.length?(e=ce(t),a):e},a.startAngle=function(t){return arguments.length?(n=ce(t),a):n},a.endAngle=function(t){return arguments.length?(i=ce(t),a):i},a},t.svg.diagonal=function(){var t=Ri,e=Fi,r=Ni;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(r))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return n.source=function(e){return arguments.length?(t=ce(e),n):t},n.target=function(t){return arguments.length?(e=ce(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=Ni,n=e.projection;return e.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Mt;return[r*Math.cos(n),r*Math.sin(n)]}}(r=t)):r},e},t.svg.symbol=function(){var t=Ui,e=ji;function r(r,n){return(qi.get(t.call(this,r,n))||Vi)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ce(e),r):t},r.size=function(t){return arguments.length?(e=ce(t),r):e},r};var qi=t.map({circle:Vi,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Gi)),r=e*Gi;return"M0,"+-e+"L"+r+",0 0,"+e+" "+-r+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Hi),r=e*Hi/2;return"M0,"+r+"L"+e+","+-r+" "+-e+","+-r+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Hi),r=e*Hi/2;return"M0,"+-r+"L"+e+","+r+" "+-e+","+r+"Z"}});t.svg.symbolTypes=qi.keys();var Hi=Math.sqrt(3),Gi=Math.tan(30*St);G.transition=function(t){for(var e,r,n=Xi||++Ki,i=ea(t),a=[],o=$i||{time:Date.now(),ease:Er,delay:0,duration:250},s=-1,l=this.length;++s0;)u[--f].call(t,o);if(a>=1)return h.event&&h.event.end.call(t,t.__data__,e),--c.count?delete c[n]:delete t[r],1}h||(a=i.time,o=ve((function(t){var e=h.delay;if(o.t=e+a,e<=t)return f(t-e);o.c=f}),0,a),h=c[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++c.count)}Ji.call=G.call,Ji.empty=G.empty,Ji.node=G.node,Ji.size=G.size,t.transition=function(e,r){return e&&e.transition?Xi?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=Ji,Ji.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=Z(t);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",s[1]-s[0])}function m(t){t.select(".extent").attr("y",l[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function g(){var h,g,y=this,v=t.select(t.event.target),x=n.of(y,arguments),_=t.select(y),b=v.datum(),w=!/^(n|s)$/.test(b)&&i,T=!/^(e|w)$/.test(b)&&a,k=v.classed("extent"),A=vt(y),M=t.mouse(y),S=t.select(o(y)).on("keydown.brush",(function(){32==t.event.keyCode&&(k||(h=null,M[0]-=s[1],M[1]-=l[1],k=2),R())})).on("keyup.brush",(function(){32==t.event.keyCode&&2==k&&(M[0]+=s[1],M[1]+=l[1],k=0,R())}));if(t.event.changedTouches?S.on("touchmove.brush",I).on("touchend.brush",P):S.on("mousemove.brush",I).on("mouseup.brush",P),_.interrupt().selectAll("*").interrupt(),k)M[0]=s[0]-M[0],M[1]=l[0]-M[1];else if(b){var E=+/w$/.test(b),C=+/^n/.test(b);g=[s[1-E]-M[0],l[1-C]-M[1]],M[0]=s[E],M[1]=l[C]}else t.event.altKey&&(h=M.slice());function I(){var e=t.mouse(y),r=!1;g&&(e[0]+=g[0],e[1]+=g[1]),k||(t.event.altKey?(h||(h=[(s[0]+s[1])/2,(l[0]+l[1])/2]),M[0]=s[+(e[0]{var r,n;r=t,n=function(t){var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;i(t,-1),!e(t););else for(;--r>=0;)for(;i(t,1),!e(t););}))},a&&(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,h=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*o)}),(function(t,e){return(e-t)/o}),(function(t){return t.getUTCSeconds()})),f=h.range,p=n((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*o)}),(function(t,e){t.setTime(+t+e*s)}),(function(t,e){return(e-t)/s}),(function(t){return t.getMinutes()})),d=p.range,m=n((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*o-t.getMinutes()*s)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()})),g=m.range,y=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/u}),(function(t){return t.getDate()-1})),v=y.range;function x(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/c}))}var _=x(0),b=x(1),w=x(2),T=x(3),k=x(4),A=x(5),M=x(6),S=_.range,E=b.range,C=w.range,I=T.range,L=k.range,P=A.range,z=M.range,O=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),D=O.range,R=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));R.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var F=R.range,B=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*s)}),(function(t,e){return(e-t)/s}),(function(t){return t.getUTCMinutes()})),N=B.range,j=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()})),U=j.range,V=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCDate()-1})),q=V.range;function H(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/c}))}var G=H(0),Z=H(1),W=H(2),Y=H(3),X=H(4),$=H(5),J=H(6),K=G.range,Q=Z.range,tt=W.range,et=Y.range,rt=X.range,nt=$.range,it=J.range,at=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),ot=at.range,st=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));st.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var lt=st.range;t.timeDay=y,t.timeDays=v,t.timeFriday=A,t.timeFridays=P,t.timeHour=m,t.timeHours=g,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=p,t.timeMinutes=d,t.timeMonday=b,t.timeMondays=E,t.timeMonth=O,t.timeMonths=D,t.timeSaturday=M,t.timeSaturdays=z,t.timeSecond=h,t.timeSeconds=f,t.timeSunday=_,t.timeSundays=S,t.timeThursday=k,t.timeThursdays=L,t.timeTuesday=w,t.timeTuesdays=C,t.timeWednesday=T,t.timeWednesdays=I,t.timeWeek=_,t.timeWeeks=S,t.timeYear=R,t.timeYears=F,t.utcDay=V,t.utcDays=q,t.utcFriday=$,t.utcFridays=nt,t.utcHour=j,t.utcHours=U,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=B,t.utcMinutes=N,t.utcMonday=Z,t.utcMondays=Q,t.utcMonth=at,t.utcMonths=ot,t.utcSaturday=J,t.utcSaturdays=it,t.utcSecond=h,t.utcSeconds=f,t.utcSunday=G,t.utcSundays=K,t.utcThursday=X,t.utcThursdays=rt,t.utcTuesday=W,t.utcTuesdays=tt,t.utcWednesday=Y,t.utcWednesdays=et,t.utcWeek=G,t.utcWeeks=K,t.utcYear=st,t.utcYears=lt,Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r=r||self).d3=r.d3||{})})),_=f(((t,e)=>{var r,n;r=t,n=function(t,e){function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,u=t.periods,c=t.days,h=t.shortDays,f=t.months,vt=t.shortMonths,xt=p(u),_t=d(u),bt=p(c),wt=d(c),Tt=p(h),kt=d(h),At=p(f),Mt=d(f),St=p(vt),Et=d(vt),Ct={a:function(t){return h[t.getDay()]},A:function(t){return c[t.getDay()]},b:function(t){return vt[t.getMonth()]},B:function(t){return f[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return u[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gt,s:yt,S:q,u:H,U:G,V:Z,w:W,W:Y,x:null,X:null,y:X,Y:$,Z:J,"%":mt},It={a:function(t){return h[t.getUTCDay()]},A:function(t){return c[t.getUTCDay()]},b:function(t){return vt[t.getUTCMonth()]},B:function(t){return f[t.getUTCMonth()]},c:null,d:K,e:K,f:nt,H:Q,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return u[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gt,s:yt,S:ot,u:st,U:lt,V:ut,w:ct,W:ht,x:null,X:null,y:ft,Y:pt,Z:dt,"%":mt},Lt={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=bt.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=At.exec(e.slice(r));return n?(t.m=Mt[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:A,e:A,f:L,H:S,I:S,j:M,L:I,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=_t[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:g,U:y,V:v,w:m,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:b,Y:_,Z:w,"%":P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,u=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++l53)return null;"w"in u||(u.w=1),"Z"in u?(l=(s=n(i(u.y,0,1))).getUTCDay(),s=l>4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(u.V-1)),u.y=s.getUTCFullYear(),u.m=s.getUTCMonth(),u.d=s.getUTCDate()+(u.w+6)%7):(l=(s=r(i(u.y,0,1))).getDay(),s=l>4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(u.V-1)),u.y=s.getFullYear(),u.m=s.getMonth(),u.d=s.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),l="Z"in u?n(i(u.y,0,1)).getUTCDay():r(i(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(l+5)%7:u.w+7*u.U-(l+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,n(u)):r(u)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,u=r.length;o=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Lt[i in s?e.charAt(o++):i])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),It.x=Pt(o,It),It.X=Pt(l,It),It.c=Pt(a,It),{format:function(t){var e=Pt(t+="",Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+="",It);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+="",!0);return e.toString=function(){return t},e}}}var o,s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,c=/[\\^$*+?|[\]().{}]/g;function h(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=u.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return h(t.getDate(),e,2)}function R(t,e){return h(t.getHours(),e,2)}function F(t,e){return h(t.getHours()%12||12,e,2)}function B(t,r){return h(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return h(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+"000"}function U(t,e){return h(t.getMonth()+1,e,2)}function V(t,e){return h(t.getMinutes(),e,2)}function q(t,e){return h(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return h(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Z(t,r){var n=t.getDay();return t=n>=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),h(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function Y(t,r){return h(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function X(t,e){return h(t.getFullYear()%100,e,2)}function $(t,e){return h(t.getFullYear()%1e4,e,4)}function J(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+h(e/60|0,"0",2)+h(e%60,"0",2)}function K(t,e){return h(t.getUTCDate(),e,2)}function Q(t,e){return h(t.getUTCHours(),e,2)}function tt(t,e){return h(t.getUTCHours()%12||12,e,2)}function et(t,r){return h(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return h(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+"000"}function it(t,e){return h(t.getUTCMonth()+1,e,2)}function at(t,e){return h(t.getUTCMinutes(),e,2)}function ot(t,e){return h(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return h(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ut(t,r){var n=t.getUTCDay();return t=n>=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),h(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ct(t){return t.getUTCDay()}function ht(t,r){return h(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ft(t,e){return h(t.getUTCFullYear()%100,e,2)}function pt(t,e){return h(t.getUTCFullYear()%1e4,e,4)}function dt(){return"+0000"}function mt(){return"%"}function gt(t){return+t}function yt(t){return Math.floor(+t/1e3)}function vt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}vt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var xt="%Y-%m-%dT%H:%M:%S.%LZ",_t=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(xt),bt=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(xt);t.isoFormat=_t,t.isoParse=bt,t.timeFormatDefaultLocale=vt,t.timeFormatLocale=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof t&&void 0!==e?n(t,x()):n((r=r||self).d3=r.d3||{},r.d3)})),b=f(((t,e)=>{var r,n;r=t,n=function(t){function e(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function r(t){return(t=e(Math.abs(t)))?t[1]:NaN}var n,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(e=i.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function s(t,r){var n=e(t,r);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,r){var i=e(t,r);if(!i)return t+"";var a=i[0],o=i[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=a.length;return s===l?a:s>l?a+new Array(s-l+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+e(t,Math.max(0,r+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function u(t){return t}var c,h=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(t){var e=void 0===t.grouping||void 0===t.thousands?u:function(t,e){return function(r,n){for(var i=r.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}(h.call(t.grouping,Number),t.thousands+""),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?u:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(h.call(t.numerals,String)),p=void 0===t.percent?"%":t.percent+"",d=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function g(t){var r=(t=a(t)).fill,u=t.align,h=t.sign,g=t.symbol,y=t.zero,v=t.width,x=t.comma,_=t.precision,b=t.trim,w=t.type;"n"===w?(x=!0,w="g"):l[w]||(void 0===_&&(_=12),b=!0,w="g"),(y||"0"===r&&"="===u)&&(y=!0,r="0",u="=");var T="$"===g?i:"#"===g&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===g?o:/[%p]/.test(w)?p:"",A=l[w],M=/[defgprs%]/.test(w);function S(t){var i,a,o,l=T,p=k;if("c"===w)p=A(t)+p,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:A(Math.abs(t),_),b&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==h&&(g=!1),l=(g?"("===h?h:d:"-"===h||"("===h?"":h)+l,p=("s"===w?f[8+n/3]:"")+p+(g&&"("===h?")":""),M)for(i=-1,a=t.length;++i(o=t.charCodeAt(i))||o>57){p=(46===o?s+t.slice(i+1):t.slice(i))+p,t=t.slice(0,i);break}}x&&!y&&(t=e(t,1/0));var S=l.length+t.length+p.length,E=S>1)+l+t+p+E.slice(S);break;default:t=E+l+t+p}return c(t)}return _=void 0===_?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),S.toString=function(){return t+""},S}return{format:g,formatPrefix:function(t,e){var n=g(((t=a(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),s=f[8+i/3];return function(t){return n(o*t)+s}}}}function d(e){return c=p(e),t.format=c.format,t.formatPrefix=c.formatPrefix,c}d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),t.FormatSpecifier=o,t.formatDefaultLocale=d,t.formatLocale=p,t.formatSpecifier=a,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r="undefined"!=typeof globalThis?globalThis:r||self).d3=r.d3||{})})),w=f(((t,e)=>{e.exports=function(t){for(var e,r=t.length,n=0;n13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}})),T=f(((t,e)=>{var r=w();e.exports=function(t){var e=typeof t;if("string"===e){var n=t;if(0==(t=+t)&&r(n))return!1}else if("number"!==e)return!1;return t-t<1}})),k=f(((t,e)=>{e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}})),A=f(((t,e)=>{var r,n;r=t,n=function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[e.charCodeAt(n)]=n;t.decode=function(t){var e,n,i,a,o,s=.75*t.length,l=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c=new ArrayBuffer(s),h=new Uint8Array(c);for(e=0;e>4,h[u++]=(15&i)<<4|a>>2,h[u++]=(3&a)<<6|63&o;return c},t.encode=function(t){var r,n=new Uint8Array(t),i=n.length,a="";for(r=0;r>2],a+=e[(3&n[r])<<4|n[r+1]>>4],a+=e[(15&n[r+1])<<2|n[r+2]>>6],a+=e[63&n[r+2]];return i%3==2?a=a.substring(0,a.length-1)+"=":i%3==1&&(a=a.substring(0,a.length-2)+"=="),a},Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r="undefined"!=typeof globalThis?globalThis:r||self)["base64-arraybuffer"]={})})),M=f(((t,e)=>{e.exports=function(t){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(t):"[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}})),S=f((t=>{var e=A().decode,r=M(),n=Array.isArray,i=ArrayBuffer,a=DataView;function o(t){return i.isView(t)&&!(t instanceof a)}function s(t){return n(t)||o(t)}t.isTypedArray=o,t.isArrayOrTypedArray=s,t.isArray1D=function(t){return!s(t[0])},t.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t};var l={u1c:"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,i1:"undefined"==typeof Int8Array?void 0:Int8Array,u1:"undefined"==typeof Uint8Array?void 0:Uint8Array,i2:"undefined"==typeof Int16Array?void 0:Int16Array,u2:"undefined"==typeof Uint16Array?void 0:Uint16Array,i4:"undefined"==typeof Int32Array?void 0:Int32Array,u4:"undefined"==typeof Uint32Array?void 0:Uint32Array,f4:"undefined"==typeof Float32Array?void 0:Float32Array,f8:"undefined"==typeof Float64Array?void 0:Float64Array};function u(t){return t.constructor===ArrayBuffer}function c(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i{var r=T(),n=S().isArrayOrTypedArray;function i(t,e){return function(r){var a,o,s,l,u,c=t;for(l=0;l{var r=E(),n=/^\w*$/;e.exports=function(t,e,i,a){i=i||"name",a=a||"value";var o,s,l,u={};e&&e.length?(l=r(t,e),s=l.get()):s=t,e=e||"";var c={};if(s)for(o=0;o2)return u[e]=2|u[e],f.set(t,null);if(h){for(o=e;o{var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,n=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var i=t.match(r);if(i)t=i[1];else{if(!t.match(n))throw new Error("bad relativeAttr call:"+[t,e]);t=""}if("^"!==e.charAt(0))break;e=e.slice(1)}return t&&"["!==e.charAt(0)?t+"."+e:t+e}})),L=f(((t,e)=>{var r=T();e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(e[0],e[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),n}})),P=f(((t,e)=>{var r=S().isArrayOrTypedArray,n=M();e.exports=function t(e,i){for(var a in i){var o=i[a],s=e[a];if(s!==o)if("_"===a.charAt(0)||"function"==typeof o){if(a in e)continue;e[a]=o}else if(r(o)&&r(s)&&n(o[0])){if("customdata"===a||"ids"===a)continue;for(var l=Math.min(o.length,s.length),u=0;u{e.exports={mod:function(t,e){var r=t%e;return r<0?r+e:r},modHalf:function(t,e){return Math.abs(t)>e/2?t-Math.round(t/e)*e:t}}})),O=f(((t,e)=>{!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function u(e,l){if(l=l||{},(e=e||"")instanceof u)return e;if(!(this instanceof u))return new u(e,l);var c=function(e){var i={r:0,g:0,b:0},a=1,l=null,u=null,c=null,h=!1,f=!1;return"string"==typeof e&&(e=function(t){t=t.replace(r,"").replace(n,"").toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=j.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=j.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=j.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=j.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=j.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=j.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=j.hex8.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?"name":"hex8"}:(e=j.hex6.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?"name":"hex"}:(e=j.hex4.exec(t))?{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:i?"name":"hex8"}:!!(e=j.hex3.exec(t))&&{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:i?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(i=function(t,e,r){return{r:255*I(t,255),g:255*I(e,255),b:255*I(r,255)}}(e.r,e.g,e.b),h=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(l=O(e.s),u=O(e.v),i=function(e,r,n){e=6*I(e,360),r=I(r,100),n=I(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),u=i%6;return{r:255*[n,s,o,o,l,n][u],g:255*[l,n,n,s,o,o][u],b:255*[o,o,l,n,n,s][u]}}(e.h,l,u),h=!0,f="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(l=O(e.s),c=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=I(t,360),e=I(e,100),r=I(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,c),h=!0,f="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=C(a),{ok:h,format:e.format||f,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a}}(e);this._originalInput=e,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=a(100*this._a)/100,this._format=l.format||c.format,this._gradientType=l.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=c.ok,this._tc_id=i++}function c(t,e,r){t=I(t,255),e=I(e,255),r=I(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),u=(a+l)/2;if(a==l)n=i=0;else{var c=a-l;switch(i=u>.5?c/(2-a-l):c/(a+l),a){case t:n=(e-r)/c+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(u(n));return a}function M(t,e){e=e||6;for(var r=u(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(u({h:n,s:i,v:a})),a=(a+s)%1;return o}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*I(this._r,255))+"%",g:a(100*I(this._g,255))+"%",b:a(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*I(this._r,255))+"%, "+a(100*I(this._g,255))+"%, "+a(100*I(this._b,255))+"%)":"rgba("+a(100*I(this._r,255))+"%, "+a(100*I(this._g,255))+"%, "+a(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);r="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},u.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:O(t[n]));t=r}return u(t,e)},u.equals=function(t,e){return!(!t||!e)&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:l(),g:l(),b:l()})},u.mix=function(t,e,r){r=0===r?0:r||50;var n=u(t).toRgb(),i=u(e).toRgb(),a=r/100;return u({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},u.readability=function(e,r){var n=u(e),i=u(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(t,e,r){var n,i,a=u.readability(t,e);switch(i=!1,n=function(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}(r),n.level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},u.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var c=0;cl&&(l=n,s=u(e[c]));return u.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,u.mostReadable(t,["#fff","#000"],r))};var S=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=u.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(e,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(e)&&(e="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(e);return e=o(r,s(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function L(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?"0"+t:""+t}function O(t){return t<=1&&(t=100*t+"%"),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",N="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}void 0!==e&&e.exports?e.exports=u:window.tinycolor=u}(Math)})),D=f((t=>{var e=M(),r=Array.isArray;function n(t,i,a,o){var s,l,u,c,h,f,p,d=t[0],m=t.length;if(2===m&&r(d)&&r(t[1])&&0===d.length){if(p=function(t,e){var r,n;for(r=0;r{e.exports=function(t){var e=t.variantValues,r=t.editType,n=t.colorEditType;void 0===n&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};t.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:t.noFontVariant?void 0:{editType:r,valType:"enumerated",values:e||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:t.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:t.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:t.noFontShadow?void 0:{editType:r,valType:"string",dflt:t.autoShadowDflt?"auto":"none"},editType:r};return t.autoSize&&(a.size.dflt="auto"),t.autoColor&&(a.color.dflt="auto"),t.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,t.noFontVariant||(a.variant.arrayOk=!0),t.noFontTextcase||(a.textcase.arrayOk=!0),t.noFontLineposition||(a.lineposition.arrayOk=!0),t.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}})),F=f(((t,e)=>{e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}})),B=f(((t,e)=>{var r=F(),n=R(),i=n({editType:"none"});i.family.dflt=r.HOVERFONT,i.size.dflt=r.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:n({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}})),N=f(((t,e)=>{var r=R(),n=B().hoverlabel,i=D().extendFlat;e.exports={hoverlabel:{bgcolor:i({},n.bgcolor,{arrayOk:!0}),bordercolor:i({},n.bordercolor,{arrayOk:!0}),font:r({arrayOk:!0,editType:"none"}),align:i({},n.align,{arrayOk:!0}),namelength:i({},n.namelength,{arrayOk:!0}),editType:"none"}}})),j=f(((t,e)=>{var r=R(),n=N();e.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:r({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:n.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}})),U=f(((t,e)=>{var r=O(),n={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},i=n.RdBu;function a(t){var e=0;if(!Array.isArray(t)||t.length<2||!t[0]||!t[t.length-1]||0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var n=0;n{t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11})),q=f(((t,e)=>{var r=O(),n=T(),i=S().isTypedArray,a=e.exports={},o=V();a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function u(t){if(n(t)||"string"!=typeof t)return t;var e=t.trim();if("rgb"!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var i=r[1].trim().split(/\s*[\s,]\s*/),a="a"===e.charAt(3)&&4===i.length;if(!a&&3!==i.length)return t;for(var o=0;o=0)))return t;if(3===o)i[o]>1&&(i[o]=1);else if(i[o]>=1)return t}var s=Math.round(255*i[0])+", "+Math.round(255*i[1])+", "+Math.round(255*i[2]);return a?"rgba("+s+", "+i[3]+")":"rgb("+s+")"}a.tinyRGB=function(t){var e=t.toRgb();return"rgb("+Math.round(e.r)+", "+Math.round(e.g)+", "+Math.round(e.b)+")"},a.rgb=function(t){return a.tinyRGB(r(t))},a.opacity=function(t){return t?r(t).getAlpha():0},a.addOpacity=function(t,e){var n=r(t).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+e+")"},a.combine=function(t,e){var n=r(t).toRgb();if(1===n.a)return r(t).toRgbString();var i=r(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},a.interpolate=function(t,e,n){var i=r(t).toRgb(),a=r(e).toRgb(),o={r:n*i.r+(1-n)*a.r,g:n*i.g+(1-n)*a.g,b:n*i.b+(1-n)*a.b};return r(o).toRgbString()},a.contrast=function(t,e,n){var i=r(t);return 1!==i.getAlpha()&&(i=r(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:n?i.darken(n):s).toString()},a.stroke=function(t,e){var n=r(e);t.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(t,e){var n=r(e);t.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(t){if(t&&"object"==typeof t){var e,r,n,o,s=Object.keys(t);for(e=0;e{e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}})),G=f((t=>{t.counter=function(t,e,r,n){var i=(e||"")+(r?"":"$"),a=!1===n?"":"^";return"xy"===t?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+t+"([2-9]|[1-9][0-9]+)?"+i)}})),Z=f((t=>{var e=T(),r=O(),n=D().extendFlat,i=j(),a=U(),o=q(),s=H().DESELECTDIM,l=E(),u=G().counter,c=z().modHalf,h=S().isArrayOrTypedArray,f=S().isTypedArraySpec,p=S().decodeTypedArraySpec;function d(e,r){var n=t.valObjectMeta[r.valType];if(r.arrayOk&&h(e))return!0;if(n.validateFunction)return n.validateFunction(e,r);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(e,o,i,r),a!==i}t.valObjectMeta={data_array:{coerceFunction:function(t,e,r){e.set(h(t)?t:f(t)?p(t):r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&&(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&&(t=+t);for(var r=e.values,n=0;ni.max?r.set(n):r.set(+t)}},integer:{coerceFunction:function(t,r,n,i){-1===(i.extras||[]).indexOf(t)?(f(t)&&(t=p(t)),t%1||!e(t)||void 0!==i.min&&ti.max?r.set(n):r.set(+t)):r.set(t)}},string:{coerceFunction:function(t,e,r,n){if("string"!=typeof t){var i="number"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,n){f(t)&&(t=p(t)),r(t).isValid()?e.set(t):e.set(n)}},colorlist:{coerceFunction:function(t,e,n){Array.isArray(t)&&t.length&&t.every((function(t){return r(t).isValid()}))?e.set(t):e.set(n)}},colorscale:{coerceFunction:function(t,e,r){e.set(a.get(t,r))}},angle:{coerceFunction:function(t,r,n){f(t)&&(t=p(t)),"auto"===t?r.set("auto"):e(t)?r.set(c(+t,360)):r.set(n)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);"string"==typeof t&&i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||"string"==typeof t&&!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(-1===(n.extras||[]).indexOf(t))if("string"==typeof t){for(var i=t.split("+"),a=0;a{var r={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},n={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(r,n),e.exports={configAttributes:r,dfltConfig:n}})),Y=f(((t,e)=>{var r=v(),n=T(),i=[];e.exports=function(t,e){if(-1===i.indexOf(t)){i.push(t);var a=1e3;n(e)?a=e:"long"===e&&(a=3e3);var o=r.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(t){var n=r.select(this);n.append("button").classed("notifier-close",!0).html("×").on("click",(function(){n.transition().call(s)}));for(var i=n.append("p"),o=t.split(//g),l=0;l{var r=W().dfltConfig,n=Y(),i=e.exports={};i.log=function(){var t;if(r.logging>1){var e=["LOG:"];for(t=0;t1){var i=[];for(t=0;t"),"long")}},i.warn=function(){var t;if(r.logging>0){var e=["WARN:"];for(t=0;t0){var i=[];for(t=0;t"),"stick")}},i.error=function(){var t;if(r.logging>0){var e=["ERROR:"];for(t=0;t0){var i=[];for(t=0;t"),"stick")}}})),$=f(((t,e)=>{e.exports=function(){}})),J=f(((t,e)=>{e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n{e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),Q=f(((t,e)=>{e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}})),tt=f(((t,e)=>{e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}})),et=f(((t,e)=>{e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),rt=f(((t,e)=>{e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}})),nt=f(((t,e)=>{e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],m=e[13],g=e[14],y=e[15],v=r*s-n*o,x=r*l-i*o,_=r*u-a*o,b=n*l-i*s,w=n*u-a*s,T=i*u-a*l,k=c*m-h*d,A=c*g-f*d,M=c*y-p*d,S=h*g-f*m,E=h*y-p*m,C=f*y-p*g,I=v*C-x*E+_*S+b*M-w*A+T*k;return I?(I=1/I,t[0]=(s*C-l*E+u*S)*I,t[1]=(i*E-n*C-a*S)*I,t[2]=(m*T-g*w+y*b)*I,t[3]=(f*w-h*T-p*b)*I,t[4]=(l*M-o*C-u*A)*I,t[5]=(r*C-i*M+a*A)*I,t[6]=(g*_-d*T-y*x)*I,t[7]=(c*T-f*_+p*x)*I,t[8]=(o*E-s*M+u*k)*I,t[9]=(n*M-r*E-a*k)*I,t[10]=(d*w-m*_+y*v)*I,t[11]=(h*_-c*w-p*v)*I,t[12]=(s*A-o*S-l*k)*I,t[13]=(r*S-n*A+i*k)*I,t[14]=(m*x-d*b-g*v)*I,t[15]=(c*b-h*x+f*v)*I,t):null}})),it=f(((t,e)=>{e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],m=e[13],g=e[14],y=e[15];return t[0]=s*(f*y-p*g)-h*(l*y-u*g)+m*(l*p-u*f),t[1]=-(n*(f*y-p*g)-h*(i*y-a*g)+m*(i*p-a*f)),t[2]=n*(l*y-u*g)-s*(i*y-a*g)+m*(i*u-a*l),t[3]=-(n*(l*p-u*f)-s*(i*p-a*f)+h*(i*u-a*l)),t[4]=-(o*(f*y-p*g)-c*(l*y-u*g)+d*(l*p-u*f)),t[5]=r*(f*y-p*g)-c*(i*y-a*g)+d*(i*p-a*f),t[6]=-(r*(l*y-u*g)-o*(i*y-a*g)+d*(i*u-a*l)),t[7]=r*(l*p-u*f)-o*(i*p-a*f)+c*(i*u-a*l),t[8]=o*(h*y-p*m)-c*(s*y-u*m)+d*(s*p-u*h),t[9]=-(r*(h*y-p*m)-c*(n*y-a*m)+d*(n*p-a*h)),t[10]=r*(s*y-u*m)-o*(n*y-a*m)+d*(n*u-a*s),t[11]=-(r*(s*p-u*h)-o*(n*p-a*h)+c*(n*u-a*s)),t[12]=-(o*(h*g-f*m)-c*(s*g-l*m)+d*(s*f-l*h)),t[13]=r*(h*g-f*m)-c*(n*g-i*m)+d*(n*f-i*h),t[14]=-(r*(s*g-l*m)-o*(n*g-i*m)+d*(n*l-i*s)),t[15]=r*(s*f-l*h)-o*(n*f-i*h)+c*(n*l-i*s),t}})),at=f(((t,e)=>{e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],p=t[12],d=t[13],m=t[14],g=t[15];return(e*o-r*a)*(h*g-f*m)-(e*s-n*a)*(c*g-f*d)+(e*l-i*a)*(c*m-h*d)+(r*s-n*o)*(u*g-f*p)-(r*l-i*o)*(u*m-h*p)+(n*l-i*s)*(u*d-c*p)}})),ot=f(((t,e)=>{e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=r[0],_=r[1],b=r[2],w=r[3];return t[0]=x*n+_*s+b*h+w*m,t[1]=x*i+_*l+b*f+w*g,t[2]=x*a+_*u+b*p+w*y,t[3]=x*o+_*c+b*d+w*v,x=r[4],_=r[5],b=r[6],w=r[7],t[4]=x*n+_*s+b*h+w*m,t[5]=x*i+_*l+b*f+w*g,t[6]=x*a+_*u+b*p+w*y,t[7]=x*o+_*c+b*d+w*v,x=r[8],_=r[9],b=r[10],w=r[11],t[8]=x*n+_*s+b*h+w*m,t[9]=x*i+_*l+b*f+w*g,t[10]=x*a+_*u+b*p+w*y,t[11]=x*o+_*c+b*d+w*v,x=r[12],_=r[13],b=r[14],w=r[15],t[12]=x*n+_*s+b*h+w*m,t[13]=x*i+_*l+b*f+w*g,t[14]=x*a+_*u+b*p+w*y,t[15]=x*o+_*c+b*d+w*v,t}})),st=f(((t,e)=>{e.exports=function(t,e,r){var n,i,a,o,s,l,u,c,h,f,p,d,m=r[0],g=r[1],y=r[2];return e===t?(t[12]=e[0]*m+e[4]*g+e[8]*y+e[12],t[13]=e[1]*m+e[5]*g+e[9]*y+e[13],t[14]=e[2]*m+e[6]*g+e[10]*y+e[14],t[15]=e[3]*m+e[7]*g+e[11]*y+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=p,t[11]=d,t[12]=n*m+s*g+h*y+e[12],t[13]=i*m+l*g+f*y+e[13],t[14]=a*m+u*g+p*y+e[14],t[15]=o*m+c*g+d*y+e[15]),t}})),lt=f(((t,e)=>{e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}})),ut=f(((t,e)=>{e.exports=function(t,e,r,n){var i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S,E=n[0],C=n[1],I=n[2],L=Math.sqrt(E*E+C*C+I*I);return Math.abs(L)<1e-6?null:(E*=L=1/L,C*=L,I*=L,i=Math.sin(r),o=1-(a=Math.cos(r)),s=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5],p=e[6],d=e[7],m=e[8],g=e[9],y=e[10],v=e[11],x=E*E*o+a,_=C*E*o+I*i,b=I*E*o-C*i,w=E*C*o-I*i,T=C*C*o+a,k=I*C*o+E*i,A=E*I*o+C*i,M=C*I*o-E*i,S=I*I*o+a,t[0]=s*x+h*_+m*b,t[1]=l*x+f*_+g*b,t[2]=u*x+p*_+y*b,t[3]=c*x+d*_+v*b,t[4]=s*w+h*T+m*k,t[5]=l*w+f*T+g*k,t[6]=u*w+p*T+y*k,t[7]=c*w+d*T+v*k,t[8]=s*A+h*M+m*S,t[9]=l*A+f*M+g*S,t[10]=u*A+p*M+y*S,t[11]=c*A+d*M+v*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}})),ct=f(((t,e)=>{e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*n,t[5]=o*i+c*n,t[6]=s*i+h*n,t[7]=l*i+f*n,t[8]=u*i-a*n,t[9]=c*i-o*n,t[10]=h*i-s*n,t[11]=f*i-l*n,t}})),ht=f(((t,e)=>{e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*n,t[1]=o*i-c*n,t[2]=s*i-h*n,t[3]=l*i-f*n,t[8]=a*n+u*i,t[9]=o*n+c*i,t[10]=s*n+h*i,t[11]=l*n+f*i,t}})),ft=f(((t,e)=>{e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t}})),pt=f(((t,e)=>{e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(o*=u=1/u,s*=u,l*=u,n=Math.sin(e),a=1-(i=Math.cos(e)),t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}})),dt=f(((t,e)=>{e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,u=a+a,c=n*s,h=n*l,f=n*u,p=i*l,d=i*u,m=a*u,g=o*s,y=o*l,v=o*u;return t[0]=1-(p+m),t[1]=h+v,t[2]=f-y,t[3]=0,t[4]=h-v,t[5]=1-(c+m),t[6]=d+g,t[7]=0,t[8]=f+y,t[9]=d-g,t[10]=1-(c+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}})),mt=f(((t,e)=>{e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),gt=f(((t,e)=>{e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}})),yt=f(((t,e)=>{e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),vt=f(((t,e)=>{e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),xt=f(((t,e)=>{e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),_t=f(((t,e)=>{e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,p=i*s,d=i*l,m=a*o,g=a*s,y=a*l;return t[0]=1-h-d,t[1]=c+y,t[2]=f-g,t[3]=0,t[4]=c-y,t[5]=1-u-d,t[6]=p+m,t[7]=0,t[8]=f+g,t[9]=p-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}})),bt=f(((t,e)=>{e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t}})),wt=f(((t,e)=>{e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}})),Tt=f(((t,e)=>{e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}})),kt=f(((t,e)=>{e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*u,t[15]=1,t}})),At=f(((t,e)=>{var r=et();e.exports=function(t,e,n,i){var a,o,s,l,u,c,h,f,p,d,m=e[0],g=e[1],y=e[2],v=i[0],x=i[1],_=i[2],b=n[0],w=n[1],T=n[2];return Math.abs(m-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-T)<1e-6?r(t):(h=m-b,f=g-w,p=y-T,a=x*(p*=d=1/Math.sqrt(h*h+f*f+p*p))-_*(f*=d),o=_*(h*=d)-v*p,s=v*f-x*h,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0),l=f*s-p*o,u=p*a-h*s,c=h*o-f*a,(d=Math.sqrt(l*l+u*u+c*c))?(l*=d=1/d,u*=d,c*=d):(l=0,u=0,c=0),t[0]=a,t[1]=l,t[2]=h,t[3]=0,t[4]=o,t[5]=u,t[6]=f,t[7]=0,t[8]=s,t[9]=c,t[10]=p,t[11]=0,t[12]=-(a*m+o*g+s*y),t[13]=-(l*m+u*g+c*y),t[14]=-(h*m+f*g+p*y),t[15]=1,t)}})),Mt=f(((t,e)=>{e.exports=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}})),St=f(((t,e)=>{e.exports={create:K(),clone:Q(),copy:tt(),identity:et(),transpose:rt(),invert:nt(),adjoint:it(),determinant:at(),multiply:ot(),translate:st(),scale:lt(),rotate:ut(),rotateX:ct(),rotateY:ht(),rotateZ:ft(),fromRotation:pt(),fromRotationTranslation:dt(),fromScaling:mt(),fromTranslation:gt(),fromXRotation:yt(),fromYRotation:vt(),fromZRotation:xt(),fromQuat:_t(),frustum:bt(),perspective:wt(),perspectiveFromFieldOfView:Tt(),ortho:kt(),lookAt:At(),str:Mt()}})),Et=f((t=>{var e=St();t.init2dArray=function(t,e){for(var r=new Array(t),n=0;n{var r=v(),n=X(),i=Et(),a=St();function o(t){var e=t&&t.parentNode;e&&e.removeChild(t)}function s(t,e,r){var i="plotly.js-style-"+t,a=document.getElementById(i);if(!a||!a.matches(".no-inline-styles")){a||((a=document.createElement("style")).setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(e+"{"+r+"}",0):o.addRule?o.addRule(e,r,0):n.warn("addStyleRule failed"):n.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function l(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");return"none"===r?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(t){return+t}))}function u(t){for(var e=[];c(t);)e.push(t),t=t.parentNode,"function"==typeof ShadowRoot&&t instanceof ShadowRoot&&(t=t.host);return e}function c(t){return t&&(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if("string"==typeof t){if(null===(e=document.getElementById(t)))throw new Error("No DOM element with id '"+t+"' exists on the page.");return e}if(null==t)throw new Error("DOM element provided is null or undefined");return t},isPlotDiv:function(t){var e=r.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed("js-plotly-plot")},removeElement:o,addStyleRule:function(t,e){s("global",t,e)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(t){var e="plotly.js-style-"+t,r=document.getElementById(e);r&&o(r)},setStyleOnHover:function(t,e,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(t).forEach((function(t){t.getAttribute(l)||(t.addEventListener("mouseenter",(function(){var t=this.querySelector(r);t&&(t.style[o[0]]=o[1])})),t.addEventListener("mouseleave",(function(){var t=this.querySelector(r);t&&(e&&this.matches(e)?t.style[o[0]]=o[1]:t.style[s[0]]=s[1])})),t.setAttribute(l,!0))}))},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=l(t);if(e){var n=i.convertCssMatrix(e);r=a.multiply(r,r,n)}})),r},getElementTransformMatrix:l,getElementAndAncestors:u,equalDomRects:function(t,e){return t&&e&&t.top===e.top&&t.left===e.left&&t.right===e.right&&t.bottom===e.bottom}}})),It=f(((t,e)=>{e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}})),Lt=f(((t,e)=>{var r=D().extendFlat,n=M(),i={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},a={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},o=i.flags.slice().concat(["fullReplot"]),s=a.flags.slice().concat("layoutReplot");function l(t){for(var e={},r=0;r{t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},t.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}})),zt=f(((t,e)=>{e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}})),Ot=f((t=>{var e=zt();function r(t){var e=t.description?" "+t.description:"",r=t.keys||[];if(r.length>0){for(var n=[],i=0;i{function r(t,e){return e?e.d2l(t):t}function n(t,e){return e?e.l2d(t):t}function i(t){return t.x0shift||0}function a(t){return t.x1shift||0}function o(t){return t.y0shift||0}function s(t){return t.y1shift||0}function l(t,e){return r(t.x1,e)+a(t)-r(t.x0,e)-i(t)}function u(t,e,n){return r(t.y1,n)+s(t)-r(t.y0,n)-o(t)}e.exports={x0:function(t){return t.x0},x1:function(t){return t.x1},y0:function(t){return t.y0},y1:function(t){return t.y1},slope:function(t,e,r){return"line"!==t.type?void 0:u(t,0,r)/l(t,e)},dx:l,dy:u,width:function(t,e){return Math.abs(l(t,e))},height:function(t,e,r){return Math.abs(u(t,0,r))},length:function(t,e,r){return"line"!==t.type?void 0:Math.sqrt(Math.pow(l(t,e),2)+Math.pow(u(t,0,r),2))},xcenter:function(t,e){return n((r(t.x1,e)+a(t)+r(t.x0,e)+i(t))/2,e)},ycenter:function(t,e,i){return n((r(t.y1,i)+s(t)+r(t.y0,i)+o(t))/2,i)}}})),Rt=f(((t,e)=>{var r=Lt().overrideAll,n=j(),i=R(),a=Pt().dash,o=D().extendFlat,s=Ot().shapeTexttemplateAttrs,l=Dt();e.exports=r({newshape:{visible:o({},n.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:o({},n.legend,{}),legendgroup:o({},n.legendgroup,{}),legendgrouptitle:{text:o({},n.legendgrouptitle.text,{}),font:i({})},legendrank:o({},n.legendrank,{}),legendwidth:o({},n.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:o({},a,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:o({},n.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:s({newshape:!0},{keys:Object.keys(l)}),font:i({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")})),Ft=f(((t,e)=>{var r=Pt().dash,n=D().extendFlat;e.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:n({},r,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}})),Bt=f(((t,e)=>{e.exports=function(t){var e=t.editType;return{t:{valType:"number",dflt:0,editType:e},r:{valType:"number",dflt:0,editType:e},b:{valType:"number",dflt:0,editType:e},l:{valType:"number",dflt:0,editType:e},editType:e}}})),Nt=f(((t,e)=>{var r=R(),n=It(),i=V(),a=Rt(),o=Ft(),s=Bt(),l=D().extendFlat,u=r({editType:"calc"});u.family.dflt='"Open Sans", verdana, arial, sans-serif',u.size.dflt=12,u.color.dflt=i.defaultLine,e.exports={font:u,title:{text:{valType:"string",editType:"layoutstyle"},font:r({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:r({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:l(s({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:i.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:i.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:i.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:a.newshape,activeshape:a.activeshape,newselection:o.newselection,activeselection:o.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:l({},n.transition,{editType:"none"})}})),jt=h((()=>{})),Ut={},Vt=h((()=>{jt()})),qt=f((t=>{var e=X(),r=$(),n=J(),i=M(),a=Ct().addStyleRule,o=D(),s=j(),l=Nt(),u=o.extendFlat,c=o.extendDeepAll;function h(r){var n=r.name,i=r.categories,o=r.meta;if(t.modules[n])e.log("Type "+n+" already registered");else{t.subplotsRegistry[r.basePlotModule.name]||function(r){var n=r.name;if(t.subplotsRegistry[n])e.log("Plot type "+n+" already registered.");else for(var i in g(r),t.subplotsRegistry[n]=r,t.componentsRegistry)v(i,r.name)}(r.basePlotModule);for(var s={},l=0;l{var e,r,n=_().timeFormat,i=T(),a=X(),o=z().mod,s=k(),l=s.BADNUM,u=s.ONEDAY,c=s.ONEHOUR,h=s.ONEMIN,f=s.ONESEC,p=s.EPOCHJD,d=qt(),m=_().utcFormat,g=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,v=(new Date).getFullYear()-70;function x(t){return t&&d.componentsRegistry.calendars&&"string"==typeof t&&"gregorian"!==t}function b(t,e){return String(t+Math.pow(10,e)).substr(1)}t.dateTick0=function(e,r){var n=function(t,e){return x(t)?e?d.getComponentMethod("calendars","CANONICAL_SUNDAY")[t]:d.getComponentMethod("calendars","CANONICAL_TICK")[t]:e?"2000-01-02":"2000-01-01"}(e,!!r);if(r<2)return n;var i=t.dateTime2ms(n,e);return i+=u*(r-1),t.ms2DateTime(i,0,e)},t.dfltRange=function(t){return x(t)?d.getComponentMethod("calendars","DFLTRANGE")[t]:["2000-01-01","2001-01-01"]},t.isJSDate=function(t){return"object"==typeof t&&null!==t&&"function"==typeof t.getTime},t.dateTime2ms=function(n,i){if(t.isJSDate(n)){var a=n.getTimezoneOffset()*h,s=(n.getUTCMinutes()-n.getMinutes())*h+(n.getUTCSeconds()-n.getSeconds())*f+(n.getUTCMilliseconds()-n.getMilliseconds());if(s){var m=3*h;a=a-m/2+o(s-a+m/2,m)}return(n=Number(n)-a)>=e&&n<=r?n:l}if("string"!=typeof n&&"number"!=typeof n)return l;n=String(n);var _=x(i),b=n.charAt(0);_&&("G"===b||"g"===b)&&(n=n.substr(1),i="");var w=_&&"chinese"===i.substr(0,7),T=n.match(w?y:g);if(!T)return l;var k=T[1],A=T[3]||"1",M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(_){if(2===k.length)return l;var I;k=Number(k);try{var L=d.getComponentMethod("calendars","getCal")(i);if(w){var P="i"===A.charAt(A.length-1);A=parseInt(A,10),I=L.newDate(k,L.toMonthIndex(k,A,P),M)}else I=L.newDate(k,Number(A),M)}catch(t){return l}return I?(I.toJD()-p)*u+S*c+E*h+C*f:l}k=2===k.length?(Number(k)+2e3-v)%100+v:Number(k),A-=1;var z=new Date(Date.UTC(2e3,A,M,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==A||z.getUTCDate()!==M?l:z.getTime()+C*f},e=t.MIN_MS=t.dateTime2ms("-9999"),r=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==l};var w=90*u,A=3*c,M=5*h;function S(t,e,r,n,i){if((e||r||n||i)&&(t+=" "+b(e,2)+":"+b(r,2),(n||i)&&(t+=":"+b(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+="."+b(i,a)}return t}t.ms2DateTime=function(t,n,i){if("number"!=typeof t||!(t>=e&&t<=r))return l;n||(n=0);var a,s,g,y,v,_,b=Math.floor(10*o(t+.05,1)),T=Math.round(t-b/10);if(x(i)){var k=Math.floor(T/u)+p,E=Math.floor(o(t,u));try{a=d.getComponentMethod("calendars","getCal")(i).fromJD(k).formatDate("yyyy-mm-dd")}catch(t){a=m("G%Y-%m-%d")(new Date(T))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;s=n=e+u&&t<=r-u))return l;var i=Math.floor(10*o(t+.05,1)),a=new Date(Math.round(t-i/10));return S(n("%Y-%m-%d")(a),a.getHours(),a.getMinutes(),a.getSeconds(),10*a.getUTCMilliseconds()+i)},t.cleanDate=function(e,r,n){if(e===l)return r;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(x(n))return a.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==r)return r}else if(!t.isDateTime(e,n))return a.error("unrecognized date",e),r;return e};var E=/%\d?f/g,C=/%h/g,I={1:"1",2:"1",3:"2",4:"2"};function L(t,e,r,n){t=t.replace(E,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(e+.05));if(t=t.replace(C,(function(){return I[r("%q")(i)]})),x(n))try{t=d.getComponentMethod("calendars","worldCalFmt")(t,e,n)}catch(t){return"Invalid"}return r(t)(i)}var P=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(t,e,r,n,a,s){if(a=x(a)&&a,!e)if("y"===r)e=s.year;else if("m"===r)e=s.month;else{if("d"!==r)return function(t,e){var r=o(t+.05,u),n=b(Math.floor(r/c),2)+":"+b(o(Math.floor(r/h),60),2);if("M"!==e){i(e)||(e=0);var a=(100+Math.min(o(t/f,60),P[e])).toFixed(e).substr(1);e>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(t,r)+"\n"+L(s.dayMonthYear,t,n,a);e=s.dayMonth+"\n"+s.year}return L(e,t,n,a)};var O=3*u;t.incrementMonth=function(t,e,r){r=x(r)&&r;var n=o(t,u);if(t=Math.round(t-n),r)try{var i=Math.round(t/u)+p,s=d.getComponentMethod("calendars","getCal")(r),l=s.fromJD(i);return e%12?s.add(l,e,"m"):s.add(l,e/12,"y"),(l.toJD()-p)*u+n}catch(e){a.error("invalid ms "+t+" in calendar "+r)}var c=new Date(t+O);return c.setUTCMonth(c.getUTCMonth()+e)+n-O},t.findExactDates=function(t,e){for(var r,n,a=0,o=0,s=0,l=0,c=x(e)&&d.getComponentMethod("calendars","getCal")(e),h=0;h{e.exports=function(t){return t}})),Zt=f((t=>{var e=T(),r=X(),n=Gt(),i=k().BADNUM,a=1e-9;function o(t,e){return te}function u(t,e){return t>=e}t.findBin=function(t,n,i){if(e(n.start))return i?Math.ceil((t-n.start)/n.size-a)-1:Math.floor((t-n.start)/n.size+a);var c,h,f=0,p=n.length,d=0,m=p>1?(n[p-1]-n[0])/(p-1):1;for(h=m>=0?i?o:s:i?u:l,t+=m*a*(i?-1:1)*(m>=0?1:-1);f90&&r.log("Long binary search..."),f-1},t.sorterAsc=function(t,e){return t-e},t.sorterDes=function(t,e){return e-t},t.distinctVals=function(e){var r,n=e.slice();for(n.sort(t.sorterAsc),r=n.length-1;r>-1&&n[r]===i;r--);for(var a,o=n[r]-n[0]||1,s=o/(r||1)/1e4,l=[],u=0;u<=r;u++){var c=n[u],h=c-a;void 0===a?(l.push(c),a=c):h>s&&(o=Math.min(o,h),l.push(c),a=c)}return{vals:l,minDiff:o}},t.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},t.findIndexOfMin=function(t,e){e=e||n;for(var r,i=1/0,a=0;a{e.exports=function(t){return Object.keys(t).sort()}})),Yt=f((t=>{var e=T(),r=S().isArrayOrTypedArray;t.aggNums=function(n,i,a,o){var s,l;if((!o||o>a.length)&&(o=a.length),e(i)||(i=!1),r(a[0])){for(l=new Array(o),s=0;st.length-1)return t[t.length-1];var n=r%1;return n*t[Math.ceil(r)]+(1-n)*t[Math.floor(r)]}})),Xt=f(((t,e)=>{var r=z(),n=r.mod,i=r.modHalf,a=Math.PI,o=2*a;function s(t){return Math.abs(t[1]-t[0])>o-1e-14}function l(t,e){return i(e-t,o)}function u(t,e){if(s(e))return!0;var r,i;e[0](i=n(i,o))&&(i+=o);var a=n(t,o),l=a+o;return a>=r&&a<=i||l>=r&&l<=i}function c(t,e,r,n,i,l,u){i=i||0,l=l||0;var c,h,f,p,d,m=s([r,n]);function g(t,e){return[t*Math.cos(e)+i,l-t*Math.sin(e)]}m?(c=0,h=a,f=o):r=i&&t<=a);var i,a},pathArc:function(t,e,r,n,i){return c(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return c(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return c(t,e,r,n,i,a,1)}}})),$t=f((t=>{t.isLeftAnchor=function(t){return"left"===t.xanchor||"auto"===t.xanchor&&t.x<=1/3},t.isCenterAnchor=function(t){return"center"===t.xanchor||"auto"===t.xanchor&&t.x>1/3&&t.x<2/3},t.isRightAnchor=function(t){return"right"===t.xanchor||"auto"===t.xanchor&&t.x>=2/3},t.isTopAnchor=function(t){return"top"===t.yanchor||"auto"===t.yanchor&&t.y>=2/3},t.isMiddleAnchor=function(t){return"middle"===t.yanchor||"auto"===t.yanchor&&t.y>1/3&&t.y<2/3},t.isBottomAnchor=function(t){return"bottom"===t.yanchor||"auto"===t.yanchor&&t.y<=1/3}})),Jt=f((t=>{var e,r,n,i=z().mod;function a(t,e,r,n,i,a,o,s){var l=r-t,u=i-t,c=o-i,h=n-e,f=a-e,p=s-a,d=l*p-c*h;if(0===d)return null;var m=(u*p-c*f)/d,g=(u*h-l*f)/d;return g<0||g>1||m<0||m>1?null:{x:t+l*m,y:e+h*m}}function o(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}t.segmentsIntersect=a,t.segmentDistance=function(t,e,r,n,i,s,l,u){if(a(t,e,r,n,i,s,l,u))return 0;var c=r-t,h=n-e,f=l-i,p=u-s,d=c*c+h*h,m=f*f+p*p,g=Math.min(o(c,h,d,i-t,s-e),o(c,h,d,l-t,u-e),o(f,p,m,t-i,e-s),o(f,p,m,r-i,n-s));return Math.sqrt(g)},t.getTextLocation=function(t,a,o,s){if((t!==r||s!==n)&&(e={},r=t,n=s),e[o])return e[o];var l=t.getPointAtLength(i(o-s/2,a)),u=t.getPointAtLength(i(o+s/2,a)),c=Math.atan((u.y-l.y)/(u.x-l.x)),h=t.getPointAtLength(i(o,a)),f={x:(4*h.x+l.x+u.x)/6,y:(4*h.y+l.y+u.y)/6,theta:c};return e[o]=f,f},t.clearLocationCache=function(){r=null},t.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,u=0,c=t.getTotalLength(),h=c;function f(e){var r=t.getPointAtLength(e);0===e?n=r:e===c&&(i=r);var u=r.xo?r.x-o:0,h=r.yl?r.y-l:0;return Math.sqrt(u*u+h*h)}for(var p=f(u);p;){if((u+=p+r)>h)return;p=f(u)}for(p=f(h);p;){if(u>(h-=p+r))return;p=f(h)}return{min:u,max:h,len:h-u,total:c,isClosed:0===u&&h===c&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},t.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,u=n.iterationLimit||30,c=t.getPointAtLength(0)[r]>t.getPointAtLength(s)[r]?-1:1,h=0,f=0,p=s;h0?p=i:f=i,h++}return a}})),Kt=f((t=>{var e={};function r(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}t.throttle=function(t,n,i){var a=e[t],o=Date.now();if(!a){for(var s in e)e[s].tsa.ts+n?l():a.timer=setTimeout((function(){l(),a.timer=null}),n)},t.done=function(t){var r=e[t];return r&&r.timer?new Promise((function(t){var e=r.onDone;r.onDone=function(){e&&e(),t(),r.onDone=null}})):Promise.resolve()},t.clear=function(n){if(n)r(e[n]),delete e[n];else for(var i in e)t.clear(i)}})),Qt=f(((t,e)=>{e.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}})),te=f(((t,e)=>{e.exports=a,e.exports.isMobile=a,e.exports.default=a;var r=/(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,n=/CrOS/,i=/android|ipad|playbook|silk/i;function a(t){t||(t={});let e=t.ua;if(!e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!=typeof e)return!1;let a=r.test(e)&&!n.test(e)||!!t.tablet&&i.test(e);return!a&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(a=!0),a}})),ee=f(((t,e)=>{var r=T(),n=te();e.exports=function(t){var e,i;if(t&&t.hasOwnProperty("userAgent")?e=t.userAgent:("undefined"!=typeof navigator&&(i=navigator.userAgent),i&&i.headers&&"string"==typeof i.headers["user-agent"]&&(i=i.headers["user-agent"]),e=i),"string"!=typeof e)return!0;var a=n({ua:{headers:{"user-agent":e}},tablet:!0,featureDetect:!1});if(!a)for(var o=e.split(" "),s=1;s-1;l--){var u=o[l];if("Version/"===u.substr(0,8)){var c=u.substr(8).split(".")[0];if(r(c)&&(c=+c),c>=13)return!0}}return a}})),re=f(((t,e)=>{var r=v();e.exports=function(t,e,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each((function(t){t[0][a]=r.select(this)})),i}})),ne=f(((t,e)=>{var r=qt();e.exports=function(t,e){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=r.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return e}})),ie=f(((t,e)=>{e.exports=function(t){for(var e={},r=[],n=0,i=0;i{function r(t){return!0===t.visible}function n(t){var e=t[0].trace;return!0===e.visible&&0!==e._length}e.exports=function(t){for(var e=(s=t,Array.isArray(s)&&Array.isArray(s[0])&&s[0][0]&&s[0][0].trace?n:r),i=[],a=0;a{e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r>1?(r*t+r*e)/r:t+e,i=String(n).length;if(i>16){var a=String(e).length;if(i>=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}})),se=f(((t,e)=>{var r=T(),n=k().BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(t){return"string"==typeof t&&(t=t.replace(i,"")),r(t)?Number(t):n}})),le=f(((t,e)=>{var r=v(),n=_().utcFormat,i=b().format,a=T(),o=k(),s=o.FP_SAFE,l=-s,u=o.BADNUM,c=e.exports={};c.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:"0.f"===t?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var h={};c.warnBadFormat=function(t){var e=String(t);h[e]||(h[e]=1,c.warn('encountered bad format: "'+e+'"'))},c.noFormat=function(t){return String(t)},c.numberFormat=function(t){var e;try{e=i(c.adjustFormat(t))}catch(e){return c.warnBadFormat(t),c.noFormat}return e},c.nestedProperty=E(),c.keyedContainer=C(),c.relativeAttr=I(),c.isPlainObject=M(),c.toLogRange=L(),c.relinkPrivateKeys=P();var f=S();c.isArrayBuffer=f.isArrayBuffer,c.isTypedArray=f.isTypedArray,c.isArrayOrTypedArray=f.isArrayOrTypedArray,c.isArray1D=f.isArray1D,c.ensureArray=f.ensureArray,c.concat=f.concat,c.maxRowLength=f.maxRowLength,c.minRowLength=f.minRowLength;var p=z();c.mod=p.mod,c.modHalf=p.modHalf;var d=Z();c.valObjectMeta=d.valObjectMeta,c.coerce=d.coerce,c.coerce2=d.coerce2,c.coerceFont=d.coerceFont,c.coercePattern=d.coercePattern,c.coerceHoverinfo=d.coerceHoverinfo,c.coerceSelectionMarkerOpacity=d.coerceSelectionMarkerOpacity,c.validate=d.validate;var m=Ht();c.dateTime2ms=m.dateTime2ms,c.isDateTime=m.isDateTime,c.ms2DateTime=m.ms2DateTime,c.ms2DateTimeLocal=m.ms2DateTimeLocal,c.cleanDate=m.cleanDate,c.isJSDate=m.isJSDate,c.formatDate=m.formatDate,c.incrementMonth=m.incrementMonth,c.dateTick0=m.dateTick0,c.dfltRange=m.dfltRange,c.findExactDates=m.findExactDates,c.MIN_MS=m.MIN_MS,c.MAX_MS=m.MAX_MS;var g=Zt();c.findBin=g.findBin,c.sorterAsc=g.sorterAsc,c.sorterDes=g.sorterDes,c.distinctVals=g.distinctVals,c.roundUp=g.roundUp,c.sort=g.sort,c.findIndexOfMin=g.findIndexOfMin,c.sortObjectKeys=Wt();var y=Yt();c.aggNums=y.aggNums,c.len=y.len,c.mean=y.mean,c.geometricMean=y.geometricMean,c.median=y.median,c.midRange=y.midRange,c.variance=y.variance,c.stdev=y.stdev,c.interp=y.interp;var x=Et();c.init2dArray=x.init2dArray,c.transposeRagged=x.transposeRagged,c.dot=x.dot,c.translationMatrix=x.translationMatrix,c.rotationMatrix=x.rotationMatrix,c.rotationXYMatrix=x.rotationXYMatrix,c.apply3DTransform=x.apply3DTransform,c.apply2DTransform=x.apply2DTransform,c.apply2DTransform2=x.apply2DTransform2,c.convertCssMatrix=x.convertCssMatrix,c.inverseTransformMatrix=x.inverseTransformMatrix;var w=Xt();c.deg2rad=w.deg2rad,c.rad2deg=w.rad2deg,c.angleDelta=w.angleDelta,c.angleDist=w.angleDist,c.isFullCircle=w.isFullCircle,c.isAngleInsideSector=w.isAngleInsideSector,c.isPtInsideSector=w.isPtInsideSector,c.pathArc=w.pathArc,c.pathSector=w.pathSector,c.pathAnnulus=w.pathAnnulus;var A=$t();c.isLeftAnchor=A.isLeftAnchor,c.isCenterAnchor=A.isCenterAnchor,c.isRightAnchor=A.isRightAnchor,c.isTopAnchor=A.isTopAnchor,c.isMiddleAnchor=A.isMiddleAnchor,c.isBottomAnchor=A.isBottomAnchor;var O=Jt();c.segmentsIntersect=O.segmentsIntersect,c.segmentDistance=O.segmentDistance,c.getTextLocation=O.getTextLocation,c.clearLocationCache=O.clearLocationCache,c.getVisibleSegment=O.getVisibleSegment,c.findPointOnPath=O.findPointOnPath;var R=D();c.extendFlat=R.extendFlat,c.extendDeep=R.extendDeep,c.extendDeepAll=R.extendDeepAll,c.extendDeepNoArrays=R.extendDeepNoArrays;var F=X();c.log=F.log,c.warn=F.warn,c.error=F.error;var B=G();c.counterRegex=B.counter;var N=Kt();c.throttle=N.throttle,c.throttleDone=N.done,c.clearThrottle=N.clear;var j=Ct();function U(t){var e={};for(var r in t)for(var n=t[r],i=0;is||t=e)&&a(t)&&t>=0&&t%1==0},c.noop=$(),c.identity=Gt(),c.repeat=function(t,e){for(var r=new Array(e),n=0;nr?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(c.warn("randstr failed uniqueness"),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e="opt");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r["_"+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,u=new Array(l),c=new Array(o);for(r=0;r=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*u[n];c[r]=a}return c},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(i);return r&&r(e)},c.stripTrailingSlash=function(t){return"/"===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var tt=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return tt.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n](!0)),void 0!==i?i:""}))};var et={max:10,count:0,name:"hovertemplate"};c.hovertemplateString=function(){return ot.apply(et,arguments)};var rt={max:10,count:0,name:"texttemplate"};c.texttemplateString=function(){return ot.apply(rt,arguments)};var nt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,it={max:10,count:0,name:"texttemplate",parseMultDiv:!0};c.texttemplateStringForShapes=function(){return ot.apply(it,arguments)};var at=/^[:|\|]/;function ot(t,e,r){var i=this,a=arguments;return e||(e={}),t.replace(c.TEMPLATE_STRING_REGEX,(function(t,o,s){var l="_xother"===o||"_yother"===o,u="_xother_"===o||"_yother_"===o,h="xother_"===o||"yother_"===o,f="xother"===o||"yother"===o||l||h||u,p=o;(l||u)&&(p=p.substring(1)),(h||u)&&(p=p.substring(0,p.length-1));var d,m,g,y=null,v=null;if(i.parseMultDiv){var x=function(t){var e=t.match(nt);return e?{key:e[1],op:e[2],number:Number(e[3])}:{key:t,op:null,number:null}}(p);p=x.key,y=x.op,v=x.number}if(f){if(void 0===(d=e[p]))return""}else for(g=3;g=48&&o<=57,u=s>=48&&s<=57;if(l&&(n=10*n+o-48),u&&(i=10*i+s-48),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var st=2e9;c.seedPseudoRandom=function(){st=2e9},c.pseudoRandom=function(){var t=st;return st=(69069*st+1)%4294967296,Math.abs(st-t)<429496729?c.pseudoRandom():st/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,"htx","hovertext");if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,"tx","text");return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+"%",n=0;n1&&(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?"rotate("+l+(e?"":" "+r+" "+n)+")":"")},c.setTransormAndDisplay=function(t,e){t.attr("transform",c.getTextTransform(e)),t.style("display",e.scale?null:"none")},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n>1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},c.bigFont=function(t){return Math.round(1.2*t)};var lt=c.getFirefoxVersion(),ut=null!==lt&<<86;c.getPositionFromD3Event=function(){return ut?[r.event.layerX,r.event.layerY]:[r.event.offsetX,r.event.offsetY]}})),ue=f((()=>{var t,e,r=le(),n={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(e in n)t=e.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),r.addStyleRule(t,n[e])})),ce=f(((t,e)=>{e.exports=!0})),he=f(((t,e)=>{var r,n=ce();r="function"==typeof window.matchMedia?!window.matchMedia("(hover: none)").matches:n,e.exports=r})),fe=f(((t,e)=>{var r,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,a),n(r)}function a(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}g(t,e,a,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var i,a,o;if(l(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,function(t){console&&console.warn&&console.warn(t)}(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(void 0===l)return!1;if("function"==typeof l)i(l,this,e);else{var u=l.length,c=m(l,u);for(r=0;r=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return p(this,t,!0)},o.prototype.rawListeners=function(t){return p(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}})),pe=f(((t,e)=>{var r=fe().EventEmitter,n={init:function(t){if(t._ev instanceof r)return t;var e=new r,n=new r;return t._ev=e,t._internalEv=n,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=n.on.bind(n),t._internalOnce=n.once.bind(n),t._removeInternalListener=n.removeListener.bind(n),t._removeAllInternalListeners=n.removeAllListeners.bind(n),t.emit=function(t,r){e.emit(t,r),n.emit(t,r)},t},triggerHandler:function(t,e,r){var n=t._ev;if(n){var i=n._events[e];if(i){var a;for(i=Array.isArray(i)?i:[i],a=0;a{var r=le(),n=W().dfltConfig,i={add:function(t,e,r,i,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(i),o.redo.args.push(a)),t.undoQueue.queue.length>n.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r{e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}})),ge=f((t=>{var e=qt(),r=le(),n=j(),i=Nt(),a=me(),o=It(),s=W().configAttributes,l=Lt(),u=r.extendDeepAll,c=r.isPlainObject,h=r.isArrayOrTypedArray,f=r.nestedProperty,p=r.valObjectMeta,d="_isSubplotObj",m="_isLinkedToArray",g="_deprecated",y=[d,m,"_arrayAttrRegexps",g];function v(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(x(e[r]))r++;else if(r=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!x(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function x(t){return t===Math.round(t)&&t>=0}function _(){var t,r,n={};for(t in u(n,i),e.subplotsRegistry)if((r=e.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(r.attr))for(var a=0;a{var e=le(),r=j(),n="templateitemname",i={name:{valType:"string",editType:"none"}};function a(t){return t&&"string"==typeof t}function o(t){var r=t.length-1;return"s"!==t.charAt(r)&&e.warn("bad argument to arrayDefaultKey: "+t),t.substr(0,t.length-1)+"defaults"}i[n]={valType:"string",editType:"calc"},t.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=i.name,e[n]=i[n],e},t.traceTemplater=function(t){var n,i,a={};for(n in t)i=t[n],Array.isArray(i)&&i.length&&(a[n]=0);return{newTrace:function(o){var s={type:n=e.coerce(o,{},r,"type"),_template:null};if(n in a){i=t[n];var l=a[n]%i.length;a[n]++,s._template=i[l]}return s}}},t.newContainer=function(t,r,n){var i=t._template,a=i&&(i[r]||n&&i[n]);return e.isPlainObject(a)||(a=null),t[r]={_template:a}},t.arrayTemplater=function(t,e,r){var i=t._template,s=i&&i[o(e)],l=i&&i[e];(!Array.isArray(l)||!l.length)&&(l=[]);var u={};return{newItem:function(t){var e={name:t.name,_input:t},i=e[n]=t[n];if(!a(i))return e._template=s,e;for(var o=0;o=a&&(i._input||{})._templateitemname;s&&(o=a);var l,u=r+"["+o+"]";function c(){l={},s&&(l[u]={},l[u][n]=s)}function h(t,r){s?e.nestedProperty(l[u],t).set(r):l[u+"."+t]=r}function f(){var t=l;return c(),t}return c(),{modifyBase:function(t,e){l[t]=e},modifyItem:h,getUpdateObj:f,applyUpdate:function(r,n){r&&h(r,n);var i=f();for(var a in i)e.nestedProperty(t,a).set(i[a])}}}})),ve=f(((t,e)=>{var r=G().counter;e.exports={idRegex:{x:r("x","( domain)?"),y:r("y","( domain)?")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}})),xe=f((t=>{var e=qt(),r=ve();function n(t,e){if(e&&e.length)for(var r=0;rn?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},t.ref2id=function(t){return!!/^[xyz]/.test(t)&&t.split(" ")[0]},t.isLinked=function(t,e){return n(e,t._axisMatchGroups)||n(e,t._axisConstraintGroups)}})),_e=f(((t,e)=>{e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&&e.selectAll(".outline-controllers").remove()},clearOutline:function(t){var e=t._fullLayout._zoomlayer;e&&e.selectAll(".select-outline").remove(),t._fullLayout._outlining=!1}}})),be=f(((t,e)=>{e.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}})),we=f((t=>{var e=qt();ve().SUBPLOT_PATTERN,t.getSubplotCalcData=function(t,r,n){var i=e.subplotsRegistry[r];if(!i)return[];for(var a=i.attr,o=[],s=0;s{var e=qt(),r=le();function n(t,e,n){var i,a,o,s=!1;if("data"===e.type)i=t._fullData[null!==e.traces?e.traces[0]:0];else{if("layout"!==e.type)return!1;i=t._fullLayout}return a=r.nestedProperty(i,e.prop).get(),(o=n[e.type]=n[e.type]||{}).hasOwnProperty(e.prop)&&o[e.prop]!==a&&(s=!0),o[e.prop]=a,{changed:s,value:a}}function i(t,e){var n=[],i=e[0],a={};if("string"==typeof i)a[i]=e[1];else{if(!r.isPlainObject(i))return n;a=i}return o(a,(function(t,e,r){n.push({type:"layout",prop:t,value:r})}),"",0),n}function a(t,e){var n,i,a,s,l=[];if(i=e[0],a=e[1],n=e[2],s={},"string"==typeof i)s[i]=a;else{if(!r.isPlainObject(i))return l;s=i,void 0===n&&(n=a)}return void 0===n&&(n=null),o(s,(function(e,r,i){var a,o;if(Array.isArray(i)){o=i.slice();var s=Math.min(o.length,t.data.length);n&&(s=Math.min(s,n.length)),a=[];for(var u=0;u0?".":"")+a;r.isPlainObject(s)?o(s,e,l,i+1):e(l,a,s)}}))}t.manageCommandObserver=function(e,i,a,o){var s={},l=!0;i&&i._commandObserver&&(s=i._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var u=t.hasSimpleAPICommandBindings(e,a,s.lookupTable);if(i&&i._commandObserver){if(u)return s;if(i._commandObserver.remove)return i._commandObserver.remove(),i._commandObserver=null,s}if(u){n(e,u,s.cache),s.check=function(){if(l){var t=n(e,u,s.cache);return t.changed&&o&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(o({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:s.lookupTable[t.value]})).then(s.enable,s.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h{var r=v(),n=_().timeFormatLocale,i=b().formatLocale,a=T(),o=A(),s=qt(),l=ge(),u=ye(),c=le(),h=q(),f=k().BADNUM,p=xe(),d=_e().clearOutline,m=be(),g=It(),y=me(),x=we().getModuleCalcData,w=c.relinkPrivateKeys,M=c._,S=e.exports={};c.extendFlat(S,s),S.attributes=j(),S.attributes.type.values=S.allTypes,S.fontAttrs=R(),S.layoutAttributes=Nt();var E=Te();S.executeAPICommand=E.executeAPICommand,S.computeAPICommandBindings=E.computeAPICommandBindings,S.manageCommandObserver=E.manageCommandObserver,S.hasSimpleAPICommandBindings=E.hasSimpleAPICommandBindings,S.redrawText=function(t){return t=c.getGraphDiv(t),new Promise((function(e){setTimeout((function(){t._fullLayout&&(s.getComponentMethod("annotations","draw")(t),s.getComponentMethod("legend","draw")(t),s.getComponentMethod("colorbar","draw")(t),e(S.previousPromises(t)))}),300)}))},S.resize=function(t){t=c.getGraphDiv(t);var e,r=new Promise((function(r,n){(!t||c.isHidden(t))&&n(new Error("Resize must be passed a displayed plot div element.")),t._redrawTimer&&clearTimeout(t._redrawTimer),t._resolveResize&&(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&&t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,s.call("relayout",t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&&(delete t._resolveResize,r(t))}))}}),100)}));return e&&e(r),r},S.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},S.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,n=c.ensureSingle(e._paper,"text","js-plot-link-container",(function(t){t.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:h.defaultLine,"pointer-events":"all"}).each((function(){var t=r.select(this);t.append("tspan").classed("js-link-to-tool",!0),t.append("tspan").classed("js-link-spacer",!0),t.append("tspan").classed("js-sourcelinks",!0)}))})),i=n.node(),a={y:e._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=e.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=e._paper.attr("width")-7),n.attr(a);var o=n.select(".js-link-to-tool"),s=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");t._context.showSources&&t._context.showSources(t),t._context.showLink&&function(t,e){e.text("");var r=e.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(t._context.linkText+" »");if(t._context.sendData)r.on("click",(function(){S.sendDataToCloud(t)}));else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}(t,o),s.text(o.text()&&l.text()?" - ":"")}},S.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit("plotly_beforeexport");var n=r.select(t).append("div").attr("id","hiddenform").style("display","none"),i=n.append("form").attr({action:e+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(t,!1,"keepdata"),i.node().submit(),n.remove(),t.emit("plotly_afterexport"),!1}};var C=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],I=["year","month","dayMonth","dayMonthYear"];function L(t,e){var r=t._context.locale;r||(r="en-US");var n=!1,i={};function a(t){for(var r=!0,a=0;a1&&z.length>1){for(s.getComponentMethod("grid","sizeDefaults")(u,l),o=0;o15&&z.length>15&&0===l.shapes.length&&0===l.images.length,S.linkSubplots(f,l,h,a),S.cleanPlot(f,l,h,a);var N=!(!a._has||!a._has("cartesian")),j=!(!l._has||!l._has("cartesian"));N&&!j?a._bgLayer.remove():j&&!N&&(l._shouldCreateBgLayer=!0),a._zoomlayer&&!t._dragging&&d({_fullLayout:a}),function(t,e){var r,n=[];e.meta&&(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i0){var h=1-2*s;n=Math.round(h*n),i=Math.round(h*i)}}var f=S.layoutAttributes.width.min,p=S.layoutAttributes.height.min;n1,m=!e.height&&Math.abs(r.height-i)>1;(m||d)&&(d&&(r.width=n),m&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),S.sanitizeMargins(r)},S.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,u=e._basePlotModules,h=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&&o.includeBasePlot(t,e);for(var f in u.length||u.push(h),e._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(t,e),h.finalizeSubplots(t,e)),e._subplots)e._subplots[f].sort(c.subplotSort);for(a=0;a1&&(r.l/=y,r.r/=y)}if(p){var v=(r.t+r.b)/p;v>1&&(r.t/=v,r.b/=v)}var x=void 0!==r.xl?r.xl:r.x,_=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,w=void 0!==r.yb?r.yb:r.y;d[e]={l:{val:x,size:r.l+g},r:{val:_,size:r.r+g},b:{val:w,size:r.b+g},t:{val:b,size:r.t+g}},m[e]=1}else delete d[e],delete m[e];if(!n._replotting)return S.doAutoMargin(t)}},S.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),O(e);var i=e._size,o=e.margin,l={t:0,b:0,l:0,r:0},u=c.extendFlat({},i),h=o.l,f=o.r,d=o.t,m=o.b,g=e._pushmargin,y=e._pushmarginIds,v=e.minreducedwidth,x=e.minreducedheight;if(!1!==o.autoexpand){for(var _ in g)y[_]||delete g[_];var b=t._fullLayout._reservedMargin;for(var w in b)for(var T in b[w]){var k=b[w][T];l[T]=Math.max(l[T],k)}for(var A in g.base={l:{val:0,size:h},r:{val:1,size:f},t:{val:1,size:d},b:{val:0,size:m}},l){var M=0;for(var E in g)"base"!==E&&a(g[E][A].size)&&(M=g[E][A].size>M?g[E][A].size:M);var C=Math.max(0,o[A]-M);l[A]=Math.max(0,l[A]-C)}for(var I in g){var L=g[I].l||{},P=g[I].b||{},z=L.val,D=L.size,R=P.val,F=P.size,B=r-l.r-l.l,N=n-l.t-l.b;for(var j in g){if(a(D)&&g[j].r){var U=g[j].r.val,V=g[j].r.size;if(U>z){var q=(D*U+(V-B)*z)/(U-z),H=(V*(1-z)+(D-B)*(1-U))/(U-z);q+H>h+f&&(h=q,f=H)}}if(a(F)&&g[j].t){var G=g[j].t.val,Z=g[j].t.size;if(G>R){var W=(F*G+(Z-N)*R)/(G-R),Y=(Z*(1-R)+(F-N)*(1-G))/(G-R);W+Y>m+d&&(m=W,d=Y)}}}}}var X=c.constrain(r-o.l-o.r,2,v),$=c.constrain(n-o.t-o.b,2,x),J=Math.max(0,r-X),K=Math.max(0,n-$);if(J){var Q=(h+f)/J;Q>1&&(h/=Q,f/=Q)}if(K){var tt=(m+d)/K;tt>1&&(m/=tt,d/=tt)}if(i.l=Math.round(h)+l.l,i.r=Math.round(f)+l.r,i.t=Math.round(d)+l.t,i.b=Math.round(m)+l.b,i.p=Math.round(o.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&&(S.didMarginChange(u,i)||function(t){if("_redrawFromAutoMarginCount"in t._fullLayout)return!1;var e=p.list(t,"",!0);for(var r in e)if(e[r].autoshift||e[r].shift)return!0;return!1}(t))){"_redrawFromAutoMarginCount"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var et=3*(1+Object.keys(y).length);if(e._redrawFromAutoMarginCount0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&t._transitionData._interruptCallbacks.push((function(){return s.call("redraw",t)})),t._transitionData._interruptCallbacks.push((function(){t.emit("plotly_transitioninterrupted",[])}));var a=0,o=0;function l(){return a++,function(){o++,!n&&o===a&&function(e){t._transitionData&&(function(t){if(t)for(;t.length;)t.shift()}(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call("redraw",t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit("plotly_transitioned",[])})).then(e))}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return(!a||!a.then)&&(a=Promise.resolve()),a.then((function(){return t}))}S.didMarginChange=function(t,e){for(var r=0;r1)return!0}return!1},S.graphJson=function(t,e,r,n,i,a){(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&S.supplyDefaults(t);var s=i?t._fullData:t.data,l=i?t._fullLayout:t.layout,u=(t._transitionData||{})._frames;function h(t,e){if("function"==typeof t)return e?"_function_":null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===["_","["].indexOf(a.charAt(0))){if("function"==typeof t[a])return void(e&&(i[a]="_function"));if("keepdata"===r){if("src"===a.substr(a.length-3))return}else if("keepstream"===r){if("string"==typeof(n=t[a+"src"])&&n.indexOf(":")>0&&!c.isPlainObject(t.stream))return}else if("keepall"!==r&&"string"==typeof(n=t[a+"src"])&&n.indexOf(":")>0)return;i[a]=h(t[a],e)}})),i}var a=Array.isArray(t),s=c.isTypedArray(t);if((a||s)&&t.dtype&&t.shape){var l=t.bdata;return h({dtype:t.dtype,shape:t.shape,bdata:c.isArrayBuffer(l)?o.encode(l):l},e)}return a?t.map((function(t){return h(t,e)})):s?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(s||[]).map((function(t){var r=h(t);return e&&delete r.fit,r}))};if(!e&&(f.layout=h(l),i)){var p=l._size;f.layout.computed={margin:{b:p.b,l:p.l,r:p.r,t:p.t}}}return u&&(f.frames=h(u)),a&&(f.config=h(t._context,!0)),"object"===n?f:JSON.stringify(f)},S.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&&n.calc&&(o=n.calc(t,r))}(!Array.isArray(o)||!o[0])&&(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(N(o,u,h),i=0;i{t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}})),Me=f(((t,e)=>{e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}})),Se=f((t=>{var e=v(),r=le(),n=r.strTranslate,i=Ae(),a=Me().LINE_SPACING,o=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(d,v,M){var S=d.text(),I=!d.attr("data-notex")&&v&&v._context.typesetMath&&"undefined"!=typeof MathJax&&S.match(o),L=e.select(d.node().parentNode);if(!L.empty()){var P=d.attr("class")?d.attr("class").split(" ")[0]:"text";return P+="-math",L.selectAll("svg."+P).remove(),L.selectAll("g."+P+"-group").remove(),d.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),I?(v&&v._promises||[]).push(new Promise((function(t){d.style("display","none");var i=parseInt(d.node().style.fontSize,10),a={fontSize:i};!function(t,n,i){var a=parseInt((MathJax.version||"").split(".")[0]);if(2===a||3===a){var o,c,h,f,p=function(){var i="math-output-"+r.randstr({},64);f=e.select("body").append("div").attr({id:i}).style({visibility:"hidden",position:"absolute","font-size":n.fontSize+"px"}).text(function(t){return t.replace(s,"\\lt ").replace(l,"\\gt ")}(t));var o=f.node();return 2===a?MathJax.Hub.Typeset(o):MathJax.typeset([o])},d=function(){var n=f.select(2===a?".MathJax_SVG":".MathJax"),o=!n.empty()&&f.select("svg").node();if(o){var s,l=o.getBoundingClientRect();s=2===a?e.select("body").select("#MathJax_SVG_glyphs"):n.select("defs"),i(n,s,l)}else r.log("There was an error in the tex syntax.",t),i();f.remove()};2===a?MathJax.Hub.Queue((function(){return c=r.extendDeepAll({},MathJax.Hub.config),h=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})}),(function(){if("SVG"!==(o=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),p,d,(function(){if("SVG"!==o)return MathJax.Hub.setRenderer(o)}),(function(){return void 0!==h&&(MathJax.Hub.processSectionDelay=h),MathJax.Hub.Config(c)})):3===a&&(c=r.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u,"svg"!==(o=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){p(),d(),"svg"!==o&&(MathJax.config.startup.output=o),MathJax.config=c})))}else r.warn("No MathJax version:",MathJax.version)}(I[2],a,(function(e,r,a){L.selectAll("svg."+P).remove(),L.selectAll("g."+P+"-group").remove();var o=e&&e.select("svg");if(!o||!o.node())return z(),void t();var s=L.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});s.node().appendChild(o.node()),r&&r.node()&&o.node().insertBefore(r.node().cloneNode(!0),o.node().firstChild);var l=a.width,u=a.height;o.attr({class:P,height:u,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=d.node().style.fill||"black",h=o.select("g");h.attr({fill:c,stroke:c});var f=h.node().getBoundingClientRect(),p=f.width,m=f.height;(p>l||m>u)&&(o.style("overflow","hidden"),p=(f=o.node().getBoundingClientRect()).width,m=f.height);var g=+d.attr("x"),y=+d.attr("y"),v=-(i||d.node().getBoundingClientRect().height)/4;if("y"===P[0])s.attr({transform:"rotate("+[-90,g,y]+")"+n(-p/2,v-m/2)});else if("l"===P[0])y=v-m/2;else if("a"===P[0]&&0!==P.indexOf("atitle"))g=0,y=v;else{var x=d.attr("text-anchor");g-=p*("middle"===x?.5:"end"===x?1:0),y=y+v-m/2}o.attr({x:g,y}),M&&M.call(d,s),t(s)}))}))):z(),d}function z(){L.empty()||(P=d.attr("class")+"-math",L.select("svg."+P).remove()),d.text("").style("white-space","pre");var n=function(t,n){n=n.replace(m," ");var o,s=!1,l=[],u=-1;function d(){u++;var r=document.createElementNS(i.svg,"tspan");e.select(r).attr({class:"line",dy:u*a+"em"}),t.appendChild(r),o=r;var n=l;if(l=[{node:r}],n.length>1)for(var s=1;s doesnt match end tag <"+t+">. Pretending it did match.",n),o=l[l.length-1].node}else r.log("Ignoring unexpected end tag .",n)}x.test(n)?d():(o=t,l=[{node:t}]);for(var I=n.split(g),L=0;L|>|>)/g,u=[["$","$"],["\\(","\\)"]],c={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},f={sub:"-0.21em",sup:"0.42em"},p="​",d=["http:","https:","mailto:","",void 0,":"],m=t.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;t.BR_TAG_ALL=//gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,b=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&E(n)}var A=/(^|;)\s*color:/;t.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&&-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:["br"],i=t.split(g),a=[],o="",s=0,l=0;l3?a.push(u.substr(0,p-3)+"..."):a.push(u.substr(0,p));break}o=""}}return a.join("")};var M={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){var r;return r="#"===e.charAt(0)?function(t){if(!(t>1114111)){var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}}("x"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):M[e],r||t}))}function C(t){var e=encodeURI(decodeURI(t)),r=document.createElement("a"),n=document.createElement("a");r.href=t,n.href=e;var i=r.protocol,a=n.protocol;return-1!==d.indexOf(i)&&-1!==d.indexOf(a)?e:""}function I(t,e,n){var i,a,o,s=n.horizontalAlign,l=n.verticalAlign||"top",u=t.node().getBoundingClientRect(),c=e.node().getBoundingClientRect();return a="bottom"===l?function(){return u.bottom-i.height}:"middle"===l?function(){return u.top+(u.height-i.height)/2}:function(){return u.top},o="right"===s?function(){return u.right-i.width}:"center"===s?function(){return u.left+(u.width-i.width)/2}:function(){return u.left},function(){i=this.node().getBoundingClientRect();var t=o()-c.left,e=a()-c.top,s=n.gd||{};if(n.gd){s._fullLayout._calcInverseTransform(s);var l=r.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+"px",left:t+"px","z-index":1e3}),this}}t.convertEntities=E,t.sanitizeHTML=function(t){t=t.replace(m," ");for(var r=document.createElement("p"),n=r,i=[],a=t.split(g),o=0;o{var r=v(),n=O(),i=T(),a=le(),o=q(),s=U().isValid,l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function c(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function p(t,e){e=e||{};for(var a=t.domain,s=t.range,l=s.length,u=new Array(l),c=0;c{var r=zt(),n=r.FORMAT_LINK,i=r.DATE_FORMAT_LINK;function a(t,e){return["Sets the "+t+" formatting rule"+(e?"for `"+e+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+n+"."].join(" ")}function o(t,e){return a(t,e)+[" And for dates see: "+i+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}e.exports={axisHoverFormat:function(t,e){return{valType:"string",dflt:"",editType:"none",description:(e?a:o)("hover text",t)+["By default the values are formatted using "+(e?"generic number format":"`"+t+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:a,descriptionWithDates:o}})),Ie=f(((t,e)=>{var r=R(),n=V(),i=Pt().dash,a=D().extendFlat,o=ye().templatedArray,s=Ce().descriptionWithDates,l=k().ONEDAY,u=ve(),c=u.HOUR_PATTERN,h=u.WEEKDAY_PATTERN,f={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},p=a({},f,{values:f.values.slice().concat(["sync"])});function d(t){return{valType:"integer",min:0,dflt:t?5:0,editType:"ticks"}}var m={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},y={valType:"data_array",editType:"ticks"},v={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function x(t){var e={valType:"number",min:0,editType:"ticks"};return t||(e.dflt=5),e}function _(t){var e={valType:"number",min:0,editType:"ticks"};return t||(e.dflt=1),e}var b={valType:"color",dflt:n.defaultLine,editType:"ticks"},w={valType:"color",dflt:n.lightLine,editType:"ticks"};function T(t){var e={valType:"number",min:0,editType:"ticks"};return t||(e.dflt=1),e}var A=a({},i,{editType:"ticks"}),M={valType:"boolean",editType:"ticks"};e.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:n.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:r({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc"},rangebreaks:o("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[h,c,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:l},editType:"calc"}),tickmode:p,nticks:d(),tick0:m,dtick:g,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:y,ticktext:{valType:"data_array",editType:"ticks"},ticks:v,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:x(),tickwidth:_(),tickcolor:b,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:a({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:r({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:s("tick label")},tickformatstops:o("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:s("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:n.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:M,gridcolor:w,gridwidth:T(),griddash:A,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:n.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:n.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},minor:{tickmode:f,nticks:d("minor"),tick0:m,dtick:g,tickvals:y,ticks:v,ticklen:x("minor"),tickwidth:_("minor"),tickcolor:b,gridcolor:w,gridwidth:T("minor"),griddash:A,showgrid:M,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}})),Le=f(((t,e)=>{var r=Ie(),n=R(),i=D().extendFlat,a=Lt().overrideAll;e.exports=a({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:r.minor.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:i({},r.ticks,{dflt:""}),ticklabeloverflow:i({},r.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,ticklabelstep:r.ticklabelstep,showticklabels:r.showticklabels,labelalias:r.labelalias,tickfont:n({}),tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,minexponent:r.minexponent,showexponent:r.showexponent,title:{text:{valType:"string"},font:n({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")})),Pe=f(((t,e)=>{var r=Le(),n=G().counter,i=Wt(),a=U().scales;function o(t){return"`"+t+"`"}i(a),e.exports=function(t,e){t=t||"";var i,s=(e=e||{}).cLetter||"c",l=("onlyIfNumerical"in e&&e.onlyIfNumerical,"noScale"in e?e.noScale:"marker.line"===t),u="showScaleDflt"in e?e.showScaleDflt:"z"===s,c="string"==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,h=e.editTypeOverride||"",f=t?t+".":"";"colorAttr"in e?(i=e.colorAttr,e.colorAttr):o(f+(i={z:"z",c:"color"}[s]));var p=s+"auto",d=s+"min",m=s+"max",g=s+"mid",y=(o(f+p),o(f+d),o(f+m),{});y[d]=y[m]=void 0;var v={};v[p]=!1;var x={};return"color"===i&&(x.color={valType:"color",arrayOk:!0,editType:h||"style"},e.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},x[d]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:v},x[m]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:v},x[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},x.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==e.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(x.showscale={valType:"boolean",dflt:u,editType:"calc"},x.colorbar=r),e.noColorAxis||(x.coloraxis={valType:"subplotid",regex:n("coloraxis"),dflt:null,editType:"calc"}),x}})),ze=f(((t,e)=>{var r=D().extendFlat,n=Pe(),i=U().scales;e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc"}},coloraxis:r({_isSubplotObj:!0,editType:"calc"},n("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}})),Oe=f(((t,e)=>{var r=le();e.exports=function(t){return r.isPlainObject(t.colorbar)}})),De=f((t=>{var e=T(),r=le(),n=k(),i=n.ONEDAY,a=n.ONEWEEK;t.dtick=function(t,r){var n="log"===r,a="date"===r,o="category"===r,s=a?i:1;if(!t)return s;if(e(t))return(t=Number(t))<=0?s:o?Math.max(1,Math.round(t)):a?Math.max(.1,t):t;if("string"!=typeof t||!a&&!n)return s;var l=t.charAt(0),u=t.substr(1);return(u=e(u)?Number(u):0)<=0||!(a&&"M"===l&&u===Math.round(u)||n&&"L"===l||n&&"D"===l&&(1===u||2===u))?s:t},t.tick0=function(t,n,i,o){return"date"===n?r.cleanDate(t,r.dateTick0(i,o%a==0?1:0)):"D1"!==o&&"D2"!==o?e(t)?Number(t):0:void 0}})),Re=f(((t,e)=>{var r=De(),n=le().isArrayOrTypedArray,i=S().isTypedArraySpec,a=S().decodeTypedArraySpec;e.exports=function(t,e,o,s,l){l||(l={});var u=l.isMinor,c=u?t.minor||{}:t,h=u?e.minor:e,f=u?"minor.":"";function p(t){var e=c[t];return i(e)&&(e=a(e)),void 0!==e?e:(h._template||{})[t]}var d=p("tick0"),m=p("dtick"),g=p("tickvals"),y=o(f+"tickmode",n(g)?"array":m?"linear":"auto");if("auto"===y||"sync"===y)o(f+"nticks");else if("linear"===y){var v=h.dtick=r.dtick(m,s);h.tick0=r.tick0(d,s,e.calendar,v)}else"multicategory"!==s&&(void 0===o(f+"tickvals")?h.tickmode="auto":u||o("ticktext"))}})),Fe=f(((t,e)=>{var r=le(),n=Ie();e.exports=function(t,e,i,a){var o=a.isMinor,s=o?t.minor||{}:t,l=o?e.minor:e,u=o?n.minor:n,c=o?"minor.":"",h=r.coerce2(s,l,u,"ticklen",o?.6*(e.ticklen||5):void 0),f=r.coerce2(s,l,u,"tickwidth",o?e.tickwidth||1:void 0),p=r.coerce2(s,l,u,"tickcolor",(o?e.tickcolor:void 0)||l.color);i(c+"ticks",!o&&a.outerTicks||h||f||p?"outside":"")||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}})),Be=f(((t,e)=>{e.exports=function(t){var e=["showexponent","showtickprefix","showticksuffix"].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}})),Ne=f(((t,e)=>{var r=le(),n=ye();e.exports=function(t,e,i){var a,o,s=i.name,l=i.inclusionAttr||"visible",u=e[s],c=r.isArrayOrTypedArray(t[s])?t[s]:[],h=e[s]=[],f=n.arrayTemplater(e,s,l);for(a=0;a{var r=le(),n=q().contrast,i=Ie(),a=Be(),o=Ne();function s(t,e){function n(n,a){return r.coerce(t,e,i.tickformatstops,n,a)}n("enabled")&&(n("dtickrange"),n("value"))}e.exports=function(t,e,l,u,c){c||(c={});var h=l("labelalias");r.isPlainObject(h)||delete e.labelalias;var f=a(t);if(l("showticklabels")){c.noTicklabelshift||l("ticklabelshift"),c.noTicklabelstandoff||l("ticklabelstandoff");var p=c.font||{},d=e.color,m=-1!==(e.ticklabelposition||"").indexOf("inside")?n(c.bgColor):d&&d!==i.color.dflt?d:p.color;if(r.coerceFont(l,"tickfont",p,{overrideDflt:{color:m}}),!c.noTicklabelstep&&"multicategory"!==u&&"log"!==u&&l("ticklabelstep"),!c.noAng){var g=l("tickangle");!c.noAutotickangles&&"auto"===g&&l("autotickangles")}if("category"!==u){var y=l("tickformat");o(t,e,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),e.tickformatstops.length||delete e.tickformatstops,!c.noExp&&!y&&"date"!==u&&(l("showexponent",f),l("exponentformat"),l("minexponent"),l("separatethousands"))}}}})),Ue=f(((t,e)=>{var r=Be();e.exports=function(t,e,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=r(t);n("tickprefix")&&n("showtickprefix",s),n("ticksuffix",o)&&n("showticksuffix",s)}})),Ve=f(((t,e)=>{var r=le(),n=ye(),i=Re(),a=Fe(),o=je(),s=Ue(),l=Le();e.exports=function(t,e,u){var c=n.newContainer(e,"colorbar"),h=t.colorbar||{};function f(t,e){return r.coerce(h,c,l,t,e)}var p=u.margin||{t:0,b:0,l:0,r:0},d=u.width-p.l-p.r,m=u.height-p.t-p.b,g="v"===f("orientation"),y=f("thicknessmode");f("thickness","fraction"===y?30/(g?d:m):30);var v=f("lenmode");f("len","fraction"===v?1:g?m:d);var x,_,b,w="paper"===f("yref"),T="paper"===f("xref"),k="left";g?(b="middle",k=T?"left":"right",x=T?1.02:1,_=.5):(b=w?"bottom":"top",k="center",x=.5,_=w?1.02:1),r.coerce(h,c,{x:{valType:"number",min:T?-2:0,max:T?3:1,dflt:x}},"x"),r.coerce(h,c,{y:{valType:"number",min:w?-2:0,max:w?3:1,dflt:_}},"y"),f("xanchor",k),f("xpad"),f("yanchor",b),f("ypad"),r.noneOrAll(h,c,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor");var A=r.coerce(h,c,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:g?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");f("ticklabeloverflow",-1!==A.indexOf("inside")?"hide past domain":"hide past div"),i(h,c,f,"linear");var M=u.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};-1!==A.indexOf("inside")&&(S.bgColor="black"),s(h,c,f,"linear",S),o(h,c,f,"linear",S),a(h,c,f,"linear",S),f("title.text",u._dfltTitle.colorbar);var E=c.showticklabels?c.tickfont:M,C=r.extendFlat({},M,{family:E.family,size:r.bigFont(E.size)});r.coerceFont(f,"title.font",C),f("title.side",g?"top":"right")}})),qe=f(((t,e)=>{var r=T(),n=le(),i=Oe(),a=Ve(),o=U().isValid,s=qt().traceIs;function l(t,e){var r=e.slice(0,e.length-1);return e?n.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,u,c,h,f){var p=f.prefix,d=f.cLetter,m="_module"in u,g=l(e,p),y=l(u,p),v=l(u._template||{},p)||{},x=function(){return delete e.coloraxis,delete u.coloraxis,t(e,u,c,h,f)};if(m){var _=c._colorAxes||{},b=h(p+"coloraxis");if(b){var w=s(u,"contour")&&n.nestedProperty(u,"contours.coloring").get()||"heatmap",T=_[b];return void(T?(T[2].push(x),T[0]!==w&&(T[0]=!1,n.warn(["Ignoring coloraxis:",b,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[b]=[w,u,[x]])}}var k=g[d+"min"],A=g[d+"max"],M=r(k)&&r(A)&&k{var r=le(),n=ye(),i=ze(),a=qe();e.exports=function(t,e){function o(n,a){return r.coerce(t,e,i,n,a)}o("colorscale.sequential"),o("colorscale.sequentialminus"),o("colorscale.diverging");var s,l,u=e._colorAxes;function c(t,e){return r.coerce(s,l,i.coloraxis,t,e)}for(var h in u){var f=u[h];if(f[0])s=t[h]||{},(l=n.newContainer(e,h,"coloraxis"))._name=h,a(s,l,e,c,{prefix:"",cLetter:"c"});else{for(var p=0;p{var r=le(),n=Ee().hasColorscale,i=Ee().extractOpts;e.exports=function(t,e){function a(t,e){var r=t["_"+e];void 0!==r&&(t[e]=r)}function o(t,n){var o=n.container?r.nestedProperty(t,n.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=i(o),l=s.auto;(l||void 0===s.min)&&a(o,n.min),(l||void 0===s.max)&&a(o,n.max),s.autocolorscale&&a(o,"colorscale")}}for(var s=0;s{var r=T(),n=le(),i=Ee().extractOpts;e.exports=function(t,e,a){var o,s=t._fullLayout,l=a.vals,u=a.containerStr,c=u?n.nestedProperty(e,u).get():e,h=i(c),f=!1!==h.auto,p=h.min,d=h.max,m=h.mid,g=function(){return n.aggNums(Math.min,null,l)},y=function(){return n.aggNums(Math.max,null,l)};void 0===p?p=g():f&&(p=c._colorAx&&r(p)?Math.min(p,g()):g()),void 0===d?d=y():f&&(d=c._colorAx&&r(d)?Math.max(d,y()):y()),f&&void 0!==m&&(d-m>m-p?p=m-(d-m):d-m=0?s.colorscale.sequential:s.colorscale.sequentialminus,h._sync("colorscale",o))}})),We=f(((t,e)=>{var r=U(),n=Ee();e.exports={moduleType:"component",name:"colorscale",attributes:Pe(),layoutAttributes:ze(),supplyLayoutDefaults:He(),handleDefaults:qe(),crossTraceDefaults:Ge(),calc:Ze(),scales:r.scales,defaultScale:r.defaultScale,getScale:r.get,isValidScale:r.isValid,hasColorscale:n.hasColorscale,extractOpts:n.extractOpts,extractScale:n.extractScale,flipScale:n.flipScale,makeColorScaleFunc:n.makeColorScaleFunc,makeColorScaleFuncFromTrace:n.makeColorScaleFuncFromTrace}})),Ye=f(((t,e)=>{var r=le(),n=S().isTypedArraySpec;e.exports={hasLines:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf("lines")},hasMarkers:function(t){return t.visible&&(t.mode&&-1!==t.mode.indexOf("markers")||"splom"===t.type)},hasText:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf("text")},isBubble:function(t){var e=t.marker;return r.isPlainObject(e)&&(r.isArrayOrTypedArray(e.size)||n(e.size))}}})),Xe=f(((t,e)=>{var r=T();e.exports=function(t,e){e||(e=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o="area"===n.sizemode?function(t){return Math.sqrt(t/i)}:function(t){return t/i};return function(t){var n=o(t/e);return r(n)&&n>0?Math.max(n,a):0}}})),$e=f((t=>{var e=le();t.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var n=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{e.exports=function(t){var e=[];return t.replace(n,(function(t,n,a){var o=n.toLowerCase();for(a=function(t){var e=t.match(i);return e?e.map(Number):[]}(a),"m"==o&&a.length>2&&(e.push([n].concat(a.splice(0,2))),o="l",n="m"==n?"l":"L");;){if(a.length==r[o])return a.unshift(n),e.push(a);if(a.length{var r,n,i,a,o=Je(),s=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},l="M0,0Z",u=Math.sqrt(2),c=Math.sqrt(3),h=Math.PI,f=Math.cos,p=Math.sin;function d(t){return null===t}function m(t,e,s){if(!(t&&t%360!=0||e))return s;if(i===t&&a===e&&r===s)return n;function l(t,r){var n=f(t),i=p(t),a=r[0],o=r[1]+(e||0);return[a*n-o*i,a*i+o*n]}i=t,a=e,r=s;for(var u=t/180*h,c=0,d=0,m=o(s),g="",y=0;y{var r=v(),n=le(),i=n.numberFormat,a=T(),o=O(),s=qt(),l=q(),u=We(),c=n.strTranslate,h=Se(),f=Ae(),p=Me().LINE_SPACING,d=H().DESELECTDIM,m=Ye(),g=Xe(),y=$e().appendArrayPointValue,x=e.exports={};function _(t){return"none"===t?void 0:t}x.font=function(t,e){var r=e.variant,n=e.style,i=e.weight,a=e.color,o=e.size,s=e.family,u=e.shadow,c=e.lineposition,f=e.textcase;s&&t.style("font-family",s),o+1&&t.style("font-size",o+"px"),a&&t.call(l.fill,a),i&&t.style("font-weight",i),n&&t.style("font-style",n),r&&t.style("font-variant",r),f&&t.style("text-transform",_(function(t){return b[t]}(f))),u&&t.style("text-shadow","auto"===u?h.makeTextShadow(l.contrast(a)):_(u)),c&&t.style("text-decoration-line",_(function(t){return t.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}(c)))};var b={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function w(t,e,r,n){var i=e.fillpattern,a=e.fillgradient,o=i&&x.getPatternAttr(i.shape,0,"");if(o){var s=x.getPatternAttr(i.bgcolor,0,null),u=x.getPatternAttr(i.fgcolor,0,null),c=i.fgopacity,h=x.getPatternAttr(i.size,0,8),f=x.getPatternAttr(i.solidity,0,.3),p=e.uid;x.pattern(t,"point",r,p,o,h,f,void 0,i.fillmode,s,u,c)}else if(a&&"none"!==a.type){var d,m,g=a.type,y="scatterfill-"+e.uid;n&&(y="legendfill-"+e.uid),n||void 0===a.start&&void 0===a.stop?("horizontal"===g&&(g+="reversed"),t.call(x.gradient,r,y,g,a.colorscale,"fill")):("horizontal"===g?(d={x:a.start,y:0},m={x:a.stop,y:0}):"vertical"===g&&(d={x:0,y:a.start},m={x:0,y:a.stop}),d.x=e._xA.c2p(void 0===d.x?e._extremes.x.min[0].val:d.x,!0),d.y=e._yA.c2p(void 0===d.y?e._extremes.y.min[0].val:d.y,!0),m.x=e._xA.c2p(void 0===m.x?e._extremes.x.max[0].val:m.x,!0),m.y=e._yA.c2p(void 0===m.y?e._extremes.y.max[0].val:m.y,!0),t.call(C,r,y,"linear",a.colorscale,"fill",d,m,!0,!1))}else e.fillcolor&&t.call(l.fill,e.fillcolor)}x.setPosition=function(t,e,r){t.attr("x",e).attr("y",r)},x.setSize=function(t,e,r){t.attr("width",e).attr("height",r)},x.setRect=function(t,e,r,n,i){t.call(x.setPosition,e,r).call(x.setSize,n,i)},x.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),o=n.c2p(t.y);return!!(a(i)&&a(o)&&e.node())&&("text"===e.node().nodeName?e.attr("x",i).attr("y",o):e.attr("transform",c(i,o)),!0)},x.translatePoints=function(t,e,n){t.each((function(t){var i=r.select(this);x.translatePoint(t,i,e,n)}))},x.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr("display",r.isPtWithinRange(t,i)&&n.isPtWithinRange(t,a)?null:"none")},x.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var n=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,l=a.ycalendar,u=s.traceIs(a,"bar-like")?".bartext":".point,.textpoint";t.selectAll(u).each((function(t){x.hideOutsideRangePoint(t,r.select(this),n,i,o,l)}))}))}},x.crispRound=function(t,e,r){return e&&a(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},x.singleLineStyle=function(t,e,r,n,i){e.style("fill","none");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";l.stroke(e,n||a.color),x.dashLine(e,s,o)},x.lineGroupStyle=function(t,e,n,i){t.style("fill","none").each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||"";r.select(this).call(l.stroke,n||a.color).call(x.dashLine,s,o)}))},x.dashLine=function(t,e,r){r=+r||0,e=x.dashStyle(e,r),t.style({"stroke-dasharray":e,"stroke-width":r+"px"})},x.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return"solid"===t?t="":"dot"===t?t=r+"px,"+r+"px":"dash"===t?t=3*r+"px,"+3*r+"px":"longdash"===t?t=5*r+"px,"+5*r+"px":"dashdot"===t?t=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===t&&(t=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),t},x.singleFillStyle=function(t,e){var n=r.select(t.node());w(t,((n.data()[0]||[])[0]||{}).trace||{},e,!1)},x.fillGroupStyle=function(t,e,n){t.style("stroke-width",0).each((function(t){var i=r.select(this);t[0].trace&&w(i,t[0].trace,e,n)}))};var k=Ke();x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(k).forEach((function(t){var e=k[t],r=e.n;x.symbolList.push(r,String(r),t,r+100,String(r+100),t+"-open"),x.symbolNames[r]=t,x.symbolFuncs[r]=e.f,x.symbolBackOffs[r]=e.backoff||0,e.needLine&&(x.symbolNeedLines[r]=!0),e.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),t+"-dot",r+300,String(r+300),t+"-open-dot"),e.noFill&&(x.symbolNoFill[r]=!0)}));var A=x.symbolNames.length;function M(t,e,r,n){var i=t%100;return x.symbolFuncs[i](e,r,n)+(t>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(t){if(a(t))t=+t;else if("string"==typeof t){var e=0;t.indexOf("-open")>0&&(e=100,t=t.replace("-open","")),t.indexOf("-dot")>0&&(e+=200,t=t.replace("-dot","")),(t=x.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=A||t>=400?0:Math.floor(Math.max(t,0))};var S=i("~f"),E={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function C(t,e,i,a,s,u,c,h,f,p){var d,m=s.length;"linear"===a?d={node:"linearGradient",attrs:{x1:c.x,y1:c.y,x2:h.x,y2:h.y,gradientUnits:f?"userSpaceOnUse":"objectBoundingBox"},reversed:p}:"radial"===a&&(d={node:"radialGradient",reversed:p});for(var g=new Array(m),y=0;y=0&&void 0===t.i&&(t.i=o.i),e.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(t):void 0===t.mo?s.opacity:t.mo),i.ms2mrc){var c;c="various"===t.ms||"various"===s.size?3:i.ms2mrc(t.ms),t.mrc=c,i.selectedSizeFn&&(c=t.mrc=i.selectedSizeFn(t));var h=x.symbolNumber(t.mx||s.symbol)||0;t.om=h%200>=100;var f=st(t,r),p=$(t,r);e.attr("d",M(h,c,f,p))}var d,m,g,y=!1;if(t.so)g=u.outlierwidth,m=u.outliercolor,d=s.outliercolor;else{var v=(u||{}).width;g=(t.mlw+1||v+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,m="mlc"in t?t.mlcc=i.lineScale(t.mlc):n.isArrayOrTypedArray(u.color)?l.defaultLine:u.color,n.isArrayOrTypedArray(s.color)&&(d=l.defaultLine,y=!0),d="mc"in t?t.mcc=i.markerScale(t.mc):s.color||s.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(d=i.selectedColorFn(t))}if(t.om)e.call(l.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{e.style("stroke-width",(t.isBlank?0:g)+"px");var _=s.gradient,b=t.mgt;b?y=!0:b=_&&_.type,n.isArrayOrTypedArray(b)&&(b=b[0],E[b]||(b=0));var w=s.pattern,T=w&&x.getPatternAttr(w.shape,t.i,"");if(b&&"none"!==b){var k=t.mgc;k?y=!0:k=_.color;var A=r.uid;y&&(A+="-"+t.i),x.gradient(e,a,A,b,[[0,k],[1,d]],"fill")}else if(T){var S=!1,C=w.fgcolor;!C&&o&&o.color&&(C=o.color,S=!0);var I=x.getPatternAttr(C,t.i,o&&o.color||null),L=x.getPatternAttr(w.bgcolor,t.i,null),P=w.fgopacity,z=x.getPatternAttr(w.size,t.i,8),O=x.getPatternAttr(w.solidity,t.i,.3);S=S||t.mcc||n.isArrayOrTypedArray(w.shape)||n.isArrayOrTypedArray(w.bgcolor)||n.isArrayOrTypedArray(w.fgcolor)||n.isArrayOrTypedArray(w.size)||n.isArrayOrTypedArray(w.solidity);var D=r.uid;S&&(D+="-"+t.i),x.pattern(e,"point",a,D,T,z,O,t.mcc,w.fillmode,L,I,P)}else n.isArrayOrTypedArray(d)?l.fill(e,d[t.i]):l.fill(e,d);g&&l.stroke(e,m)}},x.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=x.tryColorscale(r,""),e.lineScale=x.tryColorscale(r,"line"),s.traceIs(t,"symbols")&&(e.ms2mrc=m.isBubble(t)?g(t):function(){return(r.size||6)/2}),t.selectedpoints&&n.extendFlat(e,x.makeSelectedPointStyleFns(t)),e},x.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},i=t.unselected||{},a=t.marker||{},o=r.marker||{},l=i.marker||{},u=a.opacity,c=o.opacity,h=l.opacity,f=void 0!==c,p=void 0!==h;(n.isArrayOrTypedArray(u)||f||p)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?f?c:e:p?h:d*e});var m=a.color,g=o.color,y=l.color;(g||y)&&(e.selectedColorFn=function(t){var e=t.mcc||m;return t.selected?g||e:y||e});var v=a.size,x=o.size,_=l.size,b=void 0!==x,w=void 0!==_;return s.traceIs(t,"symbols")&&(b||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||v/2;return t.selected?b?x/2:e:w?_/2:e}),e},x.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,c=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?u||e:c||(u?e:l.addOpacity(e,d))},e},x.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var n=x.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];n.selectedOpacityFn&&a.push((function(t,e){t.style("opacity",n.selectedOpacityFn(e))})),n.selectedColorFn&&a.push((function(t,e){l.fill(t,n.selectedColorFn(e))})),n.selectedSizeFn&&a.push((function(t,r){var a=r.mx||i.symbol||0,o=n.selectedSizeFn(r);t.attr("d",M(x.symbolNumber(a),o,st(r,e),$(r,e))),r.mrc2=o})),a.length&&t.each((function(t){for(var e=r.select(this),n=0;n0?r:0}function R(t,e,r){return r&&(t=V(t)),e?B(t[1]):F(t[0])}function F(t){var e=r.round(t,2);return I=e,e}function B(t){var e=r.round(t,2);return L=e,e}function N(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),u=Math.pow(o*o+s*s,.25),c=(u*u*i-l*l*o)*n,h=(u*u*a-l*l*s)*n,f=3*u*(l+u),p=3*l*(l+u);return[[F(e[0]+(f&&c/f)),B(e[1]+(f&&h/f))],[F(e[0]-(p&&c/p)),B(e[1]-(p&&h/p))]]}x.textPointStyle=function(t,e,i){if(t.size()){var a;if(e.selectedpoints){var o=x.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=i._fullLayout;t.each((function(t){var o=r.select(this),u=s?n.extractOption(t,e,"txt","texttemplate"):n.extractOption(t,e,"tx","text");if(u||0===u){if(s){var c=e._module.formatLabels,f=c?c(t,e,l):{},p={};y(p,e,t.i);var d=e._meta||{};u=n.texttemplateString(u,f,l._d3locale,p,t,d)}var m=t.tp||e.textposition,g=D(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(x.font,{family:t.tf||e.textfont.family,weight:t.tw||e.textfont.weight,style:t.ty||e.textfont.style,variant:t.tv||e.textfont.variant,textcase:t.tC||e.textfont.textcase,lineposition:t.tE||e.textfont.lineposition,shadow:t.tS||e.textfont.shadow,size:g,color:v}).text(u).call(h.convertToTspans,i).call(z,m,g,t.mrc)}else o.remove()}))}},x.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var n=x.makeSelectedTextStyleFns(e);t.each((function(t){var i=r.select(this),a=n.selectedTextColorFn(t),o=t.tp||e.textposition,u=D(t,e);l.fill(i,a);var c=s.traceIs(e,"bar-like");z(i,o,u,t.mrc2||t.mrc,c)}))}},x.smoothopen=function(t,e){if(t.length<3)return"M"+t.join("L");var r,n="M"+t[0],i=[];for(r=1;r=u||w>=h&&w<=u)&&(T<=f&&T>=c||T>=f&&T<=c)&&(t=[w,T])}return t}x.steps=function(t){var e=j[t]||U;return function(t){for(var r="M"+F(t[0][0])+","+B(t[0][1]),n=t.length,i=1;i=1e4&&(x.savedBBoxes={},G=0),i&&(x.savedBBoxes[i]=g),G++,n.extendFlat({},g)},x.setClipUrl=function(t,e,r){t.attr("clip-path",W(e,r))},x.getTranslate=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+e[0]||0,y:+e[1]||0}},x.setTranslate=function(t,e,r){var n=t.attr?"attr":"getAttribute",i=t.attr?"attr":"setAttribute",a=t[n]("transform")||"";return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=c(e,r)).trim(),t[i]("transform",a),a},x.getScale=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+e[0]||1,y:+e[1]||1}},x.setScale=function(t,e,r){var n=t.attr?"attr":"getAttribute",i=t.attr?"attr":"setAttribute",a=t[n]("transform")||"";return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+="scale("+e+","+r+")").trim(),t[i]("transform",a),a};var Y=/\s*sc.*/;x.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?"":"scale("+e+","+r+")";t.each((function(){var t=(this.getAttribute("transform")||"").replace(Y,"");t=(t+=n).trim(),this.setAttribute("transform",t)}))}};var X=/translate\([^)]*\)\s*$/;function $(t,e){var r;return t&&(r=t.mf),void 0===r&&(r=e.marker&&e.marker.standoff||0),e._geo||e._xA?r:-r}x.setTextPointsScale=function(t,e,n){t&&t.each((function(){var t,i=r.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(X);t=1===e&&1===n?[]:[c(o,s),"scale("+e+","+n+")",c(-o,-s)],l&&t.push(l),i.attr("transform",t.join(""))}}))},x.getMarkerStandoff=$;var J,K,Q,tt,et,rt,nt=Math.atan2,it=Math.cos,at=Math.sin;function ot(t,e){var r=e[0],n=e[1];return[r*it(t)-n*at(t),r*at(t)+n*it(t)]}function st(t,e){var r=t.ma;void 0===r&&(!(r=e.marker.angle)||n.isArrayOrTypedArray(r))&&(r=0);var i,o,s=e.marker.angleref;if("previous"===s||"north"===s){if(e._geo){var l=e._geo.project(t.lonlat);i=l[0],o=l[1]}else{var u=e._xA,c=e._yA;if(!u||!c)return 90;i=u.c2p(t.x),o=c.c2p(t.y)}if(e._geo){var h,f=t.lonlat[0],p=t.lonlat[1],d=e._geo.project([f,p+1e-5]),m=e._geo.project([f+1e-5,p]),g=nt(m[1]-o,m[0]-i),y=nt(d[1]-o,d[0]-i);if("north"===s)h=r/180*Math.PI;else if("previous"===s){var v=f/180*Math.PI,x=p/180*Math.PI,_=J/180*Math.PI,b=K/180*Math.PI,w=_-v,T=it(b)*at(w),k=at(b)*it(x)-it(b)*at(x)*it(w);h=-nt(T,k)-Math.PI,J=f,K=p}var A=ot(g,[it(h),0]),M=ot(y,[at(h),0]);r=nt(A[1]+M[1],A[0]+M[0])/Math.PI*180,"previous"===s&&(rt!==e.uid||t.i!==et+1)&&(r=null)}if("previous"===s&&!e._geo)if(rt===e.uid&&t.i===et+1&&a(i)&&a(o)){var S=i-Q,E=o-tt,C=e.line&&e.line.shape||"",I=C.slice(C.length-1);"h"===I&&(E=0),"v"===I&&(S=0),r+=nt(E,S)/Math.PI*180+90}else r=null}return Q=i,tt=o,et=t.i,rt=e.uid,r}x.getMarkerAngle=st})),tr=f(((t,e)=>{var r=v(),n=T(),i=ke(),a=qt(),o=le(),s=o.strTranslate,l=Qe(),u=q(),c=Se(),h=H(),f=Me().OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(t,e,d){var m,g=t._fullLayout,y=d.propContainer,v=d.propName,x=d.placeholder,_=d.traceIndex,b=d.avoid||{},w=d.attributes,T=d.transform,k=d.containerGroup,A=1,M=y.title,S=(M&&M.text?M.text:"").trim(),E=!1,C=M&&M.font?M.font:{},I=C.family,L=C.size,P=C.color,z=C.weight,O=C.style,D=C.variant,R=C.textcase,F=C.lineposition,B=C.shadow,N=!!d.subtitlePropName,j=d.subtitlePlaceholder,U=(y.title||{}).subtitle||{text:"",font:{}},V=U.text.trim(),q=!1,H=1,G=U.font,Z=G.family,W=G.size,Y=G.color,X=G.weight,$=G.style,J=G.variant,K=G.textcase,Q=G.lineposition,tt=G.shadow;"title.text"===v?m="titleText":-1!==v.indexOf("axis")?m="axisTitleText":v.indexOf(!0)&&(m="colorbarTitleText");var et=t._context.edits[m];function rt(t,e){return void 0!==t&&void 0!==e&&t.replace(p," % ")===e.replace(p," % ")}""===S?A=0:rt(S,x)&&(et||(S=""),A=.2,E=!0),N&&(""===V?H=0:rt(V,j)&&(et||(V=""),H=.2,q=!0)),d._meta?S=o.templateString(S,d._meta):g._meta&&(S=o.templateString(S,g._meta));var nt,it=S||V||et;k||(k=o.ensureSingle(g._infolayer,"g","g-"+e),nt=g._hColorbarMoveTitle);var at=k.selectAll("text."+e).data(it?[0]:[]);at.enter().append("text"),at.text(S).attr("class",e),at.exit().remove();var ot=null,st=e+"-subtitle",lt=V||et;if(N&<&&((ot=k.selectAll("text."+st).data(lt?[0]:[])).enter().append("text"),ot.text(V).attr("class",st),ot.exit().remove()),!it)return k;function ut(t,e){o.syncOrAsync([ct,ht],{title:t,subtitle:e})}function ct(n){var a,h=n.title,f=n.subtitle;if(!T&&nt&&(T={}),T?(a="",T.rotate&&(a+="rotate("+[T.rotate,w.x,w.y]+")"),(T.offset||nt)&&(a+=s(0,(T.offset||0)-(nt||0)))):a=null,h.attr("transform",a),h.style("opacity",A*u.opacity(P)).call(l.font,{color:u.rgb(P),size:r.round(L,2),family:I,weight:z,style:O,variant:D,textcase:R,shadow:B,lineposition:F}).attr(w).call(c.convertToTspans,t,(function(t){if(t){var e=r.select(t.node().parentNode).select("."+st);if(!e.empty()){var n=t.node().getBBox();if(n.height){var i=n.y+n.height+1.6*W;e.attr("y",i)}}}})),f){var p=k.select("."+e+"-math-group"),d=h.node().getBBox(),m=p.node()?p.node().getBBox():void 0,g=m?m.y+m.height+1.6*W:d.y+d.height+1.6*W,y=o.extendFlat({},w,{y:g});f.attr("transform",a),f.style("opacity",H*u.opacity(Y)).call(l.font,{color:u.rgb(Y),size:r.round(W,2),family:Z,weight:X,style:$,variant:J,textcase:K,shadow:tt,lineposition:Q}).attr(y).call(c.convertToTspans,t)}return i.previousPromises(t)}function ht(e){var i=e.title,a=r.select(i.node().parentNode);if(b&&b.selection&&b.side&&S){a.attr("transform",null);var u=f[b.side],c="left"===b.side||"top"===b.side?-1:1,h=n(b.pad)?b.pad:2,p=l.bBox(a.node()),d={t:0,b:0,l:0,r:0},m=t._fullLayout._reservedMargin;for(var v in m)for(var x in m[v]){var _=m[v][x];d[x]=Math.max(d[x],_)}var w={left:d.l,top:d.t,right:g.width-d.r,bottom:g.height-d.b},T=b.maxShift||c*(w[b.side]-p[b.side]),k=0;if(T<0)k=T;else{var A=b.offsetLeft||0,M=b.offsetTop||0;p.left-=A,p.right-=A,p.top-=M,p.bottom-=M,b.selection.each((function(){var t=l.bBox(this);o.bBoxIntersect(p,t,h)&&(k=Math.max(k,c*(t[b.side]-p[u])+h))})),k=Math.min(T,k),y._titleScoot=Math.abs(k)}if(k>0||T<0){var E={left:[-k,0],right:[k,0],top:[0,-k],bottom:[0,k]}[b.side];a.attr("transform",s(E[0],E[1]))}}}function ft(t,e){t.text(e).on("mouseover.opacity",(function(){r.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)}))}if(at.call(ut,ot),et&&(S?at.on(".opacity",null):(ft(at,x),E=!0),at.call(c.makeEditable,{gd:t}).on("edit",(function(e){void 0!==_?a.call("_guiRestyle",t,v,e,_):a.call("_guiRelayout",t,v,e)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(ut)})).on("input",(function(t){this.text(t||" ").call(c.positionText,w.x,w.y)})),N)){if(N&&!S){var pt=at.node().getBBox(),dt=pt.y+pt.height+1.6*W;ot.attr("y",dt)}V?ot.on(".opacity",null):(ft(ot,j),q=!0),ot.call(c.makeEditable,{gd:t}).on("edit",(function(e){a.call("_guiRelayout",t,"title.subtitle.text",e)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(ut)})).on("input",(function(t){this.text(t||" ").call(c.positionText,ot.attr("x"),ot.attr("y"))}))}return at.classed("js-placeholder",E),ot&&ot.classed("js-placeholder",q),k},SUBTITLE_PADDING_EM:1.6,SUBTITLE_PADDING_MATHJAX_EM:1.6}})),er=f(((t,e)=>{var r=v(),n=_().utcFormat,i=le(),a=i.numberFormat,o=T(),s=i.cleanNumber,l=i.ms2DateTime,u=i.dateTime2ms,c=i.ensureNumber,h=i.isArrayOrTypedArray,f=k(),p=f.FP_SAFE,d=f.BADNUM,m=f.LOG_CLIP,g=f.ONEWEEK,y=f.ONEDAY,x=f.ONEHOUR,b=f.ONEMIN,w=f.ONESEC,A=xe(),M=ve(),S=M.HOUR_PATTERN,E=M.WEEKDAY_PATTERN;function C(t){return Math.pow(10,t)}function I(t){return null!=t}e.exports=function(t,e){e=e||{};var f=t._id||"x",v=f.charAt(0);function _(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*m*Math.abs(n-i))}return d}function T(e,r,n,a){if((a||{}).msUTC&&o(e))return+e;var s=u(e,n||t.calendar);if(s===d){if(!o(e))return d;e=+e;var l=Math.floor(10*i.mod(e+.05,1)),c=Math.round(e-l/10);s=u(new Date(c))+l/10}return s}function k(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function P(e){if(I(e)){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push("number"==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function z(e){if(t._categoriesMap)return t._categoriesMap[e]}function O(t){var e=z(t);return void 0!==e?e:o(t)?+t:void 0}function D(t){return o(t)?+t:z(t)}function R(t,e,n){return r.round(n+e*t,2)}function F(t,e,r){return(t-r)/e}var B=function(e){return o(e)?R(e,t._m,t._b):d},N=function(e){return F(e,t._m,t._b)};if(t.rangebreaks){var j="y"===v;B=function(e){if(!o(e))return d;var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);var n=j;t.range[0]>t.range[1]&&(n=!n);for(var i=n?-1:1,a=i*e,s=0,l=0;lc)){s=a<(u+c)/2?l:l+1;break}s=l+1}var h=t._B[s]||0;return isFinite(h)?R(e,t._m2,h):0},N=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;it._rangebreaks[i].pmax&&(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l="log"===t.type?_:c,t.l2c="log"===t.type?C:c,t.l2p=B,t.p2l=N,t.c2p="log"===t.type?function(t,e){return B(_(t,e))}:B,t.p2c="log"===t.type?function(t){return C(N(t))}:N,-1!==["linear","-"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=N,t.cleanPos=c):"log"===t.type?(t.d2r=t.d2l=function(t,e){return _(s(t),e)},t.r2d=t.r2c=function(t){return C(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=c,t.c2r=_,t.l2d=C,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return C(N(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=N,t.cleanPos=c):"date"===t.type?(t.d2r=t.r2d=i.identity,t.d2c=t.r2c=t.d2l=t.r2l=T,t.c2d=t.c2r=t.l2d=t.l2r=k,t.d2p=t.r2p=function(e,r,n){return t.l2p(T(e,0,n))},t.p2d=t.p2r=function(t,e,r){return k(N(t),e,r)},t.cleanPos=function(e){return i.cleanDate(e,d,t.calendar)}):"category"===t.type?(t.d2c=t.d2l=P,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=O,t.r2c=function(e){var r=D(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=D,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return"string"==typeof t&&""!==t?t:c(t)}):"multicategory"===t.type&&(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=O,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=z,t.l2r=t.c2r=c,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return Array.isArray(t)||"string"==typeof t&&""!==t?t:c(t)},t.setupMultiCategory=function(r){var n,a,o=t._traceIndices,s=t._matchGroup;if(s&&0===t._categories.length)for(var l in s)if(l!==f){var u=e[A.id2name(l)];o=o.concat(u._traceIndices)}var c=[[0,{}],[0,{}]],p=[];for(n=0;nl[1]&&(a[s?0:1]=n),a[0]===a[1]){var u=t.l2r(r),c=t.l2r(n);if(void 0!==r){var h=u+1;void 0!==n&&(h=Math.min(h,c)),a[s?1:0]=h}if(void 0!==n){var f=c+1;void 0!==r&&(f=Math.max(f,u)),a[s?0:1]=f}}}},t.cleanRange=function(e,r){t._cleanRange(e,r),t.limitRange(e)},t._cleanRange=function(e,r){r||(r={}),e||(e="range");var n,a,s=i.nestedProperty(t,e).get();if(a=(a="date"===t.type?i.dfltRange(t.calendar):"y"===v?M.DFLTRANGEY:"realaxis"===t._name?[0,1]:r.dfltRange||M.DFLTRANGEX).slice(),("tozero"===t.rangemode||"nonnegative"===t.rangemode)&&(a[0]=0),s&&2===s.length){var l=null===s[0],u=null===s[1];for("date"===t.type&&!t.autorange&&(s[0]=i.cleanDate(s[0],d,t.calendar),s[1]=i.cleanDate(s[1],d,t.calendar)),n=0;n<2;n++)if("date"===t.type){if(!i.isDateTime(s[n],t.calendar)){t[e]=a;break}if(t.r2l(s[0])===t.r2l(s[1])){var c=i.constrain(t.r2l(s[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);s[0]=t.l2r(c-1e3),s[1]=t.l2r(c+1e3);break}}else{if(!o(s[n])){if(l||u||!o(s[1-n])){t[e]=a;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]<-p?s[n]=-p:s[n]>p&&(s[n]=p),s[0]===s[1]){var h=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=h,s[1]+=h}}}else i.nestedProperty(t,e).set(a)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=A.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&&t._r?"_r":"range",o=t.calendar;t.cleanRange(a);var s,l,u=t.r2l(t[a][0],o),c=t.r2l(t[a][1],o),h="y"===v;if(h?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks&&(t._rangebreaks=t.locateBreaks(Math.min(u,c),Math.max(u,c)),t._rangebreaks.length)){for(s=0;sc&&(f=!f),f&&t._rangebreaks.reverse();var p=f?-1:1;for(t._m2=p*t._length/(Math.abs(c-u)-t._lBreaks),t._B.push(-t._m2*(h?c:u)),s=0;sa&&(a+=7,oa&&(a+=24,o=n&&o=n&&e=s.min&&(ts.max&&(s.max=n),a=!1)}a&&u.push({min:t,max:n})}};for(n=0;n{var r=T(),n=le(),i=k().BADNUM,a=n.isArrayOrTypedArray,o=n.isDateTime,s=n.cleanNumber,l=Math.round;function u(t,e){return e?r(t):"number"==typeof t}function c(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,n){var h,f=t,p=n.noMultiCategory;if(a(f)&&!f.length)return"-";if(!p&&a((h=f)[0])&&a(h[1]))return"multicategory";if(p&&Array.isArray(f[0])){for(var d=[],m=0;m2*s}(f,e))return"date";var y="strict"!==n.autotypenumbers;return function(t,e){for(var r=t.length,n=c(r),a=0,o=0,u={},h=0;h2*a}(f,y)?"category":function(t,e){for(var r=t.length,n=0;n{var r=v(),n=T(),i=le(),a=k().FP_SAFE,o=qt(),s=Qe(),l=xe(),u=l.getFromId,c=l.isLinked;function h(t,e){var r,n,a=[],o=t._fullLayout,s=p(o,e,0),l=p(o,e,1),u=m(t,e),c=u.min,h=u.max;if(0===c.length||0===h.length)return i.simpleMap(e.range,e.r2l);var d=c[0].val,g=h[0].val;for(r=1;r0&&((k=I-s(_)-l(b))>L?A/k>P&&(w=_,T=b,P=A/k):A/I>P&&(w={val:_.val,nopad:1},T={val:b.val,nopad:1},P=A/I));if(d===g){var z=d-1,O=d+1;if(E)if(0===d)a=[0,1];else{var D=(d>0?h:c).reduce((function(t,e){return Math.max(t,l(e))}),0),R=d/(1-Math.min(.5,D/I));a=d>0?[0,R]:[R,0]}else a=C?[Math.max(0,z),Math.max(1,O)]:[z,O]}else E?(w.val>=0&&(w={val:0,nopad:1}),T.val<=0&&(T={val:0,nopad:1})):C&&(w.val-P*s(w)<0&&(w={val:0,nopad:1}),T.val<=0&&(T={val:1,nopad:1})),P=(T.val-w.val-f(e,_.val,b.val))/(I-s(w)-l(T)),a=[w.val-P*s(w),T.val+P*l(T)];return a=M(a,e),e.limitRange&&e.limitRange(),v&&a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),C=A(r.vpadminus||r.vpad);if(!T){if(f=1/0,p=-1/0,w)for(i=0;i0&&(f=o),o>p&&o-a&&(f=o),o>p&&o=P;i--)L(i);return{min:d,max:m,opts:r}},concatExtremes:m};var d=3;function m(t,e,r){var n,i,a,o=e._id,s=t._fullData,l=t._fullLayout,c=[],h=[];function f(t,e){for(n=0;n=r&&(u.extrapad||!o)){s=!1;break}i(e,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(t.splice(l,1),l--)}if(s){var c=a&&0===e;t.push({val:e,pad:c?0:r,extrapad:!c&&o})}}function _(t){return n(t)&&Math.abs(t)=e}function A(t,e,r){return void 0===e||void 0===r||(e=t.d2l(e))=u&&(o=u,r=u),s<=u&&(s=u,n=u)}}return r=function(t,e){var r=e.autorangeoptions;return r&&void 0!==r.minallowed&&A(e,r.minallowed,r.maxallowed)?r.minallowed:r&&void 0!==r.clipmin&&A(e,r.clipmin,r.clipmax)?Math.max(t,e.d2l(r.clipmin)):t}(r,e),n=function(t,e){var r=e.autorangeoptions;return r&&void 0!==r.maxallowed&&A(e,r.minallowed,r.maxallowed)?r.maxallowed:r&&void 0!==r.clipmax&&A(e,r.clipmin,r.clipmax)?Math.min(t,e.d2l(r.clipmax)):t}(n,e),[r,n]}})),ir=f(((t,e)=>{var r=v(),n=T(),i=ke(),a=qt(),o=le(),s=o.strTranslate,l=Se(),u=tr(),c=q(),h=Qe(),f=Ie(),p=De(),d=k(),m=d.ONEMAXYEAR,g=d.ONEAVGYEAR,y=d.ONEMINYEAR,x=d.ONEMAXQUARTER,_=d.ONEAVGQUARTER,b=d.ONEMINQUARTER,w=d.ONEMAXMONTH,A=d.ONEAVGMONTH,M=d.ONEMINMONTH,S=d.ONEWEEK,E=d.ONEDAY,C=E/2,I=d.ONEHOUR,L=d.ONEMIN,P=d.ONESEC,z=d.ONEMILLI,O=d.ONEMICROSEC,D=d.MINUS_SIGN,R=d.BADNUM,F={K:"zeroline"},B={K:"gridline",L:"path"},N={K:"minor-gridline",L:"path"},j={K:"tick",L:"path"},U={K:"tick",L:"text"},V={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=Me(),G=H.MID_SHIFT,Z=H.CAP_SHIFT,W=H.LINE_SPACING,Y=H.OPPOSITE_SIDE,X=e.exports={};X.setConvert=er();var $=rr(),J=xe(),K=J.idSort,Q=J.isLinked;X.id2name=J.id2name,X.name2id=J.name2id,X.cleanId=J.cleanId,X.list=J.list,X.listIds=J.listIds,X.getFromId=J.getFromId,X.getFromTrace=J.getFromTrace;var tt=nr();function et(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}X.getAutoRange=tt.getAutoRange,X.findExtremes=tt.findExtremes,X.coerceRef=function(t,e,r,n,i,a){var s=n.charAt(n.length-1),l=r._fullLayout._subplots[s+"axis"],u=n+"ref",c={};return i||(i=l[0]||("string"==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+" domain"}))),c[u]={valType:"enumerated",values:l.concat(a?"string"==typeof a?[a]:a:[]),dflt:i},o.coerce(t,e,c,u)},X.getRefType=function(t){return void 0===t?t:"paper"===t?"paper":"pixel"===t?"pixel":/( domain)$/.test(t)?"domain":"range"},X.coercePosition=function(t,e,r,n,i,a){var s,l;if("range"!==X.getRefType(n))s=o.ensureNumber,l=r(i,a);else{var u=X.getFromId(e,n);l=r(i,a=u.fraction2r(a)),s=u.cleanPos}t[i]=s(l)},X.cleanPosition=function(t,e,r){return("paper"===r||"pixel"===r?o.ensureNumber:X.getFromId(e,r).cleanPos)(t)},X.redrawComponents=function(t,e){e=e||X.listIds(t);var r=t._fullLayout;function n(n,i,o,s){for(var l=a.getComponentMethod(n,i),u={},c=0;cn&&f2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},X.saveRangeInitial=function(t,e){for(var r=X.list(t,"",!0),n=!1,i=0;i.3*f||c(i)||c(a))){var p=r.dtick/2;t+=t+p.8){var s=Number(r.substr(1));a.exactYears>.8&&s%12==0?t=X.tickIncrement(t,"M6","reverse")+1.5*E:a.exactMonths>.8?t=X.tickIncrement(t,"M1","reverse")+15.5*E:t-=C;var l=X.tickIncrement(t,r);if(l<=n)return l}return t}(v,t,y,u,a)),g=v;g<=c;)g=X.tickIncrement(g,y,!1,a);return{start:e.c2r(v,0,a),end:e.c2r(g,0,a),size:y,_dataSpan:c-u}},X.prepMinorTicks=function(t,e,r){if(!e.minor.dtick){delete t.dtick;var i,a=e.dtick&&n(e._tmin);if(a){var s=X.tickIncrement(e._tmin,e.dtick,!0);i=[e._tmin,.99*s+.01*e._tmin]}else{var l=o.simpleMap(e.range,e.r2l);i=[l[0],.8*l[0]+.2*l[1]]}if(t.range=o.simpleMap(i,e.l2r),t._isMinor=!0,X.prepTicks(t,r),a){var u=n(e.dtick),c=n(t.dtick),h=u?e.dtick:+e.dtick.substring(1),f=c?t.dtick:+t.dtick.substring(1);u&&c?at(h,f)?h===2*S&&f===2*E&&(t.dtick=S):h===2*S&&f===3*E?t.dtick=S:h!==S||(e._input.minor||{}).nticks?ot(h/f,2.5)?t.dtick=h/2:t.dtick=h:t.dtick=E:"M"===String(e.dtick).charAt(0)?c?t.dtick="M1":at(h,f)?h>=12&&2===f&&(t.dtick="M3"):t.dtick=e.dtick:"L"===String(t.dtick).charAt(0)?"L"===String(e.dtick).charAt(0)?at(h,f)||(t.dtick=ot(h/f,2.5)?e.dtick/2:e.dtick):t.dtick="D1":"D2"===t.dtick&&+e.dtick>1&&(t.dtick=1)}t.range=e.range}void 0===e.minor._tick0Init&&(t.tick0=e.tick0)},X.prepTicks=function(t,e){var r=o.simpleMap(t.range,t.r2l,void 0,void 0,e);if("auto"===t.tickmode||!t.dtick){var i,a=t.nticks;a||("category"===t.type||"multicategory"===t.type?(i=t.tickfont?o.bigFont(t.tickfont.size||12):15,a=t._length/i):(i="y"===t._id.charAt(0)?40:80,a=o.constrain(t._length/i,4,9)+1),"radialaxis"===t._name&&(a*=2)),t.minor&&"array"!==t.minor.tickmode||"array"===t.tickmode&&(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,X.autoTicks(t,t._roughDTick),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}"period"===t.ticklabelmode&&function(t){var e;function r(){return!(n(t.dtick)||"M"!==t.dtick.charAt(0))}var i=r(),a=X.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=I,o&&!i&&t.dtickt.range[1],u=!t.ticklabelindex||o.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],c=o.simpleMap(t.range,t.r2l,void 0,void 0,e),h=c[1]=(B?0:1);N--){var j=!N;N?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var U=N?t:o.extendFlat({},t,t.minor);if(j?X.prepMinorTicks(U,t,e):X.prepTicks(U,e),"array"!==U.tickmode)if("sync"!==U.tickmode){var V=et(c),q=V[0],H=V[1],G=n(U.dtick),Z="log"===r&&!(G||"L"===U.dtick.charAt(0)),W=X.tickFirst(U,e);if(N){if(t._tmin=W,W=H:K<=H;K=X.tickIncrement(K,Q,h,i)){if(N&&Y++,U.rangebreaks&&!h){if(K=p)break}if(k.length>d||K===J)break;J=K;var tt={value:K};N?(Z&&K!==(0|K)&&(tt.simpleLabel=!0),a>1&&Y%a&&(tt.skipLabel=!0),k.push(tt)):(tt.minor=!0,D.push(tt))}}else k=[],v=ut(t);else N?(k=[],v=ct(t,!j)):(D=[],T=ct(t,!j))}var rt;if(!D||D.length<2?u=!1:function(t,e){return/%f/.test(e)?t>=O:/%L/.test(e)?t>=z:/%[SX]/.test(e)?t>=P:/%M/.test(e)?t>=L:/%[HI]/.test(e)?t>=I:/%p/.test(e)?t>=C:/%[Aadejuwx]/.test(e)?t>=E:/%[UVW]/.test(e)?t>=S:/%[Bbm]/.test(e)?t>=M:/%[q]/.test(e)?t>=b:!/%[Yy]/.test(e)||t>=y}((D[1].value-D[0].value)*(l?-1:1),t.tickformat)||(u=!1),u){var nt=k.concat(D);s&&k.length&&(nt=nt.slice(1)),(nt=nt.sort((function(t,e){return t.value-e.value})).filter((function(t,e,r){return 0===e||t.value!==r[e-1].value}))).map((function(t,e){return void 0!==t.minor||t.skipLabel?null:e})).filter((function(t){return null!==t})).forEach((function(t){u.map((function(e){var r=t+e;r>=0&&r0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,u=t[o].value,c=Math.abs(u-l),h=r||c,f=0;h>=y?f=c>=y&&c<=m?c:g:r===_&&h>=b?f=c>=b&&c<=x?c:_:h>=M?f=c>=M&&c<=w?c:A:r===S&&h>=S?f=S:h>=E?f=E:r===C&&h>=C?f=C:r===I&&h>=I&&(f=I),f>=c&&(f=c,s=!0);var p=i+f;if(e.rangebreaks&&f>0){for(var d=0,v=0;v<84;v++){var T=(v+.5)/84;e.maskBreaks(i*(1-T)+T*p)!==R&&d++}(f*=d/84)||(t[n].drop=!0),s&&c>S&&(f=c)}(f>0||0===n)&&(t[n].periodX=i+f/2)}}(F,t,t._definedDelta),t.rangebreaks){var pt="y"===t._id.charAt(0),dt=1;"auto"===t.tickmode&&(dt=t.tickfont?t.tickfont.size:12);var mt=NaN;for(rt=k.length-1;rt>-1;rt--)if(k[rt].drop)k.splice(rt,1);else{k[rt].value=Nt(k[rt].value,t);var gt=t.c2p(k[rt].value);(pt?mt>gt-dt:mtp||np&&(r.periodX=p),n10||"01-01"!==i.substr(5)?t._tickround="d":t._tickround=+e.substr(1)%12==0?"y":"m";else if(e>=E&&a<=10||e>=15*E)t._tickround="d";else if(e>=L&&a<=16||e>=I)t._tickround="M";else if(e>=P&&a<=19||e>=L)t._tickround="S";else{var o=t.l2r(r+e).replace(/^-/,"").length;t._tickround=Math.max(a,o)-20,t._tickround<0&&(t._tickround=4)}}else if(n(e)||"L"===e.charAt(0)){var s=t.range.map(t.r2d||Number);n(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),c=void 0===t.minexponent?3:t.minexponent;Math.abs(u)>c&&(wt(t.exponentformat)&&!Tt(u)?t._tickexponent=3*Math.round((u-1)/3):t._tickexponent=u)}else t._tickround=null}function _t(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontWeight:n.weight,fontStyle:n.style,fontVariant:n.variant,fontTextcase:n.textcase,fontLineposition:n.lineposition,fontShadow:n.shadow,fontColor:n.color}}X.autoTicks=function(t,e,r){var i;function a(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if("date"===t.type){t.tick0=o.dateTick0(t.calendar,0);var s=2*e;if(s>g)e/=g,i=a(10),t.dtick="M"+12*vt(e,i,ht);else if(s>A)e/=A,t.dtick="M"+vt(e,1,ft);else if(s>E){if(t.dtick=vt(e,E,t._hasDayOfWeekBreaks?[1,2,7,14]:dt),!r){var l=X.getTickFormat(t),u="period"===t.ticklabelmode;u&&(t._rawTick0=t.tick0),/%[uVW]/.test(l)?t.tick0=o.dateTick0(t.calendar,2):t.tick0=o.dateTick0(t.calendar,1),u&&(t._dowTick0=t.tick0)}}else s>I?t.dtick=vt(e,I,ft):s>L?t.dtick=vt(e,L,pt):s>P?t.dtick=vt(e,P,pt):(i=a(10),t.dtick=vt(e,i,ht))}else if("log"===t.type){t.tick0=0;var c=o.simpleMap(t.range,t.r2l);if(t._isMinor&&(e*=1.5),e>.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])<1){var h=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/h,i=a(10),t.dtick="L"+vt(e,i,ht)}else t.dtick=e>.3?"D2":"D1"}else"category"===t.type||"multicategory"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):Bt(t)?(t.tick0=0,i=1,t.dtick=vt(e,i,yt)):(t.tick0=0,i=a(10),t.dtick=vt(e,i,ht));if(0===t.dtick&&(t.dtick=1),!n(t.dtick)&&"string"!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,"ax.dtick error: "+String(f)}},X.tickIncrement=function(t,e,i,a){var s=i?-1:1;if(n(e))return o.increment(t,s*e);var l=e.charAt(0),u=s*Number(e.substr(1));if("M"===l)return o.incrementMonth(t,u,a);if("L"===l)return Math.log(Math.pow(10,t)+u)/Math.LN10;if("D"===l){var c="D2"===e?gt:mt,h=t+.01*s,f=o.roundUp(o.mod(h,1),c,i);return Math.floor(h)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(e)},X.tickFirst=function(t,e){var i=t.r2l||Number,a=o.simpleMap(t.range,i,void 0,void 0,e),s=a[1]=0&&r<=t._length?e:null};if(l&&o.isArrayOrTypedArray(t.ticktext)){var p=o.simpleMap(t.range,t.r2l),d=(Math.abs(p[1]-p[0])-(t._lBreaks||0))/1e4;for(a=0;a ")}else t._prevDateHead=l,u+="
"+l;e.text=u}(t,s,r,u):"log"===c?function(t,e,r,i,a){var s=t.dtick,l=e.x,u=t.tickformat,c="string"==typeof s&&s.charAt(0);if("never"===a&&(a=""),i&&"L"!==c&&(s="L3",c="L"),u||"L"===c)e.text=kt(Math.pow(10,l),t,a,i);else if(n(s)||"D"===c&&o.mod(l+.01,1)<.1){var h=Math.round(l),f=Math.abs(h),p=t.exponentformat;"power"===p||wt(p)&&Tt(h)?(e.text=0===h?1:1===h?"10":"10"+(h>1?"":D)+f+"",e.fontSize*=1.25):("e"===p||"E"===p)&&f>2?e.text="1"+p+(h>0?"+":D)+f:(e.text=kt(Math.pow(10,l),t,"","fakehover"),"D1"===s&&"y"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if("D"!==c)throw"unrecognized dtick "+String(s);e.text=String(Math.round(Math.pow(10,o.mod(l,1)))),e.fontSize*=.75}if("D1"===t.dtick){var d=String(e.text).charAt(0);("0"===d||"1"===d)&&("y"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}(t,s,0,u,g):"category"===c?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=""),e.text=String(r)}(t,s):"multicategory"===c?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);r?e.text=o+" - "+a:(e.text=a,e.text2=o)}(t,s,r):Bt(t)?function(t,e,r,n,i){if("radians"!==t.thetaunit||r)e.text=kt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text="0";else{var s=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(s[1]>=100)e.text=kt(o.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===s[1]?1===s[0]?e.text="π":e.text=s[0]+"π":e.text=["",s[0],"","⁄","",s[1],"","π"].join(""),l&&(e.text=D+e.text)}}}}(t,s,r,u,g):function(t,e,r,n,i){"never"===i?i="":"all"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i="hide"),e.text=kt(e.x,t,i,n)}(t,s,0,u,g),i||(t.tickprefix&&!m(t.showtickprefix)&&(s.text=t.tickprefix+s.text),t.ticksuffix&&!m(t.showticksuffix)&&(s.text+=t.ticksuffix)),t.labelalias&&t.labelalias.hasOwnProperty(s.text)){var y=t.labelalias[s.text];"string"==typeof y&&(s.text=y)}return("boundaries"===t.tickson||t.showdividers)&&(s.xbnd=[f(s.x-.5),f(s.x+t.dtick-.5)]),s},X.hoverLabelText=function(t,e,r){r&&(t=o.extendFlat({},t,{hoverformat:r}));var n=o.isArrayOrTypedArray(e)?e[0]:e,i=o.isArrayOrTypedArray(e)?e[1]:void 0;if(void 0!==i&&i!==n)return X.hoverLabelText(t,n,r)+" - "+X.hoverLabelText(t,i,r);var a="log"===t.type&&n<=0,s=X.tickText(t,t.c2l(a?-n:n),"hover").text;return a?0===n?"0":D+s:s};var bt=["f","p","n","μ","m","","k","M","G","T"];function wt(t){return"SI"===t||"B"===t}function Tt(t){return t>14||t<-15}function kt(t,e,r,i){var a=t<0,s=e._tickround,l=r||e.exponentformat||"B",u=e._tickexponent,c=X.getTickFormat(e),h=e.separatethousands;if(i){var f={exponentformat:l,minexponent:e.minexponent,dtick:"none"===e.showexponent?e.dtick:n(t)&&Math.abs(t)||1,range:"none"===e.showexponent?e.range.map(e.r2d):[0,t||1]};xt(f),s=(Number(f._tickround)||0)+4,u=f._tickexponent,e.hoverformat&&(c=e.hoverformat)}if(c)return e._numFormat(c)(t).replace(/-/g,D);var p,d=Math.pow(10,-s)/2;if("none"===l&&(u=0),(t=Math.abs(t))"+p+"":"B"===l&&9===u?t+="B":wt(l)&&(t+=bt[u/3+5])),a?D+t:t}function At(t,e){if(t){var r=Object.keys(V).reduce((function(t,r){return-1!==e.indexOf(r)&&V[r].forEach((function(e){t[e]=1})),t}),{});Object.keys(t).forEach((function(e){r[e]||(1===e.length?t[e]=0:delete t[e])}))}}function Mt(t,e){for(var r=[],n={},i=0;i1&&r=i.min&&t=0,a=c(t,e[1])<=0;return(r||i)&&(n||a)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case"date":case"linear":for(e=0;e=o(i)))){r=n;break}break;case"log":for(e=0;e=0&&i.unshift(i.splice(n,1).shift())}}));var s={false:{left:0,right:0}};return o.syncOrAsync(i.map((function(e){return function(){if(e){var n=X.getFromId(t,e);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=a;var i=X.drawOne(t,n,r);return n._shiftPusher&&Vt(n,n._fullDepth||0,s,!0),n._r=n.range.slice(),n._rl=o.simpleMap(n._r,n.r2l),i}}})))},X.drawOne=function(t,e,r){var n,s,f,p=(r=r||{}).axShifts||{},d=r.overlayingShiftedAx||[];e.setScale();var m=t._fullLayout,g=e._id,y=g.charAt(0),v=X.counterLetter(g),x=m._plots[e._mainSubplot];if(x){if(e._shiftPusher=e.autoshift||-1!==d.indexOf(e._id)||-1!==d.indexOf(e.overlaying),e._shiftPusher&"free"===e.anchor){var _=e.linewidth/2||0;"inside"===e.ticks&&(_+=e.ticklen),Vt(e,_,p,!0),Vt(e,e.shift||0,p,!1)}(!0!==r.skipTitle||void 0===e._shift)&&(e._shift=function(t,e){return t.autoshift?e[t.overlaying][t.side]:t.shift||0}(e,p));var b=x[y+"axislayer"],w=e._mainLinePosition,T=w+=e._shift,k=e._mainMirrorPosition,A=e._vals=X.calcTicks(e),M=[e.mirror,T,k].join("_");for(n=0;n0?r.bottom-c:0,h))));var f=0,p=0;if(e._shiftPusher&&(f=Math.max(h,r.height>0?"l"===l?c-r.left:r.right-c:0),e.title.text!==m._dfltTitle[y]&&(p=(e._titleStandoff||0)+(e._titleScoot||0),"l"===l&&(p+=Ct(e))),e._fullDepth=Math.max(f,p)),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var d=[0,1],g="number"==typeof e._shift?e._shift:0;if("x"===y){if("b"===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width>0?c-r.top:0,h),d.reverse()),r.width>0){var x=r.right-(e._offset+e._length);x>0&&(n.xr=1,n.r=x);var _=e._offset-r.left;_>0&&(n.xl=0,n.l=_)}}else if("l"===l?(e._depth=Math.max(r.height>0?c-r.left:0,h),n[l]=e._depth-g):(e._depth=Math.max(r.height>0?r.right-c:0,h),n[l]=e._depth+g,d.reverse()),r.height>0){var b=r.bottom-(e._offset+e._length);b>0&&(n.yb=0,n.b=b);var w=e._offset-r.top;w>0&&(n.yt=1,n.t=w)}n[v]="free"===e.anchor?e.position:e._anchorAxis.domain[d[0]],e.title.text!==m._dfltTitle[y]&&(n[l]+=Ct(e)+(e.title.standoff||0)),e.mirror&&"free"!==e.anchor&&((o={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&&!0!==e.mirror&&(o[u]+=h),!0===e.mirror||"ticks"===e.mirror?o[v]=e._anchorAxis.domain[d[1]]:("all"===e.mirror||"allticks"===e.mirror)&&(o[v]=[e._counterDomainMin,e._counterDomainMax][d[1]]))}ht&&(s=a.getComponentMethod("rangeslider","autoMarginOpts")(t,e)),"string"==typeof e.automargin&&(At(n,e.automargin),At(o,e.automargin)),i.autoMargin(t,Pt(e),n),i.autoMargin(t,zt(e),o),i.autoMargin(t,Ot(e),s)})),o.syncOrAsync(ut)}}function ft(t){var r=g+(t||"tick");return S[r]||(S[r]=function(t,e,r){var n,i,a,o;if(t._selections[e].size())n=1/0,i=-1/0,a=1/0,o=-1/0,t._selections[e].each((function(){var t=Lt(this),e=h.bBox(t.node().parentNode);n=Math.min(n,e.top),i=Math.max(i,e.bottom),a=Math.min(a,e.left),o=Math.max(o,e.right)}));else{var s=X.makeLabelFns(t,r);n=i=s.yFn({dx:0,dy:0,fontSize:0}),a=o=s.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:i,left:a,right:o,height:i-n,width:o-a}}(e,r,T)),S[r]}},X.getTickSigns=function(t,e){var r=t._id.charAt(0),n={x:"top",y:"right"}[r],i=t.side===n?1:-1,a=[-1,1,i,-i];return"inside"!==(e?(t.minor||{}).ticks:t.ticks)==("x"===r)&&(a=a.map((function(t){return-t}))),t.side&&a.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),a},X.makeTransTickFn=function(t){return"x"===t._id.charAt(0)?function(e){return s(t._offset+t.l2p(e.x),0)}:function(e){return s(0,t._offset+t.l2p(e.x))}},X.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||"",r=function(t){return-1!==e.indexOf(t)},n=r("top"),i=r("left"),a=r("right"),o=r("bottom"),s=r("inside"),l=o||i||n||a;if(!l&&!s)return[0,0];var u=t.side,c=l?(t.tickwidth||0)/2:0,h=3,f=t.tickfont?t.tickfont.size:12;return(o||n)&&(c+=f*Z,h+=(t.linewidth||0)/2),(i||a)&&(c+=(t.linewidth||0)/2,h+=3),s&&"top"===u&&(h-=f*(1-Z)),(i||n)&&(c=-c),("bottom"===u||"right"===u)&&(h=-h),[l?c:0,s?h:0]}(t),r=t.ticklabelshift||0,n=t.ticklabelstandoff||0,i=e[0],a=e[1],o=t.range[0]>t.range[1],l=t.ticklabelposition&&-1!==t.ticklabelposition.indexOf("inside"),u=!l;if(r&&(r*=o?-1:1),n){var c=t.side;n*=l&&("top"===c||"left"===c)||u&&("bottom"===c||"right"===c)?1:-1}return"x"===t._id.charAt(0)?function(e){return s(i+t._offset+t.l2p(St(e))+r,a+n)}:function(e){return s(a+n,i+t._offset+t.l2p(St(e))+r)}},X.makeTickPath=function(t,e,r,n){n||(n={});var i=n.minor;if(i&&!t.minor)return"";var a=void 0!==n.len?n.len:i?t.minor.ticklen:t.ticklen,o=t._id.charAt(0),s=(t.linewidth||1)/2;return"x"===o?"M0,"+(e+s*r)+"v"+a*r:"M"+(e+s*r)+",0h"+a*r},X.makeLabelFns=function(t,e,r){var i=t.ticklabelposition||"",a=function(t){return-1!==i.indexOf(t)},s=a("top"),l=a("left"),u=a("right"),c=a("bottom")||l||s||u,h=a("inside"),f="inside"===i&&"inside"===t.ticks||!h&&"outside"===t.ticks&&"boundaries"!==t.tickson,p=0,d=0,m=f?t.ticklen:0;if(h?m*=-1:c&&(m=0),f&&(p+=m,r)){var g=o.deg2rad(r);p=m*Math.cos(g)+1,d=m*Math.sin(g)}t.showticklabels&&(f||t.showline)&&(p+=.2*t.tickfont.size);var y,v,x,_,b,w={labelStandoff:p+=(t.linewidth||1)/2*(h?-1:1),labelShift:d},T=0,k=t.side,A=t._id.charAt(0),M=t.tickangle;if("x"===A)_=(b=!h&&"bottom"===k||h&&"top"===k)?1:-1,h&&(_*=-1),y=d*_,v=e+p*_,x=b?1:-.2,90===Math.abs(M)&&(h?x+=G:x=-90===M&&"bottom"===k?Z:90===M&&"top"===k?G:.5,T=G/2*(M/90)),w.xFn=function(t){return t.dx+y+T*t.fontSize},w.yFn=function(t){return t.dy+v+t.fontSize*x},w.anchorFn=function(t,e){if(c){if(l)return"end";if(u)return"start"}return n(e)&&0!==e&&180!==e?e*_<0!==h?"end":"start":"middle"},w.heightFn=function(e,r,n){return r<-60||r>60?-.5*n:"top"===t.side!==h?-n:0};else if("y"===A){if(_=(b=!h&&"left"===k||h&&"right"===k)?1:-1,h&&(_*=-1),y=p,v=d*_,x=0,!h&&90===Math.abs(M)&&(x=-90===M&&"left"===k||90===M&&"right"===k?Z:.5),h){var S=n(M)?+M:0;if(0!==S){var E=o.deg2rad(S);T=Math.abs(Math.sin(E))*Z*_,x=0}}w.xFn=function(t){return t.dx+e-(y+t.fontSize*x)*_+T*t.fontSize},w.yFn=function(t){return t.dy+v+t.fontSize*G},w.anchorFn=function(t,e){return n(e)&&90===Math.abs(e)?"middle":b?"end":"start"},w.heightFn=function(e,r,n){return"right"===t.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},X.drawTicks=function(t,e,n){n=n||{};var i=e._id+"tick",a=[].concat(e.minor&&e.minor.ticks?n.vals.filter((function(t){return t.minor&&!t.noTick})):[]).concat(e.ticks?n.vals.filter((function(t){return!t.minor&&!t.noTick})):[]),o=n.layer.selectAll("path."+i).data(a,Et);o.exit().remove(),o.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",!1!==n.crisp).each((function(t){return c.stroke(r.select(this),t.minor?e.minor.tickcolor:e.tickcolor)})).style("stroke-width",(function(r){return h.crispRound(t,r.minor?e.minor.tickwidth:e.tickwidth,1)+"px"})).attr("d",n.path).style("display",null),Ut(e,[j]),o.attr("transform",n.transFn)},X.drawGrid=function(t,e,n){if(n=n||{},"sync"!==e.tickmode){var i=e._id+"grid",a=e.minor&&e.minor.showgrid,o=a?n.vals.filter((function(t){return t.minor})):[],s=e.showgrid?n.vals.filter((function(t){return!t.minor})):[],l=n.counterAxis;if(l&&X.shouldShowZeroLine(t,e,l))for(var u="array"===e.tickmode,f=0;f=0;y--){var v=y?m:g;if(v){var x=v.selectAll("path."+i).data(y?s:o,Et);x.exit().remove(),x.enter().append("path").classed(i,1).classed("crisp",!1!==n.crisp),x.attr("transform",n.transFn).attr("d",n.path).each((function(t){return c.stroke(r.select(this),t.minor?e.minor.gridcolor:e.gridcolor||"#ddd")})).style("stroke-dasharray",(function(t){return h.dashStyle(t.minor?e.minor.griddash:e.griddash,t.minor?e.minor.gridwidth:e.gridwidth)})).style("stroke-width",(function(t){return(t.minor?d:e._gw)+"px"})).style("display",null),"function"==typeof n.path&&x.attr("d",n.path)}}Ut(e,[B,N])}},X.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+"zl",i=X.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",!1!==r.crisp).each((function(){r.layer.selectAll("path").sort((function(t,e){return K(t.id,e.id)}))})),a.attr("transform",r.transFn).attr("d",r.path).call(c.stroke,e.zerolinecolor||c.defaultLine).style("stroke-width",h.crispRound(t,e.zerolinewidth,e._gw||1)+"px").style("display",null),Ut(e,[F])},X.drawLabels=function(t,e,i){i=i||{};var a=t._fullLayout,u=e._id,c=i.cls||u+"tick",f=i.vals.filter((function(t){return t.text})),p=i.labelFns,d=i.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[c],g=i.layer.selectAll("g."+c).data(e.showticklabels?f:[],Et),y=[];function v(t,a){t.each((function(t){var o=r.select(this),u=o.select(".text-math-group"),c=p.anchorFn(t,a),f=i.transFn.call(o.node(),t)+(n(a)&&0!=+a?" rotate("+a+","+p.xFn(t)+","+(p.yFn(t)-t.fontSize/2)+")":""),d=l.lineCount(o),m=W*t.fontSize,g=p.heightFn(t,n(a)?+a:0,(d-1)*m);if(g&&(f+=s(0,g)),u.empty()){var y=o.select("text");y.attr({transform:f,"text-anchor":c}),y.style("opacity",1),e._adjustTickLabelsOverflow&&e._adjustTickLabelsOverflow()}else{var v=h.bBox(u.node()).width*{end:-.5,start:.5}[c];u.attr("transform",f+s(v,0))}}))}g.enter().append("g").classed(c,1).append("text").attr("text-anchor","middle").each((function(e){var n=r.select(this),i=t._promises.length;n.call(l.positionText,p.xFn(e),p.yFn(e)).call(h.font,{family:e.font,size:e.fontSize,color:e.fontColor,weight:e.fontWeight,style:e.fontStyle,variant:e.fontVariant,textcase:e.fontTextcase,lineposition:e.fontLineposition,shadow:e.fontShadow}).text(e.text).call(l.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){v(n,d)}))):v(n,d)})),Ut(e,[U]),g.exit().remove(),i.repositionOnUpdate&&g.each((function(t){r.select(this).select("text").call(l.positionText,p.xFn(t),p.yFn(t))})),e._adjustTickLabelsOverflow=function(){var n=e.ticklabeloverflow;if(n&&"allow"!==n){var i=-1!==n.indexOf("hide"),s="x"===e._id.charAt(0),l=0,u=s?t._fullLayout.width:t._fullLayout.height;if(-1!==n.indexOf("domain")){var c=o.simpleMap(e.range,e.r2l);l=e.l2p(c[0])+e._offset,u=e.l2p(c[1])+e._offset}var f=Math.min(l,u),p=Math.max(l,u),d=e.side,m=1/0,y=-1/0;for(var v in g.each((function(t){var n=r.select(this);if(n.select(".text-math-group").empty()){var a=h.bBox(n.node()),o=0;s?(a.right>p||a.leftp||a.top+(e.tickangle?0:t.fontSize/4)e["_visibleLabelMin_"+n._id]?l.style("display","none"):"tick"===t.K&&!i&&l.style("display",null)}))}))}))}))},v(g,m+1?m:d);var x=null;e._selections&&(e._selections[c]=g);var _=[function(){return y.length&&Promise.all(y)}];e.automargin&&a._redrawFromAutoMarginCount&&90===m?(x=m,_.push((function(){v(g,m)}))):_.push((function(){if(v(g,d),f.length&&e.autotickangles&&("log"!==e.type||"D"!==String(e.dtick).charAt(0))){x=e.autotickangles[0];var t,r=0,n=[],a=1;g.each((function(t){r=Math.max(r,t.fontSize);var i=e.l2p(t.x),o=Lt(this),s=h.bBox(o.node());a=Math.max(a,l.lineCount(o)),n.push({top:0,bottom:10,height:10,left:i-s.width/2,right:i+s.width/2+2,width:s.width+2})}));var s=("boundaries"===e.tickson||e.showdividers)&&!i.secondary,u=f.length,c=Math.abs((f[u-1].x-f[0].x)*e._m)/(u-1),p=s?c/2:c,m=s?e.ticklen:1.25*r*a,y=p/Math.sqrt(Math.pow(p,2)+Math.pow(m,2)),_=e.autotickangles.map((function(t){return t*Math.PI/180})),b=_.find((function(t){return Math.abs(Math.cos(t))<=y}));void 0===b&&(b=_.reduce((function(t,e){return Math.abs(Math.cos(t))D*O&&(L=O,E[S]=C[S]=P[S])}var R=Math.abs(L-I);R-k>0?k*=1+k/(R-=k):k=0,"y"!==e._id.charAt(0)&&(k=-k),E[M]=w.p2r(w.r2p(C[M])+A*k),"min"===w.autorange||"max reversed"===w.autorange?(E[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):("max"===w.autorange||"min reversed"===w.autorange)&&(E[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=E}var V=o.syncOrAsync(_);return V&&V.then&&t._promises.push(V),V},X.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return"free"!==e.anchor?r=e._anchorAxis:"x"===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:"y"===i&&(r={_offset:n.l+(e.position||0)*n.w+e._shift,_length:0}),"top"===a||"left"===a?r._offset:"bottom"===a||"right"===a?r._offset+r._length:void 0},X.shouldShowZeroLine=function(t,e,r){var n=o.simpleMap(e.range,e.r2l);return n[0]*n[1]<=0&&e.zeroline&&("linear"===e.type||"-"===e.type)&&!(e.rangebreaks&&e.maskBreaks(0)===R)&&(It(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(i){var a=t._fullLayout,o=e._id.charAt(0),s=X.counterLetter(e._id),l=e._offset+(Math.abs(n[0])1)for(n=1;n{e.exports=function(t,e,r){var n,i;if(r){var a="reversed"===e||"min reversed"===e||"max reversed"===e;n=r[a?1:0],i=r[a?0:1]}var o=t("autorangeoptions.minallowed",null===i?n:void 0),s=t("autorangeoptions.maxallowed",null===n?i:void 0);void 0===o&&t("autorangeoptions.clipmin"),void 0===s&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}})),or=f(((t,e)=>{var r=ar();e.exports=function(t,e,n,i){var a=e._template||{},o=e.type||a.type||"-";n("minallowed"),n("maxallowed");var s,l=n("range");l||!i.noInsiderange&&"log"!==o&&((s=n("insiderange"))&&(null===s[0]||null===s[1])&&(e.insiderange=!1,s=void 0),s&&(l=n("range",s)));var u,c=e.getAutorangeDflt(l,i),h=n("autorange",c);l&&(null===l[0]&&null===l[1]||(null===l[0]||null===l[1])&&("reversed"===h||!0===h)||null!==l[0]&&("min"===h||"max reversed"===h)||null!==l[1]&&("max"===h||"min reversed"===h))&&(l=void 0,delete e.range,e.autorange=!0,u=!0),u||(h=n("autorange",c=e.getAutorangeDflt(l,i))),h&&(r(n,h,l),("linear"===o||"-"===o)&&n("rangemode")),e.cleanRange()}})),sr=f(((t,e)=>{var r={left:0,top:0};e.exports=function(t,e,n){e=e||t.currentTarget||t.srcElement,Array.isArray(n)||(n=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=function(t){return t===window||t===document||t===document.body?r:t.getBoundingClientRect()}(e);return n[0]=i-o.left,n[1]=a-o.top,n}})),lr=f(((t,e)=>{var r=ce();e.exports=r&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){t=!1}return t}()})),ur=f(((t,e)=>{e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return"left"===i||"bottom"===i?a:"center"===i||"middle"===i?s:"right"===i||"top"===i?o:a<2/3-s?a:o>4/3-s?o:s}})),cr=f(((t,e)=>{var r=le(),n=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(t,e,i,a){return t="left"===i?0:"center"===i?1:"right"===i?2:r.constrain(Math.floor(3*t),0,2),e="bottom"===a?0:"middle"===a?1:"top"===a?2:r.constrain(Math.floor(3*e),0,2),n[e][t]}})),hr=f(((t,e)=>{var r=pe(),n=Kt(),i=Ct().getGraphDiv,a=F(),o=e.exports={};o.wrapped=function(t,e,r){(t=i(t))._fullLayout&&n.clear(t._fullLayout._uid+a.HOVERID),o.raw(t,e,r)},o.raw=function(t,e){var n=t._fullLayout,i=t._hoverdata;e||(e={}),(!e.target||t._dragged||!1!==r.triggerHandler(t,"plotly_beforehover",e))&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,e.target&&i&&t.emit("plotly_unhover",{event:e,points:i}))}})),fr=f(((t,e)=>{var r=sr(),n=he(),i=lr(),a=le().removeElement,o=ve(),s=e.exports={};s.align=ur(),s.getCursor=cr();var l=hr();function u(){var t=document.createElement("div");t.className="dragcover";var e=t.style;return e.position="fixed",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background="none",document.body.appendChild(t),t}function c(t){return r(t.changedTouches?t.changedTouches[0]:t,document.body)}s.unhover=l.wrapped,s.unhoverRaw=l.raw,s.init=function(t){var e,r,l,h,f,p,d,m,g=t.gd,y=1,v=g._context.doubleClickDelay,x=t.element;g._mouseDownTime||(g._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=b,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=b,x.addEventListener("touchstart",b,{passive:!1})):x.ontouchstart=b;var _=t.clampFn||function(t,e,r){return Math.abs(t)v&&(y=Math.max(y-1,1)),g._dragged?t.doneFn&&t.doneFn():(p.target===d?r=p:(r={target:d,srcElement:d,toElement:d},Object.keys(p).concat(Object.keys(p.__proto__)).forEach((t=>{var e=p[t];!r[t]&&"function"!=typeof e&&(r[t]=e)}))),t.clickFn&&t.clickFn(y,r),m||d.dispatchEvent(new MouseEvent("click",e))),g._dragging=!1,g._dragged=!1):g._dragged=!1}},s.coverSlip=u})),pr=f(((t,e)=>{e.exports=function(t,e){(t.attr("class")||"").split(" ").forEach((function(e){0===e.indexOf("cursor-")&&t.classed(e,!1)})),e&&t.classed("cursor-"+e,!0)}})),dr=f(((t,e)=>{var r=pr(),n="data-savedcursor";e.exports=function(t,e){var i=t.attr(n);if(e){if(!i){for(var a=(t.attr("class")||"").split(" "),o=0;o{var r=R(),n=V();e.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r({editType:"legend"}),grouptitlefont:r({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:r({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}})),gr=f((t=>{t.isGrouped=function(t){return-1!==(t.traceorder||"").indexOf("grouped")},t.isVertical=function(t){return"h"!==t.orientation},t.isReversed=function(t){return-1!==(t.traceorder||"").indexOf("reversed")}})),yr=f(((t,e)=>{var r=qt(),n=le(),i=ye(),a=j(),o=mr(),s=Nt(),l=gr();function u(t,e,u,c){var h=e[t]||{},f=i.newContainer(u,t);function p(t,e){return n.coerce(h,f,o,t,e)}var d=n.coerceFont(p,"font",u.font);if(p("bgcolor",u.paper_bgcolor),p("bordercolor"),p("visible")){for(var m,g=function(t,e){var r=m._input,i=m;return n.coerce(r,i,a,t,e)},y=u.font||{},v=n.coerceFont(p,"grouptitlefont",y,{overrideDflt:{size:Math.round(1.1*y.size)}}),x=0,_=!1,b="normal",w=(u.shapes||[]).filter((function(t){return t.showlegend})),T=c.concat(w).filter((function(e){return t===(e.legend||"legend")})),k=0;k("legend"===t?1:0));if(!1===M&&(u[t]=void 0),(!1!==M||h.uirevision)&&(p("uirevision",u.uirevision),!1!==M)){p("borderwidth");var S,E,C,I="h"===p("orientation"),L="paper"===p("yref"),P="paper"===p("xref"),z="left";if(I?(S=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?L?(E=1.1,C="bottom"):(E=1,C="top"):L?(E=-.1,C="top"):(E=0,C="bottom")):(E=1,C="auto",P?S=1.02:(S=1,z="right")),n.coerce(h,f,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:S}},"x"),n.coerce(h,f,{y:{valType:"number",editType:"legend",min:L?-2:0,max:L?3:1,dflt:E}},"y"),p("traceorder",b),l.isGrouped(u[t])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("indentation"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",z),p("yanchor",C),p("valign"),n.noneOrAll(h,f,["x","y"]),p("title.text")){p("title.side",I?"left":"top");var O=n.extendFlat({},d,{size:n.bigFont(d.size)});n.coerceFont(p,"title.font",O)}}}}e.exports=function(t,e,r){var i,a=r.slice(),o=e.shapes;if(o)for(i=0;i{var r=qt(),n=le(),i=n.pushUnique,a=!0;e.exports=function(t,e,o){var s=e._fullLayout;if(!e._dragged&&!e._editing){var l,u=s.legend.itemclick,c=s.legend.itemdoubleclick,h=s.legend.groupclick;if(1===o&&"toggle"===u&&"toggleothers"===c&&a&&e.data&&e._context.showTips&&n.notifier(n._(e,"Double-click on legend to isolate one trace"),"long"),a=!1,1===o?l=u:2===o&&(l=c),l){var f="togglegroup"===h,p=s.hiddenlabels?s.hiddenlabels.slice():[],d=t.data()[0][0];if(!d.groupTitle||!d.noClick){var m=e._fullData,g=(s.shapes||[]).filter((function(t){return t.showlegend})),y=m.concat(g),v=d.trace;v._isShape&&(v=v._fullInput);var x,_,b,w,T,k=v.legendgroup,A={},M=[],S=[],E=[],C=(s.shapes||[]).map((function(t){return t._input})),I=!1,L=v.legend,P=v._fullInput;if(P&&P._isShape||!r.traceIs(v,"pie-like")){var z,O=k&&k.length,D=[];if(O)for(x=0;x{e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}})),_r=f(((t,e)=>{var r=qt(),n=gr();e.exports=function(t,e,i){var a,o,s=e._inHover,l=n.isGrouped(e),u=n.isReversed(e),c={},h=[],f=!1,p={},d=0,m=0;function g(t,r,a){if(!1!==e.visible&&(!i||t===e._id))if(""!==r&&n.isGrouped(e))-1===h.indexOf(r)?(h.push(r),f=!0,c[r]=[a]):c[r].push(a);else{var o="~~i"+d;h.push(o),c[o]=[a],d++}}for(a=0;aS&&(M=S)}k[a][0]._groupMinRank=M,k[a][0]._preGroupSort=a}var E=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(k.forEach((function(t,e){t[0]._preGroupSort=e})),k.sort((function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort})),a=0;a{var e=le();function r(t){return-1!==t.indexOf("e")?t.replace(/[.]?0+e/,"e"):-1!==t.indexOf(".")?t.replace(/[.]?0+$/,""):t}t.formatPiePercent=function(t,n){var i=r((100*t).toPrecision(3));return e.numSeparate(i,n)+"%"},t.formatPieValue=function(t,n){var i=r(t.toPrecision(10));return e.numSeparate(i,n)},t.getFirstFilled=function(t,r){if(e.isArrayOrTypedArray(t))for(var n=0;n{var r=Qe(),n=q();e.exports=function(t,e,i,a){var o=i.marker.pattern;o&&o.shape?r.pointStyle(t,i,a,e):n.fill(t,e.color)}})),Tr=f(((t,e)=>{var r=q(),n=br().castOption,i=wr();e.exports=function(t,e,a,o){var s=a.marker.line,l=n(s.color,e.pts)||r.defaultLine,u=n(s.width,e.pts)||0;t.call(i,e,a,o).style("stroke-width",u).call(r.stroke,l)}})),kr=f(((t,e)=>{var r=v(),n=qt(),i=le(),a=i.strTranslate,o=Qe(),s=q(),l=Ee().extractOpts,u=Ye(),c=Tr(),h=br().castOption,f=xr();function p(t,e){return(e?"radial":"horizontal")+(t?"":"reversed")}function d(t){var e=t[0].trace,r=e.contours,n=u.hasLines(e),i=u.hasMarkers(e),a=e.visible&&e.fill&&"none"!==e.fill,o=!1,s=!1;if(r){var l=r.coloring;"lines"===l?o=!0:n="none"===l||"heatmap"===l||r.showlines,"constraint"===r.type?a="="!==r._operation:("fill"===l||"heatmap"===l)&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function m(t,e,r){return t&&i.isArrayOrTypedArray(t)?e:t>r?r:t}e.exports=function(t,e,g){var y=e._fullLayout;g||(g=y.legend);var v="constant"===g.itemsizing,x=g.itemwidth,_=(x+2*f.itemGap)/2,b=a(_,0),w=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&&e.width>0))return 0;i=e.width}return v?n:Math.min(i,r)};function T(t,i,a){var u=t[0].trace,c=u.marker||{},h=c.line||{},f=c.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",p=a?u.visible&&u.type===a:n.traceIs(u,"bar"),d=r.select(i).select("g.legendpoints").selectAll("path.legend"+a).data(p?[t]:[]);d.enter().append("path").classed("legend"+a,!0).attr("d",f).attr("transform",b),d.exit().remove(),d.each((function(t){var n=r.select(this),i=t[0],a=w(i.mlw,c.line,5,2);n.style("stroke-width",a+"px");var f=i.mcc;if(!g._inHover&&"mc"in i){var p=l(c),d=p.mid;void 0===d&&(d=(p.max+p.min)/2),f=o.tryColorscale(c,"")(d)}var y=f||i.mc||c.color,v=c.pattern,x=v&&o.getPatternAttr(v.shape,0,"");if(x){var _=o.getPatternAttr(v.bgcolor,0,null),b=o.getPatternAttr(v.fgcolor,0,null),T=v.fgopacity,k=m(v.size,8,10),A=m(v.solidity,.5,1),M="legend-"+u.uid;n.call(o.pattern,"legend",e,M,x,k,A,f,v.fillmode,_,b,T)}else n.call(s.fill,y);a&&s.stroke(n,i.mlc||h.color)}))}function k(t,a,o){var s=t[0],l=s.trace,u=o?l.visible&&l.type===o:n.traceIs(l,o),f=r.select(a).select("g.legendpoints").selectAll("path.legend"+o).data(u?[t]:[]);if(f.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",b),f.exit().remove(),f.size()){var p=l.marker||{},d=w(h(p.line.width,s.pts),p.line,5,2),m="pieLike",g=i.minExtend(l,{marker:{line:{width:d}}},m),y=i.minExtend(s,{trace:g},m);c(f,y,g,e)}}t.each((function(t){var e=r.select(this),n=i.ensureSingle(e,"g","layers");n.style("opacity",t[0].trace.opacity);var o=g.indentation,s=g.valign,l=t[0].lineHeight,u=t[0].height;if("middle"===s&&0===o||!l||!u)n.attr("transform",null);else{var c={top:1,bottom:-1}[s]*(.5*(l-u+3))||0,h=g.indentation;n.attr("transform",a(h,c))}n.selectAll("g.legendfill").data([t]).enter().append("g").classed("legendfill",!0),n.selectAll("g.legendlines").data([t]).enter().append("g").classed("legendlines",!0);var f=n.selectAll("g.legendsymbols").data([t]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([t]).enter().append("g").classed("legendpoints",!0)})).each((function(t){var n,a=t[0].trace,u=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":u=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":u=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":case"densitymap":u=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":u=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],n=!1;break;case"streamtube":u=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],n=!1;break;case"surface":u=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],n=!0;break;case"mesh3d":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1}var c=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(u);c.enter().append("path").classed("legend3dandfriends",!0).attr("transform",b).style("stroke-miterlimit",1),c.exit().remove(),c.each((function(t,u){var c,h=r.select(this),f=l(a),d=f.colorscale,m=f.reversescale;if(d){if(!n){var g=d.length;c=0===u?d[m?g-1:0][1]:1===u?d[m?0:g-1][1]:d[Math.floor((g-1)/2)][1]}}else{var y=a.vertexcolor||a.facecolor||a.color;c=i.isArrayOrTypedArray(y)?y[u]||y[0]:y}h.attr("d",t[0]),c?h.call(s.fill,c):h.call((function(t){if(t.size()){var r="legendfill-"+a.uid;o.gradient(t,e,r,p(m,"radial"===n),d,"fill")}}))}))})).each((function(t){var e=t[0].trace,n="waterfall"===e.type;if(t[0]._distinct&&n){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,T(t,this,"waterfall")}var a=[];e.visible&&n&&(a=t[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(a);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",b).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(t){var n=r.select(this),i=e[t[0]].marker,a=w(void 0,i.line,5,2);n.attr("d",t[1]).style("stroke-width",a+"px").call(s.fill,i.color),a&&n.call(s.stroke,i.line.color)}))})).each((function(t){T(t,this,"funnel")})).each((function(t){T(t,this)})).each((function(t){var a=t[0].trace,l=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(a.visible&&n.traceIs(a,"box-violin")?[t]:[]);l.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",b),l.exit().remove(),l.each((function(){var t=r.select(this);if("all"!==a.boxpoints&&"all"!==a.points||0!==s.opacity(a.fillcolor)||0!==s.opacity((a.line||{}).color)){var n=w(void 0,a.line,5,2);t.style("stroke-width",n+"px").call(s.fill,a.fillcolor),n&&s.stroke(t,a.line.color)}else{var u=i.minExtend(a,{marker:{size:v?12:i.constrain(a.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});l.call(o.pointStyle,u,e)}}))})).each((function(t){k(t,this,"funnelarea")})).each((function(t){k(t,this,"pie")})).each((function(t){var n,a,s=d(t),c=s.showFill,h=s.showLine,f=s.showGradientLine,m=s.showGradientFill,g=s.anyFill,y=s.anyLine,v=t[0],_=v.trace,b=l(_),T=b.colorscale,k=b.reversescale,A=u.hasMarkers(_)||!g?"M5,0":y?"M5,-2":"M5,-3",M=r.select(this),S=M.select(".legendfill").selectAll("path").data(c||m?[t]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",A+"h"+x+"v6h-"+x+"z").call((function(t){if(t.size())if(c)o.fillGroupStyle(t,e,!0);else{var r="legendfill-"+_.uid;o.gradient(t,e,r,p(k),T,"fill")}})),h||f){var E=w(void 0,_.line,10,5);a=i.minExtend(_,{line:{width:E}}),n=[i.minExtend(v,{trace:a})]}var C=M.select(".legendlines").selectAll("path").data(h||f?[n]:[]);C.enter().append("path").classed("js-line",!0),C.exit().remove(),C.attr("d",A+(f?"l"+x+",0.0001":"h"+x)).call(h?o.lineGroupStyle:function(t){if(t.size()){var r="legendline-"+_.uid;o.lineGroupStyle(t),o.gradient(t,e,r,p(k),T,"stroke")}})})).each((function(t){var n,a,s=d(t),l=s.anyFill,c=s.anyLine,h=s.showLine,f=s.showMarker,p=t[0],m=p.trace,g=!f&&!c&&!l&&u.hasText(m);function y(t,e,r,n){var a=i.nestedProperty(m,t).get(),o=i.isArrayOrTypedArray(a)&&e?e(a):a;if(v&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function x(t){return p._distinct&&p.index&&t[p.index]?t[p.index]:t[0]}if(f||g||h){var _={},w={};if(f){_.mc=y("marker.color",x),_.mx=y("marker.symbol",x),_.mo=y("marker.opacity",i.mean,[.2,1]),_.mlc=y("marker.line.color",x),_.mlw=y("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var T=y("marker.size",i.mean,[2,16],12);_.ms=T,w.marker.size=T}h&&(w.line={width:y("line.width",x,[0,10],5)}),g&&(_.tx="Aa",_.tp=y("textposition",x),_.ts=10,_.tc=y("textfont.color",x),_.tf=y("textfont.family",x),_.tw=y("textfont.weight",x),_.ty=y("textfont.style",x),_.tv=y("textfont.variant",x),_.tC=y("textfont.textcase",x),_.tE=y("textfont.lineposition",x),_.tS=y("textfont.shadow",x)),n=[i.minExtend(p,_)],(a=i.minExtend(m,w)).selectedpoints=null,a.texttemplate=null}var k=r.select(this).select("g.legendpoints"),A=k.selectAll("path.scatterpts").data(f?n:[]);A.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",b),A.exit().remove(),A.call(o.pointStyle,a,e),f&&(n[0].mrc=3);var M=k.selectAll("g.pointtext").data(g?n:[]);M.enter().append("g").classed("pointtext",!0).append("text").attr("transform",b),M.exit().remove(),M.selectAll("text").call(o.textPointStyle,a,e)})).each((function(t){var e=t[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(e.visible&&"candlestick"===e.type?[t,t]:[]);n.enter().append("path").classed("legendcandle",!0).attr("d",(function(t,e){return e?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",b).style("stroke-miterlimit",1),n.exit().remove(),n.each((function(t,n){var i=r.select(this),a=e[n?"increasing":"decreasing"],o=w(void 0,a.line,5,2);i.style("stroke-width",o+"px").call(s.fill,a.fillcolor),o&&s.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(e.visible&&"ohlc"===e.type?[t,t]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(t,e){return e?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",b).style("stroke-miterlimit",1),n.exit().remove(),n.each((function(t,n){var i=r.select(this),a=e[n?"increasing":"decreasing"],l=w(void 0,a.line,5,2);i.style("fill","none").call(o.dashLine,a.line.dash,l),l&&s.stroke(i,a.line.color)}))}))}})),Ar=f(((t,e)=>{var r=v(),n=le(),i=ke(),a=qt(),o=pe(),s=fr(),l=Qe(),u=q(),c=Se(),h=vr(),f=xr(),p=Me(),d=p.LINE_SPACING,m=p.FROM_TL,g=p.FROM_BR,y=_r(),x=kr(),_=gr(),b=/^legend[0-9]*$/;function w(t,e){var o,h,p=e||{},v=t._fullLayout,b=L(p),w=p._inHover;if(w?(h=p.layer,o="hover"):(h=v._infolayer,o=b),h){var M;if(o+=v._uid,t._legendMouseDownTime||(t._legendMouseDownTime=0),w){if(!p.entries)return;M=y(p.entries,p)}else{for(var P=(t.calcdata||[]).slice(),z=v.shapes,O=0;O1)}var F=v.hiddenlabels||[];if(!(w||v.showlegend&&M.length))return h.selectAll("."+b).remove(),v._topdefs.select("#"+o).remove(),i.autoMargin(t,b);var B=n.ensureSingle(h,"g",b,(function(t){w||t.attr("pointer-events","all")})),N=n.ensureSingleById(v._topdefs,"clipPath",o,(function(t){t.append("rect")})),j=n.ensureSingle(B,"rect","bg",(function(t){t.attr("shape-rendering","crispEdges")}));j.call(u.stroke,p.bordercolor).call(u.fill,p.bgcolor).style("stroke-width",p.borderwidth+"px");var U,V=n.ensureSingle(B,"g","scrollbox"),q=p.title;p._titleWidth=0,p._titleHeight=0,q.text?((U=n.ensureSingle(V,"text",b+"titletext")).attr("text-anchor","start").call(l.font,q.font).text(q.text),E(U,V,t,p,1)):V.selectAll("."+b+"titletext").remove();var H=n.ensureSingle(B,"rect","scrollbar",(function(t){t.attr(f.scrollBarEnterAttrs).call(u.fill,f.scrollBarColor)})),G=V.selectAll("g.groups").data(M);G.enter().append("g").attr("class","groups"),G.exit().remove();var Z=G.selectAll("g.traces").data(n.identity);Z.enter().append("g").attr("class","traces"),Z.exit().remove(),Z.style("opacity",(function(t){var e=t[0].trace;return a.traceIs(e,"pie-like")?-1!==F.indexOf(t[0].label)?.5:1:"legendonly"===e.visible?.5:1})).each((function(){r.select(this).call(A,t,p)})).call(x,t,p).each((function(){w||r.select(this).call(S,t,b)})),n.syncOrAsync([i.previousPromises,function(){return function(t,e,n,i){var a=t._fullLayout,o=L(i);i||(i=a[o]);var s=a._size,u=_.isVertical(i),c=_.isGrouped(i),h="fraction"===i.entrywidthmode,p=i.borderwidth,d=2*p,m=f.itemGap,g=i.indentation+i.itemwidth+2*m,y=2*(p+m),v=I(i),x=i.y<0||0===i.y&&"top"===v,b=i.y>1||1===i.y&&"bottom"===v,w=i.tracegroupgap,k={};i._maxHeight=Math.max(x||b?a.height/2:s.h,30);var A=0;i._width=0,i._height=0;var M=function(t){var e=0,r=0,n=t.title.side;return n&&(-1!==n.indexOf("left")&&(e=t._titleWidth),-1!==n.indexOf("top")&&(r=t._titleHeight)),[e,r]}(i);if(u)n.each((function(t){var e=t[0].height;l.setTranslate(this,p+M[0],p+M[1]+i._height+e/2+m),i._height+=e,i._width=Math.max(i._width,t[0].width)})),A=g+i._width,i._width+=m+g+d,i._height+=y,c&&(e.each((function(t,e){l.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var S=C(i),E=i.x<0||0===i.x&&"right"===S,P=i.x>1||1===i.x&&"left"===S,z=b||x,O=a.width/2;i._maxWidth=Math.max(E?z&&"left"===S?s.l+s.w:O:P?z&&"right"===S?s.r+s.w:O:s.w,2*g);var D=0,R=0;n.each((function(t){var e=T(t,i,g);D=Math.max(D,e),R+=e})),A=null;var F=0;if(c){var B=0,N=0,j=0;e.each((function(){var t=0,e=0;r.select(this).selectAll("g.traces").each((function(r){var n=T(r,i,g),a=r[0].height;l.setTranslate(this,M[0],M[1]+p+m+a/2+e),e+=a,t=Math.max(t,n),k[r[0].trace.legendgroup]=t}));var n=t+m;N>0&&n+p+N>i._maxWidth?(F=Math.max(F,N),N=0,j+=B+w,B=e):B=Math.max(B,e),l.setTranslate(this,N,j),N+=n})),i._width=Math.max(F,N)+p,i._height=j+B+y}else{var U=n.size(),V=R+d+(U-1)*m=i._maxWidth&&(F=Math.max(F,Z),H=0,G+=q,i._height+=q,q=0),l.setTranslate(this,M[0]+p+H,M[1]+p+G+e/2+m),Z=H+r+m,H+=n,q=Math.max(q,e)})),V?(i._width=H+d,i._height=q+y):(i._width=Math.max(F,Z)+d,i._height+=q+y)}}i._width=Math.ceil(Math.max(i._width+M[0],i._titleWidth+2*(p+f.titlePad))),i._height=Math.ceil(Math.max(i._height+M[1],i._titleHeight+2*(p+f.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var W=t._context.edits,Y=W.legendText||W.legendPosition;n.each((function(t){var e=r.select(this).select("."+o+"toggle"),n=t[0].height,a=t[0].trace.legendgroup,s=T(t,i,g);c&&""!==a&&(s=k[a]);var f=Y?g:A||s;!u&&!h&&(f+=m/2),l.setRect(e,0,-n/2,f,n)}))}(t,G,Z,p)},function(){var e,u,y,x,_=v._size,T=p.borderwidth,A="paper"===p.xref,M="paper"===p.yref;if(q.text&&function(t,e,r){if("top center"===e.title.side||"top right"===e.title.side){var n=e.title.font.size*d,i=0,a=t.node(),o=l.bBox(a).width;"top center"===e.title.side?i=.5*(e._width-2*r-2*f.titlePad-o):"top right"===e.title.side&&(i=e._width-2*r-2*f.titlePad-o),c.positionText(t,r+f.titlePad+i,r+n)}}(U,p,T),!w){var S,E;S=A?_.l+_.w*p.x-m[C(p)]*p._width:v.width*p.x-m[C(p)]*p._width,E=M?_.t+_.h*(1-p.y)-m[I(p)]*p._effHeight:v.height*(1-p.y)-m[I(p)]*p._effHeight;var L=function(t,e,r,n){var a=t._fullLayout,o=a[e],s=C(o),l=I(o),u="paper"===o.xref,c="paper"===o.yref;t._fullLayout._reservedMargin[e]={};var h=o.y<.5?"b":"t",f=o.x<.5?"l":"r",p={r:a.width-r,l:r+o._width,b:a.height-n,t:n+o._effHeight};if(u&&c)return i.autoMargin(t,e,{x:o.x,y:o.y,l:o._width*m[s],r:o._width*g[s],b:o._effHeight*g[l],t:o._effHeight*m[l]});u?t._fullLayout._reservedMargin[e][h]=p[h]:c||"v"===o.orientation?t._fullLayout._reservedMargin[e][f]=p[f]:t._fullLayout._reservedMargin[e][h]=p[h]}(t,b,S,E);if(L)return;if(v.margin.autoexpand){var P=S,z=E;S=A?n.constrain(S,0,v.width-p._width):P,E=M?n.constrain(E,0,v.height-p._effHeight):z,S!==P&&n.log("Constrain "+b+".x to make legend fit inside graph"),E!==z&&n.log("Constrain "+b+".y to make legend fit inside graph")}l.setTranslate(B,S,E)}if(H.on(".drag",null),B.on("wheel",null),w||p._height<=p._maxHeight||t._context.staticPlot){var O=p._effHeight;w&&(O=p._height),j.attr({width:p._width-T,height:O-T,x:T/2,y:T/2}),l.setTranslate(V,0,0),N.select("rect").attr({width:p._width-2*T,height:O-2*T,x:T,y:T}),l.setClipUrl(V,o,t),l.setRect(H,0,0,0,0),delete p._scrollY}else{var D=Math.max(f.scrollBarMinHeight,p._effHeight*p._effHeight/p._height),R=p._effHeight-D-2*f.scrollBarMargin,F=p._height-p._effHeight,G=R/F,Z=Math.min(p._scrollY||0,F);j.attr({width:p._width-2*T+f.scrollBarWidth+f.scrollBarMargin,height:p._effHeight-T,x:T/2,y:T/2}),N.select("rect").attr({width:p._width-2*T+f.scrollBarWidth+f.scrollBarMargin,height:p._effHeight-2*T,x:T,y:T+Z}),l.setClipUrl(V,o,t),K(Z,D,G),B.on("wheel",(function(){K(Z=n.constrain(p._scrollY+r.event.deltaY/R*F,0,F),D,G),0!==Z&&Z!==F&&r.event.preventDefault()}));var W,Y,X,$=r.behavior.drag().on("dragstart",(function(){var t=r.event.sourceEvent;W="touchstart"===t.type?t.changedTouches[0].clientY:t.clientY,X=Z})).on("drag",(function(){var t=r.event.sourceEvent;2===t.buttons||t.ctrlKey||(Y="touchmove"===t.type?t.changedTouches[0].clientY:t.clientY,Z=function(t,e,r){var i=(r-e)/G+t;return n.constrain(i,0,F)}(X,W,Y),K(Z,D,G))}));H.call($);var J=r.behavior.drag().on("dragstart",(function(){var t=r.event.sourceEvent;"touchstart"===t.type&&(W=t.changedTouches[0].clientY,X=Z)})).on("drag",(function(){var t=r.event.sourceEvent;"touchmove"===t.type&&(Y=t.changedTouches[0].clientY,Z=function(t,e,r){var i=(e-r)/G+t;return n.constrain(i,0,F)}(X,W,Y),K(Z,D,G))}));V.call(J)}function K(e,r,n){p._scrollY=t._fullLayout[b]._scrollY=e,l.setTranslate(V,0,-e),l.setRect(H,p._width,f.scrollBarMargin+e*n,f.scrollBarWidth,r),N.select("rect").attr("y",T+e)}t._context.edits.legendPosition&&(B.classed("cursor-move",!0),s.init({element:B.node(),gd:t,prepFn:function(t){if(t.target!==H.node()){var e=l.getTranslate(B);y=e.x,x=e.y}},moveFn:function(t,r){if(void 0!==y&&void 0!==x){var n=y+t,i=x+r;l.setTranslate(B,n,i),e=s.align(n,p._width,_.l,_.l+_.w,p.xanchor),u=s.align(i+p._height,-p._height,_.t+_.h,_.t,p.yanchor)}},doneFn:function(){if(void 0!==e&&void 0!==u){var r={};r[b+".x"]=e,r[b+".y"]=u,a.call("_guiRelayout",t,r)}},clickFn:function(e,r){var n=h.selectAll("g.traces").filter((function(){var t=this.getBoundingClientRect();return r.clientX>=t.left&&r.clientX<=t.right&&r.clientY>=t.top&&r.clientY<=t.bottom}));n.size()>0&&k(t,B,n,e,r)}}))}],t)}}function T(t,e,r){var n=t[0],i=n.width,a=e.entrywidthmode,o=n.trace.legendwidth||e.entrywidth;return"fraction"===a?e._maxWidth*o:r+(o||i)}function k(t,e,r,n,i){var s=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:s.index,expandedIndex:s.index,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};s._group&&(l.group=s._group),a.traceIs(s,"pie-like")&&(l.label=r.datum()[0].label);var u=o.triggerHandler(t,"plotly_legendclick",l);if(1===n){if(!1===u)return;e._clickTimeout=setTimeout((function(){t._fullLayout&&h(r,t,n)}),t._context.doubleClickDelay)}else 2===n&&(e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==o.triggerHandler(t,"plotly_legenddoubleclick",l)&&!1!==u&&h(r,t,n))}function A(t,e,r){var i,o,s=L(r),u=t.data()[0][0],h=u.trace,p=a.traceIs(h,"pie-like"),d=!r._inHover&&e._context.edits.legendText&&!p,m=r._maxNameLength;u.groupTitle?(i=u.groupTitle.text,o=u.groupTitle.font):(o=r.font,r.entries?i=u.text:(i=p?u.label:h.name,h._meta&&(i=n.templateString(i,h._meta))));var g=n.ensureSingle(t,"text",s+"text");g.attr("text-anchor","start").call(l.font,o).text(d?M(i,m):i);var y=r.indentation+r.itemwidth+2*f.itemGap;c.positionText(g,y,0),d?g.call(c.makeEditable,{gd:e,text:i}).call(E,t,e,r).on("edit",(function(n){this.text(M(n,m)).call(E,t,e,r);var i=u.trace._fullInput||{},o={};return o.name=n,i._isShape?a.call("_guiRelayout",e,"shapes["+h.index+"].name",o.name):a.call("_guiRestyle",e,o,h.index)})):E(g,t,e,r)}function M(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||"").length;n>0;n--)t+=" ";return t}function S(t,e,i){var a,o=e._context.doubleClickDelay,s=1,l=n.ensureSingle(t,"rect",i+"toggle",(function(t){e._context.staticPlot||t.style("cursor","pointer").attr("pointer-events","all"),t.call(u.fill,"rgba(0,0,0,0)")}));e._context.staticPlot||(l.on("mousedown",(function(){(a=(new Date).getTime())-e._legendMouseDownTimeo&&(s=Math.max(s-1,1)),k(e,n,t,s,r.event)}})))}function E(t,e,r,n,i){n._inHover&&t.attr("data-notex",!0),c.convertToTspans(t,r,(function(){!function(t,e,r,n){var i=t.data()[0][0];if(r._inHover||!i||i.trace.showlegend){var a=t.select("g[class*=math-group]"),o=a.node(),s=L(r);r||(r=e._fullLayout[s]);var u,h,p=r.borderwidth,m=(1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font).size*d;if(o){var g=l.bBox(o);u=g.height,h=g.width,1===n?l.setTranslate(a,p,p+.75*u):l.setTranslate(a,0,.25*u)}else{var y="."+s+(1===n?"title":"")+"text",v=t.select(y),x=c.lineCount(v),_=v.node();if(u=m*x,h=_?l.bBox(_).width:0,1===n)"left"===r.title.side&&(h+=2*f.itemGap),c.positionText(v,p+f.titlePad,p+m);else{var b=2*f.itemGap+r.indentation+r.itemwidth;i.groupTitle&&(b=f.itemGap,h-=r.indentation+r.itemwidth),c.positionText(v,b,-m*((x-1)/2-.3))}}1===n?(r._titleWidth=h,r._titleHeight=u):(i.lineHeight=m,i.height=Math.max(u,16)+3,i.width=h)}else t.remove()}(e,r,n,i)}))}function C(t){return n.isRightAnchor(t)?"right":n.isCenterAnchor(t)?"center":"left"}function I(t){return n.isBottomAnchor(t)?"bottom":n.isMiddleAnchor(t)?"middle":"top"}function L(t){return t._id||"legend"}e.exports=function(t,e){if(e)w(t,e);else{var n=t._fullLayout,i=n._legends;n._infolayer.selectAll('[class^="legend"]').each((function(){var t=r.select(this),e=t.attr("class").split(" ")[0];e.match(b)&&-1===i.indexOf(e)&&t.remove()}));for(var a=0;a{var e=v(),r=T(),n=O(),i=le(),a=i.pushUnique,o=i.strTranslate,s=i.strRotate,l=pe(),u=Se(),c=dr(),h=Qe(),f=q(),p=fr(),d=ir(),m=ve().zindexSeparator,g=qt(),y=$e(),x=F(),_=yr(),b=Ar(),w=x.YANGLE,k=Math.PI*w/180,A=1/Math.sin(k),M=Math.cos(k),S=Math.sin(k),E=x.HOVERARROWSIZE,C=x.HOVERTEXTPAD,I={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function P(t,e){return t.distance-e.distance}function z(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa?t.xa._id:"",t.ya?t.ya._id:""].join(",")}t.hover=function(t,n,o,s){t=i.getGraphDiv(t);var u=n.target;i.throttle(t._fullLayout._uid+x.HOVERID,x.HOVERMINTIME,(function(){!function(t,n,o,s,u){o||(o="xy"),"string"==typeof o&&(o=o.split(m)[0]);var h,v,x,_=Array.isArray(o)?o:[o],b=t._fullLayout,w=b.hoversubplots,T=b._plots||[],k=T[o],M=b._has("cartesian"),S=n.hovermode||b.hovermode,C="x"===(S||"").charAt(0),O="y"===(S||"").charAt(0);if(M&&(C||O)&&"axis"===w)for(var D=_.length,F=0;F$[0]._length||bt<0||bt>J[0]._length)return p.unhoverRaw(t,n)}else _t="xpx"in n?n.xpx:$[0]._length/2,bt="ypx"in n?n.ypx:J[0]._length/2;if(n.pointerX=_t+$[0]._offset,n.pointerY=bt+J[0]._offset,nt="xval"in n?y.flat(_,n.xval):y.p2c($,_t),it="yval"in n?y.flat(_,n.yval):y.p2c(J,bt),!r(nt[0])||!r(it[0]))return i.warn("Fx.hover failed",n,t),p.unhoverRaw(t,n)}var At=1/0;function Mt(e,a){for(ot=0;otmt&&(gt.splice(0,mt),At=gt[0].distance),M&&0!==rt&&0===gt.length){dt.distance=rt,dt.index=!1;var c=lt._module.hoverPoints(dt,ft,pt,"closest",{hoverLayer:b._hoverlayer});if(c&&(c=c.filter((function(t){return t.spikeDistance<=rt}))),c&&c.length){var h,p=c.filter((function(t){return t.xa.showspikes&&"hovered data"!==t.xa.spikesnap}));if(p.length){var d=p[0];r(d.x0)&&r(d.y0)&&(h=Et(d),(!vt.vLinePoint||vt.vLinePoint.spikeDistance>h.spikeDistance)&&(vt.vLinePoint=h))}var m=c.filter((function(t){return t.ya.showspikes&&"hovered data"!==t.ya.spikesnap}));if(m.length){var g=m[0];r(g.x0)&&r(g.y0)&&(h=Et(g),(!vt.hLinePoint||vt.hLinePoint.spikeDistance>h.spikeDistance)&&(vt.hLinePoint=h))}}}}}function St(t,e,r){for(var n,i=null,a=1/0,o=0;o0&&Math.abs(t.distance)Nt-1;jt--)Ht(gt[jt]);gt=Ut,Pt()}var Gt=t._hoverdata,Zt=[],Wt=W(t),Yt=Y(t);for(at=0;at1||gt.length>1)||"closest"===S&&xt&>.length>1,se=f.combine(b.plot_bgcolor||f.background,b.paper_bgcolor),le=R(gt,{gd:t,hovermode:S,rotateLabels:oe,bgColor:se,container:b._hoverlayer,outerContainer:b._paper.node(),commonLabelOpts:b.hoverlabel,hoverdistance:b.hoverdistance}),ue=le.hoverLabels;if(y.isUnifiedHover(S)||(function(t,e,r,n){var i,a,o,s,l,u,c,h=e?"xa":"ya",f=e?"ya":"xa",p=0,d=1,m=t.size(),g=new Array(m),y=0,v=n.minX,x=n.maxX,_=n.minY,b=n.maxY,w=function(t){return t*r._invScaleX},T=function(t){return t*r._invScaleY};function k(t){var e=t[0],r=t[t.length-1];if(a=e.pmin-e.pos-e.dp+e.size,o=r.pos+r.dp+r.size-e.pmax,a>.01){for(l=t.length-1;l>=0;l--)t[l].dp+=a;i=!1}if(!(o<.01)){if(a<-.01){for(l=t.length-1;l>=0;l--)t[l].dp-=o;i=!1}if(i){var n=0;for(s=0;se.pmax&&n++;for(s=t.length-1;s>=0&&!(n<=0);s--)(u=t[s]).pos>e.pmax-1&&(u.del=!0,n--);for(s=0;s=0;l--)t[l].dp-=o;for(s=t.length-1;s>=0&&!(n<=0);s--)(u=t[s]).pos+u.dp+u.size>e.pmax&&(u.del=!0,n--)}}}for(t.each((function(t){var n=t[h],i=t[f],a="x"===n._id.charAt(0),o=n.range;0===y&&o&&o[0]>o[1]!==a&&(d=-1);var s=0,l=a?r.width:r.height;if("x"===r.hovermode||"y"===r.hovermode){var u,c,p=N(t,e),m=t.anchor,k="end"===m?-1:1;if("middle"===m)c=(u=t.crossPos+(a?T(p.y-t.by/2):w(t.bx/2+t.tx2width/2)))+(a?T(t.by):w(t.bx));else if(a)c=(u=t.crossPos+T(E+p.y)-T(t.by/2-E))+T(t.by);else{var M=w(k*E+p.x),S=M+w(k*t.bx);u=t.crossPos+Math.min(M,S),c=t.crossPos+Math.max(M,S)}a?void 0!==_&&void 0!==b&&Math.min(c,b)-Math.max(u,_)>1&&("left"===i.side?(s=i._mainLinePosition,l=r.width):l=i._mainLinePosition):void 0!==v&&void 0!==x&&Math.min(c,x)-Math.max(u,v)>1&&("top"===i.side?(s=i._mainLinePosition,l=r.height):l=i._mainLinePosition)}g[y++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(a?A:1)/2,pmin:s,pmax:l}]})),g.sort((function(t,e){return t[0].posref-e[0].posref||d*(e[0].traceIndex-t[0].traceIndex)}));!i&&p<=m;){for(p++,i=!0,s=0;s.01){for(l=S.length-1;l>=0;l--)S[l].dp+=a;for(M.push.apply(M,S),g.splice(s+1,1),c=0,l=M.length-1;l>=0;l--)c+=M[l].dp;for(o=c/M.length,l=M.length-1;l>=0;l--)M[l].dp-=o;i=!1}else s++}g.forEach(k)}for(s=g.length-1;s>=0;s--){var L=g[s];for(l=L.length-1;l>=0;l--){var P=L[l],z=P.datum;z.offset=P.dp,z.del=P.del}}}(ue,oe,b,le.commonLabelBoundingBox),j(ue,oe,b._invScaleX,b._invScaleY)),u&&u.tagName){var ce=g.getComponentMethod("annotations","hasClickToShow")(t,Zt);c(e.select(u),ce?"pointer":"")}!u||s||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,Gt)||(Gt&&t.emit("plotly_unhover",{event:n,points:Gt}),t.emit("plotly_hover",{event:n,points:t._hoverdata,xaxes:$,yaxes:J,xvals:nt,yvals:it}))}(t,n,o,s,u)}))},t.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=W(i),o=Y(i),s=!1,l=R(t.map((function(t){var e=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,u=t.eventData;if(u){var c=Math.min(e,n),h=Math.max(e,n),p=Math.min(s,l),d=Math.max(s,l),m=t.trace;if(g.traceIs(m,"gl3d")){var y=i._fullLayout[m.scene]._scene.container,v=y.offsetLeft,x=y.offsetTop;c+=v,h+=v,p+=x,d+=x}u.bbox={x0:c+o,x1:h+o,y0:p+a,y1:d+a},r.inOut_bbox&&r.inOut_bbox.push(u.bbox)}else u=!1;return{color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontVariant:t.fontVariant,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:u}})),{gd:i,hovermode:"closest",rotateLabels:s,bgColor:r.bgColor||f.background,container:e.select(r.container),outerContainer:r.outerContainer||r.container}).hoverLabels,u=0,c=0;return l.sort((function(t,e){return t.y0-e.y0})).each((function(t,e){var n=t.y0-t.by/2;t.offset=n-5([\s\S]*)<\/extra>/;function R(t,r){var n=r.gd,a=n._fullLayout,l=r.hovermode,c=r.rotateLabels,p=r.bgColor,d=r.container,m=r.outerContainer,v=r.commonLabelOpts||{};if(0===t.length)return[[]];var T=r.fontFamily||x.HOVERFONT,k=r.fontSize||x.HOVERFONTSIZE,A=r.fontWeight||a.font.weight,M=r.fontStyle||a.font.style,S=r.fontVariant||a.font.variant,I=r.fontTextcase||a.font.textcase,L=r.fontLineposition||a.font.lineposition,P=r.fontShadow||a.font.shadow,O=t[0],D=O.xa,R=O.ya,F=l.charAt(0),N=F+"Label",j=O[N];if(void 0===j&&"multicategory"===D.type)for(var U=0;Ua.width-w&&(z=a.width-w),r.attr("d","M"+(y-z)+",0L"+(y-z+E)+","+b+E+"H"+w+"v"+b+(2*C+_.height)+"H"+-w+"V"+b+E+"H"+(y-z-E)+"Z"),y=z,Q.minX=y-w,Q.maxX=y+w,"top"===D.side?(Q.minY=x-(2*C+_.height),Q.maxY=x-C):(Q.minY=x+C,Q.maxY=x+(2*C+_.height))}else{var F,B,N;"right"===R.side?(F="start",B=1,N="",y=D._offset+D._length):(F="end",B=-1,N="-",y=D._offset),x=R._offset+(O.y0+O.y1)/2,s.attr("text-anchor",F),r.attr("d","M0,0L"+N+E+","+E+"V"+(C+_.height/2)+"h"+N+(2*C+_.width)+"V-"+(C+_.height/2)+"H"+N+E+"V-"+E+"Z"),Q.minY=x-(C+_.height/2),Q.maxY=x+(C+_.height/2),"right"===R.side?(Q.minX=y+E,Q.maxX=y+E+(2*C+_.width)):(Q.minX=y-E-(2*C+_.width),Q.maxX=y-E);var U,V=_.height/2,H=q-_.top-V,G="clip"+a._uid+"commonlabel"+R._id;if(y<_.width+2*C+E){U="M-"+(E+C)+"-"+V+"h-"+(_.width-C)+"V"+V+"h"+(_.width-C)+"Z";var Z=_.width-y+C;u.positionText(s,Z,H),"end"===F&&s.selectAll("tspan").each((function(){var t=e.select(this),r=h.tester.append("text").text(t.text()).call(h.font,g),i=X(n,r.node());Math.round(i.width)=0?dt:mt+vt=0?mt:Mt+vt=0?ft:pt+xt=0?pt:St+xt=0,"top"!==t.idealAlign&&J||!K?J?(N+=V/2,t.anchor="start"):t.anchor="middle":(N-=V/2,t.anchor="end"),t.crossPos=N;else{if(t.pos=N,J=F+U/2+Q<=H,K=F-U/2-Q>=0,"left"!==t.idealAlign&&J||!K)if(J)F+=U/2,t.anchor="start";else{t.anchor="middle";var tt=Q/2,et=F+tt-H,rt=F-tt;et>0&&(F-=et),rt<0&&(F+=-rt)}else F-=U/2,t.anchor="end";t.crossPos=F}b.attr("text-anchor",t.anchor),O&&z.attr("text-anchor",t.anchor),r.attr("transform",o(F,N)+(c?s(w):""))})),{hoverLabels:Et,commonLabelBoundingBox:Q}}function B(t,e,r,n,a,o){var s="",l="";void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name&&(t.trace._meta&&(t.name=i.templateString(t.name,t.trace._meta)),s=G(t.name,t.nameLength));var u=r.charAt(0),c="x"===u?"y":"x";void 0!==t.zLabel?(void 0!==t.xLabel&&(l+="x: "+t.xLabel+"
"),void 0!==t.yLabel&&(l+="y: "+t.yLabel+"
"),"choropleth"!==t.trace.type&&"choroplethmapbox"!==t.trace.type&&"choroplethmap"!==t.trace.type&&(l+=(l?"z: ":"")+t.zLabel)):e&&t[u+"Label"]===a?l=t[c+"Label"]||"":void 0===t.xLabel?void 0!==t.yLabel&&"scattercarpet"!==t.trace.type&&(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:"("+t.xLabel+", "+t.yLabel+")",(t.text||0===t.text)&&!Array.isArray(t.text)&&(l+=(l?"
":"")+t.text),void 0!==t.extraText&&(l+=(l?"
":"")+t.extraText),o&&""===l&&!t.hovertemplate&&(""===s&&o.remove(),l=s);var h=t.hovertemplate||!1;if(h){var f=t.hovertemplateLabels||t;t[u+"Label"]!==a&&(f[u+"other"]=f[u+"Val"],f[u+"otherLabel"]=f[u+"Label"]),l=(l=i.hovertemplateString(h,f,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(D,(function(e,r){return s=G(r,t.nameLength),""}))}return[l,s]}function N(t,e){var r=0,n=t.offset;return e&&(n*=-S,r=t.offset*M),{x:r,y:n}}function j(t,r,n,i){var a=function(t){return t*n},o=function(t){return t*i};t.each((function(t){var n=e.select(this);if(t.del)return n.remove();var i=n.select("text.nums"),s=t.anchor,l="end"===s?-1:1,c=function(t){var e={start:1,end:-1,middle:0}[t.anchor],r=e*(E+C),n=r+e*(t.txwidth+C);return"middle"===t.anchor&&(r-=t.tx2width/2,n+=t.txwidth/2+C),{alignShift:e,textShiftX:r,text2ShiftX:n}}(t),f=N(t,r),p=f.x,d=f.y,m="middle"===s;n.select("path").attr("d",m?"M-"+a(t.bx/2+t.tx2width/2)+","+o(d-t.by/2)+"h"+a(t.bx)+"v"+o(t.by)+"h-"+a(t.bx)+"Z":"M0,0L"+a(l*E+p)+","+o(E+d)+"v"+o(t.by/2-E)+"h"+a(l*t.bx)+"v-"+o(t.by)+"H"+a(l*E+p)+"V"+o(d-E)+"Z");var g=p+c.textShiftX,y=d+t.ty0-t.by/2+C,v=t.textAlign||"auto";"auto"!==v&&("left"===v&&"start"!==s?(i.attr("text-anchor","start"),g=m?-t.bx/2-t.tx2width/2+C:-t.bx-C):"right"===v&&"end"!==s&&(i.attr("text-anchor","end"),g=m?t.bx/2-t.tx2width/2-C:t.bx+C)),i.call(u.positionText,a(g),o(y)),t.tx2width&&(n.select("text.name").call(u.positionText,a(c.text2ShiftX+c.alignShift*C+p),o(d+t.ty0-t.by/2+C)),n.select("rect").call(h.setRect,a(c.text2ShiftX+(c.alignShift-1)*t.tx2width/2+p),o(d-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function U(t,e){var n=t.index,a=t.trace||{},o=t.cd[0],s=t.cd[n]||{};function l(t){return t||r(t)&&0===t}var u=Array.isArray(n)?function(t,e){var r=i.castOption(o,n,t);return l(r)?r:i.extractOption({},a,"",e)}:function(t,e){return i.extractOption(s,a,t,e)};function c(e,r,n){var i=u(r,n);l(i)&&(t[e]=i)}if(c("hoverinfo","hi","hoverinfo"),c("bgcolor","hbg","hoverlabel.bgcolor"),c("borderColor","hbc","hoverlabel.bordercolor"),c("fontFamily","htf","hoverlabel.font.family"),c("fontSize","hts","hoverlabel.font.size"),c("fontColor","htc","hoverlabel.font.color"),c("fontWeight","htw","hoverlabel.font.weight"),c("fontStyle","hty","hoverlabel.font.style"),c("fontVariant","htv","hoverlabel.font.variant"),c("nameLength","hnl","hoverlabel.namelength"),c("textAlign","hta","hoverlabel.align"),t.posref="y"===e||"closest"===e&&"h"===a.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=i.constrain(t.x0,0,t.xa._length),t.x1=i.constrain(t.x1,0,t.xa._length),t.y0=i.constrain(t.y0,0,t.ya._length),t.y1=i.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel="xLabel"in t?t.xLabel:d.hoverLabelText(t.xa,t.xLabelVal,a.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel="yLabel"in t?t.yLabel:d.hoverLabelText(t.ya,t.yLabelVal,a.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||"log"===t.xa.type&&t.xerr<=0)){var h=d.tickText(t.xa,t.xa.c2l(t.xerr),"hover").text;void 0!==t.xerrneg?t.xLabel+=" +"+h+" / -"+d.tickText(t.xa,t.xa.c2l(t.xerrneg),"hover").text:t.xLabel+=" ± "+h,"x"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||"log"===t.ya.type&&t.yerr<=0)){var f=d.tickText(t.ya,t.ya.c2l(t.yerr),"hover").text;void 0!==t.yerrneg?t.yLabel+=" +"+f+" / -"+d.tickText(t.ya,t.ya.c2l(t.yerrneg),"hover").text:t.yLabel+=" ± "+f,"y"===e&&(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(t.xLabel=void 0),-1===p.indexOf("y")&&(t.yLabel=void 0),-1===p.indexOf("z")&&(t.zLabel=void 0),-1===p.indexOf("text")&&(t.text=void 0),-1===p.indexOf("name")&&(t.name=void 0)),t}function V(t,e,r){var i,a,o=r.container,s=r.fullLayout,l=s._size,u=r.event,c=!!e.hLinePoint,p=!!e.vLinePoint;if(o.selectAll(".spikeline").remove(),p||c){var m=f.combine(s.plot_bgcolor,s.paper_bgcolor);if(c){var g,y,v=e.hLinePoint;i=v&&v.xa,"cursor"===(a=v&&v.ya).spikesnap?(g=u.pointerX,y=u.pointerY):(g=i._offset+v.x,y=a._offset+v.y);var x,_,b=n.readability(v.color,m)<1.5?f.contrast(m):v.color,w=a.spikemode,T=a.spikethickness,k=a.spikecolor||b,A=d.getPxPosition(t,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,_=g),-1!==w.indexOf("across")){var M=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(M=Math.min(M,a.position),S=Math.max(S,a.position)),x=l.l+M*l.w,_=l.l+S*l.w}o.insert("line",":first-child").attr({x1:x,x2:_,y1:y,y2:y,"stroke-width":T,stroke:k,"stroke-dasharray":h.dashStyle(a.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:_,y1:y,y2:y,"stroke-width":T+2,stroke:m}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==a.side?T:-T),cy:y,r:T,fill:k}).classed("spikeline",!0)}if(p){var E,C,I=e.vLinePoint;i=I&&I.xa,a=I&&I.ya,"cursor"===i.spikesnap?(E=u.pointerX,C=u.pointerY):(E=i._offset+I.x,C=a._offset+I.y);var L,P,z=n.readability(I.color,m)<1.5?f.contrast(m):I.color,O=i.spikemode,D=i.spikethickness,R=i.spikecolor||z,F=d.getPxPosition(t,i);if(-1!==O.indexOf("toaxis")||-1!==O.indexOf("across")){if(-1!==O.indexOf("toaxis")&&(L=F,P=C),-1!==O.indexOf("across")){var B=i._counterDomainMin,N=i._counterDomainMax;"free"===i.anchor&&(B=Math.min(B,i.position),N=Math.max(N,i.position)),L=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:P,"stroke-width":D,stroke:R,"stroke-dasharray":h.dashStyle(i.spikedash,D)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:P,"stroke-width":D+2,stroke:m}).classed("spikeline",!0).classed("crisp",!0)}-1!==O.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:E,cy:F-("top"!==i.side?D:-D),r:D,fill:R}).classed("spikeline",!0)}}}function H(t,e){return!e||e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint}function G(t,e){return u.plainText(t||"",{len:e,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Z(t,e,r){var n=e[t+"a"],i=e[t+"Val"],a=e.cd[0];if("category"===n.type||"multicategory"===n.type)i=n._categoriesMap[i];else if("date"===n.type){var o=e.trace[t+"periodalignment"];if(o){var s=e.cd[e.index],l=s[t+"Start"];void 0===l&&(l=s[t]);var u=s[t+"End"];void 0===u&&(u=s[t]);var c=u-l;"end"===o?i+=c:"middle"===o&&(i+=c/2)}i=n.d2c(i)}return a&&a.t&&a.t.posLetter===n._id&&("group"===r.boxmode||"group"===r.violinmode)&&(i+=a.t.dPos),i}function W(t){return t.offsetTop+t.clientTop}function Y(t){return t.offsetLeft+t.clientLeft}function X(t,e){var r=t._fullLayout,n=e.getBoundingClientRect(),a=n.left,o=n.top,s=a+n.width,l=o+n.height,u=i.apply3DTransform(r._invTransform)(a,o),c=i.apply3DTransform(r._invTransform)(s,l),h=u[0],f=u[1],p=c[0],d=c[1];return{x:h,y:f,width:p-h,height:d-f,top:Math.min(f,d),left:Math.min(h,p),right:Math.max(h,p),bottom:Math.max(f,d)}}})),Sr=f(((t,e)=>{var r=le(),n=q(),i=$e().isUnifiedHover;e.exports=function(t,e,a,o){o=o||{};var s=e.legend;function l(t){o.font[t]||(o.font[t]=s?e.legend.font[t]:e.font[t])}e&&i(e.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(o.bgcolor||(o.bgcolor=n.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),a("hoverlabel.bgcolor",o.bgcolor),a("hoverlabel.bordercolor",o.bordercolor),a("hoverlabel.namelength",o.namelength),r.coerceFont(a,"hoverlabel.font",o.font),a("hoverlabel.align",o.align)}})),Er=f(((t,e)=>{var r=le(),n=Sr(),i=B();e.exports=function(t,e){n(t,e,(function(n,a){return r.coerce(t,e,i,n,a)}))}})),Cr=f(((t,e)=>{var r=le(),n=N(),i=Sr();e.exports=function(t,e,a,o){var s=r.extendFlat({},o.hoverlabel);e.hovertemplate&&(s.namelength=-1),i(t,e,(function(i,a){return r.coerce(t,e,n,i,a)}),s)}})),Ir=f(((t,e)=>{var r=le(),n=B();e.exports=function(t,e){function i(i,a){return void 0!==e[i]?e[i]:r.coerce(t,e,n,i,a)}return i("clickmode"),i("hoversubplots"),i("hovermode")}})),Lr=f(((t,e)=>{var r=le(),n=B(),i=Ir(),a=Sr();e.exports=function(t,e){function o(i,a){return r.coerce(t,e,n,i,a)}i(t,e)&&(o("hoverdistance"),o("spikedistance")),"select"===o("dragmode")&&o("selectdirection");var s=e._has("mapbox"),l=e._has("map"),u=e._has("geo"),c=e._basePlotModules.length;"zoom"===e.dragmode&&((s||l||u)&&1===c||(s||l)&&u&&2===c)&&(e.dragmode="pan"),a(t,e,o),r.coerceFont(o,"hoverlabel.grouptitlefont",e.hoverlabel.font)}})),Pr=f(((t,e)=>{var r=le(),n=qt();function i(t,e,n,i){i=i||r.identity,Array.isArray(t)&&(e[0][n]=i(t))}e.exports=function(t){var e=t.calcdata,a=t._fullLayout;function o(t){return function(e){return r.coerceHoverinfo({hoverinfo:e},{_module:t._module},a)}}for(var s=0;s{var r=qt(),n=Mr().hover;e.exports=function(t,e,i){var a=r.getComponentMethod("annotations","onClick")(t,t._hoverdata);function o(){t.emit("plotly_click",{points:t._hoverdata,event:e})}void 0!==i&&n(t,e,i,!0),t._hoverdata&&e&&e.target&&(a&&a.then?a.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}})),Or=f(((t,e)=>{var r=v(),n=le(),i=fr(),a=$e(),o=B(),s=Mr();e.exports={moduleType:"component",name:"fx",constants:F(),schema:{layout:o},attributes:N(),layoutAttributes:o,supplyLayoutGlobalDefaults:Er(),supplyDefaults:Cr(),supplyLayoutDefaults:Lr(),calc:Pr(),getDistanceFunction:a.getDistanceFunction,getClosest:a.getClosest,inbox:a.inbox,quadrature:a.quadrature,appendArrayPointValue:a.appendArrayPointValue,castHoverOption:function(t,e,r){return n.castOption(t,e,"hoverlabel."+r)},castHoverinfo:function(t,e,r){return n.castOption(t,r,"hoverinfo",(function(r){return n.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(t){var e=n.isD3Selection(t)?t:r.select(t);e.selectAll("g.hovertext").remove(),e.selectAll(".spikeline").remove()},click:zr()}})),Dr=f((t=>{t.selectMode=function(t){return"lasso"===t||"select"===t},t.drawMode=function(t){return"drawclosedpath"===t||"drawopenpath"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},t.openMode=function(t){return"drawline"===t||"drawopenpath"===t},t.rectMode=function(t){return"select"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},t.freeMode=function(t){return"lasso"===t||"drawclosedpath"===t||"drawopenpath"===t},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}})),Rr=f(((t,e)=>{e.exports=function(t){var e=t._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each((function(t){t.regl&&t.regl.clear({color:!0,depth:!0})}))}})),Fr=f(((t,e)=>{e.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}})),Br=f(((t,e)=>{e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}})),Nr=f(((t,e)=>{var r=le().strTranslate;function n(t,e){switch(t.type){case"log":return t.p2d(e);case"date":return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:n,r2p:function(t,e){switch(t.type){case"log":return t.d2p(e);case"date":return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e="y"===t._id.charAt(0)?1:0;return function(r){return n(t,r[e])}},getTransform:function(t){return r(t.xaxis._offset,t.yaxis._offset)}}})),jr=f((t=>{var e=Je(),r=Br(),n=r.CIRCLE_SIDES,i=r.SQRT2,a=Nr(),o=a.p2r,s=a.r2p,l=[0,3,4,5,6,1,2],u=[0,3,4,1,2];function c(t,e){return Math.abs(t-e)<=1e-6}function h(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}t.writePaths=function(t){var e=t.length;if(!e)return"M0,0Z";for(var r="",n=0;n0&&c{var r=Dr(),n=r.drawMode,i=r.openMode,a=Br(),o=a.i000,s=a.i090,l=a.i180,u=a.i270,c=a.cos45,h=a.sin45,f=Nr(),p=f.p2r,d=f.r2p,m=_e().clearOutline,g=jr(),y=g.readPaths,v=g.writePaths,x=g.ellipseOver,_=g.fixDatesForPaths;function b(t,e,r){var n,a=t[0][0],f=e.gd,m=a.getAttribute("d"),g=f._fullLayout.newshape,b=e.plotinfo,w=e.isActiveShape,T=b.xaxis,k=b.yaxis,A=!!b.domain||!b.xaxis,M=!!b.domain||!b.yaxis,S=i(r),E=y(m,f,b,w),C={editable:!0,visible:g.visible,name:g.name,showlegend:g.showlegend,legend:g.legend,legendwidth:g.legendwidth,legendgroup:g.legendgroup,legendgrouptitle:{text:g.legendgrouptitle.text,font:g.legendgrouptitle.font},legendrank:g.legendrank,label:g.label,xref:A?"paper":T._id,yref:M?"paper":k._id,layer:g.layer,opacity:g.opacity,line:{color:g.line.color,width:g.line.width,dash:g.line.dash}};if(S||(C.fillcolor=g.fillcolor,C.fillrule=g.fillrule),1===E.length&&(n=E[0]),n&&5===n.length&&"drawrect"===r)C.type="rect",C.x0=n[0][1],C.y0=n[0][2],C.x1=n[2][1],C.y1=n[2][2];else if(n&&"drawline"===r)C.type="line",C.x0=n[0][1],C.y0=n[0][2],C.x1=n[1][1],C.y1=n[1][2];else if(n&&"drawcircle"===r){C.type="circle";var I=n[o][1],L=n[s][1],P=n[l][1],z=n[u][1],O=n[o][2],D=n[s][2],R=n[l][2],F=n[u][2],B=b.xaxis&&("date"===b.xaxis.type||"log"===b.xaxis.type),N=b.yaxis&&("date"===b.yaxis.type||"log"===b.yaxis.type);B&&(I=d(b.xaxis,I),L=d(b.xaxis,L),P=d(b.xaxis,P),z=d(b.xaxis,z)),N&&(O=d(b.yaxis,O),D=d(b.yaxis,D),R=d(b.yaxis,R),F=d(b.yaxis,F));var j=(L+z)/2,U=(O+R)/2,V=x({x0:j,y0:U,x1:j+(z-L+P-I)/2*c,y1:U+(F-D+R-O)/2*h});B&&(V.x0=p(b.xaxis,V.x0),V.x1=p(b.xaxis,V.x1)),N&&(V.y0=p(b.yaxis,V.y0),V.y1=p(b.yaxis,V.y1)),C.x0=V.x0,C.y0=V.y0,C.x1=V.x1,C.y1=V.y1}else C.type="path",T&&k&&_(E,T,k),C.path=v(E),n=null;return C}e.exports={newShapes:function(t,e){if(t.length&&t[0][0]){var r=e.gd,i=e.isActiveShape,a=e.dragmode,o=(r.layout||{}).shapes||[];if(!n(a)&&void 0!==i){var s=r._fullLayout._activeShapeIndex;if(s{var r=Dr().selectMode,n=_e().clearOutline,i=jr(),a=i.readPaths,o=i.writePaths,s=i.fixDatesForPaths;e.exports=function(t,e){if(t.length){var i=t[0][0];if(i){var l=i.getAttribute("d"),u=e.gd,c=u._fullLayout.newselection,h=e.plotinfo,f=h.xaxis,p=h.yaxis,d=e.isActiveSelection,m=e.dragmode,g=(u.layout||{}).selections||[];if(!r(m)&&void 0!==d){var y=u._fullLayout._activeSelectionIndex;if(y{e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}})),Hr=f((t=>{var e=qr(),r=le(),n=ir();function i(t,e){var r=0;return(e=e||0)&&t&&("category"===t.type||"multicategory"===t.type)&&(r=(t.r2p(1)-t.r2p(0))*e),r}t.rangeToShapePosition=function(t){return"log"===t.type?t.r2d:function(t){return t}},t.shapePositionToRange=function(t){return"log"===t.type?t.d2r:function(t){return t}},t.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace("_"," ")),t(e)}},t.encodeDate=function(t){return function(e){return t(e).replace(" ","_")}},t.extractPathCoords=function(t,n,i){var a=[];return t.match(e.segmentRE).forEach((function(t){var o=n[t.charAt(0)].drawn;if(void 0!==o){var s=t.substr(1).match(e.paramRE);if(s&&!(s.lengthp&&(t="X"),t}));return a>p&&(d=d.replace(/[\s,]*X.*/,""),r.log("Ignoring extra params in segment "+t)),c+d}))}(o,l,c);if("pixel"===o.xsizemode){var A=l(o.xanchor);h=A+o.x0+b,f=A+o.x1+w}else h=l(o.x0)+b,f=l(o.x1)+w;if("pixel"===o.ysizemode){var M=c(o.yanchor);p=M-o.y0+T,d=M-o.y1+k}else p=c(o.y0)+T,d=c(o.y1)+k;if("line"===m)return"M"+h+","+p+"L"+f+","+d;if("rect"===m)return"M"+h+","+p+"H"+f+"V"+d+"H"+h+"Z";var S=(h+f)/2,E=(p+d)/2,C=Math.abs(S-h),I=Math.abs(E-p),L="A"+C+","+I,P=S+C+","+E;return"M"+P+L+" 0 1,1 "+S+","+(E-I)+L+" 0 0,1 "+P+"Z"}})),Gr=f(((t,e)=>{var r=le(),n=ir(),i=Se(),a=Qe(),o=jr().readPaths,s=Hr(),l=s.getPathString,u=Dt(),c=Me().FROM_TL;e.exports=function(t,e,h,f){if(f.selectAll(".shape-label").remove(),h.label.text||h.label.texttemplate){var p;if(h.label.texttemplate){var d={};if("path"!==h.type){var m=n.getFromId(t,h.xref),g=n.getFromId(t,h.yref);for(var y in u){var v=u[y](h,m,g);void 0!==v&&(d[y]=v)}}p=r.texttemplateStringForShapes(h.label.texttemplate,{},t._fullLayout._d3locale,d)}else p=h.label.text;var x,_,b,w,T={"data-index":e},k=h.label.font,A=f.append("g").attr(T).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(p);if(h.path){var M=l(t,h),S=o(M,t);x=1/0,b=1/0,_=-1/0,w=-1/0;for(var E=0;E=t?e-n:n-e,-180/Math.PI*Math.atan2(i,a)}(x,b,_,w):0),A.call((function(e){return e.call(a.font,k).attr({}),i.convertToTspans(e,t),e}));var G=function(t,e,r,n,i,a,o){var s,l,u,h,f=i.label.textposition,p=i.label.textangle,d=i.label.padding,m=i.type,g=Math.PI/180*a,y=Math.sin(g),v=Math.cos(g),x=i.label.xanchor,_=i.label.yanchor;if("line"===m){"start"===f?(s=t,l=e):"end"===f?(s=r,l=n):(s=(t+r)/2,l=(e+n)/2),"auto"===x&&(x="start"===f?"auto"===p?r>t?"left":rt?"right":rt?"right":rt?"left":r{var r=le().strTranslate,n=fr(),i=Dr(),a=i.drawMode,o=i.selectMode,s=qt(),l=q(),u=Br(),c=u.i000,h=u.i090,f=u.i180,p=u.i270,d=_e().clearOutlineControllers,m=jr(),g=m.pointsOnRectangle,y=m.pointsOnEllipse,v=m.writePaths,x=Ur().newShapes,_=Ur().createShapeObj,b=Vr(),w=Gr();function T(t,e){var r,n,i,a=t[e][1],o=t[e][2],s=t.length;return n=t[r=(e+1)%s][1],i=t[r][2],n===a&&i===o&&(n=t[r=(e+2)%s][1],i=t[r][2]),[r,n,i]}e.exports=function t(e,i,u,m){m||(m=0);var k=u.gd;function A(){t(e,i,u,m++),(y(e[0])||u.hasText)&&M({redrawing:!0})}function M(t){var e={};void 0!==u.isActiveShape&&(u.isActiveShape=!1,e=x(i,u)),void 0!==u.isActiveSelection&&(u.isActiveSelection=!1,e=b(i,u),k._fullLayout._reselect=!0),Object.keys(e).length&&s.call((t||{}).redrawing?"relayout":"_guiRelayout",k,e)}var S,E,C,I,L,P=k._fullLayout._zoomlayer,z=u.dragmode,O=a(z),D=o(z);if((O||D)&&(k._fullLayout._outlining=!0),d(k),i.attr("d",v(e)),m||!u.isActiveShape&&!u.isActiveSelection||(L=function(t,e){for(var r=0;r1&&(2!==t.length||"Z"!==t[1][0])&&(0===I&&(t[0][0]="M"),e[C]=t,A(),M())}}()}}function V(t,r){(function(t,r){if(e.length)for(var n=0;n{var r=v(),n=qt(),i=le(),a=ir(),o=jr().readPaths,s=Zr(),l=Gr(),u=_e().clearOutlineControllers,c=q(),h=Qe(),f=ye().arrayEditor,p=fr(),d=pr(),m=qr(),g=Hr(),y=g.getPathString;function x(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll("path").remove(),e._shapeLowerLayer.selectAll("path").remove(),e._shapeUpperLayer.selectAll("text").remove(),e._shapeLowerLayer.selectAll("text").remove(),e._plots){var n=e._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;ib?(M=v,I="y0",S=b,L="y1"):(M=b,I="y1",S=v,L="y0"),rt(r),at(u,o),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l="";"paper"!==n&&!o.autorange&&(l+=n),"paper"!==i&&!s.autorange&&(l+=i),h.setClipUrl(t,l?"clip"+r._fullLayout._uid+l:null,r)}(e,o,t),et.moveFn="move"===D?nt:it,et.altKey=r.altKey)},doneFn:function(){_(t)||(d(e),ot(u),T(e,t,o),n.call("_guiRelayout",t,c.getUpdateObj()))},clickFn:function(){_(t)||ot(u)}};function rt(r){if(_(t))D=null;else if(B)D="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=et.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!N&&i>10&&a>10&&!r.shiftKey?p.getCursor(o/i,1-s/a):"move";d(e,l),D=l.split("-")[0]}}function nt(r,n){if("path"===o.type){var i=function(t){return t},a=i,c=i;R?j("xanchor",o.xanchor=K(w+r)):(a=function(t){return K($(t)+r)},V&&"date"===V.type&&(a=g.encodeDate(a))),F?j("yanchor",o.yanchor=Q(A+n)):(c=function(t){return Q(J(t)+n)},H&&"date"===H.type&&(c=g.encodeDate(c))),j("path",o.path=k(O,a,c))}else R?j("xanchor",o.xanchor=K(w+r)):(j("x0",o.x0=K(f+r)),j("x1",o.x1=K(x+r))),F?j("yanchor",o.yanchor=Q(A+n)):(j("y0",o.y0=Q(v+n)),j("y1",o.y1=Q(b+n)));e.attr("d",y(t,o)),at(u,o),l(t,s,o,U)}function it(r,n){if(N){var i=function(t){return t},a=i,c=i;R?j("xanchor",o.xanchor=K(w+r)):(a=function(t){return K($(t)+r)},V&&"date"===V.type&&(a=g.encodeDate(a))),F?j("yanchor",o.yanchor=Q(A+n)):(c=function(t){return Q(J(t)+n)},H&&"date"===H.type&&(c=g.encodeDate(c))),j("path",o.path=k(O,a,c))}else if(B){if("resize-over-start-point"===D){var h=f+r,p=F?v-n:v+n;j("x0",o.x0=R?h:K(h)),j("y0",o.y0=F?p:Q(p))}else if("resize-over-end-point"===D){var d=x+r,m=F?b-n:b+n;j("x1",o.x1=R?d:K(d)),j("y1",o.y1=F?m:Q(m))}}else{var _=function(t){return-1!==D.indexOf(t)},T=_("n"),q=_("s"),G=_("w"),Z=_("e"),W=T?M+n:M,Y=q?S+n:S,X=G?E+r:E,tt=Z?C+r:C;F&&(T&&(W=M-n),q&&(Y=S-n)),(!F&&Y-W>10||F&&W-Y>10)&&(j(I,o[I]=F?W:Q(W)),j(L,o[L]=F?Y:Q(Y))),tt-X>10&&(j(P,o[P]=R?X:K(X)),j(z,o[z]=R?tt:K(tt)))}e.attr("d",y(t,o)),at(u,o),l(t,s,o,U)}function at(t,e){(R||F)&&function(){var r="path"!==e.type,n=t.selectAll(".visual-cue").data([0]);n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var a=$(R?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,m.paramIsX))),o=J(F?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,m.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),R&&F){var s="M"+(a-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(R){var l="M"+(a-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";n.attr("d",l)}else{var u="M"+(a-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";n.attr("d",u)}}()}function ot(t){t.selectAll(".visual-cue").remove()}p.init(et),tt.node().onmousemove=rt}(t,F,v,e,u,D):!0===v.editable&&F.style("pointer-events",z||c.opacity(C)*E<=.5?"stroke":"all");F.node().addEventListener("click",(function(){return function(t,e){if(b(t)){var r=+e.node().getAttribute("data-index");if(r>=0){if(r===t._fullLayout._activeShapeIndex)return void A(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=A,x(t)}}}(t,F)}))}v._input&&!0===v.visible&&("above"===v.layer?M(t._fullLayout._shapeUpperLayer):"paper"===v.xref||"paper"===v.yref?M(t._fullLayout._shapeLowerLayer):"between"===v.layer?M(w.shapelayerBetween):w._hadPlotinfo?M((w.mainplotinfo||w).shapelayer):M(t._fullLayout._shapeLowerLayer))}function T(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(t,n?"clip"+e._fullLayout._uid+n:null,e)}function k(t,e,r){return t.replace(m.segmentRE,(function(t){var n=0,i=t.charAt(0),a=m.paramIsX[i],o=m.paramIsY[i],s=m.numParams[i];return i+t.substr(1).replace(m.paramRE,(function(t){return n>=s||(a[n]?t=e(t):o[n]&&(t=r(t)),n++),t}))}))}function A(t){b(t)&&t._fullLayout._activeShapeIndex>=0&&(u(t),delete t._fullLayout._activeShapeIndex,x(t))}e.exports={draw:x,drawOne:w,eraseActiveShape:function(t){if(b(t)){u(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e{var r=qt(),n=ke(),i=xe(),a=Fr(),o=Wr().eraseActiveShape,s=le(),l=s._,u=e.exports={};function c(t,e){var n,a,o=e.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,u=t._fullLayout,c={},h=i.list(t,null,!0),f=u._cartesianSpikesEnabled;if("zoom"===s){var p,d="in"===l?.5:2,m=(1+d)/2,g=(1-d)/2;for(a=0;a{var r=Yr(),n=Object.keys(r),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],a=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),o=[];n.forEach((function(t){!function(t){if(-1===a.indexOf(t._cat||t.name)){var e=t.name,r=(t._cat||t.name).toLowerCase();-1===o.indexOf(e)&&o.push(e),-1===o.indexOf(r)&&o.push(r)}}(r[t])})),o.sort(),e.exports={DRAW_MODES:i,backButtons:a,foreButtons:o}})),$r=f(((t,e)=>{Xr(),e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}})),Jr=f(((t,e)=>{var r=le(),n=q(),i=ye(),a=$r();e.exports=function(t,e){var o=t.modebar||{},s=i.newContainer(e,"modebar");function l(t,e){return r.coerce(o,s,a,t,e)}l("orientation"),l("bgcolor",n.addOpacity(e.paper_bgcolor,.5));var u=n.contrast(n.rgb(e.modebar.bgcolor));l("color",n.addOpacity(u,.3)),l("activecolor",n.addOpacity(u,.7)),l("uirevision",e.uirevision),l("add"),l("remove")}})),Kr=f(((t,e)=>{var r=v(),n=T(),i=le(),a=Fr(),o=g().version,s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement("div"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var u=l.prototype;u.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",e=e.reverse());var o=n.modebar,s="#"+a+" .modebar-group";document.querySelectorAll(s).forEach((function(t){t.style.backgroundColor=o.bgcolor}));var l=!this.hasButtons(e),u=this.hasLogo!==r.displaylogo,c=this.locale!==r.locale;if(this.locale=r.locale,(l||u||c)&&(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var h=this.getLogo();r.watermark&&(h.className=h.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(h,this.element.childNodes[0]):this.element.appendChild(h),this.hasLogo=!0}this.updateActiveButton(),i.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)},u.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==e.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},u.createGroup=function(){var t=document.createElement("div");t.className="modebar-group";var e=this.graphInfo._fullLayout.modebar;return t.style.backgroundColor=e.bgcolor,t},u.createButton=function(t){var e=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var i=t.title;void 0===i?i=t.name:"function"==typeof i&&(i=i(this.graphInfo)),(i||0===i)&&n.setAttribute("data-title",i),void 0!==t.attr&&n.setAttribute("data-attr",t.attr);var o=t.val;if(void 0!==o&&("function"==typeof o&&(o=o(this.graphInfo)),n.setAttribute("data-val",o)),"function"!=typeof t.click)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),n.setAttribute("data-toggle",t.toggle||!1),t.toggle&&r.select(n).classed("active",!0);var s=t.icon;return"function"==typeof s?n.appendChild(s()):n.appendChild(this.createIcon(s||a.question)),n.setAttribute("data-gravity",t.gravity||"n"),n},u.createIcon=function(t){var e,r=n(t.height)?Number(t.height):t.ascent-t.descent,i="http://www.w3.org/2000/svg";if(t.path){(e=document.createElementNS(i,"svg")).setAttribute("viewBox",[0,0,t.width,r].join(" ")),e.setAttribute("class","icon");var a=document.createElementNS(i,"path");a.setAttribute("d",t.path),t.transform?a.setAttribute("transform",t.transform):void 0!==t.ascent&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+t.ascent+")"),e.appendChild(a)}return t.svg&&(e=s.parseFromString(t.svg,"application/xml").childNodes[0]),e.setAttribute("height","1em"),e.setAttribute("width","1em"),e},u.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,n=void 0!==t?t.getAttribute("data-attr"):null;this.buttonElements.forEach((function(t){var a=t.getAttribute("data-val")||!0,o=t.getAttribute("data-attr"),s="true"===t.getAttribute("data-toggle"),l=r.select(t),u=function(t,r){var n=e.modebar,i=t.querySelector(".icon path");i&&(r||t.matches(":hover")?i.style.fill=n.activecolor:i.style.fill=n.color)};if(s){if(o===n){var c=!l.classed("active");l.classed("active",c),u(t,c)}}else{var h=null===o?o:i.nestedProperty(e,o).get();l.classed("active",h===a),u(t,h===a)}}))},u.hasButtons=function(t){var e=this.buttons;if(!e||t.length!==e.length)return!1;for(var r=0;r{var r=xe(),n=Ye(),i=qt(),a=$e().isUnifiedHover,o=Kr(),s=Yr(),l=Xr().DRAW_MODES,u=le().extendDeep;e.exports=function(t){var e=t._fullLayout,c=t._context,h=e._modeBar;if(c.displayModeBar||c.watermark){if(!Array.isArray(c.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(c.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var f,p=c.modeBarButtons;f=Array.isArray(p)&&p.length?function(t){for(var e=u([],t),r=0;r1?(P=["toggleHover"],z=["resetViews"]):y?(L=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):g?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(L=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],z=["resetViewMapbox"]):w?(L=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):v?P=["hoverClosestPie"]:A?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],m&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(function(t){for(var e=0;e{e.exports={moduleType:"component",name:"modebar",layoutAttributes:$r(),supplyLayoutDefaults:Jr(),manage:Qr()}})),en=f(((t,e)=>{var r=Me().FROM_BL;e.exports=function(t,e,n){void 0===n&&(n=r[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}})),rn=f((t=>{var e=le(),r=nr(),n=xe().id2name,i=Ie(),a=en(),o=er(),s=k().ALMOST_EQUAL,l=Me().FROM_BL;function u(t,r,a){var o=a.axIds,s=a.layoutOut,l=a.hasImage,u=s._axisConstraintGroups,p=s._axisMatchGroups,d=r._id,m=d.charAt(0),g=((s._splomAxes||{})[m]||{})[d]||{},y=r._id,v="x"===y.charAt(0);function x(n,a){return e.coerce(t,r,i,n,a)}r._matchGroup=null,r._constraintGroup=null,x("constrain",l?"domain":"range"),e.coerce(t,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var _,b,w=r.type,T=[];for(_=0;_n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function d(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;os*x)||T)for(i=0;iz&&FL&&(L=F);f/=(L-I)/(2*P),I=u.l2r(I),L=u.l2r(L),u.range=u._input.range=S{var e=v(),r=qt(),n=ke(),i=le(),a=Se(),o=Rr(),s=q(),l=Qe(),u=tr(),c=tn(),h=ir(),f=Me(),p=rn(),d=p.enforce,m=p.clean,g=nr().doAutoRange,y="start",x=ve().zindexSeparator;function _(t,e,r){for(var n=0;n=t[1]||i[1]<=t[0])&&a[0]e[0])return!0}return!1}function b(r){var a,o,u,p,d,m,g=r._fullLayout,y=g._size,v=y.p,b=h.list(r,"",!0);if(g._paperdiv.style({width:r._context.responsive&&g.autosize&&!r._context._hasZeroWidth&&!r.layout.width?"100%":g.width+"px",height:r._context.responsive&&g.autosize&&!r._context._hasZeroHeight&&!r.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(l.setSize,g.width,g.height),r._context.setBackground(r,g.paper_bgcolor),t.drawMainTitle(r),c.manage(r),!g._has("cartesian"))return n.previousPromises(r);function T(t,e,r){var n=t._lw/2;return"x"===t._id.charAt(0)?e?"top"===r?e._offset-v-n:e._offset+e._length+v+n:y.t+y.h*(1-(t.position||0))+n%1:e?"right"===r?e._offset+e._length+v+n:e._offset-v-n:y.l+y.w*(t.position||0)+n%1}for(a=0;a.5?"t":"b",o=t._fullLayout.margin[a],s=0;return"paper"===e.yref?s=r+e.pad.t+e.pad.b:"container"===e.yref&&(s=function(t,e,r,n,i){var a=0;return"middle"===r&&(a+=i/2),"t"===t?("top"===r&&(a+=i),a+=n-e*n):("bottom"===r&&(a+=i),a+=e*n),a}(a,n,i,t._fullLayout.height,r)+e.pad.t+e.pad.b),s>o?s:0}(t,r,m);if(g>0){(function(t,e,r,a){var o="title.automargin",s=t._fullLayout.title,l=s.y>.5?"t":"b",u={x:s.x,y:s.y,t:0,b:0},c={};"paper"===s.yref&&function(t,e,r,n,a){var o="paper"===e.yref?t._fullLayout._size.h:t._fullLayout.height,s=i.isTopAnchor(e)?n:n-a,l="b"===r?o-s:s;return!(i.isTopAnchor(e)&&"t"===r||i.isBottomAnchor(e)&&"b"===r)&&l{var r=jr().readPaths,n=Zr(),i=_e().clearOutlineControllers,a=q(),o=Qe(),s=ye().arrayEditor,l=Hr(),u=l.getPathString;function c(t){var e=t._fullLayout;for(var r in i(t),e._selectionLayer.selectAll("path").remove(),e._plots){var n=e._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;k--){var A=i.append("path").attr(g).style("opacity",k?.1:y).call(a.stroke,x).call(a.fill,v).call(o.dashLine,k?"solid":b,k?4+_:_);if(p(A,t,f),w){var M=s(t.layout,"selections",f);A.style({cursor:"move"});var S={element:A.node(),plotinfo:m,gd:t,editHelpers:M,isActiveSelection:!0},E=r(l,t);n(E,A,S)}else A.style("pointer-events",k?"all":"none");T[k]=A}var C=T[0];T[1].node().addEventListener("click",(function(){return function(t,e){if(h(t)){var r=+e.node().getAttribute("data-index");if(r>=0){if(r===t._fullLayout._activeSelectionIndex)return void d(t);t._fullLayout._activeSelectionIndex=r,t._fullLayout._deactivateSelection=d,c(t)}}}(t,C)}))}(t._fullLayout._selectionLayer)}function p(t,e,r){var n=r.xref+r.yref;o.setClipUrl(t,"clip"+e._fullLayout._uid+n,e)}function d(t){h(t)&&t._fullLayout._activeSelectionIndex>=0&&(i(t),delete t._fullLayout._activeSelectionIndex,c(t))}e.exports={draw:c,drawOne:f,activateLastSelection:function(t){if(h(t)){var e=t._fullLayout.selections.length-1;t._fullLayout._activeSelectionIndex=e,t._fullLayout._deactivateSelection=d,c(t)}}}})),on=f(((t,e)=>{e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n("check",{seg1:t,seg2:e})},segmentChop:function(t,e){return n("div_seg",{seg:t,pt:e}),n("chop",{seg:t,pt:e})},statusRemove:function(t){return n("pop_seg",{seg:t})},segmentUpdate:function(t){return n("seg_update",{seg:t})},segmentNew:function(t,e){return n("new_seg",{seg:t,primary:e})},segmentRemove:function(t){return n("rem_seg",{seg:t})},tempStatus:function(t,e,r){return n("temp_status",{seg:t,above:e,below:r})},rewind:function(t){return n("rewind",{seg:t})},status:function(t,e,r){return n("status",{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n("vert",{x:e}))},log:function(t){return"string"!=typeof t&&(t=JSON.stringify(t,!1," ")),n("log",{txt:t})},reset:function(){return n("reset")},selected:function(t){return n("selected",{segs:t})},chainStart:function(t){return n("chain_start",{seg:t})},chainRemoveHead:function(t,e){return n("chain_rem_head",{index:t,pt:e})},chainRemoveTail:function(t,e){return n("chain_rem_tail",{index:t,pt:e})},chainNew:function(t,e){return n("chain_new",{pt1:t,pt2:e})},chainMatch:function(t){return n("chain_match",{index:t})},chainClose:function(t){return n("chain_close",{index:t})},chainAddHead:function(t,e){return n("chain_add_head",{index:t,pt:e})},chainAddTail:function(t,e){return n("chain_add_tail",{index:t,pt:e})},chainConnect:function(t,e){return n("chain_con",{index1:t,index2:e})},chainReverse:function(t){return n("chain_rev",{index:t})},chainJoin:function(t,e){return n("chain_join",{index1:t,index2:e})},done:function(){return n("done")}}}})),sn=f(((t,e)=>{e.exports=function(t){"number"!=typeof t&&(t=1e-10);var e={epsilon:function(e){return"number"==typeof e&&(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)>=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])t!=o-i>t&&(a-u)*(i-c)/(o-c)+u-n>t&&(s=!s),a=u,o=c}return s}};return e}})),ln=f(((t,e)=>{e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return!(null===e||e===t.root)},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&&!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&&(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}}})),un=f(((t,e)=>{var r=ln();e.exports=function(t,e,n){function i(t,e){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:null,below:null},otherFill:null}}function a(t,e,r){return{id:n?n.segmentId():-1,start:t,end:e,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var o=r.create();function s(t,r){o.insertBefore(t,(function(n){var i=function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt);return i<0}))}function l(t,e){var n=function(t,e){var n=r.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return s(n,t.end),n}(t,e);return function(t,e,n){var i=r.node({isStart:!1,pt:e.end,seg:e,primary:n,other:t,status:null});t.other=i,s(i,t.pt)}(n,t,e),n}function u(t,e){var r=a(e,t.seg.end,t.seg);return function(t,e){n&&n.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,s(t.other,t.pt)}(t,e),l(r,t.primary)}function c(i,a){var s=r.create();function l(t){return s.findTransition((function(r){var n=function(t,r){var n=t.seg.start,i=t.seg.end,a=r.seg.start,o=r.seg.end;return e.pointsCollinear(n,a,o)?e.pointsCollinear(i,a,o)||e.pointAboveOrOnLine(i,a,o)?1:-1:e.pointAboveOrOnLine(n,a,o)?1:-1}(t,r.ev);return n>0}))}function c(t,r){var i=t.seg,a=r.seg,o=i.start,s=i.end,l=a.start,c=a.end;n&&n.checkIntersection(i,a);var h=e.linesIntersect(o,s,l,c);if(!1===h){if(!e.pointsCollinear(o,s,l)||e.pointsSame(o,c)||e.pointsSame(s,l))return!1;var f=e.pointsSame(o,l),p=e.pointsSame(s,c);if(f&&p)return r;var d=!f&&e.pointBetween(o,l,c),m=!p&&e.pointBetween(s,l,c);if(f)return m?u(r,s):u(t,c),r;d&&(p||(m?u(r,s):u(t,c)),u(r,o))}else 0===h.alongA&&(-1===h.alongB?u(t,l):0===h.alongB?u(t,h.pt):1===h.alongB&&u(t,c)),0===h.alongB&&(-1===h.alongA?u(r,o):0===h.alongA?u(r,h.pt):1===h.alongA&&u(r,s));return!1}for(var h=[];!o.isEmpty();){var f=o.getHead();if(n&&n.vert(f.pt[0]),f.isStart){let e=function(){if(d){var t=c(f,d);if(t)return t}return!!m&&c(f,m)};n&&n.segmentNew(f.seg,f.primary);var p=l(f),d=p.before?p.before.ev:null,m=p.after?p.after.ev:null;n&&n.tempStatus(f.seg,!!d&&d.seg,!!m&&m.seg);var g,y=e();if(y&&(t?(g=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above):y.seg.otherFill=f.seg.myFill,n&&n.segmentUpdate(y.seg),f.other.remove(),f.remove()),o.getHead()!==f){n&&n.rewind(f.seg);continue}if(t)g=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=m?m.seg.myFill.above:i,f.seg.myFill.above=g?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill){var v;v=m?f.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:f.primary?a:i,f.seg.otherFill={above:v,below:v}}n&&n.status(f.seg,!!d&&d.seg,!!m&&m.seg),f.other.status=p.insert(r.node({ev:f}))}else{var x=f.status;if(null===x)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(x.prev)&&s.exists(x.next)&&c(x.prev.ev,x.next.ev),n&&n.statusRemove(x.ev.seg),x.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}h.push(f.seg)}o.getHead().remove()}return n&&n.done(),h}return t?{addRegion:function(t){for(var r,n=t[t.length-1],a=0;a{e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},u=s,c=0;c{function r(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[i]&&n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&&r.selected(n),n}var n={union:function(t,e){return r(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return r(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return r(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return r(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return r(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=n})),fn=f(((t,e)=>{var r={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i{var r,n=on(),i=sn(),a=un(),o=cn(),s=hn(),l=fn(),u=!1,c=i();function h(t,e,n){var i=r.segments(t),a=r.segments(e),o=n(r.combine(i,a));return r.polygon(o)}r={buildLog:function(t){return!0===t?u=n():!1===t&&(u=!1),!1!==u&&u.list},epsilon:function(t){return c.epsilon(t)},segments:function(t){var e=a(!0,c,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:a(!1,c,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:s.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:s.intersect(t.combined,u),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:s.difference(t.combined,u),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:s.differenceRev(t.combined,u),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:s.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:o(t.segments,c,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return l.toPolygon(r,t)},polygonToGeoJSON:function(t){return l.fromPolygon(r,c,t)},union:function(t,e){return h(t,e,r.selectUnion)},intersect:function(t,e){return h(t,e,r.selectIntersect)},difference:function(t,e){return h(t,e,r.selectDifference)},differenceRev:function(t,e){return h(t,e,r.selectDifferenceRev)},xor:function(t,e){return h(t,e,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),e.exports=r})),dn=f(((t,e)=>{e.exports=function(t,e,r,n){var i=t[0],a=t[1],o=!1;void 0===r&&(r=0),void 0===n&&(n=e.length);for(var s=n-r,l=0,u=s-1;la!=p>a&&i<(f-c)*(a-h)/(p-h)+c&&(o=!o)}return o}})),mn=f(((t,e)=>{var r=Et().dot,n=k().BADNUM,i=e.exports={};i.tester=function(t){var e,r=t.slice(),i=r[0][0],a=i,o=r[0][1],s=o;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),e=1;ea||u===n||us||e&&l(t))}:function(t,e){var l=t[0],u=t[1];if(l===n||la||u===n||us)return!1;var c,h,f,p,d,m=r.length,g=r[0][0],y=r[0][1],v=0;for(c=1;cMath.max(h,g)||u>Math.max(f,y)))if(uc||Math.abs(r(o,f))>i)return!0;return!1},i.filter=function(t,e){var r=[t[0]],n=0,a=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(a+1);for(var u=l+1;u1&&o(t.pop()),{addPt:o,raw:t,filtered:r}}})),gn=f(((t,e)=>{e.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}})),yn=f(((t,e)=>{var r=pn(),n=dn(),i=qt(),a=Qe().dashStyle,o=q(),s=Or(),l=$e().makeEventData,u=Dr(),c=u.freeMode,h=u.rectMode,f=u.drawMode,p=u.openMode,d=u.selectMode,m=Hr(),g=qr(),y=Zr(),v=_e().clearOutline,x=jr(),_=x.handleEllipse,b=x.readPaths,w=Ur().newShapes,T=Vr(),k=an().activateLastSelection,A=le(),M=A.sorterAsc,S=mn(),E=Kt(),C=xe().getFromId,I=Rr(),L=nn().redrawReglTraces,P=gn(),z=P.MINSELECT,O=S.filter,D=S.tester,R=Nr(),F=R.p2r,B=R.axValue,N=R.getTransform;function j(t){return void 0!==t.subplot}function U(t,e,r,n,i,a,o){var s,l,u,c,h,f,d,m,g,v=e._hoverdata,x=e._fullLayout.clickmode.indexOf("event")>-1,_=[];if(function(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}(v)){Z(t,e,a);var b=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n0?function(t,e){var r,n,i,a=[];for(i=0;i0&&a.push(r);if(1===a.length&&a[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i1||(n+=e.selectedpoints.length)>1))return!1;return 1===n}(s)&&(f=J(b))){for(o&&o.remove(),g=0;g=0})(a)&&a._fullLayout._deactivateShape(a),function(t){return t._fullLayout._activeSelectionIndex>=0}(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout._zoomlayer,s=f(r),l=d(r);if(s||l){var u,c,h=o.selectAll(".select-outline-"+n.id);h&&a._fullLayout._outlining&&(s&&(u=w(h,t)),u&&i.call("_guiRelayout",a,{shapes:u}),l&&!j(t)&&(c=T(h,t)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",a,{selections:c}).then((function(){e&&k(a)}))),a._fullLayout._outlining=!1)}n.selection={},n.selection.selectionDefs=t.selectionDefs=[],n.selection.mergedPolygons=t.mergedPolygons=[]}function Y(t){return t._id}function X(t,e,r,n){if(!t.calcdata)return[];var i,a,o,s=[],l=e.map(Y),u=r.map(Y);for(o=0;o0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(i)>-1}function K(t,e,r){var n,a;for(n=0;n-1&&e;if(!a&&e){var et=ot(t,!0);if(et.length){var nt=et[0].xref,pt=et[0].yref;if(nt&&pt){var dt=ut(et);ct([C(t,nt,"x"),C(t,pt,"y")])(Q,dt)}}t._fullLayout._noEmitSelectedAtStart?t._fullLayout._noEmitSelectedAtStart=!1:tt&&ht(t,Q),p._reselect=!1}if(!a&&p._deselect){var mt=p._deselect;(function(t,e,r){for(var n=0;n=0)k._fullLayout._deactivateShape(k);else if(!x){var r=M.clickmode;E.done(Mt).then((function(){if(E.clear(Mt),2===t){for(_t.remove(),J=0;J-1&&U(e,k,n.xaxes,n.yaxes,n.subplot,n,_t),"event"===r&&ht(k,void 0);s.click(k,e,L.id)})).catch(A.error)}},n.doneFn=function(){kt.remove(),E.done(Mt).then((function(){E.clear(Mt),!S&&$&&n.selectionDefs&&($.subtract=xt,n.selectionDefs.push($),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,Y)),(S||x)&&W(n,S),n.doneFnCompleted&&n.doneFnCompleted(St),b&&ht(k,at)})).catch(A.error)}},clearOutline:v,clearSelectionsCache:W,selectOnClick:U}})),vn=f(((t,e)=>{e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]})),xn=f(((t,e)=>{e.exports={axisRefDescription:function(t,e,r){return["If set to a",t,"axis id (e.g. *"+t+"* or","*"+t+"2*), the `"+t+"` position refers to a",t,"coordinate. If set to *paper*, the `"+t+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+r+"). If set to a",t,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+t+"2 domain* refers to the domain of the second",t," axis and a",t,"position of 0.5 refers to the","point between the",e,"and the",r,"of the domain of the","second",t,"axis."].join(" ")}}})),_n=f(((t,e)=>{var r=vn(),n=R(),i=ve(),a=ye().templatedArray;xn(),e.exports=a("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:n({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:n({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})})),bn=f(((t,e)=>{e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}})),wn=f(((t,e)=>{e.exports=function(t){return{valType:"color",editType:"style",anim:!0}}})),Tn=f(((t,e)=>{var r=Ce().axisHoverFormat,n=Ot().texttemplateAttrs,i=Ot().hovertemplateAttrs,a=Pe(),o=R(),s=Pt().dash,l=Pt().pattern,u=Qe(),c=bn(),h=D().extendFlat,f=wn();e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:{valType:"any",dflt:0,editType:"calc"},yperiod:{valType:"any",dflt:0,editType:"calc"},xperiod0:{valType:"any",editType:"calc"},yperiod0:{valType:"any",editType:"calc"},xperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},yperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},xhoverformat:r("x"),yhoverformat:r("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:n({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:h({},s,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:f(!0),fillgradient:h({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:l,marker:h({symbol:{valType:"enumerated",values:u.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:h({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},a("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},a("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:o({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}})),kn=f(((t,e)=>{var r=_n(),n=Tn().line,i=Pt().dash,a=D().extendFlat,o=Lt().overrideAll,s=ye().templatedArray;xn(),e.exports=o(s("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:a({},r.xref,{}),yref:a({},r.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:n.color,width:a({},n.width,{min:1,dflt:1}),dash:a({},i,{dflt:"dot"})}}),"arraydraw","from-root")})),An=f(((t,e)=>{var r=le(),n=ir(),i=Ne(),a=kn(),o=Hr();function s(t,e,i){function s(n,i){return r.coerce(t,e,a,n,i)}var l=s("path"),u="path"!==s("type",l?"path":"rect");u&&delete e.path,s("opacity"),s("line.color"),s("line.width"),s("line.dash");for(var c=["x","y"],h=0;h<2;h++){var f,p,d,m=c[h],g={_fullLayout:i},y=n.coerceRef(t,e,g,m);if((f=n.getFromId(g,y))._selectionIndices.push(e._index),d=o.rangeToShapePosition(f),p=o.shapePositionToRange(f),u){var v=m+"0",x=m+"1",_=t[v],b=t[x];t[v]=p(t[v],!0),t[x]=p(t[x],!0),n.coercePosition(e,g,s,y,v),n.coercePosition(e,g,s,y,x);var w=e[v],T=e[x];void 0!==w&&void 0!==T&&(e[v]=d(w),e[x]=d(T),t[v]=_,t[x]=b)}}u&&r.noneOrAll(t,e,["x0","x1","y0","y1"])}e.exports=function(t,e){i(t,e,{name:"selections",handleItemDefaults:s});for(var r=e.selections,n=0;n{e.exports=function(t,e,r){r("newselection.mode"),r("newselection.line.width")&&(r("newselection.line.color"),r("newselection.line.dash")),r("activeselection.fillcolor"),r("activeselection.opacity")}})),Sn=f(((t,e)=>{var r=qt(),n=le(),i=xe();e.exports=function(t){return function(e,a){var o=e[t];if(Array.isArray(o))for(var s=r.subplotsRegistry.cartesian,l=s.idRegex,u=a._subplots,c=u.xaxis,h=u.yaxis,f=u.cartesian,p=a._has("cartesian"),d=0;d{var r=an(),n=yn();e.exports={moduleType:"component",name:"selections",layoutAttributes:kn(),supplyLayoutDefaults:An(),supplyDrawNewSelectionDefaults:Mn(),includeBasePlot:Sn()("selections"),draw:r.draw,drawOne:r.drawOne,reselect:n.reselect,prepSelect:n.prepSelect,clearOutline:n.clearOutline,clearSelectionsCache:n.clearSelectionsCache,selectOnClick:n.selectOnClick}})),Cn=f(((t,e)=>{var r=v(),n=le(),i=n.numberFormat,a=O(),o=lr(),s=qt(),l=n.strTranslate,u=Se(),c=q(),h=Qe(),f=Or(),p=ir(),d=pr(),m=fr(),g=Dr(),y=g.selectingOrDrawing,x=g.freeMode,_=Me().FROM_TL,b=Rr(),w=nn().redrawReglTraces,T=ke(),k=xe().getFromId,A=En().prepSelect,M=En().clearOutline,S=En().selectOnClick,E=en(),C=ve(),I=C.MINDRAG,L=C.MINZOOM,P=!0;function z(t,e,r,i){var a=n.ensureSingle(t.draglayer,e,r,(function(e){e.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",t.id)}));return a.call(d,i),a.node()}function D(t,e,n,i,a,o,s){var l=z(t,"rect",e,n);return r.select(l).call(h.setRect,i,a,o,s),l}function R(t,e){for(var r=0;r=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function j(t,e,r,n,i){return t.append("path").attr("class","zoombox").style({fill:e>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",l(r,n)).attr("d",i+"Z")}function U(t,e,r){return t.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform",l(e,r)).attr("d","M0,0Z")}function V(t,e,r,n,i,a){t.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),H(t,e,i,a)}function H(t,e,r,n){r||(t.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),e.transition().style("opacity",1).duration(200))}function G(t){r.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Z(t){P&&t.data&&t._context.showTips&&(n.notifier(n._(t,"Double-click to zoom back out"),"long"),P=!1)}function W(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return"M"+(t.l-3.5)+","+(t.t-.5+e)+"h3v"+-e+"h"+e+"v-3h-"+(e+3)+"ZM"+(t.r+3.5)+","+(t.t-.5+e)+"h-3v"+-e+"h"+-e+"v-3h"+(e+3)+"ZM"+(t.r+3.5)+","+(t.b+.5-e)+"h-3v"+e+"h"+-e+"v3h"+(e+3)+"ZM"+(t.l-3.5)+","+(t.b+.5-e)+"h3v"+e+"h"+e+"v3h-"+(e+3)+"Z"}function Y(t,e,r,i,a){for(var o,s,l,u,c=!1,h={},f={},p=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m=0)o._fullLayout._deactivateShape(o);else{var l=o._fullLayout.clickmode;if(G(o),2===n&&!yt&&function(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];it&&(r=r.concat(H)),at&&(r=r.concat(J)),nt.xaxes&&(r=r.concat(nt.xaxes)),nt.yaxes&&(r=r.concat(nt.yaxes));var n,i,a={};if("reset+autosize"===e)for(e="autosize",i=0;i-1&&S(a,o,H,J,e.id,Lt),l.indexOf("event")>-1&&f.click(o,a,e.id);else if(1===n&&yt){var c=g?z:P,h="s"===g||"w"===v?0:1,p=c._name+".range["+h+"]",d=function(t,e){var r,n=t.range[e],a=Math.abs(n-t.range[1-e]);return"date"===t.type?n:"log"===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(c,h),m="left",y="middle";if(c.fixedrange)return;g?(y="n"===g?"top":"bottom","right"===c.side&&(m="right")):"e"===v&&(m="right"),o._context.showAxisRangeEntryBoxes&&r.select(_t).call(u.makeEditable,{gd:o,immediate:!0,background:o._fullLayout.paper_bgcolor,text:String(d),fill:c.tickfont?c.tickfont.color:"#444",horizontalAlign:m,verticalAlign:y}).on("edit",(function(t){var e=c.d2r(t);void 0!==e&&s.call("_guiRelayout",o,p,e)}))}}}function Ot(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(tt,pt*e+bt)),i=Math.max(0,Math.min(et,dt*r+wt)),a=Math.abs(n-bt),o=Math.abs(i-wt);function s(){St="",Tt.r=Tt.l,Tt.t=Tt.b,Ct.attr("d","M0,0Z")}if(Tt.l=Math.min(bt,n),Tt.r=Math.max(bt,n),Tt.t=Math.min(wt,i),Tt.b=Math.max(wt,i),rt.isSubplotConstrained)a>L||o>L?(St="xy",a/tt>o/et?(o=a*et/tt,wt>i?Tt.t=wt-o:Tt.b=wt+o):(a=o*tt/et,bt>n?Tt.l=bt-a:Tt.r=bt+a),Ct.attr("d",W(Tt))):s();else if(nt.isSubplotConstrained)if(a>L||o>L){St="xy";var l=Math.min(Tt.l/tt,(et-Tt.b)/et),u=Math.max(Tt.r/tt,(et-Tt.t)/et);Tt.l=l*tt,Tt.r=u*tt,Tt.b=(1-l)*et,Tt.t=(1-u)*et,Ct.attr("d",W(Tt))}else s();else!at||o0){var c;if(nt.isSubplotConstrained||!it&&1===at.length){for(c=0;c1&&(void 0!==a.maxallowed&&st===(a.range[0]1&&(void 0!==o.maxallowed&<===(o.range[0]{var e=v(),r=Or(),n=fr(),i=pr(),a=Cn().makeDragBox,o=ve().DRAGGERSIZE;t.initInteractions=function(i){var s=i._fullLayout;if(i._context.staticPlot)e.select(i).selectAll(".drag").remove();else if(s._has("cartesian")||s._has("splom")){Object.keys(s._plots||{}).sort((function(t,e){if((s._plots[t].mainplot&&!0)===(s._plots[e].mainplot&&!0)){var r=t.split("y"),n=e.split("y");return r[0]===n[0]?Number(r[1]||1)-Number(n[1]||1):Number(r[0]||1)-Number(n[0]||1)}return s._plots[t].mainplot?1:-1})).forEach((function(t){var e=s._plots[t],l=e.xaxis,u=e.yaxis;if(!e.mainplot){var c=a(i,e,l._offset,u._offset,l._length,u._length,"ns","ew");c.onmousemove=function(e){i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===t&&i._fullLayout._plots[t]&&r.hover(i,e,t)},r.hover(i,e,t),i._fullLayout._lasthover=c,i._fullLayout._hoversubplot=t},c.onmouseout=function(t){i._dragging||(i._fullLayout._hoversubplot=null,n.unhover(i,t))},i._context.showAxisDragHandles&&(a(i,e,l._offset-o,u._offset-o,o,o,"n","w"),a(i,e,l._offset+l._length,u._offset-o,o,o,"n","e"),a(i,e,l._offset-o,u._offset+u._length,o,o,"s","w"),a(i,e,l._offset+l._length,u._offset+u._length,o,o,"s","e"))}if(i._context.showAxisDragHandles){if(t===l._mainSubplot){var h=l._mainLinePosition;"top"===l.side&&(h-=o),a(i,e,l._offset+.1*l._length,h,.8*l._length,o,"","ew"),a(i,e,l._offset,h,.1*l._length,o,"","w"),a(i,e,l._offset+.9*l._length,h,.1*l._length,o,"","e")}if(t===u._mainSubplot){var f=u._mainLinePosition;"right"!==u.side&&(f-=o),a(i,e,f,u._offset+.1*u._length,o,.8*u._length,"ns",""),a(i,e,f,u._offset+.9*u._length,o,.1*u._length,"s",""),a(i,e,f,u._offset,o,.1*u._length,"n","")}}}));var l=s._hoverlayer.node();l.onmousemove=function(t){t.target=i._fullLayout._lasthover,r.hover(i,t,s._hoversubplot)},l.onclick=function(t){t.target=i._fullLayout._lasthover,r.click(i,t)},l.onmousedown=function(t){i._fullLayout._lasthover.onmousedown(t)},t.updateFx(i)}},t.updateFx=function(t){var e=t._fullLayout,r="pan"===e.dragmode?"move":"crosshair";i(e._draggers,r)}})),Ln=f(((t,e)=>{var r=qt();e.exports=function(t){for(var e,n,i=r.layoutArrayContainers,a=r.layoutArrayRegexes,o=t.split("[")[0],s=0;s{var e=M(),r=$(),n=X(),i=Zt().sorterAsc,a=qt();t.containerArrayMatch=Ln();var o=t.isAddVal=function(t){return"add"===t||e(t)},s=t.isRemoveVal=function(t){return null===t||"remove"===t};t.applyContainerArrayChanges=function(t,e,l,u,c){var h=e.astr,f=a.getComponentMethod(h,"supplyLayoutDefaults"),p=a.getComponentMethod(h,"draw"),d=a.getComponentMethod(h,"drawOne"),m=u.replot||u.recalc||f===r||p===r,g=t.layout,y=t._fullLayout;if(l[""]){Object.keys(l).length>1&&n.warn("Full array edits are incompatible with other edits",h);var v=l[""][""];if(s(v))e.set(null);else{if(!Array.isArray(v))return n.warn("Unrecognized full array edit value",h,v),!0;e.set(v)}return!m&&(f(g,y),p(t),!0)}var x,_,b,w,T,k,A,M,S=Object.keys(l).map(Number).sort(i),E=e.get(),C=E||[],I=c(y,h).get(),L=[],P=-1,z=C.length;for(x=0;xC.length-(A?0:1))n.warn("index out of range",h,b);else if(void 0!==k)T.length>1&&n.warn("Insertion & removal are incompatible with edits to the same index.",h,b),s(k)?L.push(b):A?("add"===k&&(k={}),C.splice(b,0,k),I&&I.splice(b,0,{})):n.warn("Unrecognized full object edit value",h,b,k),-1===P&&(P=b);else for(_=0;_=0;x--)C.splice(L[x],1),I&&I.splice(L[x],1);if(C.length?E||e.set(C):e.set(null),m)return!1;if(f(g,y),d!==r){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x=P);x++)O.push(b);for(x=P;x{var e=T(),r=(_t(),qt()),n=le(),i=ke(),a=xe(),o=q(),s=a.cleanId,l=a.getFromTrace,u=r.traceIs;function c(t,e){var r=t[e],n=e.charAt(0);r&&"paper"!==r&&(t[e]=s(r,n,!0))}function h(t){if(!n.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,("string"==typeof e||"number"==typeof e)&&String(e)}function f(t,e,r,n){if(r&&!n)return t;if(n&&!r||!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i0&&n.log("Clearing previous rejected promises from queue."),t._promises=[]},t.cleanLayout=function(e){var r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(i.subplotsRegistry.cartesian||{}).attrRegex,l=((i.subplotsRegistry.polar||{}).attrRegex,(i.subplotsRegistry.ternary||{}).attrRegex,(i.subplotsRegistry.gl3d||{}).attrRegex,Object.keys(e));for(r=0;r3?(x.x=1.02,x.xanchor="left"):x.x<-2&&(x.x=-.02,x.xanchor="right"),x.y>3?(x.y=1.02,x.yanchor="bottom"):x.y<-2&&(x.y=-.02,x.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),o.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var a=0;a0)return t.substr(0,e)}t.hasParent=function(t,e){for(var r=g(e);r;){if(r in t)return!0;r=g(r)}return!1};var y=["x","y","z"];t.clearAxisTypes=function(t,e,r){for(var i=0;i{var e=v(),r=T(),n=he(),i=le(),a=i.nestedProperty,o=pe(),s=de(),l=qt(),u=ge(),c=ke(),h=ir(),f=or(),p=Ie(),d=Qe(),m=q(),g=In().initInteractions,y=Ae(),x=En().clearOutline,_=W().dfltConfig,b=Pn(),w=zn(),k=nn(),A=Lt(),M=ve().AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit("plotly_afterplot")}function C(t,e){try{t._fullLayout._paper.style("background",e)}catch(t){i.error(t)}}function I(t,e){C(t,m.combine(e,"white"))}function L(t,r){if(!t._context){t._context=i.extendDeep({},_);var a=e.select("base");t._context._baseUrl=a.size()&&a.attr("href")?window.location.href.split("#")[0]:""}var o,s,l,u=t._context;if(r){for(s=Object.keys(r),o=0;o=t.data.length||i<-t.data.length)throw new Error(r+" must be valid indices for gd.data.");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if(void 0===e)throw new Error("currentIndices is a required argument.");if(Array.isArray(e)||(e=[e]),z(t,e,"currentIndices"),void 0!==r&&!Array.isArray(r)&&(r=[r]),void 0!==r&&z(t,r,"newIndices"),void 0!==r&&e.length!==r.length)throw new Error("current and new indices must be of equal length.")}function D(t,e,n,o,s){!function(t,e,r,n){var a=i.isPlainObject(n);if(!Array.isArray(t.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(e))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var o in z(t,r,"indices"),e){if(!Array.isArray(e[o])||e[o].length!==r.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in n)||!Array.isArray(n[o])||n[o].length!==e[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(t,e,n,o);for(var l=function(t,e,n,o){var s,l,u,c,h,f=i.isPlainObject(o),p=[];for(var d in Array.isArray(n)||(n=[n]),n=P(n,t.data.length-1),e)for(var m=0;m0&&"string"!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+"."+R,j=z.parts.slice(0,D).join("."),U=a(t.layout,j).get(),V=a(c,j).get(),q=z.get();if(void 0!==O){k[P]=O,S[P]="reverse"===R?O:B(q);var H=u.getLayoutValObject(c,z.parts);if(H&&H.impliedEdits&&null!==O)for(var G in H.impliedEdits)E(i.relativeAttr(P,G),H.impliedEdits[G]);if(-1!==["width","height"].indexOf(P))if(O){E("autosize",null);var W="height"===P?"width":"height";E(W,c[W])}else c[P]=t._initialAutoSize[P];else if("autosize"===P)E("width",O?null:c.width),E("height",O?null:c.height);else if(F.match(Z))L(F),a(c,j+"._inputRange").set(null);else if(F.match(Y)){L(F),a(c,j+"._inputRange").set(null);var $=a(c,j).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else F.match(X)&&a(c,j+"._inputDomain").set(null);if("type"===R){C=U;var K="linear"===V.type&&"log"===O,Q="log"===V.type&&"linear"===O;if(K||Q){if(C&&C.range)if(V.autorange)K&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var tt=C.range[0],et=C.range[1];K?(tt<=0&&et<=0&&E(j+".autorange",!0),tt<=0?tt=et/1e6:et<=0&&(et=tt/1e6),E(j+".range[0]",Math.log(tt)/Math.LN10),E(j+".range[1]",Math.log(et)/Math.LN10)):(E(j+".range[0]",Math.pow(10,tt)),E(j+".range[1]",Math.pow(10,et)))}else E(j+".autorange",!0);Array.isArray(c._subplots.polar)&&c._subplots.polar.length&&c[z.parts[0]]&&"radialaxis"===z.parts[1]&&delete c[z.parts[0]]._subplot.viewInitial["radialaxis.range"],l.getComponentMethod("annotations","convertCoords")(t,V,O,E),l.getComponentMethod("images","convertCoords")(t,V,O,E)}else E(j+".autorange",!0),E(j+".range",null);a(c,j+"._inputRange").set(null)}else if(R.match(M)){var rt=a(c,P).get(),nt=(O||{}).type;(!nt||"-"===nt)&&(nt="linear"),l.getComponentMethod("annotations","convertCoords")(t,rt,nt,E),l.getComponentMethod("images","convertCoords")(t,rt,nt,E)}var it=b.containerArrayMatch(P);if(it){r=it.array,n=it.index;var at=it.property,ot=H||{editType:"calc"};""!==n&&""===at&&(b.isAddVal(O)?S[P]=null:b.isRemoveVal(O)?S[P]=(a(s,r).get()||[])[n]:i.warn("unrecognized full object value",e)),A.update(T,ot),y[r]||(y[r]={});var st=y[r][n];st||(st=y[r][n]={}),st[at]=O,delete e[P]}else"reverse"===R?(U.range?U.range.reverse():(E(j+".autorange",!0),U.range=[1,0]),V.autorange?T.calc=!0:T.plot=!0):("dragmode"===P&&(!1===O&&!1!==q||!1!==O&&!1===q)||c._has("scatter-like")&&c._has("regl")&&"dragmode"===P&&("lasso"===O||"select"===O)&&"lasso"!==q&&"select"!==q?T.plot=!0:H?A.update(T,H):T.calc=!0,z.set(O))}}for(r in y)b.applyContainerArrayChanges(t,p(s,r),y[r],T,p)||(T.plot=!0);for(var lt in I){var ut=(C=h.getFromId(t,lt))&&C._constraintGroup;if(ut)for(var ct in T.calc=!0,ut)I[ct]||(h.getFromId(t,ct)._constraintShrinkable=!0)}(J(t)||e.height||e.width)&&(T.plot=!0);var ht=c.shapes;for(n=0;n1;)if(n.pop(),void 0!==(r=a(e,n.join(".")+".uirevision").get()))return r;return e.uirevision}function it(t,e){for(var r=0;r=a.length?a[0]:a[t]:a}function l(t){return Array.isArray(o)?t>=o.length?o[0]:o[t]:o}function u(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(o,h){var f=0;function p(t){return Array.isArray(a)?f>=a.length?t.transitionOpts=a[f]:t.transitionOpts=a[0]:t.transitionOpts=a,f++,t}var d,m,g=[],y=null==e,v=Array.isArray(e);if(y||v||!i.isPlainObject(e)){if(y||-1!==["string","number"].indexOf(typeof e))for(d=0;d0&&bb)&&T.push(m);g=T}}g.length>0?function(e){if(0!==e.length){for(var i=0;in._timeToNext&&function(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,c.transition(t,e.frame.data,e.frame.layout,w.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&&e.onComplete()})),t.emit("plotly_animatingframe",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}()};e()}()}}(g):(t.emit("plotly_animated"),o())}))},t.addFrames=function(t,e,r){if(t=i.getGraphDiv(t),null==e)return Promise.resolve();if(!i.isPlotDiv(t))throw new Error("This element is not a Plotly plot: "+t+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,l,u=t._transitionData._frames,h=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+e);var f=u.length+2*e.length,p=[],d={};for(n=e.length-1;n>=0;n--)if(i.isPlainObject(e[n])){var m=e[n].name,g=(h[m]||d[m]||{}).name,y=e[n].name,v=h[g]||d[g];g&&y&&"number"==typeof y&&v&&S<5&&(S++,i.warn('addFrames: overwriting frame "'+(h[g]||d[g]).name+'" with a frame whose name of type "number" also equates to "'+g+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&&i.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),d[m]={name:m},p.push({frame:c.supplyFrameDefaults(e[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index>e.index?-1:t.index=0;n--){if("number"==typeof(a=p[n].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+t._transitionData._counter++];);if(h[a.name]){for(o=0;o=0;r--)n=e[r],o.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var u=c.modifyFrames,h=c.modifyFrames,f=[t,l],p=[t,o];return s&&s.add(t,u,f,h,p),c.modifyFrames(t,o)},t.addTraces=function e(r,n,a){r=i.getGraphDiv(r);var o,l,u=[],c=t.deleteTraces,h=e,f=[r,u],p=[r,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if(void 0===e)throw new Error("traces must be defined.");for(Array.isArray(e)||(e=[e]),n=0;n=0&&r=0&&r{var e=qt();t.getDelay=function(t){return t._has&&(t._has("gl3d")||t._has("mapbox")||t._has("map"))?500:0},t.getRedrawFunc=function(t){return function(){e.getComponentMethod("colorbar","draw")(t)}},t.encodeSVG=function(t){return"data:image/svg+xml,"+encodeURIComponent(t)},t.encodeJSON=function(t){return"data:application/json,"+encodeURIComponent(t)};var r=window.URL||window.webkitURL;t.createObjectURL=function(t){return r.createObjectURL(t)},t.revokeObjectURL=function(t){return r.revokeObjectURL(t)},t.createBlob=function(t,e){if("svg"===e)return new window.Blob([t],{type:"image/svg+xml;charset=utf-8"});if("full-json"===e)return new window.Blob([t],{type:"application/json;charset=utf-8"});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i{var r=v(),n=(le(),Qe()),i=q(),a=(Ae(),/"/g),o="TOBESTRIPPED",s=new RegExp('("'+o+")|("+o+'")',"g");e.exports=function(t,e,l){var u,c=t._fullLayout,h=c._paper,f=c._toppaper,p=c.width,d=c.height;h.insert("rect",":first-child").call(n.setRect,0,0,p,d).call(i.fill,c.paper_bgcolor);var m=c._basePlotModules||[];for(u=0;u")?"":e.html(t).text()}));return e.remove(),n}(_),(_=_.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(s,"'")}})),Fn=f(((t,e)=>{var r=le(),n=fe().EventEmitter,i=Dn();e.exports=function(t){var e=t.emitter||new n,a=new Promise((function(n,a){var o,s,l=window.Image,u=t.svg,c=t.format||"png",h=t.canvas,f=t.scale||1,p=t.width||300,d=t.height||150,m=f*p,g=f*d,y=h.getContext("2d",{willReadFrequently:!0}),v=new l;"svg"===c||r.isSafari()?s=i.encodeSVG(u):(o=i.createBlob(u,"svg"),s=i.createObjectURL(o)),h.width=m,h.height=g,v.onload=function(){var r;switch(o=null,i.revokeObjectURL(s),"svg"!==c&&y.drawImage(v,0,0,m,g),c){case"jpeg":r=h.toDataURL("image/jpeg");break;case"png":r=h.toDataURL("image/png");break;case"webp":r=h.toDataURL("image/webp");break;case"svg":r=s;break;default:var l="Image format is not jpeg, png, svg or webp.";if(a(new Error(l)),!t.promise)return e.emit("error",l)}n(r),t.promise||e.emit("success",r)},v.onerror=function(r){if(o=null,i.revokeObjectURL(s),a(r),!t.promise)return e.emit("error",r)},v.src=s}));return t.promise?a:e}})),Bn=f(((t,e)=>{var r=T(),n=On(),i=ke(),a=le(),o=Dn(),s=Rn(),l=Fn(),u=g().version,c={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};e.exports=function(t,e){var h,f,p,d;function m(t){return!(t in e)||a.validate(e[t],c[t])}if(e=e||{},a.isPlainObject(t)?(h=t.data||[],f=t.layout||{},p=t.config||{},d={}):(t=a.getGraphDiv(t),h=a.extendDeep([],t.data),f=a.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!m("width")&&null!==e.width||!m("height")&&null!==e.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+a.join2(c.format.values,", "," or ")+".");var g={};function y(t,r){return a.coerce(e,g,c,t,r)}var v=y("format"),x=y("width"),_=y("height"),b=y("scale"),w=y("setBackground"),T=y("imageDataOnly"),k=document.createElement("div");k.style.position="absolute",k.style.left="-5000px",document.body.appendChild(k);var A=a.extendFlat({},f);x?A.width=x:null===e.width&&r(d.width)&&(A.width=d.width),_?A.height=_:null===e.height&&r(d.height)&&(A.height=d.height);var M=a.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=o.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,o.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=s(k,v,b),c=k._fullLayout.width,h=k._fullLayout.height;function f(){n.purge(k),document.body.removeChild(k)}if("full-json"===v){var p=i.graphJson(k,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),f(),t(T?p:o.encodeJSON(p))}if(f(),"svg"===v)return t(T?r:o.encodeSVG(r));var d=document.createElement("canvas");d.id=a.randstr(),l({format:v,width:c,height:h,scale:b,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){n.newPlot(k,h,A,M).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(o.IMAGE_URL_PREFIX,""):t}(e))})).catch((function(t){e(t)}))}))}})),Nn=f(((t,e)=>{var r=le(),n=ke(),i=ge(),a=W().dfltConfig,o=r.isPlainObject,s=Array.isArray,l=r.isArrayOrTypedArray;function u(t,e,n,i,a,c){c=c||[];for(var h=Object.keys(t),m=0;mx.length&&i.push(f("unused",a,y.concat(x.length)));var A,M,S,E,C,I=x.length,L=Array.isArray(k);if(L&&(I=Math.min(I,k.length)),2===_.dimensions)for(M=0;Mx[M].length&&i.push(f("unused",a,y.concat(M,x[M].length)));var P=x[M].length;for(A=0;A<(L?Math.min(P,k[M].length):P);A++)S=L?k[M][A]:k,E=v[M][A],C=x[M][A],r.validate(E,S)?C!==E&&C!==+E&&i.push(f("dynamic",a,y.concat(M,A),E,C)):i.push(f("value",a,y.concat(M,A),E))}else i.push(f("array",a,y.concat(M),v[M]));else for(M=0;M1&&p.push(f("object","layout"))),n.supplyDefaults(d);for(var m=d._fullData,g=l.length,y=0;y{var r=le(),n=Dn();e.exports=function(t,e,i){var a=document.createElement("a"),o="download"in a;return new Promise((function(s,l){var u,c;if(o)return u=n.createBlob(t,i),c=n.createObjectURL(u),a.href=c,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),n.revokeObjectURL(c),u=null,s(e);if(r.isSafari()){var h="svg"===i?",":";base64,";return n.octetStream(h+encodeURIComponent(t)),s(e)}l(new Error("download error"))}))}})),Un=f(((t,e)=>{var r=le(),n=Bn(),i=jn();Dn(),e.exports=function(t,e){var a;return r.isPlainObject(t)||(a=r.getGraphDiv(t)),(e=e||{}).format=e.format||"png",e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(r,o){a&&a._snapshotInProgress&&o(new Error("Snapshotting already in progress.")),a&&(a._snapshotInProgress=!0);var s=n(t,e),l=e.filename||t.fn||"newplot";l+="."+e.format.replace("-","."),s.then((function(t){return a&&(a._snapshotInProgress=!1),i(t,l,e.format)})).then((function(t){r(t)})).catch((function(t){a&&(a._snapshotInProgress=!1),o(t)}))}))}})),Vn=f((t=>{var e=le(),r=e.isPlainObject,n=ge(),i=ke(),a=j(),o=ye(),s=W().dfltConfig;function l(t,n){t=e.extendDeep({},t);var i,a,s=Object.keys(t).sort();function c(e,n,i){if(r(n)&&r(e))l(e,n);else if(Array.isArray(n)&&Array.isArray(e)){var s=o.arrayTemplater({_template:t},i);for(a=0;aT?h.push({code:"unused",traceType:v,templateCount:w,dataCount:T}):T>w&&h.push({code:"reused",traceType:v,templateCount:w,dataCount:T})}}else h.push({code:"data"});if(function t(e,n){for(var i in e)if("_"!==i.charAt(0)){var a=e[i],o=p(e,i,n);r(a)?(Array.isArray(e)&&!1===a._template&&a.templateitemname&&h.push({code:"missing",path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&&d(a)&&t(a,o)}}({data:g,layout:f},""),h.length)return h.map(m)}})),qn=f((t=>{var e=On();t._doPlot=e._doPlot,t.newPlot=e.newPlot,t.restyle=e.restyle,t.relayout=e.relayout,t.redraw=e.redraw,t.update=e.update,t._guiRestyle=e._guiRestyle,t._guiRelayout=e._guiRelayout,t._guiUpdate=e._guiUpdate,t._storeDirectGUIEdit=e._storeDirectGUIEdit,t.react=e.react,t.extendTraces=e.extendTraces,t.prependTraces=e.prependTraces,t.addTraces=e.addTraces,t.deleteTraces=e.deleteTraces,t.moveTraces=e.moveTraces,t.purge=e.purge,t.addFrames=e.addFrames,t.deleteFrames=e.deleteFrames,t.animate=e.animate,t.setPlotConfig=e.setPlotConfig;var r=Ct().getGraphDiv,n=Wr().eraseActiveShape;t.deleteActiveShape=function(t){return n(r(t))},t.toImage=Bn(),t.validate=Nn(),t.downloadImage=Un();var i=Vn();t.makeTemplate=i.makeTemplate,t.validateTemplate=i.validateTemplate})),Hn=f(((t,e)=>{var r=le(),n=qt();e.exports=function(t,e,i,a){var o,s=a("x"),l=a("y");if(n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],i),s){var u=r.minRowLength(s);l?o=Math.min(u,r.minRowLength(l)):(o=u,a("y0"),a("dy"))}else{if(!l)return 0;o=r.minRowLength(l),a("x0"),a("dx")}return e._length=o,o}})),Gn=f(((t,e)=>{var r=le().dateTick0,n=k().ONEWEEK;function i(t,e){return r(e,t%n==0?1:0)}e.exports=function(t,e,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,e.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",i(s,e.ycalendar)),n("yperiodalignment"))}}})),Zn=f(((t,e)=>{var r=["orientation","groupnorm","stackgaps"];e.exports=function(t,e,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(e):(u=l[o]={traceIndices:[],traces:[e]},c=!0);for(var h={orientation:e.x&&!e.y?"h":"v"},f=0;f{var r=q(),n=Ee().hasColorscale,i=qe(),a=Ye();e.exports=function(t,e,o,s,l,u){var c=a.isBubble(t),h=(t.line||{}).color;u=u||{},h&&(o=h),l("marker.symbol"),l("marker.opacity",c?.7:1),l("marker.size"),u.noAngle||(l("marker.angle"),u.noAngleRef||l("marker.angleref"),u.noStandOff||l("marker.standoff")),l("marker.color",o),n(t,"marker")&&i(t,e,s,l,{prefix:"marker.",cLetter:"c"}),u.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),u.noLine||(l("marker.line.color",h&&!Array.isArray(h)&&e.marker.color!==h?h:c?r.background:r.defaultLine),n(t,"marker.line")&&i(t,e,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",c?1:0)),c&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),u.gradient&&"none"!==l("marker.gradient.type")&&l("marker.gradient.color")}})),Yn=f(((t,e)=>{var r=le().isArrayOrTypedArray,n=Ee().hasColorscale,i=qe();e.exports=function(t,e,a,o,s,l){l||(l={});var u=(t.marker||{}).color;u&&u._inputArray&&(u=u._inputArray),s("line.color",a),n(t,"line")?i(t,e,o,s,{prefix:"line.",cLetter:"c"}):s("line.color",!r(u)&&u||a),s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}})),Xn=f(((t,e)=>{e.exports=function(t,e,r){"spline"===r("line.shape")&&r("line.smoothing")}})),$n=f(((t,e)=>{var r=le();e.exports=function(t,e,n,i,a){a=a||{},i("textposition"),r.coerceFont(i,"textfont",a.font||n.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}})),Jn=f(((t,e)=>{var r=q(),n=le().isArrayOrTypedArray;e.exports=function(t,e,i,a,o){o||(o={});var s,l=!1;if(e.marker){var u=e.marker.color,c=(e.marker.line||{}).color;u&&!n(u)?l=u:c&&!n(c)&&(l=c)}if(o.moduleHasFillgradient&&"none"!==a("fillgradient.type")){a("fillgradient.start"),a("fillgradient.stop");var h=a("fillgradient.colorscale");h&&(s=function(t){for(var e=r.interpolate(t[0][1],t[1][1],.5),n=2;n{var r=le(),n=qt(),i=Tn(),a=bn(),o=Ye(),s=Hn(),l=Gn(),u=Zn(),c=Wn(),h=Yn(),f=Xn(),p=$n(),d=Jn(),m=le().coercePattern;e.exports=function(t,e,g,y){function v(n,a){return r.coerce(t,e,i,n,a)}var x=s(t,e,y,v);if(x||(e.visible=!1),e.visible){l(t,e,y,v),v("xhoverformat"),v("yhoverformat"),v("zorder");var _=u(t,e,y,v);"group"===y.scattermode&&void 0===e.orientation&&v("orientation","v");var b=!_&&x{var r=rn().getAxisGroup;e.exports=function(t,e,n,i,a){var o=e.orientation,s=e[{v:"x",h:"y"}[o]+"axis"],l=r(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),h=u[l];h||(h=u[l]={});var f=h[c];f?f.traces.push(e):f=h[c]={traces:[e],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var p=i("offsetgroup")||"",d=f.offsetGroups,m=d[p];e._offsetIndex=0,("group"!==a||p)&&(m||(m=d[p]={offsetIndex:Object.keys(d).length}),e._offsetIndex=m.offsetIndex)}})),ti=f(((t,e)=>{var r=le(),n=Qn(),i=Tn();e.exports=function(t,e){var a,o,s,l=e.scattermode;function u(t){return r.coerce(o._input,o,i,t)}if("group"===e.scattermode)for(s=0;s=0;f--){var p=t[f];if("scatter"===p.type&&p.xaxis===c.xaxis&&p.yaxis===c.yaxis){p.opacity=void 0;break}}}}}})),ei=f(((t,e)=>{var r=le(),n=be();e.exports=function(t,e){var i,a="group"===e.barmode;"group"===e.scattermode&&(i=a?e.bargap:.2,r.coerce(t,e,n,"scattergap",i))}})),ri=f(((t,e)=>{var r=T(),n=le(),i=n.dateTime2ms,a=n.incrementMonth,o=k().ONEAVGMONTH;e.exports=function(t,e,n,s){if("date"!==e.type)return{vals:s};var l=t[n+"periodalignment"];if(!l)return{vals:s};var u,c=t[n+"period"];if(r(c)){if((c=+c)<=0)return{vals:s}}else if("string"==typeof c&&"M"===c.charAt(0)){var h=+c.substring(1);if(!(h>0&&Math.round(h)===h))return{vals:s};u=h}for(var f=e.calendar,p="start"===l,d="end"===l,m=t[n+"period0"],g=i(m,f)||0,y=[],v=[],x=[],_=s.length,b=0;b<_;b++){var w,T,k,A=s[b];if(u){for(w=Math.round((A-g)/(u*o)),k=a(g,u*w,f);k>A;)k=a(k,-u,f);for(;k<=A;)k=a(k,u,f);T=a(k,-u,f)}else{for(k=g+(w=Math.round((A-g)/c))*c;k>A;)k-=c;for(;k<=A;)k+=c;T=k-c}y[b]=p?T:d?k:(T+k)/2,v[b]=T,x[b]=k}return{vals:y,starts:v,ends:x}}})),ni=f(((t,e)=>{var r=Ee().hasColorscale,n=Ze(),i=Ye();e.exports=function(t,e){i.hasLines(e)&&r(e,"line")&&n(t,e,{vals:e.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(e)&&(r(e,"marker")&&n(t,e,{vals:e.marker.color,containerStr:"marker",cLetter:"c"}),r(e,"marker.line")&&n(t,e,{vals:e.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}})),ii=f(((t,e)=>{var r=le();e.exports=function(t,e){for(var n=0;n{var r=le();e.exports=function(t,e){r.isArrayOrTypedArray(e.selectedpoints)&&r.tagSelected(t,e)}})),oi=f(((t,e)=>{var r=T(),n=le(),i=ir(),a=ri(),o=k().BADNUM,s=Ye(),l=ni(),u=ii(),c=ai();function h(t,e,r,n,a,o,l){var u=e._length,c=t._fullLayout,h=r._id,f=n._id,p=c._firstScatter[d(e)]===e.uid,g=(m(e,c,r,n)||{}).orientation,y=e.fill;r._minDtick=0,n._minDtick=0;var v={padded:!0},x={padded:!0};l&&(v.ppad=x.ppad=l);var _=u<2||a[0]!==a[u-1]||o[0]!==o[u-1];_&&("tozerox"===y||"tonextx"===y&&(p||"h"===g))?v.tozero=!0:!(e.error_y||{}).visible&&("tonexty"===y||"tozeroy"===y||!s.hasMarkers(e)&&!s.hasText(e))&&(v.padded=!1,v.ppad=0),_&&("tozeroy"===y||"tonexty"===y&&(p||"v"===g))?x.tozero=!0:("tonextx"===y||"tozerox"===y)&&(x.padded=!1),h&&(e._extremes[h]=i.findExtremes(r,a,v)),f&&(e._extremes[f]=i.findExtremes(n,o,x))}function f(t,e){if(s.hasMarkers(t)){var r,a=t.marker,o=1.6*(t.marker.sizeref||1);if(r="area"===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},n.isArrayOrTypedArray(a.size)){var l={type:"linear"};i.setConvert(l);for(var u=l.makeCalcdata(t.marker,"size"),c=new Array(e),h=0;hd&&I[y].gap;)y--;for(x=I[y].s,g=I.length-1;g>y;g--)I[g].s=x;for(;d{e.exports=n;var r=le().distinctVals;function n(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var n=1/0,i=e.posAxis._id.charAt(0),a=[],o=0;o{var r=T(),n=le().isArrayOrTypedArray,i=k().BADNUM,a=qt(),o=ir(),s=rn().getAxisGroup,l=si();function u(t,e,a,s,u){if(s.length){var f,y,v,x;switch(function(t,e){var i,a;for(i=0;ih+u||!r(c))}for(var p=0;p{var r=oi(),n=li().setGroupPositions;function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&&r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&&(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){"group"===t._fullLayout.scattermode&&function(t,e){for(var r=e.xaxis,i=e.yaxis,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=[],u=[],c=0;cS[h]&&h{var r=Qe(),n=k(),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=le(),u=l.segmentsIntersect,c=l.constrain,h=bn();e.exports=function(t,e){var n,a,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S,E=e.trace||{},C=e.xaxis,I=e.yaxis,L="log"===C.type,P="log"===I.type,z=C._length,O=I._length,D=e.backoff,R=E.marker,F=e.connectGaps,B=e.baseTolerance,N=e.shape,j="linear"===N,U=E.fill&&"none"!==E.fill,V=[],q=h.minTolerance,H=t.length,G=new Array(H),Z=0;function W(r){var n=t[r];if(!n)return!1;var a=e.linearized?C.l2p(n.x):C.c2p(n.x),l=e.linearized?I.l2p(n.y):I.c2p(n.y);if(a===i){if(L&&(a=C.c2p(n.x,!0)),a===i)return!1;P&&l===i&&(a*=Math.abs(C._m*O*(C._m>0?o:s)/(I._m*z*(I._m>0?o:s)))),a*=1e3}if(l===i){if(P&&(l=I.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function Y(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,u=i*o+a*s;if(u>0&&uot||t[1]lt)return[c(t[0],at,ot),c(t[1],st,lt)]}function ht(t,e){if(t[0]===e[0]&&(t[0]===at||t[0]===ot)||t[1]===e[1]&&(t[1]===st||t[1]===lt))return!0}function ft(t,e,r){return function(n,i){var a=ct(n),o=ct(i),s=[];if(a&&o&&ht(a,o))return s;a&&s.push(a),o&&s.push(o);var u=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);return u&&((a&&o?u>0==a[t]>o[t]?a:o:a||o)[t]+=u),s}}function pt(t){var e=t[0],r=t[1],n=e===G[Z-1][0],i=r===G[Z-1][1];if(!n||!i)if(Z>1){var a=e===G[Z-2][0],o=r===G[Z-2][1];n&&(e===at||e===ot)&&a?o?Z--:G[Z-1]=t:i&&(r===st||r===lt)&&o?a?Z--:G[Z-1]=t:G[Z++]=t}else G[Z++]=t}function dt(t){G[Z-1][0]!==t[0]&&G[Z-1][1]!==t[1]&&pt([Q,tt]),pt(t),et=null,Q=tt=0}"linear"===N||"spline"===N?nt=function(t,e){for(var r=[],n=0,i=0;i<4;i++){var a=ut[i],o=u(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&$(o,t)<$(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:"hv"===N||"vh"===N?nt=function(t,e){var r=[],n=ct(t),i=ct(e);return n&&i&&ht(n,i)||(n&&r.push(n),i&&r.push(i)),r}:"hvh"===N?nt=ft(0,at,ot):"vhv"===N&&(nt=ft(1,st,lt));var mt=l.isArrayOrTypedArray(R);function gt(e){if(e&&D&&(e.i=n,e.d=t,e.trace=E,e.marker=mt?R[e.i]:R,e.backoff=D),M=e[0]/z,S=e[1]/O,J=e[0]ot?ot:0,K=e[1]lt?lt:0,J||K){if(Z)if(et){var r=nt(et,e);r.length>1&&(dt(r[0]),G[Z++]=r[1])}else rt=nt(G[Z-1],e)[0],G[Z++]=rt;else G[Z++]=[J||e[0],K||e[1]];var i=G[Z-1];J&&K&&(i[0]!==J||i[1]!==K)?(et&&(Q!==J&&tt!==K?pt(Q&&tt?function(t,e){var r=e[0]-t[0],n=(e[1]-t[1])/r;return(t[1]*e[0]-e[1]*t[0])/r>0?[n>0?at:ot,lt]:[n>0?ot:at,st]}(et,e):[Q||J,tt||K]):Q&&tt&&pt([Q,tt])),pt([J,K])):Q-J&&tt-K&&pt([J||Q,K||tt]),et=e,Q=J,tt=K}else et&&dt(nt(et,e)[0]),G[Z++]=e}for(n=0;nX(m,yt))break;f=m,(w=v[0]*y[0]+v[1]*y[1])>_?(_=w,p=m,g=!1):w=t.length||!m)break;gt(m),a=m}}else gt(p)}et&&pt([Q||et[0],tt||et[1]]),V.push(G.slice(0,Z))}var vt=N.slice(N.length-1);if(D&&"h"!==vt&&"v"!==vt){for(var xt=!1,_t=-1,bt=[],wt=0;wt{var r={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,n){var i,a,o,s,l,u={},c=!1,h=-1,f=0,p=-1;for(a=0;a=0?l=p:(l=p=f,f++),l{var r=v(),n=qt(),i=le(),a=i.ensureSingle,o=i.identity,s=Qe(),l=Ye(),u=ci(),c=hi(),h=mn().tester;function f(t,e,c,f,p,d,m){var g,y=t._context.staticPlot;!function(t,e,n,a,o){var s=n.xaxis,u=n.yaxis,c=r.extent(i.simpleMap(s.range,s.r2c)),h=r.extent(i.simpleMap(u.range,u.r2c)),f=a[0].trace;if(l.hasMarkers(f)){var p=f.marker.maxdisplayed;if(0!==p){var d=a.filter((function(t){return t.x>=c[0]&&t.x<=c[1]&&t.y>=h[0]&&t.y<=h[1]})),m=Math.ceil(d.length/p),g=0;o.forEach((function(t,r){var n=t[0].trace;l.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function x(t){return v?t.transition():t}var _=c.xaxis,b=c.yaxis,w=f[0].trace,T=w.line,k=r.select(d),A=a(k,"g","errorbars"),M=a(k,"g","lines"),S=a(k,"g","points"),E=a(k,"g","text");if(n.getComponentMethod("errorbars","plot")(t,A,c,m),!0===w.visible){x(k).style("opacity",w.opacity);var C,I,L,P,z=w.fill.charAt(w.fill.length-1);"x"!==z&&"y"!==z&&(z=""),"y"===z?(L=1,P=b.c2p(0,!0)):"x"===z&&(L=0,P=_.c2p(0,!0)),f[0][c.isRangePlot?"nodeRangePlot3":"node3"]=k;var O="",D=[],R=w._prevtrace,F=null,B=null;R&&(O=R._prevRevpath||"",I=R._nextFill,D=R._ownPolygons,F=R._fillsegments,B=R._fillElement);var N,j,U,V,q,H,G,Z,W="",Y="",X=[];w._polygons=[];var $=[],J=[],K=i.noop;if(C=w._ownFill,l.hasLines(w)||"none"!==w.fill){I&&I.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(T.shape)?(U=s.steps(T.shape),V=s.steps(T.shape.split("").reverse().join(""))):U=V="spline"===T.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?s.smoothclosed(t.slice(1),T.smoothing):s.smoothopen(t,T.smoothing)}:function(t){return"M"+t.join("L")},q=function(t){return V(t.reverse())},J=u(f,{xaxis:_,yaxis:b,trace:w,connectGaps:w.connectgaps,baseTolerance:Math.max(T.width||1,3)/4,shape:T.shape,backoff:T.backoff,simplify:T.simplify,fill:w.fill}),$=new Array(J.length);var Q=0;for(g=0;g0,g=c(t,e,n);(h=i.selectAll("g.trace").data(g,(function(t){return t[0].trace.uid}))).enter().append("g").attr("class",(function(t){return"trace scatter trace"+t[0].trace.uid})).style("stroke-miterlimit",2),h.order(),function(t,e,n){e.each((function(e){var i=a(r.select(this),"g","fills");s.setClipUrl(i,n.layerClipId,t);var l=e[0].trace,u=[];l._ownfill&&u.push("_ownFill"),l._nexttrace&&u.push("_nextFill");var c=i.selectAll("g").data(u,o);c.enter().append("g"),c.exit().each((function(t){l[t]=null})).remove(),c.order().each((function(t){l[t]=a(r.select(this),"path","js-fill")}))}))}(t,h,e),m?(u&&(p=u()),r.transition().duration(l.duration).ease(l.easing).each("end",(function(){p&&p()})).each("interrupt",(function(){p&&p()})).each((function(){i.selectAll("g.trace").each((function(r,n){f(t,n,e,r,g,this,l)}))}))):h.each((function(r,n){f(t,n,e,r,g,this,l)})),d&&h.exit().remove(),i.selectAll("path:not([d])").remove()}})),pi=f(((t,e)=>{e.exports={container:"marker",min:"cmin",max:"cmax"}})),di=f(((t,e)=>{var r=ir();e.exports=function(t,e,n){var i={},a={_fullLayout:n},o=r.getFromTrace(a,e,"x"),s=r.getFromTrace(a,e,"y"),l=t.orig_x;void 0===l&&(l=t.x);var u=t.orig_y;return void 0===u&&(u=t.y),i.xLabel=r.tickText(o,o.c2l(l),!0).text,i.yLabel=r.tickText(s,s.c2l(u),!0).text,i}})),mi=f(((t,e)=>{var r=v(),n=Qe(),i=qt();function a(t,e,r){n.pointStyle(t.selectAll("path.point"),e,r)}function o(t,e,r){n.textPointStyle(t.selectAll("text"),e,r)}e.exports={style:function(t){var e=r.select(t).selectAll("g.trace.scatter");e.style("opacity",(function(t){return t[0].trace.opacity})),e.selectAll("g.points").each((function(e){a(r.select(this),e.trace||e[0].trace,t)})),e.selectAll("g.text").each((function(e){o(r.select(this),e.trace||e[0].trace,t)})),e.selectAll("g.trace path.js-line").call(n.lineGroupStyle),e.selectAll("g.trace path.js-fill").call(n.fillGroupStyle,t,!1),i.getComponentMethod("errorbars","style")(e)},stylePoints:a,styleText:o,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?(n.selectedPointStyle(r.selectAll("path.point"),i),n.selectedTextStyle(r.selectAll("text"),i)):(a(r,i,t),o(r,i,t))}}})),gi=f(((t,e)=>{var r=q(),n=Ye();e.exports=function(t,e){var i,a;if("lines"===t.mode)return(i=t.line.color)&&r.opacity(i)?i:t.fillcolor;if("none"===t.mode)return t.fill?t.fillcolor:"";var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&&r.opacity(o)?o:s&&r.opacity(s)&&(e.mlw||((t.marker||{}).line||{}).width)?s:"")?r.opacity(a)<.3?r.addOpacity(a,.3):a:(i=(t.line||{}).color)&&r.opacity(i)&&n.hasLines(t)&&t.line.width?i:t.fillcolor}})),yi=f(((t,e)=>{var r=le(),n=Or(),i=qt(),a=gi(),o=q(),s=r.fillText;e.exports=function(t,e,l,u){var c=t.cd,h=c[0].trace,f=t.xa,p=t.ya,d=f.c2p(e),m=p.c2p(l),g=[d,m],y=h.hoveron||"",v=-1!==h.mode.indexOf("markers")?3:.5,x=!!h.xperiodalignment,_=!!h.yperiodalignment;if(-1!==y.indexOf("points")){var b=function(t){var e=Math.max(v,t.mrc||0),r=f.c2p(t.x)-d,n=p.c2p(t.y)-m;return Math.max(Math.sqrt(r*r+n*n)-e,1-v/e)},w=n.getDistanceFunction(u,(function(t){if(x){var e=f.c2p(t.xStart),r=f.c2p(t.xEnd);return d>=Math.min(e,r)&&d<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(f.c2p(t.x)-d);return a=Math.min(e,r)&&m<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.y)-m);return ar!=(u=i[n][1])>=r&&(o=i[n-1][0],s=i[n][0],u-l&&(a=o+(s-o)*(r-l)/(u-l),h=Math.min(h,a),d=Math.max(d,a)));return{x0:h=Math.max(h,0),x1:d=Math.min(d,f._length),y0:r,y1:r}}(h._polygons);null===P&&(P={x0:g[0],x1:g[0],y0:g[1],y1:g[1]});var z=o.defaultLine;return o.opacity(h.fillcolor)?z=h.fillcolor:o.opacity((h.line||{}).color)&&(z=h.line.color),r.extendFlat(t,{distance:t.maxHoverDistance,x0:P.x0,x1:P.x1,y0:P.y0,y1:P.y1,color:z,hovertemplate:!1}),delete t.index,h.text&&!r.isArrayOrTypedArray(h.text)?t.text=String(h.text):t.text=h.name,[t]}}})),vi=f(((t,e)=>{var r=Ye();e.exports=function(t,e){var n,i,a,o,s=t.cd,l=t.xaxis,u=t.yaxis,c=[],h=s[0].trace;if(!r.hasMarkers(h)&&!r.hasText(h))return[];if(!1===e)for(n=0;n{e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}})),_i=f(((t,e)=>{var r=qt().traceIs,n=rr();function i(t){return{v:"x",h:"y"}[t.orientation||"v"]}function a(t,e){var n=i(t),a=r(t,"box-violin"),o=r(t._fullInput||{},"candlestick");return a&&!o&&e===n&&void 0===t[n]&&void 0===t[n+"0"]}e.exports=function(t,e,o,s){o("autotypenumbers",s.autotypenumbersDflt),"-"===o("type",(s.splomStash||{}).type)&&(function(t,e){if("-"===t.type){var o,s=t._id,l=s.charAt(0);-1!==s.indexOf("scene")&&(s=l);var u=function(t,e,r){for(var n=0;n0&&(i["_"+r+"axes"]||{})[e])return i;if((i[r+"axis"]||r)===e){if(a(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}(e,s,l);if(u){if("histogram"===u.type&&l==={v:"y",h:"x"}[u.orientation||"v"])return void(t.type="linear");var c=l+"calendar",h=u[c],f={noMultiCategory:!r(u,"cartesian")||r(u,"noMultiCategory")};if("box"===u.type&&u._hasPreCompStats&&l==={h:"x",v:"y"}[u.orientation||"v"]&&(f.noMultiCategory=!0),f.autotypenumbers=t.autotypenumbers,a(u,l)){var p=i(u),d=[];for(o=0;o{var r=S().isTypedArraySpec;e.exports=function(t,e,n,i){if("category"===e.type){var a,o=t.categoryarray,s=Array.isArray(o)&&o.length>0||r(o);s&&(a="array");var l,u=n("categoryorder",a);"array"===u&&(l=n("categoryarray")),!s&&"array"===u&&(u=e.categoryorder="trace"),"trace"===u?e._initialCategories=[]:"array"===u?e._initialCategories=l.slice():(l=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n{var r=O().mix,n=V(),i=le();e.exports=function(t,e,a,o){var s=(o=o||{}).dfltColor;function l(r,n){return i.coerce2(t,e,o.attributes,r,n)}var u=l("linecolor",s),c=l("linewidth");a("showline",o.showLine||!!u||!!c)||(delete e.linecolor,delete e.linewidth);var h=l("gridcolor",r(s,o.bgColor,o.blend||n.lightFraction).toRgbString()),f=l("gridwidth"),p=l("griddash");if(a("showgrid",o.showGrid||!!h||!!f||!!p)||(delete e.gridcolor,delete e.gridwidth,delete e.griddash),o.hasMinor){var d=l("minor.gridcolor",r(e.gridcolor,o.bgColor,67).toRgbString()),m=l("minor.gridwidth",e.gridwidth||1),g=l("minor.griddash",e.griddash||"solid");a("minor.showgrid",!!d||!!m||!!g)||(delete e.minor.gridcolor,delete e.minor.gridwidth,delete e.minor.griddash)}if(!o.noZeroLine){var y=l("zerolinecolor",s),v=l("zerolinewidth");a("zeroline",o.showGrid||!!y||!!v)||(delete e.zerolinecolor,delete e.zerolinewidth)}}})),Ti=f(((t,e)=>{var r=T(),n=qt(),i=le(),a=ye(),o=Ne(),s=Ie(),l=Re(),u=Fe(),c=je(),h=Ue(),f=bi(),p=wi(),d=or(),m=er(),g=ve().WEEKDAY_PATTERN,y=ve().HOUR_PATTERN;function v(t,e,n){function a(r,n){return i.coerce(t,e,s.rangebreaks,r,n)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var l,u,c="";if(2===o.length)for(l=0;l<2;l++)if(u=_(o[l])){c=g;break}var h=a("pattern",c);if(h===g)for(l=0;l<2;l++)(u=_(o[l]))&&(e.bounds[l]=o[l]=u-1);if(h)for(l=0;l<2;l++)switch(u=o[l],h){case g:if(!r(u))return void(e.enabled=!1);if((u=+u)!==Math.floor(u)||u<0||u>=7)return void(e.enabled=!1);e.bounds[l]=o[l]=u;break;case y:if(!r(u))return void(e.enabled=!1);if((u=+u)<0||u>24)return void(e.enabled=!1);e.bounds[l]=o[l]=u}if(!1===n.autorange){var f=n.range;if(f[0]f[1])return void(e.enabled=!1)}else if(o[0]>f[0]&&o[1]{var r=T(),n=le();e.exports=function(t,e,i,a){var o,s,l,u,c,h,f=a.counterAxes||[],p=a.overlayableAxes||[],d=a.letter,m=a.grid,g=a.overlayingDomain;m&&(s=m._domains[d][m._axisMap[e._id]],o=m._anchors[e._id],s&&(l=m[d+"side"].split(" ")[0],u=m.domain[d]["right"===l||"top"===l?1:0])),s=s||[0,1],o=o||(r(t.position)?"free":f[0]||"free"),l=l||("x"===d?"bottom":"left"),u=u||0,c=0,h=!1;var y=n.coerce(t,e,{anchor:{valType:"enumerated",values:["free"].concat(f),dflt:o}},"anchor"),v=n.coerce(t,e,{side:{valType:"enumerated",values:"x"===d?["bottom","top"]:["left","right"],dflt:l}},"side");"free"===y&&("y"===d&&(i("autoshift")&&(u="left"===v?g[0]:g[1],h=!e.automargin||e.automargin,c="left"===v?-3:3),i("shift",c)),i("position",u)),i("automargin",h);var x=!1;if(p.length&&(x=n.coerce(t,e,{overlaying:{valType:"enumerated",values:[!1].concat(p),dflt:!1}},"overlaying")),!x){var _=i("domain",s);_[0]>_[1]-1/4096&&(e.domain=s),n.noneOrAll(t.domain,e.domain,s),"sync"===e.tickmode&&(e.tickmode="auto")}return i("layer"),e}})),Ai=f(((t,e)=>{var r=le(),n=q(),i=$e().isUnifiedHover,a=Ir(),o=ye(),s=Nt(),l=Ie(),u=_i(),c=Ti(),h=rn(),f=ki(),p=xe(),d=p.id2name,m=p.name2id,g=ve().AX_ID_PATTERN,y=qt(),v=y.traceIs,x=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,y){var b,w,T=e.autotypenumbers,k={},A={},M={},S={},E={},C={},I={},L={},P={},z={};for(b=0;b{var r=v(),n=qt(),i=le(),a=Qe(),o=ir();e.exports=function(t,e,s,l){var u=t._fullLayout;if(0!==e.length){var c;l&&(c=l());var h,f,p,d=r.ease(s.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},i=0;is.duration?(function(){for(var r={},i=0;i rect").call(a.setTranslate,0,0).call(a.setScale,1,1),t.plot.call(a.setTranslate,e._offset,r._offset).call(a.setScale,1,1);var n=t.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(a.setPointGroupScale,1,1),n.selectAll(".textpoint").call(a.setTextPointsScale,1,1),n.call(a.hideOutsideRangePoints,t)}function g(e,r){var n=e.plotinfo,s=n.xaxis,l=n.yaxis,u=s._length,c=l._length,h=!!e.xr1,f=!!e.yr1,p=[];if(h){var d=i.simpleMap(e.xr0,s.r2l),m=i.simpleMap(e.xr1,s.r2l),g=d[1]-d[0],y=m[1]-m[0];p[0]=(d[0]*(1-r)+r*m[0]-d[0])/(d[1]-d[0])*u,p[2]=u*(1-r+r*y/g),s.range[0]=s.l2r(d[0]*(1-r)+r*m[0]),s.range[1]=s.l2r(d[1]*(1-r)+r*m[1])}else p[0]=0,p[2]=u;if(f){var v=i.simpleMap(e.yr0,l.r2l),x=i.simpleMap(e.yr1,l.r2l),_=v[1]-v[0],b=x[1]-x[0];p[1]=(v[1]*(1-r)+r*x[1]-v[1])/(v[0]-v[1])*c,p[3]=c*(1-r+r*b/_),l.range[0]=s.l2r(v[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(v[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=c;o.drawOne(t,s,{skipTitle:!0}),o.drawOne(t,l,{skipTitle:!0}),o.redrawComponents(t,[s._id,l._id]);var w=h?u/p[2]:1,T=f?c/p[3]:1,k=h?p[0]:0,A=f?p[1]:0,M=h?p[0]/p[2]*u:0,S=f?p[1]/p[3]*c:0,E=s._offset-M,C=l._offset-S;n.clipRect.call(a.setTranslate,k,A).call(a.setScale,1/w,1/T),n.plot.call(a.setTranslate,E,C).call(a.setScale,w,T),a.setPointGroupScale(n.zoomScalePts,1/w,1/T),a.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}o.redrawComponents(t)}})),Si=f((t=>{var e=v(),r=qt(),n=le(),i=ke(),a=Qe(),o=we().getModuleCalcData,s=xe(),l=ve(),u=Ae(),c=n.ensureSingle;function h(t,e,r){return n.ensureSingle(t,e,r,(function(t){t.datum(r)}))}var f=l.zindexSeparator;function p(t,n,i,s,u){for(var c,h,f,p=l.traceLayerClasses,d=t._fullLayout,m=d._zindices,g=d._modules,y=[],v=[],x=0;x1,m=e.mainplotinfo;if(!e.mainplot||d)if(p)e.xlines=c(n,"path","xlines-above"),e.ylines=c(n,"path","ylines-above"),e.xaxislayer=c(n,"g","xaxislayer-above"),e.yaxislayer=c(n,"g","yaxislayer-above");else{if(!a){var g=c(n,"g","layer-subplot");e.shapelayer=c(g,"g","shapelayer"),e.imagelayer=c(g,"g","imagelayer"),m&&d?(e.minorGridlayer=m.minorGridlayer,e.gridlayer=m.gridlayer,e.zerolinelayer=m.zerolinelayer):(e.minorGridlayer=c(n,"g","minor-gridlayer"),e.gridlayer=c(n,"g","gridlayer"),e.zerolinelayer=c(n,"g","zerolinelayer"));var y=c(n,"g","layer-between");e.shapelayerBetween=c(y,"g","shapelayer"),e.imagelayerBetween=c(y,"g","imagelayer"),c(n,"path","xlines-below"),c(n,"path","ylines-below"),e.overlinesBelow=c(n,"g","overlines-below"),c(n,"g","xaxislayer-below"),c(n,"g","yaxislayer-below"),e.overaxesBelow=c(n,"g","overaxes-below")}e.overplot=c(n,"g","overplot"),e.plot=c(e.overplot,"g",i),a||(e.xlines=c(n,"path","xlines-above"),e.ylines=c(n,"path","ylines-above"),e.overlinesAbove=c(n,"g","overlines-above"),c(n,"g","xaxislayer-above"),c(n,"g","yaxislayer-above"),e.overaxesAbove=c(n,"g","overaxes-above"),e.xlines=n.select(".xlines-"+o),e.ylines=n.select(".ylines-"+u),e.xaxislayer=n.select(".xaxislayer-"+o),e.yaxislayer=n.select(".yaxislayer-"+u))}else{var v=m.plotgroup,x=i+"-x",_=i+"-y";e.minorGridlayer=m.minorGridlayer,e.gridlayer=m.gridlayer,e.zerolinelayer=m.zerolinelayer,c(m.overlinesBelow,"path",x),c(m.overlinesBelow,"path",_),c(m.overaxesBelow,"g",x),c(m.overaxesBelow,"g",_),e.plot=c(m.overplot,"g",i),c(m.overlinesAbove,"path",x),c(m.overlinesAbove,"path",_),c(m.overaxesAbove,"g",x),c(m.overaxesAbove,"g",_),e.xlines=v.select(".overlines-"+o).select("."+x),e.ylines=v.select(".overlines-"+u).select("."+_),e.xaxislayer=v.select(".overaxes-"+o).select("."+x),e.yaxislayer=v.select(".overaxes-"+u).select("."+_)}a||(p||(h(e.minorGridlayer,"g",e.xaxis._id),h(e.minorGridlayer,"g",e.yaxis._id),e.minorGridlayer.selectAll("g").map((function(t){return t[0]})).sort(s.idSort),h(e.gridlayer,"g",e.xaxis._id),h(e.gridlayer,"g",e.yaxis._id),e.gridlayer.selectAll("g").map((function(t){return t[0]})).sort(s.idSort)),e.xlines.style("fill","none").classed("crisp",!0),e.ylines.style("fill","none").classed("crisp",!0))}function m(t,r){if(t){var n={};for(var i in t.each((function(t){var i=t[0];e.select(this).remove(),g(i,r),n[i]=!0})),r._plots)for(var a=r._plots[i].overlays||[],o=0;o0){var g=m.id;if(-1!==g.indexOf(f))continue;g+=f+(c+1),m=n.extendFlat({},m,{id:g,plot:o._cartesianlayer.selectAll(".subplot").select("."+g)})}for(var y,v=[],x=0;x1&&(w+=f+b),_.push(n+w),r=0;r{var r=Ye();e.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:Tn(),layoutAttributes:be(),supplyDefaults:Kn(),crossTraceDefaults:ti(),supplyLayoutDefaults:ei(),calc:oi().calc,crossTraceCalc:ui(),arraysToCalcdata:ii(),plot:fi(),colorbar:pi(),formatLabels:di(),style:mi().style,styleOnSelect:mi().styleOnSelect,hoverPoints:yi(),selectPoints:vi(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Si(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}})),Ci=f(((t,e)=>{var r=v(),n=q(),i=vn(),a=le(),o=a.strScale,s=a.strRotate,l=a.strTranslate;e.exports=function(t,e,a){var u,c,h,f,p=t.node(),d=i[a.arrowhead||0],m=i[a.startarrowhead||0],g=(a.arrowwidth||1)*(a.arrowsize||1),y=(a.arrowwidth||1)*(a.startarrowsize||1),v=e.indexOf("start")>=0,x=e.indexOf("end")>=0,_=d.backoff*g+a.standoff,b=m.backoff*y+a.startstandoff;if("line"===p.nodeName){u={x:+t.attr("x1"),y:+t.attr("y1")},c={x:+t.attr("x2"),y:+t.attr("y2")};var w=u.x-c.x,T=u.y-c.y;if(f=(h=Math.atan2(T,w))+Math.PI,_&&b&&_+b>Math.sqrt(w*w+T*T))return void O();if(_){if(_*_>w*w+T*T)return void O();var k=_*Math.cos(h),A=_*Math.sin(h);c.x+=k,c.y+=A,t.attr({x2:c.x,y2:c.y})}if(b){if(b*b>w*w+T*T)return void O();var M=b*Math.cos(h),S=b*Math.sin(h);u.x-=M,u.y-=S,t.attr({x1:u.x,y1:u.y})}}else if("path"===p.nodeName){var E=p.getTotalLength(),C="";if(E<_+b)return void O();var I=p.getPointAtLength(0),L=p.getPointAtLength(.1);h=Math.atan2(I.y-L.y,I.x-L.x),u=p.getPointAtLength(Math.min(b,E)),C="0px,"+b+"px,";var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);f=Math.atan2(P.y-z.y,P.x-z.x),c=p.getPointAtLength(Math.max(0,E-_)),C+=E-(C?b+_:_)+"px,"+E+"px",t.style("stroke-dasharray",C)}function O(){t.style("stroke-dasharray","0px,100px")}function D(e,i,u,c){e.path&&(e.noRotate&&(u=0),r.select(p.parentNode).append("path").attr({class:t.attr("class"),d:e.path,transform:l(i.x,i.y)+s(180*u/Math.PI)+o(c)}).style({fill:n.rgb(a.arrowcolor),"stroke-width":0}))}v&&D(m,u,h,y),x&&D(d,c,f,g)}})),Ii=f(((t,e)=>{var r=v(),n=qt(),i=ke(),a=le(),o=a.strTranslate,s=ir(),l=q(),u=Qe(),c=Or(),h=Se(),f=pr(),p=fr(),d=ye().arrayEditor,m=Ci();function g(t,e){var r=t._fullLayout.annotations[e]||{},n=s.getFromId(t,r.xref),i=s.getFromId(t,r.yref);n&&n.setScale(),i&&i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+"ref"],l=-1!==r.indexOf("y"),u="domain"===s.getRefType(o),c=l?n.h:n.w;return t?u?a+(l?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(l?-e:e)/c}function x(t,e,i,g,v,x){var _,b,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;g?(_="annotation-"+g,b=g+".annotations"):(_="annotation",b="annotations");var A=d(t.layout,b,e),M=A.modifyBase,S=A.modifyItem,E=A.getUpdateObj;w._infolayer.selectAll("."+_+'[data-index="'+i+'"]').remove();var C="clip"+w._uid+"_ann"+i;if(e._input&&!1!==e.visible){var I={x:{},y:{}},L=+e.textangle||0,P=w._infolayer.append("g").classed(_,!0).attr("data-index",String(i)).style("opacity",e.opacity),z=P.append("g").classed("annotation-text-g",!0),O=k[e.showarrow?"annotationTail":"annotationPosition"],D=e.captureevents||k.annotationText||O,R=z.append("g").style("pointer-events",D?"all":null).call(f,"pointer").on("click",(function(){t._dragging=!1,t.emit("plotly_clickannotation",Z(r.event))}));e.hovertext&&R.on("mouseover",(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();c.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color,fontWeight:n.weight,fontStyle:n.style,fontVariant:n.variant,fontShadow:n.fontShadow,fontLineposition:n.fontLineposition,fontTextcase:n.fontTextcase},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on("mouseout",(function(){c.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append("rect").attr("class","bg").style("stroke-width",F+"px").call(l.stroke,e.bordercolor).call(l.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll("#"+C).data(U?[0]:[]);V.enter().append("clipPath").classed("annclip",!0).attr("id",C).append("rect"),V.exit().remove();var q=e.font,H=w._meta?a.templateString(e.text,w._meta):e.text,G=R.append("text").classed("annotation-text",!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on("edit",(function(r){e.text=r,this.call(W),S("text",r),v&&v.autorange&&M(v._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0),n.call("_guiRelayout",t,E())})):G.call(W)}else r.selectAll("#"+C).remove();function Z(t){var r={index:i,annotation:e._input,fullAnnotation:e,event:t};return g&&(r.subplotId=g),r}function W(r){return r.call(u.font,q).attr({"text-anchor":{left:"start",right:"end"}[e.align]||"middle"}),h.convertToTspans(r,t,Y),r}function Y(){var r=G.selectAll("a");1===r.size()&&r.text()===G.text()&&R.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(j.node());var i=R.select(".annotation-text-math-group"),c=!i.empty(),d=u.bBox((c?i:G).node()),_=d.width,b=d.height,A=e.width||_,D=e.height||b,B=Math.round(A+2*N),q=Math.round(D+2*N);function H(t,e){return"auto"===e&&(e=t<1/3?"left":t>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,Y=["x","y"],X=0;X1)&&(nt===rt?((pt=it.r2fraction(e["a"+et]))<0||pt>1)&&(W=!0):W=!0),$=it._offset+it.r2p(e[et]),Q=.5}else{var dt="domain"===ft;"x"===et?(K=e[et],$=dt?it._offset+it._length*K:$=T.l+T.w*K):(K=1-e[et],$=dt?it._offset+it._length*K:$=T.t+T.h*K),Q=e.showarrow?.5:K}if(e.showarrow){ht.head=$;var mt=e["a"+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var gt=s.getRefType(nt);"domain"===gt?("y"===et&&(mt=1-mt),ht.tail=it._offset+it._length*mt):"paper"===gt?"y"===et?(mt=1-mt,ht.tail=T.t+T.h*mt):ht.tail=T.l+T.w*mt:ht.tail=it._offset+it.r2p(mt),J=tt}else ht.tail=$+mt,J=tt+mt;ht.text=ht.tail+tt;var yt=w["x"===et?"width":"height"];if("paper"===rt&&(ht.head=a.constrain(ht.head,1,yt-1)),"pixel"===nt){var vt=-Math.max(ht.tail-3,ht.text),xt=Math.min(ht.tail+3,ht.text)-yt;vt>0?(ht.tail+=vt,ht.text+=vt):xt>0&&(ht.tail-=xt,ht.text-=xt)}ht.tail+=ct,ht.head+=ct}else J=tt=lt*H(Q,ut),ht.text=$+tt;ht.text+=ct,tt+=ct,J+=ct,e["_"+et+"padplus"]=lt/2+J,e["_"+et+"padminus"]=lt/2-J,e["_"+et+"size"]=lt,e["_"+et+"shift"]=tt}if(W)R.remove();else{var _t=0,bt=0;if("left"!==e.align&&(_t=(A-_)*("center"===e.align?.5:1)),"top"!==e.valign&&(bt=(D-b)*("middle"===e.valign?.5:1)),c)i.select("svg").attr({x:N+_t-1,y:N+bt}).call(u.setClipUrl,U?C:null,t);else{var wt=N+bt-d.top,Tt=N+_t-d.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select("rect").call(u.setRect,N,N,A,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(I.x.text-B/2),Math.round(I.y.text-q/2)),z.attr({transform:"rotate("+L+","+I.x.text+","+I.y.text+")"});var kt,At=function(r,i){P.selectAll(".annotation-arrow-g").remove();var s=I.x.head,c=I.y.head,h=I.x.tail+r,f=I.y.tail+i,d=I.x.text+r,_=I.y.text+i,b=a.rotationXYMatrix(L,d,_),w=a.apply2DTransform(b),A=a.apply2DTransform2(b),C=+j.attr("width"),O=+j.attr("height"),D=d-.5*C,F=D+C,B=_-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(A);if(!U.reduce((function(t,e){return t^!!a.segmentsIntersect(s,c,s+1e6,c+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=a.segmentsIntersect(h,f,s,c,t[0],t[1],t[2],t[3]);e&&(h=e.x,f=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append("g").style({opacity:l.opacity(q)}).classed("annotation-arrow-g",!0),Z=G.append("path").attr("d","M"+h+","+f+"L"+s+","+c).style("stroke-width",V+"px").call(l.stroke,l.rgb(q));if(m(Z,H,e),k.annotationPosition&&Z.node().parentNode&&!g){var W=s,Y=c;if(e.standoff){var X=Math.sqrt(Math.pow(s-h,2)+Math.pow(c-f,2));W+=e.standoff*(h-s)/X,Y+=e.standoff*(f-c)/X}var $,J,K=G.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(h-W)+","+(f-Y),transform:o(W,Y)}).style("stroke-width",V+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");p.init({element:K.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);$=t.x,J=t.y,v&&v.autorange&&M(v._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(t,r){var n=w($,J),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S("x",y(v,t,"x",T,e)),S("y",y(x,r,"y",T,e)),e.axref===e.xref&&S("ax",y(v,t,"ax",T,e)),e.ayref===e.yref&&S("ay",y(x,r,"ay",T,e)),G.attr("transform",o(t,r)),z.attr({transform:"rotate("+L+","+i+","+a+")"})},doneFn:function(){n.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}};e.showarrow&&At(0,0),O&&p.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr("transform")},moveFn:function(t,r){var n="pointer";if(e.showarrow)e.axref===e.xref?S("ax",y(v,t,"ax",T,e)):S("ax",e.ax+t),e.ayref===e.yref?S("ay",y(x,r,"ay",T.w,e)):S("ay",e.ay+r),At(t,r);else{if(g)return;var i,a;if(v)i=y(v,t,"x",T,e);else{var s=e._xsize/T.w,l=e.x+(e._xshift-e.xshift)/T.w-s/2;i=p.align(l+t/T.w,s,0,1,e.xanchor)}if(x)a=y(x,r,"y",T,e);else{var u=e._ysize/T.h,c=e.y-(e._yshift+e.yshift)/T.h-u/2;a=p.align(c-r/T.h,u,0,1,e.yanchor)}S("x",i),S("y",a),(!v||!x)&&(n=p.getCursor(v?.5:i,x?.5:a,e.xanchor,e.yanchor))}z.attr({transform:o(t,r)+kt}),f(R,n)},clickFn:function(r,n){e.captureevents&&t.emit("plotly_clickannotation",Z(n))},doneFn:function(){f(R),n.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(".annotation").remove();for(var r=0;r{var r=le(),n=qt(),i=ye().arrayEditor;function a(t,e){var r,n,i,a,s,l,u,c=t._fullLayout.annotations,h=[],f=[],p=[],d=(e||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(t,e){var o,s,l=a(t,e),u=l.on,c=l.off.concat(l.explicitOff),h={},f=t._fullLayout.annotations;if(u.length||c.length){for(o=0;o{var r=le(),n=q();e.exports=function(t,e,i,a){a("opacity");var o=a("bgcolor"),s=a("bordercolor"),l=n.opacity(s);a("borderpad");var u=a("borderwidth"),c=a("showarrow");if(a("text",c?" ":i._dfltTitle.annotation),a("textangle"),r.coerceFont(a,"font",i.font),a("width"),a("align"),a("height")&&a("valign"),c){var h,f,p=a("arrowside");-1!==p.indexOf("end")&&(h=a("arrowhead"),f=a("arrowsize")),-1!==p.indexOf("start")&&(a("startarrowhead",h),a("startarrowsize",f)),a("arrowcolor",l?e.bordercolor:n.defaultLine),a("arrowwidth",2*(l&&u||1)),a("standoff"),a("startstandoff")}var d=a("hovertext"),m=i.hoverlabel||{};if(d){var g=a("hoverlabel.bgcolor",m.bgcolor||(n.opacity(o)?n.rgb(o):n.defaultLine)),y=a("hoverlabel.bordercolor",m.bordercolor||n.contrast(g)),v=r.extendFlat({},m.font);v.color||(v.color=y),r.coerceFont(a,"hoverlabel.font",v)}a("captureevents",!!d)}})),zi=f(((t,e)=>{var r=le(),n=ir(),i=Ne(),a=Pi(),o=_n();function s(t,e,i){function s(n,i){return r.coerce(t,e,o,n,i)}var l=s("visible"),u=s("clicktoshow");if(l||u){a(t,e,i,s);for(var c=e.showarrow,h=["x","y"],f=[-10,-30],p={_fullLayout:i},d=0;d<2;d++){var m=h[d],g=n.coerceRef(t,e,p,m,"","paper");if("paper"!==g&&n.getFromId(p,g)._annIndices.push(e._index),n.coercePosition(e,p,s,g,m,.5),c){var y="a"+m,v=n.coerceRef(t,e,p,y,"pixel",["pixel","paper"]);"pixel"!==v&&v!==g&&(v=e[y]="pixel");var x="pixel"===v?f[d]:.4;n.coercePosition(e,p,s,v,y,x)}s(m+"anchor"),s(m+"shift")}if(r.noneOrAll(t,e,["x","y"]),c&&r.noneOrAll(t,e,["ax","ay"]),u){var _=s("xclick"),b=s("yclick");e._xclick=void 0===_?e.x:n.cleanPosition(_,p,e.xref),e._yclick=void 0===b?e.y:n.cleanPosition(b,p,e.yref)}}}e.exports=function(t,e){i(t,e,{name:"annotations",handleItemDefaults:s})}})),Oi=f(((t,e)=>{var r=le(),n=ir(),i=Ii().draw;function a(t){var e=t._fullLayout;r.filterVisible(e.annotations).forEach((function(e){var r=n.getFromId(t,e.xref),i=n.getFromId(t,e.yref),a=n.getRefType(e.xref),s=n.getRefType(e.yref);e._extremes={},"range"===a&&o(e,r),"range"===s&&o(e,i)}))}function o(t,e){var r,i=e._id,a=i.charAt(0),o=t[a],s=t["a"+a],l=t[a+"ref"],u=t["a"+a+"ref"],c=t["_"+a+"padplus"],h=t["_"+a+"padminus"],f={x:1,y:-1}[a]*t[a+"shift"],p=3*t.arrowsize*t.arrowwidth||0,d=p+f,m=p-f,g=3*t.startarrowsize*t.arrowwidth||0,y=g+f,v=g-f;if(u===l){var x=n.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:m}),_=n.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(c,y),ppadminus:Math.max(h,v)});r={min:[x.min[0],_.min[0]],max:[x.max[0],_.max[0]]}}else y=s?y+s:y,v=s?v-s:v,r=n.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(c,d,y),ppadminus:Math.max(h,m,v)});t._extremes[i]=r}e.exports=function(t){var e=t._fullLayout;if(r.filterVisible(e.annotations).length&&t._fullData.length)return r.syncOrAsync([i,a],t)}})),Di=f(((t,e)=>{var r=T(),n=L();e.exports=function(t,e,i,a){e=e||{};var o="log"===i&&"linear"===e.type,s="linear"===i&&"log"===e.type;if(o||s)for(var l,u,c=t._fullLayout.annotations,h=e._id.charAt(0),f=0;f{var r=Ii(),n=Li();e.exports={moduleType:"component",name:"annotations",layoutAttributes:_n(),supplyLayoutDefaults:zi(),includeBasePlot:Sn()("annotations"),calcAutorange:Oi(),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:n.hasClickToShow,onClick:n.onClick,convertCoords:Di()}})),Fi=f(((t,e)=>{var r=_n(),n=Lt().overrideAll,i=ye().templatedArray;e.exports=n(i("annotation",{visible:r.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")})),Bi=f(((t,e)=>{var r=le(),n=ir(),i=Ne(),a=Pi(),o=Fi();function s(t,e,i,s){function l(n,i){return r.coerce(t,e,o,n,i)}function u(t){var r=t+"axis",a={_fullLayout:{}};return a._fullLayout[r]=i[r],n.coercePosition(e,a,l,t,t,.5)}l("visible")&&(a(t,e,s.fullLayout,l),u("x"),u("y"),u("z"),r.noneOrAll(t,e,["x","y","z"]),e.xref="x",e.yref="y",e.zref="z",l("xanchor"),l("yanchor"),l("xshift"),l("yshift"),e.showarrow&&(e.axref="pixel",e.ayref="pixel",l("ax",-10),l("ay",-30),r.noneOrAll(t,e,["ax","ay"])))}e.exports=function(t,e,r){i(t,e,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}})),Ni=f(((t,e)=>{var r=le(),n=ir();function i(t,e){var i=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};t._xa={},r.extendFlat(t._xa,o),n.setConvert(t._xa),t._xa._offset=a.l+i.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(i.x[1]-i.x[0])},t._ya={},r.extendFlat(t._ya,o),n.setConvert(t._ya),t._ya._offset=a.t+(1-i.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(i.y[1]-i.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r{function r(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return r(t.projection,r(t.view,r(t.model,[e[0],e[1],e[2],1])))}})),Ui=f(((t,e)=>{var r=Ii().drawRaw,n=ji(),i=["x","y","z"];e.exports=function(t){for(var e=t.fullSceneLayout,a=t.dataScale,o=e.annotations,s=0;s1){u=!0;break}}u?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=n(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*a[0],e.yaxis.r2l(l.y)*a[1],e.zaxis.r2l(l.z)*a[2]]),r(t.graphDiv,l,s,t.id,l._xa,l._ya))}}})),Vi=f(((t,e)=>{var r=qt(),n=le();e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Fi()}}},layoutAttributes:Fi(),handleDefaults:Bi(),includeBasePlot:function(t,e){var i=r.subplotsRegistry.gl3d;if(i)for(var a=i.attrRegex,o=Object.keys(t),s=0;s{var r=_n(),n=R(),i=Tn().line,a=Pt().dash,o=D().extendFlat,s=ye().templatedArray,l=(xn(),j()),u=Ot().shapeTexttemplateAttrs,c=Dt();e.exports=s("shape",{visible:o({},l.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:o({},l.legend,{editType:"calc+arraydraw"}),legendgroup:o({},l.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:o({},l.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:n({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:o({},l.legendrank,{editType:"calc+arraydraw"}),legendwidth:o({},l.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:o({},r.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:o({},r.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:o({},i.color,{editType:"arraydraw"}),width:o({},i.width,{editType:"calc+arraydraw"}),dash:o({},a,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:u({},{keys:Object.keys(c)}),font:n({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})})),Hi=f(((t,e)=>{var r=le(),n=ir(),i=Ne(),a=qi(),o=Hr();function s(t,e,i){function s(n,i){return r.coerce(t,e,a,n,i)}if(e._isShape=!0,s("visible")){s("showlegend")&&(s("legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),r.coerceFont(s,"legendgrouptitle.font"),s("legendrank"));var l=s("path"),u=s("type",l?"path":"rect"),c="path"!==u;c&&delete e.path,s("editable"),s("layer"),s("opacity"),s("fillcolor"),s("fillrule"),s("line.width")&&(s("line.color"),s("line.dash"));for(var h=s("xsizemode"),f=s("ysizemode"),p=["x","y"],d=0;d<2;d++){var m,g,y,v=p[d],x=v+"anchor",_="x"===v?h:f,b={_fullLayout:i},w=n.coerceRef(t,e,b,v,void 0,"paper");if("range"===n.getRefType(w)?((m=n.getFromId(b,w))._shapeIndices.push(e._index),y=o.rangeToShapePosition(m),g=o.shapePositionToRange(m),("category"===m.type||"multicategory"===m.type)&&(s(v+"0shift"),s(v+"1shift"))):g=y=r.identity,c){var T=v+"0",k=v+"1",A=t[T],M=t[k];t[T]=g(t[T],!0),t[k]=g(t[k],!0),"pixel"===_?(s(T,0),s(k,10)):(n.coercePosition(e,b,s,w,T,.25),n.coercePosition(e,b,s,w,k,.75)),e[T]=y(e[T]),e[k]=y(e[k]),t[T]=A,t[k]=M}if("pixel"===_){var S=t[x];t[x]=g(t[x],!0),n.coercePosition(e,b,s,w,x,.25),e[x]=y(e[x]),t[x]=S}}c&&r.noneOrAll(t,e,["x0","x1","y0","y1"]);var E,C,I="line"===u;if(c&&(E=s("label.texttemplate")),E||(C=s("label.text")),C||E){s("label.textangle");var L=s("label.textposition",I?"middle":"middle center");s("label.xanchor"),s("label.yanchor",function(t,e){return t?"bottom":-1!==e.indexOf("top")?"top":-1!==e.indexOf("bottom")?"bottom":"middle"}(I,L)),s("label.padding"),r.coerceFont(s,"label.font",i.font)}}}e.exports=function(t,e){i(t,e,{name:"shapes",handleItemDefaults:s})}})),Gi=f(((t,e)=>{var r=q(),n=le();e.exports=function(t,e,i){if(i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),n.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity"),i("newshape.line.width")){var a=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",r.contrast(a)),i("newshape.line.dash")}var o="drawline"===t.dragmode,s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",function(t,e){return t?"bottom":-1!==e.indexOf("top")?"top":-1!==e.indexOf("bottom")?"bottom":"middle"}(o,u)),i("newshape.label.padding"),n.coerceFont(i,"newshape.label.font",e.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}})),Zi=f(((t,e)=>{var r=le(),n=ir(),i=qr(),a=Hr();function o(t){return s(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function s(t,e,n,o,s,l){var u=t/2,c=l;if("pixel"===e){var h=s?a.extractPathCoords(s,l?i.paramIsY:i.paramIsX):[n,o],f=r.aggNums(Math.max,null,h),p=r.aggNums(Math.min,null,h),d=p<0?Math.abs(p)+u:u,m=f>0?f+u:u;return{ppad:u,ppadplus:c?d:m,ppadminus:c?m:d}}return{ppad:u}}function l(t,e,r){var n,o,s="x"===t._id.charAt(0)?"x":"y",l="category"===t.type||"multicategory"===t.type,u=0,c=0,h=l?t.r2c:t.d2c;if("scaled"===e[s+"sizemode"]?(n=e[s+"0"],o=e[s+"1"],l&&(u=e[s+"0shift"],c=e[s+"1shift"])):(n=e[s+"anchor"],o=e[s+"anchor"]),void 0!==n)return[h(n)+u,h(o)+c];if(e.path){var f,p,d,m,g=1/0,y=-1/0,v=e.path.match(i.segmentRE);for("date"===t.type&&(h=a.decodeDate(h)),f=0;fy&&(y=m));if(y>=g)return[g,y]}}e.exports=function(t){var e,a=t._fullLayout,u=r.filterVisible(a.shapes);if(u.length&&t._fullData.length)for(var c=0;c{var r=Wr();e.exports={moduleType:"component",name:"shapes",layoutAttributes:qi(),supplyLayoutDefaults:Hi(),supplyDrawNewShapeDefaults:Gi(),includeBasePlot:Sn()("shapes"),calcAutorange:Zi(),draw:r.draw,drawOne:r.drawOne}})),Yi=f(((t,e)=>{var r=ve(),n=ye().templatedArray;xn(),e.exports=n("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})})),Xi=f(((t,e)=>{var r=le(),n=ir(),i=Ne(),a=Yi();function o(t,e,i){function o(n,i){return r.coerce(t,e,a,n,i)}var s=o("source");if(!o("visible",!!s))return e;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var l={_fullLayout:i},u=["x","y"],c=0;c<2;c++){var h=u[c],f=n.coerceRef(t,e,l,h,"paper",void 0);"paper"!==f&&n.getFromId(l,f)._imgIndices.push(e._index),n.coercePosition(e,l,o,f,h,0)}return e}e.exports=function(t,e){i(t,e,{name:"images",handleItemDefaults:o})}})),$i=f(((t,e)=>{var r=v(),n=Qe(),i=ir(),a=xe(),o=Ae();e.exports=function(t){var e,s,l=t._fullLayout,u=[],c={},h=[];for(s=0;s{var r=T(),n=L();e.exports=function(t,e,i,a){e=e||{};var o="log"===i&&"linear"===e.type,s="linear"===i&&"log"===e.type;if(o||s)for(var l,u,c=t._fullLayout.images,h=e._id.charAt(0),f=0;f{e.exports={moduleType:"component",name:"images",layoutAttributes:Yi(),supplyLayoutDefaults:Xi(),includeBasePlot:Sn()("images"),draw:$i(),convertCoords:Ji()}})),Qi=f(((t,e)=>{e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}})),ta=f(((t,e)=>{var r=R(),n=V(),i=D().extendFlat,a=Lt().overrideAll,o=Bt(),s=ye().templatedArray,l=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});e.exports=a(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:l,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(o({editType:"arraydraw"}),{}),font:r({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:n.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")})),ea=f(((t,e)=>{var r=le(),n=Ne(),i=ta(),a=Qi().name,o=i.buttons;function s(t,e,a){function o(n,a){return r.coerce(t,e,i,n,a)}o("visible",n(t,e,{name:"buttons",handleItemDefaults:l}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),r.noneOrAll(t,e,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",a.font),o("bgcolor",a.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function l(t,e){function n(n,i){return r.coerce(t,e,o,n,i)}n("visible","skip"===t.method||Array.isArray(t.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}e.exports=function(t,e){n(t,e,{name:a,handleItemDefaults:s})}})),ra=f(((t,e)=>{e.exports=o;var r=v(),n=q(),i=Qe(),a=le();function o(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}o.barWidth=2,o.barLength=20,o.barRadius=2,o.barPad=1,o.barColor="#808BA4",o.prototype.enable=function(t,e,a){var s=this.gd._fullLayout,l=s.width,u=s.height;this.position=t;var c,h,f,p,d=this.position.l,m=this.position.w,g=this.position.t,y=this.position.h,v=this.position.direction,x="down"===v,_="left"===v,b="up"===v,w=m,T=y;!x&&!_&&!("right"===v)&&!b&&(this.position.direction="down",x=!0),x||b?(h=(c=d)+w,x?(f=g,T=(p=Math.min(f+T,u))-f):T=(p=g+T)-(f=Math.max(p-T,0))):(p=(f=g)+T,_?w=(h=d+w)-(c=Math.max(h-w,0)):(c=d,w=(h=Math.min(c+w,l))-c)),this._box={l:c,t:f,w,h:T};var k=m>w,A=o.barLength+2*o.barPad,M=o.barWidth+2*o.barPad,S=d,E=g+y;E+M>u&&(E=u-M);var C=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(n.fill,o.barColor),k?(this.hbar=C.attr({rx:o.barRadius,ry:o.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=y>T,L=o.barWidth+2*o.barPad,P=o.barLength+2*o.barPad,z=d+m,O=g;z+L>l&&(z=l-L);var D=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(n.fill,o.barColor),I?(this.vbar=D.attr({rx:o.barRadius,ry:o.barRadius,x:z,y:O,width:L,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=c-.5,B=I?h+L+.5:h+.5,N=f-.5,j=k?p+M+.5:p+.5,U=s._topdefs.selectAll("#"+R).data(k||I?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",R).append("rect"),k||I?(this._clipRect=U.select("rect").attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(i.setClipUrl,R,this.gd),this.bg.attr({x:d,y:g,width:m,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),k||I){var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var q=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(q),I&&this.vbar.on(".drag",null).call(q)}this.setTranslate(e,a)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},o.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=r.event.dx),this.vbar&&(e-=r.event.dy),this.setTranslate(t,e)},o.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=r.event.deltaY),this.vbar&&(e+=r.event.deltaY),this.setTranslate(t,e)},o.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax;t=(a.constrain(r.event.x,n,i)-n)/(i-n)*(this.position.w-this._box.w)}if(this.vbar){var o=e+this._vbarYMin,s=o+this._vbarTranslateMax;e=(a.constrain(r.event.y,o,s)-o)/(s-o)*(this.position.h-this._box.h)}this.setTranslate(t,e)},o.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=a.constrain(t||0,0,r),e=a.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(i.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var o=t/r;this.hbar.call(i.setTranslate,t+o*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(i.setTranslate,t,e+s*this._vbarTranslateMax)}}})),na=f(((t,e)=>{var r=v(),n=ke(),i=q(),a=Qe(),o=le(),s=Se(),l=ye().arrayEditor,u=Me().LINE_SPACING,c=Qi(),h=ra();function f(t){return t._index}function p(t,e){return+t.attr(c.menuIndexAttrName)===e._index}function d(t,e,r,n,i,a,o,s){e.active=o,l(t.layout,c.name,e).applyUpdate("active",o),"buttons"===e.type?g(t,n,null,null,e):"dropdown"===e.type&&(i.attr(c.menuIndexAttrName,"-1"),m(t,n,i,a,e),s||g(t,n,i,a,e))}function m(t,e,r,n,i){var s=o.ensureSingle(e,"g",c.headerClassName,(function(t){t.style("pointer-events","all")})),l=i._dims,u=i.active,h=i.buttons[u]||c.blankHeaderOpts,f={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:l.headerWidth,height:l.headerHeight};s.call(y,i,h,t).call(M,i,f,d),o.ensureSingle(e,"text",c.headerArrowClassName,(function(t){t.attr("text-anchor","end").call(a.font,i.font).text(c.arrowSymbol[i.direction])})).attr({x:l.headerWidth-c.arrowOffsetX+i.pad.l,y:l.headerHeight/2+c.textOffsetY+i.pad.t}),s.on("click",(function(){r.call(S,String(p(r,i)?-1:i._index)),g(t,e,r,n,i)})),s.on("mouseover",(function(){s.call(w)})),s.on("mouseout",(function(){s.call(T,i)})),a.setTranslate(e,l.lx,l.ly)}function g(t,e,i,a,s){i||(i=e).attr("pointer-events","all");var l=function(t){return-1==+t.attr(c.menuIndexAttrName)}(i)&&"buttons"!==s.type?[]:s.buttons,u="dropdown"===s.type?c.dropdownButtonClassName:c.buttonClassName,h=i.selectAll("g."+u).data(o.filterVisible(l)),f=h.enter().append("g").classed(u,!0),p=h.exit();"dropdown"===s.type?(f.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var m=0,g=0,v=s._dims,x=-1!==["up","down"].indexOf(s.direction);"dropdown"===s.type&&(x?g=v.headerHeight+c.gapButtonHeader:m=v.headerWidth+c.gapButtonHeader),"dropdown"===s.type&&"up"===s.direction&&(g=-c.gapButtonHeader+c.gapButton-v.openHeight),"dropdown"===s.type&&"left"===s.direction&&(m=-c.gapButtonHeader+c.gapButton-v.openWidth);var _={x:v.lx+m+s.pad.l,y:v.ly+g+s.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},k={l:_.x+s.borderwidth,t:_.y+s.borderwidth};h.each((function(o,l){var u=r.select(this);u.call(y,s,o,t).call(M,s,_),u.on("click",(function(){r.event.defaultPrevented||(o.execute&&(o.args2&&s.active===l?(d(t,s,0,e,i,a,-1),n.executeAPICommand(t,o.method,o.args2)):(d(t,s,0,e,i,a,l),n.executeAPICommand(t,o.method,o.args))),t.emit("plotly_buttonclicked",{menu:s,button:o,active:s.active}))})),u.on("mouseover",(function(){u.call(w)})),u.on("mouseout",(function(){u.call(T,s),h.call(b,s)}))})),h.call(b,s),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=_.y-k.t):(k.w=_.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=s.direction,a&&(h.size()?function(t,e,r,n,i,a){var o,s,l,u=i.direction,h="up"===u||"down"===u,f=i._dims,p=i.active;if(h)for(s=0,l=0;l0?[0]:[]);if(s.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),s.exit().each((function(){r.select(this).selectAll("g."+c.headerGroupClassName).each(a)})).remove(),0!==i.length){var l=s.selectAll("g."+c.headerGroupClassName).data(i,f);l.enter().append("g").classed(c.headerGroupClassName,!0);for(var u=o.ensureSingle(s,"g",c.dropdownButtonGroupClassName,(function(t){t.style("pointer-events","all")})),y=0;y{var r=Qi();e.exports={moduleType:"component",name:r.name,layoutAttributes:ta(),supplyLayoutDefaults:ea(),draw:na()}})),aa=f(((t,e)=>{e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}})),oa=f(((t,e)=>{var r=R(),n=Bt(),i=D().extendDeepAll,a=Lt().overrideAll,o=It(),s=ye().templatedArray,l=aa(),u=s("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});e.exports=a(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(n({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:o.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:r({})},font:r({}),activebgcolor:{valType:"color",dflt:l.gripBgActiveColor},bgcolor:{valType:"color",dflt:l.railBgColor},bordercolor:{valType:"color",dflt:l.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l.tickLength},tickcolor:{valType:"color",dflt:l.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l.minorTickLength}}),"arraydraw","from-root")})),sa=f(((t,e)=>{var r=le(),n=Ne(),i=oa(),a=aa().name,o=i.steps;function s(t,e,a){function o(n,a){return r.coerce(t,e,i,n,a)}for(var s=n(t,e,{name:"steps",handleItemDefaults:l}),u=0,c=0;c{var r=v(),n=ke(),i=q(),a=Qe(),o=le(),s=o.strTranslate,l=Se(),u=ye().arrayEditor,c=aa(),h=Me(),f=h.LINE_SPACING,p=h.FROM_TL,d=h.FROM_BR;function m(t){return c.autoMarginIdRoot+t._index}function g(t){return t._index}function y(t,e){var i=a.tester.selectAll("g."+c.labelGroupClass).data(e._visibleSteps);i.enter().append("g").classed(c.labelGroupClass,!0);var s=0,u=0;i.each((function(t){var n=b(r.select(this),{step:t},e).node();if(n){var i=a.bBox(n);u=Math.max(u,i.height),s=Math.max(s,i.width)}})),i.remove();var h=e._dims={};h.inputAreaWidth=Math.max(c.railWidth,c.gripHeight);var f=t._fullLayout._size;h.lx=f.l+f.w*e.x,h.ly=f.t+f.h*(1-e.y),"fraction"===e.lenmode?h.outerLength=Math.round(f.w*e.len):h.outerLength=e.len,h.inputAreaStart=0,h.inputAreaLength=Math.round(h.outerLength-e.pad.l-e.pad.r);var g=(h.inputAreaLength-2*c.stepInset)/(e._stepCount-1),y=s+c.labelPadding;if(h.labelStride=Math.max(1,Math.ceil(y/g)),h.labelHeight=u,h.currentValueMaxWidth=0,h.currentValueHeight=0,h.currentValueTotalHeight=0,h.currentValueMaxLines=1,e.currentvalue.visible){var v=a.tester.append("g");i.each((function(t){var r=x(v,e,t.label),n=r.node()&&a.bBox(r.node())||{width:0,height:0},i=l.lineCount(r);h.currentValueMaxWidth=Math.max(h.currentValueMaxWidth,Math.ceil(n.width)),h.currentValueHeight=Math.max(h.currentValueHeight,Math.ceil(n.height)),h.currentValueMaxLines=Math.max(h.currentValueMaxLines,i)})),h.currentValueTotalHeight=h.currentValueHeight+e.currentvalue.offset,v.remove()}h.height=h.currentValueTotalHeight+c.tickOffset+e.ticklen+c.labelOffset+h.labelHeight+e.pad.t+e.pad.b;var _="left";o.isRightAnchor(e)&&(h.lx-=h.outerLength,_="right"),o.isCenterAnchor(e)&&(h.lx-=h.outerLength/2,_="center");var w="top";o.isBottomAnchor(e)&&(h.ly-=h.height,w="bottom"),o.isMiddleAnchor(e)&&(h.ly-=h.height/2,w="middle"),h.outerLength=Math.ceil(h.outerLength),h.height=Math.ceil(h.height),h.lx=Math.round(h.lx),h.ly=Math.round(h.ly);var T={y:e.y,b:h.height*d[w],t:h.height*p[w]};"fraction"===e.lenmode?(T.l=0,T.xl=e.x-e.len*p[_],T.r=0,T.xr=e.x+e.len*d[_]):(T.x=e.x,T.l=h.outerLength*p[_],T.r=h.outerLength*d[_]),n.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,s=e._dims;switch(e.currentvalue.xanchor){case"right":n=s.inputAreaLength-c.currentValueInset-s.currentValueMaxWidth,i="left";break;case"center":n=.5*s.inputAreaLength,i="middle";break;default:n=c.currentValueInset,i="left"}var u=o.ensureSingle(t,"text",c.labelClass,(function(t){t.attr({"text-anchor":i,"data-notex":1})})),h=e.currentvalue.prefix?e.currentvalue.prefix:"";if("string"==typeof r)h+=r;else{var p=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&&(p=o.templateString(p,d)),h+=p}e.currentvalue.suffix&&(h+=e.currentvalue.suffix),u.call(a.font,e.currentvalue.font).text(h).call(l.convertToTspans,e._gd);var m=l.lineCount(u),g=(s.currentValueMaxLines+1-m)*e.currentvalue.font.size*f;return l.positionText(u,n,g),u}}function _(t,e,r){o.ensureSingle(t,"rect",c.gripRectClass,(function(n){n.call(A,e,t,r).style("pointer-events","all")})).attr({width:c.gripWidth,height:c.gripHeight,rx:c.gripRadius,ry:c.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function b(t,e,r){var n=o.ensureSingle(t,"text",c.labelClass,(function(t){t.attr({"text-anchor":"middle","data-notex":1})})),i=e.step.label,s=r._gd._fullLayout._meta;return s&&(i=o.templateString(i,s)),n.call(a.font,r.font).text(i).call(l.convertToTspans,r._gd),n}function w(t,e){var n=o.ensureSingle(t,"g",c.labelsClass),i=e._dims,s=n.selectAll("g."+c.labelGroupClass).data(i.labelSteps);s.enter().append("g").classed(c.labelGroupClass,!0),s.exit().remove(),s.each((function(t){var n=r.select(this);n.call(b,t,e),a.setTranslate(n,E(e,t.fraction),c.tickOffset+e.ticklen+e.font.size*f+c.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&&k(t,e,r,o,!0,i)}function k(t,e,r,i,a,o){var s=r.active;r.active=i,u(t.layout,c.name,r).applyUpdate("active",i);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&&l.method&&a&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&&(r.execute&&n.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function A(t,e,n){if(!e._context.staticPlot){var a=n.node(),o=r.select(e);t.on("mousedown",l),t.on("touchstart",l)}function s(){return n.data()[0]}function l(){var t=s();e.emit("plotly_sliderstart",{slider:t});var l=n.select("."+c.gripRectClass);r.event.stopPropagation(),r.event.preventDefault(),l.call(i.fill,t.activebgcolor);var u=C(t,r.mouse(a)[0]);function h(){var t=s(),i=C(t,r.mouse(a)[0]);T(e,n,t,i,!1)}function f(){var t=s();t._dragging=!1,l.call(i.fill,t.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),e.emit("plotly_sliderend",{slider:t,step:t.steps[t.active]})}T(e,n,t,u,!0),t._dragging=!0,o.on("mousemove",h),o.on("touchmove",h),o.on("mouseup",f),o.on("touchend",f)}}function M(t,e){var n=t.selectAll("rect."+c.tickRectClass).data(e._visibleSteps),o=e._dims;n.enter().append("rect").classed(c.tickRectClass,!0),n.exit().remove(),n.attr({width:e.tickwidth+"px","shape-rendering":"crispEdges"}),n.each((function(t,n){var s=n%o.labelStride==0,l=r.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(i.fill,e.tickcolor),a.setTranslate(l,E(e,n/(e._stepCount-1))-.5*e.tickwidth,(s?c.tickOffset:c.minorTickOffset)+o.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select("rect."+c.gripRectClass),i=0,a=0;a0&&(l=l.transition().duration(e.transition.duration).ease(e.transition.easing)),l.attr("transform",s(o-.5*c.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+c.stepInset+(r.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-c.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*c.stepInset-2*r.inputAreaStart)))}function I(t,e,r){var n=r._dims,s=o.ensureSingle(t,"rect",c.railTouchRectClass,(function(n){n.call(A,e,t,r).style("pointer-events","all")}));s.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,c.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),a.setTranslate(s,0,n.currentValueTotalHeight)}function L(t,e){var r=e._dims,n=r.inputAreaLength-2*c.railInset,s=o.ensureSingle(t,"rect",c.railRectClass);s.attr({width:n,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,e.bordercolor).call(i.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px"),a.setTranslate(s,c.railInset,.5*(r.inputAreaWidth-c.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._context.staticPlot,i=t._fullLayout,o=function(t,e){for(var r=t[c.name],n=[],i=0;i0?[0]:[]);function l(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),n.autoMargin(t,m(e))}if(s.enter().append("g").classed(c.containerClassName,!0).style("cursor",e?null:"ew-resize"),s.exit().each((function(){r.select(this).selectAll("g."+c.groupClassName).each(l)})).remove(),0!==o.length){var u=s.selectAll("g."+c.groupClassName).data(o,g);u.enter().append("g").classed(c.groupClassName,!0),u.exit().each(l).remove();for(var h=0;h{var r=aa();e.exports={moduleType:"component",name:r.name,layoutAttributes:oa(),supplyLayoutDefaults:sa(),draw:la()}})),ca=f(((t,e)=>{var r=V();e.exports={bgcolor:{valType:"color",dflt:r.background,editType:"plot"},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}})),ha=f(((t,e)=>{e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}})),fa=f(((t,e)=>{e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}})),pa=f((t=>{var e=xe(),r=Se(),n=fa(),i=Me().LINE_SPACING,a=n.name;function o(t){var e=t&&t[a];return e&&e.visible}t.isVisible=o,t.makeData=function(t){for(var r=e.list({_fullLayout:t},"x",!0),n=t.margin,i=[],s=0;s{var r=le(),n=ye(),i=xe(),a=ca(),o=ha();e.exports=function(t,e,s){var l=t[s],u=e[s];if(l.rangeslider||e._requestRangeslider[u._id]){r.isPlainObject(l.rangeslider)||(l.rangeslider={});var c,h,f=l.rangeslider,p=n.newContainer(u,"rangeslider");if(b("visible")){b("bgcolor",e.plot_bgcolor),b("bordercolor"),b("borderwidth"),b("thickness"),b("autorange",!u.isValidRange(f.range)),b("range");var d=e._subplots;if(d)for(var m=d.cartesian.filter((function(t){return t.substr(0,t.indexOf("y"))===i.name2id(s)})).map((function(t){return t.substr(t.indexOf("y"),t.length)})),g=r.simpleMap(m,i.id2name),y=0;y{var r=xe().list,n=nr().getAutoRange,i=fa();e.exports=function(t){for(var e=r(t,"x",!0),a=0;a{var r=v(),n=qt(),i=ke(),a=le(),o=a.strTranslate,s=Qe(),l=q(),u=tr(),c=Si(),h=xe(),f=fr(),p=pr(),d=fa();function m(t){return"number"==typeof t.clientX?t.clientX:t.touches&&t.touches.length>0?t.touches[0].clientX:0}function g(t,e,r,n){var i=a.ensureSingle(t,"rect",d.bgClassName,(function(t){t.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),u=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,h=s.crispRound(e,n.borderwidth);i.attr({width:n._width+u,height:n._height+u,transform:o(c,c),"stroke-width":h}).call(l.stroke,n.bordercolor).call(l.fill,n.bgcolor)}function y(t,e,r,n){var i=e._fullLayout;a.ensureSingleById(i._topdefs,"clipPath",n._clipId,(function(t){t.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function x(t,e,n,o){var l,u=e.calcdata,f=t.selectAll("g."+d.rangePlotClassName).data(n._subplotsWith,a.identity);f.enter().append("g").attr("class",(function(t){return d.rangePlotClassName+" "+t})).call(s.setClipUrl,o._clipId,e),f.order(),f.exit().remove(),f.each((function(t,a){var s=r.select(this),f=0===a,p=h.getFromId(e,t,"y"),d=p._name,m=o[d],g={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:o.range.slice(),calendar:n.calendar},width:o._width,height:o._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};n.rangebreaks&&(g.layout.xaxis.rangebreaks=n.rangebreaks),g.layout[d]={type:p.type,domain:[0,1],range:"match"!==m.rangemode?m.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&&(g.layout[d].rangebreaks=p.rangebreaks),i.supplyDefaults(g);var y=g._fullLayout.xaxis,v=g._fullLayout[d];y.clearCalc(),y.setScale(),v.clearCalc(),v.setScale();var x={id:t,plotgroup:s,xaxis:y,yaxis:v,isRangePlot:!0};f?l=x:(x.mainplot="xy",x.mainplotinfo=l),c.rangePlot(e,x,function(t,e){for(var r=[],n=0;n=n.max)e=B[r+1];else if(t=n.pmax)e=B[r+1];else if(ti._length||v+b<0)return;c=y+b,f=v+b;break;case l:if(_="col-resize",y+b>i._length)return;c=y+b,f=v;break;case u:if(_="col-resize",v+b<0)return;c=y,f=v+b;break;default:_="ew-resize",c=g,f=g+b}if(f{var r=le(),n=ca(),i=ha(),a=pa();e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r.extendFlat({},n,{yaxis:i})}}},layoutAttributes:ca(),handleDefaults:da(),calcAutorange:ma(),draw:ga(),isVisible:a.isVisible,makeData:a.makeData,autoMarginOpts:a.autoMarginOpts}})),va=f(((t,e)=>{var r=R(),n=V(),i=(0,ye().templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});e.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:r({editType:"plot"}),bgcolor:{valType:"color",dflt:n.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}})),xa=f(((t,e)=>{e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}})),_a=f(((t,e)=>{var r=le(),n=q(),i=ye(),a=Ne(),o=va(),s=xa();function l(t,e,n,i){var a=i.calendar;function s(n,i){return r.coerce(t,e,o.buttons,n,i)}if(s("visible")){var l=s("step");"all"!==l&&(!a||"gregorian"===a||"month"!==l&&"year"!==l?s("stepmode"):e.stepmode="backward",s("count")),s("label")}}e.exports=function(t,e,u,c,h){var f=t.rangeselector||{},p=i.newContainer(e,"rangeselector");function d(t,e){return r.coerce(f,p,o,t,e)}if(d("visible",a(f,p,{name:"buttons",handleItemDefaults:l,calendar:h}).length>0)){var m=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a{var r=x(),n=le().titleCase;e.exports=function(t,e){var i=t._name,a={};if("all"===e.step)a[i+".autorange"]=!0;else{var o=function(t,e){var i,a=t.range,o=new Date(t.r2l(a[1])),s=e.step,l=r["utc"+n(s)],u=e.count;switch(e.stepmode){case"backward":i=t.l2r(+l.offset(o,-u));break;case"todate":var c=l.offset(o,-u);i=t.l2r(+l.ceil(c))}return[i,a[1]]}(t,e);a[i+".range[0]"]=o[0],a[i+".range[1]"]=o[1]}return a}})),wa=f(((t,e)=>{var r=v(),n=qt(),i=ke(),a=q(),o=Qe(),s=le(),l=s.strTranslate,u=Se(),c=xe(),h=Me(),f=h.LINE_SPACING,p=h.FROM_TL,d=h.FROM_BR,m=xa(),g=ba();function y(t){return t._id}function x(t,e,r){var n=s.ensureSingle(t,"rect","selector-rect",(function(t){t.attr("shape-rendering","crispEdges")}));n.attr({rx:m.rx,ry:m.ry}),n.call(a.stroke,e.bordercolor).call(a.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style("stroke-width",e.borderwidth+"px")}function _(t,e,r,n){s.ensureSingle(t,"text","selector-text",(function(t){t.attr("text-anchor","middle")})).call(o.font,e.font).text(function(t,e){return t.label?e?s.templateString(t.label,e):t.label:"all"===t.step?"all":t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(".rangeselector").data(function(t){for(var e=c.list(t,"x",!0),r=[],n=0;n{e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:va()}}},layoutAttributes:va(),handleDefaults:_a(),draw:wa()}})),ka=f((t=>{var e=D().extendFlat;t.attributes=function(t,r){r=r||{};var n={valType:"info_array",editType:(t=t||{}).editType,items:[{valType:"number",min:0,max:1,editType:t.editType},{valType:"number",min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&&t.name,t.trace,r.description&&r.description,{x:e({},n,{}),y:e({},n,{}),editType:t.editType});return t.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:t.editType},i.column={valType:"integer",min:0,dflt:0,editType:t.editType}),i},t.defaults=function(t,e,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=e.grid;if(o){var s=r("domain.column");void 0!==s&&(s{var r=le(),n=G().counter,i=ka().attributes,a=ve().idRegex,o=ye(),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[n("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[a.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[a.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function l(t,e,r){var n=e[r+"axes"],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+"gap",r),s=e("domain."+t);e(t+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),h=c*(1-o),f=0;f1){f||p||d||"independent"===k("pattern")&&(f=!0),g._hasSubplotGrid=f;var x,_,b="top to bottom"===k("roworder"),w=f?.2:.1,T=f?.3:.1;m&&e._splomGridDflt&&(x=e._splomGridDflt.xside,_=e._splomGridDflt.yside),g._domains={x:u("x",k,w,x,v),y:u("y",k,T,_,y,b)}}else delete e.grid}function k(t,e){return r.coerce(n,g,s,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&&r._domains){var n,i,a,o,s,u,h,f=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,m=r.rows,g=r.columns,y="independent"===r.pattern,v=r._axisMap={};if(d){var x=f.subplots||[];u=r.subplots=new Array(m);var _=1;for(n=0;n{e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}})),Sa=f(((t,e)=>{var r=T(),n=qt(),i=le(),a=ye(),o=Ma();e.exports=function(t,e,s,l){var u="error_"+l.axis,c=a.newContainer(e,u),h=t[u]||{};function f(t,e){return i.coerce(h,c,o,t,e)}if(!1!==f("visible",void 0!==h.array||void 0!==h.value||"sqrt"===h.type)){var p=f("type","array"in h?"data":"percent"),d=!0;"sqrt"!==p&&(d=f("symmetric",!(("data"===p?"arrayminus":"valueminus")in h))),"data"===p?(f("array"),f("traceref"),d||(f("arrayminus"),f("tracerefminus"))):("percent"===p||"constant"===p)&&(f("value"),d||f("valueminus"));var m="copy_"+l.inherit+"style";l.inherit&&(e["error_"+l.inherit]||{}).visible&&f(m,!(h.color||r(h.thickness)||r(h.width))),(!l.inherit||!c[m])&&(f("color",s),f("thickness"),f("width",n.traceIs(e,"gl3d")?0:4))}}})),Ea=f(((t,e)=>{function r(t,e){return"percent"===t?function(t){return Math.abs(t*e/100)}:"constant"===t?function(){return Math.abs(e)}:"sqrt"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,n=t.symmetric;if("data"===e){var i=t.array||[];if(n)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=r(e,t.value),s=r(e,t.valueminus);return n||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}})),Ca=f(((t,e)=>{var r=T(),n=qt(),i=ir(),a=le(),o=Ea();function s(t,e,n,s){var l=e["error_"+s]||{},u=[];if(l.visible&&-1!==["linear","log"].indexOf(n.type)){for(var c=o(l),h=0;h{var r=v(),n=T(),i=Qe(),a=Ye();e.exports=function(t,e,o,s){var l=o.xaxis,u=o.yaxis,c=s&&s.duration>0,h=t._context.staticPlot;e.each((function(e){var f,p=e[0].trace,d=p.error_x||{},m=p.error_y||{};p.ids&&(f=function(t){return t.id});var g=a.hasMarkers(p)&&p.marker.maxdisplayed>0;!m.visible&&!d.visible&&(e=[]);var y=r.select(this).selectAll("g.errorbar").data(e,f);if(y.exit().remove(),e.length){d.visible||y.selectAll("path.xerror").remove(),m.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var v=y.enter().append("g").classed("errorbar",!0);c&&v.style("opacity",0).transition().duration(s.duration).style("opacity",1),i.setClipUrl(y,o.layerClipId,t),y.each((function(t){var e=r.select(this),i=function(t,e,r){var i={x:e.c2p(t.x),y:r.c2p(t.y)};return void 0!==t.yh&&(i.yh=r.c2p(t.yh),i.ys=r.c2p(t.ys),n(i.ys)||(i.noYS=!0,i.ys=r.c2p(t.ys,!0))),void 0!==t.xh&&(i.xh=e.c2p(t.xh),i.xs=e.c2p(t.xs),n(i.xs)||(i.noXS=!0,i.xs=e.c2p(t.xs,!0))),i}(t,l,u);if(!g||t.vis){var a,o=e.select("path.yerror");if(m.visible&&n(i.x)&&n(i.yh)&&n(i.ys)){var f=m.width;a="M"+(i.x-f)+","+i.yh+"h"+2*f+"m-"+f+",0V"+i.ys,i.noYS||(a+="m-"+f+",0h"+2*f),o.size()?c&&(o=o.transition().duration(s.duration).ease(s.easing)):o=e.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("yerror",!0),o.attr("d",a)}else o.remove();var p=e.select("path.xerror");if(d.visible&&n(i.y)&&n(i.xh)&&n(i.xs)){var y=(d.copy_ystyle?m:d).width;a="M"+i.xh+","+(i.y-y)+"v"+2*y+"m0,-"+y+"H"+i.xs,i.noXS||(a+="m0,-"+y+"v"+2*y),p.size()?c&&(p=p.transition().duration(s.duration).ease(s.easing)):p=e.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("xerror",!0),p.attr("d",a)}else p.remove()}}))}}))}})),La=f(((t,e)=>{var r=v(),n=q();e.exports=function(t){t.each((function(t){var e=t[0].trace,i=e.error_y||{},a=e.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(n.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(n.stroke,a.color)}))}})),Pa=f(((t,e)=>{var r=le(),n=Lt().overrideAll,i=Ma(),a={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i)};delete a.error_x.copy_zstyle,delete a.error_y.copy_zstyle,delete a.error_y.copy_ystyle;var o={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i),error_z:r.extendFlat({},i)};delete o.error_x.copy_ystyle,delete o.error_y.copy_ystyle,delete o.error_z.copy_ystyle,delete o.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:a,bar:a,histogram:a,scatter3d:n(o,"calc","nested"),scattergl:n(a,"calc","nested")}},supplyDefaults:Sa(),calc:Ca(),makeComputeError:Ea(),plot:Ia(),style:La(),hoverInfo:function(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys)),(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}})),za=f(((t,e)=>{e.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}})),Oa=f(((t,e)=>{var r=v(),n=O(),i=ke(),a=qt(),o=ir(),s=fr(),l=le(),u=l.strTranslate,c=D().extendFlat,h=pr(),f=Qe(),p=q(),d=tr(),m=Se(),g=Ee().flipScale,y=Ti(),x=ki(),_=Ie(),b=Me(),w=b.LINE_SPACING,T=b.FROM_TL,k=b.FROM_BR,A=za().cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return c(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){"function"==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?g(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var h=0;h0?n>=l:n<=l));i++)n>c&&n0?n>=l:n<=l));i++)n>r[0]&&n1){var pt=Math.pow(10,Math.floor(Math.log(ft)/Math.LN10));ct*=pt*l.roundUp(ft/pt,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(lt.tick0=0)}lt.dtick=ct}lt.domain=s?[ot+P/B.h,ot+Q-P/B.h]:[ot+L/B.w,ot+Q-L/B.w],lt.setScale(),t.attr("transform",u(Math.round(B.l),Math.round(B.t)));var dt,mt=t.select("."+A.cbtitleunshift).attr("transform",u(-Math.round(B.l),-Math.round(B.t))),gt=lt.ticklabelposition,yt=lt.title.font.size,vt=t.select("."+A.cbaxis),xt=0,_t=0;function bt(r,n){var i={propContainer:lt,propName:e._propPrefix+"title",traceIndex:e._traceIndex,_meta:e._meta,placeholder:F._dfltTitle.colorbar,containerGroup:t.select("."+A.cbtitle)},o="h"===r.charAt(0)?r.substr(1):"h"+r;t.selectAll("."+o+",."+o+"-math-group").remove(),d.draw(a,r,c(i,n||{}))}return l.syncOrAsync([i.previousPromises,function(){var t,e;(s&&ut||!s&&!ut)&&("top"===V&&(t=L+B.l+tt*z,e=P+B.t+et*(1-ot-Q)+3+.75*yt),"bottom"===V&&(t=L+B.l+tt*z,e=P+B.t+et*(1-ot)-3-.25*yt),"right"===V&&(e=P+B.t+et*O+3+.75*yt,t=L+B.l+tt*ot),bt(lt._id+"title",{attributes:{x:t,y:e,"text-anchor":s?"start":"middle"}}))},function(){if(!s&&!ut||s&&ut){var i,c=t.select("."+A.cbtitle),h=c.select("text"),p=[-M/2,M/2],d=c.select(".h"+lt._id+"title-math-group").node(),g=15.6;if(h.node()&&(g=parseInt(h.node().style.fontSize,10)*w),d?(i=f.bBox(d),_t=i.width,(xt=i.height)>g&&(p[1]-=(xt-g)/2)):h.node()&&!h.classed(A.jsPlaceholder)&&(i=f.bBox(h.node()),_t=i.width,xt=i.height),s){if(xt){if(xt+=5,"top"===V)lt.domain[1]-=xt/B.h,p[1]*=-1;else{lt.domain[0]+=xt/B.h;var y=m.lineCount(h);p[1]+=(1-y)*g}c.attr("transform",u(p[0],p[1])),lt.setScale()}}else _t&&("right"===V&&(lt.domain[0]+=(_t+yt/2)/B.w),c.attr("transform",u(p[0],p[1])),lt.setScale())}t.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",s?u(0,Math.round(B.h*(1-lt.domain[1]))):u(Math.round(B.w*lt.domain[0]),0)),vt.attr("transform",s?u(0,Math.round(-B.t)):u(Math.round(-B.l),0));var v=t.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(Y);v.enter().append("rect").classed(A.cbfill,!0).attr("style",""),v.exit().remove();var x=q.map(lt.c2p).map(Math.round).sort((function(t,e){return t-e}));v.each((function(t,i){var o=[0===i?q[0]:(Y[i]+Y[i-1])/2,i===Y.length-1?q[1]:(Y[i]+Y[i+1])/2].map(lt.c2p).map(Math.round);s&&(o[1]=l.constrain(o[1]+(o[1]>o[0])?1:-1,x[0],x[1]));var u=r.select(this).attr(s?"x":"y",rt).attr(s?"y":"x",r.min(o)).attr(s?"width":"height",Math.max($,2)).attr(s?"height":"width",Math.max(r.max(o)-r.min(o),2));if(e._fillgradient)f.gradient(u,a,e._id,s?"vertical":"horizontalreversed",e._fillgradient,"fill");else{var c=G(t).replace("e-","");u.attr("fill",n(c).toHexString())}}));var _=t.select("."+A.cblines).selectAll("path."+A.cbline).data(j.color&&j.width?X:[]);_.enter().append("path").classed(A.cbline,!0),_.exit().remove(),_.each((function(t){var e=rt,n=Math.round(lt.c2p(t))+j.width/2%1;r.select(this).attr("d","M"+(s?e+","+n:n+","+e)+(s?"h":"v")+$).call(f.lineGroupStyle,j.width,H(t),j.dash)})),vt.selectAll("g."+lt._id+"tick,path").remove();var b=rt+$+(M||0)/2-("outside"===e.ticks?1:0),T=o.calcTicks(lt),k=o.getTickSigns(lt)[2];return o.drawTicks(a,lt,{vals:"inside"===lt.ticks?o.clipEnds(lt,T):T,layer:vt,path:o.makeTickPath(lt,b,k),transFn:o.makeTransTickFn(lt)}),o.drawLabels(a,lt,{vals:T,layer:vt,transFn:o.makeTransTickLabelFn(lt),labelFns:o.makeLabelFns(lt,b)})},function(){if(s&&!ut||!s&&ut){var t,n,i=lt.position||0,o=lt._offset+lt._length/2;if("right"===V)n=o,t=B.l+tt*i+10+yt*(lt.showticklabels?1:.5);else if(t=o,"bottom"===V&&(n=B.t+et*i+10+(-1===gt.indexOf("inside")?lt.tickfont.size:0)+("intside"!==lt.ticks&&e.ticklen||0)),"top"===V){var l=U.text.split("
").length;n=B.t+et*i+10-$-w*yt*l}bt((s?"h":"v")+lt._id+"title",{avoid:{selection:r.select(a).selectAll("g."+lt._id+"tick"),side:V,offsetTop:s?0:B.t,offsetLeft:s?B.l:0,maxShift:s?F.width:F.height},attributes:{x:t,y:n,"text-anchor":"middle"},transform:{rotate:s?-90:0,offset:0}})}},i.previousPromises,function(){var r,o=$+M/2;-1===gt.indexOf("inside")&&(r=f.bBox(vt.node()),o+=s?r.width:r.height),dt=mt.select("text");var l=0,c=s&&"top"===V,d=!s&&"right"===V,m=0;if(dt.node()&&!dt.classed(A.jsPlaceholder)){var y,x=mt.select(".h"+lt._id+"title-math-group").node();x&&(s&&ut||!s&&!ut)?(l=(r=f.bBox(x)).width,y=r.height):(l=(r=f.bBox(mt.node())).right-B.l-(s?rt:st),y=r.bottom-B.t-(s?st:rt),!s&&"top"===V&&(o+=r.height,m=r.height)),d&&(dt.attr("transform",u(l/2+yt/2,0)),l*=2),o=Math.max(o,s?l:y)}var _=2*(s?L:P)+o+S+M/2,w=0;!s&&U.text&&"bottom"===I&&O<=0&&(_+=w=_/2,m+=w),F._hColorbarMoveTitle=w,F._hColorbarMoveCBTitle=m;var N=S+M,j=(s?rt:st)-N/2-(s?L:0),q=(s?st:rt)-(s?K:P+m-w);t.select("."+A.cbbg).attr("x",j).attr("y",q).attr(s?"width":"height",Math.max(_-w,2)).attr(s?"height":"width",Math.max(K+N,2)).call(p.fill,E).call(p.stroke,e.bordercolor).style("stroke-width",S);var H=d?Math.max(l-10,0):0;t.selectAll("."+A.cboutline).attr("x",(s?rt:st+L)+H).attr("y",(s?st+P-K:rt)+(c?xt:0)).attr(s?"width":"height",Math.max($,2)).attr(s?"height":"width",Math.max(K-(s?2*P+xt:2*L+H),2)).call(p.stroke,e.outlinecolor).style({fill:"none","stroke-width":M});var G=s?nt*_:0,Z=s?0:(1-it)*_-m;if(G=R?B.l-G:-G,Z=D?B.t-Z:-Z,t.attr("transform",u(G,Z)),!s&&(S||n(E).getAlpha()&&!n.equals(F.paper_bgcolor,E))){var W=vt.selectAll("text"),Y=W[0].length,X=t.select("."+A.cbbg).node(),J=f.bBox(X),Q=f.getTranslate(t);W.each((function(t,e){var r=Y-1;if(0===e||e===r){var n,i=f.bBox(this),a=f.getTranslate(this);if(e===r){var o=i.right+a.x;(n=J.right+Q.x+st-S-2+z-o)>0&&(n=0)}else if(0===e){var s=i.left+a.x;(n=J.left+Q.x+st+S+2-s)<0&&(n=0)}n&&(Y<3?this.setAttribute("transform","translate("+n+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var tt={},et=T[C],at=k[C],ot=T[I],ct=k[I],ht=_-$;s?("pixels"===g?(tt.y=O,tt.t=K*ot,tt.b=K*ct):(tt.t=tt.b=0,tt.yt=O+h*ot,tt.yb=O-h*ct),"pixels"===b?(tt.x=z,tt.l=_*et,tt.r=_*at):(tt.l=ht*et,tt.r=ht*at,tt.xl=z-v*et,tt.xr=z+v*at)):("pixels"===g?(tt.x=z,tt.l=K*et,tt.r=K*at):(tt.l=tt.r=0,tt.xl=z+h*et,tt.xr=z-h*at),"pixels"===b?(tt.y=1-O,tt.t=_*ot,tt.b=_*ct):(tt.t=ht*ot,tt.b=ht*ct,tt.yt=O-v*ot,tt.yb=O+v*ct));var ft=e.y<.5?"b":"t",pt=e.x<.5?"l":"r";a._fullLayout._reservedMargin[e._id]={};var _t={r:F.width-j-G,l:j+tt.r,b:F.height-q-Z,t:q+tt.b};R&&D?i.autoMargin(a,e._id,tt):R?a._fullLayout._reservedMargin[e._id][ft]=_t[ft]:D||s?a._fullLayout._reservedMargin[e._id][pt]=_t[pt]:a._fullLayout._reservedMargin[e._id][ft]=_t[ft]}],a)}(g,e,t);v&&v.then&&(t._promises||[]).push(v),t._context.edits.colorbarPosition&&function(t,e,r){var n,i,o,l="v"===e.orientation,c=r._fullLayout._size;s.init({element:t.node(),gd:r,prepFn:function(){n=t.attr("transform"),h(t)},moveFn:function(r,a){t.attr("transform",n+u(r,a)),i=s.align((l?e._uFrac:e._vFrac)+r/c.w,l?e._thickFrac:e._lenFrac,0,1,e.xanchor),o=s.align((l?e._vFrac:1-e._uFrac)-a/c.h,l?e._lenFrac:e._thickFrac,0,1,e.yanchor);var f=s.getCursor(i,o,e.xanchor,e.yanchor);h(t,f)},doneFn:function(){if(h(t),void 0!==i&&void 0!==o){var n={};n[e._propPrefix+"x"]=i,n[e._propPrefix+"y"]=o,void 0!==e._traceIndex?a.call("_guiRestyle",r,n,e._traceIndex):a.call("_guiRelayout",r,n)}}})}(g,e,t)})),e.exit().each((function(e){i.autoMargin(t,e._id)})).remove(),e.order()}}})),Da=f(((t,e)=>{e.exports={moduleType:"component",name:"colorbar",attributes:Le(),supplyDefaults:Ve(),draw:Oa().draw,hasColorbar:Oe()}})),Ra=f(((t,e)=>{e.exports={moduleType:"component",name:"legend",layoutAttributes:mr(),supplyLayoutDefaults:yr(),draw:Ar(),style:kr()}})),Fa=f(((t,e)=>{e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}})),Ba=f(((t,e)=>{e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}})),Na=f(((t,e)=>{var r=qt(),n=le(),i=n.extendFlat,a=n.extendDeep;function o(t){var e;switch(t){case"themes__thumb":e={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":e={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var n,s,l=t.data,u=t.layout,c=a([],l),h=a({},u,o(e.tileClass)),f=t._context||{};if(e.width&&(h.width=e.width),e.height&&(h.height=e.height),"thumbnail"===e.tileClass||"themes__thumb"===e.tileClass){h.annotations=[];var p=Object.keys(h);for(n=0;n-1&&(h[p[n]].title={text:""});for(n=0;n{var r=fe().EventEmitter,n=qt(),i=le(),a=Dn(),o=Na(),s=Rn(),l=Fn();e.exports=function(t,e){var u=new r,c=o(t,{format:"png"}),h=c.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var f=a.getRedrawFunc(h);return n.call("_doPlot",h,c.data,c.layout,c.config).then(f).then((function(){var t=a.getDelay(h._fullLayout);setTimeout((function(){var t=s(h),r=document.createElement("canvas");r.id=i.randstr(),(u=l({format:e.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:r,emitter:u,svg:t})).clean=function(){h&&document.body.removeChild(h)}}),t)})).catch((function(t){u.emit("error",t)})),u}})),Ua=f(((t,e)=>{var r=Dn(),n={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:Na(),toSVG:Rn(),svgToImg:Fn(),toImage:ja(),downloadImage:Un()};e.exports=n})),Va=f((t=>{t.version=g().version,y(),ue();var e,r,n=qt(),i=t.register=n.register,a=qn(),o=Object.keys(a);for(r=0;r{e.exports=Va()})),Ha=f(((t,e)=>{e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}})),Ga=f(((t,e)=>{var r=Tn(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=Ot().texttemplateAttrs,o=Pe(),s=R(),l=Ha(),u=Pt().pattern,c=D().extendFlat,h=s({editType:"calc",arrayOk:!0,colorEditType:"style"}),f=c({},r.marker.line.width,{dflt:0}),p=c({width:f,editType:"calc"},o("marker.line")),d=c({line:p,editType:"calc"},o("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:u,cornerradius:{valType:"any",editType:"calc"}});e.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,xhoverformat:n("x"),yhoverformat:n("y"),text:r.text,texttemplate:a({editType:"plot"},{keys:l.eventDataKeys}),hovertext:r.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:c({},h,{}),insidetextfont:c({},h,{}),outsidetextfont:c({},h,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:c({},r.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:d,offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:{marker:{opacity:r.selected.marker.opacity,color:r.selected.marker.color,editType:"style"},textfont:r.selected.textfont,editType:"style"},unselected:{marker:{opacity:r.unselected.marker.opacity,color:r.unselected.marker.color,editType:"style"},textfont:r.unselected.textfont,editType:"style"},zorder:r.zorder}})),Za=f(((t,e)=>{e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}})),Wa=f(((t,e)=>{var r=q(),n=Ee().hasColorscale,i=qe(),a=le().coercePattern;e.exports=function(t,e,o,s,l){var u=o("marker.color",s),c=n(t,"marker");c&&i(t,e,l,o,{prefix:"marker.",cLetter:"c"}),o("marker.line.color",r.defaultLine),n(t,"marker.line")&&i(t,e,l,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width"),o("marker.opacity"),a(o,"marker.pattern",u,c),o("selected.marker.color"),o("unselected.marker.color")}})),Ya=f(((t,e)=>{var r=T(),n=le(),i=q(),a=qt(),o=Hn(),s=Gn(),l=Wa(),u=Qn(),c=Ga(),h=n.coerceFont;function f(t){if(r(t)){if((t=+t)>=0)return t}else if("string"==typeof t&&"%"===(t=t.trim()).slice(-1)&&r(t.slice(0,-1))&&(t=+t.slice(0,-1))>=0)return t+"%"}function p(t,e,r,i,a,o){var s=!1!==(o=o||{}).moduleHasSelected,l=!1!==o.moduleHasUnselected,u=!1!==o.moduleHasConstrain,c=!1!==o.moduleHasCliponaxis,f=!1!==o.moduleHasTextangle,p=!1!==o.moduleHasInsideanchor,d=!!o.hasPathbar,m=Array.isArray(a)||"auto"===a,g=m||"inside"===a,y=m||"outside"===a;if(g||y){var v=h(i,"textfont",r.font),x=n.extendFlat({},v),_=!(t.textfont&&t.textfont.color);if(_&&delete x.color,h(i,"insidetextfont",x),d){var b=n.extendFlat({},v);_&&delete b.color,h(i,"pathbar.textfont",b)}y&&h(i,"outsidetextfont",v),s&&i("selected.textfont.color"),l&&i("unselected.textfont.color"),u&&i("constraintext"),c&&i("cliponaxis"),f&&i("textangle"),i("texttemplate")}g&&p&&i("insidetextanchor")}e.exports={supplyDefaults:function(t,e,r,u){function h(r,i){return n.coerce(t,e,c,r,i)}if(o(t,e,u,h)){s(t,e,u,h),h("xhoverformat"),h("yhoverformat"),h("zorder"),h("orientation",e.x&&!e.y?"h":"v"),h("base"),h("offset"),h("width"),h("text"),h("hovertext"),h("hovertemplate");var f=h("textposition");p(t,0,u,h,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,h,r,u);var d=(e.marker.line||{}).color,m=a.getComponentMethod("errorbars","supplyDefaults");m(t,e,d||i.defaultLine,{axis:"y"}),m(t,e,d||i.defaultLine,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1},crossTraceDefaults:function(t,e){var r,i;function a(t,e){return n.coerce(i._input,i,c,t,e)}for(var o=0;o{var r=qt(),n=ir(),i=le(),a=Za(),o=Ya().validateCornerradius;e.exports=function(t,e,s){function l(r,n){return i.coerce(t,e,a,r,n)}for(var u=!1,c=!1,h=!1,f={},p=l("barmode"),d="group"===p,m=0;m0&&!f[y]&&(h=!0),f[y]=!0),g.visible&&"histogram"===g.type&&"category"!==n.getFromId({_fullLayout:e},g["v"===g.orientation?"xaxis":"yaxis"]).type&&(c=!0)}}if(u){"overlay"!==p&&l("barnorm"),l("bargap",c&&!h?0:.2),l("bargroupgap");var v=l("barcornerradius");e.barcornerradius=o(v)}else delete e.barmode}})),$a=f(((t,e)=>{var r=le();e.exports=function(t,e){for(var n=0;n{var r=ir(),n=ri(),i=Ee().hasColorscale,a=Ze(),o=$a(),s=ai();e.exports=function(t,e){var l,u,c,h,f,p,d=r.getFromId(t,e.xaxis||"x"),m=r.getFromId(t,e.yaxis||"y"),g={msUTC:!(!e.base&&0!==e.base)};"h"===e.orientation?(l=d.makeCalcdata(e,"x",g),c=m.makeCalcdata(e,"y"),h=n(e,m,"y",c),f=!!e.yperiodalignment,p="y"):(l=m.makeCalcdata(e,"y",g),c=d.makeCalcdata(e,"x"),h=n(e,d,"x",c),f=!!e.xperiodalignment,p="x"),u=h.vals;for(var y=Math.min(u.length,l.length),v=new Array(y),x=0;x{var r=v(),n=le();function i(t){return"_"+t+"Text_minsize"}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=i(t),a=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o{var e=T(),r=O(),n=le().isArrayOrTypedArray;t.coerceString=function(t,e,r){if("string"==typeof e){if(e||!t.noBlank)return e}else if(("number"==typeof e||!0===e)&&!t.strict)return String(e);return void 0!==r?r:t.dflt},t.coerceNumber=function(t,r,n){if(e(r)){r=+r;var i=t.min,a=t.max;if(!(void 0!==i&&ra))return r}return void 0!==n?n:t.dflt},t.coerceColor=function(t,e,n){return r(e).isValid()?e:void 0!==n?n:t.dflt},t.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},t.getValue=function(t,e){var r;return n(t)?e{var r=v(),n=q(),i=Qe(),a=le(),o=qt(),s=Ka().resizeText,l=Ga(),u=l.textfont,c=l.insidetextfont,h=l.outsidetextfont,f=Qa();function p(t,e,r){i.pointStyle(t.selectAll("path"),e,r),d(t,e,r)}function d(t,e,n){t.selectAll("text").each((function(t){var o=r.select(this),s=a.ensureUniformFontSize(n,m(o,t,e,n));i.font(o,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed("bartext-inside")){var o=b(e,r);a=y(r,e.i,i,o)}else t.classed("bartext-outside")&&(a=x(r,e.i,i));return a}function g(t,e,r){return _(u,t.textfont,e,r)}function y(t,e,r,i){var a=g(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&&void 0===t.textfont.color[e])&&(a={color:n.contrast(i),family:a.family,size:a.size,weight:a.weight,style:a.style,variant:a.variant,textcase:a.textcase,lineposition:a.lineposition,shadow:a.shadow}),_(c,t.insidetextfont,e,a)}function x(t,e,r){var n=g(t,e,r);return _(h,t.outsidetextfont,e,n)}function _(t,e,r,n){e=e||{};var i=f.getValue(e.family,r),a=f.getValue(e.size,r),o=f.getValue(e.color,r),s=f.getValue(e.weight,r),l=f.getValue(e.style,r),u=f.getValue(e.variant,r),c=f.getValue(e.textcase,r),h=f.getValue(e.lineposition,r),p=f.getValue(e.shadow,r);return{family:f.coerceString(t.family,i,n.family),size:f.coerceNumber(t.size,a,n.size),color:f.coerceColor(t.color,o,n.color),weight:f.coerceString(t.weight,s,n.weight),style:f.coerceString(t.style,l,n.style),variant:f.coerceString(t.variant,u,n.variant),textcase:f.coerceString(t.variant,c,n.textcase),lineposition:f.coerceString(t.variant,h,n.lineposition),shadow:f.coerceString(t.variant,p,n.shadow)}}function b(t,e){return"waterfall"===e.type?e[t.dir].marker.color:t.mcc||t.mc||e.marker.color}e.exports={style:function(t){var e=r.select(t).selectAll('g[class^="barlayer"]').selectAll("g.trace");s(t,e,"bar");var n=e.size(),i=t._fullLayout;e.style("opacity",(function(t){return t[0].trace.opacity})).each((function(t){("stack"===i.barmode&&n>1||0===i.bargap&&0===i.bargroupgap&&!t[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),e.selectAll("g.points").each((function(e){p(r.select(this),e[0].trace,t)})),o.getComponentMethod("errorbars","style")(e)},styleTextPoints:d,styleOnSelect:function(t,e,n){var s=e[0].trace;s.selectedpoints?function(t,e,n){i.selectedPointStyle(t.selectAll("path"),e),function(t,e,n){t.each((function(t){var o,s=r.select(this);if(t.selected){o=a.ensureUniformFontSize(n,m(s,t,e,n));var l=e.selected.textfont&&e.selected.textfont.color;l&&(o.color=l),i.font(s,o)}else i.selectedTextStyle(s,e)}))}(t.selectAll("text"),e,n)}(n,s,t):(p(n,s,t),o.getComponentMethod("errorbars","style")(n))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:b,resizeText:s}})),eo=f(((t,e)=>{var r=v(),n=T(),i=le(),a=Se(),o=q(),s=Qe(),l=qt(),u=ir().tickText,c=Ka(),h=c.recordMinTextSize,f=c.clearMinTextSize,p=to(),d=Qa(),m=Ha(),g=Ga(),y=g.text,x=g.textposition,_=$e().appendArrayPointValue,b=m.TEXTPAD;function w(t){return t.id}function k(t){return(t>0)-(t<0)}function A(t,e){return t0}function E(t,e,r,n,i){return!(t<0||e<0)&&(r<=t&&n<=e||r<=e&&n<=t||(i?t>=r*(e/n):e>=n*(t/r)))}function C(t){return"auto"===t?0:t}function I(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function L(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c="end"===u,h="start"===u,f=((a.leftToRight||0)+1)/2,p=1-f,d=a.hasB,m=a.r,g=a.overhead,y=i.width,v=i.height,x=Math.abs(e-t),_=Math.abs(n-r),w=x>2*b&&_>2*b?b:0;x-=2*w,_-=2*w;var T=C(l);"auto"===l&&!(y<=x&&v<=_)&&(y>x||v>_)&&(!(y>_||v>x)||yb){var E=function(t,e,r,n,i,a,o,s,l){var u,c,h,f,p=Math.max(0,Math.abs(e-t)-2*b),d=Math.max(0,Math.abs(n-r)-2*b),m=a-b,g=o?m-Math.sqrt(m*m-(m-o)*(m-o)):m,y=l?2*m:s?m-o:2*g,v=l?2*m:s?2*g:m-o;return i.y/i.x>=d/(p-y)?f=d/i.y:i.y/i.x<=(d-v)/p?f=p/i.x:!l&&s?(u=i.x*i.x+i.y*i.y/4,h=(p-m)*(p-m)+(d/2-m)*(d/2-m)-m*m,f=(-(c=-2*i.x*(p-m)-i.y*(d/2-m))+Math.sqrt(c*c-4*u*h))/(2*u)):l?(u=(i.x*i.x+i.y*i.y)/4,h=(p/2-m)*(p/2-m)+(d/2-m)*(d/2-m)-m*m,f=(-(c=-i.x*(p/2-m)-i.y*(d/2-m))+Math.sqrt(c*c-4*u*h))/(2*u)):(u=i.x*i.x/4+i.y*i.y,h=(p/2-m)*(p/2-m)+(d-m)*(d-m)-m*m,f=(-(c=-i.x*(p/2-m)-2*i.y*(d-m))+Math.sqrt(c*c-4*u*h))/(2*u)),{scale:f=Math.min(1,f),pad:s?Math.max(0,m-Math.sqrt(Math.max(0,m*m-(m-(d-i.y*f)/2)*(m-(d-i.y*f)/2)))-o):Math.max(0,m-Math.sqrt(Math.max(0,m*m-(m-(p-i.x*f)/2)*(m-(p-i.x*f)/2)))-o)}}(t,e,r,n,S,m,g,o,d);k=E.scale,M=E.pad}else k=1,s&&(k=Math.min(1,x/S.x,_/S.y)),M=0;var L=i.left*p+i.right*f,P=(i.top+i.bottom)/2,z=(t+b)*p+(e-b)*f,O=(r+n)/2,D=0,R=0;if(h||c){var F=(o?S.x:S.y)/2;m&&(c||d)&&(w+=M);var B=o?A(t,e):A(r,n);o?h?(z=t+B*w,D=-B*F):(z=e-B*w,D=B*F):h?(O=r+B*w,R=-B*F):(O=n-B*w,R=B*F)}return{textX:L,textY:P,targetX:z,targetY:O,anchorX:D,anchorY:R,scale:k,rotate:T}}e.exports={plot:function(t,e,c,m,g,v){var T=e.xaxis,P=e.yaxis,z=t._fullLayout,O=t._context.staticPlot;g||(g={mode:z.barmode,norm:z.barmode,gap:z.bargap,groupgap:z.bargroupgap},f("bar",z));var D=i.makeTraceGroups(m,c,"trace bars").each((function(l){var c=r.select(this),f=l[0].trace,m=l[0].t,D="waterfall"===f.type,R="funnel"===f.type,F="histogram"===f.type,B="bar"===f.type,N=B||R,j=0;D&&f.connector.visible&&"between"===f.connector.mode&&(j=f.connector.line.width/2);var U="h"===f.orientation,V=S(g),q=i.ensureSingle(c,"g","points"),H=function(t){if(t.ids)return w}(f),G=q.selectAll("g.point").data(i.identity,H);G.enter().append("g").classed("point",!0),G.exit().remove(),G.each((function(c,w){var S,D,R=r.select(this),q=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,T,P,U),H=q[0][0],G=q[0][1],Z=q[1][0],W=q[1][1],Y=0==(U?G-H:W-Z);if(Y&&N&&d.getLineWidth(f,c)&&(Y=!1),Y||(Y=!(n(H)&&n(G)&&n(Z)&&n(W))),c.isBlank=Y,Y&&(U?G=H:W=Z),j&&!Y&&(U?(H-=A(H,G)*j,G+=A(H,G)*j):(Z-=A(Z,W)*j,W+=A(Z,W)*j)),"waterfall"===f.type){if(!Y){var X=f[c.dir].marker;S=X.line.width,D=X.color}}else S=d.getLineWidth(f,c),D=c.mc||f.marker.color;function $(t){var e=r.round(S/2%1,2);return 0===g.gap&&0===g.groupgap?r.round(Math.round(t)-e,2):t}var J=o.opacity(D)<1||S>.01?$:function(t,e,r){return r&&t===e?t:Math.abs(t-e)>=2?$(t):t>e?Math.ceil(t):Math.floor(t)};t._context.staticPlot||(H=J(H,G,U),G=J(G,H,U),Z=J(Z,W,!U),W=J(W,Z,!U));var K,Q=U?T.c2p:P.c2p;K=c.s0>0?c._sMax:c.s0<0?c._sMin:c.s1>0?c._sMax:c._sMin;var tt,et,rt=B||F?function(t,e){if(!t)return 0;var r,n=Math.abs(U?W-Z:G-H),i=Math.abs(U?G-H:W-Z),a=J(Math.abs(Q(K,!0)-Q(0,!0))),o=c.hasB?Math.min(n/2,i/2):Math.min(n/2,a);return r="%"===e?n*(Math.min(50,t)/100):t,J(Math.max(Math.min(r,o),0))}(m.cornerradiusvalue,m.cornerradiusform):0,nt="M"+H+","+Z+"V"+W+"H"+G+"V"+Z+"Z",it=0;if(rt&&c.s){var at=0===k(c.s0)||k(c.s)===k(c.s0)?c.s1:c.s0;if((it=J(c.hasB?0:Math.abs(Q(K,!0)-Q(at,!0))))0?Math.sqrt(it*(2*rt-it)):0,ht=ot>0?Math.max:Math.min;tt="M"+H+","+Z+"V"+(W-ut*st)+"H"+ht(G-(rt-it)*ot,H)+"A "+rt+","+rt+" 0 0 "+lt+" "+G+","+(W-rt*st-ct)+"V"+(Z+rt*st+ct)+"A "+rt+","+rt+" 0 0 "+lt+" "+ht(G-(rt-it)*ot,H)+","+(Z+ut*st)+"Z"}else if(c.hasB)tt="M"+(H+rt*ot)+","+Z+"A "+rt+","+rt+" 0 0 "+lt+" "+H+","+(Z+rt*st)+"V"+(W-rt*st)+"A "+rt+","+rt+" 0 0 "+lt+" "+(H+rt*ot)+","+W+"H"+(G-rt*ot)+"A "+rt+","+rt+" 0 0 "+lt+" "+G+","+(W-rt*st)+"V"+(Z+rt*st)+"A "+rt+","+rt+" 0 0 "+lt+" "+(G-rt*ot)+","+Z+"Z";else{var ft=(et=Math.abs(W-Z)+it)0?Math.sqrt(it*(2*rt-it)):0,dt=st>0?Math.max:Math.min;tt="M"+(H+ft*ot)+","+Z+"V"+dt(W-(rt-it)*st,Z)+"A "+rt+","+rt+" 0 0 "+lt+" "+(H+rt*ot-pt)+","+W+"H"+(G-rt*ot+pt)+"A "+rt+","+rt+" 0 0 "+lt+" "+(G-ft*ot)+","+dt(W-(rt-it)*st,Z)+"V"+Z+"Z"}}else tt=nt}else tt=nt;var mt=M(i.ensureSingle(R,"path"),z,g,v);if(mt.style("vector-effect",O?"none":"non-scaling-stroke").attr("d",isNaN((G-H)*(W-Z))||Y&&t._context.staticPlot?"M0,0Z":tt).call(s.setClipUrl,e.layerClipId,t),!z.uniformtext.mode&&V){var gt=s.makePointStyleFns(f);s.singlePointStyle(c,mt,f,gt,t)}(function(t,e,r,n,o,l,c,f,m,g,v,w,T){var k,S=e.xaxis,P=e.yaxis,z=t._fullLayout;function O(e,r,n){return i.ensureSingle(e,"text").text(r).attr({class:"bartext bartext-"+k,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(a.convertToTspans,t)}var D=n[0].trace,R="h"===D.orientation,F=function(t,e,r,n,a){var o,s=e[0].trace;return o=s.texttemplate?function(t,e,r,n,a){var o=e[0].trace,s=i.castOption(o,r,"texttemplate");if(!s)return"";var l,c,h,f,p="histogram"===o.type,d="waterfall"===o.type,m="funnel"===o.type,g="h"===o.orientation;function y(t){return u(f,f.c2l(t),!0).text}g?(l="y",c=a,h="x",f=n):(l="x",c=n,h="y",f=a);var v=e[r],x={};x.label=v.p,x.labelLabel=x[l+"Label"]=function(t){return u(c,c.c2l(t),!0).text}(v.p);var b=i.castOption(o,v.i,"text");(0===b||b)&&(x.text=b),x.value=v.s,x.valueLabel=x[h+"Label"]=y(v.s);var w={};_(w,o,v.i),(p||void 0===w.x)&&(w.x=g?x.value:x.label),(p||void 0===w.y)&&(w.y=g?x.label:x.value),(p||void 0===w.xLabel)&&(w.xLabel=g?x.valueLabel:x.labelLabel),(p||void 0===w.yLabel)&&(w.yLabel=g?x.labelLabel:x.valueLabel),d&&(x.delta=+v.rawS||v.s,x.deltaLabel=y(x.delta),x.final=v.v,x.finalLabel=y(x.final),x.initial=x.final-x.delta,x.initialLabel=y(x.initial)),m&&(x.value=v.s,x.valueLabel=y(x.value),x.percentInitial=v.begR,x.percentInitialLabel=i.formatPercent(v.begR),x.percentPrevious=v.difR,x.percentPreviousLabel=i.formatPercent(v.difR),x.percentTotal=v.sumR,x.percenTotalLabel=i.formatPercent(v.sumR));var T=i.castOption(o,v.i,"customdata");return T&&(x.customdata=T),i.texttemplateString(s,x,t._d3locale,w,x,o._meta||{})}(t,e,r,n,a):s.textinfo?function(t,e,r,n){var a=t[0].trace,o="h"===a.orientation,s="waterfall"===a.type,l="funnel"===a.type;function c(t){return u(o?r:n,+t,!0).text}var h,f=a.textinfo,p=t[e],d=f.split("+"),m=[],g=function(t){return-1!==d.indexOf(t)};if(g("label")&&m.push(function(t){return u(o?n:r,t,!0).text}(t[e].p)),g("text")&&(0===(h=i.castOption(a,p.i,"text"))||h)&&m.push(h),s){var y=+p.rawS||p.s,v=p.v,x=v-y;g("initial")&&m.push(c(x)),g("delta")&&m.push(c(y)),g("final")&&m.push(c(v))}if(l){g("value")&&m.push(c(p.s));var _=0;g("percent initial")&&_++,g("percent previous")&&_++,g("percent total")&&_++;var b=_>1;g("percent initial")&&(h=i.formatPercent(p.begR),b&&(h+=" of initial"),m.push(h)),g("percent previous")&&(h=i.formatPercent(p.difR),b&&(h+=" of previous"),m.push(h)),g("percent total")&&(h=i.formatPercent(p.sumR),b&&(h+=" of total"),m.push(h))}return m.join("
")}(e,r,n,a):d.getValue(s.text,r),d.coerceString(y,o)}(z,n,o,S,P);k=function(t,e){var r=d.getValue(t.textposition,e);return d.coerceEnumerated(x,r)}(D,o);var B="stack"===w.mode||"relative"===w.mode,N=n[o],j=!B||N._outmost,U=N.hasB,V=g&&g-v>b;if(F&&"none"!==k&&(!N.isBlank&&l!==c&&f!==m||"auto"!==k&&"inside"!==k)){var q=z.font,H=p.getBarColor(n[o],D),G=p.getInsideTextFont(D,o,q,H),Z=p.getOutsideTextFont(D,o,q),W=D.insidetextanchor||"end",Y=r.datum();R?"log"===S.type&&Y.s0<=0&&(l=S.range[0]0&&K>0;it=V?U?E(rt-2*g,nt,J,K,R)||E(rt,nt-2*g,J,K,R):R?E(rt-(g-v),nt,J,K,R)||E(rt,nt-2*(g-v),J,K,R):E(rt,nt-(g-v),J,K,R)||E(rt-2*(g-v),nt,J,K,R):E(rt,nt,J,K,R),at&&it?k="inside":(k="outside",X.remove(),X=null)}else k="inside";if(!X){var ot=(X=O(r,F,Q=i.ensureUniformFontSize(t,"outside"===k?Z:G))).attr("transform");if(X.attr("transform",""),J=($=s.bBox(X.node())).width,K=$.height,X.attr("transform",ot),J<=0||K<=0)return void X.remove()}var st,lt=D.textangle;"outside"===k?st=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,u=a.angle||0,c=i.width,h=i.height,f=Math.abs(e-t),p=Math.abs(n-r);o=s?p>2*b?b:0:f>2*b?b:0;var d=1;l&&(d=s?Math.min(1,p/h):Math.min(1,f/c));var m=C(u),g=I(i,m),y=(s?g.x:g.y)/2,v=(i.left+i.right)/2,x=(i.top+i.bottom)/2,_=(t+e)/2,w=(r+n)/2,T=0,k=0,M=s?A(e,t):A(r,n);return s?(_=e-M*o,T=M*y):(w=n+M*o,k=-M*y),{textX:v,textY:x,targetX:_,targetY:w,anchorX:T,anchorY:k,scale:d,rotate:m}}(l,c,f,m,$,{isHorizontal:R,constrained:"both"===D.constraintext||"outside"===D.constraintext,angle:lt}):st=L(l,c,f,m,$,{isHorizontal:R,constrained:"both"===D.constraintext||"inside"===D.constraintext,angle:lt,anchor:W,hasB:U,r:g,overhead:v}),st.fontSize=Q.size,h("histogram"===D.type?"bar":D.type,st,z),N.transform=st;var ut=M(X,z,w,T);i.setTransormAndDisplay(ut,st)}else r.select("text").remove()})(t,e,R,l,w,H,G,Z,W,rt,it,g,v),e.layerClipId&&s.hideOutsideRangePoint(c,R.select("text"),T,P,f.xcalendar,f.ycalendar)}));var Z=!1===f.cliponaxis;s.setClipUrl(c,Z?null:e.layerClipId,t)}));l.getComponentMethod("errorbars","plot")(t,D,e,g)},toMoveInsideBar:L}})),ro=f(((t,e)=>{var r=Or(),n=qt(),i=q(),a=le().fillText,o=Qa().getLineWidth,s=ir().hoverLabelText,l=k().BADNUM;function u(t,e,n,i,o){var u,c,h,f,p,d,m,g=t.cd,y=g[0].trace,v=g[0].t,x="closest"===i,_="waterfall"===y.type,b=t.maxHoverDistance,w=t.maxSpikeDistance;"h"===y.orientation?(u=n,c=e,h="y",f="x",p=O,d=P):(u=e,c=n,h="x",f="y",d=O,p=P);var T=y[h+"period"],k=x||T;function A(t){return S(t,-1)}function M(t){return S(t,1)}function S(t,e){var r=t.w;return t[h]+e*r/2}function E(t){return t[h+"End"]-t[h+"Start"]}var C=x?A:T?function(t){return t.p-E(t)/2}:function(t){return Math.min(A(t),t.p-v.bardelta/2)},I=x?M:T?function(t){return t.p+E(t)/2}:function(t){return Math.max(M(t),t.p+v.bardelta/2)};function L(t,e,n){return o.finiteRange&&(n=0),r.inbox(t-u,e-u,n+Math.min(1,Math.abs(e-t)/m)-1)}function P(t){return L(C(t),I(t),b)}function z(t){var e=t[f];if(_){var r=Math.abs(t.rawS)||0;c>0?e+=r:c<0&&(e-=r)}return e}function O(t){var e=c,n=t.b,i=z(t);return r.inbox(n-e,i-e,b+(i-e)/(i-n)-1)}var D=t[h+"a"],R=t[f+"a"];m=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var F,B,N,j,U=r.getDistanceFunction(i,p,d,(function(t){return(p(t)+d(t))/2}));if(r.getClosest(g,U,t),!1!==t.index&&g[t.index].p!==l){k||(C=function(t){return Math.min(A(t),t.p-v.bargroupwidth/2)},I=function(t){return Math.max(M(t),t.p+v.bargroupwidth/2)});var V=g[t.index],q=y.base?V.b+V.s:V.s;t[f+"0"]=t[f+"1"]=R.c2p(V[f],!0),t[f+"LabelVal"]=q;var H=v.extents[v.extents.round(V.p)];t[h+"0"]=D.c2p(x?C(V):H[0],!0),t[h+"1"]=D.c2p(x?I(V):H[1],!0);var G=void 0!==V.orig_p;return t[h+"LabelVal"]=G?V.orig_p:V.p,t.labelLabel=s(D,t[h+"LabelVal"],y[h+"hoverformat"]),t.valueLabel=s(R,t[f+"LabelVal"],y[f+"hoverformat"]),t.baseLabel=s(R,V.b,y[f+"hoverformat"]),t.spikeDistance=(B=c,N=(F=V).b,j=z(F),(r.inbox(N-B,j-B,w+(j-B)/(j-N)-1)+function(t){return L(A(t),M(t),w)}(V))/2),t[h+"Spike"]=D.c2p(V.p,!0),a(V,y,t),t.hovertemplate=y.hovertemplate,t}}function c(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,a=o(t,e);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}e.exports={hoverPoints:function(t,e,r,i,a){var o=u(t,e,r,i,a);if(o){var s=o.cd,l=s[0].trace,h=s[o.index];return o.color=c(l,h),n.getComponentMethod("errorbars","hoverInfo")(h,l,o),[o]}},hoverOnBars:u,getTraceColor:c}})),no=f(((t,e)=>{e.exports=function(t,e,r){return t.x="xVal"in e?e.xVal:e.x,t.y="yVal"in e?e.yVal:e.y,e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),"h"===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}})),io=f(((t,e)=>{function r(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var n,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l="funnel"===s.type,u="h"===s.orientation,c=[];if(!1===e)for(n=0;n{e.exports={attributes:Ga(),layoutAttributes:Za(),supplyDefaults:Ya().supplyDefaults,crossTraceDefaults:Ya().crossTraceDefaults,supplyLayoutDefaults:Xa(),calc:Ja(),crossTraceCalc:li().crossTraceCalc,colorbar:pi(),arraysToCalcdata:$a(),plot:eo().plot,style:to().style,styleOnSelect:to().styleOnSelect,hoverPoints:ro().hoverPoints,eventData:no(),selectPoints:io(),moduleType:"trace",name:"bar",basePlotModule:Si(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}})),oo=f(((t,e)=>{e.exports=ao()})),so=f(((t,e)=>{var r=wn(),n=Tn(),i=Ga(),a=V(),o=Ce().axisHoverFormat,s=Ot().hovertemplateAttrs,l=D().extendFlat,u=n.marker,c=u.line;e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:l({},u.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},u.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:l({},u.angle,{arrayOk:!1,editType:"calc"}),size:l({},u.size,{arrayOk:!1,editType:"calc"}),color:l({},u.color,{arrayOk:!1,editType:"style"}),line:{color:l({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:"style"}),width:l({},c.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:"style"},unselected:{marker:n.unselected.marker,editType:"style"},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:n.zorder}})),lo=f(((t,e)=>{e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}})),uo=f(((t,e)=>{var r=le(),n=qt(),i=q(),a=Gn(),o=Qn(),s=rr(),l=so();function u(t,e,i,a){function o(t){var e=0;return t&&t.length&&(e+=1,r.isArrayOrTypedArray(t[0])&&t[0].length&&(e+=1)),e}function u(e){return r.validate(t[e],l[e])}var c,h=i("y"),f=i("x");if("box"===e.type){var p=i("q1"),d=i("median"),m=i("q3");e._hasPreCompStats=p&&p.length&&d&&d.length&&m&&m.length,c=Math.min(r.minRowLength(p),r.minRowLength(d),r.minRowLength(m))}var g,y,v=o(h),x=o(f),_=v&&r.minRowLength(h),b=x&&r.minRowLength(f),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(v)){case"00":var k=u("x0")||u("dx");g=!u("y0")&&!u("dy")||k?"v":"h",y=c;break;case"10":g="v",y=Math.min(c,b);break;case"20":g="h",y=Math.min(c,f.length);break;case"01":g="h",y=Math.min(c,_);break;case"02":g="v",y=Math.min(c,h.length);break;case"12":g="v",y=Math.min(c,b,h.length);break;case"21":g="h",y=Math.min(c,f.length,_);break;case"11":y=0;break;case"22":var A,M=!1;for(A=0;A0?(g="v",y=x>0?Math.min(b,_):Math.min(_)):x>0?(g="h",y=Math.min(b)):y=0;if(y){e._length=y;var S=i("orientation",g);e._hasPreCompStats?"v"===S&&0===x?(i("x0",0),i("dx",1)):"h"===S&&0===v&&(i("y0",0),i("dy",1)):"v"===S&&0===x?i("x0"):"h"===S&&0===v&&i("y0"),n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],a)}else e.visible=!1}function c(t,e,n,i){var a=i.prefix,o=r.coerce2(t,e,l,"marker.outliercolor"),s=n("marker.line.outliercolor"),u="outliers";e._hasPreCompStats?u="all":(o||s)&&(u="suspectedoutliers");var c=n(a+"points",u);c?(n("jitter","all"===c?.3:0),n("pointpos","all"===c?-1.5:0),n("marker.symbol"),n("marker.opacity"),n("marker.size"),n("marker.angle"),n("marker.color",e.line.color),n("marker.line.color"),n("marker.line.width"),"suspectedoutliers"===c&&(n("marker.line.outliercolor",e.marker.color),n("marker.line.outlierwidth")),n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size"),n("text"),n("hovertext")):delete e.marker;var h=n("hoveron");("all"===h||-1!==h.indexOf("points"))&&n("hovertemplate"),r.coerceSelectionMarkerOpacity(e,n)}e.exports={supplyDefaults:function(t,e,n,o){function s(n,i){return r.coerce(t,e,l,n,i)}if(u(t,e,s,o),!1!==e.visible){a(t,e,o,s),s("xhoverformat"),s("yhoverformat");var h=e._hasPreCompStats;h&&(s("lowerfence"),s("upperfence")),s("line.color",(t.marker||{}).color||n),s("line.width"),s("fillcolor",i.addOpacity(e.line.color,.5));var f=!1;if(h){var p=s("mean"),d=s("sd");p&&p.length&&(f=!0,d&&d.length&&(f="sd"))}s("whiskerwidth");var m,g=s("sizemode");"quartiles"===g&&(m=s("boxmean",f)),s("showwhiskers","quartiles"===g),("sd"===g||"sd"===m)&&s("sdmultiple"),s("width"),s("quartilemethod");var y=!1;if(h){var v=s("notchspan");v&&v.length&&(y=!0)}else r.validate(t.notchwidth,l.notchwidth)&&(y=!0);s("notched",y)&&s("notchwidth"),c(t,e,s,{prefix:"box"}),s("zorder")}},crossTraceDefaults:function(t,e){var n,i;function a(t){return r.coerce(i._input,i,l,t)}for(var s=0;s{var r=qt(),n=le(),i=lo();function a(t,e,n,i,a){for(var o=a+"Layout",s=!1,l=0;l{var r=T(),n=ir(),i=ri(),a=le(),o=k().BADNUM,s=a._;e.exports=function(t,e){var l,y,v,x,_,b,w,T=t._fullLayout,k=n.getFromId(t,e.xaxis||"x"),A=n.getFromId(t,e.yaxis||"y"),M=[],S="violin"===e.type?"_numViolins":"_numBoxes";"h"===e.orientation?(v=k,x="x",_=A,b="y",w=!!e.yperiodalignment):(v=A,x="y",_=k,b="x",w=!!e.xperiodalignment);var E,C,I,L,P,z,O=function(t,e,n,o){var s,l=e+"0"in t;if(e in t||l&&"d"+e in t){var u=n.makeCalcdata(t,e);return[i(t,n,e,u).vals,u]}s=l?t[e+"0"]:"name"in t&&("category"===n.type||r(t.name)&&-1!==["linear","log"].indexOf(n.type)||a.isDateTime(t.name)&&"date"===n.type)?t.name:o;for(var c="multicategory"===n.type?n.r2c_just_indices(s):n.d2c(s,0,t[e+"calendar"]),h=t._length,f=new Array(h),p=0;pE.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return v.d2c((e[t]||[])[l])},q=1/0,H=-1/0;for(l=0;l=E.q1&&E.q3>=E.med){var Z=V("lowerfence");E.lf=Z!==o&&Z<=E.q1?Z:f(E,I,L);var W=V("upperfence");E.uf=W!==o&&W>=E.q3?W:p(E,I,L);var Y=V("mean");E.mean=Y!==o?Y:L?a.mean(I,L):(E.q1+E.q3)/2;var X=V("sd");E.sd=Y!==o&&X>=0?X:L?a.stdev(I,L,E.mean):E.q3-E.q1,E.lo=d(E),E.uo=m(E);var $=V("notchspan");$=$!==o&&$>0?$:g(E,L),E.ln=E.med-$,E.un=E.med+$;var J=E.lf,K=E.uf;e.boxpoints&&I.length&&(J=Math.min(J,I[0]),K=Math.max(K,I[L-1])),e.notched&&(J=Math.min(J,E.ln),K=Math.max(K,E.un)),E.min=J,E.max=K}else{var Q;a.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+E.q1,"median = "+E.med,"q3 = "+E.q3].join("\n")),Q=E.med!==o?E.med:E.q1!==o?E.q3!==o?(E.q1+E.q3)/2:E.q1:E.q3!==o?E.q3:0,E.med=Q,E.q1=E.q3=Q,E.lf=E.uf=Q,E.mean=E.sd=Q,E.ln=E.un=Q,E.min=E.max=Q}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),M.push(E)}}e._extremes[v._id]=n.findExtremes(v,[q,H],{padded:!0})}else{var tt=v.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i=0&&it0){var ct,ht;(E={}).pos=E[b]=B[l],C=E.pts=nt[l].sort(c),L=(I=E[x]=C.map(h)).length,E.min=I[0],E.max=I[L-1],E.mean=a.mean(I,L),E.sd=a.stdev(I,L,E.mean)*e.sdmultiple,E.med=a.interp(I,.5),L%2&&(lt||ut)?(lt?(ct=I.slice(0,L/2),ht=I.slice(L/2+1)):ut&&(ct=I.slice(0,L/2+1),ht=I.slice(L/2)),E.q1=a.interp(ct,.5),E.q3=a.interp(ht,.5)):(E.q1=a.interp(I,.25),E.q3=a.interp(I,.75)),E.lf=f(E,I,L),E.uf=p(E,I,L),E.lo=d(E),E.uo=m(E);var ft=g(E,L);E.ln=E.med-ft,E.un=E.med+ft,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),M.push(E)}e.notched&&a.isTypedArray(tt)&&(tt=Array.from(tt)),e._extremes[v._id]=n.findExtremes(v,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(a.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r0?(M[0].t={num:T[S],dPos:N,posLetter:b,valLetter:x,labels:{med:s(t,"median:"),min:s(t,"min:"),q1:s(t,"q1:"),q3:s(t,"q3:"),max:s(t,"max:"),mean:"sd"===e.boxmean||"sd"===e.sizemode?s(t,"mean ± σ:").replace("σ",1===e.sdmultiple?"σ":e.sdmultiple+"σ"):s(t,"mean:"),lf:s(t,"lower fence:"),uf:s(t,"upper fence:")}},T[S]++,M):[{t:{empty:!0}}]};var l={text:"tx",hovertext:"htx"};function u(t,e,r){for(var n in l)a.isArrayOrTypedArray(e[n])&&(Array.isArray(r)?a.isArrayOrTypedArray(e[n][r[0]])&&(t[l[n]]=e[n][r[0]][r[1]]):t[l[n]]=e[n][r])}function c(t,e){return t.v-e.v}function h(t){return t.v}function f(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(a.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function p(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(a.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function d(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function g(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}})),fo=f(((t,e)=>{var r=ir(),n=le(),i=rn().getAxisGroup,a=["v","h"];function o(t,e,a,o){var s,l,u,c=e.calcdata,h=e._fullLayout,f=o._id,p=f.charAt(0),d=[],m=0;for(s=0;s1,_=1-h[t+"gap"],b=1-h[t+"groupgap"];for(s=0;s0){var H=M.pointpos,G=M.jitter,Z=M.marker.size/2,W=0;H+G>=0&&((W=V*(H+G))>O?(q=!0,j=Z,B=W):W>R&&(j=Z,B=O)),W<=O&&(B=O);var Y=0;H-G<=0&&((Y=-V*(H-G))>D?(q=!0,U=Z,N=Y):Y>F&&(U=Z,N=D)),Y<=D&&(N=D)}else B=O,N=D;var X=new Array(u.length);for(l=0;l{var r=v(),n=le(),i=Qe();function a(t,e,i,a,o){var s,l,u="h"===i.orientation,c=e.val,h=e.pos,f=!!h.rangebreaks,p=a.bPos,d=a.wdPos||0,m=a.bPosPxOffset||0,g=i.whiskerwidth||0,y=!1!==i.showwhiskers,v=i.notched||!1,x=v?1-2*i.notchwidth:1;Array.isArray(a.bdPos)?(s=a.bdPos[0],l=a.bdPos[1]):(s=a.bdPos,l=a.bdPos);var _=t.selectAll("path.box").data("violin"!==i.type||i.box.visible?n.identity:[]);_.enter().append("path").style("vector-effect",o?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each((function(t){if(t.empty)return r.select(this).attr("d","M0,0Z");var e=h.c2l(t.pos+p,!0),a=h.l2p(e-s)+m,o=h.l2p(e+l)+m,_=f?(a+o)/2:h.l2p(e)+m,b=i.whiskerwidth,w=f?a*b+(1-b)*_:h.l2p(e-d)+m,T=f?o*b+(1-b)*_:h.l2p(e+d)+m,k=h.l2p(e-s*x)+m,A=h.l2p(e+l*x)+m,M="sd"===i.sizemode,S=c.c2p(M?t.mean-t.sd:t.q1,!0),E=M?c.c2p(t.mean+t.sd,!0):c.c2p(t.q3,!0),C=n.constrain(M?c.c2p(t.mean,!0):c.c2p(t.med,!0),Math.min(S,E)+1,Math.max(S,E)-1),I=void 0===t.lf||!1===i.boxpoints||M,L=c.c2p(I?t.min:t.lf,!0),P=c.c2p(I?t.max:t.uf,!0),z=c.c2p(t.ln,!0),O=c.c2p(t.un,!0);u?r.select(this).attr("d","M"+C+","+k+"V"+A+"M"+S+","+a+"V"+o+(v?"H"+z+"L"+C+","+A+"L"+O+","+o:"")+"H"+E+"V"+a+(v?"H"+O+"L"+C+","+k+"L"+z+","+a:"")+"Z"+(y?"M"+S+","+_+"H"+L+"M"+E+","+_+"H"+P+(0===g?"":"M"+L+","+w+"V"+T+"M"+P+","+w+"V"+T):"")):r.select(this).attr("d","M"+k+","+C+"H"+A+"M"+a+","+S+"H"+o+(v?"V"+z+"L"+A+","+C+"L"+o+","+O:"")+"V"+E+"H"+a+(v?"V"+O+"L"+k+","+C+"L"+a+","+z:"")+"Z"+(y?"M"+_+","+S+"V"+L+"M"+_+","+E+"V"+P+(0===g?"":"M"+w+","+L+"H"+T+"M"+w+","+P+"H"+T):""))}))}function o(t,e,r,a){var o=e.x,s=e.y,l=a.bdPos,u=a.bPos,c=r.boxpoints||r.points;n.seedPseudoRandom();var h=t.selectAll("g.points").data(c?function(t){return t.forEach((function(t){t.t=a,t.trace=r})),t}:[]);h.enter().append("g").attr("class","points"),h.exit().remove();var f=h.selectAll("path").data((function(t){var e,i,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,h=.01*o,f=[],p=0;if(r.jitter){if(0===o)for(p=1,f=new Array(a.length),e=0;et.lo&&(x.so=!0)}return a}));f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(i.translatePoints,o,s)}function s(t,e,i,a){var o,s,l=e.val,u=e.pos,c=!!u.rangebreaks,h=a.bPos,f=a.bPosPxOffset||0,p=i.boxmean||(i.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll("path.mean").data("box"===i.type&&i.boxmean||"violin"===i.type&&i.box.visible&&i.meanline.visible?n.identity:[]);d.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),d.exit().remove(),d.each((function(t){var e=u.c2l(t.pos+h,!0),n=u.l2p(e-o)+f,a=u.l2p(e+s)+f,d=c?(n+a)/2:u.l2p(e)+f,m=l.c2p(t.mean,!0),g=l.c2p(t.mean-t.sd,!0),y=l.c2p(t.mean+t.sd,!0);"h"===i.orientation?r.select(this).attr("d","M"+m+","+n+"V"+a+("sd"===p?"m0,0L"+g+","+d+"L"+m+","+n+"L"+y+","+d+"Z":"")):r.select(this).attr("d","M"+n+","+m+"H"+a+("sd"===p?"m0,0L"+d+","+g+"L"+n+","+m+"L"+d+","+y+"Z":""))}))}e.exports={plot:function(t,e,i,l){var u=t._context.staticPlot,c=e.xaxis,h=e.yaxis;n.makeTraceGroups(l,i,"trace boxes").each((function(t){var e,n,i=r.select(this),l=t[0],f=l.t,p=l.trace;f.wdPos=f.bdPos*p.whiskerwidth,!0!==p.visible||f.empty?i.remove():("h"===p.orientation?(e=h,n=c):(e=c,n=h),a(i,{pos:e,val:n},p,f,u),o(i,{x:c,y:h},p,f),s(i,{pos:e,val:n},p,f))}))},plotBoxAndWhiskers:a,plotPoints:o,plotBoxMean:s}})),mo=f(((t,e)=>{var r=v(),n=q(),i=Qe();e.exports={style:function(t,e,a){var o=a||r.select(t).selectAll("g.trace.boxes");o.style("opacity",(function(t){return t[0].trace.opacity})),o.each((function(e){var a=r.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,i){t.style("stroke-width",e+"px").call(n.stroke,r).call(n.fill,i)}var u=a.selectAll("path.box");if("candlestick"===o.type)u.each((function(t){if(!t.empty){var e=r.select(this),n=o[t.dir];l(e,n.line.width,n.line.color,n.fillcolor),e.style("opacity",o.selectedpoints&&!t.selected?.3:1)}}));else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(n.stroke,o.line.color);var c=a.selectAll("path.point");i.pointStyle(c,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,a=r.selectAll("path.point");n.selectedpoints?i.selectedPointStyle(a,n):i.pointStyle(a,n,t)}}})),go=f(((t,e)=>{var r=ir(),n=le(),i=Or(),a=q(),o=n.fillText;function s(t,e,o,s){var l,u,c,h,f,p,d,m,g,y,v,x,_,b,w=t.cd,T=t.xa,k=t.ya,A=w[0].trace,M=w[0].t,S="violin"===A.type,E=M.bdPos,C=M.wHover,I=function(t){return c.c2l(t.pos)+M.bPos-c.c2l(p)};S&&"both"!==A.side?("positive"===A.side&&(g=function(t){var e=I(t);return i.inbox(e,e+C,y)},x=E,_=0),"negative"===A.side&&(g=function(t){var e=I(t);return i.inbox(e-C,e,y)},x=0,_=E)):(g=function(t){var e=I(t);return i.inbox(e-C,e+C,y)},x=_=E),b=S?function(t){return i.inbox(t.span[0]-f,t.span[1]-f,y)}:function(t){return i.inbox(t.min-f,t.max-f,y)},"h"===A.orientation?(f=e,p=o,d=b,m=g,l="y",c=k,u="x",h=T):(f=o,p=e,d=g,m=b,l="x",c=T,u="y",h=k);var L=Math.min(1,E/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function P(t){return(d(t)+m(t))/2}y=t.maxHoverDistance-L,v=t.maxSpikeDistance-L;var z=i.getDistanceFunction(s,d,m,P);if(i.getClosest(w,z,t),!1===t.index)return[];var O=w[t.index],D=A.line.color,R=(A.marker||{}).color;a.opacity(D)&&A.line.width?t.color=D:a.opacity(R)&&A.boxpoints?t.color=R:t.color=A.fillcolor,t[l+"0"]=c.c2p(O.pos+M.bPos-_,!0),t[l+"1"]=c.c2p(O.pos+M.bPos+x,!0),t[l+"LabelVal"]=void 0!==O.orig_p?O.orig_p:O.pos;var F=l+"Spike";t.spikeDistance=P(O)*v/y,t[F]=c.c2p(O.pos,!0);var B=A.boxmean||"sd"===A.sizemode||(A.meanline||{}).visible,N=A.boxpoints||A.points,j=N&&B?["max","uf","q3","med","mean","q1","lf","min"]:N&&!B?["max","uf","q3","med","q1","lf","min"]:!N&&B?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],U=h.range[1]{e.exports=function(t,e){return e.hoverOnBox&&(t.hoverOnBox=e.hoverOnBox),"xVal"in e&&(t.x=e.xVal),"yVal"in e&&(t.y=e.yVal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t}})),vo=f(((t,e)=>{e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r{e.exports={attributes:so(),layoutAttributes:lo(),supplyDefaults:uo().supplyDefaults,crossTraceDefaults:uo().crossTraceDefaults,supplyLayoutDefaults:co().supplyLayoutDefaults,calc:ho(),crossTraceCalc:fo().crossTraceCalc,plot:po().plot,style:mo().style,styleOnSelect:mo().styleOnSelect,hoverPoints:go().hoverPoints,eventData:yo(),selectPoints:vo(),moduleType:"trace",name:"box",basePlotModule:Si(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}})),_o=f(((t,e)=>{e.exports=xo()})),bo=f(((t,e)=>{var r=Tn(),n=j(),i=R(),a=Ce().axisHoverFormat,o=Ot().hovertemplateAttrs,s=Ot().texttemplateAttrs,l=Pe(),u=D().extendFlat;e.exports=u({z:{valType:"data_array",editType:"calc"},x:u({},r.x,{impliedEdits:{xtype:"array"}}),x0:u({},r.x0,{impliedEdits:{xtype:"scaled"}}),dx:u({},r.dx,{impliedEdits:{xtype:"scaled"}}),y:u({},r.y,{impliedEdits:{ytype:"array"}}),y0:u({},r.y0,{impliedEdits:{ytype:"scaled"}}),dy:u({},r.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:u({},r.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:u({},r.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:u({},r.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:u({},r.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:u({},r.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:u({},r.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z",1),hovertemplate:o(),texttemplate:s({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:u({},n.showlegend,{dflt:!1}),zorder:r.zorder},l("",{cLetter:"z",autoColorDflt:!1}))})),wo=f(((t,e)=>{var r=T(),n=le(),i=qt();function a(t,e){var r=e(t);return"scaled"===(r?e(t+"type","array"):"scaled")&&(e(t+"0"),e("d"+t)),r}e.exports=function(t,e,o,s,l,u){var c,h,f=o("z");if(l=l||"x",u=u||"y",void 0===f||!f.length)return 0;if(n.isArray1D(f)){c=o(l),h=o(u);var p=n.minRowLength(c),d=n.minRowLength(h);if(0===p||0===d)return 0;e._length=Math.min(p,d,f.length)}else{if(c=a(l,o),h=a(u,o),!function(t){for(var e,i=!0,a=!1,o=!1,s=0;s0&&(a=!0);for(var l=0;l{var r=le();e.exports=function(t,e){t("texttemplate");var n=r.extendFlat({},e.font,{color:"auto",size:"auto"});r.coerceFont(t,"textfont",n)}})),ko=f(((t,e)=>{e.exports=function(t,e,r){!1===r("zsmooth")&&(r("xgap"),r("ygap")),r("zhoverformat")}})),Ao=f(((t,e)=>{var r=le(),n=wo(),i=To(),a=Gn(),o=ko(),s=qe(),l=bo();e.exports=function(t,e,u,c){function h(n,i){return r.coerce(t,e,l,n,i)}n(t,e,h,c)?(a(t,e,c,h),h("xhoverformat"),h("yhoverformat"),h("text"),h("hovertext"),h("hovertemplate"),i(h,c),o(t,e,h,c),h("hoverongaps"),h("connectgaps",r.isArray1D(e.z)&&!1!==e.zsmooth),s(t,e,c,h,{prefix:"",cLetter:"z"}),h("zorder")):e.visible=!1}})),Mo=f(((t,e)=>{var r=T();e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,n,i){var a=i[e];return r(a)?(a=Number(a),n[t]+=a,a):0},avg:function(t,e,n,i,a){var o=i[e];return r(o)&&(o=Number(o),n[t]+=o,a[t]++),0},min:function(t,e,n,i){var a=i[e];if(r(a)){if(a=Number(a),!r(n[t]))return n[t]=a,a;if(n[t]>a){var o=a-n[t];return n[t]=a,o}}return 0},max:function(t,e,n,i){var a=i[e];if(r(a)){if(a=Number(a),!r(n[t]))return n[t]=a,a;if(n[t]{e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i{e.exports=function(t,e){for(var r=t.length,n=0,i=0;i{var r=k(),n=r.ONEAVGYEAR,i=r.ONEAVGMONTH,a=r.ONEDAY,o=r.ONEHOUR,s=r.ONEMIN,l=r.ONESEC,u=ir().tickIncrement;function c(t,e,r,n){if(t*e<=0)return 1/0;for(var i=Math.abs(e-t),a="date"===r.type,o=h(i,a),s=0;s<10;s++){var l=h(80*o,a);if(o===l)break;if(!f(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&&t>l?t>a?t>1.1*n?n:t>1.1*i?i:a:t>o?o:t>s?s:l:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function f(t,e,r,i,o,s){if(i&&t>a){var l=p(e,o,s),u=p(r,o,s),c=t===n?0:1;return l[c]!==u[c]}return Math.floor(r/t)-Math.floor(e/t)>.1}function p(t,e,r){var i=e.c2d(t,n,r).split("-");return""===i[0]&&(i.unshift(),i[0]="-"+i[0]),i}e.exports=function(t,e,r,i,o){var s,l,h=-1.1*e,f=-.1*e,p=t-f,d=r[0],m=r[1],g=Math.min(c(d+f,d+p,i,o),c(m+f,m+p,i,o)),y=Math.min(c(d+h,d+f,i,o),c(m+h,m+f,i,o));if(g>y&&ya){var v=s===n?1:6,x=s===n?"M12":"M1";return function(e,r){var a=i.c2d(e,n,o),s=a.indexOf("-",v);s>0&&(a=a.substr(0,s));var c=i.d2c(a,0,o);if(c{var r=T(),n=le(),i=qt(),a=ir(),o=$a(),s=Mo(),l=So(),u=Eo(),c=Co();function h(t,e,o,s,l){var u,c,f,p,d,m,g,y=s+"bins",v=t._fullLayout,x=e["_"+s+"bingroup"],_=v._histogramBinOpts[x],b="overlay"===v.barmode,w=function(t){return o.r2c(t,0,p)},T=function(t){return o.c2r(t,0,p)},k="date"===o.type?function(t){return t||0===t?n.cleanDate(t,null,p):null}:function(t){return r(t)?Number(t):null};function A(t,e,r){e[t+"Found"]?(e[t]=k(e[t]),null===e[t]&&(e[t]=r[t])):(m[t]=e[t]=r[t],n.nestedProperty(c[0],y+"."+t).set(r[t]))}if(e["_"+s+"autoBinFinished"])delete e["_"+s+"autoBinFinished"];else{c=_.traces;var M=[],S=!0,E=!1,C=!1;for(u=0;uo.r2l(B)&&(j=a.tickIncrement(j,_.size,!0,p)),O.start=o.l2r(j),F||n.nestedProperty(e,y+".start").set(O.start)}var U=_.end,V=o.r2l(z.end),q=void 0!==V;if((_.endFound||q)&&V!==o.r2l(U)){var H=q?V:n.aggNums(Math.max,null,d);O.end=o.l2r(H),q||n.nestedProperty(e,y+".start").set(O.end)}var G="autobin"+s;return!1===e._input[G]&&(e._input[y]=n.extendFlat({},e[y]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var i,f,p,d,m=[],g=[],y="h"===e.orientation,v=a.getFromId(t,y?e.yaxis:e.xaxis),x=y?"y":"x",_={x:"y",y:"x"}[x],b=e[x+"calendar"],w=e.cumulative,T=h(t,e,v,x),k=T[0],A=T[1],M="string"==typeof k.size,S=[],E=M?S:k,C=[],I=[],L=[],P=0,z=e.histnorm,O=e.histfunc,D=-1!==z.indexOf("density");w.enabled&&D&&(z=z.replace(/ ?density$/,""),D=!1);var R,F="max"===O||"min"===O?null:0,B=s.count,N=l[z],j=!1,U=function(t){return v.r2c(t,0,b)};for(n.isArrayOrTypedArray(e[_])&&"count"!==O&&(R=e[_],j="avg"===O,B=s[O]),i=U(k.start),p=U(k.end)+(i-a.tickIncrement(i,k.size,!1,b))/1e6;i=0&&d=0;n--)s(n);else if("increasing"===e){for(n=1;n=0;n--)t[n]+=t[n+1];"exclude"===r&&(t.push(0),t.shift())}}(g,w.direction,w.currentbin);var J=Math.min(m.length,g.length),K=[],Q=0,tt=J-1;for(i=0;i=Q;i--)if(g[i]){tt=i;break}for(i=Q;i<=tt;i++)if(r(m[i])&&r(g[i])){var et={p:m[i],s:g[i],b:0};w.enabled||(et.pts=L[i],Z?et.ph0=et.ph1=L[i].length?A[L[i][0]]:m[i]:(e._computePh=!0,et.ph0=H(S[i]),et.ph1=H(S[i+1],!0))),K.push(et)}return 1===K.length&&(K[0].width1=a.tickIncrement(K[0].p,k.size,!1,b)-K[0].p),o(K,e),n.isArrayOrTypedArray(e.selectedpoints)&&n.tagSelected(K,e,X),K},calcAllAutoBins:h}})),Lo=f(((t,e)=>{var r=le(),n=ir(),i=Mo(),a=So(),o=Eo(),s=Co(),l=Io().calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;iS&&T.splice(S,T.length-S),M.length>S&&M.splice(S,M.length-S);var E=[],C=[],I=[],L="string"==typeof w.size,P="string"==typeof A.size,z=[],O=[],D=L?z:w,R=P?O:A,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf("density"),q="max"===U||"min"===U?null:0,H=i.count,G=a[j],Z=!1,W=[],Y=[],X="z"in e?e.z:"marker"in e&&Array.isArray(e.marker.color)?e.marker.color:"";X&&"count"!==U&&(Z="avg"===U,H=i[U]);var $=w.size,J=x(w.start),K=x(w.end)+(J-n.tickIncrement(J,$,!1,y))/1e6;for(s=J;s=0&&p=0&&d{var r=le(),n=k().BADNUM,i=ri();e.exports=function(t,e,a,o,s,l){var u=t._length,c=e.makeCalcdata(t,o),h=a.makeCalcdata(t,s);c=i(t,e,o,c).vals,h=i(t,a,s,h).vals;var f,p,d,m,g=t.text,y=void 0!==g&&r.isArray1D(g),v=t.hovertext,x=void 0!==v&&r.isArray1D(v),_=r.distinctVals(c),b=_.vals,w=r.distinctVals(h),T=w.vals,k=[],A=T.length,M=b.length;for(f=0;f{var r=T(),n=le(),i=k().BADNUM;e.exports=function(t,e,a,o){var s,l,u,c,h,f;function p(t){if(r(t))return+t}if(e&&e.transpose){for(s=0,h=0;h{var r=le(),n=[[-1,0],[1,0],[0,-1],[0,1]];function i(t,e,r){var i,a,o,s,l,u,c,h,f,p,d,m,g,y=0;for(s=0;sm&&(y=Math.max(y,Math.abs(t[a][o]-d)/(g-m))))}return y}e.exports=function(t,e){var n,a,o=1;for(i(t,e),n=0;n.01;n++)o=i(t,e,(a=o,.5-.25*Math.min(1,.5*a)));return o>.01&&r.log("interp2d didn't converge quickly",o),t}})),Do=f(((t,e)=>{var r=le().maxRowLength;e.exports=function(t){var e,n,i,a,o,s,l,u,c=[],h={},f=[],p=t[0],d=[],m=[0,0,0],g=r(t);for(n=0;n=0;o--)(s=((h[[(n=(a=f[o])[0])-1,i=a[1]]]||m)[2]+(h[[n+1,i]]||m)[2]+(h[[n,i-1]]||m)[2]+(h[[n,i+1]]||m)[2])/20)&&(l[a]=[n,i,s],f.splice(o,1),u=!0);if(!u)throw"findEmpties iterated with no new neighbors";for(a in l)h[a]=l[a],c.push(l[a])}return c.sort((function(t,e){return e[2]-t[2]}))}})),Ro=f(((t,e)=>{var r=qt(),n=le().isArrayOrTypedArray;e.exports=function(t,e,i,a,o,s){var l,u,c,h=[],f=r.traceIs(t,"contour"),p=r.traceIs(t,"histogram");if(n(e)&&e.length>1&&!p&&"category"!==s.type){var d=e.length;if(!(d<=o))return f?e.slice(0,o):e.slice(0,o+1);if(f)h=Array.from(e).slice(0,o);else if(1===o)h="log"===s.type?[.5*e[0],2*e[0]]:[e[0]-.5,e[0]+.5];else if("log"===s.type){for(h=[Math.pow(e[0],1.5)/Math.pow(e[1],.5)],c=1;c{var r=qt(),n=le(),i=ir(),a=ri(),o=Lo(),s=Ze(),l=Po(),u=zo(),c=Oo(),h=Do(),f=Ro(),p=k().BADNUM;function d(t){for(var e=[],r=t.length,n=0;n1){var e=(t[t.length-1]-t[0])/(t.length-1),r=Math.abs(e/100);for(k=0;kr)return!1}return!0}(M.rangebreaks||S.rangebreaks)&&(T=function(t,e,r){for(var n=[],i=-1,a=0;a{t.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],t.STYLE=t.CSS_DECLARATIONS.map((function(t){return t.join(": ")+"; "})).join("")})),No=f(((t,e)=>{var r=Bo(),n=Qe(),i=le(),a=null;e.exports=function(){if(null!==a)return a;a=!1;var t=i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!t){var e=Array.from(r.CSS_DECLARATIONS).reverse(),o=window.CSS&&window.CSS.supports||window.supportsCSS;if("function"==typeof o)a=e.some((function(t){return o.apply(null,t)}));else{var s=n.tester.append("image").attr("style",r.STYLE),l=window.getComputedStyle(s.node()).imageRendering;a=e.some((function(t){var e=t[1];return l===e||l===e.toLowerCase()})),s.remove()}}return a}})),jo=f(((t,e)=>{var r=v(),n=O(),i=qt(),a=Qe(),o=ir(),s=le(),l=Se(),u=di(),c=q(),h=We().extractOpts,f=We().makeColorScaleFuncFromTrace,p=Ae(),d=Me().LINE_SPACING,m=No(),g=Bo().STYLE,y="heatmap-label";function x(t){return t.selectAll("g."+y)}function _(t){x(t).remove()}function b(t,e){var r=e.length-2,n=s.constrain(s.findBin(t,e),0,r),i=e[n],a=e[n+1],o=s.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(o),u=Math.abs(o-l);return o&&o!==r&&u?{bin0:l,frac:u,bin1:Math.round(l+u/(o-l))}:{bin0:l,bin1:l,frac:0}}function w(t,e){var r=e.length-1,n=s.constrain(s.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a<=0?{bin0:n,bin1:n,frac:0}:a<.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function T(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,v,k){var A=e.xaxis,M=e.yaxis;s.makeTraceGroups(k,v,"hm").each((function(e){var v,k,S,E,C,I,L,P,z=r.select(this),O=e[0],D=O.trace,R=D.xgap||0,F=D.ygap||0,B=O.z,N=O.x,j=O.y,U=O.xCenter,V=O.yCenter,q=i.traceIs(D,"contour"),H=q?"best":D.zsmooth,G=B.length,Z=s.maxRowLength(B),W=!1,Y=!1;for(I=0;void 0===v&&I0;)k=A.c2p(N[I]),I--;for(k0;)C=M.c2p(j[I]),I--;C=A._length||k<=0||E>=M._length||C<=0)return z.selectAll("image").data([]).exit().remove(),void _(z);"fast"===X?(J=Z,K=G):(J=Q,K=tt);var et=document.createElement("canvas");et.width=J,et.height=K;var rt,nt,it=et.getContext("2d",{willReadFrequently:!0}),at=f(D,{noNumericCheck:!0,returnArray:!0});"fast"===X?(rt=W?function(t){return Z-1-t}:s.identity,nt=Y?function(t){return G-1-t}:s.identity):(rt=function(t){return s.constrain(Math.round(A.c2p(N[t])-v),0,Q)},nt=function(t){return s.constrain(Math.round(M.c2p(j[t])-E),0,tt)});var ot,st,lt,ut,ct=nt(0),ht=[ct,ct],ft=W?0:1,pt=Y?0:1,dt=0,mt=0,gt=0,yt=0;function vt(t,e){if(void 0!==t){var r=at(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),dt+=e,mt+=r[0]*e,gt+=r[1]*e,yt+=r[2]*e,r}return[0,0,0,0]}function xt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return vt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],u=o-i||0,c=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,vt(i+r.frac*u+n.frac*(c+r.frac*a))}if("default"!==X){var _t,bt=0;try{_t=new Uint8Array(J*K*4)}catch(t){_t=new Array(J*K*4)}if("smooth"===X){var wt,Tt,kt,At=U||N,Mt=V||j,St=new Array(At.length),Et=new Array(Mt.length),Ct=new Array(Q),It=U?w:b,Lt=V?w:b;for(I=0;IXt||Xt>M._length))for(L=Gt;LJt||Jt>A._length)){var Kt=u({x:$t,y:Yt},D,t._fullLayout);Kt.x=$t,Kt.y=Yt;var Qt=O.z[I][L];void 0===Qt?(Kt.z="",Kt.zLabel=""):(Kt.z=Qt,Kt.zLabel=o.tickText(Ut,Qt,"hover").text);var te=O.text&&O.text[I]&&O.text[I][L];(void 0===te||!1===te)&&(te=""),Kt.text=te;var ee=s.texttemplateString(Nt,Kt,t._fullLayout._d3locale,Kt,D._meta||{});if(ee){var re=ee.split("
"),ne=re.length,ie=0;for(P=0;P{e.exports={min:"zmin",max:"zmax"}})),Vo=f(((t,e)=>{var r=v();e.exports=function(t){r.select(t).selectAll(".hm image").style("opacity",(function(t){return t.trace.opacity}))}})),qo=f(((t,e)=>{var r=Or(),n=le(),i=n.isArrayOrTypedArray,a=ir(),o=We().extractOpts;e.exports=function(t,e,s,l,u){u||(u={});var c,h,f,p,d=u.isContour,m=t.cd[0],g=m.trace,y=t.xa,v=t.ya,x=m.x,_=m.y,b=m.z,w=m.xCenter,T=m.yCenter,k=m.zmask,A=g.zhoverformat,M=x,S=_;if(!1!==t.index){try{f=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void n.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index)}if(f<0||f>=b[0].length||p<0||p>b.length)return}else{if(r.inbox(e-x[0],e-x[x.length-1],0)>0||r.inbox(s-_[0],s-_[_.length-1],0)>0)return;if(d){var E;for(M=[2*x[0]-x[1]],E=1;E{e.exports={attributes:bo(),supplyDefaults:Ao(),calc:Fo(),plot:jo(),colorbar:Uo(),style:Vo(),hoverPoints:qo(),moduleType:"trace",name:"heatmap",basePlotModule:Si(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}})),Go=f(((t,e)=>{e.exports=Ho()})),Zo=f(((t,e)=>{e.exports=function(t,e){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}})),Wo=f(((t,e)=>{e.exports={eventDataKeys:["binNumber"]}})),Yo=f(((t,e)=>{var r=Ga(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=Ot().texttemplateAttrs,o=R(),s=Zo(),l=Wo(),u=D().extendFlat;e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:n("x"),yhoverformat:n("y"),text:u({},r.text,{}),hovertext:u({},r.hovertext,{}),orientation:r.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:s("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:s("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:i({},{keys:l.eventDataKeys}),texttemplate:a({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:u({},r.textposition,{arrayOk:!1}),textfont:o({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:o({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:o({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:r.insidetextanchor,textangle:r.textangle,cliponaxis:r.cliponaxis,constraintext:r.constraintext,marker:r.marker,offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,zorder:r.zorder}})),Xo=f(((t,e)=>{var r=qt(),n=le(),i=q(),a=Ya().handleText,o=Wa(),s=Yo();e.exports=function(t,e,l,u){function c(r,i){return n.coerce(t,e,s,r,i)}var h=c("x"),f=c("y");c("cumulative.enabled")&&(c("cumulative.direction"),c("cumulative.currentbin")),c("text");var p=c("textposition");a(t,e,u,c,p,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),c("hovertext"),c("hovertemplate"),c("xhoverformat"),c("yhoverformat");var d=c("orientation",f&&!h?"h":"v"),m="v"===d?"x":"y",g="v"===d?"y":"x",y=h&&f?Math.min(n.minRowLength(h)&&n.minRowLength(f)):n.minRowLength(e[m]||[]);if(y){e._length=y,r.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],u),e[g]&&c("histfunc"),c("histnorm"),c("autobin"+m),o(t,e,c,l,u),n.coerceSelectionMarkerOpacity(e,c);var v=(e.marker.line||{}).color,x=r.getComponentMethod("errorbars","supplyDefaults");x(t,e,v||i.defaultLine,{axis:"y"}),x(t,e,v||i.defaultLine,{axis:"x",inherit:"y"}),c("zorder")}else e.visible=!1}})),$o=f(((t,e)=>{var r=le(),n=xe(),i=qt().traceIs,a=Qn(),o=Ya().validateCornerradius,s=r.nestedProperty,l=rn().getAxisGroup,u=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],c=["x","y"];e.exports=function(t,e){var h,f,p,d,m,g,y,v=e._histogramBinOpts={},x=[],_={},b=[];function w(t,e){return r.coerce(h._input,h,h._module.attributes,t,e)}function T(t){return"v"===t.orientation?"x":"y"}function k(t,i,a){var o=t.uid+"__"+a;i||(i=o);var s=function(t,r){return n.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+"calendar"]||"",u=v[i],c=!0;u&&(s===u.axType&&l===u.calendar?(c=!1,u.traces.push(t),u.dirs.push(a)):(i=o,s!==u.axType&&r.warn(["Attempted to group the bins of trace",t.index,"set on a","type:"+s,"axis","with bins on","type:"+u.axType,"axis."].join(" ")),l!==u.calendar&&r.warn(["Attempted to group the bins of trace",t.index,"set with a",l,"calendar","with bins",u.calendar?"on a "+u.calendar+" calendar":"w/o a set calendar"].join(" ")))),c&&(v[i]={traces:[t],dirs:[a],axType:s,calendar:t[a+"calendar"]||""}),t["_"+a+"bingroup"]=i}for(m=0;m{var r=ro().hoverPoints,n=ir().hoverLabelText;e.exports=function(t,e,i,a,o){var s=r(t,e,i,a,o);if(s){var l=(t=s[0]).cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var c="h"===u.orientation?"y":"x";t[c+"Label"]=n(t[c+"a"],[l.ph0,l.ph1],u[c+"hoverformat"])}return s}}})),Ko=f(((t,e)=>{e.exports=function(t,e,r,n,i){if(t.x="xVal"in e?e.xVal:e.x,t.y="yVal"in e?e.yVal:e.y,"zLabelVal"in e&&(t.z=e.zLabelVal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s{e.exports={attributes:Yo(),layoutAttributes:Za(),supplyDefaults:Xo(),crossTraceDefaults:$o(),supplyLayoutDefaults:Xa(),calc:Io().calc,crossTraceCalc:li().crossTraceCalc,plot:eo().plot,layerName:"barlayer",style:to().style,styleOnSelect:to().styleOnSelect,colorbar:pi(),hoverPoints:Jo(),selectPoints:io(),eventData:Ko(),moduleType:"trace",name:"histogram",basePlotModule:Si(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}})),ts=f(((t,e)=>{e.exports=Qo()})),es=f(((t,e)=>{var r=Yo(),n=Zo(),i=bo(),a=j(),o=Ce().axisHoverFormat,s=Ot().hovertemplateAttrs,l=Ot().texttemplateAttrs,u=Pe(),c=D().extendFlat;e.exports=c({x:r.x,y:r.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:n("x"),nbinsy:r.nbinsy,ybins:n("y"),autobinx:r.autobinx,autobiny:r.autobiny,bingroup:c({},r.bingroup,{}),xbingroup:c({},r.bingroup,{}),ybingroup:c({},r.bingroup,{}),xgap:i.xgap,ygap:i.ygap,zsmooth:i.zsmooth,xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:s({},{keys:"z"}),texttemplate:l({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:i.textfont,showlegend:c({},a.showlegend,{dflt:!1})},u("",{cLetter:"z",autoColorDflt:!1}))})),rs=f(((t,e)=>{var r=qt(),n=le();e.exports=function(t,e,i,a){var o=i("x"),s=i("y"),l=n.minRowLength(o),u=n.minRowLength(s);l&&u?(e._length=Math.min(l,u),r.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],a),(i("z")||i("marker.color"))&&i("histfunc"),i("histnorm"),i("autobinx"),i("autobiny")):e.visible=!1}})),ns=f(((t,e)=>{var r=le(),n=rs(),i=ko(),a=qe(),o=To(),s=es();e.exports=function(t,e,l,u){function c(n,i){return r.coerce(t,e,s,n,i)}n(t,e,c,u),!1!==e.visible&&(i(t,e,c,u),a(t,e,u,c,{prefix:"",cLetter:"z"}),c("hovertemplate"),o(c,u),c("xhoverformat"),c("yhoverformat"))}})),is=f(((t,e)=>{var r=qo(),n=ir().hoverLabelText;e.exports=function(t,e,i,a,o){var s=r(t,e,i,a,o);if(s){var l=(t=s[0]).index,u=l[0],c=l[1],h=t.cd[0],f=h.trace,p=h.xRanges[c],d=h.yRanges[u];return t.xLabel=n(t.xa,[p[0],p[1]],f.xhoverformat),t.yLabel=n(t.ya,[d[0],d[1]],f.yhoverformat),s}}})),as=f(((t,e)=>{e.exports={attributes:es(),supplyDefaults:ns(),crossTraceDefaults:$o(),calc:Fo(),plot:jo(),layerName:"heatmaplayer",colorbar:Uo(),style:Vo(),hoverPoints:is(),eventData:Ko(),moduleType:"trace",name:"histogram2d",basePlotModule:Si(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}})),os=f(((t,e)=>{e.exports=as()})),ss=f(((t,e)=>{e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}})),ls=f(((t,e)=>{var r=bo(),n=Tn(),i=Ce(),a=i.axisHoverFormat,o=i.descriptionOnlyNumbers,s=Pe(),l=Pt().dash,u=R(),c=D().extendFlat,h=ss(),f=h.COMPARISON_OPS2,p=h.INTERVAL_OPS,d=n.line;e.exports=c({z:r.z,x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,text:r.text,hovertext:r.hovertext,transpose:r.transpose,xtype:r.xtype,ytype:r.ytype,xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z",1),hovertemplate:r.hovertemplate,texttemplate:c({},r.texttemplate,{}),textfont:c({},r.textfont,{}),hoverongaps:r.hoverongaps,connectgaps:c({},r.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:u({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:o("contour label")},operation:{valType:"enumerated",values:[].concat(f).concat(p),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:c({},d.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:l,smoothing:c({},d.smoothing,{}),editType:"plot"},zorder:n.zorder},s("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))})),us=f(((t,e)=>{var r=es(),n=ls(),i=Pe(),a=Ce().axisHoverFormat,o=D().extendFlat;e.exports=o({x:r.x,y:r.y,z:r.z,marker:r.marker,histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:r.xbins,nbinsy:r.nbinsy,ybins:r.ybins,autobinx:r.autobinx,autobiny:r.autobiny,bingroup:r.bingroup,xbingroup:r.xbingroup,ybingroup:r.ybingroup,autocontour:n.autocontour,ncontours:n.ncontours,contours:n.contours,line:{color:n.line.color,width:o({},n.line.width,{dflt:.5}),dash:n.line.dash,smoothing:n.line.smoothing,editType:"plot"},xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z",1),hovertemplate:r.hovertemplate,texttemplate:n.texttemplate,textfont:n.textfont},i("",{cLetter:"z",editTypeOverride:"calc"}))})),cs=f(((t,e)=>{e.exports=function(t,e,r,n){var i=n("contours.start"),a=n("contours.end"),o=!1===i||!1===a,s=r("contours.size");((o?e.autocontour=!0:r("autocontour",!1))||!s)&&r("ncontours")}})),hs=f(((t,e)=>{var r=le();e.exports=function(t,e,n,i){if(i||(i={}),t("contours.showlabels")){var a=e.font;r.coerceFont(t,"contours.labelfont",a,{overrideDflt:{color:n}}),t("contours.labelformat")}!1!==i.hasHover&&t("zhoverformat")}})),fs=f(((t,e)=>{var r=qe(),n=hs();e.exports=function(t,e,i,a,o){var s,l=i("contours.coloring"),u="";"fill"===l&&(s=i("contours.showlines")),!1!==s&&("lines"!==l&&(u=i("line.color","#000")),i("line.width",.5),i("line.dash")),"none"!==l&&(!0!==t.showlegend&&(e.showlegend=!1),e._dfltShowLegend=!1,r(t,e,a,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),n(i,a,u,o)}})),ps=f(((t,e)=>{var r=le(),n=rs(),i=cs(),a=fs(),o=To(),s=us();e.exports=function(t,e,l,u){function c(n,i){return r.coerce(t,e,s,n,i)}n(t,e,c,u),!1!==e.visible&&(i(t,e,c,(function(n){return r.coerce2(t,e,s,n)})),a(t,e,c,u),c("xhoverformat"),c("yhoverformat"),c("hovertemplate"),e.contours&&"heatmap"===e.contours.coloring&&o(c,u))}})),ds=f(((t,e)=>{var r=ir(),n=le();function i(t,e,n){var i={type:"linear",range:[t,e]};return r.autoTicks(i,(e-t)/(n||15)),i}e.exports=function(t,e){var a=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&&(o=n.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&&(s=n.aggNums(Math.max,null,e));var l=i(o,s,t.ncontours);a.size=l.dtick,a.start=r.tickFirst(l),l.range.reverse(),a.end=r.tickFirst(l),a.start===o&&(a.start+=a.size),a.end===s&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),t._input.contours||(t._input.contours={}),n.extendFlat(t._input.contours,{start:a.start,end:a.end,size:a.size}),t._input.autocontour=!0}else if("constraint"!==a.type){var u,c=a.start,h=a.end,f=t._input.contours;c>h&&(a.start=f.start=h,h=a.end=f.end=c,c=a.start),a.size>0||(u=c===h?1:i(c,h,t.ncontours).dtick,f.size=a.size=u)}}})),ms=f(((t,e)=>{e.exports=function(t){return t.end+t.size/1e6}})),gs=f(((t,e)=>{var r=We(),n=Fo(),i=ds(),a=ms();e.exports=function(t,e){var o=n(t,e),s=o[0].z;i(e,s);var l,u=e.contours,c=r.extractOpts(e);if("heatmap"===u.coloring&&c.auto&&!1===e.autocontour){var h=u.start,f=a(u),p=u.size||1,d=Math.floor((f-h)/p)+1;isFinite(p)||(p=1,d=1);var m=h-p/2;l=[m,m+d*p]}else l=s;return r.calc(t,e,{vals:l,cLetter:"z"}),o}})),ys=f(((t,e)=>{e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}})),vs=f(((t,e)=>{var r=ys();function n(t,e){var r=(e[0][0]>t?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);return 5===r||10===r?t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,i,a,o,s,l,u,c,h,f=t[0].z,p=f.length,d=f[0].length,m=2===p||2===d;for(i=0;i{var r=le(),n=ys();function i(t,e,r,n){return Math.abs(t[0]-e[0])20&&e?208===t||1114===t?i=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==n.BOTTOMSTART.indexOf(t)?a=1:-1!==n.LEFTSTART.indexOf(t)?i=1:-1!==n.TOPSTART.indexOf(t)?a=-1:i=-1,[i,a]}(f,o,e),d=[s(t,e,[-p[0],-p[1]])],m=t.z.length,g=t.z[0].length,y=e.slice(),v=p.slice();for(c=0;c<1e4;c++){if(f>20?(f=n.CHOOSESADDLE[f][(p[0]||p[1])<0?0:1],t.crossings[h]=n.SADDLEREMAINDER[f]):delete t.crossings[h],!(p=n.NEWDELTA[f])){r.log("Found bad marching index:",f,e,t.level);break}d.push(s(t,e,p)),e[0]+=p[0],e[1]+=p[1],h=e.join(","),i(d[d.length-1],d[d.length-2],l,u)&&d.pop();var x=p[0]&&(e[0]<0||e[0]>g-2)||p[1]&&(e[1]<0||e[1]>m-2);if(e[0]===y[0]&&e[1]===y[1]&&p[0]===v[0]&&p[1]===v[1]||o&&x)break;f=t.crossings[h]}1e4===c&&r.log("Infinite loop in contour?");var _,b,w,T,k,A,M,S,E,C,I,L=i(d[0],d[d.length-1],l,u),P=0,z=.2*t.smoothing,O=[],D=0;for(c=1;c=D;c--)if((_=O[c])=D&&_+O[b]S&&E--,t.edgepaths[E]=I.concat(d,C));break}N||(t.edgepaths[S]=d.concat(C))}for(S=0;S{var r=ss(),n=T();function i(t,e){var i,a=Array.isArray(e);function o(t){return n(t)?+t:null}return-1!==r.COMPARISON_OPS2.indexOf(t)?i=o(a?e[0]:e):-1!==r.INTERVAL_OPS.indexOf(t)?i=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==r.SET_OPS.indexOf(t)&&(i=a?e.map(o):[o(e)]),i}function a(t){return function(e){e=i(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function o(t){return function(e){return{start:e=i(t,e),end:1/0,size:1/0}}}e.exports={"[]":a("[]"),"][":a("]["),">":o(">"),"<":o("<"),"=":o("=")}})),bs=f(((t,e)=>{var r=le(),n=_s(),i=ms();e.exports=function(t,e,a){for(var o="constraint"===t.type?n[t._operation](t.value):t,s=o.size,l=[],u=i(o),c=a.trace._carpetTrace,h=c?{xaxis:c.aaxis,yaxis:c.baxis,x:a.a,y:a.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:a.x,y:a.y},f=o.start;f1e3){r.warn("Too many contours, clipping at 1000",t);break}return l}})),ws=f(((t,e)=>{var r=le();function n(t){return r.extendFlat({},t,{edgepaths:r.extendDeep([],t.edgepaths),paths:r.extendDeep([],t.paths),starts:r.extendDeep([],t.starts)})}e.exports=function(t,e){var i,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case"=":case"<":return t;case">":for(1!==t.length&&r.warn("Contour data invalid for the specified inequality operation."),a=t[0],i=0;i{e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case"levels":var a=Math.min(i[0][0],i[0][1]);for(r=0;ro.level||o.starts.length&&a===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,u=-1/0,c=1/0;for(r=0;r":p>u&&(n.prefixBoundary=!0);break;case"<":(pu||n.starts.length&&f===c)&&(n.prefixBoundary=!0);break;case"][":h=Math.min(p[0],p[1]),f=Math.max(p[0],p[1]),hu&&(n.prefixBoundary=!0)}}}})),ks=f((t=>{var e=v(),r=le(),n=Qe(),i=We(),a=Se(),o=ir(),s=er(),l=jo(),u=vs(),c=xs(),h=bs(),f=ws(),p=Ts(),d=ys(),m=d.LABELOPTIMIZER;function g(t,e){var i,a,o,s,l,u,c,h="",f=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function m(t){return Math.abs(t[1]-e[2][1])<.01}function g(t){return Math.abs(t[0]-e[0][0])<.01}function y(t){return Math.abs(t[0]-e[2][0])<.01}for(;p.length;){for(u=n.smoothopen(t.edgepaths[f],t.smoothing),h+=d?u:u.replace(/^M/,"L"),p.splice(p.indexOf(f),1),i=t.edgepaths[f][t.edgepaths[f].length-1],s=-1,o=0;o<4;o++){if(!i){r.log("Missing end?",f,t);break}for(c=i,Math.abs(c[1]-e[0][1])<.01&&!y(i)?a=e[1]:g(i)?a=e[0]:m(i)?a=e[3]:y(i)&&(a=e[2]),l=0;l=0&&(a=v,s=l):Math.abs(i[1]-a[1])<.01?Math.abs(i[1]-v[1])<.01&&(v[0]-i[0])*(a[0]-v[0])>=0&&(a=v,s=l):r.log("endpt to newendpt is not vert. or horz.",i,a,v)}if(i=a,s>=0)break;h+="L"+a}if(s===t.edgepaths.length){r.log("unclosed perimeter path");break}f=s,(d=-1===p.indexOf(f))&&(f=p[0],h+="Z")}for(f=0;fi.center?i.right-s:s-i.left)/(c+Math.abs(Math.sin(u)*o)),p=(l>i.middle?i.bottom-l:l-i.top)/(Math.abs(h)+Math.cos(u)*o);if(f<1||p<1)return 1/0;var d=m.EDGECOST*(1/(f-1)+1/(p-1));d+=m.ANGLECOST*u*u;for(var g=s-c,y=l-h,v=s+c,x=l+h,_=0;_2*m.MAXCOST)break;p&&(s/=2),l=(o=u-s/2)+1.5*s}if(f<=m.MAXCOST)return c},t.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,u=t.theta,c=Math.sin(u),h=Math.cos(u),f=function(t,e){return[s+t*h-e*c,l+t*c+e*h]},p=[f(-a/2,-o/2),f(-a/2,o/2),f(a/2,o/2),f(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:u,level:e.level,width:a,height:o}),n.push(p)},t.drawLabels=function(t,n,i,o,s){var l=t.selectAll("text").data(n,(function(t){return t.text+","+t.x+","+t.y+","+t.theta}));if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(t){var r=t.x+Math.sin(t.theta)*t.dy,n=t.y-Math.cos(t.theta)*t.dy;e.select(this).text(t.text).attr({x:r,y:n,transform:"rotate("+180*t.theta/Math.PI+" "+r+" "+n+")"}).call(a.convertToTspans,i)})),s){for(var u="",c=0;c{var r=v(),n=We(),i=ms();e.exports=function(t){var e=t.contours,a=e.start,o=i(e),s=e.size||1,l=Math.floor((o-a)/s)+1,u="lines"===e.coloring?0:1,c=n.extractOpts(t);isFinite(s)||(s=1,l=1);var h,f,p=c.reversescale?n.flipScale(c.colorscale):c.colorscale,d=p.length,m=new Array(d),g=new Array(d),y=c.min,v=c.max;if("heatmap"===e.coloring){for(f=0;f=v)&&(a<=y&&(a=y),o>=v&&(o=v),l=Math.floor((o-a)/s)+1,u=0),f=0;fy&&(m.unshift(y),g.unshift(g[0])),m[m.length-1]{var r=v(),n=Qe(),i=Vo(),a=As();e.exports=function(t){var e=r.select(t).selectAll("g.contour");e.style("opacity",(function(t){return t[0].trace.opacity})),e.each((function(t){var e=r.select(this),i=t[0].trace,o=i.contours,s=i.line,l=o.size||1,u=o.start,c="constraint"===o.type,h=!c&&"lines"===o.coloring,f=!c&&"fill"===o.coloring,p=h||f?a(i):null;e.selectAll("g.contourlevel").each((function(t){r.select(this).selectAll("path").call(n.lineGroupStyle,s.width,h?p(t.level):s.color,s.dash)}));var d=o.labelfont;if(e.selectAll("g.contourlabels text").each((function(t){n.font(r.select(this),{weight:d.weight,style:d.style,variant:d.variant,textcase:d.textcase,lineposition:d.lineposition,shadow:d.shadow,family:d.family,size:d.size,color:d.color||(h?p(t.level):s.color)})})),c)e.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(f){var m;e.selectAll("g.contourfill path").style("fill",(function(t){return void 0===m&&(m=t.level),p(t.level+.5*l)})),void 0===m&&(m=u),e.selectAll("g.contourbg path").style("fill",p(m-.5*l))}})),i(t)}})),Ss=f(((t,e)=>{var r=We(),n=As(),i=ms();e.exports={min:"zmin",max:"zmax",calc:function(t,e,a){var o=e.contours,s=e.line,l=o.size||1,u=o.coloring,c=n(e,{isColorbar:!0});if("heatmap"===u){var h=r.extractOpts(e);a._fillgradient=h.reversescale?r.flipScale(h.colorscale):h.colorscale,a._zrange=[h.min,h.max]}else"fill"===u&&(a._fillcolor=c);a._line={color:"lines"===u?c:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},a._levels={start:o.start,end:i(o),size:l}}}})),Es=f(((t,e)=>{var r=q(),n=qo();e.exports=function(t,e,i,a,o){o||(o={}),o.isContour=!0;var s=n(t,e,i,a,o);return s&&s.forEach((function(t){var e=t.trace;"constraint"===e.contours.type&&(e.fillcolor&&r.opacity(e.fillcolor)?t.color=r.addOpacity(e.fillcolor,1):e.contours.showlines&&r.opacity(e.line.color)&&(t.color=r.addOpacity(e.line.color,1)))})),s}})),Cs=f(((t,e)=>{e.exports={attributes:us(),supplyDefaults:ps(),crossTraceDefaults:$o(),calc:gs(),plot:ks().plot,layerName:"contourlayer",style:Ms(),colorbar:Ss(),hoverPoints:Es(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Si(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}})),Is=f(((t,e)=>{e.exports=Cs()})),Ls=f(((t,e)=>{var r=T(),n=hs(),i=q(),a=i.addOpacity,o=i.opacity,s=ss(),l=le().isArrayOrTypedArray,u=s.CONSTRAINT_REDUCTION,c=s.COMPARISON_OPS2;e.exports=function(t,e,i,s,h,f){var p,d,m,g=e.contours,y=i("contours.operation");g._operation=u[y],function(t,e){var n;-1===c.indexOf(e.operation)?(t("contours.value",[0,1]),l(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(n=parseFloat(e.value[0]),e.value=[n,n+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:r(e.value)&&(n=parseFloat(e.value),e.value=[n,n+1])):(t("contours.value",0),r(e.value)||(l(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(i,g),"="===y?p=g.showlines=!0:(p=i("contours.showlines"),m=i("fillcolor",a((t.line||{}).color||h,.5))),p&&(d=i("line.color",m&&o(m)?a(e.fillcolor,1):h),i("line.width",2),i("line.dash")),i("line.smoothing"),n(i,s,d,f)}})),Ps=f(((t,e)=>{var r=le(),n=wo(),i=Gn(),a=Ls(),o=cs(),s=fs(),l=To(),u=ls();e.exports=function(t,e,c,h){function f(n,i){return r.coerce(t,e,u,n,i)}if(n(t,e,f,h)){i(t,e,h,f),f("xhoverformat"),f("yhoverformat"),f("text"),f("hovertext"),f("hoverongaps"),f("hovertemplate");var p="constraint"===f("contours.type");f("connectgaps",r.isArray1D(e.z)),p?a(t,e,f,h,c):(o(t,e,f,(function(n){return r.coerce2(t,e,u,n)})),s(t,e,f,h)),e.contours&&"heatmap"===e.contours.coloring&&l(f,h),f("zorder")}else e.visible=!1}})),zs=f(((t,e)=>{e.exports={attributes:ls(),supplyDefaults:Ps(),calc:gs(),plot:ks().plot,style:Ms(),colorbar:Ss(),hoverPoints:Es(),moduleType:"trace",name:"contour",basePlotModule:Si(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}})),Os=f(((t,e)=>{e.exports=zs()})),Ds=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=wn(),a=Tn(),o=j(),s=Pe(),l=Pt().dash,u=D().extendFlat,c=a.marker,h=a.line,f=c.line;e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:u({},a.mode,{dflt:"markers"}),text:u({},a.text,{}),texttemplate:n({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:u({},a.hovertext,{}),line:{color:h.color,width:h.width,dash:l,backoff:h.backoff,shape:u({},h.shape,{values:["linear","spline"]}),smoothing:h.smoothing,editType:"calc"},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:u({},a.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:i(),marker:u({symbol:c.symbol,opacity:c.opacity,angle:c.angle,angleref:c.angleref,standoff:c.standoff,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:u({width:f.width,editType:"calc"},s("marker.line")),gradient:c.gradient,editType:"calc"},s("marker")),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:u({},o.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a.hoveron,hovertemplate:r()}})),Rs=f(((t,e)=>{var r=le(),n=bn(),i=Ye(),a=Wn(),o=Yn(),s=Xn(),l=$n(),u=Jn(),c=Ds();e.exports=function(t,e,h,f){function p(n,i){return r.coerce(t,e,c,n,i)}var d,m=p("a"),g=p("b"),y=p("c");if(m?(d=m.length,g?(d=Math.min(d,g.length),y&&(d=Math.min(d,y.length))):d=y?Math.min(d,y.length):0):g&&y&&(d=Math.min(g.length,y.length)),d){e._length=d,p("sum"),p("text"),p("hovertext"),"fills"!==e.hoveron&&p("hovertemplate"),p("mode",d{var r=ir();e.exports=function(t,e,n){var i={},a=n[e.subplot]._subplot;return i.aLabel=r.tickText(a.aaxis,t.a,!0).text,i.bLabel=r.tickText(a.baxis,t.b,!0).text,i.cLabel=r.tickText(a.caxis,t.c,!0).text,i}})),Bs=f(((t,e)=>{var r=T(),n=ni(),i=ii(),a=ai(),o=oi().calcMarkerSize,s=["a","b","c"],l={a:["b","c"],b:["a","c"],c:["a","b"]};e.exports=function(t,e){var u,c,h,f,p,d,m=t._fullLayout[e.subplot].sum,g=e.sum||m,y={a:e.a,b:e.b,c:e.c},v=e.ids;for(u=0;u{var r=fi();e.exports=function(t,e,n){var i=e.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=e.xaxis,o=e.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},l=e.layers.frontplot.select("g.scatterlayer"),u=0;u{var r=yi();e.exports=function(t,e,n,i){var a=r(t,e,n,i);if(a&&!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var h=o.cd[o.index],f=o.trace,p=o.subplot;o.a=h.a,o.b=h.b,o.c=h.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[f.subplot]={_subplot:p};var m=f._module.formatLabels(h,f,d);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var g=h.hi||f.hoverinfo,y=[];if(!f.hovertemplate){var v=g.split("+");-1!==v.indexOf("all")&&(v=["a","b","c"]),-1!==v.indexOf("a")&&x(p.aaxis,o.aLabel),-1!==v.indexOf("b")&&x(p.baxis,o.bLabel),-1!==v.indexOf("c")&&x(p.caxis,o.cLabel)}return o.extraText=y.join("
"),o.hovertemplate=f.hovertemplate,a}function x(t,e){y.push(t._hovertitle+": "+e)}}})),Us=f(((t,e)=>{e.exports=function(t,e,r,n,i){if(e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}})),Vs=f(((t,e)=>{var r=v(),n=O(),i=qt(),a=le(),o=a.strTranslate,s=a._,l=q(),u=Qe(),c=er(),h=D().extendFlat,f=ke(),p=ir(),d=fr(),m=Or(),g=Dr(),y=g.freeMode,x=g.rectMode,_=tr(),b=En().prepSelect,w=En().selectOnClick,T=En().clearOutline,k=En().clearSelectionsCache,A=ve();function M(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.updateFx(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=M;var S=M.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=this,n=e[r.id],i=e._size;r._hasClipOnAxisFalse=!1;for(var a=0;aE*_?i=(a=_)*E:a=(i=x)/E,s=y*i/x,f=v*a/_,r=e.l+e.w*m-i/2,n=e.t+e.h*(1-g)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=b,p.xaxis={type:"linear",range:[w+2*k-b,b-w-2*T],domain:[m-s/2,m+s/2],_id:"x"},c(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a>=p.aaxis.range[0]&&t.a<=p.aaxis.range[1]&&t.b>=p.baxis.range[1]&&t.b<=p.baxis.range[0]&&t.c>=p.caxis.range[1]&&t.c<=p.caxis.range[0]},p.yaxis={type:"linear",range:[w,b-T-k],domain:[g-f/2,g+f/2],_id:"y"},c(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var A=p.yaxis.domain[0],M=p.aaxis=h({},t.aaxis,{range:[w,b-T-k],side:"left",tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+f*E],anchor:"free",position:0,_id:"y",_length:i});c(M,p.graphDiv._fullLayout),M.setScale();var S=p.baxis=h({},t.baxis,{range:[b-w-k,T],side:"bottom",domain:p.xaxis.domain,anchor:"free",position:0,_id:"x",_length:i});c(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[b-w-T,k],side:"right",tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+f*E],anchor:"free",position:0,_id:"y",_length:i});c(C,p.graphDiv._fullLayout),C.setScale();var I="M"+r+","+(n+a)+"h"+i+"l-"+i/2+",-"+a+"Z";p.clipDef.select("path").attr("d",I),p.layers.plotbg.select("path").attr("d",I);var L="M0,"+a+"h"+i+"l-"+i/2+",-"+a+"Z";p.clipDefRelative.select("path").attr("d",L);var P=o(r,n);p.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),p.clipDefRelative.select("path").attr("transform",null);var z=o(r-S._offset,n+a);p.layers.baxis.attr("transform",z),p.layers.bgrid.attr("transform",z);var O=o(r+i/2,n)+"rotate(30)"+o(0,-M._offset);p.layers.aaxis.attr("transform",O),p.layers.agrid.attr("transform",O);var D=o(r+i/2,n)+"rotate(-30)"+o(0,-C._offset);p.layers.caxis.attr("transform",D),p.layers.cgrid.attr("transform",D),p.drawAxes(!0),p.layers.aline.select("path").attr("d",M.showline?"M"+r+","+(n+a)+"l"+i/2+",-"+a:"M0,0").call(l.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),p.layers.bline.select("path").attr("d",S.showline?"M"+r+","+(n+a)+"h"+i:"M0,0").call(l.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),p.layers.cline.select("path").attr("d",C.showline?"M"+(r+i/2)+","+n+"l"+i/2+","+a:"M0,0").call(l.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this,r=e.graphDiv,n=e.id.substr(7)+"title",i=e.layers,a=e.aaxis,o=e.baxis,l=e.caxis;if(e.drawAx(a),e.drawAx(o),e.drawAx(l),t){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+("outside"===l.ticks?.87*l.ticklen:0)),c=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;i["a-title"]=_.draw(r,"a"+n,{propContainer:a,propName:e.id+".aaxis.title",placeholder:s(r,"Click to enter Component A title"),attributes:{x:e.x0+e.w/2,y:e.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=_.draw(r,"b"+n,{propContainer:o,propName:e.id+".baxis.title",placeholder:s(r,"Click to enter Component B title"),attributes:{x:e.x0-c,y:e.y0+e.h+.83*o.title.font.size+c,"text-anchor":"middle"}}),i["c-title"]=_.draw(r,"c"+n,{propContainer:l,propName:e.id+".caxis.title",placeholder:s(r,"Click to enter Component C title"),attributes:{x:e.x0+e.w+c,y:e.y0+e.h+.83*l.title.font.size+c,"text-anchor":"middle"}})}},S.drawAx=function(t){var e=this,r=e.graphDiv,n=t._name,i=n.charAt(0),o=t._id,s=e.layers[n],l=i+"tickLayout",u=function(t){return t.ticks+String(t.ticklen)+String(t.showticklabels)}(t);e[l]!==u&&(s.selectAll("."+o+"tick").remove(),e[l]=u),t.setScale();var c=p.calcTicks(t),h=p.clipEnds(t,c),f=p.makeTransTickFn(t),d=p.getTickSigns(t)[2],m=a.deg2rad(30),g=d*(t.linewidth||1)/2,y=d*t.ticklen,v=e.w,x=e.h,_="b"===i?"M0,"+g+"l"+Math.sin(m)*y+","+Math.cos(m)*y:"M"+g+",0l"+Math.cos(m)*y+","+-Math.sin(m)*y,b={a:"M0,0l"+x+",-"+v/2,b:"M0,0l-"+v/2+",-"+x,c:"M0,0l-"+x+","+v/2}[i];p.drawTicks(r,t,{vals:"inside"===t.ticks?h:c,layer:s,path:_,transFn:f,crisp:!1}),p.drawGrid(r,t,{vals:h,layer:e.layers[i+"grid"],path:b,transFn:f,crisp:!1}),p.drawLabels(r,t,{vals:c,layer:s,transFn:f,labelFns:p.makeLabelFns(t,0,30)})};var C=A.MINZOOM/2+.87,I="m-0.87,.5h"+C+"v3h-"+(C+5.2)+"l"+(C/2+2.6)+",-"+(.87*C+4.5)+"l2.6,1.5l-"+C/2+","+.87*C+"Z",L="m0.87,.5h-"+C+"v3h"+(C+5.2)+"l-"+(C/2+2.6)+",-"+(.87*C+4.5)+"l-2.6,1.5l"+C/2+","+.87*C+"Z",P="m0,1l"+C/2+","+.87*C+"l2.6,-1.5l-"+(C/2+2.6)+",-"+(.87*C+4.5)+"l-"+(C/2+2.6)+","+(.87*C+4.5)+"l2.6,1.5l"+C/2+",-"+.87*C+"Z",z=!0;function R(t){r.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}S.clearOutline=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,c,h,f,p,g,v,_,T,k,M=this,S=M.layers.plotbg.select("path").node(),C=M.graphDiv,O=C._fullLayout._zoomlayer;function D(t){var e={};return e[M.id+".aaxis.min"]=t.a,e[M.id+".baxis.min"]=t.b,e[M.id+".caxis.min"]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;R(C),2===t&&(C.emit("plotly_doubleclick",null),i.call("_guiRelayout",C,D({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===t&&w(e,C,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf("event")>-1&&m.click(C,e,M.id)}function B(t,e){return 1-e/M.h}function N(t,e){return 1-(t+(M.h-e)/Math.sqrt(3))/M.w}function j(t,e){return(t-(M.h-e)/Math.sqrt(3))/M.w}function U(n,i){var a=r+n*t,o=c+i*e,s=Math.max(0,Math.min(1,B(0,c),B(0,o))),l=Math.max(0,Math.min(1,N(r,c),N(a,o))),u=Math.max(0,Math.min(1,j(r,c),j(a,o))),d=(s/2+u)*M.w,m=(1-s/2-l)*M.w,y=(d+m)/2,x=m-d,b=(1-s)*M.h,w=b-x/E;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),k.transition().style("opacity",1).duration(200),_=!0),C.emit("plotly_relayouting",D(p))}function V(){R(C),p!==h&&(i.call("_guiRelayout",C,D(p)),z&&C.data&&C._context.showTips&&(a.notifier(s(C,"Double-click to zoom back out"),"long"),z=!1))}function q(t,e){var r=t/M.xaxis._m,n=e/M.yaxis._m,i=[(p={a:h.a-n,b:h.b+(r+n)/2,c:h.c-(r-n)/2}).a,p.b,p.c].sort(a.sorterAsc),s=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[s],b:i[l],c:i[c]},e=(h.a-p.a)*M.yaxis._m,t=(h.c-p.c-h.b+p.b)*M.xaxis._m);var f=o(M.x0+t,M.y0+e);M.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",f);var d=o(-t,-e);M.clipDefRelative.select("path").attr("transform",d),M.aaxis.range=[p.a,M.sum-p.b-p.c],M.baxis.range=[M.sum-p.a-p.c,p.b],M.caxis.range=[M.sum-p.a-p.b,p.c],M.drawAxes(!1),M._hasClipOnAxisFalse&&M.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,M),C.emit("plotly_relayouting",D(p))}function H(){i.call("_guiRelayout",C,D(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:M.id,domain:C._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(i,s,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var d=M.dragOptions.dragmode=C._fullLayout.dragmode;y(d)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,"zoom"===d?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(t,e,i){var s=S.getBoundingClientRect();r=e-s.left,c=i-s.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,d=a.apply3DTransform(u)(r,c);r=d[0],c=d[1],h={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=h,f=M.aaxis.range[1]-h.a,g=n(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v="M0,"+M.h+"L"+M.w/2+", 0L"+M.w+","+M.h+"Z",_=!1,T=O.append("path").attr("class","zoombox").attr("transform",o(M.x0,M.y0)).style({fill:g>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),k=O.append("path").attr("class","zoombox-corners").attr("transform",o(M.x0,M.y0)).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),M.clearOutline(C)}(0,s,u)):"pan"===d?(M.dragOptions.moveFn=q,M.dragOptions.clickFn=F,M.dragOptions.doneFn=H,h={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=h,M.clearOutline(C)):(x(d)||y(d))&&b(i,s,u,M.dragOptions,d)}},S.onmousemove=function(t){m.hover(C,t,M.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=M.id},S.onmouseout=function(t){C._dragging||d.unhover(C,t)},d.init(this.dragOptions)}})),qs=f(((t,e)=>{var r=V(),n=ka().attributes,i=Ie(),a=Lt().overrideAll,o=D().extendFlat,s={title:{text:i.title.text,font:i.title.font},color:i.color,tickmode:i.minor.tickmode,nticks:o({},i.nticks,{dflt:6,min:1}),tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,ticklabelstep:i.ticklabelstep,showticklabels:i.showticklabels,labelalias:i.labelalias,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth,griddash:i.griddash,layer:i.layer,min:{valType:"number",dflt:0,min:0}},l=e.exports=a({domain:n({name:"ternary"}),bgcolor:{valType:"color",dflt:r.background},sum:{valType:"number",dflt:1,min:0},aaxis:s,baxis:s,caxis:s},"plot","from-root");l.uirevision={valType:"any",editType:"none"},l.aaxis.uirevision=l.baxis.uirevision=l.caxis.uirevision={valType:"any",editType:"none"}})),Hs=f(((t,e)=>{var r=le(),n=ye(),i=ka().defaults;e.exports=function(t,e,a,o){var s,l,u=o.type,c=o.attributes,h=o.handleDefaults,f=o.partition||"x",p=e._subplots[u],d=p.length,m=d&&p[0].replace(/\d+$/,"");function g(t,e){return r.coerce(s,l,c,t,e)}for(var y=0;y{var r=q(),n=ye(),i=le(),a=Hs(),o=je(),s=Ue(),l=Fe(),u=Re(),c=wi(),h=qs(),f=["aaxis","baxis","caxis"];function p(t,e,i,a){var o=i("bgcolor"),s=i("sum");a.bgColor=r.combine(o,a.paper_bgcolor);for(var l,u,c,h=0;h=s&&(p.min=0,m.min=0,g.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}function d(t,e,r,n){var a=h[e._name];function f(r,n){return i.coerce(t,e,a,r,n)}f("uirevision",n.uirevision),e.type="linear";var p=f("color"),d=p!==a.color.dflt?p:r.font.color,m=e._name.charAt(0).toUpperCase(),g="Component "+m,y=f("title.text",g);e._hovertitle=y===g?y:m,i.coerceFont(f,"title.font",r.font,{overrideDflt:{size:i.bigFont(r.font.size),color:d}}),f("min"),u(t,e,f,"linear"),s(t,e,f,"linear"),o(t,e,f,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),l(t,e,f,{outerTicks:!0}),f("showticklabels")&&(i.coerceFont(f,"tickfont",r.font,{overrideDflt:{color:d}}),f("tickangle"),f("tickformat")),c(t,e,f,{dfltColor:p,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),f("hoverformat"),f("layer")}e.exports=function(t,e,r){a(t,e,r,{type:"ternary",attributes:h,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}})),Zs=f((t=>{var e=Vs(),r=we().getSubplotCalcData,n=le().counterRegex,i="ternary";t.name=i;var a=t.attr="subplot";t.idRoot=i,t.idRegex=t.attrRegex=n(i),(t.attributes={})[a]={valType:"subplotid",dflt:"ternary",editType:"calc"},t.layoutAttributes=qs(),t.supplyLayoutDefaults=Gs(),t.plot=function(t){for(var n=t._fullLayout,a=t.calcdata,o=n._subplots[i],s=0;s{e.exports={attributes:Ds(),supplyDefaults:Rs(),colorbar:pi(),formatLabels:Fs(),calc:Bs(),plot:Ns(),style:mi().style,styleOnSelect:mi().styleOnSelect,hoverPoints:js(),selectPoints:vi(),eventData:Us(),moduleType:"trace",name:"scatterternary",basePlotModule:Zs(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}})),Ys=f(((t,e)=>{e.exports=Ws()})),Xs=f(((t,e)=>{var r=so(),n=D().extendFlat,i=Ce().axisHoverFormat;e.exports={y:r.y,x:r.x,x0:r.x0,y0:r.y0,xhoverformat:i("x"),yhoverformat:i("y"),name:n({},r.name,{}),orientation:n({},r.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,points:n({},r.boxpoints,{}),jitter:n({},r.jitter,{}),pointpos:n({},r.pointpos,{}),width:n({},r.width,{}),marker:r.marker,text:r.text,hovertext:r.hovertext,hovertemplate:r.hovertemplate,quartilemethod:r.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:r.zorder}})),$s=f(((t,e)=>{var r=lo(),n=le().extendFlat;e.exports={violinmode:n({},r.boxmode,{}),violingap:n({},r.boxgap,{}),violingroupgap:n({},r.boxgroupgap,{})}})),Js=f(((t,e)=>{var r=le(),n=q(),i=uo(),a=Xs();e.exports=function(t,e,o,s){function l(n,i){return r.coerce(t,e,a,n,i)}function u(n,i){return r.coerce2(t,e,a,n,i)}if(i.handleSampleDefaults(t,e,l,s),!1!==e.visible){l("bandwidth"),l("side"),l("width")||(l("scalegroup",e.name),l("scalemode"));var c,h=l("span");Array.isArray(h)&&(c="manual"),l("spanmode",c);var f=l("line.color",(t.marker||{}).color||o),p=l("line.width"),d=l("fillcolor",n.addOpacity(e.line.color,.5));i.handlePointsDefaults(t,e,l,{prefix:""});var m=u("box.width"),g=u("box.fillcolor",d),y=u("box.line.color",f),v=u("box.line.width",p);l("box.visible",!!(m||g||y||v))||(e.box={visible:!1});var x=u("meanline.color",f),_=u("meanline.width",p);l("meanline.visible",!(!x&&!_))||(e.meanline={visible:!1}),l("quartilemethod"),l("zorder")}}})),Ks=f(((t,e)=>{var r=le(),n=$s(),i=co();e.exports=function(t,e,a){i._supply(t,e,a,(function(i,a){return r.coerce(t,e,n,i,a)}),"violin")}})),Qs=f((t=>{var e=le(),r=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};t.makeKDE=function(t,e,n){var i=n.length,a=r,o=t.bandwidth,s=1/(i*o);return function(t){for(var e=0,r=0;r{var r=le(),n=ir(),i=ho(),a=Qs(),o=k().BADNUM;function s(t,e,n){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=n.length,o=r.stdev(n,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function l(t,e,r,i){var a,s=t.spanmode,l=t.span||[],u=[e.min,e.max],c=[e.min-2*i,e.max+2*i];function h(n){var i=l[n],a="multicategory"===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+"calendar"]);return a===o?c[n]:a}var f={type:"linear",range:a="soft"===s?c:"hard"===s?u:[h(0),h(1)]};return n.setConvert(f),f.cleanRange(),a}e.exports=function(t,e){var o=i(t,e);if(o[0].t.empty)return o;for(var u=t._fullLayout,c=n.getFromId(t,e["h"===e.orientation?"xaxis":"yaxis"]),h=1/0,f=-1/0,p=0,d=0,m=0;m{var r=fo().setPositionOffset,n=["v","h"];e.exports=function(t,e){for(var i=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s{var r=v(),n=le(),i=Qe(),a=po(),o=ci(),s=Qs();e.exports=function(t,e,l,u){var c=t._context.staticPlot,h=t._fullLayout,f=e.xaxis,p=e.yaxis;function d(t,e){var r=o(t,{xaxis:f,yaxis:p,trace:e,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return i.smoothopen(r[0],1)}n.makeTraceGroups(u,l,"trace violins").each((function(t){var i=r.select(this),o=t[0],l=o.t,u=o.trace;if(!0!==u.visible||l.empty)i.remove();else{var m=l.bPos,g=l.bdPos,y=e[l.valLetter+"axis"],v=e[l.posLetter+"axis"],x="both"===u.side,_=x||"positive"===u.side,b=x||"negative"===u.side,w=i.selectAll("path.violin").data(n.identity);w.enter().append("path").style("vector-effect",c?"none":"non-scaling-stroke").attr("class","violin"),w.exit().remove(),w.each((function(t){var e,n,i,a,o,s,c,f,p=r.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+m,!0),A=v.l2p(k);if(u.width)e=l.maxKDE/g;else{var M=h._violinScaleGroupStats[u.scalegroup];e="count"===u.scalemode?M.maxKDE/g*(M.maxCount/t.pts.length):M.maxKDE/g}if(_){for(c=new Array(T),o=0;o{var r=v(),n=q(),i=mi().stylePoints;e.exports=function(t){var e=r.select(t).selectAll("g.trace.violins");e.style("opacity",(function(t){return t[0].trace.opacity})),e.each((function(e){var a=e[0].trace,o=r.select(this),s=a.box||{},l=s.line||{},u=a.meanline||{},c=u.width;o.selectAll("path.violin").style("stroke-width",a.line.width+"px").call(n.stroke,a.line.color).call(n.fill,a.fillcolor),o.selectAll("path.box").style("stroke-width",l.width+"px").call(n.stroke,l.color).call(n.fill,s.fillcolor);var h={"stroke-width":c+"px","stroke-dasharray":2*c+"px,"+c+"px"};o.selectAll("path.mean").style(h).call(n.stroke,u.color),o.selectAll("path.meanline").style(h).call(n.stroke,u.color),i(o,a,t)}))}})),il=f(((t,e)=>{var r=q(),n=le(),i=ir(),a=go(),o=Qs();e.exports=function(t,e,s,l,u){u||(u={});var c,h,f=u.hoverLayer,p=t.cd,d=p[0].trace,m=d.hoveron,g=-1!==m.indexOf("violins"),y=-1!==m.indexOf("kde"),v=[];if(g||y){var x=a.hoverOnBoxes(t,e,s,l);if(y&&x.length>0){var _,b,w,T,k,A=t.xa,M=t.ya;"h"===d.orientation?(k=e,_="y",w=M,b="x",T=A):(k=s,_="x",w=A,b="y",T=M);var S=p[t.index];if(k>=S.span[0]&&k<=S.span[1]){var E=n.extendFlat({},t),C=T.c2p(k,!0),I=o.getKdeValue(S,d,k),L=o.getPositionOnKdePath(S,d,C),P=w._offset,z=w._length;E[_+"0"]=L[0],E[_+"1"]=L[1],E[b+"0"]=E[b+"1"]=C,E[b+"Label"]=b+": "+i.hoverLabelText(T,k,d[b+"hoverformat"])+", "+p[0].t.labels.kde+" "+I.toFixed(3);for(var O=0,D=0;D{e.exports={attributes:Xs(),layoutAttributes:$s(),supplyDefaults:Js(),crossTraceDefaults:uo().crossTraceDefaults,supplyLayoutDefaults:Ks(),calc:tl(),crossTraceCalc:el(),plot:rl(),style:nl(),styleOnSelect:mi().styleOnSelect,hoverPoints:il(),selectPoints:vo(),moduleType:"trace",name:"violin",basePlotModule:Si(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}})),ol=f(((t,e)=>{e.exports=al()})),sl=f(((t,e)=>{e.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}})),ll=f(((t,e)=>{var r,n=Ga(),i=Tn().line,a=j(),o=Ce().axisHoverFormat,s=Ot().hovertemplateAttrs,l=Ot().texttemplateAttrs,u=sl(),c=D().extendFlat,h=q();e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),hovertext:n.hovertext,hovertemplate:s({},{keys:u.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:l({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),text:n.text,textposition:n.textposition,insidetextanchor:c({},n.insidetextanchor,{dflt:"middle"}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:(r=c({},n.marker),delete r.pattern,delete r.cornerradius,r),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:c({},i.color,{dflt:h.defaultLine}),width:c({},i.width,{dflt:0,editType:"plot"}),dash:i.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,zorder:n.zorder}})),ul=f(((t,e)=>{e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}})),cl=f(((t,e)=>{var r=le(),n=Qn(),i=Ya().handleText,a=Hn(),o=Gn(),s=ll(),l=q();e.exports={supplyDefaults:function(t,e,n,u){function c(n,i){return r.coerce(t,e,s,n,i)}if(a(t,e,u,c)){o(t,e,u,c),c("xhoverformat"),c("yhoverformat"),c("orientation",e.y&&!e.x?"v":"h"),c("offset"),c("width");var h=c("text");c("hovertext"),c("hovertemplate");var f=c("textposition");i(t,e,u,c,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==e.textposition&&!e.texttemplate&&c("textinfo",r.isArrayOrTypedArray(h)?"text+value":"value");var p=c("marker.color",n);c("marker.line.color",l.defaultLine),c("marker.line.width"),c("connector.visible")&&(c("connector.fillcolor",function(t){var e=r.isArrayOrTypedArray(t)?"#000":t;return l.addOpacity(e,.5*l.opacity(e))}(p)),c("connector.line.width")&&(c("connector.line.color"),c("connector.line.dash"))),c("zorder")}else e.visible=!1},crossTraceDefaults:function(t,e){var i,a;function o(t){return r.coerce(a._input,a,s,t)}for(var l=0;l{var r=le(),n=ul();e.exports=function(t,e,i){var a=!1;function o(i,a){return r.coerce(t,e,n,i,a)}for(var s=0;s{var r=le();e.exports=function(t,e){for(var n=0;n{var r=ir(),n=ri(),i=fl(),a=ai(),o=k().BADNUM;function s(t){return t===o?0:t}e.exports=function(t,e){var l,u,c,h,f,p,d,m,g=r.getFromId(t,e.xaxis||"x"),y=r.getFromId(t,e.yaxis||"y");"h"===e.orientation?(l=g.makeCalcdata(e,"x"),c=y.makeCalcdata(e,"y"),h=n(e,y,"y",c),f=!!e.yperiodalignment,p="y"):(l=y.makeCalcdata(e,"y"),c=g.makeCalcdata(e,"x"),h=n(e,g,"x",c),f=!!e.xperiodalignment,p="x"),u=h.vals;var v,x=Math.min(u.length,l.length),_=new Array(x);for(e._base=[],d=0;d{var r=li().setGroupPositions;e.exports=function(t,e){var n,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,u=e.yaxis,c=[],h=[],f=[];for(i=0;i{var r=v(),n=le(),i=Qe(),a=k().BADNUM,o=eo(),s=Ka().clearMinTextSize;function l(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,u,c){var h=t._fullLayout;s("funnel",h),function(t,e,o,s){var u=e.xaxis,c=e.yaxis;n.makeTraceGroups(s,o,"trace bars").each((function(o){var s=r.select(this),h=o[0].trace,f=n.ensureSingle(s,"g","regions");if(h.connector&&h.connector.visible){var p="h"===h.orientation,d=f.selectAll("g.region").data(n.identity);d.enter().append("g").classed("region",!0),d.exit().remove();var m=d.size();d.each((function(o,s){if(s===m-1||o.cNext){var h=l(o,u,c,p),f=h[0],d=h[1],g="";f[0]!==a&&d[0]!==a&&f[1]!==a&&d[1]!==a&&f[2]!==a&&d[2]!==a&&f[3]!==a&&d[3]!==a&&(g+=p?"M"+f[0]+","+d[1]+"L"+f[2]+","+d[2]+"H"+f[3]+"L"+f[1]+","+d[1]+"Z":"M"+f[1]+","+d[1]+"L"+f[2]+","+d[3]+"V"+d[2]+"L"+f[1]+","+d[0]+"Z"),""===g&&(g="M0,0Z"),n.ensureSingle(r.select(this),"path").attr("d",g).call(i.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,u,c),function(t,e,a,o){var s=e.xaxis,u=e.yaxis;n.makeTraceGroups(o,a,"trace bars").each((function(a){var o=r.select(this),c=a[0].trace,h=n.ensureSingle(o,"g","lines");if(c.connector&&c.connector.visible&&c.connector.line.width){var f="h"===c.orientation,p=h.selectAll("g.line").data(n.identity);p.enter().append("g").classed("line",!0),p.exit().remove();var d=p.size();p.each((function(a,o){if(o===d-1||a.cNext){var c=l(a,s,u,f),h=c[0],p=c[1],m="";void 0!==h[3]&&void 0!==p[3]&&(f?(m+="M"+h[0]+","+p[1]+"L"+h[2]+","+p[2],m+="M"+h[1]+","+p[1]+"L"+h[3]+","+p[2]):(m+="M"+h[1]+","+p[1]+"L"+h[2]+","+p[3],m+="M"+h[1]+","+p[0]+"L"+h[2]+","+p[2])),""===m&&(m="M0,0Z"),n.ensureSingle(r.select(this),"path").attr("d",m).call(i.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,u,c),o.plot(t,e,u,c,{mode:h.funnelmode,norm:h.funnelmode,gap:h.funnelgap,groupgap:h.funnelgroupgap})}})),yl=f(((t,e)=>{var r=v(),n=Qe(),i=q(),a=H().DESELECTDIM,o=to(),s=Ka().resizeText,l=o.styleTextPoints;e.exports={style:function(t,e,o){var u=o||r.select(t).selectAll('g[class^="funnellayer"]').selectAll("g.trace");s(t,u,"funnel"),u.style("opacity",(function(t){return t[0].trace.opacity})),u.each((function(e){var o=r.select(this),s=e[0].trace;o.selectAll(".point > path").each((function(t){if(!t.isBlank){var e=s.marker;r.select(this).call(i.fill,t.mc||e.color).call(i.stroke,t.mlc||e.line.color).call(n.dashLine,e.line.dash,t.mlw||e.line.width).style("opacity",s.selectedpoints&&!t.selected?a:1)}})),l(o,s,t),o.selectAll(".regions").each((function(){r.select(this).selectAll("path").style("stroke-width",0).call(i.fill,s.connector.fillcolor)})),o.selectAll(".lines").each((function(){var t=s.connector.line;n.lineGroupStyle(r.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}}})),vl=f(((t,e)=>{var r=q().opacity,n=ro().hoverOnBars,i=le().formatPercent;e.exports=function(t,e,a,o,s){var l=n(t,e,a,o,s);if(l){var u=l.cd,c=u[0].trace,h="h"===c.orientation,f=u[l.index];l[(h?"x":"y")+"LabelVal"]=f.s,l.percentInitial=f.begR,l.percentInitialLabel=i(f.begR,1),l.percentPrevious=f.difR,l.percentPreviousLabel=i(f.difR,1),l.percentTotal=f.sumR,l.percentTotalLabel=i(f.sumR,1);var p=f.hi||c.hoverinfo,d=[];if(p&&"none"!==p&&"skip"!==p){var m="all"===p,g=p.split("+"),y=function(t){return m||-1!==g.indexOf(t)};y("percent initial")&&d.push(l.percentInitialLabel+" of initial"),y("percent previous")&&d.push(l.percentPreviousLabel+" of previous"),y("percent total")&&d.push(l.percentTotalLabel+" of total")}return l.extraText=d.join("
"),l.color=function(t,e){var n=t.marker,i=e.mc||n.color,a=e.mlc||n.line.color,o=e.mlw||n.line.width;return r(i)?i:r(a)&&o?a:void 0}(c,f),[l]}}})),xl=f(((t,e)=>{e.exports=function(t,e){return t.x="xVal"in e?e.xVal:e.x,t.y="yVal"in e?e.yVal:e.y,"percentInitial"in e&&(t.percentInitial=e.percentInitial),"percentPrevious"in e&&(t.percentPrevious=e.percentPrevious),"percentTotal"in e&&(t.percentTotal=e.percentTotal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t}})),_l=f(((t,e)=>{e.exports={attributes:ll(),layoutAttributes:ul(),supplyDefaults:cl().supplyDefaults,crossTraceDefaults:cl().crossTraceDefaults,supplyLayoutDefaults:hl(),calc:pl(),crossTraceCalc:dl(),plot:ml(),style:yl().style,hoverPoints:vl(),eventData:xl(),selectPoints:io(),moduleType:"trace",name:"funnel",basePlotModule:Si(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}})),bl=f(((t,e)=>{e.exports=_l()})),wl=f(((t,e)=>{e.exports={eventDataKeys:["initial","delta","final"]}})),Tl=f(((t,e)=>{var r=Ga(),n=Tn().line,i=j(),a=Ce().axisHoverFormat,o=Ot().hovertemplateAttrs,s=Ot().texttemplateAttrs,l=wl(),u=D().extendFlat,c=q();function h(t){return{marker:{color:u({},r.marker.color,{arrayOk:!1,editType:"style"}),line:{color:u({},r.marker.line.color,{arrayOk:!1,editType:"style"}),width:u({},r.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),hovertext:r.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:u({},i.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:s({editType:"plot"},{keys:l.eventDataKeys.concat(["label"])}),text:r.text,textposition:r.textposition,insidetextanchor:r.insidetextanchor,textangle:r.textangle,textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:r.orientation,offset:r.offset,width:r.width,increasing:h(),decreasing:h(),totals:h(),connector:{line:{color:u({},n.color,{dflt:c.defaultLine}),width:u({},n.width,{editType:"plot"}),dash:n.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,zorder:r.zorder}})),kl=f(((t,e)=>{e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}})),Al=f(((t,e)=>{e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}})),Ml=f(((t,e)=>{var r=le(),n=Qn(),i=Ya().handleText,a=Hn(),o=Gn(),s=Tl(),l=q(),u=Al(),c=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function f(t,e,r){t(e+".marker.color",r),t(e+".marker.line.color",l.defaultLine),t(e+".marker.line.width")}e.exports={supplyDefaults:function(t,e,n,l){function u(n,i){return r.coerce(t,e,s,n,i)}if(a(t,e,l,u)){o(t,e,l,u),u("xhoverformat"),u("yhoverformat"),u("measure"),u("orientation",e.x&&!e.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var p=u("textposition");i(t,e,l,u,p,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==e.textposition&&(u("texttemplate"),e.texttemplate||u("textinfo")),f(u,"increasing",c),f(u,"decreasing",h),f(u,"totals","#4499FF"),u("connector.visible")&&(u("connector.mode"),u("connector.line.width")&&(u("connector.line.color"),u("connector.line.dash"))),u("zorder")}else e.visible=!1},crossTraceDefaults:function(t,e){var i,a;function o(t){return r.coerce(a._input,a,s,t)}if("group"===e.waterfallmode)for(var l=0;l{var r=le(),n=kl();e.exports=function(t,e,i){var a=!1;function o(i,a){return r.coerce(t,e,n,i,a)}for(var s=0;s{var r=ir(),n=ri(),i=le().mergeArray,a=ai(),o=k().BADNUM;function s(t){return"a"===t||"absolute"===t}function l(t){return"t"===t||"total"===t}e.exports=function(t,e){var u,c,h,f,p,d,m=r.getFromId(t,e.xaxis||"x"),g=r.getFromId(t,e.yaxis||"y");"h"===e.orientation?(u=m.makeCalcdata(e,"x"),h=g.makeCalcdata(e,"y"),f=n(e,g,"y",h),p=!!e.yperiodalignment,d="y"):(u=g.makeCalcdata(e,"y"),h=m.makeCalcdata(e,"x"),f=n(e,m,"x",h),p=!!e.xperiodalignment,d="x"),c=f.vals;for(var y,v=Math.min(c.length,u.length),x=new Array(v),_=0,b=!1,w=0;w{var r=li().setGroupPositions;e.exports=function(t,e){var n,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,u=e.yaxis,c=[],h=[],f=[];for(i=0;i{var r=v(),n=le(),i=Qe(),a=k().BADNUM,o=eo(),s=Ka().clearMinTextSize;e.exports=function(t,e,l,u){var c=t._fullLayout;s("waterfall",c),o.plot(t,e,l,u,{mode:c.waterfallmode,norm:c.waterfallmode,gap:c.waterfallgap,groupgap:c.waterfallgroupgap}),function(t,e,o,s){var l=e.xaxis,u=e.yaxis;n.makeTraceGroups(s,o,"trace bars").each((function(o){var s=r.select(this),c=o[0].trace,h=n.ensureSingle(s,"g","lines");if(c.connector&&c.connector.visible){var f="h"===c.orientation,p=c.connector.mode,d=h.selectAll("g.line").data(n.identity);d.enter().append("g").classed("line",!0),d.exit().remove();var m=d.size();d.each((function(o,s){if(s===m-1||o.cNext){var c=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(o,l,u,f),h=c[0],d=c[1],g="";h[0]!==a&&d[0]!==a&&h[1]!==a&&d[1]!==a&&("spanning"===p&&!o.isSum&&s>0&&(g+=f?"M"+h[0]+","+d[1]+"V"+d[0]:"M"+h[1]+","+d[0]+"H"+h[0]),"between"!==p&&(o.isSum||s{var r=v(),n=Qe(),i=q(),a=H().DESELECTDIM,o=to(),s=Ka().resizeText,l=o.styleTextPoints;e.exports={style:function(t,e,o){var u=o||r.select(t).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");s(t,u,"waterfall"),u.style("opacity",(function(t){return t[0].trace.opacity})),u.each((function(e){var o=r.select(this),s=e[0].trace;o.selectAll(".point > path").each((function(t){if(!t.isBlank){var e=s[t.dir].marker;r.select(this).call(i.fill,e.color).call(i.stroke,e.line.color).call(n.dashLine,e.line.dash,e.line.width).style("opacity",s.selectedpoints&&!t.selected?a:1)}})),l(o,s,t),o.selectAll(".lines").each((function(){var t=s.connector.line;n.lineGroupStyle(r.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}}})),Pl=f(((t,e)=>{var r=ir().hoverLabelText,n=q().opacity,i=ro().hoverOnBars,a=Al(),o=a.INCREASING.SYMBOL,s=a.DECREASING.SYMBOL;e.exports=function(t,e,a,l,u){var c=i(t,e,a,l,u);if(c){var h=c.cd,f=h[0].trace,p="h"===f.orientation,d=p?"x":"y",m=p?t.xa:t.ya,g=h[c.index],y=g.isSum?g.b+g.s:g.rawS;c.initial=g.b+g.s-y,c.delta=y,c.final=c.initial+c.delta;var v=k(Math.abs(c.delta));c.deltaLabel=y<0?"("+v+")":v,c.finalLabel=k(c.final),c.initialLabel=k(c.initial);var x=g.hi||f.hoverinfo,_=[];if(x&&"none"!==x&&"skip"!==x){var b="all"===x,w=x.split("+"),T=function(t){return b||-1!==w.indexOf(t)};g.isSum||(T("final")&&(p?!T("x"):!T("y"))&&_.push(c.finalLabel),T("delta")&&(y<0?_.push(c.deltaLabel+" "+s):_.push(c.deltaLabel+" "+o)),T("initial")&&_.push("Initial: "+c.initialLabel))}return _.length&&(c.extraText=_.join("
")),c.color=function(t,e){var r=t[e.dir].marker,i=r.color,a=r.line.color,o=r.line.width;return n(i)?i:n(a)&&o?a:void 0}(f,g),[c]}function k(t){return r(m,t,f[d+"hoverformat"])}}})),zl=f(((t,e)=>{e.exports=function(t,e){return t.x="xVal"in e?e.xVal:e.x,t.y="yVal"in e?e.yVal:e.y,"initial"in e&&(t.initial=e.initial),"delta"in e&&(t.delta=e.delta),"final"in e&&(t.final=e.final),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t}})),Ol=f(((t,e)=>{e.exports={attributes:Tl(),layoutAttributes:kl(),supplyDefaults:Ml().supplyDefaults,crossTraceDefaults:Ml().crossTraceDefaults,supplyLayoutDefaults:Sl(),calc:El(),crossTraceCalc:Cl(),plot:Il(),style:Ll().style,hoverPoints:Pl(),eventData:zl(),selectPoints:io(),moduleType:"trace",name:"waterfall",basePlotModule:Si(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}})),Dl=f(((t,e)=>{e.exports=Ol()})),Rl=f(((t,e)=>{e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+"%",e[2]=e[2]+"%",e},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+"%",e[2]=e[2]+"%",e},suffix:["°","%","%",""]}}}})),Fl=f(((t,e)=>{var r,n,i=j(),a=Tn().zorder,o=Ot().hovertemplateAttrs,s=D().extendFlat,l=Rl().colormodel,u=["rgb","rgba","rgba256","hsl","hsla"],c=[],h=[];for(n=0;n{var r=le(),n=Fl(),i=Rl(),a=Dn().IMAGE_URL_PREFIX;e.exports=function(t,e){function o(i,a){return r.coerce(t,e,n,i,a)}o("source"),e.source&&!e.source.match(a)&&delete e.source,e._hasSource=!!e.source;var s,l=o("z");e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource?(o("x0"),o("y0"),o("dx"),o("dy"),e._hasZ?(o("colormodel","rgb"),o("zmin",(s=i.colormodel[e.colormodel]).zminDflt||s.min),o("zmax",s.zmaxDflt||s.max)):e._hasSource&&(e.colormodel="rgba256",s=i.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),o("zsmooth"),o("text"),o("hovertext"),o("hovertemplate"),e._length=null,o("zorder")):e.visible=!1}})),Nl=f(((t,e)=>{"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),jl=f(((t,e)=>{e.exports=fe().EventEmitter})),Ul=f((t=>{t.byteLength=function(t){var e=o(t),r=e[0],n=e[1];return 3*(r+n)/4-n},t.toByteArray=function(t){var e,r,a=o(t),s=a[0],l=a[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,l)),c=0,h=l>0?s-4:s;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===l&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===l&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},t.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));return 1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")};var e,r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e=0;e<64;++e)r[e]=a[e],n[a.charCodeAt(e)]=e;function o(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function s(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function l(t,e,r){for(var n,i=[],a=e;a{t.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)},t.write=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*m}})),ql=f((t=>{var e=Ul(),r=Vl(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},t.INSPECT_MAX_BYTES=50;var i=2147483647;function a(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=0|p(t,e),n=a(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(W(t,Uint8Array)){let e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return o.from(n,e,r);let i=function(t){if(o.isBuffer(t)){let e=0|f(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||Y(t.length)?a(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return l(t),a(t<0?0:0|f(t))}function c(t){let e=t.length<0?0:0|f(t.length),r=a(e);for(let n=0;n=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function p(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(i)return n?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){let a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let n=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){let r=!0;for(let n=0;ni&&(n=i):n=i;let a,o=e.length;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function T(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function k(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+o<=r){let r,n,s,l;switch(o){case 1:e<128&&(a=e);break;case 2:r=t[i+1],128==(192&r)&&(l=(31&e)<<6|63&r,l>127&&(a=l));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(l=(15&e)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=o}return function(t){let e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(e+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(t,e,r,n,i){if(W(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),l=Math.min(a,s),u=this.slice(n,i),c=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}let i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":case"latin1":case"binary":return _(this,t,e,r);case"base64":return b(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function M(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function P(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function z(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a>>=8,t[r+6]=a,a>>=8,t[r+5]=a,a>>=8,t[r+4]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,n,i,a){return e=+e,n>>>=0,a||O(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function R(t,e,n,i,a){return e=+e,n>>>=0,a||O(t,0,n,8),r.write(t,e,n,i,52,8),n+8}o.prototype.slice=function(t,e){let r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||I(t,e,this.length);let n=this[t],i=1,a=0;for(;++a>>=0,e>>>=0,r||I(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=$((function(t){U(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&V(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&V(t,this.length-8);let n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||I(t,e,this.length);let n=this[t],i=1,a=0;for(;++a=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||I(t,e,this.length);let n=e,i=1,a=this[t+--n];for(;n>0&&(i*=256);)a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},o.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=$((function(t){U(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&V(t,this.length-8);let n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&V(t,this.length-8);let n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||I(t,4,this.length),r.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),r.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),r.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),r.read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||L(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n||L(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=$((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=$((function(t,e=0){return z(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);L(this,t,e,r,n-1,-n)}let i=0,a=1,o=0;for(this[e]=255&t;++i>>=0,!n){let n=Math.pow(2,8*r-1);L(this,t,e,r,n-1,-n)}let i=r-1,a=1,o=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/a|0)-o&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=$((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=$((function(t,e=0){return z(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&0!==n&&(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function j(t,e,r,n,i,a){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(a+1)}${i}`:`>= -(2${i} ** ${8*(a+1)-1}${i}) and < 2 ** ${8*(a+1)-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new F.ERR_OUT_OF_RANGE("value",n,t)}!function(t,e,r){U(e,"offset"),(void 0===t[e]||void 0===t[e+r])&&V(e,t.length-(r+1))}(n,i,a)}function U(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,r){throw Math.floor(t)!==t?(U(t,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);var q=/[^+/0-9A-Za-z-_]/g;function H(t,e){e=e||1/0;let r,n=t.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function G(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function W(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}var X=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function $(t){return"undefined"==typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}})),Hl=f(((t,e)=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}})),Gl=f(((t,e)=>{var r=Hl();e.exports=function(){return r()&&!!Symbol.toStringTag}})),Zl=f(((t,e)=>{e.exports=Error})),Wl=f(((t,e)=>{e.exports=EvalError})),Yl=f(((t,e)=>{e.exports=RangeError})),Xl=f(((t,e)=>{e.exports=ReferenceError})),$l=f(((t,e)=>{e.exports=SyntaxError})),Jl=f(((t,e)=>{e.exports=TypeError})),Kl=f(((t,e)=>{e.exports=URIError})),Ql=f(((t,e)=>{var r="undefined"!=typeof Symbol&&Symbol,n=Hl();e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}})),tu=f(((t,e)=>{var r={foo:{}},n=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof n)}})),eu=f(((t,e)=>{var r=Object.prototype.toString,n=Math.max,i=function(t,e){for(var r=[],n=0;n{var r=eu();e.exports=Function.prototype.bind||r})),nu=f(((t,e)=>{var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=ru();e.exports=i.call(r,n)})),iu=f(((t,e)=>{var r,n=Zl(),i=Wl(),a=Yl(),o=Xl(),s=$l(),l=Jl(),u=Kl(),c=Function,h=function(t){try{return c('"use strict"; return ('+t+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(t){f=null}var p=function(){throw new l},d=f?function(){try{return p}catch(t){try{return f(arguments,"callee").get}catch(t){return p}}}():p,m=Ql()(),g=tu()(),y=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},x="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":d,"%TypedArray%":x,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(t){b=y(y(t)),_["%Error.prototype%"]=b}var b,w=function t(e){var r;if("%AsyncFunction%"===e)r=h("async function () {}");else if("%GeneratorFunction%"===e)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=h("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&y&&(r=y(i.prototype))}return _[e]=r,r},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=ru(),A=nu(),M=k.call(Function.call,Array.prototype.concat),S=k.call(Function.apply,Array.prototype.splice),E=k.call(Function.call,String.prototype.replace),C=k.call(Function.call,String.prototype.slice),I=k.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,z=function(t,e){var r,n=t;if(A(T,n)&&(n="%"+(r=T[n])[0]+"%"),A(_,n)){var i=_[n];if(i===v&&(i=w(n)),void 0===i&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+t+" does not exist!")};e.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=C(t,0,1),r=C(t,-1);if("%"===e&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return E(t,L,(function(t,e,r,i){n[n.length]=r?E(i,P,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=z("%"+n+"%",e),a=i.name,o=i.value,u=!1,c=i.alias;c&&(n=c[0],S(r,M([0,1],c)));for(var h=1,p=!0;h=r.length){var y=f(o,d);o=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:o[d]}else p=A(o,d),o=o[d];p&&!u&&(_[a]=o)}}return o}})),au=f(((t,e)=>{var r=iu()("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}e.exports=r})),ou=f(((t,e)=>{var r=iu()("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}e.exports=r})),su=f(((t,e)=>{var r=au(),n=$l(),i=Jl(),a=ou();e.exports=function(t,e,o){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(r)r(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===s&&h?h.enumerable:!s,value:o,writable:null===l&&h?h.writable:!l});else{if(!c&&(s||l||u))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=o}}})),lu=f(((t,e)=>{var r=au(),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},e.exports=n})),uu=f(((t,e)=>{var r=iu(),n=su(),i=lu()(),a=ou(),o=Jl(),s=r("%Math.floor%");e.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||s(e)!==e)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],l=!0,u=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(l=!1),c&&!c.writable&&(u=!1)}return(l||u||!r)&&(i?n(t,"length",e,!0,!0):n(t,"length",e)),t}})),cu=f(((t,e)=>{var r=ru(),n=iu(),i=uu(),a=Jl(),o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||r.call(s,o),u=au(),c=n("%Math.max%");e.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=l(r,s,arguments);return i(e,1+c(0,t.length-(arguments.length-1)),!0)};var h=function(){return l(r,o,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})),hu=f(((t,e)=>{var r=iu(),n=cu(),i=n(r("String.prototype.indexOf"));e.exports=function(t,e){var a=r(t,!!e);return"function"==typeof a&&i(t,".prototype.")>-1?n(a):a}})),fu=f(((t,e)=>{var r=Gl()(),n=hu()("Object.prototype.toString"),i=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===n(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==n(t)&&"[object Function]"===n(t.callee)},o=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=o?i:a})),pu=f(((t,e)=>{var r,n=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,o=Gl()(),s=Object.getPrototypeOf;e.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!o)return"[object GeneratorFunction]"===n.call(t);if(!s)return!1;if(void 0===r){var e=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(t){}}();r=!!e&&s(e)}return s(t)===r}})),du=f(((t,e)=>{var r,n,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a((function(){throw 42}),null,r)}catch(t){t!==n&&(a=null)}else a=null;var o,s=/^\s*class\b/,l=function(t){try{var e=i.call(t);return s.test(e)}catch(t){return!1}},u=function(t){try{return!l(t)&&(i.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),p=function(){return!1};"object"==typeof document&&(o=document.all,c.call(o)===c.call(document.all)&&(p=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})),e.exports=a?function(t){if(p(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,r)}catch(t){if(t!==n)return!1}return!l(t)&&u(t)}:function(t){if(p(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(h)return u(t);if(l(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}})),mu=f(((t,e)=>{var r=du(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(t,e,a){if(!r(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=a),"[object Array]"===n.call(t)?function(t,e,r){for(var n=0,a=t.length;n{var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"==typeof globalThis?window:globalThis;e.exports=function(){for(var t=[],e=0;e{var r=mu(),n=gu(),i=cu(),a=hu(),o=ou(),s=a("Object.prototype.toString"),l=Gl()(),u="undefined"==typeof globalThis?window:globalThis,c=n(),h=a("String.prototype.slice"),f=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return r(d,(function(r,n){if(!e)try{r(t),e=h(n,1)}catch(t){}})),e}(t)}return o?function(t){var e=!1;return r(d,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(t){}})),e}(t):null}})),vu=f(((t,e)=>{var r=mu(),n=gu(),i=hu(),a=i("Object.prototype.toString"),o=Gl()(),s=ou(),l="undefined"==typeof globalThis?window:globalThis,u=n(),c=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1}return!!s&&function(t){var e=!1;return r(f,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}})),xu=f((t=>{var e=fu(),r=pu(),n=yu(),i=vu();function a(t){return t.call.bind(t)}var o,s,l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);function d(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===c(t)}function g(t){return"[object Set]"===c(t)}function y(t){return"[object WeakMap]"===c(t)}function v(t){return"[object WeakSet]"===c(t)}function x(t){return"[object ArrayBuffer]"===c(t)}function _(t){return"undefined"!=typeof ArrayBuffer&&(x.working?x(t):t instanceof ArrayBuffer)}function b(t){return"[object DataView]"===c(t)}function w(t){return"undefined"!=typeof DataView&&(b.working?b(t):t instanceof DataView)}l&&(o=a(BigInt.prototype.valueOf)),u&&(s=a(Symbol.prototype.valueOf)),t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=i,t.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},t.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):i(t)||w(t)},t.isUint8Array=function(t){return"Uint8Array"===n(t)},t.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===n(t)},t.isUint16Array=function(t){return"Uint16Array"===n(t)},t.isUint32Array=function(t){return"Uint32Array"===n(t)},t.isInt8Array=function(t){return"Int8Array"===n(t)},t.isInt16Array=function(t){return"Int16Array"===n(t)},t.isInt32Array=function(t){return"Int32Array"===n(t)},t.isFloat32Array=function(t){return"Float32Array"===n(t)},t.isFloat64Array=function(t){return"Float64Array"===n(t)},t.isBigInt64Array=function(t){return"BigInt64Array"===n(t)},t.isBigUint64Array=function(t){return"BigUint64Array"===n(t)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(t){return"undefined"!=typeof Set&&(g.working?g(t):t instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(y.working?y(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(t){return v(t)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=_,b.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&b(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=w;var T="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return void 0!==T&&(void 0===k.working&&(k.working=k(new T)),k.working?k(t):t instanceof T)}function M(t){return d(t,h)}function S(t){return d(t,f)}function E(t){return d(t,p)}function C(t){return l&&d(t,o)}function I(t){return u&&d(t,s)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},t.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},t.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},t.isGeneratorObject=function(t){return"[object Generator]"===c(t)},t.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},t.isNumberObject=M,t.isStringObject=S,t.isBooleanObject=E,t.isBigIntObject=C,t.isSymbolObject=I,t.isBoxedPrimitive=function(t){return M(t)||S(t)||E(t)||C(t)||I(t)},t.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(_(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))})),_u=f(((t,e)=>{e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}})),bu=f((t=>{var e=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=a)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),l=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,e,n.depth)}function s(t,e){var r=o.styles[e];return r?"["+o.colors[r][0]+"m"+t+"["+o.colors[r][1]+"m":t}function l(t,e){return t}function u(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var a=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):d(e)?t.stylize("null","null"):void 0}(e,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),b(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(r);if(0===o.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(b(r))return c(r)}var x,T="",k=!1,A=["{","}"];return f(r)&&(k=!0,A=["[","]"]),w(r)&&(T=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(T=" "+RegExp.prototype.toString.call(r)),_(r)&&(T=" "+Date.prototype.toUTCString.call(r)),b(r)&&(T=" "+c(r)),0!==o.length||k&&0!=r.length?n<0?v(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),x=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(x,T,A)):A[0]+T+A[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),M(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=d(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function y(t){return void 0===t}function v(t){return x(t)&&"[object RegExp]"===T(t)}function x(t){return"object"==typeof t&&null!==t}function _(t){return x(t)&&"[object Date]"===T(t)}function b(t){return x(t)&&("[object Error]"===T(t)||t instanceof Error)}function w(t){return"function"==typeof t}function T(t){return Object.prototype.toString.call(t)}function k(t){return t<10?"0"+t.toString(10):t.toString(10)}n=(n="false").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i"),t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(a.test(e)){var r=process.pid;i[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=xu(),t.isArray=f,t.isBoolean=p,t.isNull=d,t.isNullOrUndefined=function(t){return null==t},t.isNumber=m,t.isString=g,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=y,t.isRegExp=v,t.types.isRegExp=v,t.isObject=x,t.isDate=_,t.types.isDate=_,t.isError=b,t.types.isNativeError=b,t.isFunction=w,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=_u();var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){var e,r;console.log("%s - %s",(r=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=Nl(),t._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var S="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}t.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(S&&t[S]){var r;if("function"!=typeof(r=t[S]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,S,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],a=0;a{function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),r=this.head,n=0;r;)l(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:s,value:function(t,e){return o(this,function(t){for(var e=1;e{function r(t,e){i(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var a=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,t)):process.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?a._writableState?a._writableState.errorEmitted?process.nextTick(n,a):(a._writableState.errorEmitted=!0,process.nextTick(r,a,t)):process.nextTick(r,a,t):e?(process.nextTick(n,a),e(t)):process.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}})),ku=f(((t,e)=>{var r={};function n(t,e,n){n||(n=Error);var i=function(t){function r(r,n,i){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i))||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(r,t),r}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function i(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,a;if("string"==typeof e&&function(t,e){return t.substr(0,4)===e}(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(n," ").concat(i(e,"type"));else{var o=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+1>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";a='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(i(e,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r})),Au=f(((t,e)=>{var r=ku().codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,n,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}}})),Mu=f(((t,e)=>{function r(t){try{if(!window.localStorage)return!1}catch(t){return!1}var e=window.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}e.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}})),Su=f(((t,e)=>{function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var n;e.exports=T,T.WritableState=w;var i,a={deprecate:Mu()},o=jl(),s=ql().Buffer,l=window.Uint8Array||function(){},u=Tu(),c=Au().getHighWaterMark,h=ku().codes,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,d=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,v=h.ERR_STREAM_WRITE_AFTER_END,x=h.ERR_UNKNOWN_ENCODING,_=u.errorOrDestroy;function b(){}function w(t,e,i){n=n||Eu(),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=c(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new d;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(C,t,e),t._writableState.errorEmitted=!0,_(t,n)):(i(n),t._writableState.errorEmitted=!0,_(t,n),C(t,e))}(t,r,n,e,i);else{var a=S(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&M(t,r),n?process.nextTick(A,t,r,a,i):A(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function T(t){var e=this instanceof(n=n||Eu());if(!e&&!i.call(T,this))return new T(t);this._writableState=new w(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function k(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),C(t,e)}function M(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),o=e.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,k(t,e,!0,e.length,a,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,h=n.callback;if(k(t,e,!1,e.objectMode?1:u.length,u,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&_(t,r),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var r=S(e);if(r&&(function(t,e){!e.prefinished&&!e.finalCalled&&("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(E,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}Nl()(T,o),w.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(w.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(t){return!!i.call(this,t)||this===T&&t&&t._writableState instanceof w}})):i=function(t){return t instanceof this},T.prototype.pipe=function(){_(this,new m)},T.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&function(t){return s.isBuffer(t)||t instanceof l}(t);return a&&!s.isBuffer(t)&&(t=function(t){return s.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=b),n.ending?function(t,e){var r=new v;_(t,r),process.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var i;return null===r?i=new y:"string"!=typeof r&&!e.objectMode&&(i=new f("chunk",["string","Buffer"],r)),!i||(_(t,i),process.nextTick(n,i),!1)}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){return!t.objectMode&&!1!==t.decodeStrings&&"string"==typeof e&&(e=s.from(e,r)),e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var l=e.objectMode?1:n.length;e.length+=l;var u=e.length-1))throw new x(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,r){r(new p("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,C(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(t,e){e(t)}})),Eu=f(((t,e)=>{var r=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=l;var n,i,a,o=Ou(),s=Su();for(Nl()(l,o),n=r(s.prototype),a=0;a{var r=ql(),n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(n.prototype),i(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}})),Iu=f((t=>{var e=Cu().Buffer,r=e.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(t){var n;switch(this.encoding=function(t){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof n&&(e.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return n||t}(t),this.encoding){case"utf16le":this.text=o,this.end=s,n=4;break;case"utf8":this.fillLast=a,n=4;break;case"base64":this.text=l,this.end=u,n=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(n)}function i(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function o(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}t.StringDecoder=n,n.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(2===a?a=0:t.lastNeed=a-3),a):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},n.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}})),Lu=f(((t,e)=>{var r=ku().codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function t(e,i,a){if("function"==typeof i)return t(e,null,i);i||(i={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i{var r;function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=Lu(),a=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),c=Symbol("handlePromise"),h=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var r=t[h].read();null!==r&&(t[u]=null,t[a]=null,t[o]=null,e(f(r,!1)))}}function d(t){process.nextTick(p,t)}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var t=this,e=this[s];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[s]?r(t[s]):e(f(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[l]?r(f(void 0,!0)):e[c](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(f(i,!1));r=new Promise(this[c])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(f(void 0,!0))}))}))})),r),m);e.exports=function(t){var e,r=Object.create(g,(n(e={},h,{value:t,writable:!0}),n(e,a,{value:null,writable:!0}),n(e,o,{value:null,writable:!0}),n(e,s,{value:null,writable:!0}),n(e,l,{value:t._readableState.endEmitted,writable:!0}),n(e,c,{value:function(t,e){var n=r[h].read();n?(r[u]=null,r[a]=null,r[o]=null,t(f(n,!1))):(r[a]=t,r[o]=e)},writable:!0}),e));return r[u]=null,i(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[o];return null!==e&&(r[u]=null,r[a]=null,r[o]=null,e(t)),void(r[s]=t)}var n=r[a];null!==n&&(r[u]=null,r[a]=null,r[o]=null,n(f(void 0,!0))),r[l]=!0})),t.on("readable",d.bind(null,r)),r}})),zu=f(((t,e)=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}})),Ou=f(((t,e)=>{var r;e.exports=T,T.ReadableState=w,fe().EventEmitter;var n,i=function(t,e){return t.listeners(e).length},a=jl(),o=ql().Buffer,s=window.Uint8Array||function(){},l=bu();n=l&&l.debuglog?l.debuglog("stream"):function(){};var u,c,h,f=wu(),p=Tu(),d=Au().getHighWaterMark,m=ku().codes,g=m.ERR_INVALID_ARG_TYPE,y=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,x=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Nl()(T,a);var _=p.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,e,n){r=r||Eu(),t=t||{},"boolean"!=typeof n&&(n=e instanceof r),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=d(this,t,"readableHighWaterMark",n),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(u||(u=Iu().StringDecoder),this.decoder=new u(t.encoding),this.encoding=t.encoding)}function T(t){if(r=r||Eu(),!(this instanceof T))return new T(t);var e=this instanceof r;this._readableState=new w(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function k(t,e,r,i,a){n("readableAddChunk",e);var l,u=t._readableState;if(null===e)u.reading=!1,function(t,e){if(n("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?E(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,C(t)))}}(t,u);else if(a||(l=function(t,e){var r;return!function(t){return o.isBuffer(t)||t instanceof s}(e)&&"string"!=typeof e&&void 0!==e&&!t.objectMode&&(r=new g("chunk",["string","Buffer","Uint8Array"],e)),r}(u,e)),l)_(t,l);else if(u.objectMode||e&&e.length>0)if("string"!=typeof e&&!u.objectMode&&Object.getPrototypeOf(e)!==o.prototype&&(e=function(t){return o.from(t)}(e)),i)u.endEmitted?_(t,new x):A(t,u,e,!0);else if(u.ended)_(t,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?A(t,u,e,!1):I(t,u)):A(t,u,e,!1)}else i||(u.reading=!1,I(t,u));return!u.ended&&(u.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;n("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(n("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(C,t))}function C(t){var e=t._readableState;n("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function I(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(L,t,e))}function L(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){n("readable nexttick read 0"),t.read(0)}function O(t,e){n("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(n("flow",e.flowing);e.flowing&&null!==t.read(););}function R(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function F(t){var e=t._readableState;n("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(B,e,t))}function B(t,e){if(n("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function N(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return n("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):E(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&F(this),null;var i,a=e.needReadable;return n("need readable",a),(0===e.length||e.length-t0?R(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==i&&this.emit("data",i),i},T.prototype._read=function(t){_(this,new v("_read()"))},T.prototype.pipe=function(t,e){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,n("pipe count=%d opts=%j",a.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?d:s;function s(){n("onend"),t.end()}a.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",(function e(i,o){n("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,n("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",s),r.removeListener("end",d),r.removeListener("data",c),u=!0,a.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l())}));var l=function(t){return function(){var e=t._readableState;n("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,D(t))}}(r);t.on("drain",l);var u=!1;function c(e){n("ondata");var i=t.write(e);n("dest.write",i),!1===i&&((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==N(a.pipes,t))&&!u&&(n("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(e){n("onerror",e),d(),t.removeListener("error",h),0===i(t,"error")&&_(t,e)}function f(){t.removeListener("finish",p),d()}function p(){n("onfinish"),t.removeListener("close",f),d()}function d(){n("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",f),t.once("finish",p),t.emit("pipe",r),a.flowing||(n("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"===t&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,n("on readable",i.length,i.reading),i.length?E(this):i.reading||process.nextTick(z,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(P,this),r},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&process.nextTick(P,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(n("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(O,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;for(var a in t.on("end",(function(){if(n("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(a){n("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a||!(r.objectMode||a&&a.length)||e.push(a)||(i=!0,t.pause())})),t)void 0===this[a]&&"function"==typeof t[a]&&(this[a]=function(e){return function(){return t[e].apply(t,arguments)}}(a));for(var o=0;o{e.exports=u;var r=ku().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,s=Eu();function l(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{e.exports=n;var r=Du();function n(t){if(!(this instanceof n))return new n(t);r.call(this,t)}Nl()(n,r),n.prototype._transform=function(t,e,r){r(null,t)}})),Fu=f(((t,e)=>{var r,n=ku().codes,i=n.ERR_MISSING_ARGS,a=n.ERR_STREAM_DESTROYED;function o(t){if(t)throw t}function s(t){t()}function l(t,e){return t.pipe(e)}e.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n0,(function(t){c||(c=t),t&&h.forEach(s),!i&&(h.forEach(s),u(c))}))}));return e.reduce(l)}})),Bu=f(((t,e)=>{e.exports=n;var r=fe().EventEmitter;function n(){r.call(this)}Nl()(n,r),n.Readable=Ou(),n.Writable=Su(),n.Duplex=Eu(),n.Transform=Du(),n.PassThrough=Ru(),n.finished=Lu(),n.pipeline=Fu(),n.Stream=n,n.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",a),!t._isStdio&&(!e||!1!==e.end)&&(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}})),Nu=f((t=>{var e=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=a)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),l=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,e,n.depth)}function s(t,e){var r=o.styles[e];return r?"["+o.colors[r][0]+"m"+t+"["+o.colors[r][1]+"m":t}function l(t,e){return t}function u(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var a=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):d(e)?t.stylize("null","null"):void 0}(e,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),b(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(r);if(0===o.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(b(r))return c(r)}var x,T="",k=!1,A=["{","}"];return f(r)&&(k=!0,A=["[","]"]),w(r)&&(T=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(T=" "+RegExp.prototype.toString.call(r)),_(r)&&(T=" "+Date.prototype.toUTCString.call(r)),b(r)&&(T=" "+c(r)),0!==o.length||k&&0!=r.length?n<0?v(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),x=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(x,T,A)):A[0]+T+A[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),M(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=d(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function y(t){return void 0===t}function v(t){return x(t)&&"[object RegExp]"===T(t)}function x(t){return"object"==typeof t&&null!==t}function _(t){return x(t)&&"[object Date]"===T(t)}function b(t){return x(t)&&("[object Error]"===T(t)||t instanceof Error)}function w(t){return"function"==typeof t}function T(t){return Object.prototype.toString.call(t)}function k(t){return t<10?"0"+t.toString(10):t.toString(10)}n=(n="false").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i"),t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(a.test(e)){var r=process.pid;i[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=xu(),t.isArray=f,t.isBoolean=p,t.isNull=d,t.isNullOrUndefined=function(t){return null==t},t.isNumber=m,t.isString=g,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=y,t.isRegExp=v,t.types.isRegExp=v,t.isObject=x,t.isDate=_,t.types.isDate=_,t.isError=b,t.types.isNativeError=b,t.isFunction=w,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=_u();var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){var e,r;console.log("%s - %s",(r=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=Nl(),t._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var S="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}t.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(S&&t[S]){var r;if("function"!=typeof(r=t[S]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,S,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],a=0;a{function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a,o,s={};function l(t,e,a){a||(a=Error);var o=function(a){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)}(s,a);var o=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}(s);function s(r,n,i){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a=o.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i)),a.code=t,a}return function(t){return Object.defineProperty(t,"prototype",{writable:!1}),t}(s)}(a);s[t]=o}function u(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o;if(void 0===a&&(a=nc()),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&function(t,e){return t.substr(0,4)===e}(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(u(e,"type"));else{var s=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+1>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";o='The "'.concat(t,'" ').concat(s," ").concat(i," ").concat(u(e,"type"))}return o+". Received type ".concat(r(n))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=Nu());var n=o.inspect(e);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(n)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r0,"At least one arg needs to be specified");var n="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:n+="".concat(e[0]," argument");break;case 2:n+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:n+=e.slice(0,i-1).join(", "),n+=", and ".concat(e[i-1]," arguments")}return"".concat(n," must be specified")}),TypeError),e.exports.codes=s})),Uu=f(((t,e)=>{function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;et.length)&&(r=t.length),t.substring(r-e.length,r)===e}var v="",x="",_="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function T(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function k(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var r=function(t){var e=h();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}(i);function i(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),"object"!==d(t)||null===t)throw new g("options","Object",t);var n=t.message,a=t.operator,o=t.stackStartFn,u=t.actual,c=t.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)e=r.call(this,String(n));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(v="",x="",b="",_=""):(v="",x="",b="",_="")),"object"===d(u)&&null!==u&&"object"===d(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=T(u),c=T(c)),"deepStrictEqual"===a||"strictEqual"===a)e=r.call(this,function(t,e,r){var n="",i="",a=0,o="",s=!1,l=k(t),u=l.split("\n"),c=k(e).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===d(t)&&"object"===d(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===u.length&&1===c.length&&u[0]!==c[0]){var p=u[0].length+c[0].length;if(p<=10){if(!("object"===d(t)&&null!==t||"object"===d(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(u[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==r&&p<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][h]===c[0][h];)h++;h>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",h),"^"),h=0)}}for(var m=u[u.length-1],g=c[c.length-1];m===g&&(h++<2?o="\n ".concat(m).concat(o):n=m,u.pop(),c.pop(),0!==u.length&&0!==c.length);)m=u[u.length-1],g=c[c.length-1];var T=Math.max(u.length,c.length);if(0===T){var A=l.split("\n");if(A.length>30)for(A[26]="".concat(v,"...").concat(b);A.length>27;)A.pop();return"".concat(w.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(o="\n".concat(v,"...").concat(b).concat(o),s=!0),""!==n&&(o="\n ".concat(n).concat(o),n="");var M=0,S=w[r]+"\n".concat(x,"+ actual").concat(b," ").concat(_,"- expected").concat(b),E=" ".concat(v,"...").concat(b," Lines skipped");for(h=0;h1&&h>2&&(C>4?(i+="\n".concat(v,"...").concat(b),s=!0):C>3&&(i+="\n ".concat(c[h-2]),M++),i+="\n ".concat(c[h-1]),M++),a=h,n+="\n".concat(_,"-").concat(b," ").concat(c[h]),M++;else if(c.length1&&h>2&&(C>4?(i+="\n".concat(v,"...").concat(b),s=!0):C>3&&(i+="\n ".concat(u[h-2]),M++),i+="\n ".concat(u[h-1]),M++),a=h,i+="\n".concat(x,"+").concat(b," ").concat(u[h]),M++;else{var I=c[h],L=u[h],P=L!==I&&(!y(L,",")||L.slice(0,-1)!==I);P&&y(I,",")&&I.slice(0,-1)===L&&(P=!1,L+=","),P?(C>1&&h>2&&(C>4?(i+="\n".concat(v,"...").concat(b),s=!0):C>3&&(i+="\n ".concat(u[h-2]),M++),i+="\n ".concat(u[h-1]),M++),a=h,i+="\n".concat(x,"+").concat(b," ").concat(L),n+="\n".concat(_,"-").concat(b," ").concat(I),M+=2):(i+=n,n="",(1===C||0===h)&&(i+="\n ".concat(L),M++))}if(M>20&&h30)for(p[26]="".concat(v,"...").concat(b);p.length>27;)p.pop();e=1===p.length?r.call(this,"".concat(f," ").concat(p[0])):r.call(this,"".concat(f,"\n\n").concat(p.join("\n"),"\n"))}else{var m=k(u),A="",M=w[a];"notDeepEqual"===a||"notEqual"===a?(m="".concat(w[a],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(A="".concat(k(c)),m.length>512&&(m="".concat(m.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?m="".concat(M,"\n\n").concat(m,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),e=r.call(this,"".concat(m).concat(A))}return Error.stackTraceLimit=h,e.generatedMessage=!n,Object.defineProperty(l(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=u,e.expected=c,e.operator=a,Error.captureStackTrace&&Error.captureStackTrace(l(e),o),e.stack,e.name="AssertionError",s(e)}return function(t,e){e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return m(this,n(n({},e),{},{customInspect:!1,depth:0}))}}]),i}(u(Error),m.custom);e.exports=A})),Vu=f(((t,e)=>{var r=Object.prototype.toString;e.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}})),qu=f(((t,e)=>{var r,n,i,a,o,s,l,u,c,h,f,p;Object.keys||(n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Vu(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),l=o.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!f)return c(t);try{return c(t)}catch(t){return!1}},r=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),o=a(t),c=e&&"[object String]"===i.call(t),h=[];if(!e&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var f=l&&r;if(c&&t.length>0&&!n.call(t,0))for(var d=0;d0)for(var m=0;m{var r=Array.prototype.slice,n=Vu(),i=Object.keys,a=i?function(t){return i(t)}:qu(),o=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return n(t)?o(r.call(t)):o(t)})}else Object.keys=a;return Object.keys||a},e.exports=a})),Gu=f(((t,e)=>{var r=Hu(),n=Hl()(),i=hu(),a=Object,o=i("Array.prototype.push"),s=i("Object.prototype.propertyIsEnumerable"),l=n?Object.getOwnPropertySymbols:null;e.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var i=a(t);if(1===arguments.length)return i;for(var u=1;u{var r=Gu();e.exports=function(){return!Object.assign||function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{var r=function(t){return t!=t};e.exports=function(t,e){return 0===t&&0===e?1/t==1/e:!!(t===e||r(t)&&r(e))}})),Yu=f(((t,e)=>{var r=Wu();e.exports=function(){return"function"==typeof Object.is?Object.is:r}})),Xu=f(((t,e)=>{var r=Hu(),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,o=Object.defineProperty,s=lu()(),l=o&&s,u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if(!function(t){return"function"==typeof t&&"[object Function]"===i.call(t)}(n)||!n())return;l?o(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r},c=function(t,e){var i=arguments.length>2?arguments[2]:{},o=r(e);n&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s{var r=Yu(),n=Xu();e.exports=function(){var t=r();return n(Object,{is:t},{is:function(){return Object.is!==t}}),t}})),Ju=f(((t,e)=>{var r=Xu(),n=cu(),i=Wu(),a=Yu(),o=$u(),s=n(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:o}),e.exports=s})),Ku=f(((t,e)=>{e.exports=function(t){return t!=t}})),Qu=f(((t,e)=>{var r=Ku();e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}})),tc=f(((t,e)=>{var r=Xu(),n=Qu();e.exports=function(){var t=n();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}})),ec=f(((t,e)=>{var r=cu(),n=Xu(),i=Ku(),a=Qu(),o=tc(),s=r(a(),Number);n(s,{getPolyfill:a,implementation:i,shim:o}),e.exports=s})),rc=f(((t,e)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function P(t){return Object.keys(t).filter(L).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function z(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i{function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,i,a=ju().codes,o=a.ERR_AMBIGUOUS_ARGUMENT,s=a.ERR_INVALID_ARG_TYPE,l=a.ERR_INVALID_ARG_VALUE,u=a.ERR_INVALID_RETURN_VALUE,c=a.ERR_MISSING_ARGS,h=Uu(),f=Nu().inspect,p=Nu().types,d=p.isPromise,m=p.isRegExp,g=Zu()(),y=Yu()(),v=hu()("RegExp.prototype.test");function x(){var t=rc();n=t.isDeepEqual,i=t.isDeepStrictEqual}var _=!1,b=e.exports=A,w={};function T(t){throw t.message instanceof Error?t.message:new h(t)}function k(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw a.generatedMessage=i,a}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var r=1e3,n=6e4,i=60*n,a=24*i;function o(t,e,r){if(!(t0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var o=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return o*a;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(t);if("number"===s&&!1===isNaN(t))return e.long?function(t){return o(t,a,"day")||o(t,i,"hour")||o(t,n,"minute")||o(t,r,"second")||t+" ms"}(t):function(t){return t>=a?Math.round(t/a)+"d":t>=i?Math.round(t/i)+"h":t>=n?Math.round(t/n)+"m":t>=r?Math.round(t/r)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}})),ac=f(((t,e)=>{var r;function n(e){function n(){if(n.enabled){var e=n,i=+new Date,a=i-(r||i);e.diff=a,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s{function r(){var e;try{e=t.storage.debug}catch(t){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=ac()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(a=i))})),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(t){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(r())})),sc=f(((t,e)=>{var r=nc(),n=oc()("stream-parser");e.exports=function(t){var e=t&&"function"==typeof t._transform,r=t&&"function"==typeof t._write;if(!e&&!r)throw new Error("must pass a Writable or Transform stream in");n("extending Parser into stream"),t._bytes=u,t._skipBytes=c,e&&(t._passthrough=h),e?t._transform=p:t._write=f};var i=-1,a=0,o=1,s=2;function l(t){n("initializing parser stream"),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=i,t._parserCallback=null,"function"==typeof t.push&&(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function u(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(isFinite(t)&&t>0,'can only buffer a finite number of bytes > 0, got "'+t+'"'),this._parserInit||l(this),n("buffering %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=a}function c(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(t>0,'can only skip > 0 bytes, got "'+t+'"'),this._parserInit||l(this),n("skipping %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=o}function h(t,e){r(!this._parserCallback,'There is already a "callback" set!'),r(t>0,'can only pass through > 0 bytes, got "'+t+'"'),this._parserInit||l(this),n("passing through %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=s}function f(t,e,r){this._parserInit||l(this),n("write(%o bytes)",t.length),"function"==typeof e&&(r=e),m(this,t,null,r)}function p(t,e,r){this._parserInit||l(this),n("transform(%o bytes)",t.length),"function"!=typeof e&&(e=this._parserOutput),m(this,t,e,r)}function d(t,e,r,o){if(t._parserBytesLeft-=e.length,n("%o bytes left for stream piece",t._parserBytesLeft),t._parserState===a?(t._parserBuffers.push(e),t._parserBuffered+=e.length):t._parserState===s&&r(e),0!==t._parserBytesLeft)return o;var l=t._parserCallback;if(l&&t._parserState===a&&t._parserBuffers.length>1&&(e=Buffer.concat(t._parserBuffers,t._parserBuffered)),t._parserState!==a&&(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=i,t._parserBuffers.splice(0),l){var u=[];e&&u.push(e),r&&u.push(r);var c=l.length>u.length;c&&u.push(g(o));var h=l.apply(t,u);if(!c||o===h)return o}}var m=g((function t(e,r,n,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return d(e,r,n,i)}:function(){var a=r.slice(0,e._parserBytesLeft);return d(e,a,n,(function(o){return o?i(o):r.length>a.length?function(){return t(e,r.slice(a.length),n,i)}:void 0}))}}));function g(t){return function(){for(var e=t.apply(this,arguments);"function"==typeof e;)e=e();return e}}})),lc=f((t=>{var e=Bu().Transform,r=sc();function n(){e.call(this,{readableObjectMode:!0})}function i(t,e,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name=this.constructor.name,this.message=t,e&&(this.code=e),r&&(this.statusCode=r)}n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n.prototype),t.ParserStream=n,t.sliceEq=function(t,e,r){for(var n=e,i=0;i{var r=lc().readUInt16BE,n=lc().readUInt32BE;function i(t,e){if(t.length<4+e)return null;var r=n(t,e);return t.length>4&15,i=15&t[4],a=t[5]>>4&15,s=r(t,6),l=8,u=0;ue.width||t.width===e.width&&t.height>e.height?t:e})),r=t.reduce((function(t,e){return t.height>e.height||t.height===e.height&&t.width>e.width?t:e}));return e.width>r.height||e.width===r.height&&e.height>r.width?e:r}(e.sizes),n=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===t.type&&(n=0===t.value?r[n]:e[n=e[n=r[n]]]),"irot"===t.type)for(var i=0;i{function r(t,e){var r=new Error(t);return r.code=e,r}function n(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function i(t,e,n){this.input=t.subarray(e,n),this.start=e;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==i&&"MM\0*"!==i)throw r("invalid TIFF signature","EBADDATA");this.big_endian="M"===i[0]}i.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,t)}},i.prototype.read_uint16=function(t){var e=this.input;if(t+2>e.length)throw r("unexpected EOF","EBADDATA");return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},i.prototype.read_uint32=function(t){var e=this.input;if(t+4>e.length)throw r("unexpected EOF","EBADDATA");return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},i.prototype.is_subifd_link=function(t,e){return 0===t&&34665===e||0===t&&34853===e||34665===t&&40965===e},i.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},i.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return this.input[e];case 6:return(r=this.input[e])|33554430*(128&r);case 3:return this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&r);case 4:return this.read_uint32(e);case 9:return 0|this.read_uint32(e);default:return null}},i.prototype.scan_ifd=function(t,e,i){var a=this.read_uint16(e);e+=2;for(var o=0;othis.input.length)throw r("unexpected EOF","EBADDATA");for(var d=[],m=f,g=0;g0&&(this.ifds_to_read.push({id:s,offset:d[0]}),p=!0),!1===i({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:u,entry_offset:e+this.start,data_length:h,data_offset:f+this.start,value:d,is_subifd_link:p}))return void(this.aborted=!0);e+=12}0===t&&this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=i,e.exports.get_orientation=function(t){var e=0;try{return new i(t,0,t.length).each((function(t){if(0===t.ifd&&274===t.tag&&Array.isArray(t.value))return e=t.value[0],!1})),e}catch(t){return-1}}})),hc=f(((t,e)=>{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt32BE,a=uc(),o=cc(),s=r("ftyp");e.exports=function(t){if(n(t,4,s)){var e=a.unbox(t,0);if(e){var r=a.getMimeType(e.data);if(r){for(var l,u=e.end;;){var c=a.unbox(t,u);if(!c)break;if(u=c.end,"mdat"===c.boxtype)return;if("meta"===c.boxtype){l=c.data;break}}if(l){var h=a.readSizeFromMeta(l);if(h){var f={width:h.width,height:h.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(h.variants.length>1&&(f.variants=h.variants),h.orientation&&(f.orientation=h.orientation),h.exif_location&&h.exif_location.offset+h.exif_location.length<=t.length){var p=i(t,h.exif_location.offset),d=t.slice(h.exif_location.offset+p+4,h.exif_location.offset+h.exif_location.length),m=o.get_orientation(d);m>0&&(f.orientation=m)}return f}}}}}}})),fc=f(((t,e)=>{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt16LE,a=r("BM");e.exports=function(t){if(!(t.length<26)&&n(t,0,a))return{width:i(t,18),height:i(t,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}})),pc=f(((t,e)=>{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt16LE,a=r("GIF87a"),o=r("GIF89a");e.exports=function(t){if(!(t.length<10)&&(n(t,0,a)||n(t,0,o)))return{width:i(t,6),height:i(t,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}})),dc=f(((t,e)=>{var r=lc().readUInt16LE;e.exports=function(t){var e=r(t,0),n=r(t,2),i=r(t,4);if(0===e&&1===n&&i){for(var a=[],o={width:0,height:0},s=0;so.width||u>o.height)&&(o=c)}return{width:o.width,height:o.height,variants:a,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}})),mc=f(((t,e)=>{var r=lc().readUInt16BE,n=lc().str2arr,i=lc().sliceEq,a=cc(),o=n("Exif\0\0");e.exports=function(t){if(!(t.length<2)&&255===t[0]&&216===t[1]&&255===t[2])for(var e=2;;){for(;;){if(t.length-e<2)return;if(255===t[e++])break}for(var n,s=t[e++];255===s;)s=t[e++];if(208<=s&&s<=217||1===s)n=0;else{if(!(192<=s&&s<=254))return;if(t.length-e<2)return;n=r(t,e)-2,e+=2}if(217===s||218===s)return;var l;if(225===s&&n>=10&&i(t,e,o)&&(l=a.get_orientation(t.slice(e+6,e+n))),n>=5&&192<=s&&s<=207&&196!==s&&200!==s&&204!==s){if(t.length-e0&&(u.orientation=l),u}e+=n}}})),gc=f(((t,e)=>{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt32BE,a=r("‰PNG\r\n\n"),o=r("IHDR");e.exports=function(t){if(!(t.length<24)&&n(t,0,a)&&n(t,12,o))return{width:i(t,16),height:i(t,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}})),yc=f(((t,e)=>{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt32BE,a=r("8BPS\0");e.exports=function(t){if(!(t.length<22)&&n(t,0,a))return{width:i(t,18),height:i(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}})),vc=f(((t,e)=>{function r(t){return 32===t||9===t||13===t||10===t}function n(t){return"number"==typeof t&&isFinite(t)&&t>0}var i=/<[-_.:a-zA-Z0-9][^>]*>/,a=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,l=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,u=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function c(t){return u.test(t)?t.match(u)[0]:"px"}e.exports=function(t){if(function(t){var e=0,n=t.length;for(239===t[0]&&187===t[1]&&191===t[2]&&(e=3);e{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt16LE,a=lc().readUInt16BE,o=lc().readUInt32LE,s=lc().readUInt32BE,l=r("II*\0"),u=r("MM\0*");function c(t,e,r){return r?a(t,e):i(t,e)}function h(t,e,r){return r?s(t,e):o(t,e)}function f(t,e,r){var n=c(t,e+2,r);return 1!==h(t,e+4,r)||3!==n&&4!==n?null:3===n?c(t,e+8,r):h(t,e+8,r)}e.exports=function(t){if(!(t.length<8)&&(n(t,0,l)||n(t,0,u))){var e=77===t[0],r=h(t,4,e)-8;if(!(r<0)){var i=r+8;if(!(t.length-i<2)){var a=12*c(t,i+0,e);if(!(a<=0||(i+=2,t.length-i{var r=lc().str2arr,n=lc().sliceEq,i=lc().readUInt16LE,a=lc().readUInt32LE,o=cc(),s=r("RIFF"),l=r("WEBP");function u(t,e){if(157===t[e+3]&&1===t[e+4]&&42===t[e+5])return{width:16383&i(t,e+6),height:16383&i(t,e+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function c(t,e){if(47===t[e]){var r=a(t,e+1);return{width:1+(16383&r),height:1+(r>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function h(t,e){return{width:1+(t[e+6]<<16|t[e+5]<<8|t[e+4]),height:1+(t[e+9]<t.length)){for(;e+8=10?r=r||u(t,e+8):"VP8L"===p&&d>=9?r=r||c(t,e+8):"VP8X"===p&&d>=10?r=r||h(t,e+8):"EXIF"===p&&(i=o.get_orientation(t.slice(e+8,e+8+d)),e=1/0),e+=8+d}else e++;if(r)return i>0&&(r.orientation=i),r}}}})),bc=f(((t,e)=>{e.exports={avif:hc(),bmp:fc(),gif:pc(),ico:dc(),jpeg:mc(),png:gc(),psd:yc(),svg:vc(),tiff:xc(),webp:_c()}})),wc=f(((t,e)=>{var r=bc();e.exports=function(t){return function(t){for(var e=Object.keys(r),n=0;n{var e=wc(),r=Dn().IMAGE_URL_PREFIX,n=ql().Buffer;t.getImageSize=function(t){var i=t.replace(r,""),a=new n(i,"base64");return e(a)}})),kc=f(((t,e)=>{var r=le(),n=Rl(),i=T(),a=ir(),o=le().maxRowLength,s=Tc().getImageSize;function l(t,e,n,i){return function(a){return r.constrain((a-t)*e,n,i)}}function u(t,e){return function(n){return r.constrain(n,t,e)}}e.exports=function(t,e){var r,c;if(e._hasZ)r=e.z.length,c=o(e.z);else if(e._hasSource){var h=s(e.source);r=h.height,c=h.width}var f,p=a.getFromId(t,e.xaxis||"x"),d=a.getFromId(t,e.yaxis||"y"),m=p.d2c(e.x0)-e.dx/2,g=d.d2c(e.y0)-e.dy/2,y=[m,m+c*e.dx],v=[g,g+r*e.dy];if(p&&"log"===p.type)for(f=0;f{var r=v(),n=le(),i=n.strTranslate,a=Ae(),o=Rl(),s=No(),l=Bo().STYLE;e.exports=function(t,e,u,c){var h=e.xaxis,f=e.yaxis,p=!t._context._exportedPlot&&s();n.makeTraceGroups(c,u,"im").each((function(e){var s=r.select(this),u=e[0],c=u.trace,d=("fast"===c.zsmooth||!1===c.zsmooth&&p)&&!c._hasZ&&c._hasSource&&"linear"===h.type&&"linear"===f.type;c._realImage=d;var m,g,y,v,x,_,b=u.z,w=u.x0,T=u.y0,k=u.w,A=u.h,M=c.dx,S=c.dy;for(_=0;void 0===m&&_0;)g=h.c2p(w+_*M),_--;for(_=0;void 0===v&&_0;)x=f.c2p(T+_*S),_--;if(gz[0];if(O||D){var R=m+E/2,F=v+C/2;L+="transform:"+i(R+"px",F+"px")+"scale("+(O?-1:1)+","+(D?-1:1)+")"+i(-R+"px",-F+"px")+";"}}I.attr("style",L);var B=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===k&&c._canvas.el.height===A&&c._canvas.source===c.source)t();else{var e=document.createElement("canvas");e.width=k,e.height=A;var r=e.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute("src",c.source)}})).then((function(){var t;if(c._hasZ)t=N((function(t,e){var r=b[e][t];return n.isTypedArray(r)&&(r=Array.from(r)),r})).toDataURL("image/png");else if(c._hasSource)if(d)t=c.source;else{var e=c._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,k,A).data;t=N((function(t,r){var n=4*(r*k+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL("image/png")}I.attr({"xlink:href":t,height:C,width:E,x:m,y:v})}));t._promises.push(B)}function N(t){var e=document.createElement("canvas");e.width=E,e.height=C;var r,i=e.getContext("2d",{willReadFrequently:!0}),a=function(t){return n.constrain(Math.round(h.c2p(w+t*M)-m),0,E)},s=function(t){return n.constrain(Math.round(f.c2p(T+t*S)-v),0,C)},l=o.colormodel[c.colormodel],p=l.colormodel||c.colormodel,d=l.fmt;for(_=0;_{var r=v();e.exports=function(t){r.select(t).selectAll(".im image").style("opacity",(function(t){return t[0].trace.opacity}))}})),Sc=f(((t,e)=>{var r=Or(),n=le(),i=n.isArrayOrTypedArray,a=Rl();e.exports=function(t,e,o){var s=t.cd[0],l=s.trace,u=t.xa,c=t.ya;if(!(r.inbox(e-s.x0,e-(s.x0+s.w*l.dx),0)>0||r.inbox(o-s.y0,o-(s.y0+s.h*l.dy),0)>0)){var h,f=Math.floor((e-s.x0)/l.dx),p=Math.floor(Math.abs(o-s.y0)/l.dy);if(l._hasZ?h=s.z[p][f]:l._hasSource&&(h=l._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(f,p,1,1).data),h){var d,m=s.hi||l.hoverinfo;if(m){var g=m.split("+");-1!==g.indexOf("all")&&(g=["color"]),-1!==g.indexOf("color")&&(d=!0)}var y,v=a.colormodel[l.colormodel],x=v.colormodel||l.colormodel,_=x.length,b=l._scaler(h),w=v.suffix,T=[];(l.hovertemplate||d)&&(T.push("["+[b[0]+w[0],b[1]+w[1],b[2]+w[2]].join(", ")),4===_&&T.push(", "+b[3]+w[3]),T.push("]"),T=T.join(""),t.extraText=x.toUpperCase()+": "+T),i(l.hovertext)&&i(l.hovertext[p])?y=l.hovertext[p][f]:i(l.text)&&i(l.text[p])&&(y=l.text[p][f]);var k=c.c2p(s.y0+(p+.5)*l.dy),A=s.x0+(f+.5)*l.dx,M=s.y0+(p+.5)*l.dy,S="["+h.slice(0,l.colormodel.length).join(", ")+"]";return[n.extendFlat(t,{index:[p,f],x0:u.c2p(s.x0+f*l.dx),x1:u.c2p(s.x0+(f+1)*l.dx),y0:k,y1:k,color:b,xVal:A,xLabelVal:A,yVal:M,yLabelVal:M,zLabelVal:S,text:y,hovertemplateLabels:{zLabel:S,colorLabel:T,"color[0]Label":b[0]+w[0],"color[1]Label":b[1]+w[1],"color[2]Label":b[2]+w[2],"color[3]Label":b[3]+w[3]}})]}}}})),Ec=f(((t,e)=>{e.exports=function(t,e){return"xVal"in e&&(t.x=e.xVal),"yVal"in e&&(t.y=e.yVal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}})),Cc=f(((t,e)=>{e.exports={attributes:Fl(),supplyDefaults:Bl(),calc:kc(),plot:Ac(),style:Mc(),hoverPoints:Sc(),eventData:Ec(),moduleType:"trace",name:"image",basePlotModule:Si(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}})),Ic=f(((t,e)=>{e.exports=Cc()})),Lc=f(((t,e)=>{var r=j(),n=ka().attributes,i=R(),a=V(),o=Ot().hovertemplateAttrs,s=Ot().texttemplateAttrs,l=D().extendFlat,u=Pt().pattern,c=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:a.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:u,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:l({},r.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:l({},c,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:l({},c,{}),outsidetextfont:l({},c,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:l({},c,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:n({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}})),Pc=f(((t,e)=>{var r=T(),n=le(),i=Lc(),a=ka().defaults,o=Ya().handleText,s=le().coercePattern;function l(t,e){var i=n.isArrayOrTypedArray(t),a=n.isArrayOrTypedArray(e),o=Math.min(i?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&&a){for(var s,l=0;l0){s=!0;break}}s||(o=0)}return{hasLabels:i,hasValues:a,len:o}}function u(t,e,r,n,i){n("marker.line.width")&&n("marker.line.color",i?void 0:r.paper_bgcolor);var a=n("marker.colors");s(n,"marker.pattern",a),t.marker&&!e.marker.pattern.fgcolor&&(e.marker.pattern.fgcolor=t.marker.colors),e.marker.pattern.bgcolor||(e.marker.pattern.bgcolor=r.paper_bgcolor)}e.exports={handleLabelsAndValues:l,handleMarkerDefaults:u,supplyDefaults:function(t,e,r,s){function c(r,a){return n.coerce(t,e,i,r,a)}var h=l(c("labels"),c("values")),f=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),f){e._length=f,u(t,e,s,c,!0),c("scalegroup");var p,d=c("text"),m=c("texttemplate");if(m||(p=c("textinfo",n.isArrayOrTypedArray(d)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),m||p&&"none"!==p){var g=c("textposition");o(t,e,s,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}else"none"===p&&c("textposition","none");a(e,s,c);var y=c("hole");if(c("title.text")){var v=c("title.position",y?"middle center":"top center");!y&&"middle center"===v&&(e.title.position="top center"),n.coerceFont(c,"title.font",s.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else e.visible=!1}}})),zc=f(((t,e)=>{e.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}})),Oc=f(((t,e)=>{var r=le(),n=zc();e.exports=function(t,e){function i(i,a){return r.coerce(t,e,n,i,a)}i("hiddenlabels"),i("piecolorway",e.colorway),i("extendpiecolors")}})),Dc=f(((t,e)=>{var r=T(),n=O(),i=q(),a={};function o(t){return function(e,r){return!(!e||(e=n(e),!e.isValid()))&&(e=i.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e)}}function s(t,e){var r,i=JSON.stringify(t),a=e[i];if(!a){for(a=t.slice(),r=0;r=0})),("funnelarea"===e.type?y:e.sort)&&a.sort((function(t,e){return e.v-t.v})),a[0]&&(a[0].vTotal=g),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r="pie");var n=t._fullLayout,i=t.calcdata,o=n[r+"colorway"],l=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(o=s(o,a));for(var u=0,c=0;c{var r=$e().appendArrayMultiPointValues;e.exports=function(t,e){var n={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&&(n.pointNumber=n.i=t.pts[0]),r(n,e,t.pts),"funnelarea"===e.type&&(delete n.v,delete n.i),n}})),Fc=f(((t,e)=>{var r=v(),n=ke(),i=Or(),a=q(),o=Qe(),s=le(),l=s.strScale,u=s.strTranslate,c=Se(),h=Ka(),f=h.recordMinTextSize,p=h.clearMinTextSize,d=Ha().TEXTPAD,m=br(),g=Rc(),y=le().isValidTextValue;function x(t,e,n){var a=n[0],o=a.cx,l=a.cy,u=a.trace,c="funnelarea"===u.type;"_hasHoverLabel"in u||(u._hasHoverLabel=!1),"_hasHoverEvent"in u||(u._hasHoverEvent=!1),t.on("mouseover",(function(t){var n=e._fullLayout,h=e._fullData[u.index];if(!e._dragging&&!1!==n.hovermode){var f=h.hoverinfo;if(Array.isArray(f)&&(f=i.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:u._module},n,0)),"all"===f&&(f="label+text+value+percent+name"),h.hovertemplate||"none"!==f&&"skip"!==f&&f){var p=t.rInscribed||0,d=o+t.pxmid[0]*(1-p),y=l+t.pxmid[1]*(1-p),v=n.separators,x=[];if(f&&-1!==f.indexOf("label")&&x.push(t.label),t.text=m.castOption(h.hovertext||h.text,t.pts),f&&-1!==f.indexOf("text")){var _=t.text;s.isValidTextValue(_)&&x.push(_)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,v),f&&-1!==f.indexOf("value")&&x.push(t.valueLabel),t.percent=t.v/a.vTotal,t.percentLabel=m.formatPiePercent(t.percent,v),f&&-1!==f.indexOf("percent")&&x.push(t.percentLabel);var b=h.hoverlabel,w=b.font,T=[];i.loneHover({trace:u,x0:d-p*a.r,x1:d+p*a.r,y,_x0:c?o+t.TL[0]:d-p*a.r,_x1:c?o+t.TR[0]:d+p*a.r,_y0:c?l+t.TL[1]:y-p*a.r,_y1:c?l+t.BL[1]:y+p*a.r,text:x.join("
"),name:h.hovertemplate||-1!==f.indexOf("name")?h.name:void 0,idealAlign:t.pxmid[0]<0?"left":"right",color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(w.family,t.pts),fontSize:m.castOption(w.size,t.pts),fontColor:m.castOption(w.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(h.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[g(t,h)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:e,inOut_bbox:T}),t.bbox=T[0],u._hasHoverLabel=!0}u._hasHoverEvent=!0,e.emit("plotly_hover",{points:[g(t,h)],event:r.event})}})),t.on("mouseout",(function(t){var n=e._fullLayout,a=e._fullData[u.index],o=r.select(this).datum();u._hasHoverEvent&&(t.originalEvent=r.event,e.emit("plotly_unhover",{points:[g(o,a)],event:r.event}),u._hasHoverEvent=!1),u._hasHoverLabel&&(i.loneUnhover(n._hoverlayer.node()),u._hasHoverLabel=!1)})),t.on("click",(function(t){var n=e._fullLayout,a=e._fullData[u.index];e._dragging||!1===n.hovermode||(e._hoverdata=[g(t,a)],i.click(e,r.event))}))}function _(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,o=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size,s=m.castOption(t.insidetextfont.weight,e.pts)||m.castOption(t.textfont.weight,e.pts)||r.weight,l=m.castOption(t.insidetextfont.style,e.pts)||m.castOption(t.textfont.style,e.pts)||r.style,u=m.castOption(t.insidetextfont.variant,e.pts)||m.castOption(t.textfont.variant,e.pts)||r.variant,c=m.castOption(t.insidetextfont.textcase,e.pts)||m.castOption(t.textfont.textcase,e.pts)||r.textcase,h=m.castOption(t.insidetextfont.lineposition,e.pts)||m.castOption(t.textfont.lineposition,e.pts)||r.lineposition,f=m.castOption(t.insidetextfont.shadow,e.pts)||m.castOption(t.textfont.shadow,e.pts)||r.shadow;return{color:n||a.contrast(e.color),family:i,size:o,weight:s,style:l,variant:u,textcase:c,lineposition:h,shadow:f}}function b(t,e){for(var r,n,i=0;ie&&e>n||r=-4;g-=2)y(Math.PI*g,"tan");for(g=4;g>=-4;g-=2)y(Math.PI*(g+1),"tan")}if(h||p){for(g=4;g>=-4;g-=2)y(Math.PI*(g+1.5),"rad");for(g=4;g>=-4;g-=2)y(Math.PI*(g+.5),"rad")}}if(s||d||h){var v=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/v,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale>=1)return a;m.push(a)}(d||p)&&((a=T(t,n,o,l,u)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a)),(d||f)&&((a=k(t,n,o,l,u)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a));for(var x=0,_=0,b=0;b=1)break}return m[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*d);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:A(a,o/e),rotate:M(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*d);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:A(a,o/e),rotate:M(i+Math.PI/2)}}function A(t,e){return Math.cos(e)-t*e}function M(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function I(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf("top")?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf("bottom")&&(o.y+=(1+i)*t.r);var l=function(t,e){return t/(void 0===e?1:e)}(t.r,t.trace.aspectratio),u=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf("left")?(u+=l,o.x-=(1+i)*l,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf("center")?u*=2:-1!==a.title.position.indexOf("right")&&(u+=l,o.x+=(1+i)*l,s.tx-=t.titleBox.width/2),r=u/t.titleBox.width,n=L(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function L(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(s.isArrayOrTypedArray(r))for(r=0,e=0;er&&(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n1?c=(u=r.r)/i.aspectratio:u=(c=r.r)*i.aspectratio,l=(u*=(1+i.baseratio)/2)*c}o=Math.min(o,l/r.vTotal)}for(n=0;n")}if(o){var _=s.castOption(a,e.i,"texttemplate");if(_){var b={label:(n=e).label,value:n.v,valueLabel:m.formatPieValue(n.v,i.separators),percent:n.v/r.vTotal,percentLabel:m.formatPiePercent(n.v/r.vTotal,i.separators),color:n.color,text:n.text,customdata:s.castOption(a,n.i,"customdata")},w=m.getFirstFilled(a.text,e.pts);(y(w)||""===w)&&(b.text=w),e.text=s.texttemplateString(_,b,t._fullLayout._d3locale,b,a._meta||{})}else e.text=""}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var i=t._context.staticPlot,h=t._fullLayout,d=h._size;p("pie",h),b(e,t),z(e,d);var g=s.makeTraceGroups(h._pielayer,e,"trace").each((function(e){var p=r.select(this),g=e[0],y=g.trace;(function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,u="px0",c="px1";if("counterclockwise"===o.direction){for(e=0;ei.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))})(e),p.attr("stroke-linejoin","round"),p.each((function(){var v=r.select(this).selectAll("g.slice").data(e);v.enter().append("g").classed("slice",!0),v.exit().remove();var b=[[[],[]],[[],[]]],T=!1;v.each((function(n,a){if(n.hidden)r.select(this).selectAll("path,g").remove();else{n.pointNumber=n.i,n.curveNumber=y.index,b[n.pxmid[1]<0?0:1][n.pxmid[0]<0?0:1].push(n);var l=g.cx,u=g.cy,p=r.select(this),d=p.selectAll("path.surface").data([n]);if(d.enter().append("path").classed("surface",!0).style({"pointer-events":i?"none":"all"}),p.call(x,t,e),y.pull){var v=+m.castOption(y.pull,n.pts)||0;v>0&&(l+=v*n.pxmid[0],u+=v*n.pxmid[1])}n.cxFinal=l,n.cyFinal=u;var k=y.hole;if(n.v===g.vTotal){var A="M"+(l+n.px0[0])+","+(u+n.px0[1])+L(n.px0,n.pxmid,!0,1)+L(n.pxmid,n.px0,!0,1)+"Z";k?d.attr("d","M"+(l+k*n.px0[0])+","+(u+k*n.px0[1])+L(n.px0,n.pxmid,!1,k)+L(n.pxmid,n.px0,!1,k)+"Z"+A):d.attr("d",A)}else{var M=L(n.px0,n.px1,!0,1);if(k){var S=1-k;d.attr("d","M"+(l+k*n.px1[0])+","+(u+k*n.px1[1])+L(n.px1,n.px0,!1,k)+"l"+S*n.px0[0]+","+S*n.px0[1]+M+"Z")}else d.attr("d","M"+l+","+u+"l"+n.px0[0]+","+n.px0[1]+M+"Z")}D(t,n,g);var E=m.castOption(y.textposition,n.pts),I=p.selectAll("g.slicetext").data(n.text&&"none"!==E?[0]:[]);I.enter().append("g").classed("slicetext",!0),I.exit().remove(),I.each((function(){var i=s.ensureSingle(r.select(this),"text","",(function(t){t.attr("data-notex",1)})),p=s.ensureUniformFontSize(t,"outside"===E?function(t,e,r){return{color:m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,family:m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,size:m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size,weight:m.castOption(t.outsidetextfont.weight,e.pts)||m.castOption(t.textfont.weight,e.pts)||r.weight,style:m.castOption(t.outsidetextfont.style,e.pts)||m.castOption(t.textfont.style,e.pts)||r.style,variant:m.castOption(t.outsidetextfont.variant,e.pts)||m.castOption(t.textfont.variant,e.pts)||r.variant,textcase:m.castOption(t.outsidetextfont.textcase,e.pts)||m.castOption(t.textfont.textcase,e.pts)||r.textcase,lineposition:m.castOption(t.outsidetextfont.lineposition,e.pts)||m.castOption(t.textfont.lineposition,e.pts)||r.lineposition,shadow:m.castOption(t.outsidetextfont.shadow,e.pts)||m.castOption(t.textfont.shadow,e.pts)||r.shadow}}(y,n,h.font):_(y,n,h.font));i.text(n.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(o.font,p).call(c.convertToTspans,t);var d,v=o.bBox(i.node());if("outside"===E)d=C(v,n);else if(d=w(v,n,g),"auto"===E&&d.scale<1){var x=s.ensureUniformFontSize(t,y.outsidetextfont);i.call(o.font,x),d=C(v=o.bBox(i.node()),n)}var b=d.textPosAngle,k=void 0===b?n.pxmid:O(g.r,b);if(d.targetX=l+k[0]*d.rCenter+(d.x||0),d.targetY=u+k[1]*d.rCenter+(d.y||0),R(d,v),d.outside){var A=d.targetY;n.yLabelMin=A-v.height/2,n.yLabelMid=A,n.yLabelMax=A+v.height/2,n.labelExtraX=0,n.labelExtraY=0,T=!0}d.fontSize=p.size,f(y.type,d,h),e[a].transform=d,s.setTransormAndDisplay(i,d)}))}function L(t,e,r,i){var a=i*(e[0]-t[0]),o=i*(e[1]-t[1]);return"a"+i*g.r+","+i*g.r+" 0 "+n.largeArc+(r?" 1 ":" 0 ")+a+","+o}}));var k=r.select(this).selectAll("g.titletext").data(y.title.text?[0]:[]);if(k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each((function(){var e,n=s.ensureSingle(r.select(this),"text","",(function(t){t.attr("data-notex",1)})),i=y.title.text;y._meta&&(i=s.templateString(i,y._meta)),n.text(i).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(o.font,y.title.font).call(c.convertToTspans,t),e="middle center"===y.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(g):I(g,d),n.attr("transform",u(e.x,e.y)+l(Math.min(1,e.scale))+u(e.tx,e.ty))})),T&&function(t,e){var r,n,i,a,o,l,u,c,h,f,p,d,g;function y(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function x(t,r){r||(r={});var i,c,h,p,d=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),g=n?t.yLabelMin:t.yLabelMax,y=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),x=d-g;if(x*u>0&&(t.labelExtraY=x),s.isArrayOrTypedArray(e.pull))for(c=0;c=(m.castOption(e.pull,h.pts)||0))&&((t.pxmid[1]-h.pxmid[1])*u>0?(x=h.cyFinal+o(h.px0[1],h.px1[1])-g-t.labelExtraY)*u>0&&(t.labelExtraY+=x):(y+t.labelExtraY-v)*u>0&&(i=3*l*Math.abs(c-f.indexOf(t)),(p=h.cxFinal+a(h.px0[0],h.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*l>0&&(t.labelExtraX+=p)))}for(n=0;n<2;n++)for(i=n?y:v,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,l=r?1:-1,(c=t[n][r]).sort(i),h=t[1-n][r],f=h.concat(c),d=[],p=0;pMath.abs(h)?l+="l"+h*t.pxmid[0]/t.pxmid[1]+","+h+"H"+(o+t.labelExtraX+u):l+="l"+t.labelExtraX+","+c+"v"+(h-c)+"h"+u}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+u;s.ensureSingle(n,"path","textline").call(a.stroke,e.outsidetextfont.color).attr({"stroke-width":Math.min(2,e.outsidetextfont.size/8),d:l,fill:"none"})}else n.select("path.textline").remove()}))}(v,y),T&&y.automargin){var A=o.bBox(p.node()),M=y.domain,S=d.w*(M.x[1]-M.x[0]),E=d.h*(M.y[1]-M.y[0]),L=(.5*S-g.r)/d.w,P=(.5*E-g.r)/d.h;n.autoMargin(t,"pie."+y.uid+".automargin",{xl:M.x[0]-L,xr:M.x[1]+L,yb:M.y[0]-P,yt:M.y[1]+P,l:Math.max(g.cx-g.r-A.left,0),r:Math.max(A.right-(g.cx+g.r),0),b:Math.max(A.bottom-(g.cy+g.r),0),t:Math.max(g.cy-g.r-A.top,0),pad:5})}}))}));setTimeout((function(){g.selectAll("tspan").each((function(){var t=r.select(this);t.attr("dy")&&t.attr("dy",t.attr("dy"))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:_,positionTitleOutside:I,prerenderTitles:b,layoutAreas:z,attachFxHandlers:x,computeTransform:R}})),Bc=f(((t,e)=>{var r=v(),n=Tr(),i=Ka().resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(".trace");i(t,e,"pie"),e.each((function(e){var i=e[0].trace,a=r.select(this);a.style({opacity:i.opacity}),a.selectAll("path.surface").each((function(e){r.select(this).call(n,e,i,t)}))}))}})),Nc=f((t=>{var e=ke();t.name="pie",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),jc=f(((t,e)=>{e.exports={attributes:Lc(),supplyDefaults:Pc().supplyDefaults,supplyLayoutDefaults:Oc(),layoutAttributes:zc(),calc:Dc().calc,crossTraceCalc:Dc().crossTraceCalc,plot:Fc().plot,style:Bc(),styleOne:Tr(),moduleType:"trace",name:"pie",basePlotModule:Nc(),categories:["pie-like","pie","showLegend"],meta:{}}})),Uc=f(((t,e)=>{e.exports=jc()})),Vc=f((t=>{var e=ke();t.name="sunburst",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),qc=f(((t,e)=>{e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}})),Hc=f(((t,e)=>{var r=j(),n=Ot().hovertemplateAttrs,i=Ot().texttemplateAttrs,a=Pe(),o=ka().attributes,s=Lc(),l=qc(),u=D().extendFlat,c=Pt().pattern;e.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:u({colors:{valType:"data_array",editType:"calc"},line:{color:u({},s.marker.line.color,{dflt:null}),width:u({},s.marker.line.width,{dflt:1}),editType:"calc"},pattern:c,editType:"calc"},a("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:s.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:i({editType:"plot"},{keys:l.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:u({},r.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:n({},{keys:l.eventDataKeys}),textfont:s.textfont,insidetextorientation:s.insidetextorientation,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:s.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:o({name:"sunburst",trace:!0,editType:"calc"})}})),Gc=f(((t,e)=>{e.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}})),Zc=f(((t,e)=>{var r=le(),n=Hc(),i=ka().defaults,a=Ya().handleText,o=Pc().handleMarkerDefaults,s=We(),l=s.hasColorscale,u=s.handleDefaults;e.exports=function(t,e,s,c){function h(i,a){return r.coerce(t,e,n,i,a)}var f=h("labels"),p=h("parents");if(f&&f.length&&p&&p.length){var d=h("values");d&&d.length?h("branchvalues"):h("count"),h("level"),h("maxdepth"),o(t,e,c,h);var m=e._hasColorscale=l(t,"marker","colors")||(t.marker||{}).coloraxis;m&&u(t,e,c,h,{prefix:"marker.",cLetter:"c"}),h("leaf.opacity",m?1:.7);var g=h("text");h("texttemplate"),e.texttemplate||h("textinfo",r.isArrayOrTypedArray(g)?"text+label":"label"),h("hovertext"),h("hovertemplate"),a(t,e,c,h,"auto",{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("insidetextorientation"),h("sort"),h("rotation"),h("root.color"),i(e,c,h),e._length=null}else e.visible=!1}})),Wc=f(((t,e)=>{var r=le(),n=Gc();e.exports=function(t,e){function i(i,a){return r.coerce(t,e,n,i,a)}i("sunburstcolorway",e.colorway),i("extendsunburstcolors")}})),Yc=f(((t,e)=>{var r,n;r=t,n=function(t){function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,c=new u(t),h=+t.value&&(c.value=t.value),f=[c];for(null==e&&(e=o);r=f.pop();)if(h&&(r.value=+r.data.value),(i=e(r.data))&&(s=i.length))for(r.children=new Array(s),a=s-1;a>=0;--a)f.push(n=r.children[a]=new u(i[a])),n.parent=r,n.depth=r.depth+1;return c.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function u(t){this.data=t,this.depth=this.height=0,this.parent=null}u.prototype=a.prototype={constructor:u,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&&e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var c=Array.prototype.slice;function h(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(c.call(t))).length,a=[];n0&&r*r>n*n+i*i}function m(t,e){for(var r=0;r(o*=o)?(n=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function _(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r>0&&r*r>n*n+i*i}function b(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,u,c,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i>2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;sf&&(f=s),g=c*c*m,(p=Math.max(f/g,g/h))>d){c-=s;break}d=p}y.push(o={value:c,dice:l1?e:1)},r}(H),W=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,l,u,c,h=-1,f=o.length,p=t.value;++h1?e:1)},r}(H);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(e),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),h=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-h)/(f-h)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(E(t)).eachAfter(C(n,.5)).eachBefore(I(1)):i.eachBefore(E(S)).eachAfter(C(A,1)).eachAfter(C(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=function(t){return null==t?null:k(t)}(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),i):n},i},t.packEnclose=h,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&&P(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=k(e),r):t},r.parentId=function(t){return arguments.length?(e=k(t),r):e},r},t.tree=function(){var t=F,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new V(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i>=0;--i)s.push(r=e.children[i]=new V(n[i],i)),r.parent=e;return(o.parent=new V(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var u=i,c=i,h=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:t(u,c)/2,p=f-u.x,d=e/(c.x+f+p),m=r/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*m}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],u=a.m,c=o.m,h=s.m,f=l.m;s=N(s),a=B(a),s&&a;)l=B(l),(o=N(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(j(U(s,e,n),e,i),u+=i,c+=i),h+=s.m,u+=a.m,f+=l.m,c+=o.m;s&&!N(o)&&(o.t=s,o.m+=h-c),a&&!B(l)&&(l.t=a,l.m+=u-f,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=Z,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,u=A;function c(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(h),i=[0],e&&t.eachBefore(L),t}function h(e){var r=i[e.depth],n=e.x0+r,c=e.y0+r,h=e.x1-r,f=e.y1-r;h=r-1){var c=s[e];return c.x0=i,c.y0=a,c.x1=o,void(c.y1=l)}for(var h=u[e],f=n/2+h,p=e+1,d=r-1;p>>1;u[m]l-a){var v=(i*y+o*g)/n;t(e,p,g,i,a,v,l),t(p,r,y,v,a,o,l)}else{var x=(a*y+l*g)/n;t(e,p,g,i,a,o,x),t(p,r,y,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=P,t.treemapResquarify=W,t.treemapSlice=q,t.treemapSliceDice=function(t,e,r,n,i){(1&t.depth?q:P)(t,e,r,n,i)},t.treemapSquarify=Z,Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r=r||self).d3=r.d3||{})})),Xc=f((t=>{var e=Yc(),r=T(),n=le(),i=We().makeColorScaleFuncFromTrace,a=Dc().makePullColorFn,o=Dc().generateExtendedColors,s=We().calc,l=k().ALMOST_EQUAL,u={},c={},h={};function f(t,e,r){var n=0,i=t.children;if(i){for(var a=i.length,o=0;o=0};v?(u=Math.min(y.length,_.length),c=function(t){return M(y[t])&&S(t)},h=function(t){return String(y[t])}):(u=Math.min(x.length,_.length),c=function(t){return M(x[t])&&S(t)},h=function(t){return String(x[t])}),w&&(u=Math.min(u,b.length));for(var E=0;E1){for(var P=n.randstr(),z=0;z{}));function Qc(){}function th(){return this.rgb().formatHex()}function eh(){return this.rgb().formatHex8()}function rh(){return yh(this).formatHsl()}function nh(){return this.rgb().formatRgb()}function ih(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Eh.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?ah(e):3===r?new uh(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?oh(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?oh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ch.exec(t))?new uh(e[1],e[2],e[3],1):(e=Ih.exec(t))?new uh(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Lh.exec(t))?oh(e[1],e[2],e[3],e[4]):(e=Ph.exec(t))?oh(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zh.exec(t))?gh(e[1],e[2]/100,e[3]/100,1):(e=Oh.exec(t))?gh(e[1],e[2]/100,e[3]/100,e[4]):Dh.hasOwnProperty(t)?ah(Dh[t]):"transparent"===t?new uh(NaN,NaN,NaN,0):null}function ah(t){return new uh(t>>16&255,t>>8&255,255&t,1)}function oh(t,e,r,n){return n<=0&&(t=e=r=NaN),new uh(t,e,r,n)}function sh(t){return t instanceof Qc||(t=ih(t)),t?new uh((t=t.rgb()).r,t.g,t.b,t.opacity):new uh}function lh(t,e,r,n){return 1===arguments.length?sh(t):new uh(t,e,r,null==n?1:n)}function uh(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function ch(){return`#${mh(this.r)}${mh(this.g)}${mh(this.b)}`}function hh(){return`#${mh(this.r)}${mh(this.g)}${mh(this.b)}${mh(255*(isNaN(this.opacity)?1:this.opacity))}`}function fh(){let t=ph(this.opacity);return`${1===t?"rgb(":"rgba("}${dh(this.r)}, ${dh(this.g)}, ${dh(this.b)}${1===t?")":`, ${t})`}`}function ph(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function dh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function mh(t){return((t=dh(t))<16?"0":"")+t.toString(16)}function gh(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new xh(t,e,r,n)}function yh(t){if(t instanceof xh)return new xh(t.h,t.s,t.l,t.opacity);if(t instanceof Qc||(t=ih(t)),!t)return new xh;if(t instanceof xh)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+6*(r0&&l<1?0:o,new xh(o,s,l,t.opacity)}function vh(t,e,r,n){return 1===arguments.length?yh(t):new xh(t,e,r,null==n?1:n)}function xh(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function _h(t){return(t=(t||0)%360)<0?t+360:t}function bh(t){return Math.max(0,Math.min(1,t||0))}function wh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}var Th,kh,Ah,Mh,Sh,Eh,Ch,Ih,Lh,Ph,zh,Oh,Dh,Rh,Fh,Bh=h((()=>{Kc(),kh=1/(Th=.7),Ah="\\s*([+-]?\\d+)\\s*",Mh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Eh=/^#([0-9a-f]{3,8})$/,Ch=new RegExp(`^rgb\\(${Ah},${Ah},${Ah}\\)$`),Ih=new RegExp(`^rgb\\(${Sh},${Sh},${Sh}\\)$`),Lh=new RegExp(`^rgba\\(${Ah},${Ah},${Ah},${Mh}\\)$`),Ph=new RegExp(`^rgba\\(${Sh},${Sh},${Sh},${Mh}\\)$`),zh=new RegExp(`^hsl\\(${Mh},${Sh},${Sh}\\)$`),Oh=new RegExp(`^hsla\\(${Mh},${Sh},${Sh},${Mh}\\)$`),Dh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},$c(Qc,ih,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:th,formatHex:th,formatHex8:eh,formatHsl:rh,formatRgb:nh,toString:nh}),$c(uh,lh,Jc(Qc,{brighter(t){return t=null==t?kh:Math.pow(kh,t),new uh(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Th:Math.pow(Th,t),new uh(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new uh(dh(this.r),dh(this.g),dh(this.b),ph(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ch,formatHex:ch,formatHex8:hh,formatRgb:fh,toString:fh})),$c(xh,vh,Jc(Qc,{brighter(t){return t=null==t?kh:Math.pow(kh,t),new xh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Th:Math.pow(Th,t),new xh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new uh(wh(t>=240?t-240:t+120,i,n),wh(t,i,n),wh(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new xh(_h(this.h),bh(this.s),bh(this.l),ph(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=ph(this.opacity);return`${1===t?"hsl(":"hsla("}${_h(this.h)}, ${100*bh(this.s)}%, ${100*bh(this.l)}%${1===t?")":`, ${t})`}`}}))})),Nh=h((()=>{Rh=Math.PI/180,Fh=180/Math.PI}));function jh(t){if(t instanceof Vh)return new Vh(t.l,t.a,t.b,t.opacity);if(t instanceof Yh)return Xh(t);t instanceof uh||(t=sh(t));var e,r,n=Zh(t.r),i=Zh(t.g),a=Zh(t.b),o=qh((.2225045*n+.7168786*i+.0606169*a)/Jh);return n===i&&i===a?e=r=o:(e=qh((.4360747*n+.3850649*i+.1430804*a)/$h),r=qh((.0139322*n+.0971045*i+.7141733*a)/Kh)),new Vh(116*o-16,500*(e-o),200*(o-r),t.opacity)}function Uh(t,e,r,n){return 1===arguments.length?jh(t):new Vh(t,e,r,null==n?1:n)}function Vh(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function qh(t){return t>rf?Math.pow(t,1/3):t/ef+Qh}function Hh(t){return t>tf?t*t*t:ef*(t-Qh)}function Gh(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Zh(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wh(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof Yh)return new Yh(t.h,t.c,t.l,t.opacity);if(t instanceof Vh||(t=jh(t)),0===t.a&&0===t.b)return new Yh(NaN,0{Kc(),Bh(),Nh(),$h=.96422,Jh=1,Kh=.82521,Qh=4/29,ef=3*(tf=6/29)*tf,rf=tf*tf*tf,$c(Vh,Uh,Jc(Qc,{brighter(t){return new Vh(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Vh(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new uh(Gh(3.1338561*(e=$h*Hh(e))-1.6168667*(t=Jh*Hh(t))-.4906146*(r=Kh*Hh(r))),Gh(-.9787684*e+1.9161415*t+.033454*r),Gh(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),$c(Yh,Wh,Jc(Qc,{brighter(t){return new Yh(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Yh(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Xh(this).rgb()}}))}));function af(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof of)return new of(t.h,t.s,t.l,t.opacity);t instanceof uh||(t=sh(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(pf*n+hf*e-ff*r)/(pf+hf-ff),a=n-i,o=(cf*(r-i)-lf*a)/uf,s=Math.sqrt(o*o+a*a)/(cf*i*(1-i)),l=s?Math.atan2(o,a)*Fh-120:NaN;return new of(l<0?l+360:l,s,i,t.opacity)}(t):new of(t,e,r,null==n?1:n)}function of(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}var sf,lf,uf,cf,hf,ff,pf,df=h((()=>{Kc(),Bh(),Nh(),hf=(cf=1.97294)*(uf=-.90649),ff=cf*(sf=1.78277),pf=sf*(lf=-.29227)-uf*-.14861,$c(of,af,Jc(Qc,{brighter(t){return t=null==t?kh:Math.pow(kh,t),new of(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Th:Math.pow(Th,t),new of(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*Rh,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new uh(255*(e+r*(-.14861*n+sf*i)),255*(e+r*(lf*n+uf*i)),255*(e+r*(cf*n)),this.opacity)}}))})),mf=h((()=>{Bh(),nf(),df()}));function gf(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function yf(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n{}));function xf(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return gf((r-n/e)*e,i,a,o,s)}}var _f,bf=h((()=>{vf()})),wf=h((()=>{_f=t=>()=>t}));function Tf(t,e){return function(r){return t+r*e}}function kf(t,e){var r=e-t;return r?Tf(t,r>180||r<-180?r-360*Math.round(r/360):r):_f(isNaN(t)?e:t)}function Af(t,e){var r=e-t;return r?Tf(t,r):_f(isNaN(t)?e:t)}var Mf=h((()=>{wf()}));function Sf(t){return function(e){var r,n,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(r=0;r{mf(),vf(),bf(),Mf(),Ef=function t(e){var r=function(t){return 1==(t=+t)?Af:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):_f(isNaN(e)?r:e)}}(e);function n(t,e){var n=r((t=lh(t)).r,(e=lh(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=Af(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1),Cf=Sf(yf),If=Sf(xf)}));function Pf(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r{}));function Df(t,e){return(zf(e)?Pf:Rf)(t,e)}function Rf(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r{Xf(),Of()}));function Bf(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}var Nf=h((()=>{}));function jf(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Uf=h((()=>{}));function Vf(t,e){var r,n={},i={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)r in t?n[r]=Yf(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var qf=h((()=>{Xf()}));function Hf(t,e){var r,n,i,a=Gf.lastIndex=Zf.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(r=Gf.exec(t))&&(n=Zf.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:jf(r,n)})),a=Zf.lastIndex;return a{Uf(),Gf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zf=new RegExp(Gf.source,"g")}));function Yf(t,e){var r,n=typeof e;return null==e||"boolean"===n?_f(e):("number"===n?jf:"string"===n?(r=ih(e))?(e=r,Ef):Hf:e instanceof ih?Ef:e instanceof Date?Bf:zf(e)?Pf:Array.isArray(e)?Rf:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Vf:jf)(t,e)}var Xf=h((()=>{mf(),Lf(),Ff(),Nf(),Uf(),qf(),Wf(),wf(),Of()}));function $f(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}var Jf=h((()=>{}));function Kf(t,e){var r=kf(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}}var Qf=h((()=>{Mf()}));function tp(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var ep=h((()=>{}));function rp(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n{np=180/Math.PI,ip={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function op(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ip:rp(e.a,e.b,e.c,e.d,e.e,e.f)}function sp(t){return null==t?ip:(lp||(lp=document.createElementNS("http://www.w3.org/2000/svg","g")),lp.setAttribute("transform",t),(t=lp.transform.baseVal.consolidate())?rp((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ip)}var lp,up=h((()=>{ap()}));function cp(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:jf(t,i)},{i:l-2,x:jf(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+"rotate(",null,n)-2,x:jf(t,e)})):e&&r.push(i(r)+"rotate("+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+"skewX(",null,n)-2,x:jf(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:jf(t,r)},{i:s-2,x:jf(e,n)})}else(1!==r||1!==n)&&a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r{Uf(),up(),hp=cp(op,"px, ","px)","deg)"),fp=cp(sp,", ",")",")")}));function dp(t){return((t=Math.exp(t))+1/t)/2}var mp,gp=h((()=>{mp=function t(e,r,n){function i(t,i){var a,o,s=t[0],l=t[1],u=t[2],c=i[0],h=i[1],f=i[2],p=c-s,d=h-l,m=p*p+d*d;if(m<1e-12)o=Math.log(f/u)/e,a=function(t){return[s+t*p,l+t*d,u*Math.exp(e*t*o)]};else{var g=Math.sqrt(m),y=(f*f-u*u+n*m)/(2*u*r*g),v=(f*f-u*u-n*m)/(2*f*r*g),x=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(v*v+1)-v);o=(_-x)/e,a=function(t){var n=t*o,i=dp(x),a=u/(r*g)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*n+x)-function(t){return((t=Math.exp(t))-1/t)/2}(x));return[s+a*p,l+a*d,u*i/dp(e*n+x)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var r=Math.max(.001,+e),n=r*r;return t(r,n,n*n)},i}(Math.SQRT2,2,4)}));function yp(t){return function(e,r){var n=t((e=vh(e)).h,(r=vh(r)).h),i=Af(e.s,r.s),a=Af(e.l,r.l),o=Af(e.opacity,r.opacity);return function(t){return e.h=n(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var vp,xp,_p=h((()=>{mf(),Mf(),vp=yp(kf),xp=yp(Af)}));function bp(t,e){var r=Af((t=Uh(t)).l,(e=Uh(e)).l),n=Af(t.a,e.a),i=Af(t.b,e.b),a=Af(t.opacity,e.opacity);return function(e){return t.l=r(e),t.a=n(e),t.b=i(e),t.opacity=a(e),t+""}}var wp=h((()=>{mf(),Mf()}));function Tp(t){return function(e,r){var n=t((e=Wh(e)).h,(r=Wh(r)).h),i=Af(e.c,r.c),a=Af(e.l,r.l),o=Af(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var kp,Ap,Mp=h((()=>{mf(),Mf(),kp=Tp(kf),Ap=Tp(Af)}));function Sp(t){return function e(r){function n(e,n){var i=t((e=af(e)).h,(n=af(n)).h),a=Af(e.s,n.s),o=Af(e.l,n.l),s=Af(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,r)),e.opacity=s(t),e+""}}return r=+r,n.gamma=e,n}(1)}var Ep,Cp,Ip=h((()=>{mf(),Mf(),Ep=Sp(kf),Cp=Sp(Af)}));function Lp(t,e){void 0===e&&(e=t,t=Yf);for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r{Xf()}));function zp(t,e){for(var r=new Array(e),n=0;n{})),Dp={};p(Dp,{interpolate:()=>Yf,interpolateArray:()=>Df,interpolateBasis:()=>yf,interpolateBasisClosed:()=>xf,interpolateCubehelix:()=>Ep,interpolateCubehelixLong:()=>Cp,interpolateDate:()=>Bf,interpolateDiscrete:()=>$f,interpolateHcl:()=>kp,interpolateHclLong:()=>Ap,interpolateHsl:()=>vp,interpolateHslLong:()=>xp,interpolateHue:()=>Kf,interpolateLab:()=>bp,interpolateNumber:()=>jf,interpolateNumberArray:()=>Pf,interpolateObject:()=>Vf,interpolateRgb:()=>Ef,interpolateRgbBasis:()=>Cf,interpolateRgbBasisClosed:()=>If,interpolateRound:()=>tp,interpolateString:()=>Hf,interpolateTransformCss:()=>hp,interpolateTransformSvg:()=>fp,interpolateZoom:()=>mp,piecewise:()=>Lp,quantize:()=>zp});var Rp=h((()=>{Xf(),Ff(),vf(),bf(),Nf(),Jf(),Qf(),Uf(),Of(),qf(),ep(),Wf(),pp(),gp(),Lf(),_p(),wp(),Mp(),Ip(),Pp(),Op()})),Fp=f(((t,e)=>{var r=Qe(),n=q();e.exports=function(t,e,i,a,o){var s=e.data.data,l=s.i,u=o||s.color;if(l>=0){e.i=s.i;var c=i.marker;c.pattern?(!c.colors||!c.pattern.shape)&&(c.color=u,e.color=u):(c.color=u,e.color=u),r.pointStyle(t,i,a,e)}else n.fill(t,u)}})),Bp=f(((t,e)=>{var r=v(),n=q(),i=le(),a=Ka().resizeText,o=Fp();function s(t,e,r,a){var s=e.data.data,l=!e.children,u=s.i,c=i.castOption(r,u,"marker.line.color")||n.defaultLine,h=i.castOption(r,u,"marker.line.width")||0;t.call(o,e,r,a).style("stroke-width",h).call(n.stroke,c).style("opacity",l?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(".trace");a(t,e,"sunburst"),e.each((function(e){var n=r.select(this),i=e[0].trace;n.style("opacity",i.opacity),n.selectAll("path.surface").each((function(e){r.select(this).call(s,e,i,t)}))}))},styleOne:s}})),Np=f((t=>{var e=le(),r=q(),n=pr(),i=br();function a(t){return t.data.data.pid}t.findEntryWithLevel=function(e,r){var n;return r&&e.eachAfter((function(e){if(t.getPtId(e)===r)return n=e.copy()})),n||e},t.findEntryWithChild=function(e,r){var n;return e.eachAfter((function(e){for(var i=e.children||[],a=0;a0)},t.getMaxDepth=function(t){return t.maxdepth>=0?t.maxdepth:1/0},t.isHeader=function(e,r){return!(t.isLeaf(e)||e.depth===r._maxDepth-1)},t.getParent=function(e,r){return t.findEntryWithLevel(e,a(r))},t.listPath=function(e,r){var n=e.parent;if(!n)return[];var i=r?[n.data[r]]:[n];return t.listPath(n,r).concat(i)},t.getPath=function(e){return t.listPath(e,"label").join("/")+"/"},t.formatValue=i.formatPieValue,t.formatPercent=function(t,r){var n=e.formatPercent(t,0);return"0%"===n&&(n=i.formatPiePercent(t,r)),n}})),jp=f(((t,e)=>{var r=v(),n=qt(),i=$e().appendArrayPointValue,a=Or(),o=le(),s=pe(),l=Np(),u=br().formatPieValue;function c(t,e,r){for(var n=t.data.data,a={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o"),name:A||z("name")?v.name:void 0,color:k("hoverlabel.bgcolor")||x.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),fontWeight:k("hoverlabel.font.weight"),fontStyle:k("hoverlabel.font.style"),fontVariant:k("hoverlabel.font.variant"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:I,eventData:h};g&&(F.x0=E-n.rInscribed*n.rpx1,F.x1=E+n.rInscribed*n.rpx1,F.idealAlign=n.pxmid[0]<0?"left":"right"),y&&(F.x=E,F.idealAlign=E<0?"left":"right");var B=[];a.loneHover(F,{container:s._hoverlayer.node(),outerContainer:s._paper.node(),gd:i,inOut_bbox:B}),h[0].bbox=B[0],d._hasHoverLabel=!0}if(y){var N=t.select("path.surface");f.styleOne(N,n,v,i,{hovered:!0})}d._hasHoverEvent=!0,i.emit("plotly_hover",{points:h||[c(n,v,f.eventDataKeys)],event:r.event})}})),t.on("mouseout",(function(e){var n=i._fullLayout,o=i._fullData[d.index],s=r.select(this).datum();if(d._hasHoverEvent&&(e.originalEvent=r.event,i.emit("plotly_unhover",{points:[c(s,o,f.eventDataKeys)],event:r.event}),d._hasHoverEvent=!1),d._hasHoverLabel&&(a.loneUnhover(n._hoverlayer.node()),d._hasHoverLabel=!1),y){var l=t.select("path.surface");f.styleOne(l,s,o,i,{hovered:!1})}})),t.on("click",(function(t){var e=i._fullLayout,o=i._fullData[d.index],u=g&&(l.isHierarchyRoot(t)||l.isLeaf(t)),h=l.getPtId(t),p=l.isEntry(t)?l.findEntryWithChild(m,h):l.findEntryWithLevel(m,h),y=l.getPtId(p),v={points:[c(t,o,f.eventDataKeys)],event:r.event};u||(v.nextLevel=y);var x=s.triggerHandler(i,"plotly_"+d.type+"click",v);if(!1!==x&&e.hovermode&&(i._hoverdata=[c(t,o,f.eventDataKeys)],a.click(i,r.event)),!u&&!1!==x&&!i._dragging&&!i._transitioning){n.call("_storeDirectGUIEdit",o,e._tracePreGUI[o.uid],{level:o.level});var _={data:[{level:y}],traces:[d.index]},b={frame:{redraw:!1,duration:f.transitionTime},transition:{duration:f.transitionTime,easing:f.transitionEasing},mode:"immediate",fromcurrent:!0};a.loneUnhover(e._hoverlayer.node()),n.call("animate",i,_,b)}}))}})),Up=f((t=>{var e=v(),r=Yc(),n=(Rp(),m(Dp)).interpolate,i=Qe(),a=le(),o=Se(),s=Ka(),l=s.recordMinTextSize,u=s.clearMinTextSize,c=Fc(),h=br().getRotationAngle,f=c.computeTransform,p=c.transformInsideText,d=Bp().styleOne,g=to().resizeText,y=jp(),x=qc(),_=Np();function b(s,u,c,m){var g=s._context.staticPlot,v=s._fullLayout,b=!v.uniformtext.mode&&_.hasTransition(m),T=e.select(c).selectAll("g.slice"),k=u[0],A=k.trace,M=k.hierarchy,S=_.findEntryWithLevel(M,A.level),E=_.getMaxDepth(A),C=v._size,I=A.domain,L=C.w*(I.x[1]-I.x[0]),P=C.h*(I.y[1]-I.y[0]),z=.5*Math.min(L,P),O=k.cx=C.l+C.w*(I.x[1]+I.x[0])/2,D=k.cy=C.t+C.h*(1-I.y[0])-P/2;if(!S)return T.remove();var R=null,F={};b&&T.each((function(t){F[_.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!R&&_.isEntry(t)&&(R=t)}));var B=function(t){return r.partition().size([2*Math.PI,t.height+1])(t)}(S).descendants(),N=S.height+1,j=0,U=E;k.hasMultipleRoots&&_.isHierarchyRoot(S)&&(B=B.slice(1),N-=1,j=1,U+=1),B=B.filter((function(t){return t.y1<=U}));var V=h(A.rotation);V&&B.forEach((function(t){t.x0+=V,t.x1+=V}));var q=Math.min(N,E),H=function(t){return(t-j)/q*z},G=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},Z=function(t){return a.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,O,D)},W=function(t){return O+w(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return D+w(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(T=T.data(B,_.getPtId)).enter().append("g").classed("slice",!0),b?T.exit().transition().each((function(){var t=e.select(this);t.select("path.surface").transition().attrTween("d",(function(t){var e=function(t){var e,r=_.getPtId(t),i=F[r],a=F[_.getPtId(S)];if(a){var o=(t.x1>a.x1?2*Math.PI:0)+V;e=t.rpx1X?2*Math.PI:0)+V;e={x0:o,x1:o}}else e={rpx0:z,rpx1:z},a.extendFlat(e,K(t));else e={rpx0:0,rpx1:0};else e={x0:V,x1:V};return n(e,i)}(t);return function(t){return Z(e(t))}})):h.attr("d",Z),c.call(y,S,s,u,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(_.setSliceCursor,s,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:s._transitioning}),h.call(d,r,A,s);var m=a.ensureSingle(c,"g","slicetext"),w=a.ensureSingle(m,"text","",(function(t){t.attr("data-notex",1)})),T=a.ensureUniformFontSize(s,_.determineTextFont(A,r,v.font));w.text(t.formatSliceLabel(r,S,A,u,v)).classed("slicetext",!0).attr("text-anchor","middle").call(i.font,T).call(o.convertToTspans,s);var M=i.bBox(w.node());r.transform=p(M,r,k),r.transform.targetX=W(r),r.transform.targetY=Y(r);var E=function(t,e){var r=t.transform;return f(r,e),r.fontSize=T.size,l(A.type,r,v),a.getTextTransform(r)};b?w.transition().attrTween("transform",(function(t){var e=function(t){var e,r=F[_.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},R)if(t.parent)if(X){var o=t.x1>X?2*Math.PI:0;e.x0=e.x1=o}else a.extendFlat(e,K(t));else e.x0=e.x1=V;else e.x0=e.x1=V;var s=n(e.transform.textPosAngle,t.transform.textPosAngle),u=n(e.rpx1,t.rpx1),c=n(e.x0,t.x0),h=n(e.x1,t.x1),f=n(e.transform.scale,i.scale),p=n(e.transform.rotate,i.rotate),d=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n(e.transform.rCenter,i.rCenter);return function(t){var e=u(t),r=c(t),n=h(t),a=function(t){return m(Math.pow(t,d))}(t),o={pxmid:G(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return l(A.type,i,v),{transform:{targetX:W(o),targetY:Y(o),scale:f(t),rotate:p(t),rCenter:a}}}}(t);return function(t){return E(e(t),M)}})):w.attr("transform",E(r,M))}))}function w(t){return function(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}(t.rpx1,t.transform.textPosAngle)}t.plot=function(t,r,n,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!n,h=!s.uniformtext.mode&&_.hasTransition(n);u("sunburst",s),(a=l.selectAll("g.trace.sunburst").data(r,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),a.order(),h?(i&&(o=i()),e.transition().duration(n.duration).ease(n.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){l.selectAll("g.trace").each((function(e){b(t,e,this,n)}))}))):(a.each((function(e){b(t,e,this,n)})),s.uniformtext.mode&&g(t,s._sunburstlayer.selectAll(".trace"),"sunburst")),c&&a.exit().remove()},t.formatSliceLabel=function(t,e,r,n,i){var o=r.texttemplate,s=r.textinfo;if(!(o||s&&"none"!==s))return"";var l=i.separators,u=n[0],c=t.data.data,h=u.hierarchy,f=_.isHierarchyRoot(t),p=_.getParent(h,t),d=_.getValue(t);if(!o){var m,g=s.split("+"),y=function(t){return-1!==g.indexOf(t)},v=[];if(y("label")&&c.label&&v.push(c.label),c.hasOwnProperty("v")&&y("value")&&v.push(_.formatValue(c.v,l)),!f){y("current path")&&v.push(_.getPath(t.data));var x=0;y("percent parent")&&x++,y("percent entry")&&x++,y("percent root")&&x++;var b=x>1;if(x){var w,T=function(t){m=_.formatPercent(w,l),b&&(m+=" of "+t),v.push(m)};y("percent parent")&&!f&&(w=d/_.getValue(p),T("parent")),y("percent entry")&&(w=d/_.getValue(e),T("entry")),y("percent root")&&(w=d/_.getValue(h),T("root"))}}return y("text")&&(m=a.castOption(r,c.i,"text"),a.isValidTextValue(m)&&v.push(m)),v.join("
")}var k=a.castOption(r,c.i,"texttemplate");if(!k)return"";var A={};c.label&&(A.label=c.label),c.hasOwnProperty("v")&&(A.value=c.v,A.valueLabel=_.formatValue(c.v,l)),A.currentPath=_.getPath(t.data),f||(A.percentParent=d/_.getValue(p),A.percentParentLabel=_.formatPercent(A.percentParent,l),A.parent=_.getPtLabel(p)),A.percentEntry=d/_.getValue(e),A.percentEntryLabel=_.formatPercent(A.percentEntry,l),A.entry=_.getPtLabel(e),A.percentRoot=d/_.getValue(h),A.percentRootLabel=_.formatPercent(A.percentRoot,l),A.root=_.getPtLabel(h),c.hasOwnProperty("color")&&(A.color=c.color);var M=a.castOption(r,c.i,"text");return(a.isValidTextValue(M)||""===M)&&(A.text=M),A.customdata=a.castOption(r,c.i,"customdata"),a.texttemplateString(k,A,i._d3locale,A,r._meta||{})}})),Vp=f(((t,e)=>{e.exports={moduleType:"trace",name:"sunburst",basePlotModule:Vc(),categories:[],animatable:!0,attributes:Hc(),layoutAttributes:Gc(),supplyDefaults:Zc(),supplyLayoutDefaults:Wc(),calc:Xc().calc,crossTraceCalc:Xc().crossTraceCalc,plot:Up().plot,style:Bp().style,colorbar:pi(),meta:{}}})),qp=f(((t,e)=>{e.exports=Vp()})),Hp=f((t=>{var e=ke();t.name="treemap",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),Gp=f(((t,e)=>{e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}})),Zp=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=Pe(),a=ka().attributes,o=Lc(),s=Hc(),l=Gp(),u=D().extendFlat,c=Pt().pattern;e.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:u({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:s.marker.colors,pattern:c,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:s.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:u({},o.textfont,{}),editType:"calc"},text:o.text,textinfo:s.textinfo,texttemplate:n({editType:"plot"},{keys:l.eventDataKeys.concat(["label","value"])}),hovertext:o.hovertext,hoverinfo:s.hoverinfo,hovertemplate:r({},{keys:l.eventDataKeys}),textfont:o.textfont,insidetextfont:o.insidetextfont,outsidetextfont:u({},o.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:o.sort,root:s.root,domain:a({name:"treemap",trace:!0,editType:"calc"})}})),Wp=f(((t,e)=>{e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}})),Yp=f(((t,e)=>{var r=le(),n=Zp(),i=q(),a=ka().defaults,o=Ya().handleText,s=Ha().TEXTPAD,l=Pc().handleMarkerDefaults,u=We(),c=u.hasColorscale,h=u.handleDefaults;e.exports=function(t,e,u,f){function p(i,a){return r.coerce(t,e,n,i,a)}var d=p("labels"),m=p("parents");if(d&&d.length&&m&&m.length){var g=p("values");g&&g.length?p("branchvalues"):p("count"),p("level"),p("maxdepth"),"squarify"===p("tiling.packing")&&p("tiling.squarifyratio"),p("tiling.flip"),p("tiling.pad");var y=p("text");p("texttemplate"),e.texttemplate||p("textinfo",r.isArrayOrTypedArray(y)?"text+label":"label"),p("hovertext"),p("hovertemplate");var v=p("pathbar.visible");o(t,e,f,p,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition");var x=-1!==e.textposition.indexOf("bottom");l(t,e,f,p),(e._hasColorscale=c(t,"marker","colors")||(t.marker||{}).coloraxis)?h(t,e,f,p,{prefix:"marker.",cLetter:"c"}):p("marker.depthfade",!(e.marker.colors||[]).length);var _=2*e.textfont.size;p("marker.pad.t",x?_/4:_),p("marker.pad.l",_/4),p("marker.pad.r",_/4),p("marker.pad.b",x?_:_/4),p("marker.cornerradius"),e._hovered={marker:{line:{width:2,color:i.contrast(f.paper_bgcolor)}}},v&&(p("pathbar.thickness",e.pathbar.textfont.size+2*s),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),p("root.color"),a(e,f,p),e._length=null}else e.visible=!1}})),Xp=f(((t,e)=>{var r=le(),n=Wp();e.exports=function(t,e){function i(i,a){return r.coerce(t,e,n,i,a)}i("treemapcolorway",e.colorway),i("extendtreemapcolors")}})),$p=f((t=>{var e=Xc();t.calc=function(t,r){return e.calc(t,r)},t.crossTraceCalc=function(t){return e._runCrossTraceCalc("treemap",t)}})),Jp=f(((t,e)=>{e.exports=function t(e,r,n){var i;n.swapXY&&(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&&(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&&(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o{var r=Yc(),n=Jp();e.exports=function(t,e,i){var a,o=i.flipX,s=i.flipY,l="dice-slice"===i.packing,u=i.pad[s?"bottom":"top"],c=i.pad[o?"right":"left"],h=i.pad[o?"left":"right"],f=i.pad[s?"top":"bottom"];l&&(a=c,c=u,u=a,a=h,h=f,f=a);var p=r.treemap().tile(function(t,e){switch(t){case"squarify":return r.treemapSquarify.ratio(e);case"binary":return r.treemapBinary;case"dice":return r.treemapDice;case"slice":return r.treemapSlice;default:return r.treemapSliceDice}}(i.packing,i.squarifyratio)).paddingInner(i.pad.inner).paddingLeft(c).paddingRight(h).paddingTop(u).paddingBottom(f).size(l?[e[1],e[0]]:e)(t);return(l||o||s)&&n(p,e,{swapXY:l,flipX:o,flipY:s}),p}})),Qp=f(((t,e)=>{var r=v(),n=q(),i=le(),a=Np(),o=Ka().resizeText,s=Fp();function l(t,e,r,o,l){var u,c,h=(l||{}).hovered,f=e.data.data,p=f.i,d=f.color,m=a.isHierarchyRoot(e),g=1;if(h)u=r._hovered.marker.line.color,c=r._hovered.marker.line.width;else if(m&&d===r.root.color)g=100,u="rgba(0,0,0,0)",c=0;else if(u=i.castOption(r,p,"marker.line.color")||n.defaultLine,c=i.castOption(r,p,"marker.line.width")||0,!r._hasColorscale&&!e.onPathbar){var y=r.marker.depthfade;if(y){var v,x=n.combine(n.addOpacity(r._backgroundColor,.75),d);if(!0===y){var _=a.getMaxDepth(r);v=isFinite(_)?a.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else v=e.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var b=0;b{var r=v(),n=le(),i=Qe(),a=Se(),o=Kp(),s=Qp().styleOne,l=Gp(),u=Np(),c=jp(),h=!0;e.exports=function(t,e,f,p,d){var m=d.barDifY,g=d.width,y=d.height,v=d.viewX,x=d.viewY,_=d.pathSlice,b=d.toMoveInsideSlice,w=d.strTransform,T=d.hasTransition,k=d.handleSlicesExit,A=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,S={},E=t._context.staticPlot,C=t._fullLayout,I=e[0],L=I.trace,P=I.hierarchy,z=g/L._entryDepth,O=u.listPath(f.data,"id"),D=o(P.copy(),[g,y],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(D=D.filter((function(t){var e=O.indexOf(t.data.id);return-1!==e&&(t.x0=z*e,t.x1=z*(e+1),t.y0=m,t.y1=m+y,t.onPathbar=!0,!0)}))).reverse(),(p=p.data(D,u.getPtId)).enter().append("g").classed("pathbar",!0),k(p,h,S,[g,y],_),p.order();var R=p;T&&(R=R.transition().each("end",(function(){var e=r.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),R.each((function(o){o._x0=v(o.x0),o._x1=v(o.x1),o._y0=x(o.y0),o._y1=x(o.y1),o._hoverX=v(o.x1-Math.min(g,y)/2),o._hoverY=x(o.y1-y/2);var p=r.select(this),d=n.ensureSingle(p,"path","surface",(function(t){t.style("pointer-events",E?"none":"all")}));T?d.transition().attrTween("d",(function(t){var e=A(t,h,S,[g,y]);return function(t){return _(e(t))}})):d.attr("d",_),p.call(c,f,t,e,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),d.call(s,o,L,t,{hovered:!1}),o._text=(u.getPtLabel(o)||"").split("
").join(" ")||"";var m=n.ensureSingle(p,"g","slicetext"),k=n.ensureSingle(m,"text","",(function(t){t.attr("data-notex",1)})),I=n.ensureUniformFontSize(t,u.determineTextFont(L,o,C.font,{onPathbar:!0}));k.text(o._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,I).call(a.convertToTspans,t),o.textBB=i.bBox(k.node()),o.transform=b(o,{fontSize:I.size,onPathbar:!0}),o.transform.fontSize=I.size,T?k.transition().attrTween("transform",(function(t){var e=M(t,h,S,[g,y]);return function(t){return w(e(t))}})):k.attr("transform",w(o))}))}})),ed=f(((t,e)=>{var r=v(),n=(Rp(),m(Dp)).interpolate,i=Np(),a=le(),o=Ha().TEXTPAD,s=eo().toMoveInsideBar,l=Ka().recordMinTextSize,u=Gp(),c=td();function h(t){return i.isHierarchyRoot(t)?"":i.getPtId(t)}e.exports=function(t,e,f,p,d){var m=t._fullLayout,g=e[0],y=g.trace,v="icicle"===y.type,x=g.hierarchy,_=i.findEntryWithLevel(x,y.level),b=r.select(f),w=b.selectAll("g.pathbar"),T=b.selectAll("g.slice");if(!_)return w.remove(),void T.remove();var k=i.isHierarchyRoot(_),A=!m.uniformtext.mode&&i.hasTransition(p),M=i.getMaxDepth(y),S=m._size,E=y.domain,C=S.w*(E.x[1]-E.x[0]),I=S.h*(E.y[1]-E.y[0]),L=C,P=y.pathbar.thickness,z=y.marker.line.width+u.gapWithPathbar,O=y.pathbar.visible?y.pathbar.side.indexOf("bottom")>-1?I+z:-(P+z):0,D={x0:L,x1:L,y0:O,y1:O+P},R=function(t,e,r){var n=y.tiling.pad,i=function(t){return t-n<=e.x0},a=function(t){return t+n>=e.x1},o=function(t){return t-n<=e.y0},s=function(t){return t+n>=e.y1};return t.x0===e.x0&&t.x1===e.x1&&t.y0===e.y0&&t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},N={},j=null,U=function(t,e){return e?B[h(t)]:N[h(t)]};g.hasMultipleRoots&&k&&M++,y._maxDepth=M,y._backgroundColor=m.paper_bgcolor,y._entryDepth=_.data.depth,y._atRootLevel=k;var V=-C/2+S.l+S.w*(E.x[1]+E.x[0])/2,q=-I/2+S.t+S.h*(1-(E.y[1]+E.y[0])/2),H=function(t){return V+t},G=function(t){return q+t},Z=G(0),W=H(0),Y=function(t){return W+t},X=function(t){return Z+t};function $(t,e){return t+","+e}var J=Y(0),K=function(t){t.x=Math.max(J,t.x)},Q=y.pathbar.edgeshape,tt=y[v?"tiling":"marker"].pad,et=function(t){return-1!==y.textposition.indexOf(t)},rt=et("top"),nt=et("left"),it=et("right"),at=et("bottom"),ot=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,u=t.textBB,c=rt||e.isHeader&&!at?"start":at?"end":"middle",h=et("right"),f=et("left")||e.onPathbar?-1:h?1:0;if(e.isHeader){if((r+=(v?tt:tt.l)-o)>=(n-=(v?tt:tt.r)-o)){var p=(r+n)/2;r=p,n=p}var d;at?i<(d=a-(v?tt:tt.b))&&d"===Q?(l.x-=a,u.x-=a,c.x-=a,h.x-=a):"/"===Q?(c.x-=a,h.x-=a,o.x-=a/2,s.x-=a/2):"\\"===Q?(l.x-=a,u.x-=a,o.x-=a/2,s.x-=a/2):"<"===Q&&(o.x-=a,s.x-=a),K(l),K(h),K(o),K(u),K(c),K(s),"M"+$(l.x,l.y)+"L"+$(u.x,u.y)+"L"+$(s.x,s.y)+"L"+$(c.x,c.y)+"L"+$(h.x,h.y)+"L"+$(o.x,o.y)+"Z"},toMoveInsideSlice:ot,makeUpdateSliceInterpolator:lt,makeUpdateTextInterpolator:ut,handleSlicesExit:ct,hasTransition:A,strTransform:ht}):w.remove()}})),rd=f(((t,e)=>{var r=v(),n=Np(),i=Ka().clearMinTextSize,a=to().resizeText,o=ed();e.exports=function(t,e,s,l,u){var c,h,f=u.type,p=u.drawDescendants,d=t._fullLayout,m=d["_"+f+"layer"],g=!s;i(f,d),(c=m.selectAll("g.trace."+f).data(e,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed(f,!0),c.order(),!d.uniformtext.mode&&n.hasTransition(s)?(l&&(h=l()),r.transition().duration(s.duration).ease(s.easing).each("end",(function(){h&&h()})).each("interrupt",(function(){h&&h()})).each((function(){m.selectAll("g.trace").each((function(e){o(t,e,this,s,p)}))}))):(c.each((function(e){o(t,e,this,s,p)})),d.uniformtext.mode&&a(t,m.selectAll(".trace"),f)),g&&c.exit().remove()}})),nd=f(((t,e)=>{var r=v(),n=le(),i=Qe(),a=Se(),o=Kp(),s=Qp().styleOne,l=Gp(),u=Np(),c=jp(),h=Up().formatSliceLabel,f=!1;e.exports=function(t,e,p,d,m){var g=m.width,y=m.height,v=m.viewX,x=m.viewY,_=m.pathSlice,b=m.toMoveInsideSlice,w=m.strTransform,T=m.hasTransition,k=m.handleSlicesExit,A=m.makeUpdateSliceInterpolator,M=m.makeUpdateTextInterpolator,S=m.prevEntry,E=t._context.staticPlot,C=t._fullLayout,I=e[0].trace,L=-1!==I.textposition.indexOf("left"),P=-1!==I.textposition.indexOf("right"),z=-1!==I.textposition.indexOf("bottom"),O=!z&&!I.marker.pad.t||z&&!I.marker.pad.b,D=o(p,[g,y],{packing:I.tiling.packing,squarifyratio:I.tiling.squarifyratio,flipX:I.tiling.flip.indexOf("x")>-1,flipY:I.tiling.flip.indexOf("y")>-1,pad:{inner:I.tiling.pad,top:I.marker.pad.t,left:I.marker.pad.l,right:I.marker.pad.r,bottom:I.marker.pad.b}}).descendants(),R=1/0,F=-1/0;D.forEach((function(t){var e=t.depth;e>=I._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(R=Math.min(R,e),F=Math.max(F,e))})),d=d.data(D,u.getPtId),I._maxVisibleLayers=isFinite(F)?F-R+1:0,d.enter().append("g").classed("slice",!0),k(d,f,{},[g,y],_),d.order();var B=null;if(T&&S){var N=u.getPtId(S);d.each((function(t){null===B&&u.getPtId(t)===N&&(B={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var j=function(){return B||{x0:0,x1:g,y0:0,y1:y}},U=d;return T&&(U=U.transition().each("end",(function(){var e=r.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),U.each((function(o){var d=u.isHeader(o,I);o._x0=v(o.x0),o._x1=v(o.x1),o._y0=x(o.y0),o._y1=x(o.y1),o._hoverX=v(o.x1-I.marker.pad.r),o._hoverY=x(z?o.y1-I.marker.pad.b/2:o.y0+I.marker.pad.t/2);var m=r.select(this),k=n.ensureSingle(m,"path","surface",(function(t){t.style("pointer-events",E?"none":"all")}));T?k.transition().attrTween("d",(function(t){var e=A(t,f,j(),[g,y]);return function(t){return _(e(t))}})):k.attr("d",_),m.call(c,p,t,e,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),k.call(s,o,I,t,{hovered:!1}),o.x0===o.x1||o.y0===o.y1?o._text="":o._text=d?O?"":u.getPtLabel(o)||"":h(o,p,I,e,C)||"";var S=n.ensureSingle(m,"g","slicetext"),D=n.ensureSingle(S,"text","",(function(t){t.attr("data-notex",1)})),R=n.ensureUniformFontSize(t,u.determineTextFont(I,o,C.font)),F=o._text||" ",B=d&&-1===F.indexOf("
");D.text(F).classed("slicetext",!0).attr("text-anchor",P?"end":L||B?"start":"middle").call(i.font,R).call(a.convertToTspans,t),o.textBB=i.bBox(D.node()),o.transform=b(o,{fontSize:R.size,isHeader:d}),o.transform.fontSize=R.size,T?D.transition().attrTween("transform",(function(t){var e=M(t,f,j(),[g,y]);return function(t){return w(e(t))}})):D.attr("transform",w(o))})),B}})),id=f(((t,e)=>{var r=rd(),n=nd();e.exports=function(t,e,i,a){return r(t,e,i,a,{type:"treemap",drawDescendants:n})}})),ad=f(((t,e)=>{e.exports={moduleType:"trace",name:"treemap",basePlotModule:Hp(),categories:[],animatable:!0,attributes:Zp(),layoutAttributes:Wp(),supplyDefaults:Yp(),supplyLayoutDefaults:Xp(),calc:$p().calc,crossTraceCalc:$p().crossTraceCalc,plot:id(),style:Qp().style,colorbar:pi(),meta:{}}})),od=f(((t,e)=>{e.exports=ad()})),sd=f((t=>{var e=ke();t.name="icicle",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),ld=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=Pe(),a=ka().attributes,o=Lc(),s=Hc(),l=Zp(),u=Gp(),c=D().extendFlat,h=Pt().pattern;e.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:l.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:c({colors:s.marker.colors,line:s.marker.line,pattern:h,editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),leaf:s.leaf,pathbar:l.pathbar,text:o.text,textinfo:s.textinfo,texttemplate:n({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),hovertext:o.hovertext,hoverinfo:s.hoverinfo,hovertemplate:r({},{keys:u.eventDataKeys}),textfont:o.textfont,insidetextfont:o.insidetextfont,outsidetextfont:l.outsidetextfont,textposition:l.textposition,sort:o.sort,root:s.root,domain:a({name:"icicle",trace:!0,editType:"calc"})}})),ud=f(((t,e)=>{e.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}})),cd=f(((t,e)=>{var r=le(),n=ld(),i=q(),a=ka().defaults,o=Ya().handleText,s=Ha().TEXTPAD,l=Pc().handleMarkerDefaults,u=We(),c=u.hasColorscale,h=u.handleDefaults;e.exports=function(t,e,u,f){function p(i,a){return r.coerce(t,e,n,i,a)}var d=p("labels"),m=p("parents");if(d&&d.length&&m&&m.length){var g=p("values");g&&g.length?p("branchvalues"):p("count"),p("level"),p("maxdepth"),p("tiling.orientation"),p("tiling.flip"),p("tiling.pad");var y=p("text");p("texttemplate"),e.texttemplate||p("textinfo",r.isArrayOrTypedArray(y)?"text+label":"label"),p("hovertext"),p("hovertemplate");var v=p("pathbar.visible");o(t,e,f,p,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition"),l(t,e,f,p);var x=e._hasColorscale=c(t,"marker","colors")||(t.marker||{}).coloraxis;x&&h(t,e,f,p,{prefix:"marker.",cLetter:"c"}),p("leaf.opacity",x?1:.7),e._hovered={marker:{line:{width:2,color:i.contrast(f.paper_bgcolor)}}},v&&(p("pathbar.thickness",e.pathbar.textfont.size+2*s),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),p("root.color"),a(e,f,p),e._length=null}else e.visible=!1}})),hd=f(((t,e)=>{var r=le(),n=ud();e.exports=function(t,e){function i(i,a){return r.coerce(t,e,n,i,a)}i("iciclecolorway",e.colorway),i("extendiciclecolors")}})),fd=f((t=>{var e=Xc();t.calc=function(t,r){return e.calc(t,r)},t.crossTraceCalc=function(t){return e._runCrossTraceCalc("icicle",t)}})),pd=f(((t,e)=>{var r=Yc(),n=Jp();e.exports=function(t,e,i){var a=i.flipX,o=i.flipY,s="h"===i.orientation,l=i.maxDepth,u=e[0],c=e[1];l&&(u=(t.height+1)*e[0]/Math.min(t.height+1,l),c=(t.height+1)*e[1]/Math.min(t.height+1,l));var h=r.partition().padding(i.pad.inner).size(s?[e[1],u]:[e[0],c])(t);return(s||a||o)&&n(h,e,{swapXY:s,flipX:a,flipY:o}),h}})),dd=f(((t,e)=>{var r=v(),n=q(),i=le(),a=Ka().resizeText,o=Fp();function s(t,e,r,a){var s=e.data.data,l=!e.children,u=s.i,c=i.castOption(r,u,"marker.line.color")||n.defaultLine,h=i.castOption(r,u,"marker.line.width")||0;t.call(o,e,r,a).style("stroke-width",h).call(n.stroke,c).style("opacity",l?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._iciclelayer.selectAll(".trace");a(t,e,"icicle"),e.each((function(e){var n=r.select(this),i=e[0].trace;n.style("opacity",i.opacity),n.selectAll("path.surface").each((function(e){r.select(this).call(s,e,i,t)}))}))},styleOne:s}})),md=f(((t,e)=>{var r=v(),n=le(),i=Qe(),a=Se(),o=pd(),s=dd().styleOne,l=Gp(),u=Np(),c=jp(),h=Up().formatSliceLabel,f=!1;e.exports=function(t,e,p,d,m){var g=m.width,y=m.height,v=m.viewX,x=m.viewY,_=m.pathSlice,b=m.toMoveInsideSlice,w=m.strTransform,T=m.hasTransition,k=m.handleSlicesExit,A=m.makeUpdateSliceInterpolator,M=m.makeUpdateTextInterpolator,S=m.prevEntry,E=t._context.staticPlot,C=t._fullLayout,I=e[0].trace,L=-1!==I.textposition.indexOf("left"),P=-1!==I.textposition.indexOf("right"),z=-1!==I.textposition.indexOf("bottom"),O=o(p,[g,y],{flipX:I.tiling.flip.indexOf("x")>-1,flipY:I.tiling.flip.indexOf("y")>-1,orientation:I.tiling.orientation,pad:{inner:I.tiling.pad},maxDepth:I._maxDepth}).descendants(),D=1/0,R=-1/0;O.forEach((function(t){var e=t.depth;e>=I._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(D=Math.min(D,e),R=Math.max(R,e))})),d=d.data(O,u.getPtId),I._maxVisibleLayers=isFinite(R)?R-D+1:0,d.enter().append("g").classed("slice",!0),k(d,f,{},[g,y],_),d.order();var F=null;if(T&&S){var B=u.getPtId(S);d.each((function(t){null===F&&u.getPtId(t)===B&&(F={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var N=function(){return F||{x0:0,x1:g,y0:0,y1:y}},j=d;return T&&(j=j.transition().each("end",(function(){var e=r.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),j.each((function(o){o._x0=v(o.x0),o._x1=v(o.x1),o._y0=x(o.y0),o._y1=x(o.y1),o._hoverX=v(o.x1-I.tiling.pad),o._hoverY=x(z?o.y1-I.tiling.pad/2:o.y0+I.tiling.pad/2);var d=r.select(this),m=n.ensureSingle(d,"path","surface",(function(t){t.style("pointer-events",E?"none":"all")}));T?m.transition().attrTween("d",(function(t){var e=A(t,f,N(),[g,y],{orientation:I.tiling.orientation,flipX:I.tiling.flip.indexOf("x")>-1,flipY:I.tiling.flip.indexOf("y")>-1});return function(t){return _(e(t))}})):m.attr("d",_),d.call(c,p,t,e,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),m.call(s,o,I,t,{hovered:!1}),o.x0===o.x1||o.y0===o.y1?o._text="":o._text=h(o,p,I,e,C)||"";var k=n.ensureSingle(d,"g","slicetext"),S=n.ensureSingle(k,"text","",(function(t){t.attr("data-notex",1)})),O=n.ensureUniformFontSize(t,u.determineTextFont(I,o,C.font));S.text(o._text||" ").classed("slicetext",!0).attr("text-anchor",P?"end":L?"start":"middle").call(i.font,O).call(a.convertToTspans,t),o.textBB=i.bBox(S.node()),o.transform=b(o,{fontSize:O.size}),o.transform.fontSize=O.size,T?S.transition().attrTween("transform",(function(t){var e=M(t,f,N(),[g,y]);return function(t){return w(e(t))}})):S.attr("transform",w(o))})),F}})),gd=f(((t,e)=>{var r=rd(),n=md();e.exports=function(t,e,i,a){return r(t,e,i,a,{type:"icicle",drawDescendants:n})}})),yd=f(((t,e)=>{e.exports={moduleType:"trace",name:"icicle",basePlotModule:sd(),categories:[],animatable:!0,attributes:ld(),layoutAttributes:ud(),supplyDefaults:cd(),supplyLayoutDefaults:hd(),calc:fd().calc,crossTraceCalc:fd().crossTraceCalc,plot:gd(),style:dd().style,colorbar:pi(),meta:{}}})),vd=f(((t,e)=>{e.exports=yd()})),xd=f((t=>{var e=ke();t.name="funnelarea",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),_d=f(((t,e)=>{var r=Lc(),n=j(),i=ka().attributes,a=Ot().hovertemplateAttrs,o=Ot().texttemplateAttrs,s=D().extendFlat;e.exports={labels:r.labels,label0:r.label0,dlabel:r.dlabel,values:r.values,marker:{colors:r.marker.colors,line:{color:s({},r.marker.line.color,{dflt:null}),width:s({},r.marker.line.width,{dflt:1}),editType:"calc"},pattern:r.marker.pattern,editType:"calc"},text:r.text,hovertext:r.hovertext,scalegroup:s({},r.scalegroup,{}),textinfo:s({},r.textinfo,{flags:["label","text","value","percent"]}),texttemplate:o({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:s({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:a({},{keys:["label","color","value","text","percent"]}),textposition:s({},r.textposition,{values:["inside","none"],dflt:"inside"}),textfont:r.textfont,insidetextfont:r.insidetextfont,title:{text:r.title.text,font:r.title.font,position:s({},r.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}})),bd=f(((t,e)=>{var r=zc().hiddenlabels;e.exports={hiddenlabels:r,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}})),wd=f(((t,e)=>{var r=le(),n=_d(),i=ka().defaults,a=Ya().handleText,o=Pc().handleLabelsAndValues,s=Pc().handleMarkerDefaults;e.exports=function(t,e,l,u){function c(i,a){return r.coerce(t,e,n,i,a)}var h=c("labels"),f=c("values"),p=o(h,f),d=p.len;if(e._hasLabels=p.hasLabels,e._hasValues=p.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),d){e._length=d,s(t,e,u,c),c("scalegroup");var m,g=c("text"),y=c("texttemplate");if(y||(m=c("textinfo",Array.isArray(g)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),y||m&&"none"!==m){var v=c("textposition");a(t,e,u,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else"none"===m&&c("textposition","none");i(e,u,c),c("title.text")&&(c("title.position"),r.coerceFont(c,"title.font",u.font)),c("aspectratio"),c("baseratio")}else e.visible=!1}})),Td=f(((t,e)=>{var r=le(),n=bd();e.exports=function(t,e){function i(i,a){return r.coerce(t,e,n,i,a)}i("hiddenlabels"),i("funnelareacolorway",e.colorway),i("extendfunnelareacolors")}})),kd=f(((t,e)=>{var r=Dc();e.exports={calc:function(t,e){return r.calc(t,e)},crossTraceCalc:function(t){r.crossTraceCalc(t,{type:"funnelarea"})}}})),Ad=f(((t,e)=>{var r=v(),n=Qe(),i=le(),a=i.strScale,o=i.strTranslate,s=Se(),l=eo().toMoveInsideBar,u=Ka(),c=u.recordMinTextSize,h=u.clearMinTextSize,f=br(),p=Fc(),d=p.attachFxHandlers,m=p.determineInsideTextFont,g=p.layoutAreas,y=p.prerenderTitles,x=p.positionTitleOutside,_=p.formatSliceLabel;function b(t,e){return"l"+(e[0]-t[0])+","+(e[1]-t[1])}function w(t,e){return[.5*(t[0]+e[0]),.5*(t[1]+e[1])]}e.exports=function(t,e){var u=t._context.staticPlot,p=t._fullLayout;h("funnelarea",p),y(e,t),g(e,p._size),i.makeTraceGroups(p._funnelarealayer,e,"trace").each((function(e){var h=r.select(this),g=e[0],y=g.trace;(function(t){if(t.length){var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a,o,s,l=Math.pow(i,2),u=e.vTotal,c=u,h=u*l/(1-l)/u,f=[];for(f.push(S()),o=t.length-1;o>-1;o--)if(!(s=t[o]).hidden){var p=s.v/c;h+=p,f.push(S())}var d=1/0,m=-1/0;for(o=0;o-1;o--)if(!(s=t[o]).hidden){var A=f[k+=1][0],M=f[k][1];s.TL=[-A,M],s.TR=[A,M],s.BL=b,s.BR=T,s.pxmid=w(s.TR,s.BR),b=s.TL,T=s.TR}}function S(){var t=function(){var t=Math.sqrt(h);return{x:t,y:-t}}();return[t.x,t.y]}})(e),h.each((function(){var h=r.select(this).selectAll("g.slice").data(e);h.enter().append("g").classed("slice",!0),h.exit().remove(),h.each((function(a,o){if(a.hidden)r.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=y.index;var h=g.cx,v=g.cy,x=r.select(this),w=x.selectAll("path.surface").data([a]);w.enter().append("path").classed("surface",!0).style({"pointer-events":u?"none":"all"}),x.call(d,t,e);var T="M"+(h+a.TR[0])+","+(v+a.TR[1])+b(a.TR,a.BR)+b(a.BR,a.BL)+b(a.BL,a.TL)+"Z";w.attr("d",T),_(t,a,g);var k=f.castOption(y.textposition,a.pts),A=x.selectAll("g.slicetext").data(a.text&&"none"!==k?[0]:[]);A.enter().append("g").classed("slicetext",!0),A.exit().remove(),A.each((function(){var u=i.ensureSingle(r.select(this),"text","",(function(t){t.attr("data-notex",1)})),f=i.ensureUniformFontSize(t,m(y,a,p.font));u.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(n.font,f).call(s.convertToTspans,t);var d,g,x,_=n.bBox(u.node()),b=Math.min(a.BL[1],a.BR[1])+v,w=Math.max(a.TL[1],a.TR[1])+v;g=Math.max(a.TL[0],a.BL[0])+h,x=Math.min(a.TR[0],a.BR[0])+h,(d=l(g,x,b,w,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=f.size,c(y.type,d,p),e[o].transform=d,i.setTransormAndDisplay(u,d)}))}}));var v=r.select(this).selectAll("g.titletext").data(y.title.text?[0]:[]);v.enter().append("g").classed("titletext",!0),v.exit().remove(),v.each((function(){var e=i.ensureSingle(r.select(this),"text","",(function(t){t.attr("data-notex",1)})),l=y.title.text;y._meta&&(l=i.templateString(l,y._meta)),e.text(l).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(n.font,y.title.font).call(s.convertToTspans,t);var u=x(g,p._size);e.attr("transform",o(u.x,u.y)+a(Math.min(1,u.scale))+o(u.tx,u.ty))}))}))}))}})),Md=f(((t,e)=>{var r=v(),n=Tr(),i=Ka().resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(".trace");i(t,e,"funnelarea"),e.each((function(e){var i=e[0].trace,a=r.select(this);a.style({opacity:i.opacity}),a.selectAll("path.surface").each((function(e){r.select(this).call(n,e,i,t)}))}))}})),Sd=f(((t,e)=>{e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:xd(),categories:["pie-like","funnelarea","showLegend"],attributes:_d(),layoutAttributes:bd(),supplyDefaults:wd(),supplyLayoutDefaults:Td(),calc:kd().calc,crossTraceCalc:kd().crossTraceCalc,plot:Ad(),style:Md(),styleOne:Tr(),meta:{}}})),Ed=f(((t,e)=>{e.exports=Sd()})),Cd=f(((t,e)=>{!function(){var t={1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},4793:function(t,e,r){function n(t,e){for(var r=0;rf)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,d.prototype),e}function d(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return y(t)}return m(t,e,r)}function m(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!d.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|b(t,e),n=p(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(et(t,Uint8Array)){var e=new Uint8Array(t);return x(e.buffer,e.byteOffset,e.byteLength)}return v(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(t));if(et(t,ArrayBuffer)||t&&et(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(et(t,SharedArrayBuffer)||t&&et(t.buffer,SharedArrayBuffer)))return x(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return d.from(n,e,r);var i=function(t){if(d.isBuffer(t)){var e=0|_(t.length),r=p(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||rt(t.length)?p(0):v(t):"Buffer"===t.type&&Array.isArray(t.data)?v(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return d.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(t))}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function y(t){return g(t),p(t<0?0:0|_(t))}function v(t){for(var e=t.length<0?0:0|_(t.length),r=p(e),n=0;n=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|t}function b(t,e){if(d.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||et(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+l(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return L(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function T(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function k(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),rt(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=d.from(e,n)),d.isBuffer(e))return 0===e.length?-1:A(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):A(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function A(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var h=!0,f=0;fi&&(n=i):n=i;var a,o=e.length;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function L(t,e,r){return 0===e&&r===t.length?u.fromByteArray(t):u.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:a>223?3:a>191?2:1;if(i+s<=r){var l=void 0,u=void 0,c=void 0,h=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(l=t[i+1]))&&(h=(31&a)<<6|63&l)>127&&(o=h);break;case 3:l=t[i+1],u=t[i+2],128==(192&l)&&128==(192&u)&&(h=(15&a)<<12|(63&l)<<6|63&u)>2047&&(h<55296||h>57343)&&(o=h);break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(h=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&h<1114112&&(o=h)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){var e=t.length;if(e<=z)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn.length?(d.isBuffer(a)||(a=d.from(a)),a.copy(n,i)):Uint8Array.prototype.set.call(n,a,i);else{if(!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},d.byteLength=b,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},h&&(d.prototype[h]=d.prototype.inspect),d.prototype.compare=function(t,e,r,n,i){if(et(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+l(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),c=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return M(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,i,a){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function j(t,e,r,n,i){Y(e,n,i,t,r,7);var a=Number(e&BigInt(4294967295));t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a;var o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function U(t,e,r,n,i){Y(e,n,i,t,r,7);var a=Number(e&BigInt(4294967295));t[r+7]=a,a>>=8,t[r+6]=a,a>>=8,t[r+5]=a,a>>=8,t[r+4]=a;var o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function V(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(t,e,r,n,i){return e=+e,r>>>=0,i||V(t,0,r,4),c.write(t,e,r,n,23,4),r+4}function H(t,e,r,n,i){return e=+e,r>>>=0,i||V(t,0,r,8),c.write(t,e,r,n,52,8),r+8}d.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},d.prototype.readUint8=d.prototype.readUInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),this[t]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readBigUInt64LE=it((function(t){X(t>>>=0,"offset");var e=this[t],r=this[t+7];(void 0===e||void 0===r)&&$(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),i=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<>>=0,"offset");var e=this[t],r=this[t+7];(void 0===e||void 0===r)&&$(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],i=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<>>=0,e>>>=0,r||B(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},d.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||B(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},d.prototype.readInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){t>>>=0,e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt16BE=function(t,e){t>>>=0,e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readBigInt64LE=it((function(t){X(t>>>=0,"offset");var e=this[t],r=this[t+7];(void 0===e||void 0===r)&&$(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<>>=0,"offset");var e=this[t],r=this[t+7];(void 0===e||void 0===r)&&$(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<>>=0,e||B(t,4,this.length),c.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,e){return t>>>=0,e||B(t,4,this.length),c.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,e){return t>>>=0,e||B(t,8,this.length),c.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,e){return t>>>=0,e||B(t,8,this.length),c.read(this,t,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},d.prototype.writeUint8=d.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,255,0),this[e]=255&t,e+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},d.prototype.writeBigUInt64LE=it((function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeBigUInt64BE=it((function(t){return U(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>>=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},d.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},d.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},d.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},d.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},d.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},d.prototype.writeBigInt64LE=it((function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeBigInt64BE=it((function(t){return U(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeFloatLE=function(t,e,r){return q(this,t,e,!0,r)},d.prototype.writeFloatBE=function(t,e,r){return q(this,t,e,!1,r)},d.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},d.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},d.prototype.copy=function(t,e,r,n){if(!d.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&0!==n&&(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function Y(t,e,r,n,i,a){if(t>r||t3?0===e||e===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(e).concat(s," and <= ").concat(r).concat(s),new G.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){X(e,"offset"),(void 0===t[e]||void 0===t[e+r])&&$(e,t.length-(r+1))}(n,i,a)}function X(t,e){if("number"!=typeof t)throw new G.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,r){throw Math.floor(t)!==t?(X(t,r),new G.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(l(e))}),TypeError),Z("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=W(String(r)):"bigint"==typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=W(i)),i+="n"),n+" It must be ".concat(e,". Received ").concat(i)}),RangeError);var J=/[^+/0-9A-Za-z-_]/g;function K(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Q(t){return u.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function tt(t,e,r,n){var i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function et(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function rt(t){return t!=t}var nt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}();function it(t){return"undefined"==typeof BigInt?at:t}function at(){throw new Error("BigInt not supported")}},9216:function(t){t.exports=i,t.exports.isMobile=i,t.exports.default=i;var e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,n=/android|ipad|playbook|silk/i;function i(t){t||(t={});var i=t.ua;if(!i&&"undefined"!=typeof navigator&&(i=navigator.userAgent),i&&i.headers&&"string"==typeof i.headers["user-agent"]&&(i=i.headers["user-agent"]),"string"!=typeof i)return!1;var a=e.test(i)&&!r.test(i)||!!t.tablet&&n.test(i);return!a&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==i.indexOf("Macintosh")&&-1!==i.indexOf("Safari")&&(a=!0),a}},6296:function(t,e,r){t.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],u=t.mode||"turntable",c=n(),h=i(),f=a();return c.setDistanceLimits(l[0],l[1]),c.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),new o({turntable:c,orbit:h,matrix:f},u)};var n=r(7261),i=r(9977),a=r(1811);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode="turntable",this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;s.flush=function(t){for(var e=this._controllerList,r=0;r0?o-4:o;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===l&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===l&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,l=n-i;sl?l:s+o));return 1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var n,i=[],a=e;a0?u=u.ushln(h):h<0&&(c=c.ushln(-h)),s(u,c)}},6330:function(t,e,r){var n=r(1533);t.exports=function(t){return Array.isArray(t)&&2===t.length&&n(t[0])&&n(t[1])}},5716:function(t,e,r){var n=r(6859);t.exports=function(t){return t.cmp(new n(0))}},1369:function(t,e,r){var n=r(5716);t.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a20?52:r+32}},1533:function(t,e,r){r(6859),t.exports=function(t){return t&&"object"==typeof t&&!!t.words}},2651:function(t,e,r){var n=r(6859),i=r(2361);t.exports=function(t){var e=i.exponent(t);return e<52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},869:function(t,e,r){var n=r(2651),i=r(5716);t.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);return o.cmpn(1)?[t.div(o),e.div(o)]:[t,e]}},6768:function(t,e,r){var n=r(6859);t.exports=function(t){return new n(t)}},6504:function(t,e,r){var n=r(869);t.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},7721:function(t,e,r){var n=r(5716);t.exports=function(t){return n(t[0])*n(t[1])}},5572:function(t,e,r){var n=r(869);t.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},946:function(t,e,r){var n=r(1369),i=r(4025);t.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,u=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return u*s;if(s){var c=i(s)+4;return u*(s+(f=n(l.ushln(c).divRound(r)))*Math.pow(2,-c))}var h=r.bitLength()-l.bitLength()+53,f=n(l.ushln(h).divRound(r));return h<1023?u*f*Math.pow(2,-h):u*(f*=Math.pow(2,-1023))*Math.pow(2,1023-h)}},2478:function(t){function e(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function r(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function n(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function i(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function a(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function o(t,e,r,n,i,a){return"function"==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}t.exports={ge:function(t,r,n,i,a){return o(t,r,n,i,a,e)},gt:function(t,e,n,i,a){return o(t,e,n,i,a,r)},lt:function(t,e,r,i,a){return o(t,e,r,i,a,n)},le:function(t,e,r,n,a){return o(t,e,r,n,a,i)},eq:function(t,e,r,n,i){return o(t,e,r,n,i,a)}}},8828:function(t,e){function r(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}e.INT_BITS=32,e.INT_MAX=2147483647,e.INT_MIN=-1<<31,e.sign=function(t){return(t>0)-(t<0)},e.abs=function(t){var e=t>>31;return(t^e)-e},e.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},e.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},e.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},e.countTrailingZeros=r,e.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,1+((t|=t>>>8)|t>>>16)},e.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},e.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var n=new Array(256);(function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|n[t>>>16&255]<<8|n[t>>>24&255]},e.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},e.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},e.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},e.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},e.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>r(t)+1}},6859:function(t,e,r){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(7790).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=l(t,e,n)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,l=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,h=67108863&l,f=Math.min(u,e.length-1),p=Math.max(0,u-t.length+1);p<=f;p++){var d=u-p|0;c+=(o=(i=0|t.words[d])*(a=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=h[t],p=f[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===e,u=new t(a),c=this.clone();if(l){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;at.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==a&&o>26,this.words[o]=67108863&e;if(0===a&&o>>13,p=0|o[1],d=8191&p,m=p>>>13,g=0|o[2],y=8191&g,v=g>>>13,x=0|o[3],_=8191&x,b=x>>>13,w=0|o[4],T=8191&w,k=w>>>13,A=0|o[5],M=8191&A,S=A>>>13,E=0|o[6],C=8191&E,I=E>>>13,L=0|o[7],P=8191&L,z=L>>>13,O=0|o[8],D=8191&O,R=O>>>13,F=0|o[9],B=8191&F,N=F>>>13,j=0|s[0],U=8191&j,V=j>>>13,q=0|s[1],H=8191&q,G=q>>>13,Z=0|s[2],W=8191&Z,Y=Z>>>13,X=0|s[3],$=8191&X,J=X>>>13,K=0|s[4],Q=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(u+(n=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,V))+Math.imul(f,U)|0))<<13)|0;u=((a=Math.imul(f,V))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(m,U)|0,a=Math.imul(m,V);var yt=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(f,H)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,U),i=(i=Math.imul(y,V))+Math.imul(v,U)|0,a=Math.imul(v,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,G)|0;var vt=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(_,U),i=(i=Math.imul(_,V))+Math.imul(b,U)|0,a=Math.imul(b,V),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var xt=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,$)|0))<<13)|0;u=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,G)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,J)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,J)|0;var _t=(u+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(f,Q)|0))<<13)|0;u=((a=a+Math.imul(f,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(b,W)|0,a=a+Math.imul(b,Y)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,tt)|0;var bt=(u+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(f,rt)|0))<<13)|0;u=((a=a+Math.imul(f,nt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(I,U)|0,a=Math.imul(I,V),n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,Y)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,a=a+Math.imul(m,nt)|0;var wt=(u+(n=n+Math.imul(h,at)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(f,at)|0))<<13)|0;u=((a=a+Math.imul(f,ot)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,Y)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,a=a+Math.imul(v,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0;var Tt=(u+(n=n+Math.imul(h,lt)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(f,lt)|0))<<13)|0;u=((a=a+Math.imul(f,ut)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,a=a+Math.imul(I,Y)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(b,rt)|0,a=a+Math.imul(b,nt)|0,n=n+Math.imul(y,at)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(v,at)|0,a=a+Math.imul(v,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ut)|0)+Math.imul(m,lt)|0,a=a+Math.imul(m,ut)|0;var kt=(u+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(f,ht)|0))<<13)|0;u=((a=a+Math.imul(f,ft)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(_,at)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(b,at)|0,a=a+Math.imul(b,ot)|0,n=n+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ut)|0)+Math.imul(v,lt)|0,a=a+Math.imul(v,ut)|0,n=n+Math.imul(d,ht)|0,i=(i=i+Math.imul(d,ft)|0)+Math.imul(m,ht)|0,a=a+Math.imul(m,ft)|0;var At=(u+(n=n+Math.imul(h,dt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(f,dt)|0))<<13)|0;u=((a=a+Math.imul(f,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,Y)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,J)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(_,lt)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(b,lt)|0,a=a+Math.imul(b,ut)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(v,ht)|0,a=a+Math.imul(v,ft)|0;var Mt=(u+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;u=((a=a+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(N,W)|0,a=Math.imul(N,Y),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,Q)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(I,rt)|0,a=a+Math.imul(I,nt)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ut)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ut)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,ft)|0)+Math.imul(b,ht)|0,a=a+Math.imul(b,ft)|0;var St=(u+(n=n+Math.imul(y,dt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(v,dt)|0))<<13)|0;u=((a=a+Math.imul(v,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,J))+Math.imul(N,$)|0,a=Math.imul(N,J),n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,Q)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(I,at)|0,a=a+Math.imul(I,ot)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ut)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,ft)|0)+Math.imul(k,ht)|0,a=a+Math.imul(k,ft)|0;var Et=(u+(n=n+Math.imul(_,dt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(b,dt)|0))<<13)|0;u=((a=a+Math.imul(b,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(N,Q)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ut)|0)+Math.imul(I,lt)|0,a=a+Math.imul(I,ut)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ht)|0,a=a+Math.imul(S,ft)|0;var Ct=(u+(n=n+Math.imul(T,dt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(k,dt)|0))<<13)|0;u=((a=a+Math.imul(k,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ut)|0,n=n+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(I,ht)|0,a=a+Math.imul(I,ft)|0;var It=(u+(n=n+Math.imul(M,dt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,dt)|0))<<13)|0;u=((a=a+Math.imul(S,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ut)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ut)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(z,ht)|0,a=a+Math.imul(z,ft)|0;var Lt=(u+(n=n+Math.imul(C,dt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(I,dt)|0))<<13)|0;u=((a=a+Math.imul(I,mt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ut))+Math.imul(N,lt)|0,a=Math.imul(N,ut),n=n+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,ft)|0)+Math.imul(R,ht)|0,a=a+Math.imul(R,ft)|0;var Pt=(u+(n=n+Math.imul(P,dt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(z,dt)|0))<<13)|0;u=((a=a+Math.imul(z,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ht),i=(i=Math.imul(B,ft))+Math.imul(N,ht)|0,a=Math.imul(N,ft);var zt=(u+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(R,dt)|0))<<13)|0;u=((a=a+Math.imul(R,mt)|0)+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863;var Ot=(u+(n=Math.imul(B,dt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(N,dt)|0))<<13)|0;return u=((a=Math.imul(N,mt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,l[0]=gt,l[1]=yt,l[2]=vt,l[3]=xt,l[4]=_t,l[5]=bt,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=At,l[10]=Mt,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=It,l[15]=Lt,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==u&&(l[19]=u,r.length++),r};function m(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(d=p),a.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var h=0|this.words[u];this.words[u]=c<<26-a|h>>>a,c=h&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u=0;h--){var f=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,h);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&t.negative?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var f=0,p=1;!(e.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var d=0,m=1;!(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(h)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(u)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new a(1),s=new a(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;!(r.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var h=0,f=1;!(i.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(i.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(s)):(i.isub(r),s.isub(o))}return(e=0===r.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return!(1&this.words[0])},a.prototype.isOdd=function(){return!(1&~this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new T(t)},a.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(x,v),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,a=o}a>>>=22,t.words[i-10]=a,0===a&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new _;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},T.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},T.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var u=e.words[n],c=l-1;c>=0;c--){var h=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new k(t)},i(k,T),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},6204:function(t){t.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e>>1;if(!(c<=0)){var h,f=i.mallocDouble(2*c*s),p=i.mallocInt32(s);if((s=l(t,c,f,p))>0){if(1===c&&n)a.init(s),h=a.sweepComplete(c,r,0,s,f,p,0,s,f,p);else{var d=i.mallocDouble(2*c*u),m=i.mallocInt32(u);(u=l(e,c,d,m))>0&&(a.init(s+u),h=1===c?a.sweepBipartite(c,r,0,s,f,p,0,u,d,m):o(c,r,n,s,f,p,u,d,m),i.free(d),i.free(m))}i.free(f),i.free(p)}return h}}}function c(t,e){n.push([t,e])}},2455:function(t,e){function r(t){return t?function(t,e,r,n,i,a,o,s,l,u,c){return i-n>l-s?function(t,e,r,n,i,a,o,s,l,u,c){for(var h=2*t,f=n,p=h*n;fu-l?n?function(t,e,r,n,i,a,o,s,l,u,c){for(var h=2*t,f=n,p=h*n;f0;){var O=(P-=1)*_,D=w[O],R=w[O+1],F=w[O+2],B=w[O+3],N=w[O+4],j=w[O+5],U=P*b,V=T[U],q=T[U+1],H=1&j,G=!!(16&j),Z=c,W=S,Y=C,X=I;if(H&&(Z=C,W=I,Y=c,X=S),!(2&j&&(F=g(t,D,R,F,Z,W,q),R>=F)||4&j&&(R=y(t,D,R,F,Z,W,V),R>=F))){var $=F-R,J=N-B;if(G){if(t*$*($+J)=p0)&&!(p1>=hi)"),m=c("lo===p0"),g=c("lo>>1,f=2*t,p=h,d=s[f*h+e];u=x?(p=v,d=x):y>=b?(p=g,d=y):(p=_,d=b):x>=b?(p=v,d=x):b>=y?(p=g,d=y):(p=_,d=b);for(var w=f*(c-1),T=f*p,k=0;kr&&i[h+e]>u;--c,h-=o){for(var f=h,p=h+o,d=0;df;++f,l+=s)if(i[l+h]===o)if(c===f)c+=1,u+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[u],i[u++]=d}var m=a[f];a[f]=a[c],a[c++]=m}return c},"lof;++f,l+=s)if(i[l+h]p;++p){var d=i[l+p];i[l+p]=i[u],i[u++]=d}var m=a[f];a[f]=a[c],a[c++]=m}return c},"lo<=p0":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,u=l,c=r,h=t+e,f=r;n>f;++f,l+=s)if(i[l+h]<=o)if(c===f)c+=1,u+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[u],i[u++]=d}var m=a[f];a[f]=a[c],a[c++]=m}return c},"hi<=p0":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,u=l,c=r,h=t+e,f=r;n>f;++f,l+=s)if(i[l+h]<=o)if(c===f)c+=1,u+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[u],i[u++]=d}var m=a[f];a[f]=a[c],a[c++]=m}return c},"lop;++p,l+=s){var d=i[l+h],m=i[l+f];if(dg;++g){var y=i[l+g];i[l+g]=i[u],i[u++]=y}var v=a[p];a[p]=a[c],a[c++]=v}}return c},"lo<=p0&&p0<=hi":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,u=l,c=r,h=e,f=t+e,p=r;n>p;++p,l+=s){var d=i[l+h],m=i[l+f];if(d<=o&&o<=m)if(c===p)c+=1,u+=s;else{for(var g=0;s>g;++g){var y=i[l+g];i[l+g]=i[u],i[u++]=y}var v=a[p];a[p]=a[c],a[c++]=v}}return c},"!(lo>=p0)&&!(p1>=hi)":function(t,e,r,n,i,a,o,s){for(var l=2*t,u=l*r,c=u,h=r,f=e,p=t+e,d=r;n>d;++d,u+=l){var m=i[u+f],g=i[u+p];if(!(m>=o||s>=g))if(h===d)h+=1,c+=l;else{for(var y=0;l>y;++y){var v=i[u+y];i[u+y]=i[c],i[c++]=v}var x=a[d];a[d]=a[h],a[h++]=x}}return h}}},4192:function(t){t.exports=function(t,n){n<=4*e?r(0,n-1,t):u(0,n-1,t)};var e=32;function r(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var u=r[l-2],c=r[l-1];if(ur[e+1])}function l(t,e,r,n){var i=n[t*=2];return i>1,g=m-f,y=m+f,v=p,x=g,_=m,b=y,w=d,T=t+1,k=c-1,A=0;s(v,x,h)&&(A=v,v=x,x=A),s(b,w,h)&&(A=b,b=w,w=A),s(v,_,h)&&(A=v,v=_,_=A),s(x,_,h)&&(A=x,x=_,_=A),s(v,b,h)&&(A=v,v=b,b=A),s(_,b,h)&&(A=_,_=b,b=A),s(x,w,h)&&(A=x,x=w,w=A),s(x,_,h)&&(A=x,x=_,_=A),s(b,w,h)&&(A=b,b=w,w=A);for(var M=h[2*x],S=h[2*x+1],E=h[2*b],C=h[2*b+1],I=2*v,L=2*_,P=2*w,z=2*p,O=2*m,D=2*d,R=0;R<2;++R){var F=h[I+R],B=h[L+R],N=h[P+R];h[z+R]=F,h[O+R]=B,h[D+R]=N}i(g,t,h),i(y,c,h);for(var j=T;j<=k;++j)if(l(j,M,S,h))j!==T&&n(j,T,h),++T;else if(!l(j,E,C,h))for(;;){if(l(k,E,C,h)){l(k,M,S,h)?(a(j,T,k,h),++T,--k):(n(j,k,h),--k);break}if(--k>>1;a(d,S);var E=0,C=0;for(T=0;T=o)m(c,h,C--,I=I-o|0);else if(I>=0)m(l,u,E--,I);else if(I<=-o){I=-I-o|0;for(var L=0;L>>1;a(d,E);var C=0,I=0,L=0;for(k=0;k>1==d[2*k+3]>>1&&(z=2,k+=1),P<0){for(var O=-(P>>1)-1,D=0;D>1)-1,0===z?m(l,u,C--,O):1===z?m(c,h,I--,O):2===z&&m(f,p,L--,O)}},scanBipartite:function(t,e,r,n,i,s,c,h,f,p,y,v){var x=0,_=2*t,b=e,w=e+t,T=1,k=1;n?k=o:T=o;for(var A=i;A>>1;a(d,C);var I=0;for(A=0;A=o?(P=!n,M-=o):(P=!!n,M-=1),P)g(l,u,I++,M);else{var z=v[M],O=_*M,D=y[O+e+1],R=y[O+e+1+t];t:for(var F=0;F>>1;a(d,T);var k=0;for(x=0;x=o)l[k++]=_-o;else{var M=p[_-=1],S=g*_,E=f[S+e+1],C=f[S+e+1+t];t:for(var I=0;I=0;--I)if(l[I]===_){for(O=I+1;O0;){for(var p=r.pop(),d=(c=-1,h=-1,l=o[s=r.pop()],1);d=0||(e.flip(s,p),i(t,e,r,c,s,h),i(t,e,r,s,h,c),i(t,e,r,h,p,c),i(t,e,r,p,c,h))}}},5023:function(t,e,r){var n,i=r(2478);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}t.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i0||l.length>0;){for(;s.length>0;){var p=s.pop();if(u[p]!==-i){u[p]=i,c[p];for(var d=0;d<3;++d){var m=f[3*p+d];m>=0&&0===u[m]&&(h[3*p+d]?l.push(m):(s.push(m),u[m]=i))}}}var g=l;l=s,s=g,l.length=0,i=-i}var y=function(t,e,r){for(var n=0,i=0;i1&&i(r[f[p-2]],r[f[p-1]],a)>0;)t.push([f[p-1],f[p-2],o]),p-=1;f.length=p,f.push(o);var d=h.upperIds;for(p=d.length;p>1&&i(r[d[p-2]],r[d[p-1]],a)<0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function c(t,e){return(t.a[0]d[0]&&i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var m=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),g=[new a([m,1],[m,0],-1,[],[],[],[])],y=[],v=(l=0,i.length);l=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;ne[2]?1:0)}function y(t,e,r){if(0!==t.length){if(e)for(var n=0;n=0;--a){var x=e[c=(S=n[a])[0]],_=x[0],b=x[1],w=t[_],T=t[b];if((w[0]-T[0]||w[1]-T[1])<0){var k=_;_=b,b=k}x[0]=_;var A,M=x[1]=S[1];for(i&&(A=x[2]);a>0&&n[a-1][0]===c;){var S,E=(S=n[--a])[1];i?e.push([M,E,A]):e.push([M,E]),M=E}i?e.push([M,b,A]):e.push([M,b])}return f}(t,e,f,m,r),v=d(t,g);return y(e,v,r),!!v||f.length>0||m.length>0}},3637:function(t,e,r){t.exports=function(t,e,r,n){var a=s(e,t),h=s(n,r),f=c(a,h);if(0===o(f))return null;var p=c(h,s(t,r)),d=i(p,f),m=u(a,d);return l(t,m)};var n=r(6504),i=r(8697),a=r(5572),o=r(7721),s=r(544),l=r(2653),u=r(8987);function c(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},3642:function(t){t.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},6729:function(t,e,r){var n=r(3642),i=r(395);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r="#",n=0;n<3;++n)r+=("00"+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return"rgba("+t.join(",")+")"}t.exports=function(t){var e,r,l,u,c,h,f,p,d,m;if(t||(t={}),p=(t.nshades||72)-1,f=t.format||"hex",(h=t.colormap)||(h="jet"),"string"==typeof h){if(h=h.toLowerCase(),!n[h])throw Error(h+" not a supported colorscale");c=n[h]}else{if(!Array.isArray(h))throw Error("unsupported colormap option",h);c=h.slice()}if(c.length>p+1)throw new Error(h+" map requires nshades to be at least size "+c.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():"number"==typeof t.alpha?[t.alpha,t.alpha]:[1,1],e=c.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=c.map((function(t,e){var r=c[e].index,n=c[e].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),y=[];for(m=0;m0||l(t,e,a)?-1:1:0===s?u>0||l(t,e,r)?1:-1:i(u-s)}var h=n(t,e,r);return h>0?o>0&&n(t,e,a)>0?1:-1:h<0?o>0||n(t,e,a)>0?1:-1:n(t,e,a)>0||l(t,e,r)?1:-1};var n=r(3250),i=r(8572),a=r(9362),o=r(5382),s=r(8210);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),u=a(r[1],-e[1]),c=s(o(n,l),o(i,u));return c[c.length-1]>=0}},8572:function(t){t.exports=function(t){return t<0?-1:t>0?1:0}},8507:function(t){t.exports=function(t,n){var i=t.length,a=t.length-n.length;if(a)return a;switch(i){case 0:return 0;case 1:return t[0]-n[0];case 2:return t[0]+t[1]-n[0]-n[1]||e(t[0],t[1])-e(n[0],n[1]);case 3:var o=t[0]+t[1],s=n[0]+n[1];if(a=o+t[2]-(s+n[2]))return a;var l=e(t[0],t[1]),u=e(n[0],n[1]);return e(l,t[2])-e(u,n[2])||e(l+t[2],o)-e(u+n[2],s);case 4:var c=t[0],h=t[1],f=t[2],p=t[3],d=n[0],m=n[1],g=n[2],y=n[3];return c+h+f+p-(d+m+g+y)||e(c,h,f,p)-e(d,m,g,y,d)||e(c+h,c+f,c+p,h+f,h+p,f+p)-e(d+m,d+g,d+y,m+g,m+y,g+y)||e(c+h+f,c+h+p,c+f+p,h+f+p)-e(d+m+g,d+m+y,d+g+y,m+g+y);default:for(var v=t.slice().sort(r),x=n.slice().sort(r),_=0;_t[r][0]&&(r=n);return er?[[r],[e]]:[[e]]}},4750:function(t,e,r){t.exports=function(t){var e=n(t),r=e.length;if(r<=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o=e[l]&&(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=r(8954),i=r(3952)},4769:function(t){t.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,u=(1+2*i)*l,c=i*l,h=s*(3-2*i),f=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p>=0;--p)a[p]=u*t[p]+c*e[p]+h*r[p]+f*n[p];return a}return u*t+c*e+h*r+f*n},t.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,u=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var c=t.length-1;c>=0;--c)a[c]=o*t[c]+s*e[c]+l*r[c]+u*n[c];return a}return o*t+s*e+l*r[c]+u*n}},7642:function(t,e,r){var n=r(8954),i=r(1682);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a=2)return!1;t[r]=n}return!0})):b.filter((function(t){for(var e=0;e<=s;++e){var r=y[t[e]];if(r<0)return!1;t[e]=r}return!0})),1&s)for(c=0;c>>31},t.exports.exponent=function(e){return(t.exports.hi(e)<<1>>>21)-1023},t.exports.fraction=function(e){var r=t.exports.lo(e),n=t.exports.hi(e),i=1048575&n;return 2146435072&n&&(i+=1048576),[r,i]},t.exports.denormalized=function(e){return!(2146435072&t.exports.hi(e))}},1338:function(t){function e(t,r,n){var i=0|t[n];if(i<=0)return[];var a,o=new Array(i);if(n===t.length-1)for(a=0;a0)return function(t,e){var r,n;for(r=new Array(t),n=0;n=r-1){f=l.length-1;var d=t-e[r-1];for(p=0;p=r-1)for(var c=s.length-1,h=(e[r-1],0);h=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t0;--h)n.push(a(l[h-1],u[h-1],arguments[h])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t1e-6?1/s:0;this._time.push(t);for(var f=r;f>0;--f){var p=a(u[f-1],c[f-1],arguments[f]);n.push(p),i.push((p-n[o++])*h)}}},s.set=function(t){var e=this.dimension;if(!(t0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],u=s[1],c=t-e,h=c>1e-6?1/c:0;this._time.push(t);for(var f=r;f>0;--f){var p=arguments[f];n.push(a(l[f-1],u[f-1],n[o++]+p)),i.push(p*h)}}},s.idle=function(t){var e=this.lastT();if(!(t=0;--h)n.push(a(l[h],u[h],n[o]+c*i[o])),i.push(0),o+=1}}},3840:function(t){function e(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function r(t){return new e(t._color,t.key,t.value,t.left,t.right,t._count)}function n(t,r){return new e(t,r.key,r.value,r.left,r.right,r._count)}function i(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function a(t,e){this._compare=t,this.root=e}t.exports=function(t){return new a(t||p,null)};var o=a.prototype;function s(t,e){var r;return e.left&&(r=s(t,e.left))?r:(r=t(e.key,e.value))||(e.right?s(t,e.right):void 0)}function l(t,e,r,n){if(e(t,n.key)<=0){var i;if(n.left&&(i=l(t,e,r,n.left)))return i;if(i=r(n.key,n.value))return i}if(n.right)return l(t,e,r,n.right)}function u(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);return o<=0&&(i.left&&(a=u(t,e,r,n,i.left))||s>0&&(a=n(i.key,i.value)))?a:s>0&&i.right?u(t,e,r,n,i.right):void 0}function c(t,e){this.tree=t,this._stack=e}Object.defineProperty(o,"keys",{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(o,"values",{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(o,"length",{get:function(){return this.root?this.root._count:0}}),o.insert=function(t,r){for(var o=this._compare,s=this.root,l=[],u=[];s;){var c=o(t,s.key);l.push(s),u.push(c),s=c<=0?s.left:s.right}l.push(new e(0,t,r,null,null,1));for(var h=l.length-2;h>=0;--h)s=l[h],u[h]<=0?l[h]=new e(s._color,s.key,s.value,l[h+1],s.right,s._count+1):l[h]=new e(s._color,s.key,s.value,s.left,l[h+1],s._count+1);for(h=l.length-1;h>1;--h){var f=l[h-1];if(s=l[h],1===f._color||1===s._color)break;var p=l[h-2];if(p.left===f)if(f.left===s){if(!(d=p.right)||0!==d._color){p._color=0,p.left=f.right,f._color=1,f.right=p,l[h-2]=f,l[h-1]=s,i(p),i(f),h>=3&&((m=l[h-3]).left===p?m.left=f:m.right=f);break}f._color=1,p.right=n(1,d),p._color=0,h-=1}else{if(!(d=p.right)||0!==d._color){f.right=s.left,p._color=0,p.left=s.right,s._color=1,s.left=f,s.right=p,l[h-2]=s,l[h-1]=f,i(p),i(f),i(s),h>=3&&((m=l[h-3]).left===p?m.left=s:m.right=s);break}f._color=1,p.right=n(1,d),p._color=0,h-=1}else if(f.right===s){if(!(d=p.left)||0!==d._color){p._color=0,p.right=f.left,f._color=1,f.left=p,l[h-2]=f,l[h-1]=s,i(p),i(f),h>=3&&((m=l[h-3]).right===p?m.right=f:m.left=f);break}f._color=1,p.left=n(1,d),p._color=0,h-=1}else{var d;if(!(d=p.left)||0!==d._color){var m;f.left=s.right,p._color=0,p.right=s.left,s._color=1,s.right=f,s.left=p,l[h-2]=s,l[h-1]=f,i(p),i(f),i(s),h>=3&&((m=l[h-3]).right===p?m.right=s:m.left=s);break}f._color=1,p.left=n(1,d),p._color=0,h-=1}}return l[0]._color=1,new a(o,l[0])},o.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return s(t,this.root);case 2:return l(e,this._compare,t,this.root);case 3:return this._compare(e,r)>=0?void 0:u(e,r,this._compare,t,this.root)}},Object.defineProperty(o,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new c(this,t)}}),Object.defineProperty(o,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new c(this,t)}}),o.at=function(t){if(t<0)return new c(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t=e.right._count)break;e=e.right}return new c(this,[])},o.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new c(this,n)},o.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new c(this,n)},o.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new c(this,n)},o.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new c(this,n)},o.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new c(this,n);r=i<=0?r.left:r.right}return new c(this,[])},o.remove=function(t){var e=this.find(t);return e?e.remove():this},o.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var h=c.prototype;function f(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function p(t,e){return te?1:0}Object.defineProperty(h,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(h,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),h.clone=function(){return new c(this.tree,this._stack.slice())},h.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var o=new Array(t.length),s=t[t.length-1];o[o.length-1]=new e(s._color,s.key,s.value,s.left,s.right,s._count);for(var l=t.length-2;l>=0;--l)(s=t[l]).left===t[l+1]?o[l]=new e(s._color,s.key,s.value,o[l+1],s.right,s._count):o[l]=new e(s._color,s.key,s.value,s.left,o[l+1],s._count);if((s=o[o.length-1]).left&&s.right){var u=o.length;for(s=s.left;s.right;)o.push(s),s=s.right;var c=o[u-1];for(o.push(new e(s._color,c.key,c.value,s.left,s.right,s._count)),o[u-1].key=s.key,o[u-1].value=s.value,l=o.length-2;l>=u;--l)s=o[l],o[l]=new e(s._color,s.key,s.value,s.left,o[l+1],s._count);o[u-1].left=o[u]}if(0===(s=o[o.length-1])._color){var h=o[o.length-2];for(h.left===s?h.left=null:h.right===s&&(h.right=null),o.pop(),l=0;l=0;--l){if(e=t[l],0===l)return void(e._color=1);if((a=t[l-1]).left===e){if((o=a.right).right&&0===o.right._color)return s=(o=a.right=r(o)).right=r(o.right),a.right=o.left,o.left=a,o.right=s,o._color=a._color,e._color=1,a._color=1,s._color=1,i(a),i(o),l>1&&((u=t[l-2]).left===a?u.left=o:u.right=o),void(t[l-1]=o);if(o.left&&0===o.left._color)return s=(o=a.right=r(o)).left=r(o.left),a.right=s.left,o.left=s.right,s.left=a,s.right=o,s._color=a._color,a._color=1,o._color=1,e._color=1,i(a),i(o),i(s),l>1&&((u=t[l-2]).left===a?u.left=s:u.right=s),void(t[l-1]=s);if(1===o._color){if(0===a._color)return a._color=1,void(a.right=n(0,o));a.right=n(0,o);continue}o=r(o),a.right=o.left,o.left=a,o._color=a._color,a._color=0,i(a),i(o),l>1&&((u=t[l-2]).left===a?u.left=o:u.right=o),t[l-1]=o,t[l]=a,l+11&&((u=t[l-2]).right===a?u.right=o:u.left=o),void(t[l-1]=o);if(o.right&&0===o.right._color)return s=(o=a.left=r(o)).right=r(o.right),a.left=s.right,o.right=s.left,s.right=a,s.left=o,s._color=a._color,a._color=1,o._color=1,e._color=1,i(a),i(o),i(s),l>1&&((u=t[l-2]).right===a?u.right=s:u.left=s),void(t[l-1]=s);if(1===o._color){if(0===a._color)return a._color=1,void(a.left=n(0,o));a.left=n(0,o);continue}var u;o=r(o),a.left=o.right,o.right=a,o._color=a._color,a._color=0,i(a),i(o),l>1&&((u=t[l-2]).right===a?u.right=o:u.left=o),t[l-1]=o,t[l]=a,l+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(h,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(h,"index",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),h.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,"hasNext",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),h.update=function(t){var r=this._stack;if(0===r.length)throw new Error("Can't update empty node!");var n=new Array(r.length),i=r[r.length-1];n[n.length-1]=new e(i._color,i.key,t,i.left,i.right,i._count);for(var o=r.length-2;o>=0;--o)(i=r[o]).left===r[o+1]?n[o]=new e(i._color,i.key,i.value,n[o+1],i.right,i._count):n[o]=new e(i._color,i.key,i.value,i.left,n[o+1],i._count);return new a(this.tree._compare,n[0])},h.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,"hasPrev",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},3837:function(t,e,r){t.exports=function(t,e){var r=new p(t);return r.update(e),r};var n=r(4935),i=r(501),a=r(5304),o=r(6429),s=r(6444),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=ArrayBuffer,c=DataView;function h(t){return Array.isArray(t)||function(t){return u.isView(t)&&!(t instanceof c)}(t)}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],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=[0,0,0],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=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var d=p.prototype;function m(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}d.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?h(a)&&h(a[0]):h(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),u=e.bind(this,!0,(function(t){if(h(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),c=!1,f=!1;if("bounds"in t)for(var p=t.bounds,d=0;d<2;++d)for(var m=0;m<3;++m)p[d][m]!==this.bounds[d][m]&&(f=!0),this.bounds[d][m]=p[d][m];if("ticks"in t)for(r=t.ticks,c=!0,this.autoTicks=!1,d=0;d<3;++d)this.tickSpacing[d]=0;else a("tickSpacing")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&("ticks"in t||"tickSpacing"in t||(this.autoTicks=!0),f=!0,c=!0,this._firstInit=!1),f&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),c=!0),c){for(d=0;d<3;++d)r[d].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?c=!1:this.ticks=r}o("tickEnable"),l("tickFont")&&(c=!0),l("tickFontStyle")&&(c=!0),l("tickFontWeight")&&(c=!0),l("tickFontVariant")&&(c=!0),a("tickSize"),a("tickAngle"),a("tickPad"),u("tickColor");var g=l("labels");l("labelFont")&&(g=!0),l("labelFontStyle")&&(g=!0),l("labelFontWeight")&&(g=!0),l("labelFontVariant")&&(g=!0),o("labelEnable"),a("labelSize"),a("labelPad"),u("labelColor"),o("lineEnable"),o("lineMirror"),a("lineWidth"),u("lineColor"),o("lineTickEnable"),o("lineTickMirror"),a("lineTickLength"),a("lineTickWidth"),u("lineTickColor"),o("gridEnable"),a("gridWidth"),u("gridColor"),o("zeroEnable"),u("zeroLineColor"),a("zeroLineWidth"),o("backgroundEnable"),u("backgroundColor");var y=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],v=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(g||c)&&this._text.update(this.bounds,this.labels,y,this.ticks,v):this._text=n(this.gl,this.bounds,this.labels,y,this.ticks,v),this._lines&&c&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var g=[new m,new m,new m];function y(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,u=n[e],c=0;c<3;++c)if(e!==c){var h=a,f=s,p=o,d=l;u&1<0?(p[c]=-1,d[c]=0):(p[c]=0,d[c]=1)}}var v=[0,0,0],x={model:l,view:l,projection:l,_ortho:!1};d.isOpaque=function(){return!0},d.isTransparent=function(){return!1},d.drawTransparent=function(t){};var _=[0,0,0],b=[0,0,0],w=[0,0,0];d.draw=function(t){t=t||x;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),c=u.cubeEdges,h=u.axis,p=n[12],d=n[13],m=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*p+i[7]*d+i[11]*m+i[15]*T)/e.drawingBufferHeight,A=0;A<3;++A)this.lastCubeProps.cubeEdges[A]=c[A],this.lastCubeProps.axis[A]=h[A];var M=g;for(A=0;A<3;++A)y(g[A],A,this.bounds,c,h);e=this.gl;var S,E,C,I,L,P,z,O,D,R,F,B,N=v;for(A=0;A<3;++A)this.backgroundEnable[A]?N[A]=h[A]:N[A]=0;for(this._background.draw(r,n,i,a,N,this.backgroundColor),this._lines.bind(r,n,i,this),A=0;A<3;++A){var j=[0,0,0];h[A]>0?j[A]=a[1][A]:j[A]=a[0][A];for(var U=0;U<2;++U){var V=(A+1+U)%3,q=(A+1+(1^U))%3;this.gridEnable[V]&&this._lines.drawGrid(V,q,this.bounds,j,this.gridColor[V],this.gridWidth[V]*this.pixelRatio)}for(U=0;U<2;++U)V=(A+1+U)%3,q=(A+1+(1^U))%3,this.zeroEnable[q]&&Math.min(a[0][q],a[1][q])<=0&&Math.max(a[0][q],a[1][q])>=0&&this._lines.drawZero(V,q,this.bounds,j,this.zeroLineColor[q],this.zeroLineWidth[q]*this.pixelRatio)}for(A=0;A<3;++A){this.lineEnable[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var H=f(_,M[A].primalMinor),G=f(b,M[A].mirrorMinor),Z=this.lineTickLength;for(U=0;U<3;++U){var W=k/r[5*U];H[U]*=Z[U]*W,G[U]*=Z[U]*W}this.lineTickEnable[A]&&this._lines.drawAxisTicks(A,M[A].primalOffset,H,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&&this._lines.drawAxisTicks(A,M[A].mirrorOffset,G,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}function Y(t){(C=[0,0,0])[t]=1}for(this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio),A=0;A<3;++A){var X=M[A].primalMinor,$=M[A].mirrorMinor,J=f(w,M[A].primalOffset);for(U=0;U<3;++U)this.lineTickEnable[A]&&(J[U]+=k*X[U]*Math.max(this.lineTickLength[U],0)/r[5*U]);var K=[0,0,0];if(K[A]=1,this.tickEnable[A]){for(-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]="auto"):this.tickAlign[A]=-1,E=1,"auto"===(S=[this.tickAlign[A],.5,E])[0]?S[0]=0:S[0]=parseInt(""+S[0]),C=[0,0,0],P=$,void 0,void 0,void 0,void 0,void 0,void 0,O=((I=A)+2)%3,D=(L=X)[z=(I+1)%3],R=L[O],F=P[z],B=P[O],D>0&&B>0||D>0&&B<0||D<0&&B>0||D<0&&B<0?Y(z):(R>0&&F>0||R>0&&F<0||R<0&&F>0||R<0&&F<0)&&Y(O),U=0;U<3;++U)J[U]+=k*X[U]*this.tickPad[U]/r[5*U];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],J,this.tickColor[A],K,C,S)}if(this.labelEnable[A]){for(E=0,C=[0,0,0],this.labels[A].length>4&&(Y(A),E=1),"auto"===(S=[this.labelAlign[A],.5,E])[0]?S[0]=0:S[0]=parseInt(""+S[0]),U=0;U<3;++U)J[U]+=k*X[U]*this.labelPad[U]/r[5*U];J[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],J,this.labelColor[A],[0,0,0],C,S)}}this._text.unbind()},d.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},5304:function(t,e,r){t.exports=function(t){for(var e=[],r=[],s=0,l=0;l<3;++l)for(var u=(l+1)%3,c=(l+2)%3,h=[0,0,0],f=[0,0,0],p=-1;p<=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),h[l]=p,f[l]=p;for(var d=-1;d<=1;d+=2){h[u]=d;for(var m=-1;m<=1;m+=2)h[c]=m,e.push(h[0],h[1],h[2],f[0],f[1],f[2]),s+=1}var g=u;u=c,c=g}var y=n(t,new Float32Array(e)),v=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:y,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:y,type:t.FLOAT,size:3,offset:12,stride:24}],v),_=a(t);return _.attributes.position.location=0,_.attributes.normal.location=1,new o(t,y,x,_)};var n=r(2762),i=r(8116),a=r(1879).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},6429:function(t,e,r){t.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var v=0,x=0;x<2;++x){c[2]=a[x][2];for(var _=0;_<2;++_){c[1]=a[_][1];for(var b=0;b<2;++b)c[0]=a[b][0],f(l[v],c,s),v+=1}}var w=-1;for(x=0;x<8;++x){for(var T=l[x][3],k=0;k<3;++k)u[x][k]=l[x][k]/T;p&&(u[x][2]*=-1),T<0&&(w<0||u[x][2]E&&(w|=1<E&&(w|=1<u[x][1])&&(R=x);var F=-1;for(x=0;x<3;++x)(N=R^1<u[B][0]&&(B=N))}var j=m;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&F,j[n.log2(R^B)]=R&B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&B):j[n.log2(F^U)]=U&F;var V=g,q=w;for(A=0;A<3;++A)V[A]=q&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}\n"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);e.Q=function(t){return i(t,s,l,null,[{name:"position",type:"vec3"}])};var u=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * (view * (model * vec4(nPosition, 1.0)));\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}\n"]),c=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);e.bg=function(t){return i(t,u,c,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(t,e,r){t.exports=function(t,e,r,a,s,l){var c=n(t),h=i(t,[{buffer:c,size:3}]),f=o(t);f.attributes.position.location=0;var p=new u(t,f,c,h);return p.update(e,r,a,s,l),p};var n=r(2762),i=r(8116),a=r(4359),o=r(1879).Q,s=window||process.global||{},l=s.__TEXT_CACHE||{};function u(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}s.__TEXT_CACHE={};var c=u.prototype,h=[0,0];c.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,h[0]=this.gl.drawingBufferWidth,h[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=h},c.unbind=function(){this.vao.unbind()},c.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var u=[r.style,r.weight,r.variant,r.family].join("_"),c=l[u];c||(c=l[u]={});var h=c[e];h||(h=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:"'+t+'" error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r.family,fontStyle:r.style,fontWeight:r.weight,fontVariant:r.variant,textAlign:"center",textBaseline:"middle",lineSpacing:i,styletags:s}));for(var f=(n||12)/12,p=h.positions,d=h.cells,m=0,g=d.length;m=0;--v){var x=p[y[v]];o.push(f*x[0],-f*x[1],t)}}for(var u=[0,0,0],c=[0,0,0],h=[0,0,0],f=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d<3;++d){h[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),f[d]=(o.length/3|0)-h[d],u[d]=o.length/3|0;for(var m=0;m=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+"";if(s.indexOf("e")>=0)return s;var l=o/a,u=o%a;o<0?(l=0|-Math.ceil(l),u=0|-u):(l=0|Math.floor(l),u|=0);var c=""+l;if(o<0&&(c="-"+c),i){for(var h=""+u;h.length=t[0][i];--o)a.push({x:o*e[i],text:r(e[i],o)});n.push(a)}return n},e.equal=function(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;nr)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return t.bufferSubData(e,a,i),r}function c(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=u(this.gl,this.type,this.length,this.usage,t.data,e):this.length=u(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=u(this.gl,this.type,this.length,this.usage,e<0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var h;h=this.type===this.gl.ELEMENT_ARRAY_BUFFER?c(t,"uint16"):c(t,"float32"),this.length=u(this.gl,this.type,this.length,this.usage,e<0?h:h.subarray(0,t.length),e),n.free(h)}else if("object"==typeof t&&"number"==typeof t.length)this.length=u(this.gl,this.type,this.length,this.usage,t,e);else{if("number"!=typeof t&&void 0!==t)throw new Error("gl-buffer: Invalid data type");if(e>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(t|=0)<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},t.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(n!==t.DYNAMIC_DRAW&&n!==t.STATIC_DRAW&&n!==t.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},6405:function(t,e,r){var n=r(2931);t.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&&(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,u=1/0,c=-1/0,h=1/0,f=-1/0,p=null,d=null,m=[],g=1/0,y=!1,v="raw"===t.coneSizemode,x=0;xo&&(o=n.length(b)),x&&!v){var w=2*n.distance(p,_)/(n.length(d)+n.length(b));w?(g=Math.min(g,w),y=!1):y=!0}y||(p=_,d=b),m.push(b)}var T=[s,u,h],k=[l,c,f];e&&(e[0]=T,e[1]=k),0===o&&(o=1);var A=1/o;isFinite(g)||(g=1),a.vectorScale=g;var M=t.coneSize||(v?1:.5);t.absoluteConeSize&&(M=t.absoluteConeSize*A),a.coneScale=M,x=0;for(var S=0;x=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,"lightPosition"in t&&(this.lightPosition=t.lightPosition),"opacity"in t&&(this.opacity=t.opacity),"ambient"in t&&(this.ambientLight=t.ambient),"diffuse"in t&&(this.diffuseLight=t.diffuse),"specular"in t&&(this.specularLight=t.specular),"roughness"in t&&(this.roughness=t.roughness),"fresnel"in t&&(this.fresnel=t.fresnel),void 0!==t.tubeScale&&(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&&(this.vectorScale=t.vectorScale),void 0!==t.coneScale&&(this.coneScale=t.coneScale),void 0!==t.coneOffset&&(this.coneOffset=t.coneOffset),t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=c({colormap:t,nshades:256,format:"rgba"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){var a=[],o=[],s=[],l=[],h=[];this.cells=r,this.positions=n,this.vectors=i;var f=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,m=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],m=+t.vertexIntensityBounds[1];else for(var g=0;g0){var m=this.triShader;m.bind(),m.uniforms=u,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||h,n=t.view||h,i=t.projection||h,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t||t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return"cone"===this.traceType?i.index=Math.floor(r[1]/48):"streamtube"===this.traceType&&(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.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()},t.exports=function(t,e,r){var s=r.shaders;1===arguments.length&&(t=(e=t).gl);var l=function(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}(t,s),c=function(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}(t,s),h=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));h.generateMipmap(),h.minFilter=t.LINEAR_MIPMAP_LINEAR,h.magFilter=t.LINEAR;var p=i(t),d=i(t),m=i(t),g=i(t),y=i(t),v=new f(t,h,l,c,p,d,y,m,g,a(t,[{buffer:p,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:g,type:t.FLOAT,size:2},{buffer:d,type:t.FLOAT,size:4}]),r.traceType||"cone");return v.update(e),v}},614:function(t,e,r){var n=r(3236),i=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * (view * conePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);e.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},e.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(t){t.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(t,e,r){var n=r(737);t.exports=function(t){return n[t]}},9165:function(t,e,r){t.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var u=new s(e,r,o,l);return u.update(t),u};var n=r(2762),i=r(8116),a=r(3436),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,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 l=s.prototype;function u(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],u=n[15],c=(t._ortho?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*u)/e.drawingBufferHeight;this.vao.bind();for(var h=0;h<3;++h)e.lineWidth(this.lineWidth[h]*this.pixelRatio),r.capSize=this.capSize[h]*c,this.lineCount[h]&&e.drawArrays(e.LINES,this.lineOffset[h],this.lineCount[h]);this.vao.unbind()};var c=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function h(t,e,r,n){for(var i=c[n],a=0;a0&&((p=c.slice())[s]+=d[1][s],i.push(c[0],c[1],c[2],m[0],m[1],m[2],m[3],0,0,0,p[0],p[1],p[2],m[0],m[1],m[2],m[3],0,0,0),u(this.bounds,p),o+=2+h(i,p,m,s)))}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},3436:function(t,e,r){var n=r(3236),i=r(9405),a=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * (view * worldPosition);\n fragColor = color;\n fragPosition = position;\n}"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);t.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(t,e,r){var n=r(7766);t.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var u=t.getExtension("WEBGL_draw_buffers");if(!l&&u&&function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;ac||r<0||r>c)throw new Error("gl-fbo: Parameters are too large for FBO");var h=1;if("color"in(n=n||{})){if((h=Math.max(0|n.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(h>1){if(!u)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(h>t.getParameter(u.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+h+" draw buffers")}}var f=t.UNSIGNED_BYTE,p=t.getExtension("OES_texture_float");if(n.float&&h>0){if(!p)throw new Error("gl-fbo: Context does not support floating point textures");f=t.FLOAT}else n.preferFloat&&h>0&&p&&(f=t.FLOAT);var m=!0;"depth"in n&&(m=!!n.depth);var g=!1;return"stencil"in n&&(g=!!n.stencil),new d(t,e,r,f,h,m,g,u)};var i,a,o,s,l=null;function u(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function c(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function h(t){switch(t){case i:throw new Error("gl-fbo: Framebuffer unsupported");case a:throw new Error("gl-fbo: Framebuffer incomplete attachment");case o:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case s:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function f(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d1&&s.drawBuffersWEBGL(l[o]);var v=r.getExtension("WEBGL_depth_texture");v?d?t.depth=f(r,i,a,v.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m&&(t.depth=f(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):m&&d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){for(t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null),y=0;yi||r<0||r>i)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");t._shape[0]=e,t._shape[1]=r;for(var a=u(n),o=0;o max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(t){return i(t,a,o,null,l)},e.createPickShader=function(t){return i(t,a,s,null,l)}},5714:function(t,e,r){t.exports=function(t){var e=t.gl||t.scene&&t.scene.gl,r=h(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=f(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),c=u(new Array(1024),[256,1,4]),p=0;p<1024;++p)c.data[p]=255;var d=a(e,c);d.wrap=e.REPEAT;var m=new y(e,r,o,s,l,d);return m.update(t),m};var n=r(2762),i=r(8116),a=r(7766),o=new Uint8Array(4),s=new Float32Array(o.buffer),l=r(2478),u=r(9618),c=r(7319),h=c.createShader,f=c.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function m(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function g(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function y(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var v=y.prototype;v.isTransparent=function(){return this.hasAlpha},v.isOpaque=function(){return!this.hasAlpha},v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.drawTransparent=v.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},v.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},v.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;"dashScale"in t&&(this.dashScale=t.dashScale),this.hasAlpha=!1,"opacity"in t&&(this.opacity=+t.opacity,this.opacity<1&&(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,c=0,h=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],f=t.position||t.positions;if(f){var p=t.color||t.colors||[0,0,0,1],m=t.lineWidth||1,g=!1;t:for(e=1;e0){for(var w=0;w<24;++w)i.push(i[i.length-12]);c+=2,g=!0}continue t}h[0][r]=Math.min(h[0][r],_[r],b[r]),h[1][r]=Math.max(h[1][r],_[r],b[r])}Array.isArray(p[0])?(y=p.length>e-1?p[e-1]:p.length>0?p[p.length-1]:[0,0,0,1],v=p.length>e?p[e]:p.length>0?p[p.length-1]:[0,0,0,1]):y=v=p,3===y.length&&(y=[y[0],y[1],y[2],1]),3===v.length&&(v=[v[0],v[1],v[2],1]),!this.hasAlpha&&y[3]<1&&(this.hasAlpha=!0),x=Array.isArray(m)?m.length>e-1?m[e-1]:m.length>0?m[m.length-1]:[0,0,0,1]:m;var T=s;if(s+=d(_,b),g){for(r=0;r<2;++r)i.push(_[0],_[1],_[2],b[0],b[1],b[2],T,x,y[0],y[1],y[2],y[3]);c+=2,g=!1}i.push(_[0],_[1],_[2],b[0],b[1],b[2],T,x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],T,-x,y[0],y[1],y[2],y[3],b[0],b[1],b[2],_[0],_[1],_[2],s,-x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],s,x,v[0],v[1],v[2],v[3]),c+=4}}if(this.buffer.update(i),a.push(s),o.push(f[f.length-1].slice()),this.bounds=h,this.vertexCount=c,this.points=o,this.arcLength=a,"dashes"in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e1.0001)return null;y+=g[h]}return Math.abs(y-1)>.001?null:[f,s(t,g),g]}},840:function(t,e,r){var n=r(3236),i=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),u=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),c=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_id = id;\n f_position = position;\n}"]),h=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),f=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),p=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n}"]),d=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);e.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:c,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:p,fragment:d,attributes:[{name:"position",type:"vec3"}]}},7201:function(t,e,r){var n=r(9405),i=r(2762),a=r(8116),o=r(7766),s=r(8406),l=r(6760),u=r(7608),c=r(9618),h=r(6729),f=r(7765),p=r(1888),d=r(840),m=r(7626),g=d.meshShader,y=d.wireShader,v=d.pointShader,x=d.pickShader,_=d.pointPickShader,b=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,T,k,A,M,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=c,this.triangleNormals=f,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=g,this.edgeUVs=y,this.edgeIds=m,this.edgeVAO=v,this.edgeCount=0,this.pointPositions=x,this.pointColors=b,this.pointUVs=T,this.pointSizes=k,this.pointIds=_,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=M,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!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.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function A(t,e){if(!e||!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&&this.contourEnable){for(var e=f(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l0&&((c=this.triShader).bind(),c.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&this.lineWidth>0&&((c=this.lineShader).bind(),c.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0&&((c=this.pointShader).bind(),c.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()),this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((c=this.contourShader).bind(),c.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};(s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t||t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;aMath.abs(e))u.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-u.lastT())/20;u.pan(a,0,0,h*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=r(3025),i=r(6296),a=r(351),o=r(8512),s=r(24),l=r(7520)},799:function(t,e,r){var n=r(3236),i=r(9405),a=n(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),o=n(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);t.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec2"}])}},4100:function(t,e,r){var n=r(4437),i=r(3837),a=r(5445),o=r(4449),s=r(3589),l=r(2260),u=r(7169),c=r(351),h=r(4772),f=r(4040),p=r(799),d=r(9216)({tablet:!0,featureDetect:!0});function m(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}return e>0?(r=Math.round(Math.pow(10,e)),Math.ceil(t/r)*r):Math.ceil(t)}function y(t){return"boolean"!=typeof t||t}t.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;e||(e=document.createElement("canvas"),t.container?t.container.appendChild(e):document.body.appendChild(e));var r=t.gl;if(r||(t.glOptions&&(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext("webgl",e))||(r=t.getContext("experimental-webgl",e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d})),!r)throw new Error("webgl not supported");var v=t.bounds||[[-10,-10,-10],[10,10,10]],x=new m,_=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),b=p(r),w=t.cameraObject&&!0===t.cameraObject._ortho||t.camera.projection&&"orthographic"===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||"turntable",_ortho:w},k=t.axes||{},A=i(r,k);A.enable=!k.disable;var M=t.spikes||{},S=o(r,M),E=[],C=[],I=[],L=[],P=!0,z=!0,O={view:null,projection:new Array(16),model:new Array(16),_ortho:!1},D=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),R=t.cameraObject||n(e,T),F={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:R,axes:A,axesPixels:null,spikes:S,bounds:v,objects:E,shape:D,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:y(t.autoResize),autoBounds:y(t.autoBounds),autoScale:!!t.autoScale,autoCenter:y(t.autoCenter),clipToBounds:y(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:O,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},B=[r.drawingBufferWidth/F.pixelRatio|0,r.drawingBufferHeight/F.pixelRatio|0];function N(){if(!F._stopped&&F.autoResize){var t=e.parentNode,r=1,n=1;t&&t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*F.pixelRatio),a=0|Math.ceil(n*F.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||"absolute",o.left="0px",o.top="0px",o.width=r+"px",o.height=n+"px",P=!0}}}function j(){for(var t=E.length,e=L.length,n=0;n0&&0===I[e-1];)I.pop(),L.pop().dispose()}function U(){if(F.contextLost)return!0;r.isContextLost()&&(F.contextLost=!0,F.mouseListener.enabled=!1,F.selection.object=null,F.oncontextloss&&F.oncontextloss())}F.autoResize&&N(),window.addEventListener("resize",N),F.update=function(t){F._stopped||(t=t||{},P=!0,z=!0)},F.add=function(t){F._stopped||(t.axes=A,E.push(t),C.push(-1),P=!0,z=!0,j())},F.remove=function(t){if(!F._stopped){var e=E.indexOf(t);e<0||(E.splice(e,1),C.pop(),P=!0,z=!0,j())}},F.dispose=function(){if(!F._stopped&&(F._stopped=!0,window.removeEventListener("resize",N),e.removeEventListener("webglcontextlost",U),F.mouseListener.enabled=!1,!F.contextLost)){A.dispose(),S.dispose();for(var t=0;tx.distance)continue;for(var u=0;u1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*u+l*p,t[1]=s*c+l*d,t[2]=s*h+l*m,t[3]=s*f+l*g,t}},5964:function(t){t.exports=function(t){return t||0===t?t.toString():""}},9366:function(t,e,r){var n=r(4359);t.exports=function(t,e,r){var a=[e.style,e.weight,e.variant,e.family].join("_"),o=i[a];if(o||(o=i[a]={}),t in o)return o[t];var s={textAlign:"center",textBaseline:"middle",lineHeight:1,font:e.family,fontStyle:e.style,fontWeight:e.weight,fontVariant:e.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},l=n(t,s);s.triangles=!1;var u,c,h=n(t,s);if(r&&1!==r){for(u=0;u max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),o=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * (view * (model * vec4(position, 1)));\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1)));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),u=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),c=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],h={vertex:a,fragment:l,attributes:c},f={vertex:o,fragment:l,attributes:c},p={vertex:s,fragment:l,attributes:c},d={vertex:a,fragment:u,attributes:c},m={vertex:o,fragment:u,attributes:c},g={vertex:s,fragment:u,attributes:c};function y(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}e.createPerspective=function(t){return y(t,h)},e.createOrtho=function(t){return y(t,f)},e.createProject=function(t){return y(t,p)},e.createPickPerspective=function(t){return y(t,d)},e.createPickOrtho=function(t){return y(t,m)},e.createPickProject=function(t){return y(t,g)}},8418:function(t,e,r){var n=r(5219),i=r(2762),a=r(8116),o=r(1888),s=r(6760),l=r(1283),u=r(9366),c=r(5964),h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],f=ArrayBuffer,p=DataView;function d(t){return Array.isArray(t)||function(t){return f.isView(t)&&!(t instanceof p)}(t)}function m(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function g(t,e,r,n){return m(n,n),m(n,n),m(n,n)}function y(t,e){this.index=t,this.dataCoordinate=this.position=e}function v(t){return!0===t||t>1?1:t}function x(t,e,r,n,i,a,o,s,l,u,c,h){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,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=u,this.pickOrthoShader=c,this.pickProjectShader=h,this.points=[],this._selectResult=new y(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}t.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),u=l.createPickOrtho(e),c=l.createPickProject(e),h=i(e),f=i(e),p=i(e),d=i(e),m=new x(e,r,n,o,h,f,p,d,a(e,[{buffer:h,size:3,type:e.FLOAT},{buffer:f,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),s,u,c);return m.update(t),m};var _=x.prototype;_.pickSlots=1,_.setPickBase=function(t){this.pickId=t},_.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectHasAlpha)return!0;return!1},_.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&!this.projectHasAlpha)return!0;return!1};var b=[0,0],w=[0,0,0],T=[0,0,0],k=[0,0,0,1],A=[0,0,0,1],M=h.slice(),S=[0,0,0],E=[[0,0,0],[0,0,0]];function C(t){return t[0]=t[1]=t[2]=0,t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function L(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}var P=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function z(t,e,r,n,i,a,o){var l=r.gl;if((a===r.projectHasAlpha||o)&&function(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,u=r.model||h,c=r.view||h,f=r.projection||h,p=e.axesBounds,d=function(t){for(var e=E,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&&e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],b[0]=2/o.drawingBufferWidth,b[1]=2/o.drawingBufferHeight,t.bind(),l.view=c,l.projection=f,l.screenSize=b,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=d,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m<3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var y=M,v=0;v<16;++v)y[v]=0;for(v=0;v<4;++v)y[5*v]=1;y[5*m]=0,i[m]<0?y[12+m]=p[0][m]:y[12+m]=p[1][m],s(y,u,y),l.model=y;var x=(m+1)%3,_=(m+2)%3,P=C(w),z=C(T);P[x]=1,z[_]=1;var O=g(0,0,0,I(k,P)),D=g(0,0,0,I(A,z));if(Math.abs(O[1])>Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=x;x=_,_=F}O[0]<0&&(P[x]=-1),D[1]>0&&(z[_]=-1);var B=0,N=0;for(v=0;v<4;++v)B+=Math.pow(u[4*x+v],2),N+=Math.pow(u[4*_+v],2);P[x]/=Math.sqrt(B),z[_]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=L(S,d[0],m,-1e8),l.fragClipBounds[1]=L(S,d[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth>0&&(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}(e,r,n,i),a===r.hasAlpha||o){t.bind();var u=t.uniforms;u.model=n.model||h,u.view=n.view||h,u.projection=n.projection||h,b[0]=2/l.drawingBufferWidth,b[1]=2/l.drawingBufferHeight,u.screenSize=b,u.highlightId=r.highlightId,u.highlightScale=r.highlightScale,u.fragClipBounds=P,u.clipBounds=r.axes.bounds,u.opacity=r.opacity,u.pickGroup=r.pickId/255,u.pixelRatio=i,r.vao.bind(),r.vao.draw(l.TRIANGLES,r.vertexCount),r.lineWidth>0&&(l.lineWidth(r.lineWidth*i),r.vao.draw(l.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function O(t,e,r,i){var a;a=d(t)?e=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},_.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},_.update=function(t){if("perspective"in(t=t||{})&&(this.useOrtho=!t.perspective),"orthographic"in t&&(this.useOrtho=!!t.orthographic),"lineWidth"in t&&(this.lineWidth=t.lineWidth),"project"in t)if(d(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if("projectScale"in t)if(d(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,"projectOpacity"in t){d(t.projectOpacity)?this.projectOpacity=t.projectOpacity.slice():(r=+t.projectOpacity,this.projectOpacity=[r,r,r]);for(var n=0;n<3;++n)this.projectOpacity[n]=v(this.projectOpacity[n]),this.projectOpacity[n]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in t&&(this.opacity=v(t.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l={family:t.font||"normal",style:t.fontStyle||"normal",weight:t.fontWeight||"normal",variant:t.fontVariant||"normal"},u=t.alignment||[0,0];if(2===u.length)i=u[0],a=u[1];else for(i=[],a=[],n=0;n0){var z=0,D=_,R=[0,0,0,1],F=[0,0,0,1],B=d(p)&&d(p[0]),N=d(y)&&d(y[0]);t:for(n=0;n0?1-S[0][0]:W<0?1+S[1][0]:1,Y*=Y>0?1-S[0][1]:Y<0?1+S[1][1]:1],$=A.cells||[],J=A.positions||[];for(k=0;k<$.length;++k)for(var K=$[k],Q=0;Q<3;++Q){for(var tt=0;tt<3;++tt)C[3*z+tt]=T[tt];for(tt=0;tt<4;++tt)I[4*z+tt]=R[tt];P[z]=x;var et=J[K[Q]];L[2*z]=q*(G*et[0]-Z*et[1]+X[0]),L[2*z+1]=q*(Z*et[0]+G*et[1]+X[1]),z+=1}for($=M.edges,J=M.positions,k=0;k<$.length;++k)for(K=$[k],Q=0;Q<2;++Q){for(tt=0;tt<3;++tt)C[3*D+tt]=T[tt];for(tt=0;tt<4;++tt)I[4*D+tt]=F[tt];P[D]=x,et=J[K[Q]],L[2*D]=q*(G*et[0]-Z*et[1]+X[0]),L[2*D+1]=q*(Z*et[0]+G*et[1]+X[1]),D+=1}}}this.bounds=[c,h],this.points=s,this.pointCount=s.length,this.vertexCount=_,this.lineVertexCount=b,this.pointBuffer.update(C),this.colorBuffer.update(I),this.glyphBuffer.update(L),this.idBuffer.update(P),o.free(C),o.free(I),o.free(L),o.free(P)},_.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()}},3589:function(t,e,r){t.exports=function(t,e){var r=e[0],a=e[1];return new l(t,n(t,r,a,{}),i.mallocUint8(r*a*4))};var n=r(2260),i=r(1888),a=r(9618),o=r(8828).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var u=l.prototype;Object.defineProperty(u,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;ar)for(t=r;te)for(t=e;t=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A=0;)M+=1;b[v]=M}var S=new Array(r.length);function E(){f.program=o.program(p,f._vref,f._fref,_,b);for(var t=0;t=0){if((d=f.charCodeAt(f.length-1)-48)<2||d>4)throw new n("","Invalid data type for attribute "+h+": "+f);s(t,e,p[0],i,d,a,h)}else{if(!(f.indexOf("mat")>=0))throw new n("","Unknown data type for attribute "+h+": "+f);var d;if((d=f.charCodeAt(f.length-1)-48)<2||d>4)throw new n("","Invalid data type for attribute "+h+": "+f);l(t,e,p,i,d,a,h)}}}return a};var n=r(8866);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;a.pointer=function(t,e,r,n){var i=this,a=i._gl,o=i._locations[i._index];a.vertexAttribPointer(o,i._dimension,t||a.FLOAT,!!e,r||0,n||0),a.enableVertexAttribArray(o)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,"location",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}});var o=[function(t,e,r){return void 0===r.length?t.vertexAttrib1f(e,r):t.vertexAttrib1fv(e,r)},function(t,e,r,n){return void 0===r.length?t.vertexAttrib2f(e,r,n):t.vertexAttrib2fv(e,r)},function(t,e,r,n,i){return void 0===r.length?t.vertexAttrib3f(e,r,n,i):t.vertexAttrib3fv(e,r)},function(t,e,r,n,i,a){return void 0===r.length?t.vertexAttrib4f(e,r,n,i,a):t.vertexAttrib4fv(e,r)}];function s(t,e,r,n,a,s,l){var u=o[a],c=new i(t,e,r,n,a,u);Object.defineProperty(s,l,{set:function(e){return t.disableVertexAttribArray(n[r]),u(t,n[r],e),e},get:function(){return c},enumerable:!0})}function l(t,e,r,n,i,a,o){for(var l=new Array(i),u=new Array(i),c=0;c4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+v);t["uniformMatrix"+y+"fv"](s[h],!1,f);break}throw new i("","Unknown uniform data type for "+name+": "+v)}if((y=v.charCodeAt(v.length-1)-48)<2||y>4)throw new i("","Invalid data type");switch(v.charAt(0)){case"b":case"i":t["uniform"+y+"iv"](s[h],f);break;case"v":t["uniform"+y+"fv"](s[h],f);break;default:throw new i("","Unrecognized data type for vector "+name+": "+v)}}}}}}function c(t,e){if("object"!=typeof e)return[[t,e]];var r=[];for(var n in e){var i=e[n],a=t;parseInt(n)+""===n?a+="["+n+"]":a+="."+n,"object"==typeof i?r.push.apply(r,c(a,i)):r.push([a,i])}return r}function h(t,e,n){if("object"==typeof n){var c=f(n);Object.defineProperty(t,e,{get:a(c),set:u(n),enumerable:!0,configurable:!1})}else s[n]?Object.defineProperty(t,e,{get:l(n),set:u(n),enumerable:!0,configurable:!1}):t[e]=function(t){switch(t){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":case"float":return 0;default:var e=t.indexOf("vec");if(0<=e&&e<=1&&t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid data type");return"b"===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf("mat")&&4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+t);return o(r*r,0)}throw new i("","Unknown uniform data type for "+name+": "+t)}}(r[n].type)}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l1)for(var l=0;l 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * (view * tubePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);e.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(t,e,r){var n=r(2931),i=r(9970),a=["xyz","xzy","yxz","yzx","zxy","zyx"],o=function(t,e){var r,n=t.length;for(r=0;re)return r-1}return r},s=function(t,e,r){return tr?r:t},l=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;nh-1||v>f-1||x>p-1)return n.create();var _,b,w,T,k,A,M=a[0][d],S=a[0][y],E=a[1][m],C=a[1][v],I=a[2][g],L=(l-M)/(S-M),P=(u-E)/(C-E),z=(c-I)/(a[2][x]-I);switch(isFinite(L)||(L=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&&(d=h-1-d,y=h-1-y),r.reversedY&&(m=f-1-m,v=f-1-v),r.reversedZ&&(g=p-1-g,x=p-1-x),r.filled){case 5:k=g,A=x,w=m*p,T=v*p,_=d*p*f,b=y*p*f;break;case 4:k=g,A=x,_=d*p,b=y*p,w=m*p*h,T=v*p*h;break;case 3:w=m,T=v,k=g*f,A=x*f,_=d*f*p,b=y*f*p;break;case 2:w=m,T=v,_=d*f,b=y*f,k=g*f*h,A=x*f*h;break;case 1:_=d,b=y,k=g*h,A=x*h,w=m*h*p,T=v*h*p;break;default:_=d,b=y,w=m*h,T=v*h,k=g*h*f,A=x*h*f}var O=i[_+w+k],D=i[_+w+A],R=i[_+T+k],F=i[_+T+A],B=i[b+w+k],N=i[b+w+A],j=i[b+T+k],U=i[b+T+A],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,L),n.lerp(q,D,N,L),n.lerp(H,R,j,L),n.lerp(G,F,U,L);var Z=n.create(),W=n.create();n.lerp(Z,V,H,P),n.lerp(W,q,G,P);var Y=n.create();return n.lerp(Y,Z,W,z),Y}(e,t,p)},x=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=v(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=v(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=v(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},_=[],b=e[0][0],w=e[0][1],T=e[0][2],k=e[1][0],A=e[1][1],M=e[1][2],S=10*n.distance(e[0],e[1])/u,E=S*S,C=1,I=0,L=r.length;L>1&&(C=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,u=0;uI&&(I=j),B.push(j),_.push({points:O,velocities:D,divergences:B});for(var U=0;U<100*u&&O.lengthk||gA||yM));){U++;var V=n.clone(R),q=n.squaredLength(V);if(0===q)break;q>E&&n.scale(V,V,S/Math.sqrt(q)),n.add(V,V,z),R=v(V),n.squaredDistance(F,V)-E>-1e-4*E&&(O.push(V),F=V,D.push(R),N=x(V,R),j=n.length(N),isFinite(j)&&j>I&&(I=j),B.push(j)),z=V}}var H=function(t,e,r,a){for(var o=0,s=0;s0)for(T=0;T<8;T++){var k=(T+1)%8;u.push(f[T],p[T],p[k],p[k],f[k],f[T]),h.push(v,y,y,y,v,v),d.push(m,g,g,g,m,m);var A=u.length;c.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=f;f=p,p=M;var S=v;v=y,y=S;var E=m;m=g,g=E}return{positions:u,cells:c,vectors:h,vertexIntensity:d}}(t,r,a,o)})),h=[],f=[],p=[],d=[];for(s=0;s max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color — in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0);\n\n vec4 clipPosition = projection * (view * worldPosition);\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);e.createShader=function(t){var e=n(t,a,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},e.createPickShader=function(t){var e=n(t,a,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},e.createContourShader=function(t){var e=n(t,s,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},e.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},9499:function(t,e,r){t.exports=function(t){var e=t.gl,r=v(e),n=_(e),s=x(e),l=b(e),u=i(e),c=a(e,[{buffer:u,size:4,stride:w,offset:0},{buffer:u,size:3,stride:w,offset:16},{buffer:u,size:3,stride:w,offset:28}]),h=i(e),f=a(e,[{buffer:h,size:4,stride:20,offset:0},{buffer:h,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),m=o(e,1,S,e.RGBA,e.UNSIGNED_BYTE);m.minFilter=e.LINEAR,m.magFilter=e.LINEAR;var g=new E(e,[0,0],[[0,0,0],[0,0,0]],r,n,u,c,m,s,l,h,f,p,d,[0,0,0]),y={levels:[[],[],[]]};for(var T in t)y[T]=t[T];return y.colormap=y.colormap||"jet",g.update(y),g};var n=r(8828),i=r(2762),a=r(8116),o=r(7766),s=r(1888),l=r(6729),u=r(5298),c=r(9994),h=r(9618),f=r(3711),p=r(6760),d=r(7608),m=r(2478),g=r(6199),y=r(990),v=y.createShader,x=y.createContourShader,_=y.createPickShader,b=y.createPickContourShader,w=40,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],k=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],A=[[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 M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t<3;++t){var e=A[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();var S=256;function E(t,e,r,n,i,a,o,l,u,c,f,p,d,m,g){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=g,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=u,this._contourPickShader=c,this._contourBuffer=f,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=m,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=[h(s.mallocFloat(1024),[0,0]),h(s.mallocFloat(1024),[0,0]),h(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 C=E.prototype;C.genColormap=function(t,e){var r=!1,n=c([l({colormap:t,nshades:S,format:"rgba"}).map((function(t,n){var i=e?function(t,e){if(!e||!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i<1&&(r=!0),[t[0],t[1],t[2],255*i]}))]);return u.divseq(n,255),this.hasAlphaScale=r,n},C.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},C.isOpaque=function(){return!this.isTransparent()},C.pickSlots=1,C.setPickBase=function(t){this.pickId=t};var I=[0,0,0],L={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function P(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||I,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=L.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],p(l,t.model,l);var u=L.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)u[i][n]=t.clipBounds[i][n];u[0][r]=-1e8,u[1][r]=1e8}return L.showSurface=o,L.showContour=s,L}var z={model:T,view:T,projection:T,inverseModel:T.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},O=T.slice(),D=[1,0,0,0,1,0,0,0,1];function R(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=z;n.model=t.model||T,n.view=t.view||T,n.projection=t.projection||T,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=D,n.vertexColor=this.vertexColor;var s=O;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var u=s[12+i];for(o=0;o<3;++o)u+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=u/l}var c=P(n,this);if(c.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)!this.surfaceProject[i]||!this.vertexCount||(this._shader.uniforms.model=c.projections[i],this._shader.uniforms.clipBounds=c.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(c.showContour){var h=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,h.bind(),h.uniforms=n;var f=this._contourVAO;for(f.bind(),i=0;i<3;++i)for(h.uniforms.permutation=A[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var u=r.position;u[0]=u[1]=u[2]=0;for(var c=0;c<2;++c)for(var h=c?a:1-a,f=0;f<2;++f)for(var p=i+c,d=s+f,g=h*(f?l:1-l),y=0;y<3;++y)u[y]+=this._field[y].get(p,d)*g;for(var v=this._pickResult.level,x=0;x<3;++x)if(v[x]=m.le(this.contourLevels[x],u[x]),v[x]<0)this.contourLevels[x].length>0&&(v[x]=0);else if(v[x]Math.abs(b-u[x])&&(v[x]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],y=0;y<3;++y)r.dataCoordinate[y]=this._field[y].get(r.index[0],r.index[1]);return r},C.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();u.assign(t.lo(1,1).hi(r[0],r[1]),e),u.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),u.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),u.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),u.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},C.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in t&&(this.contourWidth=B(t.contourWidth,Number)),"showContour"in t&&(this.showContour=B(t.showContour,Boolean)),"showSurface"in t&&(this.showSurface=!!t.showSurface),"contourTint"in t&&(this.contourTint=B(t.contourTint,Boolean)),"contourColor"in t&&(this.contourColor=j(t.contourColor)),"contourProject"in t&&(this.contourProject=B(t.contourProject,(function(t){return B(t,Boolean)}))),"surfaceProject"in t&&(this.surfaceProject=t.surfaceProject),"dynamicColor"in t&&(this.dynamicColor=j(t.dynamicColor)),"dynamicTint"in t&&(this.dynamicTint=B(t.dynamicTint,Number)),"dynamicWidth"in t&&(this.dynamicWidth=B(t.dynamicWidth,Number)),"opacity"in t&&(this.opacity=t.opacity),"opacityscale"in t&&(this.opacityscale=t.opacityscale),"colorBounds"in t&&(this.colorBounds=t.colorBounds),"vertexColor"in t&&(this.vertexColor=t.vertexColor?1:0),"colormap"in t&&this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in t||"coords"in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=h(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=h(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(o=0;o<2;++o){var u=l[o];for(y=0;y<2;++y)if(u.shape[y]!==a[y])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[o],u)}}else if(t.ticks){var c=t.ticks;if(!Array.isArray(c)||2!==c.length)throw new Error("gl-surface: invalid ticks");for(o=0;o<2;++o){var p=c[o];if((Array.isArray(p)||p.length)&&(p=h(p)),p.shape[0]!==a[o])throw new Error("gl-surface: invalid tick length");var d=h(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o<2;++o){var m=[0,0];m[o]=1,this._field[o]=h(this._field[o].data,[a[0]+2,a[1]+2],m,0)}this._field[0].set(0,0,0);for(var y=0;y0){for(var xt=0;xt<5;++xt)K.pop();U-=1}continue t}K.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[Q]=et,this._contourCounts[Q]=rt}var _t=s.mallocFloat(K.length);for(o=0;os||o[1]<0||o[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=d(o,e.stride.slice()),u=0;"float32"===r?u=t.FLOAT:"float64"===r?(u=t.FLOAT,l=!1,r="float32"):"uint8"===r?u=t.UNSIGNED_BYTE:(u=t.UNSIGNED_BYTE,l=!1,r="uint8");var h=0;if(2===o.length)h=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===o[2])h=t.ALPHA;else if(2===o[2])h=t.LUMINANCE_ALPHA;else if(3===o[2])h=t.RGB;else{if(4!==o[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");h=t.RGBA}}u===t.FLOAT&&!t.getExtension("OES_texture_float")&&(u=t.UNSIGNED_BYTE,l=!1);var p,g,y=e.size;if(l)p=0===e.offset&&e.data.length===y?e.data:e.data.subarray(e.offset,e.offset+y);else{var v=[o[2],o[2]*o[0],1];g=a.malloc(y,r);var x=n(g,o,v,0);"float32"!==r&&"float64"!==r||u!==t.UNSIGNED_BYTE?i.assign(x,e):c(x,e),p=g.subarray(0,y)}var _=m(t);return t.texImage2D(t.TEXTURE_2D,0,h,o[0],o[1],0,h,u,p),l||a.free(g),new f(t,_,o[0],o[1],h,u)}(t,e)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var o=null,s=null,l=null;function u(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||"undefined"!=typeof ImageData&&t instanceof ImageData}var c=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e<0||e>i||r<0||r>i)throw new Error("gl-texture2d: Invalid texture size");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function f(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var p=f.prototype;function d(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function g(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error("gl-texture2d: Invalid texture shape");if(i===t.FLOAT&&!t.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new f(t,o,e,r,n,i)}Object.defineProperties(p,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==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(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var e=0;e<2;++e)if(l.indexOf(t[e])<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);this._wrapS=t[0],this._wrapT=t[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),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error("gl-texture2d: Invalid texture shape")}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),p.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},p.dispose=function(){this.gl.deleteTexture(this.handle)},p.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},p.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l)this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l);else{if(!(t.shape&&t.stride&&t.data))throw new Error("gl-texture2d: Unsupported data type");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>o||r+t.shape[0]>this._shape[0]>>>o||e<0||r<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");!function(t,e,r,o,s,l,u,h){var f=h.dtype,p=h.shape.slice();if(p.length<2||p.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var m=0,g=0,y=d(p,h.stride.slice());if("float32"===f?m=t.FLOAT:"float64"===f?(m=t.FLOAT,y=!1,f="float32"):"uint8"===f?m=t.UNSIGNED_BYTE:(m=t.UNSIGNED_BYTE,y=!1,f="uint8"),2===p.length)g=t.LUMINANCE,p=[p[0],p[1],1],h=n(h.data,p,[h.stride[0],h.stride[1],1],h.offset);else{if(3!==p.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===p[2])g=t.ALPHA;else if(2===p[2])g=t.LUMINANCE_ALPHA;else if(3===p[2])g=t.RGB;else{if(4!==p[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");g=t.RGBA}p[2]}if((g===t.LUMINANCE||g===t.ALPHA)&&(s===t.LUMINANCE||s===t.ALPHA)&&(g=s),g!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var v=h.size,x=u.indexOf(o)<0;if(x&&u.push(o),m===l&&y)0===h.offset&&h.data.length===v?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,h.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,h.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,h.data.subarray(h.offset,h.offset+v)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,h.data.subarray(h.offset,h.offset+v));else{var _;_=l===t.FLOAT?a.mallocFloat32(v):a.mallocUint8(v);var b=n(_,p,[p[2],p[2]*p[0],1]);m===t.FLOAT&&l===t.UNSIGNED_BYTE?c(b,h):i.assign(b,h),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,_.subarray(0,v)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,_.subarray(0,v)),l===t.FLOAT?a.freeFloat32(_):a.freeUint8(_)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},1433:function(t){t.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i1?0:Math.acos(s)};var n=r(2825),i=r(3536),a=r(244)},9226:function(t){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},3126:function(t){t.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},3990:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},1091:function(t){t.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},5911:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},5455:function(t,e,r){t.exports=r(7056)},7056:function(t){t.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},4008:function(t,e,r){t.exports=r(6690)},6690:function(t){t.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},244:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},2613:function(t){t.exports=1e-6},9922:function(t,e,r){t.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=r(2613)},9265:function(t){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},2681:function(t){t.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},5137:function(t,e,r){t.exports=function(t,e,r,i,a,o){var s,l;for(e||(e=3),r||(r=0),l=i?Math.min(i*e+r,t.length):t.length,s=r;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}},7636:function(t){t.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},6894:function(t){t.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),u=Math.cos(n);return t[0]=e[0],t[1]=i+o*u-s*l,t[2]=a+o*l+s*u,t}},109:function(t){t.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),u=Math.cos(n);return t[0]=i+s*l+o*u,t[1]=e[1],t[2]=a+s*u-o*l,t}},8692:function(t){t.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),u=Math.cos(n);return t[0]=i+o*u-s*l,t[1]=a+o*l+s*u,t[2]=e[2],t}},2447:function(t){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},6621:function(t){t.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},8489:function(t){t.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},1463:function(t){t.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},6141:function(t,e,r){t.exports=r(2953)},5486:function(t,e,r){t.exports=r(3066)},2953:function(t){t.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},3066:function(t){t.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},2229:function(t,e,r){t.exports=r(6843)},6843:function(t){t.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},492:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},5673:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},264:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=c*u+p*-o+h*-l-f*-s,t[1]=h*u+p*-s+f*-o-c*-l,t[2]=f*u+p*-l+c*-s-h*-o,t}},4361:function(t){t.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},2335:function(t){t.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},2933:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},7536:function(t){t.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},4691:function(t){t.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},1373:function(t){t.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},3750:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},3390:function(t){t.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},9970:function(t,e,r){t.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)}},4494:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},6808:function(t){t.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},2573:function(t){t.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},160:function(t){t.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},2334:function(t){t.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},3576:function(t){t.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},1498:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},5177:function(t){t.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o),t}},9131:function(t,e,r){var n=r(5177),i=r(9288);t.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},9288:function(t){t.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},4844:function(t){t.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},4578:function(t){t.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},7960:function(t){t.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},483:function(t){t.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},6860:function(t){t.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},5352:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},4041:function(t){t.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=c*u+p*-o+h*-l-f*-s,t[1]=h*u+p*-s+f*-o-c*-l,t[2]=f*u+p*-l+c*-s-h*-o,t[3]=e[3],t}},1848:function(t,e,r){var n=r(4905),i=r(6468);t.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r0)continue;r=t.slice(0,1).join("")}return N(r),L+=r.length,(S=S.slice(r.length)).length}}function q(){if(/[^\d\w_]/.test(e)){var t=S.join("");return M=B[t]?v:F[t]?y:g,N(S.join("")),M=l,k}return S.push(e),r=e,k+1}};var n=r(620),i=r(7827),a=r(6852),o=r(7932),s=r(3508),l=999,u=9999,c=0,h=1,f=2,p=3,d=4,m=5,g=6,y=7,v=8,x=9,_=10,b=11,w=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3508:function(t,e,r){var n=r(6852);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),t.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(t,e,r){var n=r(620);t.exports=n.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"])},620:function(t){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(t){t.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(t,e,r){var n=r(5874);t.exports=function(t,e){var r=n(e),i=[];return(i=i.concat(r(t))).concat(r(null))}},3236:function(t){t.exports=function(t){"string"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*m}},8954:function(t,e,r){t.exports=function(t,e){var r=t.length;if(0===r)throw new Error("Must have at least d+1 points");var i=t[0].length;if(r<=i)throw new Error("Must input at least d+1 points");var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error("Input not in general position");for(var l=new Array(i+1),c=0;c<=i;++c)l[c]=c;s<0&&(l[0]=1,l[1]=0);var h=new a(l,new Array(i+1),!1),f=h.adjacent,p=new Array(i+2);for(c=0;c<=i;++c){for(var d=l.slice(),m=0;m<=i;++m)m===c&&(d[m]=-1);var g=d[0];d[0]=d[1],d[1]=g;var y=new a(d,new Array(i+1),!0);f[c]=y,p[c]=y}for(p[i+1]=h,c=0;c<=i;++c){d=f[c].vertices;var v=f[c].adjacent;for(m=0;m<=i;++m){var x=d[m];if(x<0)v[m]=h;else for(var _=0;_<=i;++_)f[_].vertices.indexOf(x)<0&&(v[m]=f[_])}}var b=new u(i,o,p),w=!!e;for(c=i+1;c0;)for(var s=(t=o.pop()).adjacent,l=0;l<=r;++l){var u=s[l];if(u.boundary&&!(u.lastVisited<=-n)){for(var c=u.vertices,h=0;h<=r;++h){var f=c[h];i[h]=f<0?e:a[f]}var p=this.orient();if(p>0)return u;u.lastVisited=-n,0===p&&o.push(u)}}return null},c.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,u=s.adjacent,c=0;c<=n;++c)a[c]=i[l[c]];for(s.lastVisited=r,c=0;c<=n;++c){var h=u[c];if(!(h.lastVisited>=r)){var f=a[c];a[c]=t;var p=this.orient();if(a[c]=f,p<0){s=h;continue t}h.boundary?h.lastVisited=-r:h.lastVisited=r}}return}return s},c.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,u=this.interior,c=this.simplices,h=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,u.push(e);for(var f=[];h.length>0;){var p=(e=h.pop()).vertices,d=e.adjacent,m=p.indexOf(r);if(!(m<0))for(var g=0;g<=n;++g)if(g!==m){var y=d[g];if(y.boundary&&!(y.lastVisited>=r)){var v=y.vertices;if(y.lastVisited!==-r){for(var x=0,_=0;_<=n;++_)v[_]<0?(x=_,l[_]=t):l[_]=i[v[_]];if(this.orient()>0){v[x]=r,y.boundary=!1,u.push(y),h.push(y),y.lastVisited=r;continue}y.lastVisited=-r}var b=y.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);c.push(k);var A=b.indexOf(e);if(!(A<0))for(b[A]=k,T[m]=y,w[g]=-1,T[g]=e,d[g]=k,k.flip(),_=0;_<=n;++_){var M=w[_];if(!(M<0||M===r)){for(var S=new Array(n-1),E=0,C=0;C<=n;++C){var I=w[C];I<0||C===_||(S[E++]=I)}f.push(new o(S,k,_))}}}}}for(f.sort(s),g=0;g+1=0?o[l++]=s[c]:u=1&c;if(u===(1&t)){var h=o[0];o[0]=o[1],o[1]=h}e.push(o)}}return e}},3352:function(t,e,r){var n=r(2478);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}t.exports=function(t){return t&&0!==t.length?new y(g(t)):new y(null)};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=g(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function u(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?0:(r.splice(n,1),s(t,r),1)}function c(t,e,r){for(var n=0;n=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function f(t,e){for(var r=0;r>1],a=[],o=[],s=[];for(r=0;r3*(e+1)?l(this,t):this.left.insert(t):this.left=g([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?l(this,t):this.right.insert(t):this.right=g([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,m);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]3*(e-1)?u(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?u(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);athis.mid?this.right&&(r=this.right.queryPoint(t,e))?r:h(this.rightPoints,t,e):f(this.leftPoints,e);var r},a.queryInterval=function(t,e,r){var n;return tthis.mid&&this.right&&(n=this.right.queryInterval(t,e,r))?n:ethis.mid?h(this.rightPoints,t,r):f(this.leftPoints,r)};var v=y.prototype;v.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},v.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),0!==e}return!1},v.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},v.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(v,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(v,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9507:function(t){t.exports=!0},7163:function(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},5219:function(t){t.exports=function(t){for(var e,r=t.length,n=0;n13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},395:function(t){t.exports=function(t,e,r){return t*(1-r)+e*r}},2652:function(t,e,r){var n=r(4335),i=r(6864),a=r(1903),o=r(9921),s=r(7608),l=r(5665),u={length:r(1387),normalize:r(3536),dot:r(244),cross:r(5911)},c=i(),h=i(),f=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function m(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}t.exports=function(t,e,r,i,g,y){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),g||(g=[0,0,0,1]),y||(y=[0,0,0,1]),!n(c,t)||(a(h,c),h[3]=0,h[7]=0,h[11]=0,h[15]=1,Math.abs(o(h)<1e-8)))return!1;var v=c[3],x=c[7],_=c[11],b=c[12],w=c[13],T=c[14],k=c[15];if(0!==v||0!==x||0!==_){if(f[0]=v,f[1]=x,f[2]=_,f[3]=k,!s(h,h))return!1;l(h,h),function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o}(g,f,h)}else g[0]=g[1]=g[2]=0,g[3]=1;if(e[0]=b,e[1]=w,e[2]=T,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,c),r[0]=u.length(p[0]),u.normalize(p[0],p[0]),i[0]=u.dot(p[0],p[1]),m(p[1],p[1],p[0],1,-i[0]),r[1]=u.length(p[1]),u.normalize(p[1],p[1]),i[0]/=r[1],i[1]=u.dot(p[0],p[2]),m(p[2],p[2],p[0],1,-i[1]),i[2]=u.dot(p[1],p[2]),m(p[2],p[2],p[1],1,-i[2]),r[2]=u.length(p[2]),u.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],u.cross(d,p[1],p[2]),u.dot(p[0],d)<0)for(var A=0;A<3;A++)r[A]*=-1,p[A][0]*=-1,p[A][1]*=-1,p[A][2]*=-1;return y[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),y[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),y[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),y[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(y[0]=-y[0]),p[0][2]>p[2][0]&&(y[1]=-y[1]),p[1][0]>p[0][1]&&(y[2]=-y[2]),!0}},4335:function(t){t.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},7442:function(t,e,r){var n=r(6658),i=r(7182),a=r(2652),o=r(9921),s=r(8648),l=h(),u=h(),c=h();function h(){return{translate:f(),scale:f(1),skew:f(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function f(t){return[t||0,t||0,t||0]}t.exports=function(t,e,r,h){if(0===o(e)||0===o(r))return!1;var f=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,u.translate,u.scale,u.skew,u.perspective,u.quaternion);return!(!f||!p||(n(c.translate,l.translate,u.translate,h),n(c.skew,l.skew,u.skew,h),n(c.scale,l.scale,u.scale,h),n(c.perspective,l.perspective,u.perspective,h),s(c.quaternion,l.quaternion,u.quaternion,h),i(t,c.translate,c.scale,c.skew,c.perspective,c.quaternion),0))}},7182:function(t,e,r){var n={identity:r(7894),translate:r(7656),multiply:r(6760),create:r(6864),scale:r(2504),fromRotationTranslation:r(6743)},i=(n.create(),n.create());t.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},1811:function(t,e,r){var n=r(2478),i=r(7442),a=r(7608),o=r(5567),s=r(2408),l=r(7089),u=r(6582),c=r(7656),h=(r(2504),r(3536)),f=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}t.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r<0)){var s=this._components;if(r===e.length-1)for(var l=16*r,u=0;u<16;++u)o[u]=s[l++];else{var c=e[r+1]-e[r],f=(l=16*r,this.prevMatrix),p=!0;for(u=0;u<16;++u)f[u]=s[l++];var d=this.nextMatrix;for(u=0;u<16;++u)d[u]=s[l++],p=p&&f[u]===d[u];if(c<1e-6||p)for(u=0;u<16;++u)o[u]=f[u];else i(o,f,d,(t-e[r])/c)}var m=this.computedUp;m[0]=o[1],m[1]=o[5],m[2]=o[9],h(m,m);var g=this.computedInverse;a(g,o);var y=this.computedEye,v=g[15];y[0]=g[12]/v,y[1]=g[13]/v,y[2]=g[14]/v;var x=this.computedCenter,_=Math.exp(this.computedRadius[0]);for(u=0;u<3;++u)x[u]=y[u]-o[2+4*u]*_}},d.idle=function(t){if(!(t1&&n(t[o[c-2]],t[o[c-1]],u)<=0;)c-=1,o.pop();for(o.push(l),c=s.length;c>1&&n(t[s[c-2]],t[s[c-1]],u)>=0;)c-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var h=0,f=(i=0,o.length);i0;--p)r[h++]=s[p];return r};var n=r(3250)[3]},351:function(t,e,r){t.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return"altKey"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),"shiftKey"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),"ctrlKey"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),"metaKey"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function u(t,s){var u=n.x(s),c=n.y(s);"buttons"in s&&(t=0|s.buttons),(t!==r||u!==i||c!==a||l(s))&&(r=0|t,i=u||0,a=c||0,e&&e(r,i,a,o))}function c(t){u(0,t)}function h(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function f(t){l(t)&&e&&e(r,i,a,o)}function p(t){0===n.buttons(t)?u(0,t):u(r,t)}function d(t){u(r|n.buttons(t),t)}function m(t){u(r&~n.buttons(t),t)}function g(){s||(s=!0,t.addEventListener("mousemove",p),t.addEventListener("mousedown",d),t.addEventListener("mouseup",m),t.addEventListener("mouseleave",c),t.addEventListener("mouseenter",c),t.addEventListener("mouseout",c),t.addEventListener("mouseover",c),t.addEventListener("blur",h),t.addEventListener("keyup",f),t.addEventListener("keydown",f),t.addEventListener("keypress",f),t!==window&&(window.addEventListener("blur",h),window.addEventListener("keyup",f),window.addEventListener("keydown",f),window.addEventListener("keypress",f)))}g();var y={element:t};return Object.defineProperties(y,{enabled:{get:function(){return s},set:function(e){e?g():s&&(s=!1,t.removeEventListener("mousemove",p),t.removeEventListener("mousedown",d),t.removeEventListener("mouseup",m),t.removeEventListener("mouseleave",c),t.removeEventListener("mouseenter",c),t.removeEventListener("mouseout",c),t.removeEventListener("mouseover",c),t.removeEventListener("blur",h),t.removeEventListener("keyup",f),t.removeEventListener("keydown",f),t.removeEventListener("keypress",f),t!==window&&(window.removeEventListener("blur",h),window.removeEventListener("keyup",f),window.removeEventListener("keydown",f),window.removeEventListener("keypress",f)))},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),y};var n=r(4687)},24:function(t){var e={left:0,top:0};t.exports=function(t,r,n){r=r||t.currentTarget||t.srcElement,Array.isArray(n)||(n=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=function(t){return t===window||t===document||t===document.body?e:t.getBoundingClientRect()}(r);return n[0]=i-o.left,n[1]=a-o.top,n}},4687:function(t,e){function r(t){return t.target||t.srcElement||window}e.buttons=function(t){if("object"==typeof t){if("buttons"in t)return t.buttons;if("which"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<=0)return 1< 0"),"function"!=typeof t.vertex&&e("Must specify vertex creation function"),"function"!=typeof t.cell&&e("Must specify cell creation function"),"function"!=typeof t.phase&&e("Must specify phase function");for(var o=t.getters||[],s=new Array(a),l=0;l=0?s[l]=!0:s[l]=!1;return function(t,e,r,a,o,s){var l=[s,o].join(",");return(0,i[l])(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,0,r,s)};var i={"false,0,1":function(t,e,r,n,i){return function(a,o,s,l){var u,c=0|a.shape[0],h=0|a.shape[1],f=a.data,p=0|a.offset,d=0|a.stride[0],m=0|a.stride[1],g=p,y=0|-d,v=0,x=0|-m,_=0,b=-d-m|0,w=0,T=0|d,k=m-d*c|0,A=0,M=0,S=0,E=2*c|0,C=n(E),I=n(E),L=0,P=0,z=-1,O=-1,D=0,R=0|-c,F=0|c,B=0,N=-c-1|0,j=c-1|0,U=0,V=0,q=0;for(A=0;A0){if(M=1,C[L++]=r(f[g],o,s,l),g+=T,c>0)for(A=1,u=f[g],P=C[L]=r(u,o,s,l),D=C[L+z],B=C[L+R],U=C[L+N],(P!==D||P!==B||P!==U)&&(v=f[g+y],_=f[g+x],w=f[g+b],t(A,M,u,v,_,w,P,D,B,U,o,s,l),V=I[L]=S++),L+=1,g+=T,A=2;A0)for(A=1,u=f[g],P=C[L]=r(u,o,s,l),D=C[L+z],B=C[L+R],U=C[L+N],(P!==D||P!==B||P!==U)&&(v=f[g+y],_=f[g+x],w=f[g+b],t(A,M,u,v,_,w,P,D,B,U,o,s,l),V=I[L]=S++,U!==B&&e(I[L+R],V,_,w,B,U,o,s,l)),L+=1,g+=T,A=2;A0){if(A=1,C[L++]=r(f[g],o,s,l),g+=T,h>0)for(M=1,u=f[g],P=C[L]=r(u,o,s,l),B=C[L+R],D=C[L+z],U=C[L+N],(P!==B||P!==D||P!==U)&&(v=f[g+y],_=f[g+x],w=f[g+b],t(A,M,u,v,_,w,P,B,D,U,o,s,l),V=I[L]=S++),L+=1,g+=T,M=2;M0)for(M=1,u=f[g],P=C[L]=r(u,o,s,l),B=C[L+R],D=C[L+z],U=C[L+N],(P!==B||P!==D||P!==U)&&(v=f[g+y],_=f[g+x],w=f[g+b],t(A,M,u,v,_,w,P,B,D,U,o,s,l),V=I[L]=S++,U!==B&&e(I[L+R],V,w,v,U,B,o,s,l)),L+=1,g+=T,M=2;M2&&a[1]>2&&n(i.pick(-1,-1).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,0).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,1).lo(1,1).hi(a[0]-2,a[1]-2)),a[1]>2&&(r(i.pick(0,-1).lo(1).hi(a[1]-2),t.pick(0,-1,1).lo(1).hi(a[1]-2)),e(t.pick(0,-1,0).lo(1).hi(a[1]-2))),a[1]>2&&(r(i.pick(a[0]-1,-1).lo(1).hi(a[1]-2),t.pick(a[0]-1,-1,1).lo(1).hi(a[1]-2)),e(t.pick(a[0]-1,-1,0).lo(1).hi(a[1]-2))),a[0]>2&&(r(i.pick(-1,0).lo(1).hi(a[0]-2),t.pick(-1,0,0).lo(1).hi(a[0]-2)),e(t.pick(-1,0,1).lo(1).hi(a[0]-2))),a[0]>2&&(r(i.pick(-1,a[1]-1).lo(1).hi(a[0]-2),t.pick(-1,a[1]-1,0).lo(1).hi(a[0]-2)),e(t.pick(-1,a[1]-1,1).lo(1).hi(a[0]-2))),t.set(0,0,0,0),t.set(0,0,1,0),t.set(a[0]-1,0,0,0),t.set(a[0]-1,0,1,0),t.set(0,a[1]-1,0,0),t.set(0,a[1]-1,1,0),t.set(a[0]-1,a[1]-1,0,0),t.set(a[0]-1,a[1]-1,1,0),t}}t.exports=function(t,e,r){if(Array.isArray(r)||(r=n(e.dimension,"string"==typeof r?r:"clamp")),0===e.size)return t;if(0===e.dimension)return t.set(0),t;var i=function(t){var e=t.join();if(a=c[e])return a;for(var r=t.length,n=[h,f],i=1;i<=r;++i)n.push(p(i));var a=d.apply(void 0,n);return c[e]=a,a}(r);return i(t,e)}},4317:function(t){function e(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r0;){x<64?(l=x,x=0):(l=64,x-=64);for(var _=0|t[1];_>0;){_<64?(u=_,_=0):(u=64,_-=64),n=y+x*h+_*f,o=v+x*d+_*m;var b=0,w=0,T=0,k=p,A=h-c*p,M=f-l*h,S=g,E=d-c*g,C=m-l*d;for(T=0;T0;){m<64?(l=m,m=0):(l=64,m-=64);for(var g=0|t[0];g>0;){g<64?(s=g,g=0):(s=64,g-=64),n=p+m*c+g*u,o=d+m*f+g*h;var y=0,v=0,x=c,_=u-l*c,b=f,w=h-l*f;for(v=0;v0;){v<64?(u=v,v=0):(u=64,v-=64);for(var x=0|t[0];x>0;){x<64?(s=x,x=0):(s=64,x-=64);for(var _=0|t[1];_>0;){_<64?(l=_,_=0):(l=64,_-=64),n=g+v*f+x*c+_*h,o=y+v*m+x*p+_*d;var b=0,w=0,T=0,k=f,A=c-u*f,M=h-s*c,S=m,E=p-u*m,C=d-s*p;for(T=0;Tr;){y=0,v=m-o;e:for(g=0;g_)break e;v+=h,y+=f}for(y=m,v=m-o,g=0;g>1,H=q-j,G=q+j,Z=U,W=H,Y=q,X=G,$=V,J=i+1,K=a-1,Q=!0,tt=0,et=0,rt=0,nt=h,it=e(nt),at=e(nt);A=l*Z,M=l*W,N=s;t:for(k=0;k0){g=Z,Z=W,W=g;break t}if(rt<0)break t;N+=p}A=l*X,M=l*$,N=s;t:for(k=0;k0){g=X,X=$,$=g;break t}if(rt<0)break t;N+=p}A=l*Z,M=l*Y,N=s;t:for(k=0;k0){g=Z,Z=Y,Y=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*Y,N=s;t:for(k=0;k0){g=W,W=Y,Y=g;break t}if(rt<0)break t;N+=p}A=l*Z,M=l*X,N=s;t:for(k=0;k0){g=Z,Z=X,X=g;break t}if(rt<0)break t;N+=p}A=l*Y,M=l*X,N=s;t:for(k=0;k0){g=Y,Y=X,X=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*$,N=s;t:for(k=0;k0){g=W,W=$,$=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*Y,N=s;t:for(k=0;k0){g=W,W=Y,Y=g;break t}if(rt<0)break t;N+=p}A=l*X,M=l*$,N=s;t:for(k=0;k0){g=X,X=$,$=g;break t}if(rt<0)break t;N+=p}for(A=l*Z,M=l*W,S=l*Y,E=l*X,C=l*$,I=l*U,L=l*q,P=l*V,B=0,N=s,k=0;k0)){if(rt<0){for(A=l*_,M=l*J,S=l*K,N=s,k=0;k0)for(;;){for(b=s+K*l,B=0,k=0;k0)){for(b=s+K*l,B=0,k=0;kV){t:for(;;){for(b=s+J*l,B=0,N=s,k=0;k1&&n?s(r,n[0],n[1]):s(r)}(t,e,l);return n(l,u)}},446:function(t,e,r){var n=r(7640),i={};t.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(":"),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},9618:function(t,e,r){var n=r(7163),i="undefined"!=typeof Float64Array;function a(t,e){return t[0]-e[0]}function o(){var t,e=this.stride,r=new Array(e.length);for(t=0;t=0&&(e+=a*(r=0|t),i-=r),new n(this.data,i,a,e)},i.step=function(t){var e=this.shape[0],r=this.stride[0],i=this.offset,a=0,o=Math.ceil;return"number"==typeof t&&((a=0|t)<0?(i+=r*(e-1),e=o(-e/a)):e=o(e/a),r*=a),new n(this.data,e,r,i)},i.transpose=function(t){t=void 0===t?0:0|t;var e=this.shape,r=this.stride;return new n(this.data,e[t],r[t],this.offset)},i.pick=function(t){var r=[],n=[],i=this.offset;return"number"==typeof t&&t>=0?i=i+this.stride[0]*t|0:(r.push(this.shape[0]),n.push(this.stride[0])),(0,e[r.length+1])(this.data,r,n,i)},function(t,e,r,i){return new n(t,e[0],r[0],i)}},2:function(t,e,r){function n(t,e,r,n,i,a){this.data=t,this.shape=[e,r],this.stride=[n,i],this.offset=0|a}var i=n.prototype;return i.dtype=t,i.dimension=2,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(i,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),i.set=function(e,r,n){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r,n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]=n},i.get=function(e,r){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]},i.index=function(t,e){return this.offset+this.stride[0]*t+this.stride[1]*e},i.hi=function(t,e){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,this.stride[0],this.stride[1],this.offset)},i.lo=function(t,e){var r=this.offset,i=0,a=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"==typeof t&&t>=0&&(r+=s*(i=0|t),a-=i),"number"==typeof e&&e>=0&&(r+=l*(i=0|e),o-=i),new n(this.data,a,o,s,l,r)},i.step=function(t,e){var r=this.shape[0],i=this.shape[1],a=this.stride[0],o=this.stride[1],s=this.offset,l=0,u=Math.ceil;return"number"==typeof t&&((l=0|t)<0?(s+=a*(r-1),r=u(-r/l)):r=u(r/l),a*=l),"number"==typeof e&&((l=0|e)<0?(s+=o*(i-1),i=u(-i/l)):i=u(i/l),o*=l),new n(this.data,r,i,a,o,s)},i.transpose=function(t,e){t=void 0===t?0:0|t,e=void 0===e?1:0|e;var r=this.shape,i=this.stride;return new n(this.data,r[t],r[e],i[t],i[e],this.offset)},i.pick=function(t,r){var n=[],i=[],a=this.offset;return"number"==typeof t&&t>=0?a=a+this.stride[0]*t|0:(n.push(this.shape[0]),i.push(this.stride[0])),"number"==typeof r&&r>=0?a=a+this.stride[1]*r|0:(n.push(this.shape[1]),i.push(this.stride[1])),(0,e[n.length+1])(this.data,n,i,a)},function(t,e,r,i){return new n(t,e[0],e[1],r[0],r[1],i)}},3:function(t,e,r){function n(t,e,r,n,i,a,o,s){this.data=t,this.shape=[e,r,n],this.stride=[i,a,o],this.offset=0|s}var i=n.prototype;return i.dtype=t,i.dimension=3,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(i,"order",{get:function(){var t=Math.abs(this.stride[0]),e=Math.abs(this.stride[1]),r=Math.abs(this.stride[2]);return t>e?e>r?[2,1,0]:t>r?[1,2,0]:[1,0,2]:t>r?[2,0,1]:r>e?[0,1,2]:[0,2,1]}}),i.set=function(e,r,n,i){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n,i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]=i},i.get=function(e,r,n){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]},i.index=function(t,e,r){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r},i.hi=function(t,e,r){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,this.stride[0],this.stride[1],this.stride[2],this.offset)},i.lo=function(t,e,r){var i=this.offset,a=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],u=this.stride[0],c=this.stride[1],h=this.stride[2];return"number"==typeof t&&t>=0&&(i+=u*(a=0|t),o-=a),"number"==typeof e&&e>=0&&(i+=c*(a=0|e),s-=a),"number"==typeof r&&r>=0&&(i+=h*(a=0|r),l-=a),new n(this.data,o,s,l,u,c,h,i)},i.step=function(t,e,r){var i=this.shape[0],a=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],u=this.stride[2],c=this.offset,h=0,f=Math.ceil;return"number"==typeof t&&((h=0|t)<0?(c+=s*(i-1),i=f(-i/h)):i=f(i/h),s*=h),"number"==typeof e&&((h=0|e)<0?(c+=l*(a-1),a=f(-a/h)):a=f(a/h),l*=h),"number"==typeof r&&((h=0|r)<0?(c+=u*(o-1),o=f(-o/h)):o=f(o/h),u*=h),new n(this.data,i,a,o,s,l,u,c)},i.transpose=function(t,e,r){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r;var i=this.shape,a=this.stride;return new n(this.data,i[t],i[e],i[r],a[t],a[e],a[r],this.offset)},i.pick=function(t,r,n){var i=[],a=[],o=this.offset;return"number"==typeof t&&t>=0?o=o+this.stride[0]*t|0:(i.push(this.shape[0]),a.push(this.stride[0])),"number"==typeof r&&r>=0?o=o+this.stride[1]*r|0:(i.push(this.shape[1]),a.push(this.stride[1])),"number"==typeof n&&n>=0?o=o+this.stride[2]*n|0:(i.push(this.shape[2]),a.push(this.stride[2])),(0,e[i.length+1])(this.data,i,a,o)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],r[0],r[1],r[2],i)}},4:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,u){this.data=t,this.shape=[e,r,n,i],this.stride=[a,o,s,l],this.offset=0|u}var i=n.prototype;return i.dtype=t,i.dimension=4,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i,a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]=a},i.get=function(e,r,n,i){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]},i.index=function(t,e,r,n){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n},i.hi=function(t,e,r,i){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,"number"!=typeof i||i<0?this.shape[3]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},i.lo=function(t,e,r,i){var a=this.offset,o=0,s=this.shape[0],l=this.shape[1],u=this.shape[2],c=this.shape[3],h=this.stride[0],f=this.stride[1],p=this.stride[2],d=this.stride[3];return"number"==typeof t&&t>=0&&(a+=h*(o=0|t),s-=o),"number"==typeof e&&e>=0&&(a+=f*(o=0|e),l-=o),"number"==typeof r&&r>=0&&(a+=p*(o=0|r),u-=o),"number"==typeof i&&i>=0&&(a+=d*(o=0|i),c-=o),new n(this.data,s,l,u,c,h,f,p,d,a)},i.step=function(t,e,r,i){var a=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],u=this.stride[0],c=this.stride[1],h=this.stride[2],f=this.stride[3],p=this.offset,d=0,m=Math.ceil;return"number"==typeof t&&((d=0|t)<0?(p+=u*(a-1),a=m(-a/d)):a=m(a/d),u*=d),"number"==typeof e&&((d=0|e)<0?(p+=c*(o-1),o=m(-o/d)):o=m(o/d),c*=d),"number"==typeof r&&((d=0|r)<0?(p+=h*(s-1),s=m(-s/d)):s=m(s/d),h*=d),"number"==typeof i&&((d=0|i)<0?(p+=f*(l-1),l=m(-l/d)):l=m(l/d),f*=d),new n(this.data,a,o,s,l,u,c,h,f,p)},i.transpose=function(t,e,r,i){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i;var a=this.shape,o=this.stride;return new n(this.data,a[t],a[e],a[r],a[i],o[t],o[e],o[r],o[i],this.offset)},i.pick=function(t,r,n,i){var a=[],o=[],s=this.offset;return"number"==typeof t&&t>=0?s=s+this.stride[0]*t|0:(a.push(this.shape[0]),o.push(this.stride[0])),"number"==typeof r&&r>=0?s=s+this.stride[1]*r|0:(a.push(this.shape[1]),o.push(this.stride[1])),"number"==typeof n&&n>=0?s=s+this.stride[2]*n|0:(a.push(this.shape[2]),o.push(this.stride[2])),"number"==typeof i&&i>=0?s=s+this.stride[3]*i|0:(a.push(this.shape[3]),o.push(this.stride[3])),(0,e[a.length+1])(this.data,a,o,s)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],r[0],r[1],r[2],r[3],i)}},5:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,u,c,h){this.data=t,this.shape=[e,r,n,i,a],this.stride=[o,s,l,u,c],this.offset=0|h}var i=n.prototype;return i.dtype=t,i.dimension=5,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a,o){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a,o):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]=o},i.get=function(e,r,n,i,a){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]},i.index=function(t,e,r,n,i){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n+this.stride[4]*i},i.hi=function(t,e,r,i,a){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,"number"!=typeof i||i<0?this.shape[3]:0|i,"number"!=typeof a||a<0?this.shape[4]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},i.lo=function(t,e,r,i,a){var o=this.offset,s=0,l=this.shape[0],u=this.shape[1],c=this.shape[2],h=this.shape[3],f=this.shape[4],p=this.stride[0],d=this.stride[1],m=this.stride[2],g=this.stride[3],y=this.stride[4];return"number"==typeof t&&t>=0&&(o+=p*(s=0|t),l-=s),"number"==typeof e&&e>=0&&(o+=d*(s=0|e),u-=s),"number"==typeof r&&r>=0&&(o+=m*(s=0|r),c-=s),"number"==typeof i&&i>=0&&(o+=g*(s=0|i),h-=s),"number"==typeof a&&a>=0&&(o+=y*(s=0|a),f-=s),new n(this.data,l,u,c,h,f,p,d,m,g,y,o)},i.step=function(t,e,r,i,a){var o=this.shape[0],s=this.shape[1],l=this.shape[2],u=this.shape[3],c=this.shape[4],h=this.stride[0],f=this.stride[1],p=this.stride[2],d=this.stride[3],m=this.stride[4],g=this.offset,y=0,v=Math.ceil;return"number"==typeof t&&((y=0|t)<0?(g+=h*(o-1),o=v(-o/y)):o=v(o/y),h*=y),"number"==typeof e&&((y=0|e)<0?(g+=f*(s-1),s=v(-s/y)):s=v(s/y),f*=y),"number"==typeof r&&((y=0|r)<0?(g+=p*(l-1),l=v(-l/y)):l=v(l/y),p*=y),"number"==typeof i&&((y=0|i)<0?(g+=d*(u-1),u=v(-u/y)):u=v(u/y),d*=y),"number"==typeof a&&((y=0|a)<0?(g+=m*(c-1),c=v(-c/y)):c=v(c/y),m*=y),new n(this.data,o,s,l,u,c,h,f,p,d,m,g)},i.transpose=function(t,e,r,i,a){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i,a=void 0===a?4:0|a;var o=this.shape,s=this.stride;return new n(this.data,o[t],o[e],o[r],o[i],o[a],s[t],s[e],s[r],s[i],s[a],this.offset)},i.pick=function(t,r,n,i,a){var o=[],s=[],l=this.offset;return"number"==typeof t&&t>=0?l=l+this.stride[0]*t|0:(o.push(this.shape[0]),s.push(this.stride[0])),"number"==typeof r&&r>=0?l=l+this.stride[1]*r|0:(o.push(this.shape[1]),s.push(this.stride[1])),"number"==typeof n&&n>=0?l=l+this.stride[2]*n|0:(o.push(this.shape[2]),s.push(this.stride[2])),"number"==typeof i&&i>=0?l=l+this.stride[3]*i|0:(o.push(this.shape[3]),s.push(this.stride[3])),"number"==typeof a&&a>=0?l=l+this.stride[4]*a|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,e[o.length+1])(this.data,o,s,l)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],e[4],r[0],r[1],r[2],r[3],r[4],i)}}};function l(t,e){var r=-1===e?"T":String(e),n=s[r];return-1===e?n(t):0===e?n(t,u[t][0]):n(t,u[t],o)}var u={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};t.exports=function(t,e,r,a){if(void 0===t)return(0,u.array[0])([]);"number"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,c=1;s>=0;--s)r[s]=c,c*=e[s]}if(void 0===a)for(a=0,s=0;s>>0;t.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-i:i;var r=n.hi(t),o=n.lo(t);return e>t==t>0?o===a?(r+=1,o=0):o+=1:0===o?(o=a,r-=1):o-=1,n.pack(o,r)}},8406:function(t,e){e.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;oa){var _=i[u],b=1/Math.sqrt(g*v);for(x=0;x<3;++x){var w=(x+1)%3,T=(x+2)%3;_[x]+=b*(y[w]*m[T]-y[T]*m[w])}}}for(o=0;oa)for(b=1/Math.sqrt(k),x=0;x<3;++x)_[x]*=b;else for(x=0;x<3;++x)_[x]=0}return i},e.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;oa?1/Math.sqrt(p):0,u=0;u<3;++u)f[u]*=p;i[o]=f}return i}},4081:function(t){t.exports=function(t,e,r,n,i,a,o,s,l,u){var c=e+a+u;if(h>0){var h=Math.sqrt(c+1);t[0]=.5*(o-l)/h,t[1]=.5*(s-n)/h,t[2]=.5*(r-a)/h,t[3]=.5*h}else{var f=Math.max(e,a,u);h=Math.sqrt(2*f-c+1),e>=f?(t[0]=.5*h,t[1]=.5*(i+r)/h,t[2]=.5*(s+n)/h,t[3]=.5*(o-l)/h):a>=f?(t[0]=.5*(r+i)/h,t[1]=.5*h,t[2]=.5*(l+o)/h,t[3]=.5*(s-n)/h):(t[0]=.5*(n+s)/h,t[1]=.5*(o+l)/h,t[2]=.5*h,t[3]=.5*(r-i)/h)}return t}},9977:function(t,e,r){t.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),c(r=[].slice.call(r,0,4),r);var i=new h(r,e,Math.log(n));return i.setDistanceLimits(t.zoomMin,t.zoomMax),("eye"in t||"up"in t)&&i.lookAt(0,t.eye,t.center,t.up),i};var n=r(9215),i=r(6582),a=r(7399),o=r(7608),s=r(4081);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function c(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=u(r,n,i,a);o>1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function h(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),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 f=h.prototype;f.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},f.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;c(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var u=0,h=0;h<3;++h)u+=r[l+4*h]*i[h];r[12+l]=-u}},f.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},f.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},f.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},f.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],u=l(a,o,s);a/=u,o/=u,s/=u;var c=i[0],h=i[4],f=i[8],p=c*a+h*o+f*s,d=l(c-=a*p,h-=o*p,f-=s*p);c/=d,h/=d,f/=d;var m=i[2],g=i[6],y=i[10],v=m*a+g*o+y*s,x=m*c+g*h+y*f,_=l(m-=v*a+x*c,g-=v*o+x*h,y-=v*s+x*f);m/=_,g/=_,y/=_;var b=c*e+a*r,w=h*e+o*r,T=f*e+s*r;this.center.move(t,b,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},f.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],c=i[1],h=i[5],f=i[9],p=i[2],d=i[6],m=i[10],g=e*a+r*c,y=e*o+r*h,v=e*s+r*f,x=-(d*v-m*y),_=-(m*g-p*v),b=-(p*y-d*g),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(_,2)-Math.pow(b,2))),T=u(x,_,b,w);T>1e-6?(x/=T,_/=T,b/=T,w/=T):(x=_=b=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],C=A*w+E*x+M*b-S*_,I=M*w+E*_+S*x-A*b,L=S*w+E*b+A*_-M*x,P=E*w-A*x-M*_-S*b;if(n){x=p,_=d,b=m;var z=Math.sin(n)/l(x,_,b);x*=z,_*=z,b*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+I*b-L*_)*x-(I=I*w+P*_+L*x-C*b)*_-(L=L*w+P*b+C*_-I*x)*b}var O=u(C,I,L,P);O>1e-6?(C/=O,I/=O,L/=O,P/=O):(C=I=L=0,P=1),this.rotation.set(t,C,I,L,P)},f.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),c(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,u=0;u<3;++u)l+=Math.pow(r[u]-e[u],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},f.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},f.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),c(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,u=n[14]/i;this.recalcMatrix(t);var h=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*h,l-n[6]*h,u-n[10]*h),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},f.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},f.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},f.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},f.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]}},f.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},1371:function(t,e,r){var n=r(3233);t.exports=function(t,e,r){return n(r=void 0!==r?r+"":" ",e)+t}},3202:function(t){t.exports=function(t,e){e||(e=[0,""]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",e}},3088:function(t,e,r){t.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o0){o=a[u][r][0],l=u;break}s=o[1^l];for(var h=0;h<2;++h)for(var f=a[h][r],p=0;p0&&(o=d,s=m,l=h)}return i||o&&c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=h(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],u=t,f=o[1],p=h(l,u,!0);if(n(e[l],e[u],e[f],e[p])<0)break;o.push(t),s=h(l,u)}return o}for(o=0;o0;){a[0][o].length;var m=f(o,p);(l=m)[1]===l[l.length-1]?d.push.apply(d,m):(d.length>0&&u.push(d),d=m)}d.length>0&&u.push(d)}return u};var n=r(3140)},5609:function(t,e,r){t.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s0;){i[p=o.pop()]=!1;var u=r[p];for(s=0;s0}))).length,g=new Array(m),y=new Array(m);for(p=0;p0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];for(0===V&&(j=[q=d[B]]),p=0;p=0||(F[H]=1^V,R.push(H),0!==V)||D(q=d[H])||(q.reverse(),j.push(q))}0===V&&r.push(j)}return r};var n=r(3134),i=r(3088),a=r(5085),o=r(5250),s=r(8210),l=r(1682),u=r(5609);function c(t,e){for(var r=new Array(t),n=0;n0&&e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,u=n(r,l[0],l[1]);if(l[0][0]0))return 0;s=-1,a=a.right}else if(u>0)a=a.left;else{if(!(u<0))return 0;s=1,a=a.right}}return s}}(g.slabs,g.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=r(3250)[3],i=r(4209),a=r(3352),o=r(2478);function s(){return!0}function l(t){for(var e={},r=0;r=u?(k=1,v=u+2*f+d):v=f*(k=-f/u)+d):(k=0,p>=0?(A=0,v=d):-p>=h?(A=1,v=h+2*p+d):v=p*(A=-p/h)+d);else if(A<0)A=0,f>=0?(k=0,v=d):-f>=u?(k=1,v=u+2*f+d):v=f*(k=-f/u)+d;else{var M=1/T;v=(k*=M)*(u*k+c*(A*=M)+2*f)+A*(c*k+h*A+2*p)+d}else k<0?(_=h+p)>(x=c+f)?(b=_-x)>=(w=u-2*c+h)?(k=1,A=0,v=u+2*f+d):v=(k=b/w)*(u*k+c*(A=1-k)+2*f)+A*(c*k+h*A+2*p)+d:(k=0,_<=0?(A=1,v=h+2*p+d):p>=0?(A=0,v=d):v=p*(A=-p/h)+d):A<0?(_=u+f)>(x=c+p)?(b=_-x)>=(w=u-2*c+h)?(A=1,k=0,v=h+2*p+d):v=(k=1-(A=b/w))*(u*k+c*A+2*f)+A*(c*k+h*A+2*p)+d:(A=0,_<=0?(k=1,v=u+2*f+d):f>=0?(k=0,v=d):v=f*(k=-f/u)+d):(b=h+p-c-f)<=0?(k=0,A=1,v=h+2*p+d):b>=(w=u-2*c+h)?(k=1,A=0,v=u+2*f+d):v=(k=b/w)*(u*k+c*(A=1-k)+2*f)+A*(c*k+h*A+2*p)+d;var S=1-k-A;for(l=0;l0){var u=t[r-1];if(0===n(s,u)&&a(u)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},3233:function(t){var e,r="";t.exports=function(t,n){if("string"!=typeof t)throw new TypeError("expected a string");if(1===n)return t;if(2===n)return t+t;var i=t.length*n;if(e!==t||void 0===e)e=t,r="";else if(r.length>=i)return r.substr(0,i);for(;i>r.length&&n>1;)1&n&&(r+=t),n>>=1,t+=t;return r=(r+=t).substr(0,i)}},3025:function(t,e,r){t.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(t){t.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r;(l=(s=t[i])-((r=a+s)-a))&&(t[--n]=r,r=l)}var o=0;for(i=n;i0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=l*n;return o>=s||o<=-s?o:d(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],h=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,y=o*s,v=i*c,x=i*l,_=a*s,b=h*(d-g)+f*(y-v)+p*(x-_),w=(Math.abs(d)+Math.abs(g))*Math.abs(h)+(Math.abs(y)+Math.abs(v))*Math.abs(f)+(Math.abs(x)+Math.abs(_))*Math.abs(p),T=u*w;return b>T||-b>T?b:m(t,e,r,n)}];function y(t){var e=g[t.length];return e||(e=g[t.length]=p(t.length)),e.apply(void 0,t)}function v(t,e,r,n,i,a,o){return function(e,r,s,l,u){switch(arguments.length){case 0:case 1:return 0;case 2:return n(e,r);case 3:return i(e,r,s);case 4:return a(e,r,s,l);case 5:return o(e,r,s,l,u)}for(var c=new Array(arguments.length),h=0;h0&&o>0||a<0&&o<0)return!1;var s=n(r,t,e),l=n(i,t,e);return!(s>0&&l>0||s<0&&l<0)&&(0!==a||0!==o||0!==s||0!==l||function(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),u=r[i],c=n[i],h=Math.min(u,c);if(Math.max(u,c)=n?(i=h,(l+=1)=n?(i=h,(l+=1)>1,u=e[2*l+1];if(u===a)return l;a>1,u=e[2*l+1];if(u===a)return l;a>1,u=e[2*l+1];if(u===a)return l;a0)-(t<0)},e.abs=function(t){var e=t>>31;return(t^e)-e},e.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},e.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},e.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},e.countTrailingZeros=r,e.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,1+((t|=t>>>8)|t>>>16)},e.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},e.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var n=new Array(256);(function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|n[t>>>16&255]<<8|n[t>>>24&255]},e.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},e.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},e.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},e.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},e.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>r(t)+1}},2014:function(t,e,r){var n=r(3105),i=r(4623);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),u=i(e[0],e[1]);return(s=i(l,t[2])-i(u,e[2]))||i(l+t[2],a)-i(u+e[2],o);default:var c=t.slice(0);c.sort();var h=e.slice(0);h.sort();for(var f=0;f>1,s=a(t[o],e);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function c(t,e){for(var r=new Array(t.length),i=0,o=r.length;i=t.length||0!==a(t[g],s)););}return r}function h(t,e){if(e<0)return[];for(var r=[],i=(1<>>c&1&&u.push(i[c]);e.push(u)}return s(e)},e.skeleton=h,e.boundary=function(t){for(var e=[],r=0,n=t.length;r>1:(t>>1)-1}function x(t){for(var e=y(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n0;){var r=v(t);if(!(r>=0&&e0){var t=k[0];return g(0,M-1),M-=1,x(0),t}return-1}function w(t,e){var r=k[t];return u[r]===e?t:(u[r]=-1/0,_(t),b(),u[r]=e,_((M+=1)-1))}function T(t){if(!c[t]){c[t]=!0;var e=s[t],r=l[t];s[r]>=0&&(s[r]=e),l[e]>=0&&(l[e]=r),A[e]>=0&&w(A[e],m(e)),A[r]>=0&&w(A[r],m(r))}}var k=[],A=new Array(a);for(h=0;h>1;h>=0;--h)x(h);for(;;){var S=b();if(S<0||u[S]>r)break;T(S)}var E=[];for(h=0;h=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&I.push([n,i])}})),i.unique(i.normalize(I)),{positions:E,edges:I}};var n=r(3250),i=r(2014)},1303:function(t,e,r){t.exports=function(t,e){var r,a,o,s;if(e[0][0]e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),u=n(r,a,o);if(l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;if(l=n(s,o,a),u=n(s,o,r),l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;return a[0]-s[0]};var n=r(3250);function i(t,e){var r,i,a,o;if(e[0][0]e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),u=Math.min(e[0][1],e[1][1]),c=Math.max(e[0][1],e[1][1]);return lc?s-c:l-c}r=e[1],i=e[0]}t[0][1]0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=u(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=u(t.right,e))return l;t=t.left}}return r}function c(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function h(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e<0)return-1;this.slabs[e];var r=u(this.slabs[e],t),i=-1;if(r&&(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&&(s=r.key),e>0){var c=u(this.slabs[e-1],t);c&&(s?o(c.key,s)>0&&(s=c.key,i=c.value):(i=c.value,s=c.key))}var h=this.horizontal[e];if(h.length>0){var f=n.ge(h,t[1],l);if(f=h.length)return i;p=h[f]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]>s[1][0]&&(d=-d),d>0&&(i=p.index)}else i=p.index;else p.y!==t[1]&&(i=p.index)}}}return i}},5202:function(t,e,r){var n=r(1944),i=r(8210);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l0||i>0&&c<0){var h=o(s,c,l,i);r.push(h),n.push(h.slice())}c<0?n.push(l.slice()):c>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=c}return{positive:r,negative:n}},t.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&u<0)&&r.push(o(i,u,s,n)),u>=0&&r.push(s.slice()),n=u}return r},t.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&u<0)&&r.push(o(i,u,s,n)),u<=0&&r.push(s.slice()),n=u}return r}},3387:function(t,e,r){var n;!function(){var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,c,h,f,p=1,d=t.length,m="";for(n=0;n=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?m+=r:(!i.number.test(s.type)||h&&!s.sign?f="":(f=h?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",c=s.width-(f+r).length,l=s.width&&c>0?u.repeat(c):"",m+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return m}(function(t){if(s[t])return s[t];for(var e,r=t,n=[],a=0;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0!==(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))&&(t.exports=n))}()},3711:function(t,e,r){t.exports=function(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=i(t,e),n=r.length,a=new Array(n),o=new Array(n),s=0;sn|0},vertex:function(t,e,r,n,i,a,o,s,l,u,c,h,f){var p=(0|o)+(s<<1)+(l<<2)+(u<<3)|0;if(0!==p&&15!==p)switch(p){case 0:case 15:c.push([t-.5,e-.5]);break;case 1:c.push([t-.25-.25*(n+r-2*f)/(r-n),e-.25-.25*(i+r-2*f)/(r-i)]);break;case 2:c.push([t-.75-.25*(-n-r+2*f)/(n-r),e-.25-.25*(a+n-2*f)/(n-a)]);break;case 3:c.push([t-.5,e-.5-.5*(i+r+a+n-4*f)/(r-i+n-a)]);break;case 4:c.push([t-.25-.25*(a+i-2*f)/(i-a),e-.75-.25*(-i-r+2*f)/(i-r)]);break;case 5:c.push([t-.5-.5*(n+r+a+i-4*f)/(r-n+i-a),e-.5]);break;case 6:c.push([t-.5-.25*(-n-r+a+i)/(n-r+i-a),e-.5-.25*(-i-r+a+n)/(i-r+n-a)]);break;case 7:c.push([t-.75-.25*(a+i-2*f)/(i-a),e-.75-.25*(a+n-2*f)/(n-a)]);break;case 8:c.push([t-.75-.25*(-a-i+2*f)/(a-i),e-.75-.25*(-a-n+2*f)/(a-n)]);break;case 9:c.push([t-.5-.25*(n+r+-a-i)/(r-n+a-i),e-.5-.25*(i+r+-a-n)/(r-i+a-n)]);break;case 10:c.push([t-.5-.5*(-n-r-a-i+4*f)/(n-r+a-i),e-.5]);break;case 11:c.push([t-.25-.25*(-a-i+2*f)/(a-i),e-.75-.25*(i+r-2*f)/(r-i)]);break;case 12:c.push([t-.5,e-.5-.5*(-i-r-a-n+4*f)/(i-r+a-n)]);break;case 13:c.push([t-.75-.25*(n+r-2*f)/(r-n),e-.25-.25*(-a-n+2*f)/(a-n)]);break;case 14:c.push([t-.25-.25*(-n-r+2*f)/(n-r),e-.25-.25*(-i-r+2*f)/(i-r)])}},cell:function(t,e,r,n,i,a,o,s,l){i?s.push([t,e]):s.push([e,t])}});return function(t,e){var r=[],i=[];return n(t,r,i,e),{positions:r,cells:i}}}},o={}},665:function(t,e,r){var n=r(3202);t.exports=o;var i=96;function a(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*o(r[1],t)}function o(t,e){switch(e=e||document.body,t=(t||"px").trim().toLowerCase(),(e===window||e===document)&&(e=document.body),t){case"%":return e.clientHeight/100;case"ch":case"ex":return function(t,e){var r=document.createElement("div");r.style["font-size"]="128"+t,e.appendChild(r);var n=a(r,"font-size")/128;return e.removeChild(r),n}(t,e);case"em":return a(e,"font-size");case"rem":return a(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return i;case"cm":return i/2.54;case"mm":return i/25.4;case"pt":return i/72;case"pc":return i/6}return 1}},7261:function(t,e,r){t.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||h(r),i=t.radius||1,a=t.theta||0,c=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),"eye"in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),u(n[0],n[1],n[2])<1e-6?n=h(r):s(n,n),i=u(d[0],d[1],d[2]);var m=l(r,d)/i,g=l(n,d)/i;c=Math.acos(m),a=Math.acos(g)}return i=Math.log(i),new f(t.zoomMin,t.zoomMax,e,r,n,i,a,c)};var n=r(9215),i=r(7608),a=r(6079),o=r(5911),s=r(3536),l=r(244);function u(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t){return Math.min(1,Math.max(-1,t))}function h(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e>Math.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l<3;++l)i[l]-=o/a*t[l];return s(i,i),i}function f(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var u=0;u<16;++u)this.computedMatrix[u]=.5;this.recalcMatrix(0)}var p=f.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),c=0;for(a=0;a<3;++a)r[a]-=e[a]*i/n,c+=r[a]*r[a],e[a]/=l;var h=Math.sqrt(c);for(a=0;a<3;++a)r[a]/=h;var f=this.computedToward;o(f,e,r),s(f,f);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],m=this.computedAngle[1],g=Math.cos(d),y=Math.sin(d),v=Math.cos(m),x=Math.sin(m),_=this.computedCenter,b=g*v,w=y*v,T=x,k=-g*x,A=-y*x,M=v,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var C=b*r[a]+w*f[a]+T*e[a];E[4*a+1]=k*r[a]+A*f[a]+M*e[a],E[4*a+2]=C,E[4*a+3]=0}var I=E[1],L=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=L*D-P*O,F=P*z-I*D,B=I*O-L*z,N=u(R,F,B);for(R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B,a=0;a<3;++a)S[a]=_[a]+E[2+4*a]*p;for(a=0;a<3;++a){c=0;for(var j=0;j<3;++j)c+=E[a+4*j]*S[j];E[12+a]=-c}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,u=0;u<3;++u)i[4*u]=o[u],i[4*u+1]=s[u],i[4*u+2]=l[u];for(a(i,i,n,d),u=0;u<3;++u)o[u]=i[4*u],s[u]=i[4*u+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=u(a,o,s);a/=l,o/=l,s/=l;var c=i[0],h=i[4],f=i[8],p=c*a+h*o+f*s,d=u(c-=a*p,h-=o*p,f-=s*p),m=(c/=d)*e+a*r,g=(h/=d)*e+o*r,y=(f/=d)*e+s*r;this.center.move(t,m,g,y);var v=Math.exp(this.computedRadius[0]);v=Math.max(1e-4,v+n),this.radius.set(t,Math.log(v))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;"number"==typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],h=e[a+8];if(n){var f=Math.abs(s),p=Math.abs(l),d=Math.abs(h),m=Math.max(f,p,d);f===m?(s=s<0?-1:1,l=h=0):d===m?(h=h<0?-1:1,s=l=0):(l=l<0?-1:1,s=h=0)}else{var g=u(s,l,h);s/=g,l/=g,h/=g}var y,v,x=e[o],_=e[o+4],b=e[o+8],w=x*s+_*l+b*h,T=u(x-=s*w,_-=l*w,b-=h*w),k=l*(b/=T)-h*(_/=T),A=h*(x/=T)-s*b,M=s*_-l*x,S=u(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(t,H,G,Z),this.radius.idle(t),this.up.jump(t,s,l,h),this.right.jump(t,x,_,b),2===a){var E=e[1],C=e[5],I=e[9],L=E*x+C*_+I*b,P=E*k+C*A+I*M;y=R<0?-Math.PI/2:Math.PI/2,v=Math.atan2(P,L)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*h,F=z*x+O*_+D*b,B=z*k+O*A+D*M;y=Math.asin(c(R)),v=Math.atan2(B,F)}this.angle.jump(t,v,y),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Z=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Z-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=u(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],h=e[1]-r[1],f=e[2]-r[2],p=u(l,h,f);if(!(p<1e-6)){l/=p,h/=p,f/=p;var d=this.computedRight,m=d[0],g=d[1],y=d[2],v=i*m+a*g+o*y,x=u(m-=v*i,g-=v*a,y-=v*o);if(!(x<.01&&(m=a*f-o*h,g=o*l-i*f,y=i*h-a*l,x=u(m,g,y),x<1e-6))){m/=x,g/=x,y/=x,this.up.set(t,i,a,o),this.right.set(t,m,g,y),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var _=a*y-o*g,b=o*m-i*y,w=i*g-a*m,T=u(_,b,w),k=i*l+a*h+o*f,A=m*l+g*h+y*f,M=(_/=T)*l+(b/=T)*h+(w/=T)*f,S=Math.asin(c(k)),E=Math.atan2(M,A),C=this.angle._state,I=C[C.length-1],L=C[C.length-2];I%=2*Math.PI;var P=Math.abs(I+2*Math.PI-E),z=Math.abs(I-E),O=Math.abs(I-2*Math.PI-E);P0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function m(t){return new Uint16Array(p(2*t),0,t)}function g(t){return new Uint32Array(p(4*t),0,t)}function y(t){return new Int8Array(p(t),0,t)}function v(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function _(t){return new Float32Array(p(4*t),0,t)}function b(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=h[e];return r.length>0?r.pop():new a(t)}e.free=function(t){if(a.isBuffer(t))h[n.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);c[r].push(t)}},e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=function(t){f(t.buffer)},e.freeArrayBuffer=f,e.freeBuffer=function(t){h[n.log2(t.length)].push(t)},e.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return p(t);switch(e){case"uint8":return d(t);case"uint16":return m(t);case"uint32":return g(t);case"int8":return y(t);case"int16":return v(t);case"int32":return x(t);case"float":case"float32":return _(t);case"double":case"float64":return b(t);case"uint8_clamped":return w(t);case"bigint64":return k(t);case"biguint64":return T(t);case"buffer":return M(t);case"data":case"dataview":return A(t);default:return null}return null},e.mallocArrayBuffer=p,e.mallocUint8=d,e.mallocUint16=m,e.mallocUint32=g,e.mallocInt8=y,e.mallocInt16=v,e.mallocInt32=x,e.mallocFloat32=e.mallocFloat=_,e.mallocFloat64=e.mallocDouble=b,e.mallocUint8Clamped=w,e.mallocBigUint64=T,e.mallocBigInt64=k,e.mallocDataView=A,e.mallocBuffer=M,e.clearCache=function(){for(var t=0;t<32;++t)u.UINT8[t].length=0,u.UINT16[t].length=0,u.UINT32[t].length=0,u.INT8[t].length=0,u.INT16[t].length=0,u.INT32[t].length=0,u.FLOAT[t].length=0,u.DOUBLE[t].length=0,u.BIGUINT64[t].length=0,u.BIGINT64[t].length=0,u.UINT8C[t].length=0,c[t].length=0,h[t].length=0}},1755:function(t){function e(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e0&&(a=n.size),n.lineSpacing&&n.lineSpacing>0&&(o=n.lineSpacing),n.styletags&&n.styletags.breaklines&&(s.breaklines=!!n.styletags.breaklines),n.styletags&&n.styletags.bolds&&(s.bolds=!!n.styletags.bolds),n.styletags&&n.styletags.italics&&(s.italics=!!n.styletags.italics),n.styletags&&n.styletags.subscripts&&(s.subscripts=!!n.styletags.subscripts),n.styletags&&n.styletags.superscripts&&(s.superscripts=!!n.styletags.superscripts)),r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+"px",n.font].filter((function(t){return t})).join(" "),r.textAlign="start",r.textBaseline="alphabetic",r.direction="ltr",b(function(t,e,r,n,a,o){r=r.replace(/\n/g,""),r=!0===o.breaklines?r.replace(/\/g,"\n"):r.replace(/\/g," ");var s="",l=[];for(I=0;I-1?parseInt(t[1+i]):0,l=a>-1?parseInt(r[1+a]):0;s!==l&&(n=n.replace(F(),"?px "),z*=Math.pow(.75,l-s),n=n.replace("?px ",F())),P+=.25*k*(l-s)}if(!0===o.superscripts){var u=t.indexOf(d),h=r.indexOf(d),p=u>-1?parseInt(t[1+u]):0,m=h>-1?parseInt(r[1+h]):0;p!==m&&(n=n.replace(F(),"?px "),z*=Math.pow(.75,m-p),n=n.replace("?px ",F())),P-=.25*k*(m-p)}if(!0===o.bolds){var g=t.indexOf(c)>-1,v=r.indexOf(c)>-1;!g&&v&&(n=x?n.replace("italic ","italic bold "):"bold "+n),g&&!v&&(n=n.replace("bold ",""))}if(!0===o.italics){var x=t.indexOf(f)>-1,_=r.indexOf(f)>-1;!x&&_&&(n="italic "+n),x&&!_&&(n=n.replace("italic ",""))}e.font=n}for(C=0;C",a="",o=i.length,s=a.length,l=e[0]===d||e[0]===y,u=0,c=-s;u>-1&&!(-1===(u=r.indexOf(i,u))||(c=r.indexOf(a,u+o),-1===c)||c<=u);){for(var h=u;h=c)n[h]=null,r=r.substr(0,h)+" "+r.substr(h+1);else if(null!==n[h]){var f=n[h].indexOf(e[0]);-1===f?n[h]+=e:l&&(n[h]=n[h].substr(0,f+1)+(1+parseInt(n[h][f+1]))+n[h].substr(f+2))}var p=u+o,m=r.substr(p,c-p).indexOf(i);u=-1!==m?m:c+s}return n}function _(t,e,r,i){var u=function(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}(t,i),c=function(t,e,r){for(var n=e.textAlign||"start",i=e.textBaseline||"alphabetic",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l=0?e[a]:i}))},has___:{value:x((function(e){var n=v(e);return n?r in n:t.indexOf(e)>=0}))},set___:{value:x((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))>=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:x((function(n){var i,a,o=v(n);return o?r in o&&delete o[r]:!((i=t.indexOf(n))<0||(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,0))}))}})};m.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),"function"==typeof r?function(){function n(){this instanceof m||_();var t,n=new r,i=void 0,a=!1;return t=e?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new m),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new m),i.set___(t,e)}else n.set(t,e);return this},Object.create(m.prototype,{get___:{value:x((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:x((function(t){return n.has(t)||!!i&&i.has___(t)}))},set___:{value:x(t)},delete___:{value:x((function(t){var e=!!n.delete(t);return i&&i.delete___(t)||e}))},permitHostObjects___:{value:x((function(t){if(t!==g)throw new Error("bogus call to permitHostObjects___");a=!0}))}})}e&&"undefined"!=typeof Proxy&&(Proxy=void 0),n.prototype=m.prototype,t.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),t.exports=m)}function g(t){t.permitHostObjects___&&t.permitHostObjects___(g)}function y(t){return!(t.substr(0,8)==l&&"___"===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError("Not an object: "+t);var e=t[u];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return o(t,u,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function x(t){return t.prototype=null,Object.freeze(t)}function _(){!p&&"undefined"!=typeof console&&(p=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},236:function(t,e,r){var n=r(8284);t.exports=function(){var t={};return function(e){if(("object"!=typeof e||null===e)&&"function"!=typeof e)throw new Error("Weakmap-shim: Key must be object");var r=e.valueOf(t);return r&&r.identity===t?r:n(e,t)}}},8284:function(t){t.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,"valueOf",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},606:function(t,e,r){var n=r(236);t.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty("value")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return"value"in t(e)},delete:function(e){return delete t(e).value}}}},3349:function(t){var e,r,n=function(){return function(t,e,r,n,i,a){var o=t[0],s=r[0],l=[0],u=s;n|=0;var c=0,h=s;for(c=0;c=0!=p>=0&&i.push(l[0]+.5+.5*(f+p)/(f-p)),n+=h,++l[0]}}};t.exports=(e=n.bind(void 0,{funcName:"zeroCrossings"}),r={},function(t,n,i){var a=t.dtype,o=t.order,s=[a,o.join()].join(),l=r[s];return l||(r[s]=l=e([a,o])),l(t.shape.slice(0),t.data,t.stride,0|t.offset,n,i)})},781:function(t,e,r){t.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=r(3349)},7790:function(){}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i=n(1964);e.exports=i}()})),Id=f(((t,e)=>{e.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]}})),Ld=f(((t,e)=>{var r=Id();e.exports=function(t){var e,i,a=[],o=1;if("string"==typeof t)if(t=t.toLowerCase(),r[t])a=r[t].slice(),i="rgb";else if("transparent"===t)o=0,i="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var s=t.slice(1);o=1,(c=s.length)<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===c&&(o=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===c&&(o=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),i="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var l=e[1],u="rgb"===l;i=s=l.replace(/a$/,"");var c="cmyk"===s?4:"gray"===s?1:3;a=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(t,e){if(/%$/.test(t))return e===c?parseFloat(t)/100:"rgb"===s?255*parseFloat(t)/100:parseFloat(t);if("h"===s[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==n[t])return n[t]}return parseFloat(t)})),l===s&&a.push(1),o=u||void 0===a[c]?1:a[c],a=a.slice(0,c)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(a=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=t.match(/([a-z])/gi).join("").toLowerCase());else isNaN(t)?Array.isArray(t)||t.length?(a=[t[0],t[1],t[2]],i="rgb",o=4===t.length?t[3]:1):t instanceof Object&&(null!=t.r||null!=t.red||null!=t.R?(i="rgb",a=[t.r||t.red||t.R||0,t.g||t.green||t.G||0,t.b||t.blue||t.B||0]):(i="hsl",a=[t.h||t.hue||t.H||0,t.s||t.saturation||t.S||0,t.l||t.lightness||t.L||t.b||t.brightness]),o=t.a||t.alpha||t.opacity||1,null!=t.opacity&&(o/=100)):(i="rgb",a=[t>>>16,(65280&t)>>>8,255&t]);return{space:i,values:a,alpha:o}};var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}})),Pd=f(((t,e)=>{var r=Ld();e.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var e,n=r(t);if(!n.space)return[];var i=[0,0,0],a="h"===n.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(n.values[0],i[0]),a[0]),e[1]=Math.min(Math.max(n.values[1],i[1]),a[1]),e[2]=Math.min(Math.max(n.values[2],i[2]),a[2]),"h"===n.space[0]&&(e=function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=0;if(0===s)return[a=255*l,a,a];for(e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];u<3;)(n=o+1/3*-(u-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u++]=255*a;return i}(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}})),zd=f(((t,e)=>{e.exports=function(t,e,r){return er?r:t:te?e:t}})),Od=f(((t,e)=>{e.exports=function(t){switch(t){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}}})),Dd=f(((t,e)=>{var r=Pd(),n=zd(),i=Od();e.exports=function(t,e){("float"===e||!e)&&(e="array"),"uint"===e&&(e="uint8"),"uint_clamped"===e&&(e="uint8_clamped");var a,o=new(i(e))(4),s="uint8"!==e&&"uint8_clamped"!==e;return(!t.length||"string"==typeof t)&&((t=r(t))[0]/=255,t[1]/=255,t[2]/=255),(a=t)instanceof Uint8Array||a instanceof Uint8ClampedArray||Array.isArray(a)&&(a[0]>1||0===a[0])&&(a[1]>1||0===a[1])&&(a[2]>1||0===a[2])&&(!a[3]||a[3]>1)?(o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=null!=t[3]?t[3]:255,s&&(o[0]/=255,o[1]/=255,o[2]/=255,o[3]/=255),o):(s?(o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=null!=t[3]?t[3]:1):(o[0]=n(Math.floor(255*t[0]),0,255),o[1]=n(Math.floor(255*t[1]),0,255),o[2]=n(Math.floor(255*t[2]),0,255),o[3]=null==t[3]?255:n(Math.floor(255*t[3]),0,255)),o)}})),Rd=f(((t,e)=>{var r=Dd();e.exports=function(t){return t?r(t):[0,0,0,1]}})),Fd=f(((t,e)=>{var r=T(),n=O(),i=Dd(),a=We(),o=V().defaultLine,s=S().isArrayOrTypedArray,l=i(o);function u(t,e){var r=t;return r[3]*=e,r}function c(t){if(r(t))return l;var e=i(t);return e.length?e:l}function h(t){return r(t)?t:1}e.exports={formatColor:function(t,e,r){var n=t.color;n&&n._inputArray&&(n=n._inputArray);var o,f,p,d,m,g=s(n),y=s(e),v=a.extractOpts(t),x=[];if(o=void 0!==v.colorscale?a.makeColorScaleFuncFromTrace(t):c,f=g?function(t,e){return void 0===t[e]?l:i(o(t[e]))}:c,p=y?function(t,e){return void 0===t[e]?1:h(t[e])}:h,g||y)for(var _=0;_{e.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]}})),Nd=f(((t,e)=>{e.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}})),jd=f(((t,e)=>{var r=qt();function n(t,e,n,i){if(!e||!e.visible)return null;for(var a=r.getComponentMethod("errorbars","makeComputeError")(e),o=new Array(t.length),s=0;s0){var f=i.c2l(c);i._lowerLogErrorBound||(i._lowerLogErrorBound=f),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,f)}}else o[s]=[-l[0]*n,l[1]*n]}return o}e.exports=function(t,e,r){var i=[n(t.x,t.error_x,e[0],r.xaxis),n(t.y,t.error_y,e[1],r.yaxis),n(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e{var r=Cd().gl_line3d,n=Cd().gl_scatter3d,i=Cd().gl_error3d,a=Cd().gl_mesh3d,o=Cd().delaunay_triangulate,s=le(),l=Rd(),u=Fd().formatColor,c=Xe(),h=Bd(),f=Nd(),p=ir(),d=$e().appendArrayPointValue,m=jd();function g(t,e){this.scene=t,this.uid=e,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 y=g.prototype;function v(t){return null==t?0:t.indexOf("left")>-1?-1:t.indexOf("right")>-1?1:0}function x(t){return null==t?0:t.indexOf("top")>-1?-1:t.indexOf("bottom")>-1?1:0}function _(t,e){return e(4*t)}function b(t){return f[t]}function w(t,e,r,n,i){var a=null;if(s.isArrayOrTypedArray(t)){a=[];for(var o=0;o=0){var E=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,s=[],l=[];for(n=0;n{var r=Tn(),n=R(),i=Pe(),a=Ce().axisHoverFormat,o=Ot().hovertemplateAttrs,s=Ot().texttemplateAttrs,l=j(),u=Bd(),c=Nd(),h=D().extendFlat,f=Lt().overrideAll,p=Wt(),d=r.line,m=r.marker,g=m.line,y=h({width:d.width,dash:{valType:"enumerated",values:p(u),dflt:"solid"}},i("line")),v=e.exports=f({x:r.x,y:r.y,z:{valType:"data_array"},text:h({},r.text,{}),texttemplate:s({},{}),hovertext:h({},r.hovertext,{}),hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),mode:h({},r.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}},y:{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}},z:{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}},connectgaps:r.connectgaps,line:y,marker:h({symbol:{valType:"enumerated",values:p(c),dflt:"circle",arrayOk:!0},size:h({},m.size,{dflt:8}),sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode,opacity:h({},m.opacity,{arrayOk:!1}),colorbar:m.colorbar,line:h({width:h({},g.width,{arrayOk:!1})},i("marker.line"))},i("marker")),textposition:h({},r.textposition,{dflt:"top center"}),textfont:n({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:l.opacity,hoverinfo:h({},l.hoverinfo)},"calc","nested");v.x.editType=v.y.editType=v.z.editType="calc+clearAxisTypes"})),qd=f(((t,e)=>{var r=qt(),n=le(),i=Ye(),a=Wn(),o=Yn(),s=$n(),l=Vd();e.exports=function(t,e,u,c){function h(r,i){return n.coerce(t,e,l,r,i)}var f=function(t,e,n,i){var a=0,o=n("x"),s=n("y"),l=n("z");return r.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],i),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a),a}(t,e,h,c);if(f){h("text"),h("hovertext"),h("hovertemplate"),h("xhoverformat"),h("yhoverformat"),h("zhoverformat"),h("mode"),i.hasMarkers(e)&&a(t,e,u,c,h,{noSelect:!0,noAngle:!0}),i.hasLines(e)&&(h("connectgaps"),o(t,e,u,c,h)),i.hasText(e)&&(h("texttemplate"),s(t,e,c,h,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var p=(e.line||{}).color,d=(e.marker||{}).color;h("surfaceaxis")>=0&&h("surfacecolor",p||d);for(var m=["x","y","z"],g=0;g<3;++g){var y="projection."+m[g];h(y+".show")&&(h(y+".opacity"),h(y+".scale"))}var v=r.getComponentMethod("errorbars","supplyDefaults");v(t,e,p||d||u,{axis:"z"}),v(t,e,p||d||u,{axis:"y",inherit:"z"}),v(t,e,p||d||u,{axis:"x",inherit:"z"})}else e.visible=!1}})),Hd=f(((t,e)=>{var r=ii(),n=ni();e.exports=function(t,e){var i=[{x:!1,y:!1,trace:e,t:{}}];return r(i,e),n(t,e),i}})),Gd=f(((t,e)=>{e.exports=function(t,e){if("string"!=typeof t)throw new TypeError("must specify type string");if(e=e||{},"undefined"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement("canvas");"number"==typeof e.width&&(r.width=e.width),"number"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf("webgl")&&a.push("experimental-"+t);for(var o=0;o{var r=Gd();e.exports=function(t){return r("webgl",t)}})),Wd=f(((t,e)=>{var r=q(),n=function(){};e.exports=function(t){for(var e in t)"function"==typeof t[e]&&(t[e]=n);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var i=document.createElement("div");i.className="no-webgl",i.style.cursor="pointer",i.style.fontSize="24px",i.style.color=r.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=r.lightLine,i.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",i.appendChild(a),t.container.appendChild(i),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}})),Yd=f(((t,e)=>{var r=Rd(),n=le(),i=["xaxis","yaxis","zaxis"];function a(){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()}a.prototype.merge=function(t,e){for(var a=this,o=0;o<3;++o){var s=e[i[o]];s.visible?(a.labels[o]=t._meta?n.templateString(s.title.text,t._meta):s.title.text,"font"in s.title&&(s.title.font.color&&(a.labelColor[o]=r(s.title.font.color)),s.title.font.family&&(a.labelFont[o]=s.title.font.family),s.title.font.size&&(a.labelSize[o]=s.title.font.size),s.title.font.weight&&(a.labelFontWeight[o]=s.title.font.weight),s.title.font.style&&(a.labelFontStyle[o]=s.title.font.style),s.title.font.variant&&(a.labelFontVariant[o]=s.title.font.variant)),"showline"in s&&(a.lineEnable[o]=s.showline),"linecolor"in s&&(a.lineColor[o]=r(s.linecolor)),"linewidth"in s&&(a.lineWidth[o]=s.linewidth),"showgrid"in s&&(a.gridEnable[o]=s.showgrid),"gridcolor"in s&&(a.gridColor[o]=r(s.gridcolor)),"gridwidth"in s&&(a.gridWidth[o]=s.gridwidth),"log"===s.type?a.zeroEnable[o]=!1:"zeroline"in s&&(a.zeroEnable[o]=s.zeroline),"zerolinecolor"in s&&(a.zeroLineColor[o]=r(s.zerolinecolor)),"zerolinewidth"in s&&(a.zeroLineWidth[o]=s.zerolinewidth),"ticks"in s&&s.ticks?a.lineTickEnable[o]=!0:a.lineTickEnable[o]=!1,"ticklen"in s&&(a.lineTickLength[o]=a._defaultLineTickLength[o]=s.ticklen),"tickcolor"in s&&(a.lineTickColor[o]=r(s.tickcolor)),"tickwidth"in s&&(a.lineTickWidth[o]=s.tickwidth),"tickangle"in s&&(a.tickAngle[o]="auto"===s.tickangle?-3600:Math.PI*-s.tickangle/180),"showticklabels"in s&&(a.tickEnable[o]=s.showticklabels),"tickfont"in s&&(s.tickfont.color&&(a.tickColor[o]=r(s.tickfont.color)),s.tickfont.family&&(a.tickFont[o]=s.tickfont.family),s.tickfont.size&&(a.tickSize[o]=s.tickfont.size),s.tickfont.weight&&(a.tickFontWeight[o]=s.tickfont.weight),s.tickfont.style&&(a.tickFontStyle[o]=s.tickfont.style),s.tickfont.variant&&(a.tickFontVariant[o]=s.tickfont.variant)),"mirror"in s?-1!==["ticks","all","allticks"].indexOf(s.mirror)?(a.lineTickMirror[o]=!0,a.lineMirror[o]=!0):!0===s.mirror?(a.lineTickMirror[o]=!1,a.lineMirror[o]=!0):(a.lineTickMirror[o]=!1,a.lineMirror[o]=!1):a.lineMirror[o]=!1,"showbackground"in s&&!1!==s.showbackground?(a.backgroundEnable[o]=!0,a.backgroundColor[o]=r(s.backgroundcolor)):a.backgroundEnable[o]=!1):(a.tickEnable[o]=!1,a.labelEnable[o]=!1,a.lineEnable[o]=!1,a.lineTickEnable[o]=!1,a.gridEnable[o]=!1,a.zeroEnable[o]=!1,a.backgroundEnable[o]=!1)}},e.exports=function(t,e){var r=new a;return r.merge(t,e),r}})),Xd=f(((t,e)=>{var r=Rd(),n=["xaxis","yaxis","zaxis"];function i(){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]}i.prototype.merge=function(t){for(var e=0;e<3;++e){var i=t[n[e]];i.visible?(this.enabled[e]=i.showspikes,this.colors[e]=r(i.spikecolor),this.drawSides[e]=i.spikesides,this.lineWidth[e]=i.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new i;return e.merge(t),e}})),$d=f(((t,e)=>{e.exports=function(t){for(var e=t.axesOptions,o=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],u=0;u<3;++u){var c=s[i[u]];if(c._length=(o[u].hi-o[u].lo)*o[u].pixelsPerDataUnit/t.dataScale[u],Math.abs(c._length)===1/0||isNaN(c._length))l[u]=[];else{c._input_range=c.range.slice(),c.range[0]=o[u].lo/t.dataScale[u],c.range[1]=o[u].hi/t.dataScale[u],c._m=1/(t.dataScale[u]*o[u].pixelsPerDataUnit),c.range[0]===c.range[1]&&(c.range[0]-=1,c.range[1]+=1);var h=c.tickmode;if("auto"===c.tickmode){c.tickmode="linear";var f=c.nticks||n.constrain(c._length/40,4,9);r.autoTicks(c,Math.abs(c.range[1]-c.range[0])/f)}for(var p=r.calcTicks(c,{msUTC:!0}),d=0;d/g," "));l[u]=p,c.tickmode=h}}for(e.ticks=l,u=0;u<3;++u)for(a[u]=.5*(t.glplot.bounds[0][u]+t.glplot.bounds[1][u]),d=0;d<2;++d)e.bounds[d][u]=t.glplot.bounds[d][u];t.contourLevels=function(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a{var r,n,i=Cd().gl_plot3d,a=i.createCamera,o=i.createScene,s=Zd(),l=lr(),u=qt(),c=le(),h=c.preserveDrawingBuffer(),f=ir(),p=Or(),d=Rd(),m=Wd(),g=ji(),y=Yd(),v=Xd(),x=$d(),_=nr().applyAutorangeOptions,b=!1;function w(t,e){var r=document.createElement("div"),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=e,this.id=t.id||"scene",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=v(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod("annotations3d","convert"),this.drawAnnotations=u.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var T=w.prototype;T.prepareOptions=function(){var t=this,e={canvas:t.canvas,gl:t.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:t.camera,pixelRatio:t.pixelRatio};if(t.staticMode){if(!(n||(r=document.createElement("canvas"),n=s({canvas:r,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");e.gl=n,e.canvas=r}return e};var k=!0;T.tryCreatePlot=function(){var t=this,e=t.prepareOptions(),r=!0;try{t.glplot=o(e)}catch(n){if(t.staticMode||!k||h)r=!1;else{c.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{h=e.glOptions.preserveDrawingBuffer=!0,t.glplot=o(e)}catch(t){h=e.glOptions.preserveDrawingBuffer=!1,r=!1}}}return k=!1,r},T.initializeGLCamera=function(){var t=this,e=t.fullSceneLayout.camera,r="orthographic"===e.projection.type;t.camera=a(t.container,{center:[e.center.x,e.center.y,e.center.z],eye:[e.eye.x,e.eye.y,e.eye.z],up:[e.up.x,e.up.y,e.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})},T.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&&(e[t.id+".camera"]=t.getCamera()),t.isAspectChanged(r)&&(e[t.id+".aspectratio"]=t.glplot.getAspectratio(),"manual"!==r[t.id].aspectmode&&(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+".aspectmode"]="manual")),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit("plotly_relayout",e)}};return t.glplot.canvas&&(t.glplot.canvas.addEventListener("mouseup",(function(){i(t)})),t.glplot.canvas.addEventListener("touchstart",(function(){b=!0})),t.glplot.canvas.addEventListener("wheel",(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX>r.deltaY?1.1:.9090909090909091,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!l&&{passive:!1}),t.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==t.fullSceneLayout.dragmode&&0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit("plotly_relayouting",e)}})),t.staticMode||t.glplot.canvas.addEventListener("webglcontextlost",(function(r){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},T.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),x(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),h=null,d=e.glplot.selection,m=0;m")):"isosurface"===t.type||"volume"===t.type?(T.valueLabel=f.hoverLabelText(e._mockAxis,e._mockAxis.d2l(d.traceCoordinate[3]),t.valuehoverformat),E.push("value: "+T.valueLabel),d.textLabel&&E.push(d.textLabel),S=E.join("
")):S=d.textLabel;var C={x:d.traceCoordinate[0],y:d.traceCoordinate[1],z:d.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:w};p.appendArrayPointValue(C,_,w),t._module.eventData&&(C=_._module.eventData(C,d,_,{},w));var I={points:[C]};if(e.fullSceneLayout.hovermode){var L=[];p.loneHover({trace:_,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:S,name:h.name,color:p.castHoverOption(_,w,"bgcolor")||h.color,borderColor:p.castHoverOption(_,w,"bordercolor"),fontFamily:p.castHoverOption(_,w,"font.family"),fontSize:p.castHoverOption(_,w,"font.size"),fontColor:p.castHoverOption(_,w,"font.color"),nameLength:p.castHoverOption(_,w,"namelength"),textAlign:p.castHoverOption(_,w,"align"),hovertemplate:c.castOption(_,w,"hovertemplate"),hovertemplateLabels:c.extendFlat({},C,T),eventData:[C]},{container:n,gd:r,inOut_bbox:L}),C.bbox=L[0]}d.distance<5&&(d.buttons||b)?r.emit("plotly_click",I):r.emit("plotly_hover",I),this.oldEventData=I}else p.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)},T.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):c.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(e)};var A=["xaxis","yaxis","zaxis"];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i<3;i++){var a=A[i],o=a.charAt(0),s=n[a],l=e[o],u=e[o+"calendar"],h=e["_"+o+"length"];if(c.isArrayOrTypedArray(l))for(var f,p=0;p<(h||l.length);p++)if(c.isArrayOrTypedArray(l[p]))for(var d=0;dg[1][o])g[0][o]=-1,g[1][o]=1;else{var L=g[1][o]-g[0][o];g[0][o]-=L/32,g[1][o]+=L/32}if(x=[g[0][o],g[1][o]],x=_(x,l),g[0][o]=x[0],g[1][o]=x[1],l.isReversed()){var P=g[0][o];g[0][o]=g[1][o],g[1][o]=P}}else x=l.range,g[0][o]=l.r2l(x[0]),g[1][o]=l.r2l(x[1]);g[0][o]===g[1][o]&&(g[0][o]-=1,g[1][o]+=1),y[o]=g[1][o]-g[0][o],l.range=[g[0][o],g[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*p[o],max:l.range[1]*p[o]})}var z,O=c.aspectmode;if("cube"===O)z=[1,1,1];else if("manual"===O){var D=c.aspectratio;z=[D.x,D.y,D.z]}else{if("auto"!==O&&"data"!==O)throw new Error("scene.js aspectRatio was not one of the enumerated types");var R=[1,1,1];for(o=0;o<3;++o){var F=v[u=(l=c[A[o]]).type];R[o]=Math.pow(F.acc,1/F.count)/p[o]}z="data"===O||Math.max.apply(null,R)/Math.min.apply(null,R)<=4?R:[1,1,1]}c.aspectratio.x=h.aspectratio.x=z[0],c.aspectratio.y=h.aspectratio.y=z[1],c.aspectratio.z=h.aspectratio.z=z[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var B=c.domain||null,N=e._size||null;if(B&&N){var j=n.container.style;j.position="absolute",j.left=N.l+B.x[0]*N.w+"px",j.top=N.t+(1-B.y[1])*N.h+"px",j.width=N.w*(B.x[1]-B.x[0])+"px",j.height=N.h*(B.y[1]-B.y[0])+"px"}n.glplot.redraw()}},T.destroy=function(){var t=this;t.glplot&&(t.camera.mouseListener.enabled=!1,t.container.removeEventListener("wheel",t.camera.wheelListener),t.camera=null,t.glplot.dispose(),t.container.parentNode.removeChild(t.container),t.glplot=null)},T.getCamera=function(){var t=this;return t.camera.view.recalcMatrix(t.camera.view.lastT()),function(t){return{up:{x:t.up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?"orthographic":"perspective"}}}(t.camera)},T.setViewport=function(t){var e=this,r=t.camera;e.camera.lookAt.apply(this,function(t){return[[t.eye.x,t.eye.y,t.eye.z],[t.center.x,t.center.y,t.center.z],[t.up.x,t.up.y,t.up.z]]}(r)),e.glplot.setAspectratio(t.aspectratio),"orthographic"===r.projection.type!==e.camera._ortho&&(e.glplot.redraw(),e.glplot.clearRGBA(),e.glplot.dispose(),e.initializeGLPlot())},T.isCameraChanged=function(t){var e,r,n,i,a,o,s=this.getCamera(),l=c.nestedProperty(t,this.id+".camera").get(),u=!1;if(void 0===l)u=!0;else{for(var h=0;h<3;h++)for(var f=0;f<3;f++)if(e=s,i=f,void 0,void 0,o=["x","y","z"],!(r=l)[(a=["up","center","eye"])[n=h]]||e[a[n]][o[i]]!==r[a[n]][o[i]]){u=!0;break}(!l.projection||s.projection&&s.projection.type!==l.projection.type)&&(u=!0)}return u},T.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=c.nestedProperty(t,this.id+".aspectratio").get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},T.saveLayout=function(t){var e,r,n,i,a,o,s=this,l=s.fullLayout,h=s.isCameraChanged(t),f=s.isAspectChanged(t),p=h||f;if(p){var d={};h&&(e=s.getCamera(),n=(r=c.nestedProperty(t,s.id+".camera")).get(),d[s.id+".camera"]=n),f&&(i=s.glplot.getAspectratio(),o=(a=c.nestedProperty(t,s.id+".aspectratio")).get(),d[s.id+".aspectratio"]=o),u.call("_storeDirectGUIEdit",t,l._preGUI,d),h&&(r.set(e),c.nestedProperty(l,s.id+".camera").set(e)),f&&(a.set(i),c.nestedProperty(l,s.id+".aspectratio").set(i),s.glplot.redraw())}return p},T.updateFx=function(t,e){var r=this,n=r.camera;if(n)if("orbit"===t)n.mode="orbit",n.keyBindingMode="rotate";else if("turntable"===t){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,h=o.up.z;if(h/Math.sqrt(s*s+l*l+h*h)<.999){var f=r.id+".camera.up",p={x:0,y:0,z:1},d={};d[f]=p;var m=i.layout;u.call("_storeDirectGUIEdit",m,a._preGUI,d),o.up=p,c.nestedProperty(m,f).set(p)}}else n.keyBindingMode=t;r.fullSceneLayout.hovermode=e},T.toImage=function(t){var e=this;t||(t="png"),e.staticMode&&e.container.appendChild(r),e.glplot.redraw();var n=e.glplot.gl,i=n.drawingBufferWidth,a=n.drawingBufferHeight;n.bindFramebuffer(n.FRAMEBUFFER,null);var o=new Uint8Array(i*a*4);n.readPixels(0,0,i,a,n.RGBA,n.UNSIGNED_BYTE,o),function(t,e,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(o,i,a);var s=document.createElement("canvas");s.width=i,s.height=a;var l,u=s.getContext("2d",{willReadFrequently:!0}),c=u.createImageData(i,a);switch(c.data.set(o),u.putImageData(c,0,0),t){case"jpeg":l=s.toDataURL("image/jpeg");break;case"webp":l=s.toDataURL("image/webp");break;default:l=s.toDataURL("image/png")}return e.staticMode&&e.container.removeChild(r),l},T.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[A[t]];f.setConvert(e,this.fullLayout),e.setScale=c.noop}},T.make4thDimension=function(){var t=this,e=t.graphDiv._fullLayout;t._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},f.setConvert(t._mockAxis,e)},e.exports=w})),Kd=f(((t,e)=>{e.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}})),Qd=f(((t,e)=>{var r=q(),n=Ie(),i=D().extendFlat,a=Lt().overrideAll;e.exports=a({visible:n.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:r.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:n.color,categoryorder:n.categoryorder,categoryarray:n.categoryarray,title:{text:n.title.text,font:n.title.font},type:i({},n.type,{values:["-","linear","log","date","category"]}),autotypenumbers:n.autotypenumbers,autorange:n.autorange,autorangeoptions:{minallowed:n.autorangeoptions.minallowed,maxallowed:n.autorangeoptions.maxallowed,clipmin:n.autorangeoptions.clipmin,clipmax:n.autorangeoptions.clipmax,include:n.autorangeoptions.include,editType:"plot"},rangemode:n.rangemode,minallowed:n.minallowed,maxallowed:n.maxallowed,range:i({},n.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:n.minor.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:n.ticks,mirror:n.mirror,ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,labelalias:n.labelalias,tickfont:n.tickfont,tickangle:n.tickangle,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,showexponent:n.showexponent,exponentformat:n.exponentformat,minexponent:n.minexponent,separatethousands:n.separatethousands,tickformat:n.tickformat,tickformatstops:n.tickformatstops,hoverformat:n.hoverformat,showline:n.showline,linecolor:n.linecolor,linewidth:n.linewidth,showgrid:n.showgrid,gridcolor:i({},n.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:n.gridwidth,zeroline:n.zeroline,zerolinecolor:n.zerolinecolor,zerolinewidth:n.zerolinewidth},"plot","from-root")})),tm=f(((t,e)=>{var r=Qd(),n=ka().attributes,i=D().extendFlat,a=le().counterRegex;function o(t,e,r){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:e,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}e.exports={_arrayAttrRegexps:[a("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(o(0,0,1),{}),center:i(o(0,0,0),{}),eye:i(o(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:n({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:r,yaxis:r,zaxis:r,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"}})),em=f(((t,e)=>{var r=O().mix,n=le(),i=ye(),a=Qd(),o=_i(),s=Ti(),l=["xaxis","yaxis","zaxis"],u=13600/187;e.exports=function(t,e,c){var h,f;function p(t,e){return n.coerce(h,f,a,t,e)}for(var d=0;d{var r=le(),n=q(),i=qt(),a=Hs(),o=em(),s=tm(),l=we().getSubplotData,u="gl3d";function c(t,e,r,a){for(var s=r("bgcolor"),c=n.combine(s,a.paper_bgcolor),h=["up","center","eye"],f=0;f.999)&&(g="turntable")}else g="turntable";r("dragmode",g),r("hovermode",a.getDfltFromLayout("hovermode"))}e.exports=function(t,e,n){var i=e._basePlotModules.length>1;a(t,e,n,{type:u,attributes:s,handleDefaults:c,fullLayout:e,font:e.font,fullData:n,getDfltFromLayout:function(e){if(!i&&r.validate(t[e],s[e]))return t[e]},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}})),nm=f((t=>{var e=Lt().overrideAll,r=B(),n=Jd(),i=we().getSubplotData,a=le(),o=Ae(),s="gl3d",l="scene";t.name=s,t.attr=l,t.idRoot=l,t.idRegex=t.attrRegex=a.counterRegex("scene"),t.attributes=Kd(),t.layoutAttributes=tm(),t.baseLayoutAttrOverrides=e({hoverlabel:r.hoverlabel},"plot","nested"),t.supplyLayoutDefaults=rm(),t.plot=function(t){for(var e=t._fullLayout,r=t._fullData,a=e._subplots[s],o=0;o{e.exports={plot:Ud(),attributes:Vd(),markerSymbols:Nd(),supplyDefaults:qd(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:Hd(),moduleType:"trace",name:"scatter3d",basePlotModule:nm(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}})),am=f(((t,e)=>{e.exports=im()})),om=f(((t,e)=>{var r=q(),n=Pe(),i=Ce().axisHoverFormat,a=Ot().hovertemplateAttrs,o=j(),s=D().extendFlat,l=Lt().overrideAll;function u(t){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:{valType:"boolean",dflt:!1},y:{valType:"boolean",dflt:!1},z:{valType:"boolean",dflt:!1}},color:{valType:"color",dflt:r.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:r.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var c=e.exports=l(s({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:a(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},n("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:u(),y:u(),z:u()},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},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),"calc","nested");c.x.editType=c.y.editType=c.z.editType="calc+clearAxisTypes"})),sm=f(((t,e)=>{var r=qt(),n=le(),i=qe(),a=om();function o(t,e,r,n){var i=n("opacityscale");"max"===i?e.opacityscale=[[0,.1],[1,1]]:"min"===i?e.opacityscale=[[0,1],[1,.1]]:"extremes"===i?e.opacityscale=function(){for(var t=[],e=0;e<32;e++){var r=e/31,n=.1+.9*(1-Math.pow(Math.sin(1*r*Math.PI),2));t.push([r,Math.max(0,Math.min(1,n))])}return t}():function(t){var e=0;if(!Array.isArray(t)||t.length<2||!t[0]||!t[t.length-1]||0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r{var r=Ze();e.exports=function(t,e){e.surfacecolor?r(t,e,{vals:e.surfacecolor,containerStr:"",cLetter:"c"}):r(t,e,{vals:e.z,containerStr:"",cLetter:"c"})}})),um=f(((t,e)=>{var r=Cd().gl_surface3d,n=Cd().ndarray,i=Cd().ndarray_linear_interpolate.d2,a=Oo(),o=Do(),s=le().isArrayOrTypedArray,l=Fd().parseColorScale,u=Rd(),c=We().extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,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 f=h.prototype;f.getXat=function(t,e,r,n){var i=s(this.data.x)?s(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},f.getYat=function(t,e,r,n){var i=s(this.data.y)?s(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},f.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},f.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++)null!=t.dataCoordinate[a]&&(t.dataCoordinate[a]*=this.scene.dataScale[a]);var o=this.data.hovertext||this.data.text;return s(o)&&o[i]&&void 0!==o[i][n]?t.textLabel=o[i][n]:t.textLabel=o||"",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var p=[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 d(t,e){if(t0){r=p[n];break}return r}function y(t,e){if(!(t<1||e<1)){for(var r=m(t),n=m(e),i=1,a=0;a_;)r--,r/=g(r),++r1?n:1},f.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,i=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+i+1,u=1+a+1,c=n(new Float32Array(l*u),[l,u]),h=[1/e,0,0,0,1/r,0,0,0,1],f=0;f0&&null!==this.contourStart[t]&&null!==this.contourEnd[t]&&this.contourEnd[t]>this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];ev&&(this.minValues[m]=v),this.maxValues[m]{e.exports={attributes:om(),supplyDefaults:sm().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:lm(),plot:um(),moduleType:"trace",name:"surface",basePlotModule:nm(),categories:["gl3d","2dMap","showLegend"],meta:{}}})),hm=f(((t,e)=>{e.exports=cm()})),fm=f(((t,e)=>{var r=Pe(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=om(),o=j(),s=D().extendFlat;e.exports=s({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:i({editType:"calc"}),xhoverformat:n("x"),yhoverformat:n("y"),zhoverformat:n("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"}},r("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:a.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:"calc"},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:"calc"},lighting:s({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:"calc"}),showlegend:s({},o.showlegend,{dflt:!1})})})),pm=f(((t,e)=>{var r=Pe(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=fm(),o=j(),s=D().extendFlat,l=Lt().overrideAll,u=e.exports=l(s({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:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:n("x"),yhoverformat:n("y"),zhoverformat:n("z"),valuehoverformat:n("value",1),showlegend:s({},o.showlegend,{dflt:!1})},r("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),"calc","nested");u.flatshading.dflt=!0,u.lighting.facenormalsepsilon.dflt=0,u.x.editType=u.y.editType=u.z.editType=u.value.editType="calc+clearAxisTypes"})),dm=f(((t,e)=>{var r=le(),n=qt(),i=pm(),a=qe();function o(t,e,r,i,o){var s=o("isomin"),l=o("isomax");null!=l&&null!=s&&s>l&&(e.isomin=null,e.isomax=null);var u=o("x"),c=o("y"),h=o("z"),f=o("value");u&&u.length&&c&&c.length&&h&&h.length&&f&&f.length?(n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],i),o("valuehoverformat"),["x","y","z"].forEach((function(t){o(t+"hoverformat");var e="caps."+t;o(e+".show")&&o(e+".fill");var r="slices."+t;o(r+".show")&&(o(r+".fill"),o(r+".locations"))})),o("spaceframe.show")&&o("spaceframe.fill"),o("surface.show")&&(o("surface.count"),o("surface.fill"),o("surface.pattern")),o("contour.show")&&(o("contour.color"),o("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(t){o(t)})),a(t,e,i,o,{prefix:"",cLetter:"c"}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,n,a){o(t,e,0,a,(function(n,a){return r.coerce(t,e,i,n,a)}))},supplyIsoDefaults:o}})),mm=f(((t,e)=>{var r=le(),n=Ze();function i(t){var e,n,i,o,s,l,u,c,h,f,p,d,m=t._x,g=t._y,y=t._z,v=t._len,x=-1/0,_=1/0,b=-1/0,w=1/0,T=-1/0,k=1/0,A="";for(v&&(u=m[0],h=g[0],p=y[0]),v>1&&(c=m[v-1],f=g[v-1],d=y[v-1]),e=0;ec?"-":"+")+"x")).replace("y",(h>f?"-":"+")+"y")).replace("z",(p>d?"-":"+")+"z");var C=function(){v=0,M=[],S=[],E=[]};(!v||v{var r=Ze(),n=mm().processGrid,i=mm().filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=i(e.x,e._len),e._y=i(e.y,e._len),e._z=i(e.z,e._len),e._value=i(e.value,e._len);var a=n(e);e._gridFill=a.fill,e._Xs=a.Xs,e._Ys=a.Ys,e._Zs=a.Zs,e._len=a.len;for(var o=1/0,s=-1/0,l=0;l{e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a{var r=Cd().gl_mesh3d,n=Fd().parseColorScale,i=le().isArrayOrTypedArray,a=Rd(),o=We().extractOpts,s=ym(),l=function(t,e){for(var r=e.length-1;r>0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i>n&&n-1}function F(t,e){return null===t?e:t}function B(t,e,r){I();var n=[e],i=[r];if(s>=1)n=[e],i=[r];else if(s>0){var a=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i-1?r[u]:C(c,h,f);l[u]=d>-1?d:P(c,h,f,F(t,p))}z(l[0],l[1],l[2])}}function N(t,e,r,n){var i=t[3];in&&(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s<4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function j(t,e,r){return t>=e&&t<=r}function U(t){var e=.001*(E-S);return t>=S-e&&t<=E+e}function V(e){for(var r=[],n=0;n<4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function q(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[j(e[0][3],n,i),j(e[1][3],n,i),j(e[2][3],n,i)];if(!s[0]&&!s[1]&&!s[2])return!1;var l=function(t,e,r){return U(e[0][3])&&U(e[1][3])&&U(e[2][3])?(B(t,e,r),!0):a<3&&q(t,e,r,S,E,++a)};if(s[0]&&s[1]&&s[2])return l(t,e,r)||o;var u=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&&s[a[1]]&&!s[a[2]]){var c=e[a[0]],h=e[a[1]],f=e[a[2]],p=N(f,c,n,i),d=N(f,h,n,i);o=l(t,[d,p,c],[-1,-1,r[a[0]]])||o,o=l(t,[c,h,d],[r[a[0]],r[a[1]],-1])||o,u=!0}})),u||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&&!s[a[1]]&&!s[a[2]]){var c=e[a[0]],h=e[a[1]],f=e[a[2]],p=N(h,c,n,i),d=N(f,c,n,i);o=l(t,[d,p,c],[-1,-1,r[a[0]]])||o,u=!0}})),o}function H(t,e,r,n){var i=!1,a=V(e),o=[j(a[0][3],r,n),j(a[1][3],r,n),j(a[2][3],r,n),j(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&&o[1]&&o[2]&&o[3])return m&&(i=function(t,e,r){var n=function(n,i,a){B(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&&o[l[1]]&&o[l[2]]&&!o[l[3]]){var u=a[l[0]],c=a[l[1]],h=a[l[2]],f=a[l[3]];if(m)i=B(t,[u,c,h],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=N(f,u,r,n),d=N(f,c,r,n),g=N(f,h,r,n);i=B(null,[p,d,g],[-1,-1,-1])||i}s=!0}})),s||([[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(l){if(o[l[0]]&&o[l[1]]&&!o[l[2]]&&!o[l[3]]){var u=a[l[0]],c=a[l[1]],h=a[l[2]],f=a[l[3]],p=N(h,u,r,n),d=N(h,c,r,n),g=N(f,c,r,n),y=N(f,u,r,n);m?(i=B(t,[u,y,p],[e[l[0]],-1,-1])||i,i=B(t,[c,d,g],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(t,n,i){B(null,[e[t],e[n],e[i]],[r[t],r[n],r[i]])};n(0,1,2),n(2,3,0)}(0,[p,d,g,y],[-1,-1,-1,-1])||i,s=!0}})),s)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&&!o[l[1]]&&!o[l[2]]&&!o[l[3]]){var u=a[l[0]],c=a[l[1]],h=a[l[2]],f=a[l[3]],p=N(c,u,r,n),d=N(h,u,r,n),g=N(f,u,r,n);m?(i=B(t,[u,p,d],[e[l[0]],-1,-1])||i,i=B(t,[u,d,g],[e[l[0]],-1,-1])||i,i=B(t,[u,g,p],[e[l[0]],-1,-1])||i):i=B(null,[p,d,g],[-1,-1,-1])||i,s=!0}})),i}function G(t,e,r,n,i,a,o,s,l,u,c){var h=!1;return d&&(R(t,"A")&&(h=H(null,[e,r,n,a],u,c)||h),R(t,"B")&&(h=H(null,[r,n,i,l],u,c)||h),R(t,"C")&&(h=H(null,[r,a,o,l],u,c)||h),R(t,"D")&&(h=H(null,[n,a,s,l],u,c)||h),R(t,"E")&&(h=H(null,[r,n,a,l],u,c)||h)),m&&(h=H(t,[r,n,a,l],u,c)||h),h}function Z(t,e,r,n,i,a,o,s){return[!0===s[0]||q(t,V([e,r,n]),[e,r,n],a,o),!0===s[1]||q(t,V([n,i,e]),[n,i,e],a,o)]}function W(t,e,r,n,i,a,o,s,l){return s?Z(t,e,r,i,n,a,o,l):Z(t,r,i,n,e,a,o,l)}function Y(t,e,r,n,i,a,o){var s,l,u,c,h=!1,f=function(){h=q(t,[s,l,u],[-1,-1,-1],i,a)||h,h=q(t,[u,c,s],[-1,-1,-1],i,a)||h},p=o[0],d=o[1],m=o[2];return p&&(s=O(V([k(e,r-0,n-0)])[0],V([k(e-1,r-0,n-0)])[0],p),l=O(V([k(e,r-0,n-1)])[0],V([k(e-1,r-0,n-1)])[0],p),u=O(V([k(e,r-1,n-1)])[0],V([k(e-1,r-1,n-1)])[0],p),c=O(V([k(e,r-1,n-0)])[0],V([k(e-1,r-1,n-0)])[0],p),f()),d&&(s=O(V([k(e-0,r,n-0)])[0],V([k(e-0,r-1,n-0)])[0],d),l=O(V([k(e-0,r,n-1)])[0],V([k(e-0,r-1,n-1)])[0],d),u=O(V([k(e-1,r,n-1)])[0],V([k(e-1,r-1,n-1)])[0],d),c=O(V([k(e-1,r,n-0)])[0],V([k(e-1,r-1,n-0)])[0],d),f()),m&&(s=O(V([k(e-0,r-0,n)])[0],V([k(e-0,r-0,n-1)])[0],m),l=O(V([k(e-0,r-1,n)])[0],V([k(e-0,r-1,n-1)])[0],m),u=O(V([k(e-1,r-1,n)])[0],V([k(e-1,r-1,n-1)])[0],m),c=O(V([k(e-1,r-0,n)])[0],V([k(e-1,r-0,n-1)])[0],m),f()),h}function X(t,e,r,n,i,a,o,s,l,u,c,h){var f=t;return h?(d&&"even"===t&&(f=null),G(f,e,r,n,i,a,o,s,l,u,c)):(d&&"odd"===t&&(f=null),G(f,l,s,o,a,i,n,r,e,u,c))}function $(t,e,r,n,i){for(var a=[],o=0,s=0;sMath.abs(T-M)?[A,T]:[T,M];tt(r,C[0],C[1])}}var I=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];["x","y","z"].forEach((function(r){for(var n=[],i=0;i0&&(h.push(d.id),"x"===r?f.push([d.distRatio,0,0]):"y"===r?f.push([0,d.distRatio,0]):f.push([0,0,d.distRatio]))}else c=it(1,"x"===r?_-1:"y"===r?b-1:w-1);h.length>0&&(n[a]="x"===r?et(e,h,o,s,f,n[a]):"y"===r?rt(e,h,o,s,f,n[a]):nt(e,h,o,s,f,n[a]),a++),c.length>0&&(n[a]="x"===r?$(e,c,o,s,n[a]):"y"===r?J(e,c,o,s,n[a]):K(e,c,o,s,n[a]),a++)}var m=t.caps[r];m.show&&m.fill&&(D(m.fill),n[a]="x"===r?$(e,[0,_-1],o,s,n[a]):"y"===r?J(e,[0,b-1],o,s,n[a]):K(e,[0,w-1],o,s,n[a]),a++)}})),0===g&&L(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=y,t._Ys=v,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:f,createIsosurfaceTrace:function(t,e){var n=t.glplot.gl,i=r({gl:n}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}})),xm=f(((t,e)=>{e.exports={attributes:pm(),supplyDefaults:dm().supplyDefaults,calc:gm(),colorbar:{min:"cmin",max:"cmax"},plot:vm().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:nm(),categories:["gl3d","showLegend"],meta:{}}})),_m=f(((t,e)=>{e.exports=xm()})),bm=f(((t,e)=>{var r=Pe(),n=pm(),i=om(),a=j(),o=D().extendFlat,s=Lt().overrideAll,l=e.exports=s(o({x:n.x,y:n.y,z:n.z,value:n.value,isomin:n.isomin,isomax:n.isomax,surface:n.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:n.slices,caps:n.caps,text:n.text,hovertext:n.hovertext,xhoverformat:n.xhoverformat,yhoverformat:n.yhoverformat,zhoverformat:n.zhoverformat,valuehoverformat:n.valuehoverformat,hovertemplate:n.hovertemplate},r("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:n.colorbar,opacity:n.opacity,opacityscale:i.opacityscale,lightposition:n.lightposition,lighting:n.lighting,flatshading:n.flatshading,contour:n.contour,hoverinfo:o({},a.hoverinfo),showlegend:o({},a.showlegend,{dflt:!1})}),"calc","nested");l.x.editType=l.y.editType=l.z.editType=l.value.editType="calc+clearAxisTypes"})),wm=f(((t,e)=>{var r=le(),n=bm(),i=dm().supplyIsoDefaults,a=sm().opacityscaleDefaults;e.exports=function(t,e,o,s){function l(i,a){return r.coerce(t,e,n,i,a)}i(t,e,o,s,l),a(t,e,s,l)}})),Tm=f(((t,e)=>{var r=Cd().gl_mesh3d,n=Fd().parseColorScale,i=le().isArrayOrTypedArray,a=Rd(),o=We().extractOpts,s=ym(),l=vm().findNearestOnAxis,u=vm().generateIsoMeshes;function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name="",this.data=null,this.showContour=!1}var h=c.prototype;h.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],a=this.data._meshZ[e],o=this.data._Ys.length,s=this.data._Zs.length,u=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,h=l(a,this.data._Zs).id,f=t.index=h+s*c+s*o*u;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var p=this.data.hovertext||this.data.text;return i(p)&&void 0!==p[f]?t.textLabel=p[f]:p&&(t.textLabel=p),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;function i(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=u(t);var l={positions:s(i(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),i(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),i(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=n(t),this.mesh.update(l)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var n=t.glplot.gl,i=r({gl:n}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}})),km=f(((t,e)=>{e.exports={attributes:bm(),supplyDefaults:wm(),calc:gm(),colorbar:{min:"cmin",max:"cmax"},plot:Tm(),moduleType:"trace",name:"volume",basePlotModule:nm(),categories:["gl3d","showLegend"],meta:{}}})),Am=f(((t,e)=>{e.exports=km()})),Mm=f(((t,e)=>{var r=qt(),n=le(),i=qe(),a=fm();e.exports=function(t,e,o,s){function l(r,i){return n.coerce(t,e,a,r,i)}function u(t){var e=t.map((function(t){var e=l(t);return e&&n.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&&t.length===e[0].length}))&&e}u(["x","y","z"])?(u(["i","j","k"]),(!e.i||e.j&&e.k)&&(!e.j||e.k&&e.i)&&(!e.k||e.i&&e.j)?(r.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],s),["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(t){l(t)})),l("contour.show")&&(l("contour.color"),l("contour.width")),"intensity"in t?(l("intensity"),l("intensitymode"),i(t,e,s,l,{prefix:"",cLetter:"c"})):(e.showscale=!1,"facecolor"in t?l("facecolor"):"vertexcolor"in t?l("vertexcolor"):l("color",o)),l("text"),l("hovertext"),l("hovertemplate"),l("xhoverformat"),l("yhoverformat"),l("zhoverformat"),e._length=null):e.visible=!1):e.visible=!1}})),Sm=f(((t,e)=>{var r=Ze();e.exports=function(t,e){e.intensity&&r(t,e,{vals:e.intensity,containerStr:"",cLetter:"c"})}})),Em=f(((t,e)=>{var r=Cd().gl_mesh3d,n=Cd().delaunay_triangulate,i=Cd().alpha_shape,a=Cd().convex_hull,o=Fd().parseColorScale,s=le().isArrayOrTypedArray,l=Rd(),u=We().extractOpts,c=ym();function h(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var f=h.prototype;function p(t){for(var e=[],r=t.length,n=0;n=e-.5)return!1;return!0}f.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return s(r)&&void 0!==r[e]?t.textLabel=r[e]:r&&(t.textLabel=r),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var s,h=t.x.length,f=c(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!g(t.i,h)||!g(t.j,h)||!g(t.k,h))return;s=c(m(t.i),m(t.j),m(t.k))}else s=0===t.alphahull?a(f):t.alphahull>0?i(t.alphahull,f):function(t,e){for(var r=["x","y","z"].indexOf(t),i=[],a=e.length,o=0;o{e.exports={attributes:fm(),supplyDefaults:Mm(),calc:Sm(),colorbar:{min:"cmin",max:"cmax"},plot:Em(),moduleType:"trace",name:"mesh3d",basePlotModule:nm(),categories:["gl3d","showLegend"],meta:{}}})),Im=f(((t,e)=>{e.exports=Cm()})),Lm=f(((t,e)=>{var r=Pe(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=fm(),o=j(),s=D().extendFlat,l={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:i({editType:"calc"},{keys:["norm"]}),uhoverformat:n("u",1),vhoverformat:n("v",1),whoverformat:n("w",1),xhoverformat:n("x"),yhoverformat:n("y"),zhoverformat:n("z"),showlegend:s({},o.showlegend,{dflt:!1})};s(l,r("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),e.exports=l})),Pm=f(((t,e)=>{var r=le(),n=qe(),i=Lm();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("u"),u=s("v"),c=s("w"),h=s("x"),f=s("y"),p=s("z");if(l&&l.length&&u&&u.length&&c&&c.length&&h&&h.length&&f&&f.length&&p&&p.length){var d=s("sizemode");s("sizeref","raw"===d?1:.5),s("anchor"),s("lighting.ambient"),s("lighting.diffuse"),s("lighting.specular"),s("lighting.roughness"),s("lighting.fresnel"),s("lightposition.x"),s("lightposition.y"),s("lightposition.z"),n(t,e,o,s,{prefix:"",cLetter:"c"}),s("text"),s("hovertext"),s("hovertemplate"),s("uhoverformat"),s("vhoverformat"),s("whoverformat"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),e._length=null}else e.visible=!1}})),zm=f(((t,e)=>{var r=Ze();e.exports=function(t,e){for(var n=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{var r=Cd().gl_cone3d,n=Cd().gl_cone3d.createConeMesh,i=le().simpleMap,a=Fd().parseColorScale,o=We().extractOpts,s=le().isArrayOrTypedArray,l=ym();function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var c=u.prototype;c.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],l=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,l,Math.sqrt(a*a+o*o+l*l)];var u=this.data.hovertext||this.data.text;return s(u)&&void 0!==u[e]?t.textLabel=u[e]:u&&(t.textLabel=u),!0}};var h={xaxis:0,yaxis:1,zaxis:2},f={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var n=t.fullSceneLayout,s=t.dataScale,u={};function c(t,e){var r=n[e],a=s[h[e]];return i(t,(function(t){return r.d2l(t)*a}))}u.vectors=l(c(e.u,"xaxis"),c(e.v,"yaxis"),c(e.w,"zaxis"),e._len),u.positions=l(c(e.x,"xaxis"),c(e.y,"yaxis"),c(e.z,"zaxis"),e._len);var d=o(e);u.colormap=a(e),u.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],u.coneOffset=f[e.anchor];var m=e.sizemode;"scaled"===m?u.coneSize=e.sizeref||.5:"absolute"===m?u.coneSize=e.sizeref&&e._normMax?e.sizeref/e._normMax:.5:"raw"===m&&(u.coneSize=e.sizeref),u.coneSizemode=m;var g=r(u),y=e.lightposition;return g.lightPosition=[y.x,y.y,y.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}c.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},c.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=d(t,e),a=n(r,i),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}})),Dm=f(((t,e)=>{e.exports={moduleType:"trace",name:"cone",basePlotModule:nm(),categories:["gl3d","showLegend"],attributes:Lm(),supplyDefaults:Pm(),colorbar:{min:"cmin",max:"cmax"},calc:zm(),plot:Om(),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}})),Rm=f(((t,e)=>{e.exports=Dm()})),Fm=f(((t,e)=>{var r=Pe(),n=Ce().axisHoverFormat,i=Ot().hovertemplateAttrs,a=fm(),o=j(),s=D().extendFlat,l={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:i({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:n("u",1),vhoverformat:n("v",1),whoverformat:n("w",1),xhoverformat:n("x"),yhoverformat:n("y"),zhoverformat:n("z"),showlegend:s({},o.showlegend,{dflt:!1})};s(l,r("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),e.exports=l})),Bm=f(((t,e)=>{var r=le(),n=qe(),i=Fm();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("u"),u=s("v"),c=s("w"),h=s("x"),f=s("y"),p=s("z");l&&l.length&&u&&u.length&&c&&c.length&&h&&h.length&&f&&f.length&&p&&p.length?(s("starts.x"),s("starts.y"),s("starts.z"),s("maxdisplayed"),s("sizeref"),s("lighting.ambient"),s("lighting.diffuse"),s("lighting.specular"),s("lighting.roughness"),s("lighting.fresnel"),s("lightposition.x"),s("lightposition.y"),s("lightposition.z"),n(t,e,o,s,{prefix:"",cLetter:"c"}),s("text"),s("hovertext"),s("hovertemplate"),s("uhoverformat"),s("vhoverformat"),s("whoverformat"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),e._length=null):e.visible=!1}})),Nm=f(((t,e)=>{var r=Cd().gl_streamtube3d,n=r.createTubeMesh,i=le(),a=Fd().parseColorScale,o=We().extractOpts,s=ym(),l={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var c=u.prototype;function h(t){var e=t.length;return e>2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function f(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function p(t,e){var n=t.fullSceneLayout,u=t.dataScale,c=e._len,p={};function d(t,e){var r=n[e],a=u[l[e]];return i.simpleMap(t,(function(t){return r.d2l(t)*a}))}if(p.vectors=s(d(e._u,"xaxis"),d(e._v,"yaxis"),d(e._w,"zaxis"),c),!c)return{positions:[],cells:[]};var m=d(e._Xs,"xaxis"),g=d(e._Ys,"yaxis"),y=d(e._Zs,"zaxis");if(p.meshgrid=[m,g,y],p.gridFill=e._gridFill,e._slen)p.startingPositions=s(d(e._startsX,"xaxis"),d(e._startsY,"yaxis"),d(e._startsZ,"zaxis"));else{for(var v=g[0],x=h(m),_=h(y),b=new Array(x.length*_.length),w=0,T=0;T{e.exports={moduleType:"trace",name:"streamtube",basePlotModule:nm(),categories:["gl3d","showLegend"],attributes:Fm(),supplyDefaults:Bm(),colorbar:{min:"cmin",max:"cmax"},calc:mm().calc,plot:Nm(),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}})),Um=f(((t,e)=>{e.exports=jm()})),Vm=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=wn(),a=Tn(),o=j(),s=Pe(),l=Pt().dash,u=D().extendFlat,c=Lt().overrideAll,h=a.marker,f=a.line,p=h.line;e.exports=c({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:u({},a.mode,{dflt:"markers"}),text:u({},a.text,{}),texttemplate:n({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:u({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:f.color,width:f.width,dash:l},connectgaps:a.connectgaps,marker:u({symbol:h.symbol,opacity:h.opacity,angle:h.angle,angleref:u({},h.angleref,{values:["previous","up","north"]}),standoff:h.standoff,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,colorbar:h.colorbar,line:u({width:p.width},s("marker.line")),gradient:h.gradient},s("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:i(),selected:a.selected,unselected:a.unselected,hoverinfo:u({},o.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:r()},"calc","nested")})),qm=f(((t,e)=>{var r=le(),n=Ye(),i=Wn(),a=Yn(),o=$n(),s=Jn(),l=Vm();e.exports=function(t,e,u,c){function h(n,i){return r.coerce(t,e,l,n,i)}var f,p=h("locations");if(p&&p.length){var d,m=h("geojson");("string"==typeof m&&""!==m||r.isPlainObject(m))&&(d="geojson-id"),"geojson-id"===h("locationmode",d)&&h("featureidkey"),f=p.length}else{var g=h("lon")||[],y=h("lat")||[];f=Math.min(g.length,y.length)}f?(e._length=f,h("text"),h("hovertext"),h("hovertemplate"),h("mode"),n.hasMarkers(e)&&i(t,e,u,c,h,{gradient:!0}),n.hasLines(e)&&(a(t,e,u,c,h),h("connectgaps")),n.hasText(e)&&(h("texttemplate"),o(t,e,c,h)),h("fill"),"none"!==e.fill&&s(t,e,u,h),r.coerceSelectionMarkerOpacity(e,h)):e.visible=!1}})),Hm=f(((t,e)=>{var r=ir();e.exports=function(t,e,n){var i={},a=n[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=r.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=r.tickText(a,a.c2l(o[1]),!0).text,i}})),Gm=f(((t,e)=>{var r=T(),n=k().BADNUM,i=ni(),a=ii(),o=ai(),s=le().isArrayOrTypedArray,l=le()._;function u(t){return t&&"string"==typeof t}e.exports=function(t,e){var c,h=s(e.locations),f=h?e.locations.length:e._length,p=new Array(f);c=e.geojson?function(t){return u(t)||r(t)}:u;for(var d=0;d{t.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},t.axesNames=["lonaxis","lataxis"],t.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},t.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},t.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},t.clipPad=.001,t.precision=.1,t.landColor="#F0DC82",t.waterColor="#3399FF",t.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},t.sphereSVG={type:"Sphere"},t.fillLayers={ocean:1,land:1,lakes:1},t.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},t.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],t.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],t.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}})),Wm=f(((t,e)=>{var r,n;r=t,n=function(t){function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,u=t.length,c=new Array(u);for(c[0]=(r+=t[0])*i+o,c[1]=(n+=t[1])*a+s;lo&&(o=t[0]),t[1]s&&(s=t[1])}function u(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(u);break;case"Point":l(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++ro&&(o=e[0]),e[1]s&&(s=e[1])})),t.objects)u(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&&null==n?{type:"Feature",properties:i,geometry:o}:null==n?{type:"Feature",id:r,properties:i,geometry:o}:{type:"Feature",id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&&e.pop();for(var r=i[t<0?~t:t],a=0,o=r.length;a1)n=function(t,e,r){var n,i=[],a=[];function o(t){var e=t<0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"LineString":s(e.arcs);break;case"MultiLineString":case"Polygon":l(e.arcs);break;case"MultiPolygon":!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,r);else for(i=0,n=new Array(a=t.arcs.length);i1)for(var a,s,u=1,c=l(i[0]);uc&&(s=i[0],i[0]=i[u],i[u]=s,c=a);return i})).filter((function(t){return t.length>0}))}}function u(t,e){for(var r=0,n=t.length;r>>1;t[i]=2))throw new Error("n must be ≥2");var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,u,h=c(e),f=t.objects,p={};function d(t){return h(t)}function m(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(m)};break;case"Point":e={type:"Point",coordinates:d(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}for(u in f)p[u]=m(f[u]);return{type:"Topology",bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=h(t[0],0);++r{var r=e.exports={},n=Zm().locationmodeToLayer,i=Wm().feature;r.getTopojsonName=function(t){return[t.scope.replace(/ /g,"-"),"_",t.resolution.toString(),"m"].join("")},r.getTopojsonPath=function(t,e){return t+e+".json"},r.getTopojsonFeatures=function(t,e){var r=n[t.locationmode],a=e.objects[r];return i(e,a).features}})),Xm=f((t=>{var e=k().BADNUM;t.calcTraceToLineCoords=function(t){for(var r=t[0].trace.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n},t.makeLine=function(t){return 1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}},t.makePolygon=function(t){if(1===t.length)return{type:"Polygon",coordinates:t};for(var e=new Array(t.length),r=0;r{e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}})),Jm=f((t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=6371008.8,r={centimeters:100*e,centimetres:100*e,degrees:360/(2*Math.PI),feet:3.28084*e,inches:39.37*e,kilometers:e/1e3,kilometres:e/1e3,meters:e,metres:e,miles:e/1609.344,millimeters:1e3*e,millimetres:1e3*e,nauticalmiles:e/1852,radians:1,yards:1.0936*e},n={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:2.9155334959812285e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function i(t,e,r={}){let n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function a(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!m(t[0])||!m(t[1]))throw new Error("coordinates must contain numbers");return i({type:"Point",coordinates:t},e,r)}function o(t,e,r={}){for(let e of t){if(e.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(e[e.length-1].length!==e[0].length)throw new Error("First and last Position are not equivalent.");for(let t=0;t0?t>180?t-360:t:t<-180?t+360:t},t.bearingToAzimuth=function(t){let e=t%360;return e<0&&(e+=360),e},t.convertArea=function(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");let i=n[e];if(!i)throw new Error("invalid original units");let a=n[r];if(!a)throw new Error("invalid final units");return t/i*a},t.convertLength=function(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return f(p(t,e),r)},t.degreesToRadians=function(t){return t%360*Math.PI/180},t.earthRadius=e,t.factors=r,t.feature=i,t.featureCollection=l,t.geometry=function(t,e,r={}){switch(t){case"Point":return a(e).geometry;case"LineString":return s(e).geometry;case"Polygon":return o(e).geometry;case"MultiPoint":return c(e).geometry;case"MultiLineString":return u(e).geometry;case"MultiPolygon":return h(e).geometry;default:throw new Error(t+" is invalid")}},t.geometryCollection=function(t,e,r={}){return i({type:"GeometryCollection",geometries:t},e,r)},t.isNumber=m,t.isObject=function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)},t.lengthToDegrees=function(t,e){return d(p(t,e))},t.lengthToRadians=p,t.lineString=s,t.lineStrings=function(t,e,r={}){return l(t.map((t=>s(t,e))),r)},t.multiLineString=u,t.multiPoint=c,t.multiPolygon=h,t.point=a,t.points=function(t,e,r={}){return l(t.map((t=>a(t,e))),r)},t.polygon=o,t.polygons=function(t,e,r={}){return l(t.map((t=>o(t,e))),r)},t.radiansToDegrees=d,t.radiansToLength=f,t.round=function(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,e||0);return Math.round(t*r)/r},t.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((t=>{if(!m(t))throw new Error("bbox must only contain numbers")}))},t.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}})),Km=f((t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Jm();function r(t,e,n){if(null!==t)for(var i,a,o,s,l,u,c,h,f=0,p=0,d=t.type,m="FeatureCollection"===d,g="Feature"===d,y=m?t.features.length:1,v=0;vu||p>c||d>h)return l=r,u=i,c=p,h=d,void(o=0);var m=e.lineString.call(void 0,[l,r],t.properties);if(!1===n(m,i,a,d,o))return!1;o++,l=r})))return!1}}}))}function l(t,r){if(!t)throw new Error("geojson is required");o(t,(function(t,n,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case"LineString":if(!1===r(t,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s{Object.defineProperty(t,"__esModule",{value:!0});var e=Jm(),r=Km();function n(t){return r.geomReduce.call(void 0,t,((t,e)=>t+function(t){let e,r=0;switch(t.type){case"Polygon":return i(t.coordinates);case"MultiPolygon":for(e=0;e0){e+=Math.abs(s(t[0]));for(let r=1;r=e?(n+2)%e:n+2],l=i[0]*o,u=a[1]*o;r+=(s[0]*o-l)*Math.sin(u),n++}return r*a}var l=n;t.area=n,t.default=l})),tg=f((t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Jm(),r=Km();function n(t,n={}){let i=0,a=0,o=0;return r.coordEach.call(void 0,t,(function(t){i+=t[0],a+=t[1],o++}),!0),e.point.call(void 0,[i/o,a/o],n.properties)}var i=n;t.centroid=n,t.default=i})),eg=f((t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Km();function r(t,r={}){if(null!=t.bbox&&!0!==r.recompute)return t.bbox;let n=[1/0,1/0,-1/0,-1/0];return e.coordEach.call(void 0,t,(t=>{n[0]>t[0]&&(n[0]=t[0]),n[1]>t[1]&&(n[1]=t[1]),n[2]{var r=v(),n=$m(),{area:i}=Qm(),{centroid:a}=tg(),{bbox:o}=eg(),s=Gt(),l=X(),u=M(),c=E(),h=mn(),f=Object.keys(n),p={"ISO-3":s,"USA-states":s,"country names":function(t){for(var e=0;e0&&t[e+1][0]<0)return e;return null}switch(e="RUS"===s||"FJI"===s?function(t){var e;if(null===u(t))e=t;else for(e=new Array(t.length),i=0;ie?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case"MultiPolygon":for(r=0;r0?h.properties.ct=function(t){var e,r=t.geometry;if("MultiPolygon"===r.type)for(var n=r.coordinates,o=0,s=0;so&&(o=u,e=l)}else e=r;return a(e).geometry.coordinates}(h):h.properties.ct=[NaN,NaN],n.fIn=t,n.fOut=h,s.push(h)}else l.log(["Location",n.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete o[r]}switch(r.type){case"FeatureCollection":var f=r.features;for(n=0;n100?(clearInterval(a),n("Unexpected error while fetching from "+t)):void i++}),50)}))}for(var o=0;o{var r=v(),n=Qe(),i=q(),a=mi(),o=a.stylePoints,s=a.styleText;e.exports=function(t,e){e&&function(t,e){var a=e[0].trace,l=e[0].node3;l.style("opacity",e[0].trace.opacity),o(l,a,t),s(l,a,t),l.selectAll("path.js-line").style("fill","none").each((function(t){var e=r.select(this),a=t.trace,o=a.line||{};e.call(i.stroke,o.color).call(n.dashLine,o.dash||"",o.width||0),"none"!==a.fill&&e.call(i.fill,a.fillcolor)}))}(t,e)}})),ig=f(((t,e)=>{var r=v(),n=le(),i=Ym().getTopojsonFeatures,a=Xm(),o=rg(),s=nr().findExtremes,l=k().BADNUM,u=oi().calcMarkerSize,c=Ye(),h=ng();e.exports={calcGeoJSON:function(t,e){var r,a,c=t[0].trace,h=e[c.geo],f=h._subplot,p=c._length;if(n.isArrayOrTypedArray(c.locations)){var d=c.locationmode,m="geojson-id"===d?o.extractTraceFeature(t):i(c,f.topojson);for(r=0;r{var r=Or(),n=k().BADNUM,i=gi(),a=le().fillText,o=Vm();e.exports=function(t,e,s){var l=t.cd,u=l[0].trace,c=t.xa,h=t.ya,f=t.subplot,p=f.projection.isLonLatOverEdges,d=f.project;if(r.getClosest(l,(function(t){var r=t.lonlat;if(r[0]===n||p(r))return 1/0;var i=d(r),a=d([e,s]),o=Math.abs(i[0]-a[0]),l=Math.abs(i[1]-a[1]),u=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(o*o+l*l)-u,1-3/u)}),t),!1!==t.index){var m=l[t.index],g=m.lonlat,y=[c.c2p(g),h.c2p(g)],v=m.mrc||1;t.x0=y[0]-v,t.x1=y[0]+v,t.y0=y[1]-v,t.y1=y[1]+v,t.loc=m.loc,t.lon=g[0],t.lat=g[1];var x={};x[u.geo]={_subplot:f};var _=u._module.formatLabels(m,u,x);return t.lonLabel=_.lonLabel,t.latLabel=_.latLabel,t.color=i(u,m),t.extraText=function(t,e,r,n){if(!t.hovertemplate){var i=e.hi||t.hoverinfo,s="all"===i?o.hoverinfo.flags:i.split("+"),l=-1!==s.indexOf("location")&&Array.isArray(t.locations),u=-1!==s.indexOf("lon"),c=-1!==s.indexOf("lat"),h=-1!==s.indexOf("text"),f=[];return l?f.push(e.loc):u&&c?f.push("("+p(r.latLabel)+", "+p(r.lonLabel)+")"):u?f.push(n.lon+p(r.lonLabel)):c&&f.push(n.lat+p(r.latLabel)),h&&a(e,t,f),f.join("
")}function p(t){return t+"°"}}(u,m,t,l[0].t.labels),t.hovertemplate=u.hovertemplate,[t]}}})),og=f(((t,e)=>{e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&&a.fIn.properties&&(t.properties=a.fIn.properties),t}})),sg=f(((t,e)=>{var r=Ye(),n=k().BADNUM;e.exports=function(t,e){var i,a,o,s,l,u=t.cd,c=t.xaxis,h=t.yaxis,f=[],p=u[0].trace;if(!r.hasMarkers(p)&&!r.hasText(p))return[];if(!1===e)for(l=0;l{var r;r=t,function(t){function e(t,e){return te?1:t>=e?0:NaN}function r(t){return 1===t.length&&(t=function(t){return function(r,n){return e(t(r),n)}}(t)),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,u=0;if(null==e)for(;++o1)return u/(a-1)}function u(t,e){var r=l(t,e);return r&&Math.sqrt(r)}function c(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o=r)for(n=i=r;++or&&(n=r),i=r)for(n=i=r;++or&&(n=r),i=0?(a>=y?10:a>=v?5:a>=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=y?10:a>=v?5:a>=x?2:1)}function b(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=y?i*=10:a>=v?i*=5:a>=x&&(i*=2),e=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a=r)for(n=r;++ar&&(n=r)}else for(;++a=r)for(n=r;++ar&&(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,M),n=new Array(r);++et?1:e>=t?0:NaN},t.deviation=u,t.extent=c,t.histogram=function(){var t=m,e=c,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;ah;)f.pop(),--p;var d,m=new Array(p+1);for(a=0;a<=p;++a)(d=m[a]=[]).x0=a>0?f[a-1]:c,d.x1=a=r)for(n=r;++an&&(n=r)}else for(;++a=r)for(n=r;++an&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&&(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r0)return[t];if((n=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s{var r,n;r=t,n=function(t,e){function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,h=2*l,f=180/l,p=l/180,d=Math.abs,m=Math.atan,g=Math.atan2,y=Math.cos,v=Math.ceil,x=Math.exp,_=Math.log,b=Math.pow,w=Math.sin,T=Math.sign||function(t){return t>0?1:t<0?-1:0},k=Math.sqrt,A=Math.tan;function M(t){return t>1?0:t<-1?l:Math.acos(t)}function S(t){return t>1?u:t<-1?-u:Math.asin(t)}function E(t){return(t=w(t/2))*t}function C(){}function I(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var L={Feature:function(t,e){I(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n=0?1:-1,i=n*r,a=y(e=(e*=p)/2+c),o=w(e),s=j*o,l=N*a+s*y(i),u=s*n*w(i);U.add(g(u,l)),B=t,N=a,j=o}function Y(t){return[g(t[1],t[0]),S(t[2])]}function X(t){var e=t[0],r=t[1],n=y(r);return[n*y(e),n*w(e),w(r)]}function $(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function K(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tt(t){var e=k(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var et,rt,nt,it,at,ot,st,lt,ut,ct,ht=r(),ft={point:pt,lineStart:mt,lineEnd:gt,polygonStart:function(){ft.point=yt,ft.lineStart=vt,ft.lineEnd=xt,ht.reset(),q.polygonStart()},polygonEnd:function(){q.polygonEnd(),ft.point=pt,ft.lineStart=mt,ft.lineEnd=gt,U<0?(et=-(nt=180),rt=-(it=90)):ht>o?it=90:ht<-o&&(rt=-90),ct[0]=et,ct[1]=nt},sphere:function(){et=-(nt=180),rt=-(it=90)}};function pt(t,e){ut.push(ct=[et=t,nt=t]),eit&&(it=e)}function dt(t,e){var r=X([t*p,e*p]);if(lt){var n=J(lt,r),i=J([n[1],-n[0],0],n);tt(i),i=Y(i);var a,o=t-at,s=o>0?1:-1,l=i[0]*f*s,u=d(o)>180;u^(s*atit&&(it=a):u^(s*at<(l=(l+360)%360-180)&&lit&&(it=e)),u?t_t(et,nt)&&(nt=t):_t(t,nt)>_t(et,nt)&&(et=t):nt>=et?(tnt&&(nt=t)):t>at?_t(et,t)>_t(et,nt)&&(nt=t):_t(t,nt)>_t(et,nt)&&(et=t)}else ut.push(ct=[et=t,nt=t]);eit&&(it=e),lt=r,at=t}function mt(){ft.point=dt}function gt(){ct[0]=et,ct[1]=nt,ft.point=pt,lt=null}function yt(t,e){if(lt){var r=t-at;ht.add(d(r)>180?r+(r>0?360:-360):r)}else ot=t,st=e;q.point(t,e),dt(t,e)}function vt(){q.lineStart()}function xt(){yt(ot,st),q.lineEnd(),d(ht)>o&&(et=-(nt=180)),ct[0]=et,ct[1]=nt,lt=null}function _t(t,e){return(e-=t)<0?e+360:e}function bt(t,e){return t[0]-e[0]}function wt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:el?t+Math.round(-t/h)*h:t,e]}function Qt(t,e,r){return(t%=h)?e||r?Jt(ee(t),re(e,r)):ee(t):e||r?re(e,r):Kt}function te(t){return function(e,r){return[(e+=t)>l?e-h:e<-l?e+h:e,r]}}function ee(t){var e=te(t);return e.invert=te(-t),e}function re(t,e){var r=y(t),n=w(t),i=y(e),a=w(e);function o(t,e){var o=y(e),s=y(t)*o,l=w(t)*o,u=w(e),c=u*r+s*n;return[g(l*i-c*a,s*r-u*n),S(c*i+l*a)]}return o.invert=function(t,e){var o=y(e),s=y(t)*o,l=w(t)*o,u=w(e),c=u*i-l*a;return[g(l*i+u*a,s*r+c*n),S(c*r-s*n)]},o}function ne(t){function e(e){return(e=t(e[0]*p,e[1]*p))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*p,t[1]*p,t.length>2?t[2]*p:0),e.invert=function(e){return(e=t.invert(e[0]*p,e[1]*p))[0]*=f,e[1]*=f,e},e}function ie(t,e,r,n,i,a){if(r){var o=y(e),s=w(e),l=n*r;null==i?(i=e+n*h,a=e-l/2):(i=ae(o,i),a=ae(o,a),(n>0?ia)&&(i+=n*h));for(var u,c=i;n>0?c>a:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function se(t,e){return d(t[0]-e[0])=0;--a)i.point((h=c[a])[0],h[1]);else n(p.x,p.p.x,-1,i);p=p.p}c=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function ce(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n=0?1:-1,O=z*P,D=O>l,R=T*I;if(he.add(g(R*z*w(O),k*L+R*y(O))),s+=D?P+z*h:P,D^_>=r^E>=r){var F=J(X(x),X(M));tt(F);var B=J(a,F);tt(B);var N=(D^P>=0?-1:1)*S(B[2]);(n>N||n===N&&(F[0]||F[1]))&&(f+=D^P>=0?1:-1)}}return(s<-o||s0){for(f||(a.polygonStart(),f=!0),a.lineStart(),t=0;t1&&2&i&&u.push(u.pop().concat(u.shift())),s.push(u.filter(me))}}return p}}function me(t){return t.length>1}function ge(t,e){return((t=t.x)[0]<0?t[1]-u-o:u-t[1])-((e=e.x)[0]<0?e[1]-u-o:u-e[1])}var ye=de((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var c=a>0?l:-l,h=d(a-r);d(h-l)0?u:-u),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(c,n),t.point(a,n),e=0):i!==c&&h>=l&&(d(r-i)o?m((w(e)*(a=y(n))*w(r)-w(n)*(i=y(e))*w(t))/(i*a*s)):(e+n)/2}(r,n,a,s),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(c,n),e=0),t.point(r=a,n=s),i=c},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*u,n.point(-l,i),n.point(0,i),n.point(l,i),n.point(l,0),n.point(l,-i),n.point(0,-i),n.point(-l,-i),n.point(-l,0),n.point(-l,i);else if(d(t[0]-e[0])>o){var a=t[0]0,i=d(e)>o;function a(t,r){return y(t)*y(r)>e}function s(t,r,n){var i=[1,0,0],a=J(X(t),X(r)),s=$(a,a),u=a[0],c=s-u*u;if(!c)return!n&&t;var h=e*s/c,f=-e*u/c,p=J(i,a),m=Q(i,h);K(m,Q(a,f));var g=p,y=$(m,g),v=$(g,g),x=y*y-v*($(m,m)-1);if(!(x<0)){var _=k(x),b=Q(g,(-y-_)/v);if(K(b,m),b=Y(b),!n)return b;var w,T=t[0],A=r[0],M=t[1],S=r[1];A0^b[1]<(d(b[0]-T)l^(T<=b[0]&&b[0]<=A)){var I=Q(g,(-y+_)/v);return K(I,m),[b,Y(I)]}}}function u(e,r){var i=n?t:l-t,a=0;return e<-i?a|=1:e>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}return de(a,(function(t){var e,r,o,c,h;return{lineStart:function(){c=o=!1,h=1},point:function(f,p){var d,m=[f,p],g=a(f,p),y=n?g?0:u(f,p):g?u(f+(f<0?l:-l),p):0;if(!e&&(c=o=g)&&t.lineStart(),g!==o&&(!(d=s(e,m))||se(e,d)||se(m,d))&&(m[2]=1),g!==o)h=0,g?(t.lineStart(),d=s(m,e),t.point(d[0],d[1])):(d=s(e,m),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&n^g){var v;!(y&r)&&(v=s(m,e,!0))&&(h=0,n?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}g&&(!e||!se(e,m))&&t.point(m[0],m[1]),e=m,o=g,r=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return h|(c&&o)<<1}}}),(function(e,n,i,a){ie(a,t,r,i,e,n)}),n?[0,-t]:[-l,t-l])}var xe=1e9,_e=-xe;function be(t,r,n,i){function a(e,a){return t<=e&&e<=n&&r<=a&&a<=i}function s(e,a,o,s){var u=0,h=0;if(null==e||(u=l(e,o))!==(h=l(a,o))||c(e,a)<0^o>0)do{s.point(0===u||3===u?t:n,u>1?i:r)}while((u=(u+o+4)%4)!==h);else s.point(a[0],a[1])}function l(e,i){return d(e[0]-t)0?0:3:d(e[0]-n)0?2:1:d(e[1]-r)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,c,h,f,p,d,m,g,y,v,x,_=o,b=oe(),w={point:T,lineStart:function(){w.point=k,c&&c.push(h=[]),v=!0,y=!1,m=g=NaN},lineEnd:function(){l&&(k(f,p),d&&y&&b.rejoin(),l.push(b.result())),w.point=T,y&&_.lineEnd()},polygonStart:function(){_=b,l=[],c=[],x=!0},polygonEnd:function(){var r=function(){for(var e=0,r=0,n=c.length;ri&&(f-a)*(i-o)>(p-o)*(t-a)&&++e:p<=i&&(f-a)*(i-o)<(p-o)*(t-a)&&--e;return e}(),n=x&&r,a=(l=e.merge(l)).length;(n||a)&&(o.polygonStart(),n&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),a&&ue(l,u,r,s,o),o.polygonEnd()),_=o,l=c=h=null}};function T(t,e){a(t,e)&&_.point(t,e)}function k(e,o){var s=a(e,o);if(c&&h.push([e,o]),v)f=e,p=o,d=s,v=!1,s&&(_.lineStart(),_.point(e,o));else if(s&&y)_.point(e,o);else{var l=[m=Math.max(_e,Math.min(xe,m)),g=Math.max(_e,Math.min(xe,g))],u=[e=Math.max(_e,Math.min(xe,e)),o=Math.max(_e,Math.min(xe,o))];!function(t,e,r,n,i,a){var o,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(o=r-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>c)return;o>u&&(u=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>c)return;o>u&&(u=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>c)return;o>u&&(u=o)}if(o=a-l,f||!(o<0)){if(o/=f,f<0){if(o>c)return;o>u&&(u=o)}else if(f>0){if(o0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}}(l,u,t,r,n,i)?s&&(_.lineStart(),_.point(e,o),x=!1):(y||(_.lineStart(),_.point(l[0],l[1])),_.point(u[0],u[1]),s||_.lineEnd(),x=!1)}m=e,g=o,y=s}return w}}var we,Te,ke,Ae=r(),Me={sphere:C,point:C,lineStart:function(){Me.point=Ee,Me.lineEnd=Se},lineEnd:C,polygonStart:C,polygonEnd:C};function Se(){Me.point=Me.lineEnd=C}function Ee(t,e){we=t*=p,Te=w(e*=p),ke=y(e),Me.point=Ce}function Ce(t,e){t*=p;var r=w(e*=p),n=y(e),i=d(t-we),a=y(i),o=n*w(i),s=ke*r-Te*n*a,l=Te*r+ke*n*a;Ae.add(g(k(o*o+s*s),l)),we=t,Te=r,ke=n}function Ie(t){return Ae.reset(),D(t,Me),+Ae}var Le=[null,null],Pe={type:"LineString",coordinates:Le};function ze(t,e){return Le[0]=t,Le[1]=e,Ie(Pe)}var Oe={Feature:function(t,e){return Re(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n0&&(i=ze(t[a],t[a-1]))>0&&r<=i&&n<=i&&(r+n-i)*(1-Math.pow((r-n)/i,2))o})).map(c)).concat(e.range(v(s/g)*g,a,g).filter((function(t){return d(t%x)>o})).map(h))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(p(l).slice(1),f(n).reverse().slice(1),p(u).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],u=+t[0][1],l=+t[1][1],i>n&&(t=i,i=n,n=t),u>l&&(t=u,u=l,l=t),b.precision(_)):[[i,u],[n,l]]},b.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r>t&&(e=r,r=t,t=e),s>a&&(e=s,s=a,a=e),b.precision(_)):[[r,s],[t,a]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(y=+t[0],x=+t[1],b):[y,x]},b.stepMinor=function(t){return arguments.length?(m=+t[0],g=+t[1],b):[m,g]},b.precision=function(e){return arguments.length?(_=+e,c=Ve(s,a,90),h=qe(r,t,_),f=Ve(u,l,90),p=qe(i,n,_),b):_},b.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ge(t){return t}var Ze,We,Ye,Xe,$e=r(),Je=r(),Ke={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Ke.lineStart=Qe,Ke.lineEnd=rr},polygonEnd:function(){Ke.lineStart=Ke.lineEnd=Ke.point=C,$e.add(d(Je)),Je.reset()},result:function(){var t=$e/2;return $e.reset(),t}};function Qe(){Ke.point=tr}function tr(t,e){Ke.point=er,Ze=Ye=t,We=Xe=e}function er(t,e){Je.add(Xe*t-Ye*e),Ye=t,Xe=e}function rr(){er(Ze,We)}var nr,ir,ar,or,sr=1/0,lr=sr,ur=-sr,cr=ur,hr={point:function(t,e){tur&&(ur=t),ecr&&(cr=e)},lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var t=[[sr,lr],[ur,cr]];return ur=cr=-(lr=sr=1/0),t}},fr=0,pr=0,dr=0,mr=0,gr=0,yr=0,vr=0,xr=0,_r=0,br={point:wr,lineStart:Tr,lineEnd:Mr,polygonStart:function(){br.lineStart=Sr,br.lineEnd=Er},polygonEnd:function(){br.point=wr,br.lineStart=Tr,br.lineEnd=Mr},result:function(){var t=_r?[vr/_r,xr/_r]:yr?[mr/yr,gr/yr]:dr?[fr/dr,pr/dr]:[NaN,NaN];return fr=pr=dr=mr=gr=yr=vr=xr=_r=0,t}};function wr(t,e){fr+=t,pr+=e,++dr}function Tr(){br.point=kr}function kr(t,e){br.point=Ar,wr(ar=t,or=e)}function Ar(t,e){var r=t-ar,n=e-or,i=k(r*r+n*n);mr+=i*(ar+t)/2,gr+=i*(or+e)/2,yr+=i,wr(ar=t,or=e)}function Mr(){br.point=wr}function Sr(){br.point=Cr}function Er(){Ir(nr,ir)}function Cr(t,e){br.point=Ir,wr(nr=ar=t,ir=or=e)}function Ir(t,e){var r=t-ar,n=e-or,i=k(r*r+n*n);mr+=i*(ar+t)/2,gr+=i*(or+e)/2,yr+=i,vr+=(i=or*t-ar*e)*(ar+t),xr+=i*(or+e),_r+=3*i,wr(ar=t,or=e)}function Lr(t){this._context=t}Lr.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h)}},result:C};var Pr,zr,Or,Dr,Rr,Fr=r(),Br={point:C,lineStart:function(){Br.point=Nr},lineEnd:function(){Pr&&jr(zr,Or),Br.point=C},polygonStart:function(){Pr=!0},polygonEnd:function(){Pr=null},result:function(){var t=+Fr;return Fr.reset(),t}};function Nr(t,e){Br.point=jr,zr=Dr=t,Or=Rr=e}function jr(t,e){Dr-=t,Rr-=e,Fr.add(k(Dr*Dr+Rr*Rr)),Dr=t,Rr=e}function Ur(){this._string=[]}function Vr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function qr(t){return function(e){var r=new Hr;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Hr(){}function Gr(t,e,r){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),D(r,t.stream(hr)),e(hr.result()),null!=n&&t.clipExtent(n),t}function Zr(t,e,r){return Gr(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function Wr(t,e,r){return Zr(t,[[0,0],e],r)}function Yr(t,e,r){return Gr(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function Xr(t,e,r){return Gr(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}Ur.prototype={_radius:4.5,_circle:Vr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Vr(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Hr.prototype={constructor:Hr,point:function(t,e){this.stream.point(t,e)},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()}};var $r=y(30*p);function Jr(t,e){return+e?function(t,e){function r(n,i,a,s,l,u,c,h,f,p,m,y,v,x){var _=c-n,b=h-i,w=_*_+b*b;if(w>4*e&&v--){var T=s+p,A=l+m,M=u+y,E=k(T*T+A*A+M*M),C=S(M/=E),I=d(d(M)-1)e||d((_*O+b*D)/w-.5)>.3||s*p+l*m+u*y<$r)&&(r(n,i,a,s,l,u,P,z,I,T/=E,A/=E,M,v,x),x.point(P,z),r(P,z,I,T,A,M,c,h,f,p,m,y,v,x))}}return function(e){var n,i,a,o,s,l,u,c,h,f,p,d,m={point:g,lineStart:y,lineEnd:x,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function g(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){c=NaN,m.point=v,e.lineStart()}function v(n,i){var a=X([n,i]),o=t(n,i);r(c,h,u,f,p,d,c=o[0],h=o[1],u=n,f=a[0],p=a[1],d=a[2],16,e),e.point(c,h)}function x(){m.point=g,e.lineEnd()}function _(){y(),m.point=b,m.lineEnd=w}function b(t,e){v(n=t,e),i=c,a=h,o=f,s=p,l=d,m.point=v}function w(){r(c,h,u,f,p,d,i,a,n,o,s,l,16,e),m.lineEnd=x,x()}return m}}(t,e):function(t){return qr({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}(t)}var Kr=qr({point:function(t,e){this.stream.point(t*p,e*p)}});function Qr(t,e,r,n,i){function a(a,o){return[e+t*(a*=n),r-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*n,(r-o)/t*i]},a}function tn(t,e,r,n,i,a){var o=y(a),s=w(a),l=o*t,u=s*t,c=o/t,h=s/t,f=(s*r-o*e)/t,p=(s*e+o*r)/t;function d(t,a){return[l*(t*=n)-u*(a*=i)+e,r-u*t-l*a]}return d.invert=function(t,e){return[n*(c*t-h*e+f),i*(p-h*t-c*e)]},d}function en(t){return rn((function(){return t}))()}function rn(t){var e,r,n,i,a,o,s,l,u,c,h=150,d=480,m=250,g=0,y=0,v=0,x=0,_=0,b=0,w=1,T=1,A=null,M=ye,S=null,E=Ge,C=.5;function I(t){return l(t[0]*p,t[1]*p)}function L(t){return(t=l.invert(t[0],t[1]))&&[t[0]*f,t[1]*f]}function P(){var t=tn(h,0,0,w,T,b).apply(null,e(g,y)),n=(b?tn:Qr)(h,d-t[0],m-t[1],w,T,b);return r=Qt(v,x,_),s=Jt(e,n),l=Jt(r,s),o=Jr(s,C),z()}function z(){return u=c=null,I}return I.stream=function(t){return u&&c===t?u:u=Kr(function(t){return qr({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}})}(r)(M(o(E(c=t)))))},I.preclip=function(t){return arguments.length?(M=t,A=void 0,z()):M},I.postclip=function(t){return arguments.length?(E=t,S=n=i=a=null,z()):E},I.clipAngle=function(t){return arguments.length?(M=+t?ve(A=t*p):(A=null,ye),z()):A*f},I.clipExtent=function(t){return arguments.length?(E=null==t?(S=n=i=a=null,Ge):be(S=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),z()):null==S?null:[[S,n],[i,a]]},I.scale=function(t){return arguments.length?(h=+t,P()):h},I.translate=function(t){return arguments.length?(d=+t[0],m=+t[1],P()):[d,m]},I.center=function(t){return arguments.length?(g=t[0]%360*p,y=t[1]%360*p,P()):[g*f,y*f]},I.rotate=function(t){return arguments.length?(v=t[0]%360*p,x=t[1]%360*p,_=t.length>2?t[2]%360*p:0,P()):[v*f,x*f,_*f]},I.angle=function(t){return arguments.length?(b=t%360*p,P()):b*f},I.reflectX=function(t){return arguments.length?(w=t?-1:1,P()):w<0},I.reflectY=function(t){return arguments.length?(T=t?-1:1,P()):T<0},I.precision=function(t){return arguments.length?(o=Jr(s,C=t*t),z()):k(C)},I.fitExtent=function(t,e){return Zr(I,t,e)},I.fitSize=function(t,e){return Wr(I,t,e)},I.fitWidth=function(t,e){return Yr(I,t,e)},I.fitHeight=function(t,e){return Xr(I,t,e)},function(){return e=t.apply(this,arguments),I.invert=e.invert&&L,P()}}function nn(t){var e=0,r=l/3,n=rn(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*p,r=t[1]*p):[e*f,r*f]},i}function an(t,e){var r=w(t),n=(r+w(e))/2;if(d(n)0?e<-u+o&&(e=-u+o):e>u-o&&(e=u-o);var r=i/b(dn(e),n);return[r*w(n*t),i-r*y(n*t)]}return a.invert=function(t,e){var r=i-e,a=T(n)*k(t*t+r*r),o=g(t,d(r))*T(r);return r*n<0&&(o-=l*T(t)*T(r)),[o/n,2*m(b(i/a,1/n))-u]},a}function gn(t,e){return[t,e]}function yn(t,e){var r=y(t),n=t===e?w(t):(r-y(e))/(e-t),i=r/n+t;if(d(n)o&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},Mn.invert=un(S),Sn.invert=un((function(t){return 2*m(t)})),En.invert=function(t,e){return[-e,2*m(x(t))-u]},t.geoAlbers=sn,t.geoAlbersUsa=function(){var t,e,r,n,i,a,s=sn(),l=on().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=on().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){a=[t,e]}};function h(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function f(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?l:i>=.166&&i<.234&&n>=-.214&&n<-.115?u:s).invert(t)},h.stream=function(r){return t&&e===r?t:t=function(t){var e=t.length;return{point:function(r,n){for(var i=-1;++i_t(n[0],n[1])&&(n[1]=i[1]),_t(i[0],n[1])>_t(n[0],n[1])&&(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e<=r;n=i,++e)i=a[e],(s=_t(n[1],i[0]))>o&&(o=s,et=i[0],nt=n[1])}return ut=ct=null,et===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[et,rt],[nt,it]]},t.geoCentroid=function(t){Tt=kt=At=Mt=St=Et=Ct=It=Lt=Pt=zt=0,D(t,Nt);var e=Lt,r=Pt,n=zt,i=e*e+r*r+n*n;return i2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=En,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof t&&void 0!==e?n(t,lg()):n((r=r||self).d3=r.d3||{},r.d3)})),cg=f(((t,e)=>{var r,n;r=t,n=function(t,e,r){var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,h=Math.min,f=Math.pow,p=Math.round,d=Math.sign||function(t){return t>0?1:t<0?-1:0},m=Math.sin,g=Math.tan,y=1e-6,v=1e-12,x=Math.PI,_=x/2,b=x/4,w=Math.SQRT1_2,T=I(2),k=I(x),A=2*x,M=180/x,S=x/180;function E(t){return t>1?_:t<-1?-_:Math.asin(t)}function C(t){return t>1?0:t<-1?x:Math.acos(t)}function I(t){return t>0?Math.sqrt(t):0}function L(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function z(t){var e=g(t/2),r=2*u(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=m(e),s=i*n,l=-((1-s?u((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*m(t),l*a]}return i.invert=function(e,i){var s,l=I(e*e+i*i),c=-t/2,h=50;if(!l)return[0,0];do{var f=c/2,p=o(f),d=m(f),g=d/p,v=-u(n(p));c-=s=(2/g*v-r*g-l)/(-v/(d*d)+1-r/(2*p*p))*(p<0?.7:1)}while(n(s)>y&&--h>0);var x=m(c);return[a(e*x,l*o(c)),E(i*x/l)]},i}function O(t,e){var r=o(e),n=function(t){return t?t/Math.sin(t):1}(C(r*o(t/=2)));return[2*r*m(t)*n,m(e)*n]}function D(t){var e=m(t),r=o(t),i=t>=0?1:-1,s=g(i*t),l=(1+e-r)/2;function u(t,n){var u=o(n),c=o(t/=2);return[(1+u)*m(t),(i*n>-a(c,s)-.001?0:10*-i)+l+m(n)*r-(1+u)*e*c]}return u.invert=function(t,u){var c=0,h=0,f=50;do{var p=o(c),d=m(c),g=o(h),v=m(h),x=1+g,_=x*d-t,b=l+v*r-x*e*p-u,w=x*p/2,T=-d*v,k=e*x*d/2,A=r*g+e*p*v,M=T*k-A*w,S=(b*T-_*A)/M/2,E=(_*k-b*w)/M;n(E)>2&&(E/=2),c-=S,h-=E}while((n(S)>y||n(E)>y)&&--f>0);return i*h>-a(o(c),s)-.001?[2*c,h]:null},u}function R(t,e){var r=g(e/2),n=I(1-r*r),i=1+n*o(t/=2),a=m(t)*n/i,s=r/i,l=a*a,u=s*s;return[4/3*a*(3+l-3*u),4/3*s*(3+3*l-u)]}O.invert=function(t,e){if(!(t*t+4*e*e>x*x+y)){var r=t,i=e,a=25;do{var s,l=m(r),u=m(r/2),c=o(r/2),h=m(i),f=o(i),p=m(2*i),d=h*h,g=f*f,v=u*u,_=1-g*c*c,b=_?C(f*c)*I(s=1/_):s=0,w=2*b*f*u-t,T=b*h-e,k=s*(g*v+b*f*c*d),A=s*(.5*l*p-2*b*h*u),M=.25*s*(p*u-b*h*g*l),S=s*(d*c+b*v*f),E=A*M-S*k;if(!E)break;var L=(T*A-w*S)/E,P=(w*M-T*k)/E;r-=L,i-=P}while((n(L)>y||n(P)>y)&&--a>0);return[r,i]}},R.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&n(e)>1)return null;var r=1+t*t+e*e,i=I((r-I(r*r-4*e*e))/2),s=E(i)/3,l=i?function(t){return u(t+I(t*t-1))}(n(e/i))/3:function(t){return u(t+I(t*t+1))}(n(t))/3,c=o(s),h=P(l),f=h*h-c*c;return[2*d(t)*a(L(l)*c,.25-f),2*d(e)*a(h*m(s),.25+f)]};var F=I(8),B=u(1+T);function N(t,e){var r=n(e);return r_){var l=a(s[1],s[0]),u=I(s[0]*s[0]+s[1]*s[1]),c=r*p((l-_)/r)+_,h=a(m(l-=c),2-o(l));l=c+E(x/u*m(h))-h,s[0]=u*o(l),s[1]=u*m(l)}return s}return s.invert=function(t,n){var s=I(t*t+n*n);if(s>_){var l=a(n,t),u=r*p((l-_)/r)+_,c=l>u?-1:1,h=s*o(u-l),f=1/g(c*C((h-x)/I(x*(x-2*h)+s*s)));l=u+2*i((f+c*I(f*f-3))/3),t=s*o(l),n=s*m(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function U(t,r){if(arguments.length<2&&(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return V;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function V(t,e){return[t*o(e)/o(e/=2),2*m(e)]}function q(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+y))&&(o=a+y),r-=i=-1*y*(a-e)/(a-o)}while(s-- >0&&n(i)>y);return s<0?NaN:r}function H(t,e,r){return void 0===e&&(e=40),void 0===r&&(r=v),function(i,a,o,s){var l,u,c;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var h=0;hl)o-=u/=2,s-=c/=2;else{l=m;var g=(o>0?-1:1)*r,y=(s>0?-1:1)*r,v=t(o+g,s),x=t(o,s+y),_=(v[0]-f[0])/g,b=(v[1]-f[1])/g,w=(x[0]-f[0])/y,T=(x[1]-f[1])/y,k=T*_-b*w,A=(n(k)<.5?.5:1)/k;if(o+=u=(d*w-p*T)*A,s+=c=(p*b-d*_)*A,n(u)0&&(i[1]*=1+a/1.5*i[0]*i[0]),i}return e.invert=H(e),e}function Z(t,e){var r,i=t*m(e),a=30;do{e-=r=(e+m(e)-i)/(1+o(e))}while(n(r)>y&&--a>0);return e/2}function W(t,e,r){function n(n,i){return[t*n*o(i=Z(r,i)),e*m(i)]}return n.invert=function(n,i){return i=E(i/e),[n/(t*o(i)),E((2*i+m(2*i))/r)]},n}N.invert=function(t,e){if((a=n(e))v&&--c>0);return[t/(o(l)*(F-1/m(l))),d(e)*l]},V.invert=function(t,e){var r=2*E(e/2);return[t*o(r/2)/o(r),r]};var Y=W(T/_,T,x),X=2.00276,$=1.11072;function J(t,e){var r=Z(x,e);return[X*t/(1/o(e)+$/o(r)),(e+T*m(r))/X]}function K(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*S):r*M},i}function Q(t,e){return[t*o(e),e]}function tt(t){if(!t)return Q;var e=1/g(t);function r(r,n){var i=e+t-n,a=i&&r*o(n)/i;return[i*m(a),e-i*o(a)]}return r.invert=function(r,n){var i=I(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function et(t){function e(e,r){var n=_-r,i=n&&e*t*m(n)/n;return[n*m(i)/t,_-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=_-r,o=I(n*n+i*i),s=a(n,i);return[(o?o/m(o):1)*s/t,_-o]},e}J.invert=function(t,e){var r,i,a=X*e,s=e<0?-b:b,l=25;do{i=a-T*m(s),s-=r=(m(2*s)+2*s-x*m(i))/(2*o(2*s)+2+x*o(i)*T*o(s))}while(n(r)>y&&--l>0);return i=a-T*m(s),[t*(1/o(i)+$/o(s))/X,i]},Q.invert=function(t,e){return[t/o(e),e]};var rt=W(1,4/x,x);function nt(t,e,r,i,s,l){var u,c=o(l);if(n(t)>1||n(l)>1)u=C(r*s+e*i*c);else{var h=m(t/2),f=m(l/2);u=2*E(I(h*h+e*i*f*f))}return n(u)>y?[u,a(i*m(l),e*s-r*i*c)]:[0,0]}function it(t,e,r){return C((t*t+e*e-r*r)/(2*t*e))}function at(t){return t-2*x*l((t+x)/(2*x))}function ot(t,e,r){for(var n,i=[[t[0],t[1],m(t[1]),o(t[1])],[e[0],e[1],m(e[1]),o(e[1])],[r[0],r[1],m(r[1]),o(r[1])]],a=i[2],s=0;s<3;++s,a=n)n=i[s],a.v=nt(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=it(i[0].v[0],i[2].v[0],i[1].v[0]),u=it(i[0].v[0],i[1].v[0],i[2].v[0]),c=x-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var h=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*m(l))];return function(t,e){var r,n=m(e),a=o(e),s=new Array(3);for(r=0;r<3;++r){var l=i[r];if(s[r]=nt(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=at(s[r][1]-l.v[1])}var f=h.slice();for(r=0;r<3;++r){var p=2==r?0:r+1,d=it(i[r].v[0],s[r][0],s[p][0]);s[r][1]<0&&(d=-d),r?1==r?(d=u-d,f[0]-=s[r][0]*o(d),f[1]-=s[r][0]*m(d)):(d=c-d,f[0]+=s[r][0]*o(d),f[1]+=s[r][0]*m(d)):(f[0]+=s[r][0]*o(d),f[1]-=s[r][0]*m(d))}return f[0]/=3,f[1]/=3,f}}function st(t){return t[0]*=S,t[1]*=S,t}function lt(t,r,n){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=ot(st(o(t)),st(o(r)),st(o(n)));s.invert=H(s);var l=e.geoProjection(s).rotate(a),u=l.center;return delete l.rotate,l.center=function(t){return arguments.length?u(o(t)):o.invert(u())},l.clipAngle(90)}function ut(t,e){var r=I(1-m(e));return[2/k*t*r,k*(1-r)]}function ct(t){var e=g(t);function r(t,r){return[t,(t?t/m(t):1)*(m(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&&(r*=m(t)/t);var n=o(t);return[t,2*a(I(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,E(t?e*g(t)/t:e)]},r}ut.invert=function(t,e){var r=(r=e/k-1)*r;return[r>0?t*I(x/r)/2:0,E(1-r)]};var ht=I(3);function ft(t,e){return[ht*t*(2*o(2*e/3)-1)/k,ht*k*m(e/3)]}function pt(t){var e=o(t);function r(t,r){return[t*e,m(r)/e]}return r.invert=function(t,r){return[t/e,E(r*e)]},r}function dt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*g(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function mt(t,e){var r=I(8/(3*x));return[r*t*(1-n(e)/x),r*e]}function gt(t,e){var r=I(4-3*m(n(e)));return[2/I(6*x)*t*r,d(e)*I(2*x/3)*(2-r)]}function yt(t,e){var r=I(x*(4+x));return[2/r*t*(1+I(1-4*e*e/(x*x))),4/r*e]}function vt(t,e){var r=(2+_)*m(e);e/=2;for(var i=0,a=1/0;i<10&&n(a)>y;i++){var s=o(e);e-=a=(e+m(e)*(s+2)-r)/(2*s*(1+s))}return[2/I(x*(4+x))*t*(1+o(e)),2*I(x/(4+x))*m(e)]}function xt(t,e){return[t*(1+o(e))/I(2+x),2*e/I(2+x)]}function _t(t,e){for(var r=(1+_)*m(e),i=0,a=1/0;i<10&&n(a)>y;i++)e-=a=(e+m(e)-r)/(1+o(e));return r=I(2+x),[t*(1+o(e))/r,2*e/r]}ft.invert=function(t,e){var r=3*E(e/(ht*k));return[k*t/(ht*(2*o(2*r/3)-1)),r]},mt.invert=function(t,e){var r=I(8/(3*x)),i=e/r;return[t/(r*(1-n(i)/x)),i]},gt.invert=function(t,e){var r=2-n(e)/I(2*x/3);return[t*I(6*x)/(2*r),d(e)*E((4-r*r)/3)]},yt.invert=function(t,e){var r=I(x*(4+x))/2;return[t*r/(1+I(1-e*e*(4+x)/(4*x))),e*r/2]},vt.invert=function(t,e){var r=e*I((4+x)/x)/2,n=E(r),i=o(n);return[t/(2/I(x*(4+x))*(1+i)),E((n+r*(i+2))/(2+_))]},xt.invert=function(t,e){var r=I(2+x),n=e*r/2;return[r*t/(1+o(n)),n]},_t.invert=function(t,e){var r=1+_,n=I(r/2);return[2*t*n/(1+o(e*=n)),E((e+m(e))/r)]};var bt=3+2*T;function wt(t,e){var r=m(t/=2),n=o(t),a=I(o(e)),s=o(e/=2),l=m(e)/(s+T*n*a),c=I(2/(1+l*l)),h=I((T*s+(n+r)*a)/(T*s+(n-r)*a));return[bt*(c*(h-1/h)-2*u(h)),bt*(c*l*(h+1/h)-2*i(l))]}wt.invert=function(t,e){if(!(r=R.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=bt,e/=bt;do{var f=a/2,p=s/2,d=m(f),g=o(f),v=m(p),x=o(p),b=o(s),k=I(b),A=v/(x+T*g*k),M=A*A,S=I(2/(1+M)),E=(T*x+(g+d)*k)/(T*x+(g-d)*k),C=I(E),L=C-1/C,P=C+1/C,z=S*L-2*u(C)-t,O=S*A*P-2*i(A)-e,D=v&&w*k*d*M/v,F=(T*g*x+k)/(2*(x+T*g*k)*(x+T*g*k)*k),B=-.5*A*S*S*S,N=B*D,j=B*F,U=(U=2*x+T*k*(g-d))*U*C,V=(T*g*x*k+b)/U,q=-T*d*v/(k*U),H=L*N-2*V/C+S*(V+V/E),G=L*j-2*q/C+S*(q+q/E),Z=A*P*N-2*D/(1+M)+S*P*D+S*A*(V-V/E),W=A*P*j-2*F/(1+M)+S*P*F+S*A*(q-q/E),Y=G*Z-W*H;if(!Y)break;var X=(O*G-z*W)/Y,$=(z*Z-O*H)/Y;a-=X,s=c(-_,h(_,s-$))}while((n(X)>y||n($)>y)&&--l>0);return n(n(s)-_)s){var d=I(f),g=a(h,c),v=i*p(g/i),b=g-v,w=t*o(b),T=(t*m(b)-b*m(w))/(_-w),k=It(b,T),A=(x-t)/Lt(k,w,x);c=d;var M,S=50;do{c-=M=(t+Lt(k,w,c)*A-d)/(k(c)*A)}while(n(M)>y&&--S>0);h=b*m(c),c<_&&(h-=T*(c-_));var E=m(v),C=o(v);u[0]=c*C-h*E,u[1]=c*E+h*C}return u}return l.invert=function(r,l){var u=r*r+l*l;if(u>s){var c=I(u),h=a(l,r),f=i*p(h/i),d=h-f;r=c*o(d),l=c*m(d);for(var g=r-_,y=m(r),b=l/y,w=r<_?1/0:0,T=10;;){var k=t*m(b),A=t*o(b),M=m(A),S=_-A,E=(k-b*M)/S,C=It(b,E);if(n(w)y||n(p)>y)&&--v>0);return[d,g]},c}kt.invert=function(t,e){var r=e/(1+Tt);return[t&&t/(Tt*I(1-r*r)),2*i(r)]},At.invert=function(t,e){var r=i(e/k),n=o(r),a=2*r;return[t*k/2/(o(a)*n*n),a]};var zt=Pt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),Ot=Pt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),Dt=Pt(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Rt(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}Rt.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)>y&&--o>0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)>y&&--o>0);return[i,a]};var Ft=Pt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Bt(t){var e=t(_,0)[0]-t(-_,0)[0];function r(r,n){var i=r>0?-.5:.5,a=t(r+i*x,n);return a[0]-=i*e,a}return t.invert&&(r.invert=function(r,n){var i=r>0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*x;return o<-x?o+=2*x:o>x&&(o-=2*x),a[0]=o,a}),r}function Nt(t,e){var r=d(t),i=d(e),s=o(e),l=o(t)*s,u=m(t)*s,c=m(i*e);t=n(a(u,c)),e=E(l),n(t-_)>y&&(t%=_);var h=function(t,e){if(e===_)return[0,0];var r,i,a=m(e),s=a*a,l=s*s,u=1+l,c=1+3*l,h=1-l,f=E(1/I(u)),p=h+s*u*f,d=(1-a)/p,g=I(d),v=d*u,b=I(v),w=g*h;if(0===t)return[0,-(w+s*b)];var T,k=o(e),A=1/k,M=2*a*k,S=(-p*k-(1-a)*((-3*s+f*c)*M))/(p*p),C=-A*M,L=-A*(s*u*S+d*c*M),P=-2*A*(h*(.5*S/g)-2*s*g*M),z=4*t/x;if(t>.222*x||e.175*x){if(r=(w+s*I(v*(1+l)-w*w))/(1+l),t>x/4)return[r,r];var O=r,D=.5*r;r=.5*(D+O),i=50;do{var R=r*(P+C*I(v-r*r))+L*E(r/b)-z;if(!R)break;R<0?D=r:O=r,r=.5*(D+O)}while(n(O-D)>y&&--i>0)}else{r=y,i=25;do{var F=r*r,B=I(v-F),N=P+C*B,j=r*N+L*E(r/b)-z;r-=T=B?j/(N+(L-C*F)/B):0}while(n(T)>y&&--i>0)}return[r,-w-s*I(v-r*r)]}(t>x/4?_-t:t,e);return t>x/4&&(c=h[0],h[0]=-h[1],h[1]=-c),h[0]*=r,h[1]*=-i,h}function jt(t,e){var r,a,l,u,c;if(e=1-y)return r=(1-e)/4,a=P(t),u=function(t){return((t=s(2*t))-1)/(t+1)}(t),l=1/a,[u+r*((c=a*L(t))-t)/(a*a),l-r*u*l*(c-t),l+r*u*l*(c+t),2*i(s(t))-_+r*(c-t)/a];var h=[1,0,0,0,0,0,0,0,0],f=[I(e),0,0,0,0,0,0,0,0],p=0;for(a=I(1-e),c=1;n(f[p]/h[p])>y&&p<8;)r=h[p++],f[p]=(r-a)/2,h[p]=(r+a)/2,a=I(r*a),c*=2;l=c*h[p]*t;do{l=(E(u=f[p]*m(a=l)/h[p])+l)/2}while(--p);return[m(l),u=o(l),u/o(l-a),l]}function Ut(t,e){if(!e)return t;if(1===e)return u(g(t/2+b));for(var r=1,a=I(1-e),o=I(e),s=0;n(o)>y;s++){if(t%x){var l=i(a*g(t)/r);l<0&&(l+=x),t+=l+~~(t/x)*x}else t+=t;o=(r+a)/2,a=I(r*a),o=((r=o)-a)/2}return t/(f(2,s)*r)}function Vt(t,e){var r=(T-1)/(T+1),l=I(1-r*r),c=Ut(_,l*l),h=u(g(x/4+n(e)/2)),f=s(-1*h)/I(r),p=function(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t>=0?_:-_)-a(i,2*t)),-.25*u(i*i+4*r)+.5*u(n*n+r)]}(f*o(-1*t),f*m(-1*t)),y=function(t,e,r){var a=n(t),o=L(n(e));if(a){var s=1/m(a),l=1/(g(a)*g(a)),u=-(l+r*(o*o*s*s)-1+r),c=(-u+I(u*u-(r-1)*l*4))/2;return[Ut(i(1/I(c)),r)*d(t),Ut(i(I((c/l-1)/r)),1-r)*d(e)]}return[0,Ut(i(o),1-r)*d(e)]}(p[0],p[1],l*l);return[-y[1],(e>=0?1:-1)*(.5*c-y[0])]}function qt(t){var e=m(t),r=o(t),i=Ht(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=m(a),u=o(a),c=o(t),h=C(e*l+r*u*c),f=m(h),p=n(f)>y?h/f:1;return[p*r*m(t),(n(t)>_?p:-p)*(e*u-r*l*c)]}return i.invert=Ht(-t),s.invert=function(t,r){var n=I(t*t+r*r),s=-m(n),l=o(n),u=n*l,c=-r*s,h=n*e,f=I(u*u+c*c-h*h),p=a(u*h+c*f,c*h-u*f),d=(n>_?-1:1)*a(t*s,n*o(p)*l+r*m(p)*s);return i.invert(d,p)},s}function Ht(t){var e=m(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=m(t)*i,u=m(n);return[a(l,s*r-u*e),E(u*r+s*e)]}}Nt.invert=function(t,e){n(t)>1&&(t=2*d(t)-t),n(e)>1&&(e=2*d(e)-e);var r=d(t),i=d(e),s=-r*t,l=-i*e,u=l/s<1,c=function(t,e){for(var r=0,i=1,a=.5,s=50;;){var l=a*a,u=I(a),c=E(1/I(1+l)),h=1-l+a*(1+l)*c,f=(1-u)/h,p=I(f),d=f*(1+l),m=p*(1-l),g=I(d-t*t),y=e+m+a*g;if(n(i-r)0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var _=E(u),b=o(_),w=1/b,T=2*u*b,k=(-h*b-(1-u)*((-3*a+c*(1+3*l))*T))/(h*h);return[x/4*(t*(-2*w*(.5*k/p*(1-l)-2*a*p*T)+-w*T*g)+-w*(a*(1+l)*k+f*(1+3*l)*T)*E(t/I(d))),_]}(u?l:s,u?s:l),h=c[0],f=c[1],p=o(f);return u&&(h=-_-h),[r*(a(m(h)*p,-m(f))+x),i*E(o(h)*p)]},Vt.invert=function(t,e){var r=(T-1)/(T+1),n=I(1-r*r),o=function(t,e,r){var n,i,a;return t?(n=jt(t,r),e?(a=(i=jt(e,1-r))[1]*i[1]+r*n[0]*n[0]*i[0]*i[0],[[n[0]*i[2]/a,n[1]*n[2]*i[0]*i[1]/a],[n[1]*i[1]/a,-n[0]*n[2]*i[0]*i[2]/a],[n[2]*i[1]*i[2]/a,-r*n[0]*n[1]*i[0]/a]]):[[n[0],0],[n[1],0],[n[2],0]]):[[0,(i=jt(e,1-r))[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}(.5*Ut(_,n*n)-e,-t,n*n),l=function(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}(o[0],o[1]);return[a(l[1],l[0])/-1,2*i(s(-.5*u(r*l[0]*l[0]+r*l[1]*l[1])))-_]};var Gt=E(1-1/3)*M,Zt=pt(0);function Wt(t){var e=Gt*S,r=ut(x,e)[0]-ut(-x,e)[0],i=Zt(0,e)[1],a=ut(0,e)[1],o=k-a,s=A/t,u=4/A,f=i+o*o*4/A;function p(p,d){var m,g=n(d);if(g>e){var y=h(t-1,c(0,l((p+x)/s)));(m=ut(p+=x*(t-1)/t-y*s,g))[0]=m[0]*A/r-A*(t-1)/(2*t)+y*A/t,m[1]=i+4*(m[1]-a)*o/A,d<0&&(m[1]=-m[1])}else m=Zt(p,d);return m[0]*=u,m[1]/=f,m}return p.invert=function(e,p){e/=u;var d=n(p*=f);if(d>i){var m=h(t-1,c(0,l((e+x)/s)));e=(e+x*(t-1)/t-m*s)*r/A;var g=ut.invert(e,.25*(d-i)*A/o+a);return g[0]-=x*(t-1)/t-m*s,p<0&&(g[1]=-g[1]),g}return Zt.invert(e,p)},p}function Yt(t,e){return[t,1&e?90-y:Gt]}function Xt(t,e){return[t,1&e?-90+y:-Gt]}function $t(t){return[t[0]*(1-y),t[1]]}function Jt(t){var e,r=1+t,i=E(m(1/r)),s=2*I(x/(e=x+4*i*r)),l=.5*s*(r+I(t*(2+t))),u=t*t,c=r*r;function h(h,f){var p,d,g=1-m(f);if(g&&g<2){var y,b=_-f,w=25;do{var T=m(b),k=o(b),A=i+a(T,r-k),M=1+c-2*r*k;b-=y=(b-u*i-r*T+M*A-.5*g*e)/(2*r*T*A)}while(n(y)>v&&--w>0);p=s*I(M),d=h*A/x}else p=s*(t+g),d=h*i/x;return[p*m(d),l-p*o(d)]}return h.invert=function(t,n){var o=t*t+(n-=l)*n,h=(1+c-o/(s*s))/(2*r),f=C(h),p=m(f),d=i+a(p,r-h);return[E(t/I(o))*x/d,E(1-2*(f-u*i-r*p+(1+c-2*r*h)*d)/e)]},h}var Kt=.7109889596207567,Qt=.0528035274542;function te(t,e){return e>-Kt?((t=Y(t,e))[1]+=Qt,t):Q(t,e)}function ee(t,e){return n(e)>Kt?((t=Y(t,e))[1]-=e>0?Qt:-Qt,t):Q(t,e)}function re(t,e,r,n){var i=I(4*x/(2*r+(1+t-e/2)*m(2*r)+(t+e)/2*m(4*r)+e/2*m(6*r))),a=I(n*m(r)*I((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*u(1);function l(r){return I(1+t*o(2*r)+e*o(4*r))}function u(n){var i=n*r;return(2*i+(1+t-e/2)*m(2*i)+(t+e)/2*m(4*i)+e/2*m(6*i))/r}function c(t){return l(t)*m(t)}var h=function(t,e){var n=r*q(u,s*m(e)/r,e/x);isNaN(n)&&(n=r*d(e));var c=i*l(n);return[c*a*t/x*o(n),c/a*m(n)]};return h.invert=function(t,e){var n=q(c,e*a/i);return[t*x/(o(n)*i*a*l(n)),E(r*u(n/r)/s)]},0===r&&(i=I(n/x),(h=function(t,e){return[t*i,m(e)/i]}).invert=function(t,e){return[t/i,E(e*i)]}),h}function ne(t,e,r,n,i,a,o,s,l,u,c){if(c.nanEncountered)return NaN;var h,f,p,d,m,g,y,v,x,_;if(f=t(e+.25*(h=r-e)),p=t(r-.25*h),isNaN(f))c.nanEncountered=!0;else{if(!isNaN(p))return _=((g=(d=h*(n+4*f+i)/12)+(m=h*(i+4*p+a)/12))-o)/15,u>l?(c.maxDepthCount++,g+_):Math.abs(_)t?r=n:e=n,n=e+r>>1}while(n>e);var i=u[n+1]-u[n];return i&&(i=(t-u[n+1])/i),(n+1+i)/s}var p=2*h(1)/x*o/r,g=function(t,e){var r=h(n(m(e))),a=i(r)*t;return r/=p,[a,e>=0?r:-r]};return g.invert=function(t,e){var r;return n(e*=p)<1&&(r=d(e)*E(a(n(e))*o)),[t/i(n(e)),r]},g}function oe(t,e){return n(t[0]-e[0])a[o][2][0];++o);var l=t(e-a[o][1][0],r);return l[0]+=t(a[o][1][0],i*r>i*a[o][0][1]?a[o][0][1]:r)[0],l}i?s.invert=i(s):t.invert&&(s.invert=function(e,r){for(var i=o[+(r<0)],a=n[+(r<0)],l=0,u=i.length;l=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],u.push(se([[o-y,s-y],[o-y,a+y],[n+y,a+y],[n+y,i-y]],30));return{type:"Polygon",coordinates:[r.merge(u)]}}(e),n=e.map((function(t){return t.map((function(t){return[[t[0][0]*S,t[0][1]*S],[t[1][0]*S,t[1][1]*S],[t[2][0]*S,t[2][1]*S]]}))})),o=n.map((function(e){return e.map((function(e){var r,n=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]}))})),l):n.map((function(t){return t.map((function(t){return[[t[0][0]*M,t[0][1]*M],[t[1][0]*M,t[1][1]*M],[t[2][0]*M,t[2][1]*M]]}))}))},null!=n&&l.lobes(n),l}te.invert=function(t,e){return e>-Kt?Y.invert(t,e-Qt):Q.invert(t,e)},ee.invert=function(t,e){return n(e)>Kt?Y.invert(t,e+(e>0?Qt:-Qt)):Q.invert(t,e)};var ue=[[[[-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]]]],ce=[[[[-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]]]],he=[[[[-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]]]],fe=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]],pe=[[[[-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]]]],de=[[[[-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 me(t,e){return[3/A*t*I(x*x/3-e*e),e]}function ge(t){function e(e,r){if(n(n(r)-_)2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=f((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,E((l-1)/(l+1))]},e}me.invert=function(t,e){return[A/3*t/I(x*x/3-e*e),e]};var ye=x/T;function ve(t,e){return[t*(1+I(o(e)))/2,e/(o(e/2)*o(t/6))]}function xe(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function _e(t,e){return[m(t)/o(e),g(e)*o(t)]}function be(t){var e=o(t),r=g(b+t/2);function i(i,a){var o=a-t,s=n(o)=0;)f=(h=t[c])[0]+l*(i=f)-u*p,p=h[1]+l*p+u*i;return[f=l*(i=f)-u*p,p=l*p+u*i]}return r.invert=function(r,s){var l=20,u=r,c=s;do{for(var h,f=e,p=t[f],d=p[0],g=p[1],v=0,x=0;--f>=0;)v=d+u*(h=v)-c*x,x=g+u*x+c*h,d=(p=t[f])[0]+u*(h=d)-c*g,g=p[1]+u*g+c*h;var _,b,w=(v=d+u*(h=v)-c*x)*v+(x=g+u*x+c*h)*x;u-=_=((d=u*(h=d)-c*g-r)*v+(g=u*g+c*h-s)*x)/w,c-=b=(g*v-d*x)/w}while(n(_)+n(b)>y*y&&--l>0);if(l){var T=I(u*u+c*c),k=2*i(.5*T),A=m(k);return[a(u*A,T*o(k)),T?E(c*A/T):0]}},r}ve.invert=function(t,e){var r=n(t),i=n(e),a=y,s=_;iy||n(_)>y)&&--a>0);return a&&[r,i]},_e.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?w*I((i-I(i*i-4*r))/r):1/I(n);return[E(t*a),d(e)*C(a)]},we.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*x]};var ke=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ae=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Me=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Se=[[.9245,0],[0,0],[.01943,0]],Ee=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ce(t,r){var n=e.geoProjection(Te(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var Ie=I(6),Le=I(7);function Pe(t,e){var r=E(7*m(e)/(3*Ie));return[Ie*t*(2*o(2*r/3)-1)/Le,9*m(r/3)/Le]}function ze(t,e){for(var r,i=(1+w)*m(e),a=e,s=0;s<25&&(a-=r=(m(a/2)+m(a)-i)/(.5*o(a/2)+o(a)),!(n(r)v&&--l>0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},Re.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i<10&&n(a)>y;++i){var s=o(e/2);e-=a=(e-g(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var Fe=[[[[-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 Be(t,e){var r=m(e),i=o(e),a=d(t);if(0===t||n(e)===_)return[0,e];if(0===e)return[t,0];if(n(t)===_)return[t*i,_*r];var s=x/(2*t)-2*t/x,l=2*e/x,u=(1-l*l)/(r-l),c=s*s,h=u*u,f=1+c/h,p=1+h/c,g=(s*r/u-s/2)/f,y=(h*r/c+u/2)/p,v=y*y-(h*r*r/c+u*r-1)/p;return[_*(g+I(g*g+i*i/f)*a),_*(y+I(v<0?0:v)*d(-e*s)*a)]}Be.invert=function(t,e){var r=(t/=_)*t,n=r+(e/=_)*e,i=x*x;return[t?(n-1+I((1-n)*(1-n)+4*r))/(2*t)*_:0,q((function(t){return n*(x*m(t)-2*t)*x+4*t*t*(e-m(t))+2*x*t-i*e}),0)]};var Ne=1.0148,je=.23185,Ue=-.14499,Ve=.02406,qe=Ne,He=5*je,Ge=7*Ue,Ze=1.790857183;function We(t,e){var r=e*e;return[t,e*(Ne+r*r*(je+r*(Ue+Ve*r)))]}function Ye(t,e){if(n(e)=0;)if(n=e[s],r[0]===n[0]&&r[1]===n[1]){if(a)return[a,r];a=r}}}(e.face,r.face),i=function(t,e){var r=$e(t[1],t[0]),n=$e(e[1],e[0]),i=function(t,e){return a(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(r,n),s=Je(r)/Je(n);return Xe([1,0,t[0][0],0,1,t[0][1]],Xe([s,0,0,0,s,0],Xe([o(i),m(i),0,-m(i),o(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}(n.map(r.project),n.map(e.project));e.transform=r.transform?Xe(r.transform,i):i;for(var s=r.edges,l=0,u=s.length;lZe?e=Ze:e<-Ze&&(e=-Ze);var r,i=e;do{var a=i*i;i-=r=(i*(Ne+a*a*(je+a*(Ue+Ve*a)))-e)/(qe+a*a*(He+a*(Ge+.21654*a)))}while(n(r)>y);return[t,i]},Ye.invert=function(t,e){if(n(e)y&&--s>0);return l=g(a),[(n(e)n^p>n&&r<(f-u)*(n-c)/(p-c)+u&&(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),mr=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}};function xr(t){var r=t(_,0)[0]-t(-_,0)[0];function i(e,i){var a=n(e)<_,o=t(a?e:e>0?e-x:e+x,i),s=(o[0]-o[1])*w,l=(o[0]+o[1])*w;if(a)return[s,l];var u=r*w,c=s>0^l>0?-1:1;return[c*s-d(l)*u,c*l-d(s)*u]}return t.invert&&(i.invert=function(e,i){var a=(e+i)*w,o=(i-e)*w,s=n(a)<.5*r&&n(o)<.5*r;if(!s){var l=r*w,u=a>0^o>0?-1:1,c=-u*e+(o>0?1:-1)*l,h=-u*i+(a>0?1:-1)*l;a=(-c-h)*w,o=(c-h)*w}var f=t.invert(a,o);return s||(f[0]+=a>0?x:-x),f}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function _r(){return xr(Vt).scale(111.48)}function br(t){var e=m(t);function r(r,n){var a=e?g(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*m(n)),l=1/g(n);return[m(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)y&&--c>0);var d=r*(h=g(u)),v=g(n(a)0?_:-_)*(f+o*(d-u)/2+o*o*(d-2*f+u)/2)]}function kr(t,e){var r=function(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*m(e),i*m(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=I(n),o=(t-I(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*I(1-o*o)),i?E(r*o/i):0]},e}(t);if(!e)return r;var n=o(e),i=m(e);function s(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return s.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},s}wr.forEach((function(t){t[1]*=1.0144})),Tr.invert=function(t,e){var r=e/_,i=90*r,a=h(18,n(i/5)),o=c(0,l(a));do{var s=wr[o][1],u=wr[o+1][1],f=wr[h(19,o+2)][1],p=f-s,d=f-2*u+s,m=2*(n(r)-u)/p,g=d/p,y=m*(1-g*m*(1-2*g*m));if(y>=0||1===o){i=(e>=0?5:-5)*(y+a);var x,b=50;do{y=(a=h(18,n(i)/5))-(o=l(a)),s=wr[o][1],u=wr[o+1][1],f=wr[h(19,o+2)][1],i-=(x=(e>=0?_:-_)*(u+y*(f-s)/2+y*y*(f-2*u+s)/2)-e)*M}while(n(x)>v&&--b>0);break}}while(--o>=0);var w=wr[o][0],T=wr[o+1][0],k=wr[h(19,o+2)][0];return[t/(T+y*(k-w)/2+y*y*(k-2*T+w)/2),i*S]};var Ar=1e-4,Mr=-180,Sr=Mr+Ar,Er=180-Ar,Cr=-90+Ar,Ir=90-Ar;function Lr(t){return t.length>0}function Pr(t){return Math.floor(1e4*t)/1e4}function zr(t){return-90===t||90===t?[0,t]:[Mr,Pr(t)]}function Or(t){var e=t[0],r=t[1],n=!1;return e<=Sr?(e=Mr,n=!0):e>=Er&&(e=180,n=!0),r<=Cr?(r=-90,n=!0):r>=Ir&&(r=90,n=!0),n?[e,r]:t}function Dr(t){return t.map(Or)}function Rr(t,e,r){for(var n=0,i=t.length;n=Er||c<=Cr||c>=Ir){a[o]=Or(l);for(var h=o+1;hSr&&pCr&&d=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(h-1)}),a[0]=zr(a[0][1]),o=-1,s=a.length}}}}function Fr(t){var e,r,n,i,a,o,s=t.length,l={},u={};for(e=0;e0?x-l:l)*M],c=e.geoProjection(t(s)).rotate(u),h=e.geoRotation(u),f=c.center;return delete c.rotate,c.center=function(t){return arguments.length?f(h(t)):h.invert(f())},c.clipAngle(90)}function Vr(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function qr(t,e){return Ur(Vr,t,e)}function Hr(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=g(n),l=.5/m(n);function u(e,a){var s=C(o(a)*o(e-r)),l=C(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a<0?-1:1)*I(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return u.invert=function(t,e){var i,u,c=e*e,h=o(I(c+(i=t+r)*i)),f=o(I(c+(i=t+n)*i));return[a(u=h-f,i=(h+f)*s),(e<0?-1:1)*C(I(i*i+u*u)*l)]},u}function Gr(t,e){return Ur(Hr,t,e)}function Zr(t,e){if(n(e)y&&--l>0);return[d(t)*(I(a*a+4)+a)*x/4,_*s]};var Kr=4*x+3*I(3),Qr=2*I(2*x*I(3)/Kr),tn=W(Qr*I(3)/x,Qr,Kr/6);function en(t,e){return[t*I(1-3*e*e/(x*x)),e]}function rn(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(m(t)*r,-m(e))),l=m(t);return[l*(r=I(1-n*n))-s*i,-s*r-l*i]}function nn(t,e){var r=O(t,e);return[(r[0]+t/_)/2,(r[1]+e)/2]}en.invert=function(t,e){return[t/I(1-3*e*e/(x*x)),e]},rn.invert=function(t,e){var r=(t*t+e*e)/-2,n=I(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=I(o*o+i*i);return[a(n*i,s*(1+r)),s?-E(n*o/s):0]},nn.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),u=m(i),c=m(2*i),h=u*u,f=l*l,p=m(r),d=o(r/2),g=m(r/2),v=g*g,x=1-f*d*d,b=x?C(l*d)*I(s=1/x):s=0,w=.5*(2*b*l*g+r/_)-t,T=.5*(b*u+i)-e,k=.5*s*(f*v+b*l*d*h)+.5/_,A=s*(p*c/4-b*u*g),M=.125*s*(c*g-b*u*f*p),S=.5*s*(h*d+b*v*l)+.5,E=A*M-S*k,L=(T*A-w*S)/E,P=(w*M-T*k)/E;r-=L,i-=P}while((n(L)>y||n(P)>y)&&--a>0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=function(){var t=_,r=e.geoProjectionMutator(z),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*S):t*M},n.scale(179.976).clipAngle(147)},t.geoAiryRaw=z,t.geoAitoff=function(){return e.geoProjection(O).scale(152.63)},t.geoAitoffRaw=O,t.geoArmadillo=function(){var t=20*S,r=t>=0?1:-1,n=g(r*t),i=e.geoProjectionMutator(D),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=g((r=(t=e*S)>=0?1:-1)*t),i(t)):t*M},s.stream=function(e){var i=s.rotate(),u=l(e),c=(s.rotate([0,0]),l(e)),h=s.precision();return s.rotate(i),u.sphere=function(){c.polygonStart(),c.lineStart();for(var e=-180*r;r*e<180;e+=90*r)c.point(e,90*r);if(t)for(;r*(e-=3*r*h)>=-180;)c.point(e,r*-a(o(e*S/2),n)*M);c.lineEnd(),c.polygonEnd()},u},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=D,t.geoAugust=function(){return e.geoProjection(R).scale(66.1603)},t.geoAugustRaw=R,t.geoBaker=function(){return e.geoProjection(N).scale(112.314)},t.geoBakerRaw=N,t.geoBerghaus=function(){var t=5,r=e.geoProjectionMutator(j),n=r(t),i=n.stream,s=.01,l=-o(s*S),u=m(s*S);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),c=i(e),h=(n.rotate([0,0]),i(e));return n.rotate(r),c.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,r=360/t,n=2*x/t,i=90-180/t,c=_;e=0;)t.point((e=r[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=qt,t.geoHealpix=function(){var t=4,n=e.geoProjectionMutator(Wt),i=n(t),a=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),s=a(n),l=(i.rotate([0,0]),a(n));return i.rotate(o),s.sphere=function(){e.geoStream(function(t){var e=[].concat(r.range(-180,180+t/2,t).map(Yt),r.range(180,-180-t/2,-t).map(Xt));return{type:"Polygon",coordinates:[180===t?e.map($t):e]}}(180/t),l)},s},i.scale(239.75)},t.geoHealpixRaw=Wt,t.geoHill=function(){var t=1,r=e.geoProjectionMutator(Jt),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])},t.geoHillRaw=Jt,t.geoHomolosine=function(){return e.geoProjection(ee).scale(152.63)},t.geoHomolosineRaw=ee,t.geoHufnagel=function(){var t=1,r=0,n=45*S,i=2,a=e.geoProjectionMutator(re),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*S,i):n*M},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)},t.geoHufnagelRaw=re,t.geoHyperelliptical=function(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(ae),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)},t.geoHyperellipticalRaw=ae,t.geoInterrupt=le,t.geoInterruptedBoggs=function(){return le(J,ue).scale(160.857)},t.geoInterruptedHomolosine=function(){return le(ee,ce).scale(152.63)},t.geoInterruptedMollweide=function(){return le(Y,he).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return le(Y,fe).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return le(te,pe,H).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return le(Q,de).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(me).scale(158.837)},t.geoKavrayskiy7Raw=me,t.geoLagrange=function(){var t=.5,r=e.geoProjectionMutator(ge),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)},t.geoLagrangeRaw=ge,t.geoLarrivee=function(){return e.geoProjection(ve).scale(97.2672)},t.geoLarriveeRaw=ve,t.geoLaskowski=function(){return e.geoProjection(xe).scale(139.98)},t.geoLaskowskiRaw=xe,t.geoLittrow=function(){return e.geoProjection(_e).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=_e,t.geoLoximuthal=function(){return K(be).parallel(40).scale(158.837)},t.geoLoximuthalRaw=be,t.geoMiller=function(){return e.geoProjection(we).scale(108.318)},t.geoMillerRaw=we,t.geoModifiedStereographic=Ce,t.geoModifiedStereographicRaw=Te,t.geoModifiedStereographicAlaska=function(){return Ce(ke,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},t.geoModifiedStereographicGs48=function(){return Ce(Ae,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return Ce(Me,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return Ce(Se,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return Ce(Ee,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(Y).scale(169.529)},t.geoMollweideRaw=Y,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(Pe).scale(164.859)},t.geoMtFlatPolarParabolicRaw=Pe,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(ze).scale(188.209)},t.geoMtFlatPolarQuarticRaw=ze,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(Oe).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=Oe,t.geoNaturalEarth2=function(){return e.geoProjection(De).scale(175.295)},t.geoNaturalEarth2Raw=De,t.geoNellHammer=function(){return e.geoProjection(Re).scale(152.63)},t.geoNellHammerRaw=Re,t.geoInterruptedQuarticAuthalic=function(){return le(U(1/0),Fe).rotate([20,0]).scale(152.63)},t.geoNicolosi=function(){return e.geoProjection(Be).scale(127.267)},t.geoNicolosiRaw=Be,t.geoPatterson=function(){return e.geoProjection(We).scale(139.319)},t.geoPattersonRaw=We,t.geoPolyconic=function(){return e.geoProjection(Ye).scale(103.74)},t.geoPolyconicRaw=Ye,t.geoPolyhedral=Ke,t.geoPolyhedralButterfly=function(t){t=t||function(t){var r=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=nr.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Ke(r[0],(function(t,e){return r[t<-x/2?e<0?6:4:t<0?e<0?2:0:t0?[-r[0],0]:[180-r[0],180])};var r=nr.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Ke(r[0],(function(t,e){return r[t<-x/2?e<0?6:4:t<0?e<0?2:0:t2||a[0]!=e[0]||a[1]!=e[1])&&(n.push(a),e=a)}return 1===n.length&&t.length>1&&n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:r(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:a(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function s(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return s(t);case"FeatureCollection":var l={type:"FeatureCollection",features:t.features.map(s)};return null!=t.bbox&&(l.bbox=t.bbox),l;default:return o(t)}return t},t.geoQuincuncial=xr,t.geoRectangularPolyconic=function(){return K(br).scale(131.215)},t.geoRectangularPolyconicRaw=br,t.geoRobinson=function(){return e.geoProjection(Tr).scale(152.63)},t.geoRobinsonRaw=Tr,t.geoSatellite=function(){var t=2,r=0,n=e.geoProjectionMutator(kr),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*S):r*M},i.scale(432.147).clipAngle(C(1/t)*M-1e-6)},t.geoSatelliteRaw=kr,t.geoSinuMollweide=function(){return e.geoProjection(te).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoSinuMollweideRaw=te,t.geoSinusoidal=function(){return e.geoProjection(Q).scale(152.63)},t.geoSinusoidalRaw=Q,t.geoStitch=function(t){if(null==t)return t;switch(t.type){case"Feature":return Br(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(Br)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return Nr(t)}},t.geoTimes=function(){return e.geoProjection(jr).scale(146.153)},t.geoTimesRaw=jr,t.geoTwoPointAzimuthal=qr,t.geoTwoPointAzimuthalRaw=Vr,t.geoTwoPointAzimuthalUsa=function(){return qr([-158,21.5],[-77,39]).clipAngle(60).scale(400)},t.geoTwoPointEquidistant=Gr,t.geoTwoPointEquidistantRaw=Hr,t.geoTwoPointEquidistantUsa=function(){return Gr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},t.geoVanDerGrinten=function(){return e.geoProjection(Zr).scale(79.4183)},t.geoVanDerGrintenRaw=Zr,t.geoVanDerGrinten2=function(){return e.geoProjection(Wr).scale(79.4183)},t.geoVanDerGrinten2Raw=Wr,t.geoVanDerGrinten3=function(){return e.geoProjection(Yr).scale(79.4183)},t.geoVanDerGrinten3Raw=Yr,t.geoVanDerGrinten4=function(){return e.geoProjection(Xr).scale(127.16)},t.geoVanDerGrinten4Raw=Xr,t.geoWagner=Jr,t.geoWagner7=function(){return Jr().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},t.geoWagnerRaw=$r,t.geoWagner4=function(){return e.geoProjection(tn).scale(176.84)},t.geoWagner4Raw=tn,t.geoWagner6=function(){return e.geoProjection(en).scale(152.63)},t.geoWagner6Raw=en,t.geoWiechel=function(){return e.geoProjection(rn).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},t.geoWiechelRaw=rn,t.geoWinkel3=function(){return e.geoProjection(nn).scale(158.837)},t.geoWinkel3Raw=nn,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof t&&void 0!==e?n(t,ug(),lg()):n(r.d3=r.d3||{},r.d3,r.d3)})),hg=f(((t,e)=>{var r=v(),n=le(),i=qt(),a=Math.PI/180,o=180/Math.PI,s={cursor:"pointer"},l={cursor:"auto"};function u(t,e){return r.behavior.zoom().translate(e.translate()).scale(e.scale())}function c(t,e,r){var a=t.id,o=t.graphDiv,s=o.layout,l=s[a],u=o._fullLayout,c=u[a],h={},f={};function p(t,e){h[a+"."+t]=n.nestedProperty(l,t).get(),i.call("_storeDirectGUIEdit",s,u._preGUI,h);var r=n.nestedProperty(c,t);r.get()!==e&&(r.set(e),n.nestedProperty(l,t).set(e),f[a+"."+t]=e)}r(p),p("projection.scale",e.scale()/t.fitScale),p("fitbounds",!1),o.emit("plotly_relayout",f)}function h(t,e){var n=u(0,e);function i(r){var n=e.invert(t.midPt);r("center.lon",n[0]),r("center.lat",n[1])}return n.on("zoomstart",(function(){r.select(this).style(s)})).on("zoom",(function(){e.scale(r.event.scale).translate(r.event.translate),t.render(!0);var n=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":n[0],"geo.center.lat":n[1]})})).on("zoomend",(function(){r.select(this).style(l),c(t,e,i)})),n}function f(t,e){var n,i,a,o,h,f,p,d,m,g=u(0,e);function y(t){return e.invert(t)}function v(r){var n=e.rotate(),i=e.invert(t.midPt);r("projection.rotation.lon",-n[0]),r("center.lon",i[0]),r("center.lat",i[1])}return g.on("zoomstart",(function(){r.select(this).style(s),n=r.mouse(this),i=e.rotate(),a=e.translate(),o=i,h=y(n)})).on("zoom",(function(){if(f=r.mouse(this),function(t){var r=y(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])>2||Math.abs(n[1]-t[1])>2}(n))return g.scale(e.scale()),void g.translate(e.translate());e.scale(r.event.scale),e.translate([a[0],r.event.translate[1]]),h?y(f)&&(d=y(f),p=[o[0]+(d[0]-h[0]),i[1],i[2]],e.rotate(p),o=p):h=y(n=f),m=!0,t.render(!0);var s=e.rotate(),l=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1],"geo.projection.rotation.lon":-s[0]})})).on("zoomend",(function(){r.select(this).style(l),m&&c(t,e,v)})),g}function p(t,e){var n,i={r:e.rotate(),k:e.scale()},h=u(0,e),f=function(t){for(var e=0,n=arguments.length,i=[];++ed?(a=(h>0?90:-90)-p,i=0):(a=Math.asin(h/d)*o-p,i=Math.sqrt(d*d-h*h));var g=180-a-2*p,v=(Math.atan2(f,c)-Math.atan2(u,i))*o,x=(Math.atan2(f,c)-Math.atan2(u,-i))*o;return m(r[0],r[1],a,v)<=m(r[0],r[1],g,x)?[a,v,r[2]]:[g,x,r[2]]}(p,n,u);(!isFinite(g[0])||!isFinite(g[1])||!isFinite(g[2]))&&(g=u),e.rotate(g),u=g}}else n=d(e,t=a);!function(t){t({type:"zoom"})}(f.of(this,arguments))})),function(t){p++||t({type:"zoomstart"})}(f.of(this,arguments))})).on("zoomend",(function(){var n;r.select(this).style(l),g.call(h,"zoom",null),n=f.of(this,arguments),--p||n({type:"zoomend"}),c(t,e,v)})).on("zoom.redraw",(function(){t.render(!0);var r=e.rotate();t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.projection.rotation.lon":-r[0],"geo.projection.rotation.lat":-r[1]})})),r.rebind(h,f,"on")}function d(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&function(t){var e=t[0]*a,r=t[1]*a,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t,e,r,n){var i=g(r-t),a=g(n-e);return Math.sqrt(i*i+a*a)}function g(t){return(t%360+540)%360-180}function y(t,e,r){var n=r*a,i=t.slice(),o=0===e?1:0,s=2===e?1:2,l=Math.cos(n),u=Math.sin(n);return i[o]=t[o]*l-t[s]*u,i[s]=t[s]*l+t[o]*u,i}function x(t,e){for(var r=0,n=0,i=t.length;n{var r=v(),n=ug(),i=n.geoPath,a=n.geoDistance,o=cg(),s=qt(),l=le(),u=l.strTranslate,c=q(),h=Qe(),f=Or(),p=ke(),d=ir(),m=nr().getAutoRange,g=fr(),y=En().prepSelect,x=En().clearOutline,_=En().selectOnClick,b=hg(),w=Zm(),T=rg(),k=Ym(),A=Wm().feature;function M(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var S=M.prototype;function E(t,e){var r=w.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new M(t)},S.plot=function(t,e,r,n){var i=this;if(n)return i.update(t,e,!0);i._geoCalcData=t,i._fullLayout=e;var a=e[this.id],o=[],s=!1;for(var l in w.layerNameToAdjective)if("frame"!==l&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,e)}if(!r){if(this.updateProjection(t,e))return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(e,n),this.updateDims(e,n),this.updateFx(e,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()},S.updateProjection=function(t,e){var r=this.graphDiv,s=e[this.id],u=e._size,c=s.domain,h=s.projection,f=s.lonaxis,p=s.lataxis,d=f._ax,g=p._ax,y=this.projection=function(t){var e=t.projection,r=e.type,s=w.projNames[r];s="geo"+l.titleCase(s);for(var u=(n[s]||o[s])(),c=t._isSatellite?180*Math.acos(1/e.distance)/Math.PI:t._isClipped?w.lonaxisSpan[r]/2:null,h=["center","rotate","parallels","clipExtent"],f=function(t){return t?u:[]},p=0;pc*Math.PI/180}return!1},u.getPath=function(){return i().projection(u)},u.getBounds=function(t){return u.getPath().bounds(t)},u.precision(w.precision),t._isSatellite&&u.tilt(e.tilt).distance(e.distance),c&&u.clipAngle(c-w.clipPad),u}(s),v=[[u.l+u.w*c.x[0],u.t+u.h*(1-c.y[1])],[u.l+u.w*c.x[1],u.t+u.h*(1-c.y[0])]],x=s.center||{},_=h.rotation||{},b=f.range||[],T=p.range||[];if(s.fitbounds){d._length=v[1][0]-v[0][0],g._length=v[1][1]-v[0][1],d.range=m(r,d),g.range=m(r,g);var k=(d.range[0]+d.range[1])/2,A=(g.range[0]+g.range[1])/2;if(s._isScoped)x={lon:k,lat:A};else if(s._isClipped){x={lon:k,lat:A},_={lon:k,lat:A,roll:_.roll};var M=h.type,S=w.lonaxisSpan[M]/2||180,C=w.lataxisSpan[M]/2||90;b=[k-S,k+S],T=[A-C,A+C]}else x={lon:k,lat:A},_={lon:k,lat:_.lat,roll:_.roll}}y.center([x.lon-_.lon,x.lat-_.lat]).rotate([-_.lon,-_.lat,_.roll]).parallels(h.parallels);var I=E(b,T);y.fitExtent(v,I);var L=this.bounds=y.getBounds(I),P=this.fitScale=y.scale(),z=y.translate();if(s.fitbounds){var O=y.getBounds(E(d.range,g.range)),D=Math.min((L[1][0]-L[0][0])/(O[1][0]-O[0][0]),(L[1][1]-L[0][1])/(O[1][1]-O[0][1]));isFinite(D)?y.scale(D*P):l.warn("Something went wrong during"+this.id+"fitbounds computations.")}else y.scale(h.scale*P);var R=this.midPt=[(L[0][0]+L[1][0])/2,(L[0][1]+L[1][1])/2];if(y.translate([z[0]+(R[0]-z[0]),z[1]+(R[1]-z[1])]).clipExtent(L),s._isAlbersUsa){var F=y([x.lon,x.lat]),B=y.translate();y.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},S.updateBaseLayers=function(t,e){var n=this,i=n.topojson,a=n.layers,o=n.basePaths;function s(t){return"lonaxis"===t||"lataxis"===t}function l(t){return!!w.lineLayers[t]}function u(t){return!!w.fillLayers[t]}var f=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||u(t)?e["show"+t]:!s(t)||e[t].showgrid})),p=n.framework.selectAll(".layer").data(f,String);p.exit().each((function(t){delete a[t],delete o[t],r.select(this).remove()})),p.enter().append("g").attr("class",(function(t){return"layer "+t})).each((function(t){var e=a[t]=r.select(this);"bg"===t?n.bgRect=e.append("rect").style("pointer-events","all"):s(t)?o[t]=e.append("path").style("fill","none"):"backplot"===t?e.append("g").classed("choroplethlayer",!0):"frontplot"===t?e.append("g").classed("scatterlayer",!0):l(t)?o[t]=e.append("path").style("fill","none").style("stroke-miterlimit",2):u(t)&&(o[t]=e.append("path").style("stroke","none"))})),p.order(),p.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];"frame"===r?n.datum(w.sphereSVG):l(r)||u(r)?n.datum(A(i,i.objects[r])):s(r)&&n.datum(function(t,e,r){var n,i,a,o=e[t],s=w.scopeDefaults[e.scope];"lonaxis"===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):"lataxis"===t&&(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:"linear",range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};d.setConvert(l,r);var u=d.calcTicks(l);!e.isScoped&&"lonaxis"===t&&u.pop();for(var c=u.length,h=new Array(c),f=0;f-1&&_(r.event,i,[n.xaxis],[n.yaxis],n.id,c),u.indexOf("event")>-1&&f.click(i,r.event))}))}function h(t){return n.projection.invert([t[0]+n.xaxis._offset,t[1]+n.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,n=e._fullLayout,i="clip"+n._uid+t.id;t.clipDef=n._clips.append("clipPath").attr("id",i),t.clipRect=t.clipDef.append("rect"),t.framework=r.select(t.container).append("g").attr("class","geo "+t.id).call(h.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:"x",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:"y",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},d.setConvert(t.mockAxis,n)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,"projection.scale":n.scale},e=t._isScoped?{"center.lon":r.lon,"center.lat":r.lat}:t._isClipped?{"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat}:{"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":i.lon},l.extendFlat(this.viewInitial,e)},S.render=function(t){this._hasMarkerAngles&&t?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},S._render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr("display",i).attr("transform",n)}})),pg=f(((t,e)=>{var r=V(),n=ka().attributes,i=Pt().dash,a=Zm(),o=Lt().overrideAll,s=Wt(),l={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:r.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:i};(e.exports=o({domain:n({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:s(a.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:s(a.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:r.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:a.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:a.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:a.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:a.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:r.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:r.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:r.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:r.background},lonaxis:l,lataxis:l},"plot","from-root")).uirevision={valType:"any",editType:"none"}})),dg=f(((t,e)=>{var r=le(),n=Hs(),i=we().getSubplotData,a=Zm(),o=pg(),s=a.axesNames;function l(t,e,n,o){var l=i(o.fullData,"geo",o.id).map((function(t){return t.index})),u=n("resolution"),c=n("scope"),h=a.scopeDefaults[c],f=n("projection.type",h.projType),p=e._isAlbersUsa="albers usa"===f;p&&(c=e.scope="usa");var d=e._isScoped="world"!==c,m=e._isSatellite="satellite"===f,g=e._isConic=-1!==f.indexOf("conic")||"albers"===f,y=e._isClipped=!!a.lonaxisSpan[f];if(!1===t.visible){var v=r.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&&(v.lonaxis.showgrid=!1),v.lataxis&&(v.lataxis.showgrid=!1),e._template=v}for(var x=n("visible"),_=0;_0&&L<0&&(L+=360);var P,z,O,D=(I+L)/2;if(!p){var R=d?h.projRotate:[D,0,0];P=n("projection.rotation.lon",R[0]),n("projection.rotation.lat",R[1]),n("projection.rotation.roll",R[2]),n("showcoastlines",!d&&x)&&(n("coastlinecolor"),n("coastlinewidth")),n("showocean",!!x&&void 0)&&n("oceancolor")}p?(z=-96.6,O=38.7):(z=d?D:P,O=(C[0]+C[1])/2),n("center.lon",z),n("center.lat",O),m&&(n("projection.tilt"),n("projection.distance")),g&&n("projection.parallels",h.projParallels||[0,60]),n("projection.scale"),n("showland",!!x&&void 0)&&n("landcolor"),n("showlakes",!!x&&void 0)&&n("lakecolor"),n("showrivers",!!x&&void 0)&&(n("rivercolor"),n("riverwidth")),n("showcountries",d&&"usa"!==c&&x)&&(n("countrycolor"),n("countrywidth")),("usa"===c||"north america"===c&&50===u)&&(n("showsubunits",x),n("subunitcolor"),n("subunitwidth")),d||n("showframe",x)&&(n("framecolor"),n("framewidth")),n("bgcolor"),n("fitbounds")&&(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):y?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){n(t,e,r,{type:"geo",attributes:o,handleDefaults:l,fullData:r,partition:"y"})}})),mg=f(((t,e)=>{var r=we().getSubplotCalcData,n=le().counterRegex,i=fg(),a="geo",o=n(a),s={};s[a]={valType:"subplotid",dflt:a,editType:"calc"},e.exports={attr:a,name:a,idRoot:a,idRegex:o,attrRegex:o,attributes:s,layoutAttributes:pg(),supplyLayoutDefaults:dg(),plot:function(t){for(var e=t._fullLayout,n=t.calcdata,o=e._subplots[a],s=0;s{e.exports={attributes:Vm(),supplyDefaults:qm(),colorbar:pi(),formatLabels:Hm(),calc:Gm(),calcGeoJSON:ig().calcGeoJSON,plot:ig().plot,style:ng(),styleOnSelect:mi().styleOnSelect,hoverPoints:ag(),eventData:og(),selectPoints:sg(),moduleType:"trace",name:"scattergeo",basePlotModule:mg(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}})),yg=f(((t,e)=>{e.exports=gg()})),vg=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Vm(),i=Pe(),a=j(),o=V().defaultLine,s=D().extendFlat,l=n.marker.line;e.exports=s({locations:{valType:"data_array",editType:"calc"},locationmode:n.locationmode,z:{valType:"data_array",editType:"calc"},geojson:s({},n.geojson,{}),featureidkey:n.featureidkey,text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),marker:{line:{color:s({},l.color,{dflt:o}),width:s({},l.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:n.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:n.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:s({},a.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:r(),showlegend:s({},a.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))})),xg=f(((t,e)=>{var r=le(),n=qe(),i=vg();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("locations"),u=s("z");if(l&&l.length&&r.isArrayOrTypedArray(u)&&u.length){e._length=Math.min(l.length,u.length);var c,h=s("geojson");("string"==typeof h&&""!==h||r.isPlainObject(h))&&(c="geojson-id"),"geojson-id"===s("locationmode",c)&&s("featureidkey"),s("text"),s("hovertext"),s("hovertemplate"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),n(t,e,o,s,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}})),_g=f(((t,e)=>{var r=T(),n=k().BADNUM,i=Ze(),a=ii(),o=ai();function s(t){return t&&"string"==typeof t}e.exports=function(t,e){var l,u=e._length,c=new Array(u);l=e.geojson?function(t){return s(t)||r(t)}:s;for(var h=0;h{var r=v(),n=q(),i=Qe(),a=We();function o(t,e){var o=e[0].trace,s=e[0].node3.selectAll(".choroplethlocation"),l=o.marker||{},u=l.line||{},c=a.makeColorScaleFuncFromTrace(o);s.each((function(t){r.select(this).attr("fill",c(t.z)).call(n.stroke,t.mlc||u.color).call(i.dashLine,"",t.mlw||u.width||0).style("opacity",l.opacity)})),i.selectedPointStyle(s,o)}e.exports={style:function(t,e){e&&o(0,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?i.selectedPointStyle(r.selectAll(".choroplethlocation"),n):o(0,e)}}})),wg=f(((t,e)=>{var r=v(),n=le(),i=rg(),a=Ym().getTopojsonFeatures,o=nr().findExtremes,s=bg().style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],s=n._subplot,l=r.locationmode,u=r._length,c="geojson-id"===l?i.extractTraceFeature(t):a(r,s.topojson),h=[],f=[],p=0;p{var r=ir(),n=vg(),i=le().fillText;e.exports=function(t,e,a){var o,s,l,u,c=t.cd,h=c[0].trace,f=t.subplot,p=[e,a],d=[e+360,a];for(s=0;s")}}(t,h,o),[t]}})),kg=f(((t,e)=>{e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&&a.fIn.properties&&(t.properties=a.fIn.properties),t.ct=a.ct,t}})),Ag=f(((t,e)=>{e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,u=t.yaxis,c=[];if(!1===e)for(r=0;r{e.exports={attributes:vg(),supplyDefaults:xg(),colorbar:Uo(),calc:_g(),calcGeoJSON:wg().calcGeoJSON,plot:wg().plot,style:bg().style,styleOnSelect:bg().styleOnSelect,hoverPoints:Tg(),eventData:kg(),selectPoints:Ag(),moduleType:"trace",name:"choropleth",basePlotModule:mg(),categories:["geo","noOpacity","showLegend"],meta:{}}})),Sg=f(((t,e)=>{e.exports=Mg()})),Eg=f(((t,e)=>{var r=qt(),n=le(),i=gi();function a(t,e,a,o){var s=t.xa,l=t.ya,u=t.distance,c=t.dxy,h=t.index,f={pointNumber:h,x:e[h],y:a[h]};f.tx=n.isArrayOrTypedArray(o.text)?o.text[h]:o.text,f.htx=Array.isArray(o.hovertext)?o.hovertext[h]:o.hovertext,f.data=Array.isArray(o.customdata)?o.customdata[h]:o.customdata,f.tp=Array.isArray(o.textposition)?o.textposition[h]:o.textposition;var p=o.textfont;p&&(f.ts=n.isArrayOrTypedArray(p.size)?p.size[h]:p.size,f.tc=n.isArrayOrTypedArray(p.color)?p.color[h]:p.color,f.tf=Array.isArray(p.family)?p.family[h]:p.family,f.tw=Array.isArray(p.weight)?p.weight[h]:p.weight,f.ty=Array.isArray(p.style)?p.style[h]:p.style,f.tv=Array.isArray(p.variant)?p.variant[h]:p.variant);var d=o.marker;d&&(f.ms=n.isArrayOrTypedArray(d.size)?d.size[h]:d.size,f.mo=n.isArrayOrTypedArray(d.opacity)?d.opacity[h]:d.opacity,f.mx=n.isArrayOrTypedArray(d.symbol)?d.symbol[h]:d.symbol,f.ma=n.isArrayOrTypedArray(d.angle)?d.angle[h]:d.angle,f.mc=n.isArrayOrTypedArray(d.color)?d.color[h]:d.color);var m=d&&d.line;m&&(f.mlc=Array.isArray(m.color)?m.color[h]:m.color,f.mlw=n.isArrayOrTypedArray(m.width)?m.width[h]:m.width);var g=d&&d.gradient;g&&"none"!==g.type&&(f.mgt=Array.isArray(g.type)?g.type[h]:g.type,f.mgc=Array.isArray(g.color)?g.color[h]:g.color);var y=s.c2p(f.x,!0),v=l.c2p(f.y,!0),x=f.mrc||1,_=o.hoverlabel;_&&(f.hbg=Array.isArray(_.bgcolor)?_.bgcolor[h]:_.bgcolor,f.hbc=Array.isArray(_.bordercolor)?_.bordercolor[h]:_.bordercolor,f.hts=n.isArrayOrTypedArray(_.font.size)?_.font.size[h]:_.font.size,f.htc=Array.isArray(_.font.color)?_.font.color[h]:_.font.color,f.htf=Array.isArray(_.font.family)?_.font.family[h]:_.font.family,f.hnl=n.isArrayOrTypedArray(_.namelength)?_.namelength[h]:_.namelength);var b=o.hoverinfo;b&&(f.hi=Array.isArray(b)?b[h]:b);var w=o.hovertemplate;w&&(f.ht=Array.isArray(w)?w[h]:w);var T={};T[t.index]=f;var k=o._origX,A=o._origY,M=n.extendFlat({},t,{color:i(o,f),x0:y-x,x1:y+x,xLabelVal:k?k[h]:f.x,y0:v-x,y1:v+x,yLabelVal:A?A[h]:f.y,cd:T,distance:u,spikeDistance:c,hovertemplate:f.ht});return f.htx?M.text=f.htx:f.tx?M.text=f.tx:o.text&&(M.text=o.text),n.fillText(f,o,M),r.getComponentMethod("errorbars","hoverInfo")(f,o,M),M}e.exports={hoverPoints:function(t,e,r,n){var i,o=t.cd,s=o[0].t,l=o[0].trace,u=t.xa,c=t.ya,h=s.x,f=s.y,p=u.c2p(e),d=c.c2p(r),m=t.distance;if(s.tree){var g=u.p2c(p-m),y=u.p2c(p+m),v=c.p2c(d-m),x=c.p2c(d+m);i="x"===n?s.tree.range(Math.min(g,y),Math.min(c._rl[0],c._rl[1]),Math.max(g,y),Math.max(c._rl[0],c._rl[1])):s.tree.range(Math.min(g,y),Math.min(v,x),Math.max(g,y),Math.max(v,x))}else i=s.ids;var _,b,w,T,k,A,M,S,E,C=m;if("x"===n){var I=!!l.xperiodalignment,L=!!l.yperiodalignment;for(k=0;k=Math.min(P,z)&&p<=Math.max(P,z)?0:1/0}if(A=Math.min(O,D)&&d<=Math.max(O,D)?0:1/0}E=Math.sqrt(A*A+M*M),b=i[k]}}}else for(k=i.length-1;k>-1;k--)w=h[_=i[k]],T=f[_],A=u.c2p(w)-p,M=c.c2p(T)-d,(S=Math.sqrt(A*A+M*M)){e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,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]}}})),Ig=f(((t,e)=>{var r=j(),n=R(),i=wn(),a=Tn(),o=Ce().axisHoverFormat,s=Pe(),l=Wt(),u=D().extendFlat,c=Lt().overrideAll,h=Cg().DASHES,f=a.line,p=a.marker,d=p.line,m=e.exports=c({x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),text:a.text,hovertext:a.hovertext,textposition:a.textposition,textfont:n({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:f.color,width:f.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:l(h),dflt:"solid"}},marker:u({},s("marker"),{symbol:p.symbol,angle:p.angle,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:p.opacity,colorbar:p.colorbar,line:u({},s("marker.line"),{width:d.width})}),connectgaps:a.connectgaps,fill:u({},a.fill,{dflt:"none"}),fillcolor:i(),selected:{marker:a.selected.marker,textfont:a.selected.textfont},unselected:{marker:a.unselected.marker,textfont:a.unselected.textfont},opacity:r.opacity},"calc","nested");m.x.editType=m.y.editType=m.x0.editType=m.y0.editType="calc+clearAxisTypes",m.hovertemplate=a.hovertemplate,m.texttemplate=a.texttemplate})),Lg=f((t=>{var e=Cg();t.isOpenSymbol=function(t){return"string"==typeof t?e.OPEN_RE.test(t):t%200>100},t.isDotSymbol=function(t){return"string"==typeof t?e.DOT_RE.test(t):t>200}})),Pg=f(((t,e)=>{var r=le(),n=qt(),i=Lg(),a=Ig(),o=bn(),s=Ye(),l=Hn(),u=Gn(),c=Wn(),h=Yn(),f=Jn(),p=$n();e.exports=function(t,e,d,m){function g(n,i){return r.coerce(t,e,a,n,i)}var y=!!t.marker&&i.isOpenSymbol(t.marker.symbol),v=s.isBubble(t),x=l(t,e,m,g);if(x){u(t,e,m,g),g("xhoverformat"),g("yhoverformat");var _=x{var r=di();e.exports=function(t,e,n){var i=t.i;return"x"in t||(t.x=e._x[i]),"y"in t||(t.y=e._y[i]),r(t,e,n)}})),Og=f(((t,e)=>{function r(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function n(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function a(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function s(t,e,r,n,i,a){return"function"==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,n,i,a){return s(t,e,n,i,a,r)},gt:function(t,e,r,i,a){return s(t,e,r,i,a,n)},lt:function(t,e,r,n,a){return s(t,e,r,n,a,i)},le:function(t,e,r,n,i){return s(t,e,r,n,i,a)},eq:function(t,e,r,n,i){return s(t,e,r,n,i,o)}}})),Dg=f(((t,e)=>{e.exports=function(t,e,r){var i,a,o={};if("string"==typeof e&&(e=n(e)),Array.isArray(e)){var s={};for(a=0;a{var r=Dg();e.exports=function(t){var e;return arguments.length>1&&(t=arguments),"string"==typeof t?t=t.split(/\s/).map(parseFloat):"number"==typeof t&&(t=[t]),t.length&&"number"==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(e={x:(t=r(t,{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"})).left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height),e}})),Fg=f(((t,e)=>{e.exports=function(t,e){if(!t||null==t.length)throw Error("Argument should be an array");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;ni&&(i=t[o]),t[o]{e.exports=function(){for(var t=0;t{var r=Od();e.exports=function(t,e,n){if(!t)throw new TypeError("must specify data as first parameter");if(n=0|+(n||0),Array.isArray(t)&&t[0]&&"number"==typeof t[0][0]){var i,a,o,s,l=t[0].length,u=t.length*l;(!e||"string"==typeof e)&&(e=new(r(e||"float32"))(u+n));var c=e.length-n;if(u!==c)throw new Error("source length "+u+" ("+l+"x"+t.length+") does not match destination length "+c);for(i=0,o=n;i{e.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}})),Ug=f(((t,e)=>{e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}})),Vg=f(((t,e)=>{var r=Og(),n=zd(),i=Rg(),a=Fg(),o=Dg(),s=Bg(),l=Ng(),u=jg(),c=Od(),h=Ug();function f(t,e){let[r,i,a,o]=e,s=1/(a-r),l=1/(o-i),u=new Array(t.length);for(let e=0,a=t.length/2;e>>1;e.dtype||(e.dtype="array"),"string"==typeof e.dtype?d=new(c(e.dtype))(g):e.dtype&&(d=e.dtype,Array.isArray(d)&&(d.length=g));for(let t=0;tn||s>1073741824){for(let t=0;tr+i||b>n+i||T=A||o===s)return;let u=y[a];void 0===s&&(s=u.length);for(let e=o;e=l&&n<=d&&i>=c&&i<=m&&M.push(r)}let h=v[a],f=h[4*o+0],p=h[4*o+1],x=h[4*o+2],_=h[4*o+3],w=function(t,e){let r=null,n=0;for(;null===r;)if(r=t[4*e+n],n++,n>t.length)return null;return r}(h,o+1),S=.5*i,E=a+1;e(r,n,S,E,f,p||x||_||w),e(r,n+S,S,E,p,x||_||w),e(r+S,n,S,E,x,_||w),e(r+S,n+S,S,E,_,w)}(0,0,1,0,0,1),M},d;function w(t,e,r){let n=1,i=.5,a=.5,o=.5;for(let s=0;s{e.exports=Vg()})),Hg=f(((t,e)=>{e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var s=1;s{Object.defineProperty(t,"__esModule",{value:!0});var r=2*Math.PI,n=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},i=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:1.3333333333333333*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},a=function(t,e,r,n){var i=t*r+e*n;return i>1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)};t.default=function(t){var e=t.px,o=t.py,s=t.cx,l=t.cy,u=t.rx,c=t.ry,h=t.xAxisRotation,f=void 0===h?0:h,p=t.largeArcFlag,d=void 0===p?0:p,m=t.sweepFlag,g=void 0===m?0:m,y=[];if(0===u||0===c)return[];var v=Math.sin(f*r/360),x=Math.cos(f*r/360),_=x*(e-s)/2+v*(o-l)/2,b=-v*(e-s)/2+x*(o-l)/2;if(0===_&&0===b)return[];u=Math.abs(u),c=Math.abs(c);var w=Math.pow(_,2)/Math.pow(u,2)+Math.pow(b,2)/Math.pow(c,2);w>1&&(u*=Math.sqrt(w),c*=Math.sqrt(w));var T=function(t,e,n,i,o,s,l,u,c,h,f,p){var d=Math.pow(o,2),m=Math.pow(s,2),g=Math.pow(f,2),y=Math.pow(p,2),v=d*m-d*y-m*g;v<0&&(v=0),v/=d*y+m*g;var x=(v=Math.sqrt(v)*(l===u?-1:1))*o/s*p,_=v*-s/o*f,b=h*x-c*_+(t+n)/2,w=c*x+h*_+(e+i)/2,T=(f-x)/o,k=(p-_)/s,A=(-f-x)/o,M=(-p-_)/s,S=a(1,0,T,k),E=a(T,k,A,M);return 0===u&&E>0&&(E-=r),1===u&&E<0&&(E+=r),[b,w,S,E]}(e,o,s,l,u,c,d,g,v,x,_,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(T,4),A=k[0],M=k[1],S=k[2],E=k[3],C=Math.abs(E)/(r/4);Math.abs(1-C)<1e-7&&(C=1);var I=Math.max(Math.ceil(C),1);E/=I;for(var L=0;L{e.exports=function(t){for(var e,a=[],o=0,s=0,l=0,u=0,c=null,h=null,f=0,p=0,d=0,m=t.length;d4?(o=g[g.length-4],s=g[g.length-3]):(o=f,s=p),a.push(g)}return a};var r=Gg();function n(t,e,r,n){return["C",t,e,r,n,r,n]}function i(t,e,r,n,i,a){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}})),Wg=f(((t,e)=>{e.exports=function(t){return"string"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}})),Yg=f(((t,e)=>{var r=Je(),n=Hg(),i=Zg(),a=Wg(),o=nc();e.exports=function(t){if(Array.isArray(t)&&1===t.length&&"string"==typeof t[0]&&(t=t[0]),"string"==typeof t&&(o(a(t),"String is not an SVG path."),t=r(t)),o(Array.isArray(t),"Argument should be a string or an array of path segments."),t=n(t),!(t=i(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],s=0,l=t.length;se[2]&&(e[2]=u[c+0]),u[c+1]>e[3]&&(e[3]=u[c+1]);return e}})),Xg=f(((t,e)=>{var r=Math.PI,n=l(120);function i(t,e,r,n){return["C",t,e,r,n,r,n]}function a(t,e,r,n,i,a){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function o(t,e,i,a,l,u,c,h,f,p){if(p)T=p[0],k=p[1],b=p[2],w=p[3];else{var d=s(t,e,-l);t=d.x,e=d.y;var m=(t-(h=(d=s(h,f,-l)).x))/2,g=(e-(f=d.y))/2,y=m*m/(i*i)+g*g/(a*a);y>1&&(i*=y=Math.sqrt(y),a*=y);var v=i*i,x=a*a,_=(u==c?-1:1)*Math.sqrt(Math.abs((v*x-v*g*g-x*m*m)/(v*g*g+x*m*m)));_==1/0&&(_=1);var b=_*i*g/a+(t+h)/2,w=_*-a*m/i+(e+f)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((f-w)/a).toFixed(9));(T=tk&&(T-=2*r),!c&&k>T&&(k-=2*r)}if(Math.abs(k-T)>n){var A=k,M=h,S=f;k=T+n*(c&&k>T?1:-1);var E=o(h=b+i*Math.cos(k),f=w+a*Math.sin(k),i,a,l,0,c,M,S,[k,A,b,w])}var C=Math.tan((k-T)/4),I=4/3*i*C,L=4/3*a*C,P=[2*t-(t+I*Math.sin(T)),2*e-(e-L*Math.cos(T)),h+I*Math.sin(k),f-L*Math.cos(k),h,f];if(p)return P;E&&(P=P.concat(E));for(var z=0;z7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var x=p,_=d;("C"==e||"S"==e)&&(x+=x-n,_+=_-s),y=["C",x,_,y[1],y[2],y[3],y[4]];break;case"T":"Q"==e||"T"==e?(h=2*p-h,f=2*d-f):(h=p,f=d),y=a(p,d,h,f,y[1],y[2]);break;case"Q":h=y[1],f=y[2],y=a(p,d,y[1],y[2],y[3],y[4]);break;case"L":y=i(p,d,y[1],y[2]);break;case"H":y=i(p,d,y[1],d);break;case"V":y=i(p,d,p,y[1]);break;case"Z":y=i(p,d,u,c)}e=v,p=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],s=y[y.length-3]):(n=p,s=d),r.push(y)}return r}})),$g=f(((t,e)=>{var r=Hg(),n=Xg(),i={M:"moveTo",C:"bezierCurveTo"};e.exports=function(t,e){t.beginPath(),n(r(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[i[r]].apply(t,n)})),t.closePath()}})),Jg=f(((t,e)=>{var r=zd();e.exports=function(t,e){e||(e={});var a,o,s,l,u,c,h,f,p,d,m,g=null==e.cutoff?.25:e.cutoff,y=null==e.radius?8:e.radius,v=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error("For raw data width and height should be provided by options");a=e.width,o=e.height,l=t,c=e.stride?e.stride:Math.floor(t.length/a/o)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(h=(f=t).getContext("2d"),a=f.width,o=f.height,l=(p=h.getImageData(0,0,a,o)).data,c=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(h=t,a=(f=t.canvas).width,o=f.height,l=(p=h.getImageData(0,0,a,o)).data,c=4):window.ImageData&&t instanceof window.ImageData&&(p=t,a=t.width,o=t.height,l=p.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),d=0,m=u.length;d{var r,n=Yg(),i=Je(),a=$g(),o=Wg(),s=Jg(),l=document.createElement("canvas"),u=l.getContext("2d");e.exports=function(t,e){if(!o(t))throw Error("Argument should be valid svg path string");var c,h;e||(e={}),e.shape?(c=e.shape[0],h=e.shape[1]):(c=l.width=e.w||e.width||200,h=l.height=e.h||e.height||200);var f=Math.min(c,h),p=e.stroke||0,d=e.viewbox||e.viewBox||n(t),m=[c/(d[2]-d[0]),h/(d[3]-d[1])],g=Math.min(m[0]||0,m[1]||0)/2;if(u.fillStyle="black",u.fillRect(0,0,c,h),u.fillStyle="white",p&&("number"!=typeof p&&(p=1),u.strokeStyle=p>0?"white":"black",u.lineWidth=Math.abs(p)),u.translate(.5*c,.5*h),u.scale(g,g),function(){if(null!=r)return r;var t=document.createElement("canvas").getContext("2d");if(t.canvas.width=t.canvas.height=1,!window.Path2D)return r=!1;var e=new Path2D("M0,0h1v1h-1v-1Z");t.fillStyle="black",t.fill(e);var n=t.getImageData(0,0,1,1);return r=n&&n.data&&255===n.data[3]}()){var y=new Path2D(t);u.fill(y),p&&u.stroke(y)}else{var v=i(t);a(u,v),u.fill(),p&&u.stroke()}return u.setTransform(1,0,0,1,0,0),s(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*f})}})),Qg=f(((t,e)=>{var r=T(),n=Kg(),i=Dd(),a=qt(),o=le(),s=o.isArrayOrTypedArray,l=Qe(),u=xe(),c=Fd().formatColor,h=Ye(),f=Xe(),p=Lg(),d=Cg(),m=H().DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},y=$e().appendArrayPointValue;function v(t,e){var n,i=t._fullLayout,a=e._length,l=e.textfont,u=e.textposition,c=s(u)?u:[u],h=l.color,f=l.size,p=l.family,d=l.weight,m=l.style,g=l.variant,v={},_=t._context.plotGlPixelRatio,b=e.texttemplate;if(b){v.text=[];var w=i._d3locale,T=Array.isArray(b),k=T?Math.min(b.length,a):a,A=T?function(t){return b[t]}:function(){return b};for(n=0;n500?"bold":"normal":t}function _(t,e){var r,n,a=e._length,o=e.marker,l={},u=s(o.symbol),h=s(o.angle),d=s(o.color),m=s(o.line.color),g=s(o.opacity),y=s(o.size),v=s(o.line.width);if(u||(n=p.isOpenSymbol(o.symbol)),u||d||m||g||h){l.symbols=new Array(a),l.angles=new Array(a),l.colors=new Array(a),l.borderColors=new Array(a);var x=o.symbol,_=o.angle,b=c(o,o.opacity,a),w=c(o.line,o.opacity,a);if(!s(w[0])){var T=w;for(w=Array(a),r=0;rd.TOO_MANY_POINTS||h.hasMarkers(e)?"rect":"round";if(u&&e.connectgaps){var f=n[0],p=n[1];for(i=0;i1?u[i]:u[0]:u,m=s(c)?c.length>1?c[i]:c[0]:c,y=g[d],v=g[m],x=f?f/.8+1:0,_=-v*x-.5*v;o.offset[i]=[y*x/p,_/p]}}return o}}})),ty=f(((t,e)=>{var r=le();e.exports=function(t,e){var n=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((n=e._scene={}).init=function(){r.extendFlat(n,a,i)},n.init(),n.update=function(t){var e=r.repeat(t,n.count);if(n.fill2d&&n.fill2d.update(e),n.scatter2d&&n.scatter2d.update(e),n.line2d&&n.line2d.update(e),n.error2d&&n.error2d.update(e.concat(e)),n.select2d&&n.select2d.update(e),n.glText)for(var i=0;i{var r=qg(),n=le(),i=xe(),a=nr().findExtremes,o=ri(),s=oi(),l=s.calcMarkerSize,u=s.calcAxisExpansion,c=s.setFirstScatter,h=ni(),f=Qg(),p=ty(),d=k().BADNUM,m=Cg().TOO_MANY_POINTS;function g(t,e,r){var n=t._extremes[e._id],i=a(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var a,s=t._fullLayout,y=e._xA=i.getFromId(t,e.xaxis,"x"),v=e._yA=i.getFromId(t,e.yaxis,"y"),x=s._plots[e.xaxis+e.yaxis],_=e._length,b=_>=m,w=2*_,T={},k=y.makeCalcdata(e,"x"),A=v.makeCalcdata(e,"y"),M=o(e,y,"x",k),S=o(e,v,"y",A),E=M.vals,C=S.vals;e._x=E,e._y=C,e.xperiodalignment&&(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&&(e._origY=A,e._yStarts=S.starts,e._yEnds=S.ends);var I=new Array(w),L=new Array(_);for(a=0;a<_;a++)I[2*a]=E[a]===d?NaN:E[a],I[2*a+1]=C[a]===d?NaN:C[a],L[a]=a;if("log"===y.type)for(a=0;a1&&n.extendFlat(s.line,f.linePositions(t,r,i)),s.errorX||s.errorY){var l=f.errorBarPositions(t,r,i,a,o);s.errorX&&n.extendFlat(s.errorX,l.x),s.errorY&&n.extendFlat(s.errorY,l.y)}return s.text&&(n.extendFlat(s.text,{positions:i},f.textPosition(t,r,s.text,s.marker)),n.extendFlat(s.textSel,{positions:i},f.textPosition(t,r,s.text,s.markerSel)),n.extendFlat(s.textUnsel,{positions:i},f.textPosition(t,r,s.text,s.markerUnsel))),s}(t,0,e,I,E,C),O=p(t,x);return c(s,e),b?z.marker&&(P=z.marker.sizeAvg||Math.max(z.marker.size,3)):P=l(e,_),u(t,e,y,v,E,C,P),z.errorX&&g(e,y,z.errorX),z.errorY&&g(e,v,z.errorY),z.fill&&!O.fill2d&&(O.fill2d=!0),z.marker&&!O.scatter2d&&(O.scatter2d=!0),z.line&&!O.line2d&&(O.line2d=!0),(z.errorX||z.errorY)&&!O.error2d&&(O.error2d=!0),z.text&&!O.glText&&(O.glText=!0),z.marker&&(z.marker.snap=_),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),T._scene=O,T.index=O.count,T.x=E,T.y=C,T.positions=I,O.count++,[{x:!1,y:!1,t:T,trace:e}]}})),ry=f(((t,e)=>{var r=le(),n=q(),i=H().DESELECTDIM;e.exports={styleTextSelection:function(t){var e,a,o=t[0],s=o.trace,l=o.t,u=l._scene,c=l.index,h=u.selectBatch[c],f=u.unselectBatch[c],p=u.textOptions[c],d=u.textSelectedOptions[c]||{},m=u.textUnselectedOptions[c]||{},g=r.extendFlat({},p);if(h.length||f.length){var y=d.color,v=m.color,x=p.color,_=r.isArrayOrTypedArray(x);for(g.color=new Array(s._length),e=0;e{var r=Ye(),n=ry().styleTextSelection;e.exports=function(t,e){var i=t.cd,a=t.xaxis,o=t.yaxis,s=[],l=i[0].trace,u=i[0].t,c=l._length,h=u.x,f=u.y,p=u._scene,d=u.index;if(!p)return s;var m=r.hasText(l),g=r.hasMarkers(l),y=!g&&!m;if(!0!==l.visible||y)return s;var v=[],x=[];if(!1!==e&&!e.degenerate)for(var _=0;_{var r=Eg();e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Si(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:Ig(),supplyDefaults:Pg(),crossTraceDefaults:ti(),colorbar:pi(),formatLabels:zg(),calc:ey(),hoverPoints:r.hoverPoints,selectPoints:ny(),meta:{}}})),ay=f(((t,e)=>{var r=zd();function n(t,e){null==e&&(e=!0);var n=t[0],i=t[1],a=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(n*=255,i*=255,a*=255,o*=255),16777216*(n=255&r(n,0,255))+((i=255&r(i,0,255))<<16)+((a=255&r(a,0,255))<<8)+(255&r(o,0,255))}e.exports=n,e.exports.to=n,e.exports.from=function(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}})),oy=f(((t,e)=>{var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var a,o,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l{e.exports=function(t){"string"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n{e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n{e.exports="undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))})),cy=f(((t,e)=>{e.exports=n,e.exports.float32=e.exports.float=n,e.exports.fract32=e.exports.fract=function(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=n(t));for(var r=0,i=e.length;r{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),u.vert=h(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\n// `invariant` effectively turns off optimizations for the position.\n// We need this because -fast-math on M1 Macs is re-ordering\n// floating point operations in a way that causes floating point\n// precision limits to put points in the wrong locations.\ninvariant gl_Position;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),m&&(u.frag=u.frag.replace("smoothstep","smoothStep"),l.frag=l.frag.replace("smoothstep","smoothStep")),this.drawCircle=t(u)}x.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},x.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},x.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;nn)?e.tree=u(t,{bounds:h}):n&&n.length&&(e.tree=n),e.tree){var f={primitive:"points",usage:"static",data:e.tree,type:"uint32"};e.elements?e.elements(f):e.elements=o.elements(f)}var p=g.float32(t);return i({data:p,usage:"dynamic"}),a({data:g.fract32(t,p),usage:"dynamic"}),l({data:new Uint8Array(c),type:"uint8",usage:"stream"}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&&t.destroy&&t.destroy()})),i.length=0,e&&"number"!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},x.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n>1)for(var i=.25*(t=t.slice()).length%e;i{function r(t,e,r){r=r||2;var i,o,s,l,u,f,p,m=e&&e.length,g=m?e[0]*r:t.length,y=n(t,0,g,r,!0),v=[];if(!y||y.next===y.prev)return v;if(m&&(y=function(t,e,r,i){var a,o,s,l=[];for(a=0,o=e.length;a80*r){i=s=t[0],o=l=t[1];for(var x=r;xs&&(s=u),f>l&&(l=f);p=0!==(p=Math.max(s-i,l-o))?32767/p:0}return a(y,v,r,i,o,p,0),v}function n(t,e,r,n,i){var a,o;if(i===S(t,e,r,n)>0)for(a=e;a=e;a-=n)o=k(a,t[a],t[a+1],o);return o&&v(o,o.next)&&(A(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!v(n,n.next)&&0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function a(t,e,r,n,c,h,f){if(t){!f&&h&&function(t,e,r,n){var i=t;do{0===i.z&&(i.z=p(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,u=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1)}(i)}(t,n,c,h);for(var d,m,g=t;t.prev!==t.next;)if(d=t.prev,m=t.next,h?s(t,n,c,h):o(t))e.push(d.i/r|0),e.push(t.i/r|0),e.push(m.i/r|0),A(t),t=m.next,g=m.next;else if((t=m)===g){f?1===f?a(t=l(i(t),e,r),e,r,n,c,h,2):2===f&&u(t,e,r,n,c,h):a(i(t),e,r,n,c,h,1);break}}}function o(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)>=0)return!1;for(var i=e.x,a=r.x,o=n.x,s=e.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,p=s>l?s>u?s:u:l>u?l:u,d=n.next;d!==e;){if(d.x>=c&&d.x<=f&&d.y>=h&&d.y<=p&&m(i,s,a,l,o,u,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function s(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,h=a.y,f=o.y,d=sl?s>u?s:u:l>u?l:u,x=c>h?c>f?c:f:h>f?h:f,_=p(d,g,e,r,n),b=p(v,x,e,r,n),w=t.prevZ,T=t.nextZ;w&&w.z>=_&&T&&T.z<=b;){if(w.x>=d&&w.x<=v&&w.y>=g&&w.y<=x&&w!==i&&w!==o&&m(s,c,l,h,u,f,w.x,w.y)&&y(w.prev,w,w.next)>=0||(w=w.prevZ,T.x>=d&&T.x<=v&&T.y>=g&&T.y<=x&&T!==i&&T!==o&&m(s,c,l,h,u,f,T.x,T.y)&&y(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;w&&w.z>=_;){if(w.x>=d&&w.x<=v&&w.y>=g&&w.y<=x&&w!==i&&w!==o&&m(s,c,l,h,u,f,w.x,w.y)&&y(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;T&&T.z<=b;){if(T.x>=d&&T.x<=v&&T.y>=g&&T.y<=x&&T!==i&&T!==o&&m(s,c,l,h,u,f,T.x,T.y)&&y(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function l(t,e,r){var n=t;do{var a=n.prev,o=n.next.next;!v(a,o)&&x(a,n,n.next,o)&&w(a,o)&&w(o,a)&&(e.push(a.i/r|0),e.push(n.i/r|0),e.push(o.i/r|0),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return i(n)}function u(t,e,r,n,o,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&g(l,u)){var c=T(l,u);return l=i(l,l.next),c=i(c,c.next),a(l,e,r,n,o,s,0),void a(c,e,r,n,o,s,0)}u=u.next}l=l.next}while(l!==t)}function c(t,e){return t.x-e.x}function h(t,e){var r=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o&&(o=s,r=n.x=n.x&&n.x>=c&&i!==n.x&&m(ar.x||n.x===r.x&&f(r,n)))&&(r=n,p=l)),n=n.next}while(n!==u);return r}(t,e);if(!r)return e;var n=T(r,t);return i(n,n.next),i(r,r.next)}function f(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function p(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,r=t;do{(e.x=(t-o)*(a-s)&&(t-o)*(n-s)>=(r-o)*(e-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&x(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(w(t,e)&&w(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,r,n){var i=b(y(t,e,r)),a=b(y(t,e,n)),o=b(y(r,n,t)),s=b(y(r,n,e));return!!(i!==a&&o!==s||0===i&&_(t,r,e)||0===a&&_(t,n,e)||0===o&&_(r,t,n)||0===s&&_(r,e,n))}function _(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function b(t){return t>0?1:t<0?-1:0}function w(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function T(t,e){var r=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function k(t,e,r,n){var i=new M(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,r,n){for(var i=0,a=e,o=r-n;a0&&(n+=t[i-1].length,r.holes.push(n))}return r}})),py=f(((t,e)=>{var r=Fg();e.exports=function(t,e,n){if(!t||null==t.length)throw Error("Argument should be an array");null==e&&(e=1),null==n&&(n=r(t,e));for(var i=0;i{e.exports=function(){var t,e;if("function"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!("[object WeakMap]"!==String(t)||"function"!=typeof t.set||t.set({},1)!==t||"function"!=typeof t.delete||"function"!=typeof t.has||"one"!==t.get(e))}})),my=f(((t,e)=>{e.exports=function(){}})),gy=f(((t,e)=>{var r=my()();e.exports=function(t){return t!==r&&null!==t}})),yy=f(((t,e)=>{var r=Object.create,n=Object.getPrototypeOf,i={};e.exports=function(){var t=Object.setPrototypeOf;return"function"==typeof t&&n(t((arguments[0]||r)(null),i))===i}})),vy=f(((t,e)=>{var r=gy(),n={function:!0,object:!0};e.exports=function(t){return r(t)&&n[typeof t]||!1}})),xy=f(((t,e)=>{var r=gy();e.exports=function(t){if(!r(t))throw new TypeError("Cannot use null or undefined");return t}})),_y=f(((t,e)=>{var r,n,i,a,o=Object.create;yy()()||(r=by()),e.exports=r&&1===r.level?(n={},i={},a={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){i[t]="__proto__"!==t?a:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(n,i),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:n}),function(t,e){return o(null===t?n:t,e)}):o})),by=f(((t,e)=>{var r,n,i,a,o=vy(),s=xy(),l=Object.prototype.isPrototypeOf,u=Object.defineProperty,c={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(t,e){if(s(t),null===e||o(e))return t;throw new TypeError("Prototype must be null or an object")},e.exports=(n=function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&&{level:1})}(),n?(2===n.level?n.set?(a=n.set,i=function(t,e){return a.call(r(t,e),e),t}):i=function(t,e){return r(t,e).__proto__=e,t}:i=function t(e,n){var i;return r(e,n),(i=l.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,i&&u(t.nullPolyfill,"__proto__",c),e},Object.defineProperty(i,"level",{configurable:!1,enumerable:!1,writable:!1,value:n.level})):null),_y()})),wy=f(((t,e)=>{e.exports=yy()()?Object.setPrototypeOf:by()})),Ty=f(((t,e)=>{var r=vy();e.exports=function(t){if(!r(t))throw new TypeError(t+" is not an Object");return t}})),ky=f(((t,e)=>{var r=Object.create(null),n=Math.random;e.exports=function(){var t;do{t=n().toString(36).slice(2)}while(r[t]);return t}})),Ay=f(((t,e)=>{e.exports=function(t){return null!=t}})),My=f(((t,e)=>{var r=Ay(),n={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!r(t)&&hasOwnProperty.call(n,typeof t)}})),Sy=f(((t,e)=>{var r=My();e.exports=function(t){if(!r(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}})),Ey=f(((t,e)=>{var r=Sy();e.exports=function(t){if("function"!=typeof t||!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length||"function"!=typeof t.call||"function"!=typeof t.apply)return!1}catch(t){return!1}return!r(t)}})),Cy=f(((t,e)=>{var r=Ey(),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(t){return!(!r(t)||n.test(i.call(t)))}})),Iy=f(((t,e)=>{e.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}})),Ly=f(((t,e)=>{e.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}})),Py=f(((t,e)=>{var r=gy(),n=Object.keys;e.exports=function(t){return n(r(t)?Object(t):t)}})),zy=f(((t,e)=>{e.exports=Ly()()?Object.keys:Py()})),Oy=f(((t,e)=>{var r=zy(),n=xy(),i=Math.max;e.exports=function(t,e){var a,o,s,l=i(arguments.length,2);for(t=Object(n(t)),s=function(r){try{t[r]=e[r]}catch(t){a||(a=t)}},o=1;o{e.exports=Iy()()?Object.assign:Oy()})),Ry=f(((t,e)=>{var r=gy(),n=Array.prototype.forEach,i=Object.create;e.exports=function(t){var e=i(null);return n.call(arguments,(function(t){r(t)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(t),e)})),e}})),Fy=f(((t,e)=>{var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}})),By=f(((t,e)=>{var r=String.prototype.indexOf;e.exports=function(t){return r.call(this,t,arguments[1])>-1}})),Ny=f(((t,e)=>{e.exports=Fy()()?String.prototype.contains:By()})),jy=f(((t,e)=>{var r=Ay(),n=Cy(),i=Dy(),a=Ry(),o=Ny(),s=e.exports=function(t,e){var n,s,l,u,c;return arguments.length<2||"string"!=typeof t?(u=e,e=t,t=null):u=arguments[2],r(t)?(n=o.call(t,"c"),s=o.call(t,"e"),l=o.call(t,"w")):(n=l=!0,s=!1),c={value:e,configurable:n,enumerable:s,writable:l},u?i(a(u),c):c};s.gs=function(t,e,s){var l,u,c,h;return"string"!=typeof t?(c=s,s=e,e=t,t=null):c=arguments[3],r(e)?n(e)?r(s)?n(s)||(c=s,s=void 0):s=void 0:(c=e,e=s=void 0):e=void 0,r(t)?(l=o.call(t,"c"),u=o.call(t,"e")):(l=!0,u=!1),h={get:e,set:s,configurable:l,enumerable:u},c?i(a(c),h):h}})),Uy=f(((t,e)=>{var r=Object.prototype.toString,n=r.call(function(){return arguments}());e.exports=function(t){return r.call(t)===n}})),Vy=f(((t,e)=>{var r=Object.prototype.toString,n=r.call("");e.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||r.call(t)===n)||!1}})),qy=f(((t,e)=>{e.exports=function(){return!("object"!=typeof globalThis||!globalThis)&&globalThis.Array===Array}})),Hy=f(((t,e)=>{var r=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()})),Gy=f(((t,e)=>{e.exports=qy()()?globalThis:Hy()})),Zy=f(((t,e)=>{var r=Gy(),n={object:!0,symbol:!0};e.exports=function(){var t,e=r.Symbol;if("function"!=typeof e)return!1;t=e("test symbol");try{String(t)}catch(t){return!1}return!(!n[typeof e.iterator]||!n[typeof e.toPrimitive]||!n[typeof e.toStringTag])}})),Wy=f(((t,e)=>{e.exports=function(t){return!(!t||"symbol"!=typeof t&&(!t.constructor||"Symbol"!==t.constructor.name||"Symbol"!==t[t.constructor.toStringTag]))}})),Yy=f(((t,e)=>{var r=Wy();e.exports=function(t){if(!r(t))throw new TypeError(t+" is not a symbol");return t}})),Xy=f(((t,e)=>{var r=jy(),n=Object.create,i=Object.defineProperty,a=Object.prototype,o=n(null);e.exports=function(t){for(var e,n,s=0;o[t+(s||"")];)++s;return o[t+=s||""]=!0,i(a,e="@@"+t,r.gs(null,(function(t){n||(n=!0,i(this,e,r(t)),n=!1)}))),e}})),$y=f(((t,e)=>{var r=jy(),n=Gy().Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:r("",n&&n.hasInstance||t("hasInstance")),isConcatSpreadable:r("",n&&n.isConcatSpreadable||t("isConcatSpreadable")),iterator:r("",n&&n.iterator||t("iterator")),match:r("",n&&n.match||t("match")),replace:r("",n&&n.replace||t("replace")),search:r("",n&&n.search||t("search")),species:r("",n&&n.species||t("species")),split:r("",n&&n.split||t("split")),toPrimitive:r("",n&&n.toPrimitive||t("toPrimitive")),toStringTag:r("",n&&n.toStringTag||t("toStringTag")),unscopables:r("",n&&n.unscopables||t("unscopables"))})}})),Jy=f(((t,e)=>{var r=jy(),n=Yy(),i=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:r((function(e){return i[e]?i[e]:i[e]=t(String(e))})),keyFor:r((function(t){var e;for(e in n(t),i)if(i[e]===t)return e}))})}})),Ky=f(((t,e)=>{var r,n,i,a=jy(),o=Yy(),s=Gy().Symbol,l=Xy(),u=$y(),c=Jy(),h=Object.create,f=Object.defineProperties,p=Object.defineProperty;if("function"==typeof s)try{String(s()),i=!0}catch(t){}else s=null;n=function(t){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return r(t)},e.exports=r=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return i?s(e):(r=h(n.prototype),e=void 0===e?"":String(e),f(r,{__description__:a("",e),__name__:a("",l(e))}))},u(r),c(r),f(n.prototype,{constructor:a(r),toString:a("",(function(){return this.__name__}))}),f(r.prototype,{toString:a((function(){return"Symbol ("+o(this).__description__+")"})),valueOf:a((function(){return o(this)}))}),p(r.prototype,r.toPrimitive,a("",(function(){var t=o(this);return"symbol"==typeof t?t:t.toString()}))),p(r.prototype,r.toStringTag,a("c","Symbol")),p(n.prototype,r.toStringTag,a("c",r.prototype[r.toStringTag])),p(n.prototype,r.toPrimitive,a("c",r.prototype[r.toPrimitive]))})),Qy=f(((t,e)=>{e.exports=Zy()()?Gy().Symbol:Ky()})),tv=f(((t,e)=>{var r=xy();e.exports=function(){return r(this).length=0,this}})),ev=f(((t,e)=>{e.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}})),rv=f(((t,e)=>{var r=Ay(),n=My(),i=Object.prototype.toString;e.exports=function(t){if(!r(t))return null;if(n(t)){var e=t.toString;if("function"!=typeof e||e===i)return null}try{return""+t}catch(t){return null}}})),nv=f(((t,e)=>{e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}})),iv=f(((t,e)=>{var r=nv(),n=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=r(t);return null===e?"":(e.length>100&&(e=e.slice(0,99)+"…"),e=e.replace(n,(function(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}})),av=f(((t,e)=>{var r=Ay(),n=My(),i=rv(),a=iv(),o=function(t,e){return t.replace("%v",a(e))};e.exports=function(t,e,a){if(!n(a))throw new TypeError(o(e,t));if(!r(t)){if("default"in a)return a.default;if(a.isOptional)return null}var s=i(a.errorMessage);throw r(s)||(s=e),new TypeError(o(s,t))}})),ov=f(((t,e)=>{var r=av(),n=Ay();e.exports=function(t){return n(t)?t:r(t,"Cannot use %v",arguments[1])}})),sv=f(((t,e)=>{var r=av(),n=Cy();e.exports=function(t){return n(t)?t:r(t,"%v is not a plain function",arguments[1])}})),lv=f(((t,e)=>{e.exports=function(){var t,e,r=Array.from;return"function"==typeof r&&!(!(e=r(t=["raz","dwa"]))||e===t||"dwa"!==e[1])}})),uv=f(((t,e)=>{var r=Object.prototype.toString,n=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return"function"==typeof t&&n(r.call(t))}})),cv=f(((t,e)=>{e.exports=function(){var t=Math.sign;return"function"==typeof t&&1===t(10)&&-1===t(-20)}})),hv=f(((t,e)=>{e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}})),fv=f(((t,e)=>{e.exports=cv()()?Math.sign:hv()})),pv=f(((t,e)=>{var r=fv(),n=Math.abs,i=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?r(t)*i(n(t)):t}})),dv=f(((t,e)=>{var r=pv(),n=Math.max;e.exports=function(t){return n(0,r(t))}})),mv=f(((t,e)=>{var r=Qy().iterator,n=Uy(),i=uv(),a=dv(),o=ev(),s=xy(),l=gy(),u=Vy(),c=Array.isArray,h=Function.prototype.call,f={configurable:!0,enumerable:!0,writable:!0,value:null},p=Object.defineProperty;e.exports=function(t){var e,d,m,g,y,v,x,_,b,w,T=arguments[1],k=arguments[2];if(t=Object(s(t)),l(T)&&o(T),this&&this!==Array&&i(this))e=this;else{if(!T){if(n(t))return 1!==(y=t.length)?Array.apply(null,t):((g=new Array(1))[0]=t[0],g);if(c(t)){for(g=new Array(y=t.length),d=0;d=55296&&v<=56319&&(w+=t[++d]),w=T?h.call(T,k,w,m):w,e?(f.value=w,p(g,m,f)):g[m]=w,++m;y=m}if(void 0===y)for(y=a(t.length),e&&(g=new e(y)),d=0;d{e.exports=lv()()?Array.from:mv()})),yv=f(((t,e)=>{var r=gv(),n=Dy(),i=xy();e.exports=function(t){var e=Object(i(t)),a=arguments[1],o=Object(arguments[2]);if(e!==t&&!a)return e;var s={};return a?r(a,(function(e){(o.ensure||e in t)&&(s[e]=t[e])})):n(s,t),s}})),vv=f(((t,e)=>{var r=ev(),n=xy(),i=Function.prototype.bind,a=Function.prototype.call,o=Object.keys,s=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(l,u){var c,h=arguments[2],f=arguments[3];return l=Object(n(l)),r(u),c=o(l),f&&c.sort("function"==typeof f?i.call(f,l):void 0),"function"!=typeof t&&(t=c[t]),a.call(t,c,(function(t,r){return s.call(l,t)?a.call(u,h,l[t],t,l,r):e}))}}})),xv=f(((t,e)=>{e.exports=vv()("forEach")})),_v=f(((t,e)=>{var r=ev(),n=xv(),i=Function.prototype.call;e.exports=function(t,e){var a={},o=arguments[2];return r(e),n(t,(function(t,r,n,s){a[r]=i.call(e,o,t,r,n,s)})),a}})),bv=f(((t,e)=>{var r,n=Ay(),i=ov(),a=sv(),o=yv(),s=Ry(),l=_v(),u=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;r=function(t,e,r){var n,s=i(e)&&a(e.value);return delete(n=o(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&h.call(this,t)?s:(e.value=u.call(s,r.resolveContext?r.resolveContext(this):this),c(this,t,e),this[t])},n},e.exports=function(t){var e=s(arguments[1]);return n(e.resolveContext)&&a(e.resolveContext),l(t,(function(t,n){return r(n,t,e)}))}})),wv=f(((t,e)=>{var r,n=tv(),i=Dy(),a=ev(),o=xy(),s=jy(),l=bv(),u=Qy(),c=Object.defineProperty,h=Object.defineProperties;e.exports=r=function(t,e){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");h(this,{__list__:s("w",o(t)),__context__:s("w",e),__nextIndex__:s("w",0)}),e&&(a(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete r.prototype.constructor,h(r.prototype,i({_next:s((function(){var t;if(this.__list__){if(this.__redo__&&void 0!==(t=this.__redo__.shift()))return t;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void c(this,"__redo__",s("c",[t]));this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)}})),_onDelete:s((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))})),_onClear:s((function(){this.__redo__&&n.call(this.__redo__),this.__nextIndex__=0}))}))),c(r.prototype,u.iterator,s((function(){return this})))})),Tv=f(((t,e)=>{var r,n=wy(),i=Ny(),a=jy(),o=Qy(),s=wv(),l=Object.defineProperty;r=e.exports=function(t,e){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");s.call(this,t),e=e?i.call(e,"key+value")?"key+value":i.call(e,"key")?"key":"value":"value",l(this,"__kind__",a("",e))},n&&n(r,s),delete r.prototype.constructor,r.prototype=Object.create(s.prototype,{_resolve:a((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),l(r.prototype,o.toStringTag,a("c","Array Iterator"))})),kv=f(((t,e)=>{var r,n=wy(),i=jy(),a=Qy(),o=wv(),s=Object.defineProperty;r=e.exports=function(t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");t=String(t),o.call(this,t),s(this,"__length__",i("",t.length))},n&&n(r,o),delete r.prototype.constructor,r.prototype=Object.create(o.prototype,{_next:i((function(){if(this.__list__){if(this.__nextIndex__=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),s(r.prototype,a.toStringTag,i("c","String Iterator"))})),Av=f(((t,e)=>{var r=Uy(),n=gy(),i=Vy(),a=Qy().iterator,o=Array.isArray;e.exports=function(t){return!(!n(t)||!(o(t)||i(t)||r(t))&&"function"!=typeof t[a])}})),Mv=f(((t,e)=>{var r=Av();e.exports=function(t){if(!r(t))throw new TypeError(t+" is not iterable");return t}})),Sv=f(((t,e)=>{var r=Uy(),n=Vy(),i=Tv(),a=kv(),o=Mv(),s=Qy().iterator;e.exports=function(t){return"function"==typeof o(t)[s]?t[s]():r(t)?new i(t):n(t)?new a(t):new i(t)}})),Ev=f(((t,e)=>{var r=Uy(),n=ev(),i=Vy(),a=Sv(),o=Array.isArray,s=Function.prototype.call,l=Array.prototype.some;e.exports=function(t,e){var u,c,h,f,p,d,m,g,y=arguments[2];if(o(t)||r(t)?u="array":i(t)?u="string":t=a(t),n(e),h=function(){f=!0},"array"!==u)if("string"!==u)for(c=t.next();!c.done;){if(s.call(e,y,c.value,h),f)return;c=t.next()}else for(d=t.length,p=0;p=55296&&g<=56319&&(m+=t[++p]),s.call(e,y,m,h),!f);++p);else l.call(t,(function(t){return s.call(e,y,t,h),f}))}})),Cv=f(((t,e)=>{e.exports="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)})),Iv=f(((t,e)=>{var r,n=gy(),i=wy(),a=Ty(),o=xy(),s=ky(),l=jy(),u=Sv(),c=Ev(),h=Qy().toStringTag,f=Cv(),p=Array.isArray,d=Object.defineProperty,m=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf;e.exports=r=function(){var t,e=arguments[0];if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");return t=f&&i&&WeakMap!==r?i(new WeakMap,g(this)):this,n(e)&&(p(e)||(e=u(e))),d(t,"__weakMapData__",l("c","$weakMap$"+s())),e&&c(e,(function(e){o(e),t.set(e[0],e[1])})),t},f&&(i&&i(r,WeakMap),r.prototype=Object.create(WeakMap.prototype,{constructor:l(r)})),Object.defineProperties(r.prototype,{delete:l((function(t){return!!m.call(a(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)})),get:l((function(t){if(m.call(a(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:l((function(t){return m.call(a(t),this.__weakMapData__)})),set:l((function(t,e){return d(a(t),this.__weakMapData__,l("c",e)),this})),toString:l((function(){return"[object WeakMap]"}))}),d(r.prototype,h,l("c","WeakMap"))})),Lv=f(((t,e)=>{e.exports=dy()()?WeakMap:Iv()})),Pv=f(((t,e)=>{e.exports=function(t,e,r){if("function"==typeof Array.prototype.findIndex)return t.findIndex(e,r);if("function"!=typeof e)throw new TypeError("predicate must be a function");var n=Object(t),i=n.length;if(0===i)return-1;for(var a=0;a{var r=Dd(),n=Fg(),i=oy(),a=Dg(),o=Ng(),s=fy(),l=py(),{float32:u,fract32:c}=cy(),h=Lv(),f=Rg(),p=Pv();function d(t,e){if(!(this instanceof d))return new d(t,e);if("function"==typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=d.shaders.has(t)?d.shaders.get(t):d.shaders.set(t,d.createShaders(t)).get(t),this.update(e)}e.exports=d,d.dashMult=2,d.maxPatternLength=256,d.precisionThreshold=3e6,d.maxPoints=1e4,d.maxLines=2048,d.shaders=new h,d.createShaders=function(t){let e,r=t.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),n={primitive:"triangle strip",instances:t.prop("count"),count:4,offset:0,uniforms:{miterMode:(t,e)=>"round"===e.join?2:1,miterLimit:t.prop("miterLimit"),scale:t.prop("scale"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),translate:t.prop("translate"),thickness:t.prop("thickness"),dashTexture:t.prop("dashTexture"),opacity:t.prop("opacity"),pixelRatio:t.context("pixelRatio"),id:t.prop("id"),dashLength:t.prop("dashLength"),viewport:(t,e)=>[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight],depth:t.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(t,e)=>!e.overlay},stencil:{enable:!1},scissor:{enable:!0,box:t.prop("viewport")},viewport:t.prop("viewport")},a=t(i({vert:"\nprecision highp float;\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n",frag:"\nprecision highp float;\n\nuniform float dashLength, pixelRatio, thickness, opacity, id;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n",attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:t.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},n));try{e=t(i({cull:{enable:!0,face:"back"},vert:"\nprecision highp float;\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n vec2 adjustedScale;\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\n\n vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n",frag:"\nprecision highp float;\n\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n",attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},n))}catch(t){e=a}return{fill:t({primitive:"triangle",elements:(t,e)=>e.triangles,offset:0,vert:"\nprecision highp float;\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n",frag:"\nprecision highp float;\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n",uniforms:{scale:t.prop("scale"),color:t.prop("fill"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),translate:t.prop("translate"),opacity:t.prop("opacity"),pixelRatio:t.context("pixelRatio"),id:t.prop("id"),viewport:(t,e)=>[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},attributes:{position:{buffer:t.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:a,miter:e}},d.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},d.prototype.render=function(...t){t.length&&this.update(...t),this.draw()},d.prototype.draw=function(...t){return(t.length?t:this.passes).forEach(((t,e)=>{if(t&&Array.isArray(t))return this.draw(...t);"number"==typeof t&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>d.precisionThreshold||t.scale[1]*t.viewport.height>d.precisionThreshold||"rect"===t.join||!t.join&&(t.thickness<=2||t.count>=d.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))})),this},d.prototype.update=function(t){if(!t)return;null!=t.length?"number"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);let{regl:e,gl:h}=this;if(t.forEach(((t,m)=>{let g=this.passes[m];if(void 0!==t){if(null===t)return void(this.passes[m]=null);if("number"==typeof t[0]&&(t={positions:t}),t=a(t,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),g||(this.passes[m]=g={id:m,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:e.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:e.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:e.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},t=i({},d.defaults,t)),null!=t.thickness&&(g.thickness=parseFloat(t.thickness)),null!=t.opacity&&(g.opacity=parseFloat(t.opacity)),null!=t.miterLimit&&(g.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&&(g.overlay=!!t.overlay,mt-e)),e=[],i=0,a=null!=g.hole?g.hole[0]:null;if(null!=a){let e=p(t,(t=>t>=a));t=t.slice(0,e),t.push(a)}for(let n=0;ne-a+(t[n]-i))),u=s(o,l);u=u.map((e=>e+i+(e+i{t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}})),Ov=f(((t,e)=>{var r=Fg(),n=Dd(),i=ly(),a=Dg(),o=oy(),s=Ng(),{float32:l,fract32:u}=cy();e.exports=function(t,e){if("function"==typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let h,f,p,d,m,g,y=t._gl,v={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),f=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),p=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),g=t.buffer({usage:"static",type:"float",data:c}),T(e),h=t({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:t.prop("range"),lineWidth:t.prop("lineWidth"),capSize:t.prop("capSize"),opacity:t.prop("opacity"),scale:t.prop("scale"),translate:t.prop("translate"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),viewport:(t,e)=>[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},attributes:{color:{buffer:d,offset:(t,e)=>4*e.offset,divisor:1},position:{buffer:f,offset:(t,e)=>8*e.offset,divisor:1},positionFract:{buffer:p,offset:(t,e)=>8*e.offset,divisor:1},error:{buffer:m,offset:(t,e)=>16*e.offset,divisor:1},direction:{buffer:g,stride:24,offset:0},lineOffset:{buffer:g,stride:24,offset:8},capOffset:{buffer:g,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop("viewport")},viewport:t.prop("viewport"),stencil:!1,instances:t.prop("count"),count:c.length}),o(_,{update:T,draw:b,destroy:k,regl:t,gl:y,canvas:y.canvas,groups:x}),_;function _(t){t?T(t):null===t&&k(),b()}function b(e){if("number"==typeof e)return w(e);e&&!Array.isArray(e)&&(e=[e]),t._refresh(),x.forEach(((t,r)=>{if(t){if(e&&(e[r]?t.draw=!0:t.draw=!1),!t.draw)return void(t.draw=!0);w(r)}}))}function w(t){"number"==typeof t&&(t=x[t]),null!=t&&t&&t.count&&t.color&&t.opacity&&t.positions&&t.positions.length>1&&(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],h(t),t.after&&t.after(t))}function T(t){if(!t)return;null!=t.length?"number"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);let e=0,c=0;if(_.groups=x=t.map(((t,l)=>{let h=x[l];return t?("function"==typeof t?t={after:t}:"number"==typeof t[0]&&(t={positions:t}),t=a(t,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),h||(x[l]=h={id:l,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=o({},v,t)),i(h,t,[{lineWidth:t=>.5*+t,capSize:t=>.5*+t,opacity:parseFloat,errors:t=>(t=s(t),c+=t.length,t),positions:(t,n)=>(t=s(t,"float64"),n.count=Math.floor(t.length/2),n.bounds=r(t,2),n.offset=e,e+=n.count,t)},{color:(t,e)=>{let r=e.count;if(t||(t="transparent"),!Array.isArray(t)||"number"==typeof t[0]){let e=t;t=Array(r);for(let n=0;n{let n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=u(e.scale),e.translateFract=u(e.translate),t},viewport:t=>{let e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:y.drawingBufferWidth,height:y.drawingBufferHeight},e}}]),h):h})),e||c){let t=x.reduce(((t,e,r)=>t+(e?e.count:0)),0),e=new Float64Array(2*t),r=new Uint8Array(4*t),n=new Float32Array(4*t);x.forEach(((t,i)=>{if(!t)return;let{positions:a,count:o,offset:s,color:l,errors:u}=t;o&&(r.set(l,4*s),n.set(u,4*s),e.set(a,2*s))}));var h=l(e);f(h);var g=u(e,h);p(g),d(r),m(n)}}function k(){f.destroy(),p.destroy(),d.destroy(),m.destroy(),g.destroy()}};var c=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]})),Dv=f(((t,e)=>{var r=/[\'\"]/;e.exports=function(t){return t?(r.test(t.charAt(0))&&(t=t.substr(1)),r.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}})),Rv=f((()=>{})),Fv=f((()=>{})),Bv=f((()=>{})),Nv=f((()=>{})),jv=f((()=>{})),Uv=f(((t,e)=>{function r(t,e){if("string"!=typeof t)return[t];var r=[t];"string"==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],i=e.escape||"___",a=!!e.flat;n.forEach((function(t){var e=new RegExp(["\\",t[0],"[^\\",t[0],"\\",t[1],"]*\\",t[1]].join("")),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++>1e4)throw Error("References have circular dependency. Please, check them.");r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp("(\\"+i+r+"\\"+i+")","g"),t[0]+"$1"+t[1])})),e}))}));var o=new RegExp("\\"+i+"([0-9]+)\\"+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++>1e4)throw Error("Circular references in parenthesis");a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function n(t,e){if(e&&e.flat){var r,n=e&&e.escape||"___",i=t[0];if(!i)return"";for(var a=new RegExp("\\"+n+"([0-9]+)\\"+n),o=0;i!=r;){if(o++>1e4)throw Error("Circular references in "+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&&(r=r.reduce(t,"")),e+r}),"");function s(e,r){if(null==t[r])throw Error("Reference "+r+"is undefined");return t[r]}}function i(t,e){return Array.isArray(t)?n(t,e):r(t,e)}i.parse=r,i.stringify=n,e.exports=i})),Vv=f(((t,e)=>{var r=Uv();e.exports=function(t,e,n){if(null==t)throw Error("First argument should be a string");if(null==e)throw Error("Separator should be a string or a RegExp");n?("string"==typeof n||Array.isArray(n))&&(n={ignore:n}):n={},null==n.escape&&(n.escape=!0),null==n.ignore?n.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:("string"==typeof n.ignore&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map((function(t){return 1===t.length&&(t+=t),t})));var i=r.parse(t,{flat:!0,brackets:n.ignore}),a=i[0].split(e);if(n.escape){for(var o=[],s=0;s{})),Hv=f(((t,e)=>{var r=qv();e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf("/")||-1!==r.indexOf(t)}}})),Gv=f(((t,e)=>{var r=Dv(),n=Rv(),i=Fv(),a=Bv(),o=Nv(),s=jv(),l=Vv(),u=Hv().isSize;e.exports=h;var c=h.cache={};function h(t){if("string"!=typeof t)throw new Error("Font argument must be a string.");if(c[t])return c[t];if(""===t)throw new Error("Cannot parse an empty string.");if(-1!==i.indexOf(t))return c[t]={system:t};for(var e,h={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},p=l(t,/\s+/);e=p.shift();){if(-1!==n.indexOf(e))return["style","variant","weight","stretch"].forEach((function(t){h[t]=e})),c[t]=h;if(-1===o.indexOf(e))if("normal"!==e&&"small-caps"!==e)if(-1===s.indexOf(e)){if(-1===a.indexOf(e)){if(u(e)){var d=l(e,"/");if(h.size=d[0],null!=d[1]?h.lineHeight=f(d[1]):"/"===p[0]&&(p.shift(),h.lineHeight=f(p.shift())),!p.length)throw new Error("Missing required font-family.");return h.family=l(p.join(" "),/\s*,\s*/).map(r),c[t]=h}throw new Error("Unknown or unsupported font token: "+e)}h.weight=e}else h.stretch=e;else h.variant=e;else h.style=e}throw new Error("Missing required font-size.")}function f(t){var e=parseFloat(t);return e.toString()===t?e:t}})),Zv=f(((t,e)=>{var r=Dg(),n=Hv().isSize,i=p(Rv()),a=p(Fv()),o=p(Bv()),s=p(Nv()),l=p(jv()),u={normal:1,"small-caps":1},c={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function f(t,e){if(t&&!e[t]&&!i[t])throw Error("Unknown keyword `"+t+"`");return t}function p(t){for(var e={},r=0;r{e.exports={parse:Gv(),stringify:Zv()}})),Yv=f(((t,e)=>{var r,n;r=t,n=function(){var t=function(t,e){for(var r=Object.keys(e),n=0;n1&&e===r&&('"'===e||"'"===e))return['"'+n(t.substr(1,t.length-2))+'"'];var a=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(t);if(a)return i(t.substr(0,a.index)).concat(i(a[1])).concat(i(t.substr(a.index+a[0].length)));var o=t.split(".");if(1===o.length)return['"'+n(t)+'"'];for(var s=[],l=0;l65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1}function p(){var t=h(8,(function(){return[]}));function e(e){var r=function(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}(e),n=t[f(r)>>2];return n.length>0?n.pop():new ArrayBuffer(r)}function r(e){t[f(e.byteLength)>>2].push(e)}return{alloc:e,free:r,allocType:function(t,r){var n=null;switch(t){case 5120:n=new Int8Array(e(r),0,r);break;case 5121:n=new Uint8Array(e(r),0,r);break;case 5122:n=new Int16Array(e(2*r),0,r);break;case 5123:n=new Uint16Array(e(2*r),0,r);break;case 5124:n=new Int32Array(e(4*r),0,r);break;case 5125:n=new Uint32Array(e(4*r),0,r);break;case 5126:n=new Float32Array(e(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){r(t.buffer)}}}var d=p();d.zero=p();var m=3553,g=6408,y=5126,v=36160,x=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray};function _(t){return!!t&&"object"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||x(t.data))}var b=function(t){return Object.keys(t).map((function(e){return t[e]}))},w=function(t){for(var e=[],r=t;r.length;r=r[0])e.push(r.length);return e},T=function(t,e,r,n){var i=1;if(e.length)for(var a=0;a>>31<<15,a=(n<<1>>>24)-127,o=n>>13&1023;if(a<-24)e[r]=i;else if(a<-14){var s=-14-a;e[r]=i+(o+1024>>s)}else e[r]=a>15?i+31744:i+(a+15<<10)+o}return e}function G(t){return Array.isArray(t)||x(t)}var Z=3553,W=34067,Y=34069,X=6408,$=6406,J=6407,K=6409,Q=6410,tt=32855,et=6402,rt=34041,nt=35904,it=35906,at=36193,ot=33776,st=33777,lt=33778,ut=5121,ct=5123,ht=5125,ft=5126,pt=33071,dt=9728,mt=9984,gt=9987,yt=4352,vt=33984,xt=[mt,9986,9985,gt],_t=[0,K,Q,J,X],bt={};function wt(t){return"[object "+t+"]"}bt[K]=bt[$]=bt[et]=1,bt[rt]=bt[Q]=2,bt[J]=bt[nt]=3,bt[X]=bt[it]=4;var Tt=wt("HTMLCanvasElement"),kt=wt("OffscreenCanvas"),At=wt("CanvasRenderingContext2D"),Mt=wt("ImageBitmap"),St=wt("HTMLImageElement"),Et=wt("HTMLVideoElement"),Ct=Object.keys(M).concat([Tt,kt,At,Mt,St,Et]),It=[];It[ut]=1,It[ft]=4,It[at]=2,It[ct]=2,It[ht]=4;var Lt=[];function Pt(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0])}function zt(t){return!!Array.isArray(t)&&!(0===t.length||!G(t[0]))}function Ot(t){return Object.prototype.toString.call(t)}function Dt(t){return Ot(t)===Tt}function Rt(t){return Ot(t)===kt}function Ft(t){if(!t)return!1;var e=Ot(t);return Ct.indexOf(e)>=0||Pt(t)||zt(t)||_(t)}function Bt(t){return 0|M[Object.prototype.toString.call(t)]}function Nt(t,e){return d.allocType(t.type===at?ft:t.type,e)}function jt(t,e){t.type===at?(t.data=H(e),d.freeType(e)):t.data=e}function Ut(t,e,r,n,i,a){var o;if(o=void 0!==Lt[t]?Lt[t]:bt[t]*It[e],a&&(o*=6),i){for(var s=0,l=r;l>=1;)s+=o*l*l,l/=2;return s}return o*r*n}Lt[32854]=2,Lt[tt]=2,Lt[36194]=2,Lt[rt]=4,Lt[ot]=.5,Lt[st]=.5,Lt[lt]=1,Lt[33779]=1,Lt[35986]=.5,Lt[35987]=1,Lt[34798]=1,Lt[35840]=.5,Lt[35841]=.25,Lt[35842]=.5,Lt[35843]=.25,Lt[36196]=.5;var Vt=36161,qt=32854,Ht=[];function Gt(t,e,r){return Ht[t]*e*r}Ht[qt]=2,Ht[32855]=2,Ht[36194]=2,Ht[33189]=2,Ht[36168]=1,Ht[34041]=4,Ht[35907]=4,Ht[34836]=16,Ht[34842]=8,Ht[34843]=6;var Zt=36160,Wt=36161,Yt=3553,Xt=[];Xt[6408]=4,Xt[6407]=3;var $t=[];$t[5121]=1,$t[5126]=4,$t[36193]=2;var Jt=34963;function Kt(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.offset=0,this.stride=0,this.divisor=0}function Qt(t){return function(t){for(var e,r="0123456789abcdef",n="",i=0;i>>4&15)+r.charAt(15&e);return n}(function(t){return function(t){for(var e="",r=0;r<32*t.length;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}(function(t,e){var r,n,i,a,o,s,l,u,c,h,f,p,d=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),m=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,c=0;c>2),r=0;r>5]|=(255&t.charCodeAt(r/8))<<24-r%32;return e}(t),8*t.length))}(function(t){for(var e,r,n="",i=-1;++i>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}(t)))}function te(t,e){return t>>>e|t<<32-e}function ee(t,e){return t>>>e}function re(t,e,r){return t&e^~t&r}function ne(t,e,r){return t&e^t&r^e&r}function ie(t){return te(t,2)^te(t,13)^te(t,22)}function ae(t){return te(t,6)^te(t,11)^te(t,25)}function oe(t){return te(t,7)^te(t,18)^ee(t,3)}function se(t){return te(t,17)^te(t,19)^ee(t,10)}var le=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function ue(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function ce(t){return Array.prototype.slice.call(t)}function he(t){return ce(t).join("")}var fe="xyzw".split(""),pe="dither",de="blend.enable",me="blend.color",ge="blend.equation",ye="blend.func",ve="depth.enable",xe="depth.func",_e="depth.range",be="depth.mask",we="colorMask",Te="cull.enable",ke="cull.face",Ae="frontFace",Me="lineWidth",Se="polygonOffset.enable",Ee="polygonOffset.offset",Ce="sample.alpha",Ie="sample.enable",Le="sample.coverage",Pe="stencil.enable",ze="stencil.mask",Oe="stencil.func",De="stencil.opFront",Re="stencil.opBack",Fe="scissor.enable",Be="scissor.box",Ne="viewport",je="profile",Ue="framebuffer",Ve="vert",qe="frag",He="elements",Ge="primitive",Ze="count",We="offset",Ye="instances",Xe="vao",$e="Width",Je="Height",Ke=Ue+$e,Qe=Ue+Je,tr=Ne+$e,er=Ne+Je,rr="drawingBuffer",nr=rr+$e,ir=rr+Je,ar=[ye,ge,Oe,De,Re,Le,Ne,Be,Ee],or=34962,sr=34963,lr=35664,ur=35665,cr=35666,hr=35667,fr=35668,pr=35669,dr=35671,mr=35672,gr=35673,yr=35674,vr=35675,xr=35676,_r=35678,br=35680,wr=1028,Tr=1029,kr=2305,Ar=7680,Mr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Sr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Er={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Cr={cw:2304,ccw:kr};function Ir(t){return Array.isArray(t)||x(t)||_(t)}function Lr(t){return t.sort((function(t,e){return t===Ne?-1:e===Ne?1:t=1,n>=2,e)}if(4===r){var i=t.data;return new Pr(i.thisDep,i.contextDep,i.propDep,e)}if(5===r)return new Pr(!1,!1,!1,e);if(6===r){for(var a=!1,o=!1,s=!1,l=0;l=1&&(o=!0),c>=2&&(s=!0)}else 4===u.type&&(a=a||u.data.thisDep,o=o||u.data.contextDep,s=s||u.data.propDep)}return new Pr(a,o,s,e)}return new Pr(3===r,2===r,1===r,e)}var Rr=new Pr(!1,!1,!1,(function(){}));function Fr(e,r,n,i,a,s,l,u,c,f,p,d,m,g,y,v){var x=f.Record,_={add:32774,subtract:32778,"reverse subtract":32779};n.ext_blend_minmax&&(_.min=32775,_.max=32776);var b=n.angle_instanced_arrays,w=n.webgl_draw_buffers,T=n.oes_vertex_array_object,k={dirty:!0,profile:v.profile},A={},M=[],E={},C={};function I(t){return t.replace(".","_")}function L(t,e,r){var n=I(t);M.push(t),A[n]=k[n]=!!r,E[n]=e}function P(t,e,r){var n=I(t);M.push(t),Array.isArray(r)?(k[n]=r.slice(),A[n]=r.slice()):k[n]=A[n]=r,C[n]=e}function z(t){return!!isNaN(t)}L(pe,3024),L(de,3042),P(me,"blendColor",[0,0,0,0]),P(ge,"blendEquationSeparate",[32774,32774]),P(ye,"blendFuncSeparate",[1,0,1,0]),L(ve,2929,!0),P(xe,"depthFunc",513),P(_e,"depthRange",[0,1]),P(be,"depthMask",!0),P(we,we,[!0,!0,!0,!0]),L(Te,2884),P(ke,"cullFace",Tr),P(Ae,Ae,kr),P(Me,Me,1),L(Se,32823),P(Ee,"polygonOffset",[0,0]),L(Ce,32926),L(Ie,32928),P(Le,"sampleCoverage",[1,!1]),L(Pe,2960),P(ze,"stencilMask",-1),P(Oe,"stencilFunc",[519,0,-1]),P(De,"stencilOpSeparate",[wr,Ar,Ar,Ar]),P(Re,"stencilOpSeparate",[Tr,Ar,Ar,Ar]),L(Fe,3089),P(Be,"scissor",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),P(Ne,Ne,[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var O={gl:e,context:m,strings:r,next:A,current:k,draw:d,elements:s,buffer:a,shader:p,attributes:f.state,vao:f,uniforms:c,framebuffer:u,extensions:n,timer:g,isBufferArgs:Ir},D={primTypes:F,compareFuncs:Sr,blendFuncs:Mr,blendEquations:_,stencilOps:Er,glTypes:S,orientationType:Cr};w&&(D.backBuffer=[Tr],D.drawBuffer=h(i.maxDrawbuffers,(function(t){return 0===t?[0]:h(t,(function(t){return 36064+t}))})));var R=0;function B(){var e=function(e){var r=e&&e.cache,n=0,i=[],a=[],o=[];function s(){var e=[],r=[];return t((function(){e.push.apply(e,ce(arguments))}),{def:function(){var t="v"+n++;return r.push(t),arguments.length>0&&(e.push(t,"="),e.push.apply(e,ce(arguments)),e.push(";")),t},toString:function(){return he([r.length>0?"var "+r.join(",")+";":"",he(e)])}})}function l(){var e=s(),r=s(),n=e.toString,i=r.toString;function a(t,n){r(t,n,"=",e.def(t,n),";")}return t((function(){e.apply(e,ce(arguments))}),{def:e.def,entry:e,exit:r,save:a,set:function(t,r,n){a(t,r),e(t,r,"=",n,";")},toString:function(){return n()+i()}})}var u=s(),c={};return{global:u,link:function(t,e){var r=e&&e.stable;if(!r)for(var s=0;s1){for(var M=[],S=[],E=0;E>1)",p],");")}function e(){r(d,".drawArraysInstancedANGLE(",[m,g,y,p],");")}h&&"null"!==h?x?t():(r("if(",h,"){"),t(),r("}else{"),e(),r("}")):e()}function w(){function t(){r(l+".drawElements("+[m,y,v,g+"<<(("+v+"-5121)>>1)"]+");")}function e(){r(l+".drawArrays("+[m,g,y]+");")}h&&"null"!==h?x?t():(r("if(",h,"){"),t(),r("}else{"),e(),r("}")):e()}b&&("number"!=typeof p||p>=0)?"string"==typeof p?(r("if(",p,">0){"),_(),r("}else if(",p,"<0){"),w(),r("}")):_():w()}function X(t,e,r,n,i){var a=B(),o=a.proc("body",i);return b&&(a.instancing=o.def(a.shared.extensions,".angle_instanced_arrays")),t(a,o,r,n),a.compile().body}function $(t,e,r,n){q(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,".setVAO(",r.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),Z(t,e,r,n.attributes,(function(){return!0}))),W(t,e,r,n.uniforms,(function(){return!0}),!1),Y(t,e,e,r)}function J(t,e,r,n){function i(){return!0}t.batchId="a1",q(t,e),Z(t,e,r,n.attributes,i),W(t,e,r,n.uniforms,i,!1),Y(t,e,e,r)}function K(t,e,r,n){q(t,e);var i=r.contextDep,a=e.def(),o=e.def();t.shared.props=o,t.batchId=a;var s=t.scope(),l=t.scope();function u(t){return t.contextDep&&i||t.propDep}function c(t){return!u(t)}if(e(s.entry,"for(",a,"=0;",a,"<","a1",";++",a,"){",o,"=","a0","[",a,"];",l,"}",s.exit),r.needsContext&&N(t,l,r.context),r.needsFramebuffer&&j(t,l,r.framebuffer),V(t,l,r.state,u),r.profile&&u(r.profile)&&H(t,l,r,!1,!0),n)r.useVAO?r.drawVAO?u(r.drawVAO)?l(t.shared.vao,".setVAO(",r.drawVAO.append(t,l),");"):s(t.shared.vao,".setVAO(",r.drawVAO.append(t,s),");"):s(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(s(t.shared.vao,".setVAO(null);"),Z(t,s,r,n.attributes,c),Z(t,l,r,n.attributes,u)),W(t,s,r,n.uniforms,c,!1),W(t,l,r,n.uniforms,u,!0),Y(t,s,l,r);else{var h=t.global.def("{}"),f=r.shader.progVar.append(t,l),p=l.def(f,".id"),d=l.def(h,"[",p,"]");l(t.shared.gl,".useProgram(",f,".program);","if(!",d,"){",d,"=",h,"[",p,"]=",t.link((function(t){return X(J,0,r,t,2)})),"(",f,");}",d,".call(this,a0[",a,"],",a,");")}}function Q(t,e,r){var n=e.static[r];if(n&&function(t){if("object"==typeof t&&!G(t)){for(var e=Object.keys(t),r=0;r0)return null;var n=e.static,i=Object.keys(n);if(i.length>0&&"number"==typeof n[i[0]]){for(var a=[],o=0;o0,w={framebuffer:c,draw:m,shader:y,state:g,dirty:b,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(w.profile=function(t){var e,r=t.static,n=t.dynamic;if(je in r){var i=!!r[je];(e=Or((function(t,e){return i}))).enable=i}else if(je in n){var a=n[je];e=Dr(a,(function(t,e){return t.invoke(e,a)}))}return e}(t),w.uniforms=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r,i=e[t];if("number"==typeof i||"boolean"==typeof i)r=Or((function(){return i}));else if("function"==typeof i){var a=i._reglType;"texture2d"===a||"textureCube"===a?r=Or((function(t){return t.link(i)})):("framebuffer"===a||"framebufferCube"===a)&&(r=Or((function(t){return t.link(i.color[0])})))}else G(i)&&(r=Or((function(t){return t.global.def("[",h(i.length,(function(t){return i[t]})),"]")})));r.value=i,n[t]=r})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=Dr(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),w.drawVAO=w.scopeVAO=m.vao,!w.drawVAO&&y.program&&!l&&n.angle_instanced_arrays&&m.static.elements){var T=!0,k=y.program.attributes.map((function(t){var r=e.static[t];return T=T&&!!r,r}));if(T&&k.length>0){var A=f.getVAO(f.createVAO({attributes:k,elements:m.static.elements}));w.drawVAO=new Pr(null,null,null,(function(t,e){return t.link(A)})),w.useVAO=!0}}return l?w.useVAO=!0:w.attributes=function(t){var e=t.static,n=t.dynamic,i={};return Object.keys(e).forEach((function(t){var n=e[t],o=r.id(t),s=new x;if(Ir(n))s.state=1,s.buffer=a.getBuffer(a.create(n,or,!1,!0)),s.type=0;else{var l=a.getBuffer(n);if(l)s.state=1,s.buffer=l,s.type=0;else if("constant"in n){var u=n.constant;s.buffer="null",s.state=2,"number"==typeof u?s.x=u:fe.forEach((function(t,e){e"+e+"?"+n+".constant["+e+"]:0;"})).join(""),"}}else{","if(",o,"(",n,".buffer)){",c,"=",s,".createStream(",or,",",n,".buffer);","}else{",c,"=",s,".getBuffer(",n,".buffer);","}",h,'="type" in ',n,"?",a.glTypes,"[",n,".type]:",c,".dtype;",l.normalized,"=!!",n,".normalized;"),f("size"),f("offset"),f("stride"),f("divisor"),r("}}"),r.exit("if(",l.isStream,"){",s,".destroyStream(",c,");","}"),l}))})),i}(e),w.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=Or((function(t,e){return"number"==typeof r||"boolean"==typeof r?""+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=Dr(e,(function(t,r){return t.invoke(r,e)}))})),n}(o),w}(e,i,o,l);return m.shader.program&&(m.shader.program.attributes.sort((function(t,e){return t.name0&&r(t.shared.current,".dirty=true;"),t.shared.vao&&r(t.shared.vao,".setVAO(null);")}(d,m),function(t,e){var n=t.proc("scope",3);t.batchId="a2";var i=t.shared,a=i.current;if(N(t,n,e.context),e.framebuffer&&e.framebuffer.append(t,n),Lr(Object.keys(e.state)).forEach((function(r){var a=e.state[r],o=a.append(t,n);G(o)?o.forEach((function(e,i){z(e)?n.set(t.next[r],"["+i+"]",e):n.set(t.next[r],"["+i+"]",t.link(e,{stable:!0}))})):zr(a)?n.set(i.next,"."+r,t.link(o,{stable:!0})):n.set(i.next,"."+r,o)})),H(t,n,e,!0,!0),[He,We,Ze,Ye,Ge].forEach((function(r){var a=e.draw[r];if(a){var o=a.append(t,n);z(o)?n.set(i.draw,"."+r,o):n.set(i.draw,"."+r,t.link(o),{stable:!0})}})),Object.keys(e.uniforms).forEach((function(a){var o=e.uniforms[a].append(t,n);Array.isArray(o)&&(o="["+o.map((function(e){return z(e)?e:t.link(e,{stable:!0})}))+"]"),n.set(i.uniforms,"["+t.link(r.id(a),{stable:!0})+"]",o)})),Object.keys(e.attributes).forEach((function(r){var i=e.attributes[r].append(t,n),a=t.scopeAttrib(r);Object.keys(new x).forEach((function(t){n.set(a,"."+t,i[t])}))})),e.scopeVAO){var o=e.scopeVAO.append(t,n);z(o)?n.set(i.vao,".targetVAO",o):n.set(i.vao,".targetVAO",t.link(o,{stable:!0}))}function s(r){var a=e.shader[r];if(a){var o=a.append(t,n);z(o)?n.set(i.shader,"."+r,o):n.set(i.shader,"."+r,t.link(o,{stable:!0}))}}s(Ve),s(qe),Object.keys(e.state).length>0&&(n(a,".dirty=true;"),n.exit(a,".dirty=true;")),n("a1(",t.shared.context,",a0,",t.batchId,");")}(d,m),function(t,e){var r=t.proc("batch",2);t.batchId="0",q(t,r);var n=!1,i=!0;Object.keys(e.context).forEach((function(t){n=n||e.context[t].propDep})),n||(N(t,r,e.context),i=!1);var a=e.framebuffer,o=!1;function s(t){return t.contextDep&&n||t.propDep}a?(a.propDep?n=o=!0:a.contextDep&&n&&(o=!0),o||j(t,r,a)):j(t,r,null),e.state.viewport&&e.state.viewport.propDep&&(n=!0),U(t,r,e),V(t,r,e.state,(function(t){return!s(t)})),(!e.profile||!s(e.profile))&&H(t,r,e,!1,"a1"),e.contextDep=n,e.needsContext=i,e.needsFramebuffer=o;var l=e.shader.progVar;if(l.contextDep&&n||l.propDep)K(t,r,e,null);else{var u=l.append(t,r);if(r(t.shared.gl,".useProgram(",u,".program);"),e.shader.program)K(t,r,e,e.shader.program);else{r(t.shared.vao,".setVAO(null);");var c=t.global.def("{}"),h=r.def(u,".id"),f=r.def(c,"[",h,"]");r(t.cond(f).then(f,".call(this,a0,a1);").else(f,"=",c,"[",h,"]=",t.link((function(t){return X(K,0,e,t,2)})),"(",u,");",f,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&r(t.shared.current,".dirty=true;"),t.shared.vao&&r(t.shared.vao,".setVAO(null);")}(d,m),t(d.compile(),{destroy:function(){m.shader.program.destroy()}})}}}var Br="webglcontextlost",Nr="webglcontextrestored";function jr(t,e){for(var r=0;r0)if(Array.isArray(e[0])){o=I(e);for(var u=1,c=1;c0)if("number"==typeof t[0]){var i=d.allocType(h.dtype,t.length);D(i,t),p(i,n),d.freeType(i)}else if(Array.isArray(t[0])||x(t[0])){r=I(t);var a=C(t,r,h.dtype);p(a,n),d.freeType(a)}}else if(_(t)){r=t.shape;var o=t.stride,s=0,l=0,u=0,c=0;1===r.length?(s=r[0],l=1,u=o[0],c=0):2===r.length&&(s=r[0],l=r[1],u=o[0],c=o[1]);var m=Array.isArray(t.data)?h.dtype:O(t.data),g=d.allocType(m,s*l);R(g,t.data,s,l,u,c,t.offset),p(g,n),d.freeType(g)}return f},r.profile&&(f.stats=h.stats),f.destroy=function(){u(h)},f},createStream:function(t,e){var r=o.pop();return r||(r=new a(t)),r.bind(),l(r,e,35040,0,1,!1),r},destroyStream:function(t){o.push(t)},clear:function(){b(i).forEach(u),o.forEach(u)},getBuffer:function(t){return t&&t._buffer instanceof a?t._buffer:null},restore:function(){b(i).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:l}}(n,f,r),It=function(t,e,r,n){var i={},a=0,o={uint8:B,uint16:N};function s(t){this.id=a++,i[this.id]=this,this.buffer=t,this.primType=4,this.vertCount=0,this.type=0}e.oes_element_index_uint&&(o.uint32=j),s.prototype.bind=function(){this.buffer.bind()};var l=[];function u(n,i,a,o,s,l,u){var c;if(n.buffer.bind(),i){var h=u;!u&&(!x(i)||_(i)&&!x(i.data))&&(h=e.oes_element_index_uint?j:N),r._initBuffer(n.buffer,i,a,h,3)}else t.bufferData(U,l,a),n.buffer.dtype=c||B,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=l;if(c=u,!u){switch(n.buffer.dtype){case B:case 5120:c=B;break;case N:case 5122:c=N;break;case j:case 5124:c=j}n.buffer.dtype=c}n.type=c;var f=s;f<0&&(f=n.buffer.byteLength,c===N?f>>=1:c===j&&(f>>=2)),n.vertCount=f;var p=o;if(o<0){p=4;var d=n.buffer.dimension;1===d&&(p=0),2===d&&(p=1),3===d&&(p=4)}n.primType=p}function c(t){n.elementsCount--,delete i[t.id],t.buffer.destroy(),t.buffer=null}return{create:function(t,e){var i=r.create(null,U,!0),a=new s(i._buffer);function l(t){if(t)if("number"==typeof t)i(t),a.primType=4,a.vertCount=0|t,a.type=B;else{var e=null,r=35044,n=-1,s=-1,c=0,h=0;Array.isArray(t)||x(t)||_(t)?e=t:("data"in t&&(e=t.data),"usage"in t&&(r=E[t.usage]),"primitive"in t&&(n=F[t.primitive]),"count"in t&&(s=0|t.count),"type"in t&&(h=o[t.type]),"length"in t?c=0|t.length:(c=s,h===N||5122===h?c*=2:(h===j||5124===h)&&(c*=4))),u(a,e,r,n,s,c,h)}else i(),a.primType=4,a.vertCount=0,a.type=B;return l}return n.elementsCount++,l(t),l._reglType="elements",l._elements=a,l.subdata=function(t,e){return i.subdata(t,e),l},l.destroy=function(){c(a)},l},createStream:function(t){var e=l.pop();return e||(e=new s(r.create(null,U,!0,!1)._buffer)),u(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){l.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof s?t._elements:null},clear:function(){b(i).forEach(c)}}}(n,k,Ct,f),Lt=function(t,e,r,n,i,a,o){for(var s=r.maxAttributes,l=new Array(s),u=0;u=p.byteLength?c.subdata(p):(c.destroy(),e.buffers[u]=null)),e.buffers[u]||(c=e.buffers[u]=i.create(h,34962,!1,!0)),f.buffer=i.getBuffer(c),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1,s[u]=1):i.getBuffer(h)?(f.buffer=i.getBuffer(h),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1):i.getBuffer(h.buffer)?(f.buffer=i.getBuffer(h.buffer),f.size=0|(+h.size||f.buffer.dimension),f.normalized=!!h.normalized||!1,f.type="type"in h?S[h.type]:f.buffer.dtype,f.offset=0|(h.offset||0),f.stride=0|(h.stride||0),f.divisor=0|(h.divisor||0),f.state=1):"x"in h&&(f.x=+h.x||0,f.y=+h.y||0,f.z=+h.z||0,f.w=+h.w||0,f.state=2)}for(var d=0;d1)for(var y=0;yt&&(t=e.stats.uniformsCount)})),t},n.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)})),t}),{clear:function(){var t=e.deleteShader.bind(e);b(a).forEach(t),a={},b(o).forEach(t),o={},h.forEach((function(t){e.deleteProgram(t.program)})),h.length=0,c={},n.shaderCount=0},program:function(r,i,s,l){var u=c[i];u||(u=c[i]={});var f=u[r];if(f&&(f.refCount++,!l))return f;var m=new p(i,r);return n.shaderCount++,d(m,0,l),f||(u[r]=m),h.push(m),t(m,{destroy:function(){if(m.refCount--,m.refCount<=0){e.deleteProgram(m.program);var t=h.indexOf(m);h.splice(t,1),n.shaderCount--}u[m.vertId].refCount<=0&&(e.deleteShader(o[m.vertId]),delete o[m.vertId],delete c[m.fragId][m.vertId]),Object.keys(c[m.fragId]).length||(e.deleteShader(a[m.fragId]),delete a[m.fragId],delete c[m.fragId])}})},restore:function(){a={},o={};for(var t=0;t=0&&(m[t]=e)}));var v=Object.keys(m);n.textureFormats=v;var k=[];Object.keys(m).forEach((function(t){var e=m[t];k[e]=t}));var A=[];Object.keys(p).forEach((function(t){var e=p[t];A[e]=t}));var M=[];Object.keys(c).forEach((function(t){M[c[t]]=t}));var S=[];Object.keys(h).forEach((function(t){var e=h[t];S[e]=t}));var E=[];Object.keys(u).forEach((function(t){E[u[t]]=t}));var C=v.reduce((function(t,e){var n=m[e];return n===K||n===$||n===K||n===Q||n===et||n===rt||r.ext_srgb&&(n===nt||n===it)?t[n]=n:n===tt||e.indexOf("rgba")>=0?t[n]=X:t[n]=J,t}),{});function I(){this.internalformat=X,this.format=X,this.type=ut,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=37444,this.width=0,this.height=0,this.channels=0}function L(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function P(t,e){if("object"==typeof e&&e){if("premultiplyAlpha"in e&&(t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(t.flipY=e.flipY),"alignment"in e&&(t.unpackAlignment=e.alignment),"colorSpace"in e&&(t.colorSpace=f[e.colorSpace]),"type"in e){var r=e.type;t.type=p[r]}var n=t.width,i=t.height,a=t.channels,o=!1;"shape"in e?(n=e.shape[0],i=e.shape[1],3===e.shape.length&&(a=e.shape[2],o=!0)):("radius"in e&&(n=i=e.radius),"width"in e&&(n=e.width),"height"in e&&(i=e.height),"channels"in e&&(a=e.channels,o=!0)),t.width=0|n,t.height=0|i,t.channels=0|a;var s=!1;if("format"in e){var l=e.format,u=t.internalformat=m[l];t.format=C[u],l in p&&("type"in e||(t.type=p[l])),l in g&&(t.compressed=!0),s=!0}!o&&s?t.channels=bt[t.format]:o&&!s&&t.channels!==_t[t.format]&&(t.format=t.internalformat=_t[t.channels])}}function z(t){e.pixelStorei(37440,t.flipY),e.pixelStorei(37441,t.premultiplyAlpha),e.pixelStorei(37443,t.colorSpace),e.pixelStorei(3317,t.unpackAlignment)}function O(){I.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function D(t,e){var r=null;if(Ft(e)?r=e:e&&(P(t,e),"x"in e&&(t.xOffset=0|e.x),"y"in e&&(t.yOffset=0|e.y),Ft(e.data)&&(r=e.data)),e.copy){var n=a.viewportWidth,i=a.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||i-t.yOffset,t.needsCopy=!0}else if(r){if(x(r))t.channels=t.channels||4,t.data=r,!("type"in e)&&t.type===ut&&(t.type=Bt(r));else if(Pt(r))t.channels=t.channels||4,function(t,e){var r=e.length;switch(t.type){case ut:case ct:case ht:case ft:var n=d.allocType(t.type,r);n.set(e),t.data=n;break;case at:t.data=H(e)}}(t,r),t.alignment=1,t.needsFree=!0;else if(_(r)){var o=r.data;!Array.isArray(o)&&t.type===ut&&(t.type=Bt(o));var s,l,u,c,h,f,p=r.shape,m=r.stride;3===p.length?(u=p[2],f=m[2]):(u=1,f=1),s=p[0],l=p[1],c=m[0],h=m[1],t.alignment=1,t.width=s,t.height=l,t.channels=u,t.format=t.internalformat=_t[u],t.needsFree=!0,function(t,e,r,n,i,a){for(var o=t.width,s=t.height,l=t.channels,u=Nt(t,o*s*l),c=0,h=0;h>=i,r.height>>=i,D(r,n[i]),t.mipmask|=1<=0&&!("faces"in e)&&(t.genMipmaps=!0)}if("mag"in e){var n=e.mag;t.magFilter=c[n]}var i=t.wrapS,a=t.wrapT;if("wrap"in e){var o=e.wrap;"string"==typeof o?i=a=u[o]:Array.isArray(o)&&(i=u[o[0]],a=u[o[1]])}else{if("wrapS"in e){var s=e.wrapS;i=u[s]}if("wrapT"in e){var f=e.wrapT;a=u[f]}}if(t.wrapS=i,t.wrapT=a,"anisotropic"in e&&(e.anisotropic,t.anisotropic=e.anisotropic),"mipmap"in e){var p=!1;switch(typeof e.mipmap){case"string":t.mipmapHint=l[e.mipmap],t.genMipmaps=!0,p=!0;break;case"boolean":p=t.genMipmaps=e.mipmap;break;case"object":t.genMipmaps=!1,p=!0}p&&!("min"in e)&&(t.minFilter=mt)}}function Vt(t,n){e.texParameteri(n,10241,t.minFilter),e.texParameteri(n,10240,t.magFilter),e.texParameteri(n,10242,t.wrapS),e.texParameteri(n,10243,t.wrapT),r.ext_texture_filter_anisotropic&&e.texParameteri(n,34046,t.anisotropic),t.genMipmaps&&(e.hint(33170,t.mipmapHint),e.generateMipmap(n))}var qt=0,Ht={},Gt=n.maxTextureUnits,Zt=Array(Gt).map((function(){return null}));function Wt(t){I.call(this),this.mipmask=0,this.internalformat=X,this.id=qt++,this.refCount=1,this.target=t,this.texture=e.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new It,s.profile&&(this.stats={size:0})}function Yt(t){e.activeTexture(vt),e.bindTexture(t.target,t.texture)}function Xt(){var t=Zt[0];t?e.bindTexture(t.target,t.texture):e.bindTexture(Z,null)}function $t(t){var r=t.texture,n=t.unit,i=t.target;n>=0&&(e.activeTexture(vt+n),e.bindTexture(i,null),Zt[n]=null),e.deleteTexture(r),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete Ht[t.id],o.textureCount--}return t(Wt.prototype,{bind:function(){var t=this;t.bindCount+=1;var r=t.unit;if(r<0){for(var n=0;n0)continue;i.unit=-1}Zt[n]=t,r=n;break}s.profile&&o.maxTextureUnits>l)-o,u.height=u.height||(n.height>>l)-s,Yt(n),F(u,Z,o,s,l),Xt(),j(u),i},i.resize=function(t,r){var a=0|t,o=0|r||a;if(a===n.width&&o===n.height)return i;i.width=n.width=a,i.height=n.height=o,Yt(n);for(var l=0;n.mipmask>>l;++l){var u=a>>l,c=o>>l;if(!u||!c)break;e.texImage2D(Z,l,n.format,u,c,0,n.format,n.type,null)}return Xt(),s.profile&&(n.stats.size=Ut(n.internalformat,n.type,a,o,!1,!1)),i},i._reglType="texture2d",i._texture=n,s.profile&&(i.stats=n.stats),i.destroy=function(){n.decRef()},i},createCube:function(t,r,n,i,a,l){var u=new Wt(W);Ht[u.id]=u,o.cubeCount++;var c=new Array(6);function h(t,e,r,n,i,a){var o,l=u.texInfo;for(It.call(l),o=0;o<6;++o)c[o]=kt();if("number"!=typeof t&&t){if("object"==typeof t)if(e)q(c[0],t),q(c[1],e),q(c[2],r),q(c[3],n),q(c[4],i),q(c[5],a);else if(Lt(l,t),P(u,t),"faces"in t){var f=t.faces;for(o=0;o<6;++o)L(c[o],u),q(c[o],f[o])}else for(o=0;o<6;++o)q(c[o],t)}else{var p=0|t||1;for(o=0;o<6;++o)V(c[o],p,p)}for(L(u,c[0]),l.genMipmaps?u.mipmask=(c[0].width<<1)-1:u.mipmask=c[0].mipmask,u.internalformat=c[0].internalformat,h.width=c[0].width,h.height=c[0].height,Yt(u),o=0;o<6;++o)wt(c[o],Y+o);for(Vt(l,W),Xt(),s.profile&&(u.stats.size=Ut(u.internalformat,u.type,h.width,h.height,l.genMipmaps,!0)),h.format=k[u.internalformat],h.type=A[u.type],h.mag=M[l.magFilter],h.min=S[l.minFilter],h.wrapS=E[l.wrapS],h.wrapT=E[l.wrapT],o=0;o<6;++o)Ct(c[o]);return h}return h(t,r,n,i,a,l),h.subimage=function(t,e,r,n,i){var a=0|r,o=0|n,s=0|i,l=N();return L(l,u),l.width=0,l.height=0,D(l,e),l.width=l.width||(u.width>>s)-a,l.height=l.height||(u.height>>s)-o,Yt(u),F(l,Y+t,a,o,s),Xt(),j(l),h},h.resize=function(t){var r=0|t;if(r!==u.width){h.width=u.width=r,h.height=u.height=r,Yt(u);for(var n=0;n<6;++n)for(var i=0;u.mipmask>>i;++i)e.texImage2D(Y+n,i,u.format,r>>i,r>>i,0,u.format,u.type,null);return Xt(),s.profile&&(u.stats.size=Ut(u.internalformat,u.type,h.width,h.height,!1,!0)),h}},h._reglType="textureCube",h._texture=u,s.profile&&(h.stats=u.stats),h.destroy=function(){u.decRef()},h},clear:function(){for(var t=0;t>r,t.height>>r,0,t.internalformat,t.type,null);else for(var n=0;n<6;++n)e.texImage2D(Y+n,r,t.internalformat,t.width>>r,t.height>>r,0,t.internalformat,t.type,null);Vt(t.texInfo,t.target)}))},refresh:function(){for(var t=0;t=0?f=!0:u.indexOf(d)>=0&&(f=!1))),("depthTexture"in M||"depthStencilTexture"in M)&&(k=!(!M.depthTexture&&!M.depthStencilTexture)),"depth"in M&&("boolean"==typeof M.depth?s=M.depth:(_=M.depth,c=!1)),"stencil"in M&&("boolean"==typeof M.stencil?c=M.stencil:(b=M.stencil,s=!1)),"depthStencil"in M&&("boolean"==typeof M.depthStencil?s=c=M.depthStencil:(w=M.depthStencil,s=!1,c=!1))}else a=o=1;var E=null,C=null,I=null,L=null;if(Array.isArray(h))E=h.map(m);else if(h)E=[m(h)];else for(E=new Array(x),r=0;r0&&(s.depth=r[0].depth,s.stencil=r[0].stencil,s.depthStencil=r[0].depthStencil),r[a]?r[a](s):r[a]=M(s)}return t(n,{width:l,height:l,color:o})}return n(e),t(n,{faces:r,resize:function(t){var e,i=0|t;if(i===n.width)return n;var a=n.color;for(e=0;e=0;--t){var e=oe[t];e&&e(wt,null,0)}n.flush(),A&&A.update()}function fe(){!ce&&oe.length>0&&(ce=s.next(he))}function pe(){ce&&(s.cancel(he),ce=null)}function de(t){t.preventDefault(),pe(),se.forEach((function(t){t()}))}function me(t){n.getError(),a.restore(),Ht.restore(),Ct.restore(),Qt.restore(),te.restore(),ee.restore(),Lt.restore(),A&&A.restore(),re.procs.refresh(),fe(),le.forEach((function(t){t()}))}function ge(e){function r(t,e){var r={},n={};return Object.keys(t).forEach((function(i){var a=t[i];if(o.isDynamic(a))n[i]=o.unbox(a,i);else{if(e&&Array.isArray(a))for(var s=0;s0)return h.call(this,function(t){for(;p.length=0},read:ne,destroy:function(){oe.length=0,pe(),ae&&(ae.removeEventListener(Br,de),ae.removeEventListener(Nr,me)),Ht.clear(),ee.clear(),te.clear(),Lt.clear(),Qt.clear(),It.clear(),Ct.clear(),A&&A.clear(),ue.forEach((function(t){t()}))},_gl:n,_refresh:we,poll:function(){be(),A&&A.update()},now:Te,stats:f,getCachedCode:function(){return p},preloadCachedCode:function(t){Object.entries(t).forEach((function(t){p[t[0]]=t[1]}))}});return r.onDone(null,ke),ke}},"object"==typeof t&&void 0!==e?e.exports=n():r.createREGL=n()})),Xv=f(((t,e)=>{var r=Dg();function n(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*window.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*window.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function i(t){return"function"==typeof t.getContext&&"width"in t&&"height"in t}function a(){var t=document.createElement("canvas");return t.style.position="absolute",t.style.top=0,t.style.left=0,t}e.exports=function(t){if(t?"string"==typeof t&&(t={container:t}):t={},(t=i(t)||"string"==typeof(e=t).nodeName&&"function"==typeof e.appendChild&&"function"==typeof e.getBoundingClientRect?{container:t}:function(t){return"function"==typeof t.drawArrays||"function"==typeof t.drawElements}(t)?{gl:t}:r(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0)).pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;var e;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if("string"==typeof t.container){var o=document.querySelector(t.container);if(!o)throw Error("Element "+t.container+" is not found");t.container=o}i(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=a(),t.container.appendChild(t.canvas),n(t))}else if(!t.canvas){if("undefined"==typeof document)throw Error("Not DOM environment. Use headless-gl.");t.container=document.body||document.documentElement,t.canvas=a(),t.container.appendChild(t.canvas),n(t)}return t.gl||["webgl","experimental-webgl","webgl-experimental"].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(t){}return t.gl})),t.gl}})),$v=f(((t,e)=>{var r=Zv(),n=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],i=t.canvas||document.createElement("canvas"),a=t.font,o="number"==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||n;if(a&&"string"!=typeof a&&(a=r(a)),Array.isArray(s)){if(2===s.length&&"number"==typeof s[0]&&"number"==typeof s[1]){for(var l=[],u=s[0],c=0;u<=s[1];u++)l[c++]=String.fromCharCode(u);s=l}}else s=String(s).split("");e=e.slice(),i.width=e[0],i.height=e[1];var h=i.getContext("2d");h.fillStyle="#000",h.fillRect(0,0,i.width,i.height),h.font=a,h.textAlign="center",h.textBaseline="middle",h.fillStyle="#fff";var f=o[0]/2,p=o[1]/2;for(u=0;ue[0]-o[0]/2&&(f=o[0]/2,p+=o[1]);return i}})),Jv=f((t=>{function e(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(t){return(t>0)-(t<0)},t.abs=function(t){var e=t>>31;return(t^e)-e},t.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},t.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},t.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},t.countTrailingZeros=e,t.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,1+((t|=t>>>8)|t>>>16)},t.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},t.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var r=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|r[t>>>16&255]<<8|r[t>>>24&255]},t.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},t.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},t.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},t.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},t.nextCombination=function(t){var r=t|t-1;return r+1|(~r&-~r)-1>>>e(t)+1}})),Kv=f(((t,e)=>{function r(t,e,n){var i=0|t[n];if(i<=0)return[];var a,o=new Array(i);if(n===t.length-1)for(a=0;a0)return function(t,e){var r,n;for(r=new Array(t),n=0;n{var e=Jv(),r=Kv(),n=ql().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:r([32,0]),UINT16:r([32,0]),UINT32:r([32,0]),BIGUINT64:r([32,0]),INT8:r([32,0]),INT16:r([32,0]),INT32:r([32,0]),BIGINT64:r([32,0]),FLOAT:r([32,0]),DOUBLE:r([32,0]),DATA:r([32,0]),UINT8C:r([32,0]),BUFFER:r([32,0])});var i="undefined"!=typeof Uint8ClampedArray,a="undefined"!=typeof BigUint64Array,o="undefined"!=typeof BigInt64Array,s=window.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=r([32,0])),s.BIGUINT64||(s.BIGUINT64=r([32,0])),s.BIGINT64||(s.BIGINT64=r([32,0])),s.BUFFER||(s.BUFFER=r([32,0]));var l=s.DATA,u=s.BUFFER;function c(t){if(t){var r=t.length||t.byteLength,n=e.log2(r);l[n].push(t)}}function h(t){t=e.nextPow2(t);var r=e.log2(t),n=l[r];return n.length>0?n.pop():new ArrayBuffer(t)}function f(t){return new Uint8Array(h(t),0,t)}function p(t){return new Uint16Array(h(2*t),0,t)}function d(t){return new Uint32Array(h(4*t),0,t)}function m(t){return new Int8Array(h(t),0,t)}function g(t){return new Int16Array(h(2*t),0,t)}function y(t){return new Int32Array(h(4*t),0,t)}function v(t){return new Float32Array(h(4*t),0,t)}function x(t){return new Float64Array(h(8*t),0,t)}function _(t){return i?new Uint8ClampedArray(h(t),0,t):f(t)}function b(t){return a?new BigUint64Array(h(8*t),0,t):null}function w(t){return o?new BigInt64Array(h(8*t),0,t):null}function T(t){return new DataView(h(t),0,t)}function k(t){t=e.nextPow2(t);var r=e.log2(t),i=u[r];return i.length>0?i.pop():new n(t)}t.free=function(t){if(n.isBuffer(t))u[e.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,i=0|e.log2(r);l[i].push(t)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(t){c(t.buffer)},t.freeArrayBuffer=c,t.freeBuffer=function(t){u[e.log2(t.length)].push(t)},t.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return h(t);switch(e){case"uint8":return f(t);case"uint16":return p(t);case"uint32":return d(t);case"int8":return m(t);case"int16":return g(t);case"int32":return y(t);case"float":case"float32":return v(t);case"double":case"float64":return x(t);case"uint8_clamped":return _(t);case"bigint64":return w(t);case"biguint64":return b(t);case"buffer":return k(t);case"data":case"dataview":return T(t);default:return null}return null},t.mallocArrayBuffer=h,t.mallocUint8=f,t.mallocUint16=p,t.mallocUint32=d,t.mallocInt8=m,t.mallocInt16=g,t.mallocInt32=y,t.mallocFloat32=t.mallocFloat=v,t.mallocFloat64=t.mallocDouble=x,t.mallocUint8Clamped=_,t.mallocBigUint64=b,t.mallocBigInt64=w,t.mallocDataView=T,t.mallocBuffer=k,t.clearCache=function(){for(var t=0;t<32;++t)s.UINT8[t].length=0,s.UINT16[t].length=0,s.UINT32[t].length=0,s.INT8[t].length=0,s.INT16[t].length=0,s.INT32[t].length=0,s.FLOAT[t].length=0,s.DOUBLE[t].length=0,s.BIGUINT64[t].length=0,s.BIGINT64[t].length=0,s.UINT8C[t].length=0,l[t].length=0,u[t].length=0}})),tx=f(((t,e)=>{var r=Object.prototype.toString;e.exports=function(t){var e;return"[object Object]"===r.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}})),ex=f(((t,e)=>{e.exports=function(t,e){e||(e=[0,""]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",e}})),rx=f(((t,e)=>{var r=ex();e.exports=a;var n=96;function i(t,e){var n=r(getComputedStyle(t).getPropertyValue(e));return n[0]*a(n[1],t)}function a(t,e){switch(e=e||document.body,t=(t||"px").trim().toLowerCase(),(e===window||e===document)&&(e=document.body),t){case"%":return e.clientHeight/100;case"ch":case"ex":return function(t,e){var r=document.createElement("div");r.style["font-size"]="128"+t,e.appendChild(r);var n=i(r,"font-size")/128;return e.removeChild(r),n}(t,e);case"em":return i(e,"font-size");case"rem":return i(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return n;case"cm":return n/2.54;case"mm":return n/25.4;case"pt":return n/72;case"pc":return n/6}return 1}})),nx=f(((t,e)=>{e.exports=i;var r=(i.canvas=document.createElement("canvas")).getContext("2d"),n=a([32,126]);function i(t,e){Array.isArray(t)&&(t=t.join(", "));var i,o={},s=16,l=.05;e&&(2===e.length&&"number"==typeof e[0]?i=a(e):Array.isArray(e)?i=e:(e.o?i=a(e.o):e.pairs&&(i=e.pairs),e.fontSize&&(s=e.fontSize),null!=e.threshold&&(l=e.threshold))),i||(i=n),r.font=s+"px "+t;for(var u=0;us*l){var p=(f-h)/s;o[c]=1e3*p}}return o}function a(t){for(var e=[],r=t[0];r<=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i{function r(t,e){e||(e={}),("string"==typeof t||Array.isArray(t))&&(e.family=t);var o=Array.isArray(e.family)?e.family.join(", "):e.family;if(!o)throw Error("`family` must be defined");var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||"",u=(t=[e.style||e.fontStyle||"",l,s].join(" ")+"px "+o,e.origin||"top");if(r.cache[o]&&s<=r.cache[o].em)return n(r.cache[o],u);var c=e.canvas||r.canvas,h=c.getContext("2d"),f={upper:void 0!==e.upper?e.upper:"H",lower:void 0!==e.lower?e.lower:"x",descent:void 0!==e.descent?e.descent:"p",ascent:void 0!==e.ascent?e.ascent:"h",tittle:void 0!==e.tittle?e.tittle:"i",overshoot:void 0!==e.overshoot?e.overshoot:"O"},p=Math.ceil(1.5*s);c.height=p,c.width=.5*p,h.font=t;var d="H",m={top:0};h.clearRect(0,0,p,p),h.textBaseline="top",h.fillStyle="black",h.fillText(d,0,0);var g=i(h.getImageData(0,0,p,p));h.clearRect(0,0,p,p),h.textBaseline="bottom",h.fillText(d,0,p);var y=i(h.getImageData(0,0,p,p));m.lineHeight=m.bottom=p-y+g,h.clearRect(0,0,p,p),h.textBaseline="alphabetic",h.fillText(d,0,p);var v=p-i(h.getImageData(0,0,p,p))-1+g;m.baseline=m.alphabetic=v,h.clearRect(0,0,p,p),h.textBaseline="middle",h.fillText(d,0,.5*p);var x=i(h.getImageData(0,0,p,p));m.median=m.middle=p-x-1+g-.5*p,h.clearRect(0,0,p,p),h.textBaseline="hanging",h.fillText(d,0,.5*p);var _=i(h.getImageData(0,0,p,p));m.hanging=p-_-1+g-.5*p,h.clearRect(0,0,p,p),h.textBaseline="ideographic",h.fillText(d,0,p);var b=i(h.getImageData(0,0,p,p));if(m.ideographic=p-b-1+g,f.upper&&(h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.upper,0,0),m.upper=i(h.getImageData(0,0,p,p)),m.capHeight=m.baseline-m.upper),f.lower&&(h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.lower,0,0),m.lower=i(h.getImageData(0,0,p,p)),m.xHeight=m.baseline-m.lower),f.tittle&&(h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.tittle,0,0),m.tittle=i(h.getImageData(0,0,p,p))),f.ascent&&(h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.ascent,0,0),m.ascent=i(h.getImageData(0,0,p,p))),f.descent&&(h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.descent,0,0),m.descent=a(h.getImageData(0,0,p,p))),f.overshoot){h.clearRect(0,0,p,p),h.textBaseline="top",h.fillText(f.overshoot,0,0);var w=a(h.getImageData(0,0,p,p));m.overshoot=w-v}for(var T in m)m[T]/=s;return m.em=s,r.cache[o]=m,n(m,u)}function n(t,e){var r={};for(var n in"string"==typeof e&&(e=t[e]),t)"em"!==n&&(r[n]=t[n]-e);return r}function i(t){for(var e=t.height,r=t.data,n=3;n0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=r,r.canvas=document.createElement("canvas"),r.cache={}})),ax=f(((t,e)=>{var r=Wv(),n=Dg(),i=Yv(),a=Xv(),o=Lv(),s=Dd(),l=$v(),u=Qv(),c=Rg(),h=tx(),f=ex(),p=rx(),d=nx(),m=oy(),g=ix(),y=Ng(),v=Jv().nextPow2,x=new o,_=!1;document.body&&((b=document.body.appendChild(document.createElement("div"))).style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(b).fontStretch&&(_=!0),document.body.removeChild(b));var b,w=function(t){var e;"function"==typeof(e=t)&&e._gl&&e.prop&&e.texture&&e.buffer?(t={regl:t},this.gl=t.regl._gl):this.gl=a(t),this.shader=x.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),x.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};w.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:"\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ vec2(positionOffset.x, -positionOffset.y)))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}",frag:"\n\t\t\tprecision highp float;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform sampler2D atlas;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:t,draw:e,atlas:{}}},w.prototype.update=function(t){var e=this;if("string"==typeof t)t={text:t};else if(!t)return;null!=(t=n(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&&(this.viewport=c(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&&(this.kerning=t.kerning),null!=t.offset&&("number"==typeof t.offset&&(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=w.baseFontSize+"px sans-serif");var i,a=!1,o=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,n){if("string"==typeof t)try{t=r.parse(t)}catch(e){t=r.parse(w.baseFontSize+"px "+t)}else{var i=t.style,s=t.weight,l=t.stretch,u=t.variant;t=r.parse(r.stringify(t)),i&&(t.style=i),s&&(t.weight=s),l&&(t.stretch=l),u&&(t.variant=u)}var c=r.stringify({size:w.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),h=f(t.size),d=Math.round(h[0]*p(h[1]));if(d!==e.fontSize[n]&&(o=!0,e.fontSize[n]=d),!(e.font[n]&&c==e.font[n].baseString||(a=!0,e.font[n]=w.fonts[c],e.font[n]))){var m=t.family.join(", "),y=[t.style];t.style!=t.variant&&y.push(t.variant),t.variant!=t.weight&&y.push(t.weight),_&&t.weight!=t.stretch&&y.push(t.stretch),e.font[n]={baseString:c,family:m,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:g(m,{origin:"top",fontSize:w.baseFontSize,fontStyle:y.join(" ")})},w.fonts[c]=e.font[n]}})),(a||o)&&this.font.forEach((function(n,i){var a=r.stringify({size:e.fontSize[i],family:n.family,stretch:_?n.stretch:void 0,variant:n.variant,weight:n.weight,style:n.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=n.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&&(t.text=e.text)})),"string"==typeof t.text&&t.position&&t.position.length>2){for(var h=Array(.5*t.position.length),x=0;x2){for(var T=!t.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A1?e.align[r]:e.align[0]:e.align;if("number"==typeof n)return n;switch(n){case"right":case"end":return-t;case"center":case"centre":case"middle":return.5*-t}return 0}))),null==this.baseline&&null==t.baseline&&(t.baseline=0),null!=t.baseline&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,-1*(i+="number"==typeof t?t-n.baseline:-n[t])}))),null!=t.color)if(t.color||(t.color="transparent"),"string"!=typeof t.color&&isNaN(t.color)){var H;if("number"==typeof t.color[0]&&t.color.length>this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Z=(t.color.subarray||t.color.slice).bind(t.color),W=0;W4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var $=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array($);for(var J=0;J1?this.counts[J]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[J]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[J]:this.opacity,baseline:null!=this.baselineOffset[J]?this.baselineOffset[J]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[J]?this.alignOffset[J]:this.alignOffset[0]:0,atlas:this.fontAtlas[J]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*J,2*J+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},w.prototype.destroy=function(){},w.prototype.kerning=!0,w.prototype.position={constant:new Float32Array(2)},w.prototype.translate=null,w.prototype.scale=null,w.prototype.font=null,w.prototype.text="",w.prototype.positionOffset=[0,0],w.prototype.opacity=1,w.prototype.color=new Uint8Array([0,0,0,255]),w.prototype.alignOffset=[0,0],w.maxAtlasSize=1024,w.atlasCanvas=document.createElement("canvas"),w.atlasContext=w.atlasCanvas.getContext("2d",{alpha:!1}),w.baseFontSize=64,w.fonts={},e.exports=w})),ox=f(((t,e)=>{var r=Wd(),n=Yv();e.exports=function(t,e,i){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(r){if(r.regl)r.regl.preloadCachedCode(i);else if(!r.pick||a._has("parcoords")){try{r.regl=n({canvas:this,attributes:{antialias:!r.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:e||[],cachedCode:i||{}})}catch(t){o=!1}r.regl||(o=!1),o&&this.addEventListener("webglcontextlost",(function(e){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:e,layer:r.key})}),!1)}})),o||r({container:a._glcontainer.node()}),o}})),sx=f(((t,e)=>{var r=hy(),n=zv(),i=Ov(),a=ax(),o=le(),s=Dr().selectMode,l=ox(),u=Ye(),c=hi(),h=ry().styleTextSelection,f={};function p(t,e,r,n){var i=t._size,a=t.width*n,o=t.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,h=i.w*n,f=i.h*n;return[s+e.domain[0]*h,l+r.domain[0]*f,a-u-(1-e.domain[1])*h,o-c-(1-r.domain[1])*f]}(e.exports=function(t,e,d){if(d.length){var m,g,y=t._fullLayout,v=e._scene,x=e.xaxis,_=e.yaxis;if(v){if(!l(t,["ANGLE_instanced_arrays","OES_element_index_uint"],f))return void v.init();var b=v.count,w=y._glcanvas.data()[0].regl;if(c(t,e,d),v.dirty){if((v.line2d||v.error2d)&&!(v.scatter2d||v.fill2d||v.glText)&&w.clear({}),!0===v.error2d&&(v.error2d=i(w)),!0===v.line2d&&(v.line2d=n(w)),!0===v.scatter2d&&(v.scatter2d=r(w)),!0===v.fill2d&&(v.fill2d=n(w)),!0===v.glText)for(v.glText=new Array(b),m=0;mv.glText.length){var T=b-v.glText.length;for(m=0;mr&&(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var A=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(A)}v.scatter2d&&v.scatter2d.update(v.markerOptions),v.fillOrder=o.repeat(null,b),v.fill2d&&(v.fillOptions=v.fillOptions.map((function(t,e){var r=d[e];if(t&&r&&r[0]&&r[0].trace){var n,i,a=r[0],o=a.trace,s=a.t,l=v.lineOptions[e],u=[];o._ownfill&&u.push(e),o._nexttrace&&u.push(e+1),u.length&&(v.fillOrder[e]=u);var c,h,f=[],p=l&&l.positions||s.positions;if("tozeroy"===o.fill){for(c=0;cc&&isNaN(p[h+1]);)h-=2;0!==p[c+1]&&(f=[p[c],0]),f=f.concat(p.slice(c,h+2)),0!==p[h+1]&&(f=f.concat([p[h],0]))}else if("tozerox"===o.fill){for(c=0;cc&&isNaN(p[h]);)h-=2;0!==p[c]&&(f=[0,p[c+1]]),f=f.concat(p.slice(c,h+2)),0!==p[h]&&(f=f.concat([0,p[h+1]]))}else if("toself"===o.fill||"tonext"===o.fill){for(f=[],n=0,t.splitNull=!0,i=0;i-1;for(m=0;m{var r=iy();r.plot=sx(),e.exports=r})),ux=f(((t,e)=>{e.exports=lx()})),cx=f(((t,e)=>{var r=Tn(),n=Pe(),i=Ce().axisHoverFormat,a=Ot().hovertemplateAttrs,o=Ig(),s=ve().idRegex,l=ye().templatedArray,u=D().extendFlat,c=r.marker,h=c.line,f=u(n("marker.line",{editTypeOverride:"calc"}),{width:u({},h.width,{editType:"calc"}),editType:"calc"}),p=u(n("marker"),{symbol:c.symbol,angle:c.angle,size:u({},c.size,{editType:"markerSize"}),sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,colorbar:c.colorbar,line:f,editType:"calc"});function d(t){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:s[t],editType:"plot"}}}p.color.editType=p.cmin.editType=p.cmax.editType="style",e.exports={dimensions:l("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u({},o.text,{}),hovertext:u({},o.hovertext,{}),hovertemplate:a(),xhoverformat:i("x"),yhoverformat:i("y"),marker:p,xaxes:d("x"),yaxes:d("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:o.selected.marker,editType:"calc"},unselected:{marker:o.unselected.marker,editType:"calc"},opacity:o.opacity}})),hx=f(((t,e)=>{e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i{var r=le(),n=Ne(),i=cx(),a=Ye(),o=Wn(),s=hx(),l=Lg().isOpenSymbol;function u(t,e){function n(n,a){return r.coerce(t,e,i.dimensions,n,a)}n("label");var a=n("values");a&&a.length?n("visible"):e.visible=!1,n("axis.type"),n("axis.matches")}e.exports=function(t,e,c,h){function f(n,a){return r.coerce(t,e,i,n,a)}var p=n(t,e,{name:"dimensions",handleItemDefaults:u}),d=f("diagonal.visible"),m=f("showupperhalf"),g=f("showlowerhalf");if(s(e,p,"values")&&(d||m||g)){f("text"),f("hovertext"),f("hovertemplate"),f("xhoverformat"),f("yhoverformat"),o(t,e,c,h,f,{noAngleRef:!0,noStandOff:!0});var y=l(e.marker.symbol),v=a.isBubble(e);f("marker.line.width",y||v?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,u=e.showlowerhalf,c=e.diagonal.visible,h=new Array(s),f=new Array(s);for(i=0;ia&&l||i{var r=le();e.exports=function(t,e){var n=t._fullLayout,i=e.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=r.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||r.extendFlat(s,o),s}})),dx=f(((t,e)=>{var r=le(),n=xe(),i=oi().calcMarkerSize,a=oi().calcAxisExpansion,o=ni(),s=Qg().markerSelection,l=Qg().markerStyle,u=px(),c=k().BADNUM,h=Cg().TOO_MANY_POINTS;e.exports=function(t,e){var f,p,d,m,g,y,v=e.dimensions,x=e._length,_={},b=_.cdata=[],w=_.data=[],T=e._visibleDims=[];function k(t,n){for(var i=t.makeCalcdata({v:n.values,vcalendar:e.calendar},"v"),a=0;ah?_.sizeAvg||Math.max(_.size,3):i(e,x),p=0;p{(function(){var t,r,n,i,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},r=process.hrtime,i=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*process.uptime(),a=i-o):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(t)})),gx=f(((t,e)=>{var r,n,i,a,o,s=mx(),l=window,u=["moz","webkit"],c="AnimationFrame",h=l["request"+c],f=l["cancel"+c]||l["cancelRequest"+c];for(r=0;!h&&r{e.exports=function(t,e){var r="number"==typeof t,n="number"==typeof e;r&&!n?(e=t,t=0):!r&&!n&&(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var a=new Array(i),o=0,s=t;o{var r=hy(),n=Dg(),i=Fg(),a=gx(),o=yx(),s=Rg(),l=Ng();function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=r(t),this.canvas=this.scatter.canvas}function c(t,e,r){return(null!=t.id?t.id:t)<<16|(255&e)<<8|255&r}function h(t,e,r){let n,i,a,o,s,l,u,c,h=t[e],f=t[r];return h.length>2?(n=h[0],a=h[2],i=h[1],o=h[3]):h.length?(n=i=h[0],a=o=h[1]):(n=h.x,i=h.y,a=h.x+h.width,o=h.y+h.height),f.length>2?(s=f[0],u=f[2],l=f[1],c=f[3]):f.length?(s=l=f[0],u=c=f[1]):(s=f.x,l=f.y,u=f.x+f.width,c=f.y+f.height),[s,i,u,o]}function f(t){if("number"==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];{let e=s(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}}e.exports=u,u.prototype.render=function(...t){return t.length&&this.update(...t),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=a((()=>{this.draw(),this.dirty=!0,this.planned=null}))):(this.draw(),this.dirty=!0,a((()=>{this.dirty=!1}))),this)},u.prototype.update=function(...t){if(!t.length)return;for(let e=0;ee||!u.lower&&t{e[a+r]=n}))}this.scatter.draw(...e)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((t=>{t.buffer&&t.buffer.destroy&&t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}})),xx=f(((t,e)=>{var r=vx(),n=le(),i=xe(),a=Dr().selectMode;function o(t,e){var o,s,l,u,c,h=t._fullLayout,f=h._size,p=e.trace,d=e.t,m=h._splomScenes[p.uid],g=m.matrixOptions,y=g.cdata,v=h._glcanvas.data()[0].regl,x=h.dragmode;if(0!==y.length){g.lower=p.showupperhalf,g.upper=p.showlowerhalf,g.diagonal=p.diagonal.visible;var _=p._visibleDims,b=y.length,w=m.viewOpts={};for(w.ranges=new Array(b),w.domains=new Array(b),c=0;c<_.length;c++){l=_[c];var T=w.ranges[c]=new Array(4),k=w.domains[c]=new Array(4);(o=i.getFromId(t,p._diag[l][0]))&&(T[0]=o._rl[0],T[2]=o._rl[1],k[0]=o.domain[0],k[2]=o.domain[1]),(s=i.getFromId(t,p._diag[l][1]))&&(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}var A=t._context.plotGlPixelRatio,M=f.l*A,S=f.b*A,E=f.w*A,C=f.h*A;w.viewport=[M,S,E+M,C+S],!0===m.matrix&&(m.matrix=r(v));var I=h.clickmode.indexOf("select")>-1,L=!0;if(a(x)||p.selectedpoints||I){var P=p._length;if(p.selectedpoints){m.selectBatch=p.selectedpoints;var z=p.selectedpoints,O={};for(l=0;l{t.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a{var r=_x(),n=Eg().calcHover,i=ir().getFromId,a=D().extendFlat;function o(t,e,i,a){var o=t.cd[0].trace,s=t.scene.matrixOptions.cdata,l=t.xa,u=t.ya,c=l.c2p(e),h=u.c2p(i),f=t.distance,p=r.getDimIndex(o,l),d=r.getDimIndex(o,u);if(!1===p||!1===d)return[t];for(var m,g,y=s[p],v=s[d],x=f,_=0;_{var r=le(),n=r.pushUnique,i=Ye(),a=_x();e.exports=function(t,e){var o=t.cd,s=o[0].trace,l=o[0].t,u=t.scene,c=u.matrixOptions.cdata,h=t.xaxis,f=t.yaxis,p=[];if(!u)return p;var d=!i.hasMarkers(s)&&!i.hasText(s);if(!0!==s.visible||d)return p;var m=a.getDimIndex(s,h),g=a.getDimIndex(s,f);if(!1===m||!1===g)return p;var y=l.xpx[m],v=l.ypx[g],x=c[m],_=c[g],b=(t.scene.selectBatch||[]).slice(),w=[];if(!1!==e&&!e.degenerate)for(var T=0;T{var r=le(),n=ni(),i=Qg().markerStyle;e.exports=function(t,e){var a=e.trace,o=t._fullLayout._splomScenes[a.uid];if(o){n(t,a),r.extendFlat(o.matrixOptions,i(t,a));var s=r.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}})),kx=f(((t,e)=>{var r=qt(),n=Aa();e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:cx(),supplyDefaults:fx(),colorbar:pi(),calc:dx(),plot:xx(),hoverPoints:bx().hoverPoints,selectPoints:wx(),editStyle:Tx(),meta:{}},r.register(n)})),Ax=f(((t,e)=>{var r=zv(),n=qt(),i=ox(),a=we().getModuleCalcData,o=Si(),s=xe().getFromId,l=ir().shouldShowZeroLine,u="splom",c={};function h(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o{var r=kx();r.basePlotModule=Ax(),e.exports=r})),Sx=f(((t,e)=>{e.exports=Mx()})),Ex=f(((t,e)=>{var r=Pe(),n=Ie(),i=R(),a=ka().attributes,o=D().extendFlat,s=ye().templatedArray;e.exports={domain:a({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({autoShadowDflt:!0,editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:s("dimension",{label:{valType:"string",editType:"plot"},tickvals:o({},n.tickvals,{editType:"plot"}),ticktext:o({},n.ticktext,{editType:"plot"}),tickformat:o({},n.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:o({editType:"calc"},r("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}})),Cx=f(((t,e)=>{e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}})),Ix=f(((t,e)=>{var r=Gt();function n(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:n,descend:r,wrap:n,unwrap:function(t){return t[0]}}})),Lx=f(((t,e)=>{var r=Cx(),n=v(),i=Ix().keyFun,a=Ix().repeat,o=le().sorterAsc,s=le().strTranslate,l=r.bar.snapRatio;function u(t,e){return t*(1-l)+e*l}var c=r.bar.snapClose;function h(t,e){return t*(1-c)+e*c}function f(t,e,r,n){if(function(t,e){for(var r=0;r=e[r][0]&&t<=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i<0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*fe){f=n;break}}if(a=c,isNaN(a)&&(a=isNaN(h)||isNaN(f)?isNaN(h)?f:h:e-u[h][1]t[1]+n||e=.9*t[1]+.1*t[0]?"n":e<=.9*t[0]+.1*t[1]?"s":"ns"}(d,e);m&&(o.interval=l[a],o.intervalPix=d,o.region=m)}}if(t.ordinal&&!o.region){var y=t.unitTickvals,v=t.unitToPaddedPx.invert(e);for(n=0;n=x[0]&&v<=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){n.event.sourceEvent.stopPropagation();var i=e.height-n.mouse(t)[1]-2*r.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[i-a.grabPoint,i+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(i)].sort(o),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),_(t.parentNode)}function T(t,e){var i=b(e,e.height-n.mouse(t)[1]-2*r.verticalPadding),a="crosshair";i.clickableOrdinalRange?a="pointer":i.region&&(a=i.region+"-resize"),n.select(document.body).style("cursor",a)}function k(t){t.on("mousemove",(function(t){n.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on("mouseleave",(function(t){t.parent.inBrushDrag||y()})).call(n.behavior.drag().on("dragstart",(function(t){!function(t,e){n.event.sourceEvent.stopPropagation();var i=e.height-n.mouse(t)[1]-2*r.verticalPadding,a=e.unitToPaddedPx.invert(i),o=e.brush,s=b(e,i),l=s.interval,u=o.svgBrush;if(u.wasDragged=!1,u.grabbingBar="ns"===s.region,u.grabbingBar){var c=l.map(e.unitToPaddedPx);u.grabPoint=i-c[0]-r.verticalPadding,u.barLength=c[1]-c[0]}u.clickableOrdinalRange=s.clickableOrdinalRange,u.stayingIntervals=e.multiselect&&o.filterSpecified?o.filter.getConsolidated():[],l&&(u.stayingIntervals=u.stayingIntervals.filter((function(t){return t[0]!==l[0]&&t[1]!==l[1]}))),u.startExtent=s.region?l["s"===s.region?1:0]:a,e.parent.inBrushDrag=!0,u.brushStartCallback()}(this,t)})).on("drag",(function(t){w(this,t)})).on("dragend",(function(t){!function(t,e){var r=e.brush,i=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,n.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&&e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&&M(r)):M(r),a.brushCallback(e),_(t.parentNode),void a.brushEndCallback(r.filterSpecified?i.getConsolidated():[]);var s=function(){i.set(i.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]a.newExtent[0];a.extent=a.stayingIntervals.concat(u?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(e),u?_(t.parentNode,s):(s(),_(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?i.getConsolidated():[])}(this,t)})))}function A(t,e){return t[0]-e[0]}function M(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){return function(e){var r=e.brush,n=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(r),i=n.slice();r.filter.set(i),t()}}function E(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&&i[0]<=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&&n[0][0]>n[0][1]&&(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var s=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(o)})).sort(A)).length&&r[0][0]===-1/0&&r[0][1]===1/0&&(r=[[0,-1]]),t=E(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return s.set(r),{filter:s,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:S(i),brushEndCallback:a}}},ensureAxisBrush:function(t,e,n){var o=t.selectAll("."+r.cn.axisBrush).data(a,i);o.enter().append("g").classed(r.cn.axisBrush,!0),function(t,e,n){var i=n._context.staticPlot,o=t.selectAll(".background").data(a);o.enter().append("rect").classed("background",!0).call(p).call(d).style("pointer-events",i?"none":"auto").attr("transform",s(0,r.verticalPadding)),o.call(k).attr("height",(function(t){return t.height-r.verticalPadding}));var l=t.selectAll(".highlight-shadow").data(a);l.enter().append("line").classed("highlight-shadow",!0).attr("x",-r.bar.width/2).attr("stroke-width",r.bar.width+r.bar.strokeWidth).attr("stroke",e).attr("opacity",r.bar.strokeOpacity).attr("stroke-linecap","butt"),l.attr("y1",(function(t){return t.height})).call(x);var u=t.selectAll(".highlight").data(a);u.enter().append("line").classed("highlight",!0).attr("x",-r.bar.width/2).attr("stroke-width",r.bar.width-r.bar.strokeWidth).attr("stroke",r.bar.fillColor).attr("opacity",r.bar.fillOpacity).attr("stroke-linecap","butt"),u.attr("y1",(function(t){return t.height})).call(x)}(o,e,n)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(o)})),t=e.multiselect?E(t.sort(A)):[t[0]]):t=[t.sort(o)],e.tickvals){var r=e.tickvals.slice().sort(o);if(!(t=t.map((function(t){var e=[f(0,r,t[0],[]),f(1,r,t[1],[])];if(e[1]>e[0])return e})).filter((function(t){return t}))).length)return}return t.length>1?t:t[0]}}})),Px=f(((t,e)=>{var r=le(),n=Ee().hasColorscale,i=qe(),a=ka().defaults,o=Ne(),s=ir(),l=Ex(),u=Lx(),c=Cx().maxDimensionCount,h=hx();function f(t,e,n,i){function a(n,i){return r.coerce(t,e,l.dimensions,n,i)}var o=a("values"),c=a("visible");if(o&&o.length||(c=e.visible=!1),c){a("label"),a("tickvals"),a("ticktext"),a("tickformat");var h=a("range");e._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:h},s.setConvert(e._ax,i.layout),a("multiselect");var f=a("constraintrange");f&&(e.constraintrange=u.cleanRanges(f,e))}}e.exports=function(t,e,s,u){function p(n,i){return r.coerce(t,e,l,n,i)}var d=t.dimensions;Array.isArray(d)&&d.length>c&&(r.log("parcoords traces support up to "+c+" dimensions at the moment"),d.splice(c));var m=o(t,e,{name:"dimensions",layout:u,handleItemDefaults:f}),g=function(t,e,a,o,s){var l=s("line.color",a);if(n(t,"line")&&r.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),i(t,e,o,s,{prefix:"line.",cLetter:"c"}),l.length;e.line.color=a}return 1/0}(t,e,s,u,p);a(e,u,p),(!Array.isArray(m)||!m.length)&&(e.visible=!1),h(e,m,"values",g);var y=r.extendFlat({},u.font,{size:Math.round(u.font.size/1.2)});r.coerceFont(p,"labelfont",y),r.coerceFont(p,"tickfont",y,{autoShadowDflt:!0}),r.coerceFont(p,"rangefont",y),p("labelangle"),p("labelside"),p("unselected.line.color"),p("unselected.line.opacity")}})),zx=f(((t,e)=>{var r=le().isArrayOrTypedArray,n=We(),i=Ix().wrap;e.exports=function(t,e){var a,o;return n.hasColorscale(e,"line")&&r(e.line.color)?(a=e.line.color,o=n.extractOpts(e.line).colorscale,n.calc(t,e,{vals:a,containerStr:"line",cLetter:"c"})):(a=function(t){for(var e=new Array(t),r=0;r>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),Dx.default[t])a=Dx.default[t].slice(),i="rgb";else if("transparent"===t)o=0,i="rgb",a=[0,0,0];else if("#"===t[0]){var s=t.slice(1),l=s.length;o=1,l<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===l&&(o=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===l&&(o=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),i="rgb"}else if(n=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var u=n[1],c="cmyk"===(i=u.replace(/a$/,""))?4:"gray"===i?1:3;a=n[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===i&&(i=a.shift()),o=(a=a.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===i?255*t:"h"===i[0]||"l"===i[0]&&!e?100*t:"lab"===i?125*t:"lch"===i?e<2?150*t:360*t:"o"!==i[0]||e?"oklab"===i?.4*t:"oklch"===i?e<2?.4*t:360*t:t:t;if("h"===i[e]||2===e&&"h"===i[i.length-1]){if(void 0!==Fx[t])return Fx[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)}))).length>c?a.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(a=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=(null==(r=null==(e=t.match(/([a-z])/gi))?void 0:e.join(""))?void 0:r.toLowerCase())||"rgb");return{space:i,values:a,alpha:o}}var Dx,Rx,Fx,Bx,Nx,jx=h((()=>{var r,n;n=null!=(r=Id())?t(s(r)):{},Dx=d(e(n,"default",{value:r,enumerable:!0}),r),Rx=Ox,Fx={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}})),Ux=h((()=>{Bx={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}})),Vx=h((()=>{Ux(),Nx={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=0;if(0===s)return[a=255*l,a,a];for(e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];u<3;)(n=o+1/3*-(u-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u++]=255*a;return i}},Bx.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&&(e=4+(n-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+s)/2,[e,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}})),qx={};function Hx(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,r=Rx(t);if(!r.space)return[];let n="h"===r.space[0]?Nx.min:Bx.min,i="h"===r.space[0]?Nx.max:Bx.max;return(e=Array(3))[0]=Math.min(Math.max(r.values[0],n[0]),i[0]),e[1]=Math.min(Math.max(r.values[1],n[1]),i[1]),e[2]=Math.min(Math.max(r.values[2],n[2]),i[2]),"h"===r.space[0]&&(e=Nx.rgb(e)),e.push(Math.min(Math.max(r.alpha,0),1)),e}p(qx,{default:()=>Hx});var Gx=h((()=>{jx(),Ux(),Vx()})),Zx=f((t=>{var e=le().isTypedArray;t.convertTypedArray=function(t){return e(t)?Array.prototype.slice.call(t):t},t.isOrdinal=function(t){return!!t.tickvals},t.isVisible=function(t){return t.visible||!("visible"in t)}})),Wx=f(((t,e)=>{var r=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join("\n"),n=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join("\n"),i=Cx().maxDimensionCount,a=le(),o=1e-6,s=2048,l=new Uint8Array(4),u=new Uint8Array(4),c={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function h(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function f(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var u=Math.min(n,i-l*n);0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],h(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,e(a),l*n+u>>8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;ac&&(c=t[n].dim1.canvasX,a=n);0===l&&h(A,0,0,o.canvasWidth,o.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n<64;n++){var a=!t&&n{var r=v(),n=le(),i=n.isArrayOrTypedArray,a=n.numberFormat,o=(Gx(),m(qx)).default,s=ir(),l=n.strRotate,u=n.strTranslate,c=Se(),h=Qe(),f=We(),p=Ix(),d=p.keyFun,g=p.repeat,y=p.unwrap,x=Zx(),_=Cx(),b=Lx(),w=Wx();function T(t,e,r){return n.aggNums(t,null,e,r)}function k(t,e){return M(T(Math.min,t,e),T(Math.max,t,e))}function A(t){var e=t.range;return e?M(e[0],e[1]):k(t.values,t._length)}function M(t,e){return(isNaN(t)||!isFinite(t))&&(t=0),(isNaN(e)||!isFinite(e))&&(e=0),t===e&&(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function S(t,e,n,i,o){var s=A(n);return i?r.scale.ordinal().domain(i.map(function(t,e){return e?function(r,n){var i=e[n];return null==i?t(r):i}:t}(a(n.tickformat),o))).range(i.map((function(r){var n=(r-s[0])/(s[1]-s[0]);return t-e+n*(2*e-t)}))):r.scale.linear().domain(s).range([t-e,e])}function E(t){if(t.tickvals){var e=A(t);return r.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function C(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){var e=o(t[1]);return r.rgb("rgb("+e[0]+","+e[1]+","+e[2]+")")})),i="rgb".split("").map((function(t){return r.scale.linear().clamp(!0).domain(e).range(n.map(function(t){return function(e){return e[t]}}(t)))}));return function(t){return i.map((function(e){return e(t)}))}}function I(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function L(t,e,i){var a=y(e),s=a.trace,l=x.convertTypedArray(a.lineColor),u=s.line,c={color:o(s.unselected.line.color),opacity:s.unselected.line.opacity},h=f.extractOpts(u),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,m=s.dimensions,g=t.width,v=s.labelangle,b=s.labelside,w=s.labelfont,T=s.tickfont,k=s.rangefont,M=n.extendDeepNoArrays({},u,{color:l.map(r.scale.linear().domain(A({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:_.blockLineCount,canvasOverdrag:_.overdrag*_.canvasPixelRatio}),S=Math.floor(g*(d.x[1]-d.x[0])),E=Math.floor(t.height*(d.y[1]-d.y[0])),I=t.margin||{l:80,r:80,t:100,b:80},L=S,P=E;return{key:i,colCount:m.filter(x.isVisible).length,dimensions:m,tickDistance:_.tickDistance,unitToColor:C(p),lines:M,deselectedLines:c,labelAngle:v,labelSide:b,labelFont:w,tickFont:T,rangeFont:k,layoutWidth:g,layoutHeight:t.height,domain:d,translateX:d.x[0]*g,translateY:t.height-d.y[1]*t.height,pad:I,canvasWidth:L*_.canvasPixelRatio+2*M.canvasOverdrag,canvasHeight:P*_.canvasPixelRatio,width:L,height:P,canvasPixelRatio:_.canvasPixelRatio}}function P(t,e,o){var s=o.width,l=o.height,u=o.dimensions,c=o.canvasPixelRatio,h=function(t){return s*t/Math.max(1,o.colCount-1)},f=_.verticalPadding/l,p=function(t,e){return r.scale.linear().range([e,t-e])}(l,_.verticalPadding),d={key:o.key,xScale:h,model:o,inBrushDrag:!1},m={};return d.dimensions=u.filter(x.isVisible).map((function(s,u){var g=function(t,e){return r.scale.linear().domain(A(t)).range([e,1-e])}(s,f),y=m[s.label];m[s.label]=(y||0)+1;var v=s.label+(y?"__"+y:""),w=s.constraintrange,T=w&&w.length;T&&!i(w[0])&&(w=[w]);var k=T?w.map((function(t){return t.map(g)})):[[-1/0,1/0]],M=s.values;M.length>s._length&&(M=M.slice(0,s._length));var C,L=s.tickvals;function P(t,e){return{val:t,text:C[e]}}function z(t,e){return t.val-e.val}if(i(L)&&L.length){n.isTypedArray(L)&&(L=Array.from(L)),C=s.ticktext,i(C)&&C.length?C.length>L.length?C=C.slice(0,L.length):L.length>C.length&&(L=L.slice(0,C.length)):C=L.map(a(s.tickformat));for(var O=1;O=n||l>=i)return;var u=t.lineLayer.readPixel(s,i-1-l),c=0!==u[3],h=c?u[2]+256*(u[1]+256*u[0]):null,f={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:h};h!==C&&(c?a.hover(f):a.unhover&&a.unhover(f),C=h)}})),E.style("opacity",(function(t){return t.pick?0:1})),p.style("background","rgba(255, 255, 255, 0)");var B=p.selectAll("."+_.cn.parcoords).data(S,d);B.exit().remove(),B.enter().append("g").classed(_.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),B.attr("transform",(function(t){return u(t.model.translateX,t.model.translateY)}));var N=B.selectAll("."+_.cn.parcoordsControlView).data(g,d);N.enter().append("g").classed(_.cn.parcoordsControlView,!0),N.attr("transform",(function(t){return u(t.model.pad.l,t.model.pad.t)}));var j=N.selectAll("."+_.cn.yAxis).data((function(t){return t.dimensions}),d);j.enter().append("g").classed(_.cn.yAxis,!0),N.each((function(t){D(j,t,v)})),E.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=w(this,t):t.lineLayer.update(t),(t.key||0===t.key)&&(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),j.attr("transform",(function(t){return u(t.xScale(t.xIndex),0)})),j.call(r.behavior.drag().origin((function(t){return t})).on("drag",(function(t){var e=t.parent;A.linePickActive(!1),t.x=Math.max(-_.overdrag,Math.min(t.model.width+_.overdrag,r.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,j.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),D(j,e,v),j.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr("transform",(function(t){return u(t.xScale(t.xIndex),0)})),r.select(this).attr("transform",u(t.x,0)),j.each((function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!I(e)),e.focusLayer.render&&e.focusLayer.render(e.panels)})).on("dragend",(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,D(j,e,v),r.select(this).attr("transform",(function(t){return u(t.x,0)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!I(e)),e.focusLayer&&e.focusLayer.render(e.panels),e.pickLayer&&e.pickLayer.render(e.panels,!0),A.linePickActive(!0),a&&a.axesMoved&&a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),j.exit().remove();var U=j.selectAll("."+_.cn.axisOverlays).data(g,d);U.enter().append("g").classed(_.cn.axisOverlays,!0),U.selectAll("."+_.cn.axis).remove();var V=U.selectAll("."+_.cn.axis).data(g,d);V.enter().append("g").classed(_.cn.axis,!0),V.each((function(t){var e=t.model.height/t.model.tickDistance,n=t.domainScale,i=n.domain();r.select(this).call(r.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return x.isOrdinal(t)?e:R(t.model.dimensions[t.visibleIndex],e)})).scale(n)),h.font(V.selectAll("text"),t.model.tickFont)})),V.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),V.selectAll("text").style("cursor","default");var q=U.selectAll("."+_.cn.axisHeading).data(g,d);q.enter().append("g").classed(_.cn.axisHeading,!0);var H=q.selectAll("."+_.cn.axisTitle).data(g,d);H.enter().append("text").classed(_.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",o?"none":"auto"),H.text((function(t){return t.label})).each((function(e){var n=r.select(this);h.font(n,e.model.labelFont),c.convertToTspans(n,t)})).attr("transform",(function(t){var e=O(t.model.labelAngle,t.model.labelSide),r=_.axisTitleOffset;return(e.dir>0?"":u(0,2*r+t.model.height))+l(e.degrees)+u(-r*e.dx,-r*e.dy)})).attr("text-anchor",(function(t){var e=O(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)>Math.abs(e.dy)?e.dir*e.dx<0?"start":"end":"middle"}));var G=U.selectAll("."+_.cn.axisExtent).data(g,d);G.enter().append("g").classed(_.cn.axisExtent,!0);var Z=G.selectAll("."+_.cn.axisExtentTop).data(g,d);Z.enter().append("g").classed(_.cn.axisExtentTop,!0),Z.attr("transform",u(0,-_.axisExtentOffset));var W=Z.selectAll("."+_.cn.axisExtentTopText).data(g,d);W.enter().append("text").classed(_.cn.axisExtentTopText,!0).call(z),W.text((function(t){return F(t,!0)})).each((function(t){h.font(r.select(this),t.model.rangeFont)}));var Y=G.selectAll("."+_.cn.axisExtentBottom).data(g,d);Y.enter().append("g").classed(_.cn.axisExtentBottom,!0),Y.attr("transform",(function(t){return u(0,t.model.height+_.axisExtentOffset)}));var X=Y.selectAll("."+_.cn.axisExtentBottomText).data(g,d);X.enter().append("text").classed(_.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(z),X.text((function(t){return F(t,!1)})).each((function(t){h.font(r.select(this),t.model.rangeFont)})),b.ensureAxisBrush(U,T,t)}})),Xx=f(((t,e)=>{var r=Yx(),n=ox(),i=Zx().isVisible,a={};function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}(e.exports=function(t,e){var s=t._fullLayout;if(n(t,[],a)){var l={},u={},c={},h={},f=s._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=h[r]=n.index;l[r]=t.data[i].dimensions,u[r]=t.data[i].dimensions.slice()})),r(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,r,n){var i=u[e][r],a=n.map((function(t){return t.slice()})),o="dimensions["+r+"].constraintrange",l=s._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===l[o]){var f=i.constraintrange;l[o]=f||null}var p=t._fullData[c[e]].dimensions[r];a.length?(1===a.length&&(a=a[0]),i.constraintrange=a,p.constraintrange=a.slice(),a=[a]):(delete i.constraintrange,delete p.constraintrange,a=null);var d={};d[o]=a,t.emit("plotly_restyle",[d,[h[e]]])},hover:function(e){t.emit("plotly_hover",e)},unhover:function(e){t.emit("plotly_unhover",e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,u[e].filter(i));l[e].sort(n),u[e].filter((function(t){return!i(t)})).sort((function(t){return u[e].indexOf(t)})).forEach((function(t){l[e].splice(l[e].indexOf(t),1),l[e].splice(u[e].indexOf(t),0,t)})),t.emit("plotly_restyle",[{dimensions:[l[e]]},[h[e]]])}})}}).reglPrecompiled=a})),$x=f((t=>{var e=v(),r=we().getModuleCalcData,n=Xx(),i=Ae();t.name="parcoords",t.plot=function(t){var e=r(t.calcdata,"parcoords")[0];e.length&&n(t,e)},t.clean=function(t,e,r,n){var i=n._has&&n._has("parcoords"),a=e._has&&e._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())},t.toSVG=function(t){var r=t._fullLayout._glimages,n=e.select(t).selectAll(".svg-container");n.filter((function(t,e){return e===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var t=this,e=t.toDataURL("image/png");r.append("svg:image").attr({xmlns:i.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:t.style.width,height:t.style.height})})),window.setTimeout((function(){e.selectAll("#filterBarPattern").attr("id","filterBarPattern")}),60)}})),Jx=f(((t,e)=>{e.exports={attributes:Ex(),supplyDefaults:Px(),calc:zx(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:$x(),categories:["gl","regl","noOpacity","noHover"],meta:{}}})),Kx=f(((t,e)=>{var r=Jx();r.plot=Xx(),e.exports=r})),Qx=f(((t,e)=>{e.exports=Kx()})),t_=f(((t,e)=>{var r=D().extendFlat,n=j(),i=R(),a=Pe(),o=Ot().hovertemplateAttrs,s=ka().attributes,l=r({editType:"calc"},a("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:o({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});e.exports={domain:s({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:r({},n.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:o({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:i({editType:"calc"}),tickfont:i({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:l,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}})),e_=f(((t,e)=>{var r=le(),n=Ee().hasColorscale,i=qe(),a=ka().defaults,o=Ne(),s=t_(),l=hx(),u=S().isTypedArraySpec;function c(t,e){function n(n,i){return r.coerce(t,e,s.dimensions,n,i)}var i=n("values"),a=n("visible");if(i&&i.length||(a=e.visible=!1),a){n("label"),n("displayindex",e._index);var o,l=t.categoryarray,c=r.isArrayOrTypedArray(l)&&l.length>0||u(l);c&&(o="array");var h=n("categoryorder",o);"array"===h?(n("categoryarray"),n("ticktext")):(delete t.categoryarray,delete t.ticktext),!c&&"array"===h&&(e.categoryorder="trace")}}e.exports=function(t,e,u,h){function f(n,i){return r.coerce(t,e,s,n,i)}var p=o(t,e,{name:"dimensions",handleItemDefaults:c}),d=function(t,e,a,o,s){s("line.shape"),s("line.hovertemplate");var l=s("line.color",o.colorway[0]);if(n(t,"line")&&r.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),i(t,e,o,s,{prefix:"line.",cLetter:"c"}),l.length;e.line.color=a}return 1/0}(t,e,u,h,f);a(e,h,f),(!Array.isArray(p)||!p.length)&&(e.visible=!1),l(e,p,"values",d),f("hoveron"),f("hovertemplate"),f("arrangement"),f("bundlecolors"),f("sortpaths"),f("counts");var m=h.font;r.coerceFont(f,"labelfont",m,{overrideDflt:{size:Math.round(m.size)}}),r.coerceFont(f,"tickfont",m,{autoShadowDflt:!0,overrideDflt:{size:Math.round(m.size/1.2)}})}})),r_=f(((t,e)=>{var r=Ix().wrap,n=Ee().hasColorscale,i=Ze(),a=ie(),o=Qe(),s=le(),l=T();function u(t,e,r,n){return{dimensionInd:t,categoryInd:e,categoryValue:r,displayInd:e,categoryLabel:n,valueInds:[],count:0,dragY:null}}function c(t,e,r){t.valueInds.push(e),t.count+=r}function h(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function f(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var p=s.filterVisible(e.dimensions);if(0===p.length)return[];var d,m,g,y=p.map((function(t){var e;if("trace"===t.categoryorder)e=null;else if("array"===t.categoryorder)e=t.categoryarray;else{e=a(t.values);for(var r=!0,n=0;n=t.length||void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(r))for(e=0;e{var r=v(),n=(Rp(),m(Dp)).interpolateNumber,i=On(),a=Or(),o=le(),s=o.strTranslate,l=Qe(),u=O(),c=Se();function h(t,e,n,i){var a=e._context.staticPlot,u=t.map(N.bind(0,e,n)),h=i.selectAll("g.parcatslayer").data([null]);h.enter().append("g").attr("class","parcatslayer").style("pointer-events",a?"none":"all");var m=h.selectAll("g.trace.parcats").data(u,f),v=m.enter().append("g").attr("class","trace parcats");m.attr("transform",(function(t){return s(t.x,t.y)})),v.append("g").attr("class","paths");var x=m.select("g.paths").selectAll("path.path").data((function(t){return t.paths}),f);x.attr("fill",(function(t){return t.model.color}));var _=x.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(t){return t.model.color})).attr("fill-opacity",0);w(_),x.attr("d",(function(t){return t.svgD})),_.empty()||x.sort(d),x.exit().remove(),x.on("mouseover",g).on("mouseout",y).on("click",b),v.append("g").attr("class","dimensions");var T=m.select("g.dimensions").selectAll("g.dimension").data((function(t){return t.dimensions}),f);T.enter().append("g").attr("class","dimension"),T.attr("transform",(function(t){return s(t.x,0)})),T.exit().remove();var M=T.selectAll("g.category").data((function(t){return t.categories}),f),S=M.enter().append("g").attr("class","category");M.attr("transform",(function(t){return s(0,t.y)})),S.append("rect").attr("class","catrect").attr("pointer-events","none"),M.select("rect.catrect").attr("fill","none").attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})),k(S);var E=M.selectAll("rect.bandrect").data((function(t){return t.bands}),f);E.each((function(){o.raiseToTop(this)})),E.attr("fill",(function(t){return t.color}));var C=E.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(t){return t.color})).attr("fill-opacity",0);E.attr("fill",(function(t){return t.color})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return t.y})).attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"perpendicular"===t.parcatsViewModel.arrangement?"ns-resize":"move"})),A(C),E.exit().remove(),S.append("text").attr("class","catlabel").attr("pointer-events","none"),M.select("text.catlabel").attr("text-anchor",(function(t){return p(t)?"start":"end"})).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",(function(t){return p(t)?t.width+5:-5})).attr("y",(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(r.select(this),t.parcatsViewModel.categorylabelfont),c.convertToTspans(r.select(this),e)})),S.append("text").attr("class","dimlabel"),M.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(t){return t.width/2})).attr("y",-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(r.select(this),t.parcatsViewModel.labelfont)})),M.selectAll("rect.bandrect").on("mouseover",I).on("mouseout",L),M.exit().remove(),T.call(r.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on("dragstart",P).on("drag",z).on("dragend",D)),m.each((function(t){t.traceSelection=r.select(this),t.pathSelection=r.select(this).selectAll("g.paths").selectAll("path.path"),t.dimensionSelection=r.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),m.exit().remove()}function f(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor>e.model.rawColor?1:t.model.rawColor"),C=r.mouse(h)[0];a.loneHover({trace:f,x:v-d.left+m.left,y:b-d.top+m.top,text:E,color:t.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:w,idealAlign:C1&&f.displayInd===h.dimensions.length-1?(i=u.left,a="left"):(i=u.left+u.width,a="right");var m=c.model.count,g=c.model.categoryLabel,y=m/c.parcatsViewModel.model.count,v={countLabel:m,categoryLabel:g,probabilityLabel:y.toFixed(3)},x=[];-1!==c.parcatsViewModel.hoverinfoItems.indexOf("count")&&x.push(["Count:",v.countLabel].join(" ")),-1!==c.parcatsViewModel.hoverinfoItems.indexOf("probability")&&x.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var _=x.join("
");return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:_,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:v,eventData:[{data:p._input,fullData:p,count:m,category:g,probability:y}]}}function I(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(r.mouse(this)[1]<-1)return;var e,n=t.parcatsViewModel.graphDiv,i=n._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron,c=this;"color"===l?(function(t){var e=r.select(t).datum(),n=M(e);T(n),n.each((function(){o.raiseToTop(this)})),r.select(t.parentNode).selectAll("rect.bandrect").filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),function(t){t.attr("stroke","black").attr("stroke-width",1.5)}(r.select(this))}))}(c),E(c,"plotly_hover",r.event)):(function(t){r.select(t.parentNode).selectAll("rect.bandrect").each((function(t){var e=M(t);T(e),e.each((function(){o.raiseToTop(this)}))})),function(t){t.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(r.select(t.parentNode))}(c),S(c,"plotly_hover",r.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf("none")&&("category"===l?e=C(n,s,c):"color"===l?e=function(t,e,n){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.getBoundingClientRect(),c=r.select(n).datum(),h=c.categoryViewModel,f=h.parcatsViewModel,p=f.model.dimensions[h.model.dimensionInd],d=f.trace,m=l.y+l.height/2;f.dimensions.length>1&&p.displayInd===f.dimensions.length-1?(i=l.left,a="left"):(i=l.left+l.width,a="right");var g=h.model.categoryLabel,y=c.parcatsViewModel.model.count,v=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&&(v+=t.count)}));var x=h.model.count,_=0;f.pathSelection.each((function(t){t.model.color===c.color&&(_+=t.model.count)}));var b=v/y,w=v/_,T=v/x,k={countLabel:v,categoryLabel:g,probabilityLabel:b.toFixed(3)},A=[];-1!==h.parcatsViewModel.hoverinfoItems.indexOf("count")&&A.push(["Count:",k.countLabel].join(" ")),-1!==h.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(A.push("P(color ∩ "+g+"): "+k.probabilityLabel),A.push("P("+g+" | color): "+w.toFixed(3)),A.push("P(color | "+g+"): "+T.toFixed(3)));var M=A.join("
"),S=u.mostReadable(c.color,["black","white"]);return{trace:d,x:o*(i-e.left),y:s*(m-e.top),text:M,color:c.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:g,count:y,probability:b,categorycount:x,colorcount:_,bandcolorcount:v}]}}(n,s,c):"dimension"===l&&(e=function(t,e,n){var i=[];return r.select(n.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){i.push(C(t,e,this))})),i}(n,s,c)),e&&a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:n}))}}function L(t){var e=t.parcatsViewModel;e.dragDimension||(w(e.pathSelection),k(e.dimensionSelection.selectAll("g.category")),A(e.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1!==e.hoverinfoItems.indexOf("skip"))||("color"===t.parcatsViewModel.hoveron?E(this,"plotly_unhover",r.event):S(this,"plotly_unhover",r.event))}function P(t){"fixed"!==t.parcatsViewModel.arrangement&&(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,r.select(this).selectAll("g.category").select("rect.catrect").each((function(e){var n=r.mouse(this)[0],i=r.mouse(this)[1];-2<=n&&n<=e.width+2&&-2<=i&&i<=e.height+2&&(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),r.select(this.parentNode).selectAll("rect.bandrect").each((function(e){e.yh.y+h.height/2&&(o.model.displayInd=h.model.displayInd,h.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||"freeform"===t.parcatsViewModel.arrangement){a.model.dragX=r.event.x;var f=t.parcatsViewModel.dimensions[n],p=t.parcatsViewModel.dimensions[i];void 0!==f&&a.model.dragXp.x&&(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}V(t.parcatsViewModel),U(t.parcatsViewModel),B(t.parcatsViewModel),F(t.parcatsViewModel)}}function D(t){if("fixed"!==t.parcatsViewModel.arrangement&&null!==t.dragDimensionDisplayInd){r.select(this).selectAll("text").attr("font-weight","normal");var e={},n=R(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&&a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e["dimensions["+i+"].displayindex"]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var u=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),c=u.map((function(t){return t.categoryValue})),h=u.map((function(t){return t.categoryLabel}));e["dimensions["+t.model.containerInd+"].categoryarray"]=[c],e["dimensions["+t.model.containerInd+"].ticktext"]=[h],e["dimensions["+t.model.containerInd+"].categoryorder"]="array"}}-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!t.dragHasMoved&&t.potentialClickBand&&("color"===t.parcatsViewModel.hoveron?E(t.potentialClickBand,"plotly_click",r.event.sourceEvent):S(t.potentialClickBand,"plotly_click",r.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd&&(t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null),t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,V(t.parcatsViewModel),U(t.parcatsViewModel),r.transition().duration(300).ease("cubic-in-out").each((function(){B(t.parcatsViewModel,!0),F(t.parcatsViewModel,!0)})).each("end",(function(){(o||s)&&i.restyle(t.parcatsViewModel.graphDiv,e,[n])}))}}function R(t){for(var e,r=t.graphDiv._fullData,n=0;n=0;s--)c+="C"+u[s]+","+(e[s+1]+i)+" "+l[s]+","+(e[s]+i)+" "+(t[s]+r[s])+","+(e[s]+i),c+="l-"+r[s]+",0 ";return c+"Z"}function U(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function h(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}u.sort((function(e,r){var n=h(e),i=h(r);return"backward"===t.sortpaths&&(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&&(n.unshift(e.rawColor),i.unshift(r.rawColor)),ni?1:0}));for(var f=new Array(u.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),m=0;m0?d*(v.count/p):0;for(var x=new Array(n.length),_=0;_1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,u,c=[],h=t.model.maxCats,f=e.categories.length,p=e.count,d=t.height-8*(h-1),m=8*(h-f)/2,g=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(g.sort((function(t,e){return t.displayInd-e.displayInd})),u=0;u0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:m,bands:[],parcatsViewModel:t},m=m+a+8,c.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:c,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){h(r,t,n,e)}})),i_=f(((t,e)=>{var r=n_();e.exports=function(t,e,n,i){var a=t._fullLayout,o=a._paper,s=a._size;r(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}})),a_=f((t=>{var e=we().getModuleCalcData,r=i_(),n="parcats";t.name=n,t.plot=function(t,i,a,o){var s=e(t.calcdata,n);if(s.length){var l=s[0];r(t,l,a,o)}},t.clean=function(t,e,r,n){var i=n._has&&n._has("parcats"),a=e._has&&e._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}})),o_=f(((t,e)=>{e.exports={attributes:t_(),supplyDefaults:e_(),calc:r_(),plot:i_(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:a_(),categories:["noOpacity"],meta:{}}})),s_=f(((t,e)=>{e.exports=o_()})),l_=f(((t,e)=>{var r=Wt(),n="1.13.4",i='©
OpenStreetMap contributors',a=['© Carto',i].join(" "),o=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),s={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:a,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:a,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:o,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:o,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},l=r(s);e.exports={requiredVersion:n,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+n+"."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",l.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}})),u_=f(((t,e)=>{var r=le(),n=q().defaultLine,i=ka().attributes,a=R(),o=Tn().textposition,s=Lt().overrideAll,l=ye().templatedArray,u=l_(),c=a({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});c.family.dflt="Open Sans Regular, Arial Unicode MS Regular",(e.exports=s({_arrayAttrRegexps:[r.counterRegex("mapbox",".layers",!0)],domain:i({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:l("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:n},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:n}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:c,textposition:r.extendFlat({},o,{arrayOk:!1})}})},"plot","from-root")).uirevision={valType:"any",editType:"none"}})),c_=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=wn(),a=Vm(),o=Tn(),s=u_(),l=j(),u=Pe(),c=D().extendFlat,h=Lt().overrideAll,f=u_(),p=a.line,d=a.marker;e.exports=h({lon:a.lon,lat:a.lat,cluster:{enabled:{valType:"boolean"},maxzoom:c({},f.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:c({},d.opacity,{dflt:1})},mode:c({},o.mode,{dflt:"markers"}),text:c({},o.text,{}),texttemplate:n({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:c({},o.hovertext,{}),line:{color:p.color,width:p.width},connectgaps:o.connectgaps,marker:c({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:d.opacity,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode},u("marker")),fill:a.fill,fillcolor:i(),textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:"string"},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:c({},l.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:r()},"calc","nested")})),h_=f(((t,e)=>{var r=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];e.exports={isSupportedFont:function(t){return-1!==r.indexOf(t)}}})),f_=f(((t,e)=>{var r=le(),n=Ye(),i=Wn(),a=Yn(),o=$n(),s=Jn(),l=c_(),u=h_().isSupportedFont;e.exports=function(t,e,c,h){function f(n,i){return r.coerce(t,e,l,n,i)}function p(n,i){return r.coerce2(t,e,l,n,i)}var d=function(t,e,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f);if(d){if(f("text"),f("texttemplate"),f("hovertext"),f("hovertemplate"),f("mode"),f("below"),n.hasMarkers(e)){i(t,e,c,h,f,{noLine:!0,noAngle:!0}),f("marker.allowoverlap"),f("marker.angle");var m=e.marker;"circle"!==m.symbol&&(r.isArrayOrTypedArray(m.size)&&(m.size=m.size[0]),r.isArrayOrTypedArray(m.color)&&(m.color=m.color[0]))}n.hasLines(e)&&(a(t,e,c,h,f,{noDash:!0}),f("connectgaps"));var g=p("cluster.maxzoom"),y=p("cluster.step"),v=p("cluster.color",e.marker&&e.marker.color||c),x=p("cluster.size"),_=p("cluster.opacity");if(f("cluster.enabled",!1!==g||!1!==y||!1!==v||!1!==x||!1!==_)||n.hasText(e)){var b=h.font.family;o(t,e,h,f,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:u(b)?b:"Open Sans Regular",weight:h.font.weight,style:h.font.style,size:h.font.size,color:h.font.color}})}f("fill"),"none"!==e.fill&&s(t,e,c,f),r.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}})),p_=f(((t,e)=>{var r=ir();e.exports=function(t,e,n){var i={},a=n[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=r.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=r.tickText(a,a.c2l(o[1]),!0).text,i}})),d_=f(((t,e)=>{var r=le();e.exports=function(t,e){var n=t.split(" "),i=n[0],a=n[1],o=r.isArrayOrTypedArray(e)?r.mean(e):e,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s}return{anchor:u[0]&&u[1]?u.join("-"):u[0]?u[0]:u[1]?u[1]:"center",offset:c}}})),m_=f(((t,e)=>{var r=T(),n=le(),i=k().BADNUM,a=Xm(),o=We(),s=Qe(),l=Xe(),u=Ye(),c=h_().isSupportedFont,h=d_(),f=$e().appendArrayPointValue,p=Se().NEWLINES,d=Se().BR_TAG_ALL;function m(t){return{type:t,geojson:a.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function g(t,e){return n.isArrayOrTypedArray(t)?e?function(e){return r(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:y}function y(){return""}function v(t){return t[0]===i}function x(t,e){var r;if(n.isArrayOrTypedArray(t)&&n.isArrayOrTypedArray(e)){r=["step",["get","point_count"],t[0]];for(var i=1;i850?" Black":i>750?" Extra Bold":i>650?" Bold":i>550?" Semi Bold":i>450?" Medium":i>350?" Regular":i>250?" Light":i>150?" Extra Light":" Thin"):"Open Sans"===a.slice(0,2).join(" ")?(s="Open Sans",s+=i>750?" Extrabold":i>650?" Bold":i>550?" Semibold":i>350?" Regular":" Light"):"Klokantech Noto Sans"===a.slice(0,3).join(" ")&&(s="Klokantech Noto Sans","CJK"===a[3]&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),"Open Sans Regular Italic"===s?s="Open Sans Italic":"Open Sans Regular Bold"===s?s="Open Sans Bold":"Open Sans Regular Bold Italic"===s?s="Open Sans Bold Italic":"Klokantech Noto Sans Regular Italic"===s&&(s="Klokantech Noto Sans Italic"),c(s)||(s=r),s.split(", ")}e.exports=function(t,e){var i,c=e[0].trace,b=!0===c.visible&&0!==c._length,w="none"!==c.fill,T=u.hasLines(c),k=u.hasMarkers(c),A=u.hasText(c),M=k&&"circle"===c.marker.symbol,S=k&&"circle"!==c.marker.symbol,E=c.cluster&&c.cluster.enabled,C=m("fill"),I=m("line"),L=m("circle"),P=m("symbol"),z={fill:C,line:I,circle:L,symbol:P};if(!b)return z;if((w||T)&&(i=a.calcTraceToLineCoords(e)),w&&(C.geojson=a.makePolygon(i),C.layout.visibility="visible",n.extendFlat(C.paint,{"fill-color":c.fillcolor})),T&&(I.geojson=a.makeLine(i),I.layout.visibility="visible",n.extendFlat(I.paint,{"line-width":c.line.width,"line-color":c.line.color,"line-opacity":c.opacity})),M){var O=function(t){var e,i,a,u,c=t[0].trace,h=c.marker,f=c.selectedpoints,p=n.isArrayOrTypedArray(h.color),d=n.isArrayOrTypedArray(h.size),m=n.isArrayOrTypedArray(h.opacity);function g(t){return c.opacity*t}p&&(i=o.hasColorscale(c,"marker")?o.makeColorScaleFuncFromTrace(h):n.identity),d&&(a=l(c)),m&&(u=function(t){return g(r(t)?+n.constrain(t,0,1):0)});var y,x=[];for(e=0;e{var r=le(),n=m_(),i=l_().traceLayerPrefix,a={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function o(t,e,r,n){this.type="scattermapbox",this.subplot=t,this.uid=e,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+e+"-fill",line:"source-"+e+"-line",circle:"source-"+e+"-circle",symbol:"source-"+e+"-symbol",cluster:"source-"+e+"-circle",clusterCount:"source-"+e+"-circle"},this.layerIds={fill:i+e+"-fill",line:i+e+"-line",circle:i+e+"-circle",symbol:i+e+"-symbol",cluster:i+e+"-cluster",clusterCount:i+e+"-cluster-count"},this.below=null}var s=o.prototype;s.addSource=function(t,e,n){var i={type:"geojson",data:e.geojson};n&&n.enabled&&r.extendFlat(i,{cluster:!0,clusterMaxZoom:n.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[t]);a?a.setData(e.geojson):this.subplot.map.addSource(this.sourceIds[t],i)},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){var n={type:e.type,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint};e.filter&&(n.filter=e.filter);for(var i,a=this.layerIds[t],o=this.subplot.getMapLayers(),s=0;s=0;r--){var n=e[r];i.removeLayer(c.layerIds[n])}t||i.removeSource(c.sourceIds.circle)}(t):function(t){for(var e=a.nonCluster,r=e.length-1;r>=0;r--){var n=e[r];i.removeLayer(c.layerIds[n]),t||i.removeSource(c.sourceIds[n])}}(t)}function f(t){l?function(t){t||c.addSource("circle",o.circle,e.cluster);for(var r=a.cluster,n=0;n=0;r--){var n=e[r];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}},e.exports=function(t,e){var r,i,s,l=e[0].trace,u=l.cluster&&l.cluster.enabled,c=!0!==l.visible,h=new o(t,l.uid,u,c),f=n(t.gd,e),p=h.below=t.belowLookup["trace-"+l.uid];if(u)for(h.addSource("circle",f.circle,l.cluster),r=0;r{var r=Or(),n=le(),i=gi(),a=n.fillText,o=k().BADNUM,s=l_().traceLayerPrefix;function l(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split("+"),i=-1!==n.indexOf("all"),o=-1!==n.indexOf("lon"),s=-1!==n.indexOf("lat"),l=e.lonlat,u=[];return i||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(i||-1!==n.indexOf("text"))&&a(e,t,u),u.join("
")}function c(t){return t+"°"}}e.exports={hoverPoints:function(t,e,a){var u=t.cd,c=u[0].trace,h=t.xa,f=t.ya,p=t.subplot,d=[],m=s+c.uid+"-circle",g=c.cluster&&c.cluster.enabled;if(g){var y=p.map.queryRenderedFeatures(null,{layers:[m]});d=y.map((function(t){return t.id}))}var v=360*(e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),x=e-v;if(r.getClosest(u,(function(t){var e=t.lonlat;if(e[0]===o||g&&-1===d.indexOf(t.i+1))return 1/0;var r=n.modHalf(e[0],360),i=e[1],s=p.project([r,i]),l=s.x-h.c2p([x,i]),u=s.y-f.c2p([r,a]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+u*u)-c,1-3/c)}),t),!1!==t.index){var _=u[t.index],b=_.lonlat,w=[n.modHalf(b[0],360)+v,b[1]],T=h.c2p(w),k=f.c2p(w),A=_.mrc||1;t.x0=T-A,t.x1=T+A,t.y0=k-A,t.y1=k+A;var M={};M[c.subplot]={_subplot:p};var S=c._module.formatLabels(_,c,M);return t.lonLabel=S.lonLabel,t.latLabel=S.latLabel,t.color=i(c,_),t.extraText=l(c,_,u[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}})),v_=f(((t,e)=>{e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}})),x_=f(((t,e)=>{var r=le(),n=Ye(),i=k().BADNUM;e.exports=function(t,e){var a,o=t.cd,s=t.xaxis,l=t.yaxis,u=[],c=o[0].trace;if(!n.hasMarkers(c))return[];if(!1===e)for(a=0;a{var r,n;r=t,n=function(){var t,e,r;function n(n,i){if(t)if(e){var a="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",o={};t(o),r=i(o),"undefined"!=typeof window&&(r.workerUrl=window.URL.createObjectURL(new Blob([a],{type:"text/javascript"})))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r="1.13.4",n=i;function i(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&&(e=1e-6),i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)(n=1))return n;for(;ra?r=i:n=i,i=.5*(n-r)+r}return i},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var a=o;function o(t,e){this.x=t,this.y=e}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var s="undefined"!=typeof self?self:{},l=Math.pow(2,53)-1;function u(t,e,r,i){var a=new n(t,e,r,i);return function(t){return a.solve(t)}}var c=u(.25,.1,.25,1);function h(t,e,r){return Math.min(r,Math.max(e,t))}function f(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function p(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function y(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function v(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function x(t,e){return-1!==t.indexOf(e,t.length-e.length)}function _(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function b(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function w(t){return Array.isArray(t)?t.map(w):"object"==typeof t&&t?_(t,w):t}var T={};function k(t){T[t]||("undefined"!=typeof console&&console.warn(t),T[t]=!0)}function A(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function M(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),""})),e["max-age"]){var r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}var C=null;function I(t){if(null==C){var e=t.navigator?t.navigator.userAgent:null;C=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return C}function L(t){try{var e=s[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var P,z,O,D,R=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),F=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,B=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,N={now:R,frame:function(t){var e=F(t);return{cancel:function(){return B(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var r=s.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return P||(P=s.document.createElement("a")),P.href=t,P.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return!!s.matchMedia&&(null==z&&(z=s.matchMedia("(prefers-reduced-motion: reduce)")),z.matches)}},j={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},U={supported:!1,testSupport:function(t){V||!D||(q?H(t):O=t)}},V=!1,q=!1;function H(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,D),t.isContextLost())return;U.supported=!0}catch(t){}t.deleteTexture(e),V=!0}s.document&&((D=s.document.createElement("img")).onload=function(){O&&H(O),O=null,q=!0},D.onerror=function(){V=!0,O=null},D.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var G="01",Z=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function W(t){return 0===t.indexOf("mapbox:")}Z.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",G,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},Z.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Z.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},Z.prototype.normalizeStyleURL=function(t,e){if(!W(t))return t;var r=J(t);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},Z.prototype.normalizeGlyphsURL=function(t,e){if(!W(t))return t;var r=J(t);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},Z.prototype.normalizeSourceURL=function(t,e){if(!W(t))return t;var r=J(t);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||e)},Z.prototype.normalizeSpriteURL=function(t,e,r,n){var i=J(t);return W(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=""+e+r,K(i))},Z.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!W(t))return t;var r=J(t),n=N.devicePixelRatio>=2||512===e?"@2x":"",i=U.supported?".webp":"$1";r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+n+i),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path;var a=this._customAccessToken||function(t){for(var e=0,r=t;e=0&&t.params.splice(i,1)}if("/"!==n.path&&(t.path=""+n.path+t.path),!j.REQUIRE_ACCESS_TOKEN)return K(t);if(!(e=e||j.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+r);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+r);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),K(t)};var Y=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(t){return Y.test(t)}var $=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function J(t){var e=t.match($);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function K(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}var Q="mapbox.eventData";function tt(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{var r=JSON.parse(function(t){return decodeURIComponent(s.atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e[1]));return r}catch(t){return null}}var et=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};et.prototype.getStorageKey=function(t){var e,r=tt(j.ACCESS_TOKEN),n="";return r&&r.u?(e=r.u,n=s.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))):n=j.ACCESS_TOKEN||"",t?Q+"."+t+":"+n:Q+":"+n},et.prototype.fetchEventData=function(){var t=L("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{var n=s.localStorage.getItem(e);n&&(this.eventData=JSON.parse(n));var i=s.localStorage.getItem(r);i&&(this.anonId=i)}catch(t){k("Unable to read from LocalStorage")}},et.prototype.saveEventData=function(){var t=L("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{s.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&s.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){k("Unable to write to LocalStorage")}},et.prototype.processRequests=function(t){},et.prototype.postEvent=function(t,e,n,i){var a=this;if(j.EVENTS_URL){var o=J(j.EVENTS_URL);o.params.push("access_token="+(i||j.ACCESS_TOKEN||""));var s={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:G,userId:this.anonId},l=e?p(s,e):s,u={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=kt(u,(function(t){a.pendingRequest=null,n(t),a.saveEventData(),a.processRequests(i)}))}},et.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var rt,nt,it=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(j.EVENTS_URL&&n||j.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return W(t)||X(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&&this.success[n]||(this.anonId||this.fetchEventData(),y(this.anonId)||(this.anonId=g()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&&(e.success[n]=!0)}),t))}},e}(et),at=function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){j.EVENTS_URL&&j.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return W(t)||X(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var r=tt(j.ACCESS_TOKEN),n=r?r.u:j.ACCESS_TOKEN,i=n!==this.eventData.tokenU;y(this.anonId)||(this.anonId=g(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(et),ot=new at,st=ot.postTurnstileEvent.bind(ot),lt=new it,ut=lt.postMapLoadEvent.bind(lt),ct="mapbox-tiles",ht=500,ft=50;function pt(){s.caches&&!rt&&(rt=s.caches.open(ct))}function dt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var mt,gt=1/0;function yt(){return null==mt&&(mt=s.OffscreenCanvas&&new s.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof s.createImageBitmap),mt}var vt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(vt);var xt=function(t){function e(e,r,n){401===r&&X(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),_t=S()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===s.location.protocol?s.parent:s).location.href};function bt(t,e){var r=new s.AbortController,n=new s.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:_t(),signal:r.signal}),i=!1,a=!1,o=function(t){return t.indexOf("sku=")>0&&X(t)}(n.url);"json"===t.type&&n.headers.set("Accept","application/json");var l=function(r,i,l){if(!a){if(r&&"SecurityError"!==r.message&&k(r),i&&l)return u(i);var c=Date.now();s.fetch(n).then((function(r){if(r.ok){var n=o?r.clone():null;return u(r,n,c)}return e(new xt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},u=function(r,o,l){("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((function(t){a||(o&&l&&function(t,e,r){if(pt(),rt){var n={status:e.status,statusText:e.statusText,headers:new s.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=E(e.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&n.headers.set("Expires",new Date(r+1e3*i["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-r<42e4||function(t,e){if(void 0===nt)try{new Response(new ReadableStream),nt=!0}catch(t){nt=!1}nt?e(t.body):t.blob().then(e)}(e,(function(e){var r=new s.Response(e,n);pt(),rt&&rt.then((function(e){return e.put(dt(t.url),r)})).catch((function(t){return k(t.message)}))})))}}(n,o,l),i=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((function(t){a||e(new Error(t.message))}))};return o?function(t,e){if(pt(),!rt)return e(null);var r=dt(t.url);rt.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),r=E(t.headers.get("Cache-Control")||"");return e>Date.now()&&!r["no-cache"]}(n);t.delete(r),i&&t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(n,l):l(null,null),{cancel:function(){a=!0,i||r.abort()}}}var wt=function(t,e){if(!function(t){return/^file:/.test(t)||/^file:/.test(_t())&&!/^\w+:/.test(t)}(t.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return bt(t,e);if(S()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}return function(t,e){var r=new s.XMLHttpRequest;for(var n in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(n,t.headers[n]);return"json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){var n=r.response;if("json"===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new xt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},Tt=function(t,e){return wt(p(t,{type:"arrayBuffer"}),e)},kt=function(t,e){return wt(p(t,{method:"POST"}),e)};function At(t){var e=s.document.createElement("a");return e.href=t,e.protocol===s.document.location.protocol&&e.host===s.document.location.host}var Mt,St,Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Mt=[],St=0;var Ct=function(t,e){if(U.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),St>=j.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return Mt.push(r),r}St++;var n=!1,i=function(){if(!n)for(n=!0,St--;Mt.length&&St0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Ot.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Dt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Rt=function(t,e,r,n){this.message=(t?t+": ":"")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function Ft(t){var e=t.key,r=t.value;return r?[new Rt(e,r,"constants have been deprecated as of v8")]:[]}function Bt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var ee=[qt,Ht,Gt,Zt,Wt,Jt,Yt,Qt(Xt),Kt];function re(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!re(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=ee;r255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),u=i.indexOf(")");if(-1!==l&&u+1===i.length){var c=i.substr(0,l),h=i.substr(l+1,u-(l+1)).split(","),f=1;switch(c){case"rgba":if(4!==h.length)return null;f=o(h.pop());case"rgb":return 3!==h.length?null:[a(h[0]),a(h[1]),a(h[2]),f];case"hsla":if(4!==h.length)return null;f=o(h.pop());case"hsl":if(3!==h.length)return null;var p=(parseFloat(h[0])%360+360)%360/360,d=o(h[1]),m=o(h[2]),g=m<=.5?m*(d+1):m+d-m*d,y=2*m-g;return[n(255*s(y,g,p+1/3)),n(255*s(y,g,p)),n(255*s(y,g,p-1/3)),f];default:return null}}return null}}catch(t){}})).parseCSSColor,oe=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};oe.parse=function(t){if(t){if(t instanceof oe)return t;if("string"==typeof t){var e=ae(t);if(e)return new oe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},oe.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},oe.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},oe.black=new oe(0,0,0,1),oe.white=new oe(1,1,1,1),oe.transparent=new oe(0,0,0,0),oe.red=new oe(1,0,0,1);var se=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};se.prototype.compare=function(t,e){return this.collator.compare(t,e)},se.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var le=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ue=function(t){this.sections=t};ue.fromString=function(t){return new ue([new le(t,null,null,null,null)])},ue.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},ue.factory=function(t){return t instanceof ue?t:ue.fromString(t)},ue.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},ue.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function fe(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof oe)return!0;if(t instanceof se)return!0;if(t instanceof ue)return!0;if(t instanceof ce)return!0;if(Array.isArray(t)){for(var e=0,r=t;e2){var s=t[1];if("string"!=typeof s||!(s in ye)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);a=ye[s],n++}else a=Xt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);o=t[2],n++}r=Qt(a,o)}else r=ye[i];for(var l=[];n1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var xe=function(t){this.type=Jt,this.sections=t};xe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,a=1;a<=t.length-1;++a){var o=t[a];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;var s=null;if(o["font-scale"]&&!(s=e.parse(o["font-scale"],1,Ht)))return null;var l=null;if(o["text-font"]&&!(l=e.parse(o["text-font"],1,Qt(Gt))))return null;var u=null;if(o["text-color"]&&!(u=e.parse(o["text-color"],1,Wt)))return null;var c=n[n.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[a],1,Xt);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:h,scale:null,font:null,textColor:null})}}return new xe(n)},xe.prototype.evaluate=function(t){return new ue(this.sections.map((function(e){var r=e.content.evaluate(t);return pe(r)===Kt?new le("",r,null,null,null):new le(de(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},xe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e-1),r},_e.prototype.eachChild=function(t){t(this.input)},_e.prototype.outputDefined=function(){return!1},_e.prototype.serialize=function(){return["image",this.input.serialize()]};var be={"to-boolean":Zt,"to-color":Wt,"to-number":Ht,"to-string":Gt},we=function(t,e){this.type=t,this.args=e};we.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=be[r],i=[],a=1;a4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":he(e[0],e[1],e[2],e[3])))return new oe(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ge(r||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var o=null,s=0,l=this.args;s=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Ie(t,e){var r=function(t){return(180+t)/360}(t[0]),n=function(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Se),Math.round(n*i*Se)]}function Le(t,e,r){var n=t[0]-e[0],i=t[1]-e[1],a=t[0]-r[0],o=t[1]-r[1];return n*o-a*i==0&&n*a<=0&&i*o<=0}function Pe(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function ze(t,e){for(var r=!1,n=0,i=e.length;n0&&h<0||c<0&&h>0}function Re(t,e,r,n){var i=[e[0]-t[0],e[1]-t[1]];return 0!==function(t,e){return t[0]*e[1]-t[1]*e[0]}([n[0]-r[0],n[1]-r[1]],i)&&!(!De(t,e,r,n)||!De(r,n,t,e))}function Fe(t,e,r){for(var n=0,i=r;nr[2]){var i=.5*n,a=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===a&&(a=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=a}Ee(e,t)}function qe(t,e,r,n){for(var i=Math.pow(2,n.z)*Se,a=[n.x*Se,n.y*Se],o=[],s=0,l=t;s=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Ye(t,e)&&(r=!1)})),r}Ge.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(fe(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;ne))throw new ge("Input is not a number.");o=s-1}return 0}$e.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},$e.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new ve(e,[t]):"coerce"===r?new we(e,[t]):t}if((null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t)&&(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==s.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||"coerce");else a=r(a,o,e.typeAnnotation||"assert")}if(!(a instanceof me)&&"resolvedImage"!==a.type.kind&&Je(a)){var l=new ke;try{a=new me(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},$e.prototype.concat=function(t,e,r){var n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new $e(this.registry,n,e||null,i,this.errors)},$e.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Ut(n,t))},$e.prototype.checkSubtype=function(t,e){var r=re(t,e);return r&&this.error(r),r};var Qe=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n=o)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,n.push([o,c])}return new Qe(i,r,n)},Qe.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[Ke(e,n)].evaluate(t)},Qe.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var er=Object.freeze({__proto__:null,number:tr,color:function(t,e,r){return new oe(tr(t.r,e.r,r),tr(t.g,e.g,r),tr(t.b,e.b,r),tr(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return tr(t,e[n],r)}))}}),rr=.95047,nr=1.08883,ir=4/29,ar=6/29,or=3*ar*ar,sr=ar*ar*ar,lr=Math.PI/180,ur=180/Math.PI;function cr(t){return t>sr?Math.pow(t,1/3):t/or+ir}function hr(t){return t>ar?t*t*t:or*(t-ir)}function fr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function pr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){var e=pr(t.r),r=pr(t.g),n=pr(t.b),i=cr((.4124564*e+.3575761*r+.1804375*n)/rr),a=cr((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-cr((.0193339*e+.119192*r+.9503041*n)/nr)),alpha:t.a}}function mr(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*hr(e),r=rr*hr(r),n=nr*hr(n),new oe(fr(3.2404542*r-1.5371385*e-.4985314*n),fr(-.969266*r+1.8760108*e+.041556*n),fr(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function gr(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var yr={forward:dr,reverse:mr,interpolate:function(t,e,r){return{l:tr(t.l,e.l,r),a:tr(t.a,e.a,r),b:tr(t.b,e.b,r),alpha:tr(t.alpha,e.alpha,r)}}},vr={forward:function(t){var e=dr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*ur;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*lr,r=t.c;return mr({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:gr(t.h,e.h,r),c:tr(t.c,e.c,r),l:tr(t.l,e.l,r),alpha:tr(t.alpha,e.alpha,r)}}},xr=Object.freeze({__proto__:null,lab:yr,hcl:vr}),_r=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Ht)))return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=Wt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var m=e.parse(f,d,u);if(!m)return null;u=u||m.type,l.push([h,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new _r(u,r,n,i,l):e.error("Type "+te(u)+" is not interpolatable.")},_r.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var a=Ke(e,n),o=e[a],s=e[a+1],l=_r.interpolationFactor(this.interpolation,n,o,s),u=r[a].evaluate(t),c=r[a+1].evaluate(t);return"interpolate"===this.operator?er[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?vr.reverse(vr.interpolate(vr.forward(u),vr.forward(c),l)):yr.reverse(yr.interpolate(yr.forward(u),yr.forward(c),l))},_r.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e=r.length)throw new ge("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new ge("Array index must be an integer, but found "+e+" instead.");return r[e]},kr.prototype.eachChild=function(t){t(this.index),t(this.input)},kr.prototype.outputDefined=function(){return!1},kr.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Ar=function(t,e){this.type=Zt,this.needle=t,this.haystack=e};Ar.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Xt),n=e.parse(t[2],2,Xt);return r&&n?ne(r.type,[Zt,Gt,Ht,qt,Xt])?new Ar(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+te(r.type)+" instead"):null},Ar.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!ie(e,["boolean","string","number","null"]))throw new ge("Expected first argument to be of type boolean, string, number or null, but found "+te(pe(e))+" instead.");if(!ie(r,["string","array"]))throw new ge("Expected second argument to be of type array or string, but found "+te(pe(r))+" instead.");return r.indexOf(e)>=0},Ar.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},Ar.prototype.outputDefined=function(){return!0},Ar.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Mr=function(t,e,r){this.type=Ht,this.needle=t,this.haystack=e,this.fromIndex=r};Mr.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Xt),n=e.parse(t[2],2,Xt);if(!r||!n)return null;if(!ne(r.type,[Zt,Gt,Ht,qt,Xt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+te(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ht);return i?new Mr(r,n,i):null}return new Mr(r,n)},Mr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!ie(e,["boolean","string","number","null"]))throw new ge("Expected first argument to be of type boolean, string, number or null, but found "+te(pe(e))+" instead.");if(!ie(r,["string","array"]))throw new ge("Expected second argument to be of type array or string, but found "+te(pe(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},Mr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},Mr.prototype.outputDefined=function(){return!1},Mr.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Sr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};Sr.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},a=[],o=2;oNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,pe(f)))return null}else r=pe(f);if(void 0!==i[String(f)])return u.error("Branch labels must be unique.");i[String(f)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,Xt);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,n);return!m||"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new Sr(r,n,d,i,a,m)},Sr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(pe(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Sr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Sr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},Sr.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Xt),n=e.parse(t[2],2,Ht);if(!r||!n)return null;if(!ne(r.type,[Qt(Xt),Gt,Xt]))return e.error("Expected first argument to be of type array or string, but found "+te(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ht);return i?new Cr(r.type,r,n,i):null}return new Cr(r.type,r,n)},Cr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!ie(e,["string","array"]))throw new ge("Expected first argument to be of type array or string, but found "+te(pe(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},Cr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Cr.prototype.outputDefined=function(){return!1},Cr.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var zr=Pr("==",(function(t,e,r){return e===r}),Lr),Or=Pr("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!Lr(0,e,r,n)})),Dr=Pr("<",(function(t,e,r){return e",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),Fr=Pr("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),Br=Pr(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0})),Nr=function(t,e,r,n,i){this.type=Gt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Nr.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,Ht);if(!r)return null;var n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=e.parse(n.locale,1,Gt)))return null;var a=null;if(n.currency&&!(a=e.parse(n.currency,1,Gt)))return null;var o=null;if(n["min-fraction-digits"]&&!(o=e.parse(n["min-fraction-digits"],1,Ht)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,Ht))?null:new Nr(r,i,a,o,s)},Nr.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Nr.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Nr.prototype.outputDefined=function(){return!1},Nr.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var jr=function(t){this.type=Ht,this.input=t};jr.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+te(r.type)+" instead."):new jr(r):null},jr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ge("Expected value to be of type string or array, but found "+te(pe(e))+" instead.")},jr.prototype.eachChild=function(t){t(this.input)},jr.prototype.outputDefined=function(){return!1},jr.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Ur={"==":zr,"!=":Or,">":Rr,"<":Dr,">=":Br,"<=":Fr,array:ve,at:kr,boolean:ve,case:Er,coalesce:wr,collator:Me,format:xe,image:_e,in:Ar,"index-of":Mr,interpolate:_r,"interpolate-hcl":_r,"interpolate-lab":_r,length:jr,let:Tr,literal:me,match:Sr,number:ve,"number-format":Nr,object:ve,slice:Cr,step:Qe,string:ve,"to-boolean":we,"to-color":we,"to-number":we,"to-string":we,var:Xe,within:Ge};function Vr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=he(r,n,i,o);if(s)throw new ge(s);return new oe(r/255*o,n/255*o,i/255*o,o)}function qr(t,e){return t in e}function Hr(t,e){var r=e[t];return void 0===r?null:r}function Gr(t){return{type:t}}function Zr(t){return{result:"success",value:t}}function Wr(t){return{result:"error",value:t}}function Yr(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Xr(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function $r(t){return!!t.expression&&t.expression.interpolated}function Jr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Kr(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Qr(t){return t}function tn(t,e){var r,n,i,a="color"===e.type,o=t.stops&&"object"==typeof t.stops[0][0],s=o||void 0!==t.property,l=o||!s,u=t.type||($r(e)?"exponential":"interval");if(a&&((t=Bt({},t)).stops&&(t.stops=t.stops.map((function(t){return[t[0],oe.parse(t[1])]}))),t.default?t.default=oe.parse(t.default):t.default=oe.parse(e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!xr[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===u)r=an;else if("interval"===u)r=nn;else if("categorical"===u){r=rn,n=Object.create(null);for(var c=0,h=t.stops;c=t.stops[n-1][0])return t.stops[n-1][1];var i=Ke(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function an(t,e,r){var n=void 0!==t.base?t.base:1;if("number"!==Jr(r))return en(t.default,e.default);var i=t.stops.length;if(1===i||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var a=Ke(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],u=er[e.type]||Qr;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=xr[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),o))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return u(r,n,o)}}:u(s,l,o)}function on(t,e,r){return"color"===e.type?r=oe.parse(r):"formatted"===e.type?r=ue.fromString(r.toString()):"resolvedImage"===e.type?r=ce.fromString(r.toString()):Jr(r)!==e.type&&("enum"!==e.type||!e.values[r])&&(r=void 0),en(r,t.default,e.default)}Ae.register(Ur,{error:[{kind:"error"},[Gt],function(t,e){var r=e[0];throw new ge(r.evaluate(t))}],typeof:[Gt,[Xt],function(t,e){return te(pe(e[0].evaluate(t)))}],"to-rgba":[Qt(Ht,4),[Wt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Wt,[Ht,Ht,Ht],Vr],rgba:[Wt,[Ht,Ht,Ht,Ht],Vr],has:{type:Zt,overloads:[[[Gt],function(t,e){return qr(e[0].evaluate(t),t.properties())}],[[Gt,Yt],function(t,e){var r=e[0],n=e[1];return qr(r.evaluate(t),n.evaluate(t))}]]},get:{type:Xt,overloads:[[[Gt],function(t,e){return Hr(e[0].evaluate(t),t.properties())}],[[Gt,Yt],function(t,e){var r=e[0],n=e[1];return Hr(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[Xt,[Gt],function(t,e){return Hr(e[0].evaluate(t),t.featureState||{})}],properties:[Yt,[],function(t){return t.properties()}],"geometry-type":[Gt,[],function(t){return t.geometryType()}],id:[Xt,[],function(t){return t.id()}],zoom:[Ht,[],function(t){return t.globals.zoom}],"heatmap-density":[Ht,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ht,[],function(t){return t.globals.lineProgress||0}],accumulated:[Xt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ht,Gr(Ht),function(t,e){for(var r=0,n=0,i=e;n":[Zt,[Gt,Xt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>a}],"filter-id->":[Zt,[Xt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],"filter-<=":[Zt,[Gt,Xt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<=a}],"filter-id-<=":[Zt,[Xt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],"filter->=":[Zt,[Gt,Xt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>=a}],"filter-id->=":[Zt,[Xt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],"filter-has":[Zt,[Xt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Zt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[Zt,[Qt(Gt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Zt,[Qt(Xt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[Zt,[Gt,Qt(Xt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[Zt,[Gt,Qt(Xt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Zt,overloads:[[[Zt,Zt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Gr(Zt),function(t,e){for(var r=0,n=e;r0&&"string"==typeof t[0]&&t[0]in Ur}function un(t,e){var r=new $e(Ur,[],e?function(t){var e={color:Wt,string:Gt,number:Ht,enum:Gt,boolean:Zt,formatted:Jt,resolvedImage:Kt};return"array"===t.type?Qt(e[t.value]||Xt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Zr(new sn(n,e)):Wr(r.errors)}sn.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},sn.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||"number"==typeof o&&o!=o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new ge("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var cn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!We(e.expression)};cn.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},cn.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var hn=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!We(e.expression),this.interpolationType=n};function fn(t,e){if("error"===(t=un(t,e)).result)return t;var r=t.value.expression,n=Ze(r);if(!n&&!Yr(e))return Wr([new Ut("","data expressions not supported")]);var i=Ye(r,["zoom"]);if(!i&&!Xr(e))return Wr([new Ut("","zoom expressions not supported")]);var a=dn(r);if(!a&&!i)return Wr([new Ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof Ut)return Wr([a]);if(a instanceof _r&&!$r(e))return Wr([new Ut("",'"interpolate" expressions cannot be used with this property')]);if(!a)return Zr(new cn(n?"constant":"source",t.value));var o=a instanceof _r?a.interpolation:void 0;return Zr(new hn(n?"camera":"composite",t.value,a.labels,o))}hn.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},hn.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},hn.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?_r.interpolationFactor(this.interpolationType,t,e,r):0};var pn=function(t,e){this._parameters=t,this._specification=e,Bt(this,tn(this._parameters,this._specification))};function dn(t){var e=null;if(t instanceof Tr)e=dn(t.result);else if(t instanceof wr)for(var r=0,n=t.args;rn.maximum?[new Rt(e,r,r+" is greater than the maximum value "+n.maximum)]:[]}function vn(t){var e,r,n,i=t.valueSpec,a=Nt(t.value.type),o={},s="categorical"!==a&&void 0===t.value.property,l=!s,u="array"===Jr(t.value.stops)&&"array"===Jr(t.value.stops[0])&&"object"===Jr(t.value.stops[0][0]),c=mn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===a)return[new Rt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;return e=e.concat(gn({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Jr(r)&&0===r.length&&e.push(new Rt(t.key,r,"array must have at least one stop")),e},default:function(t){return Vn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===a&&s&&c.push(new Rt(t.key,t.value,'missing required property "property"')),"identity"!==a&&!t.value.stops&&c.push(new Rt(t.key,t.value,'missing required property "stops"')),"exponential"===a&&t.valueSpec.expression&&!$r(t.valueSpec)&&c.push(new Rt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Yr(t.valueSpec)?c.push(new Rt(t.key,t.value,"property functions not supported")):s&&!Xr(t.valueSpec)&&c.push(new Rt(t.key,t.value,"zoom functions not supported"))),("categorical"===a||u)&&void 0===t.value.property&&c.push(new Rt(t.key,t.value,'"property" property is required')),c;function h(t){var e=[],a=t.value,s=t.key;if("array"!==Jr(a))return[new Rt(s,a,"array expected, "+Jr(a)+" found")];if(2!==a.length)return[new Rt(s,a,"array length 2 expected, length "+a.length+" found")];if(u){if("object"!==Jr(a[0]))return[new Rt(s,a,"object expected, "+Jr(a[0])+" found")];if(void 0===a[0].zoom)return[new Rt(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new Rt(s,a,"object stop key must have value")];if(n&&n>Nt(a[0].zoom))return[new Rt(s,a[0].zoom,"stop zoom values must appear in ascending order")];Nt(a[0].zoom)!==n&&(n=Nt(a[0].zoom),r=void 0,o={}),e=e.concat(mn({key:s+"[0]",value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:yn,value:f}}))}else e=e.concat(f({key:s+"[0]",value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return ln(jt(a[1]))?e.concat([new Rt(s+"[1]",a[1],"expressions are not allowed in function stops.")]):e.concat(Vn({key:s+"[1]",value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function f(t,n){var s=Jr(t.value),l=Nt(t.value),u=null!==t.value?t.value:n;if(e){if(s!==e)return[new Rt(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Rt(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==a){var c="number expected, "+s+" found";return Yr(i)&&void 0===a&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Rt(t.key,u,c)]}return"categorical"!==a||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==a&&"number"===s&&void 0!==r&&l=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);ee?1:0}function An(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e"===e||"<="===e||">="===e?Sn(t[1],t[2],e):"any"===e?function(t){return["any"].concat(t.map(Mn))}(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(Mn)):"none"===e?["all"].concat(t.slice(1).map(Mn).map(In)):"in"===e?En(t[1],t.slice(2)):"!in"===e?In(En(t[1],t.slice(2))):"has"===e?Cn(t[1]):"!has"===e?In(Cn(t[1])):"within"!==e||t}function Sn(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function En(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(kn)]]:["filter-in-small",t,["literal",e]]}}function Cn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function In(t){return["!",t]}function Ln(t){return bn(jt(t.value))?xn(Bt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Pn(t)}function Pn(t){var e=t.value,r=t.key;if("array"!==Jr(e))return[new Rt(r,e,"array expected, "+Jr(e)+" found")];var n,i=t.styleSpec,a=[];if(e.length<1)return[new Rt(r,e,"filter array must have at least 1 element")];switch(a=a.concat(_n({key:r+"[0]",value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),Nt(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===Nt(e[1])&&a.push(new Rt(r,e,'"$type" cannot be use with operator "'+e[0]+'"'));case"==":case"!=":3!==e.length&&a.push(new Rt(r,e,'filter array for operator "'+e[0]+'" must have 3 elements'));case"in":case"!in":e.length>=2&&"string"!==(n=Jr(e[1]))&&a.push(new Rt(r+"[1]",e[1],"string expected, "+n+" found"));for(var o=2;o=c[p+0]&&n>=c[p+1])?(o[f]=!0,a.push(u[f])):o[f]=!1}}},ti.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(r),h=this._convertToCellCoord(n),f=l;f<=c;f++)for(var p=u;p<=h;p++){var d=this.d*p+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(p),this._convertFromCellCoord(f+1),this._convertFromCellCoord(p+1)))&&i.call(this,t,e,r,n,d,a,o,s))return}},ti.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},ti.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},ti.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=Qn+this.cells.length+1+1,r=0,n=0;n=0)){var h=t[c];u[c]=ni[l].shallow.indexOf(c)>=0?h:li(h,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}throw new Error("can't serialize object of type "+typeof t)}function ui(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||oi(t)||si(t)||ArrayBuffer.isView(t)||t instanceof ei)return t;if(Array.isArray(t))return t.map(ui);if("object"==typeof t){var e=t.$name||"Object",r=ni[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i=0?s:ui(s)}}return n}throw new Error("can't deserialize object of type "+typeof t)}var ci=function(){this.first=!0};ci.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function fi(t){for(var e=0,r=t;e=65097&&t<=65103)||hi["CJK Compatibility Ideographs"](t)||hi["CJK Compatibility"](t)||hi["CJK Radicals Supplement"](t)||hi["CJK Strokes"](t)||hi["CJK Symbols and Punctuation"](t)&&!(t>=12296&&t<=12305)&&!(t>=12308&&t<=12319)&&12336!==t||hi["CJK Unified Ideographs Extension A"](t)||hi["CJK Unified Ideographs"](t)||hi["Enclosed CJK Letters and Months"](t)||hi["Hangul Compatibility Jamo"](t)||hi["Hangul Jamo Extended-A"](t)||hi["Hangul Jamo Extended-B"](t)||hi["Hangul Jamo"](t)||hi["Hangul Syllables"](t)||hi.Hiragana(t)||hi["Ideographic Description Characters"](t)||hi.Kanbun(t)||hi["Kangxi Radicals"](t)||hi["Katakana Phonetic Extensions"](t)||hi.Katakana(t)&&12540!==t||!(!hi["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!hi["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||hi["Unified Canadian Aboriginal Syllabics"](t)||hi["Unified Canadian Aboriginal Syllabics Extended"](t)||hi["Vertical Forms"](t)||hi["Yijing Hexagram Symbols"](t)||hi["Yi Syllables"](t)||hi["Yi Radicals"](t))}function gi(t){return!(mi(t)||function(t){return!!(hi["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||hi["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||hi["Letterlike Symbols"](t)||hi["Number Forms"](t)||hi["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||hi["Control Pictures"](t)&&9251!==t||hi["Optical Character Recognition"](t)||hi["Enclosed Alphanumerics"](t)||hi["Geometric Shapes"](t)||hi["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||hi["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||hi["CJK Symbols and Punctuation"](t)||hi.Katakana(t)||hi["Private Use Area"](t)||hi["CJK Compatibility Forms"](t)||hi["Small Form Variants"](t)||hi["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function yi(t){return hi.Arabic(t)||hi["Arabic Supplement"](t)||hi["Arabic Extended-A"](t)||hi["Arabic Presentation Forms-A"](t)||hi["Arabic Presentation Forms-B"](t)}function vi(t){return t>=1424&&t<=2303||hi["Arabic Presentation Forms-A"](t)||hi["Arabic Presentation Forms-B"](t)}function xi(t,e){return!(!e&&vi(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||hi.Khmer(t))}function _i(t){for(var e=0,r=t;e-1&&(Ai="error"),ki&&ki(t)};function Ei(){Ci.fire(new Pt("pluginStateChange",{pluginStatus:Ai,pluginURL:Mi}))}var Ci=new Ot,Ii=function(){return Ai},Li=function(){if(Ai!==bi||!Mi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ai=wi,Ei(),Mi&&Tt({url:Mi},(function(t){t?Si(t):(Ai=Ti,Ei())}))},Pi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ai===Ti||null!=Pi.applyArabicShaping},isLoading:function(){return Ai===wi},setState:function(t){Ai=t.pluginStatus,Mi=t.pluginURL},isParsed:function(){return null!=Pi.applyArabicShaping&&null!=Pi.processBidirectionalText&&null!=Pi.processStyledBidirectionalText},getPluginURL:function(){return Mi}},zi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ci,this.transition={})};zi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;rthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var Oi=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Kr(t))return new pn(t,e);if(ln(t)){var r=fn(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}var n=t;return"string"==typeof t&&"color"===e.type&&(n=oe.parse(t)),{kind:"constant",evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};Oi.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Oi.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var Di=function(t){this.property=t,this.value=new Oi(t,void 0)};Di.prototype.transitioned=function(t,e){return new Fi(this.property,this.value,e,p({},t.transition,this.transition),t.now)},Di.prototype.untransitioned=function(){return new Fi(this.property,this.value,null,{},0)};var Ri=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Ri.prototype.getValue=function(t){return w(this._values[t].value.value)},Ri.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Di(this._values[t].property)),this._values[t].value=new Oi(this._values[t].property,null===e?void 0:w(e))},Ri.prototype.getTransition=function(t){return w(this._values[t].transition)},Ri.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Di(this._values[t].property)),this._values[t].transition=w(e)||void 0},Ri.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);ethis.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}(o))}return i};var Bi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Bi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new Ui(this._properties),i=0,a=Object.keys(this._values);in.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(qi),Gi=function(t){this.specification=t};Gi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new zi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new zi(Math.floor(e.zoom),e)),t.expression.evaluate(new zi(Math.floor(e.zoom+1),e)),e)}},Gi.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Gi.prototype.interpolate=function(t){return t};var Zi=function(t){this.specification=t};Zi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},Zi.prototype.interpolate=function(){return!1};var Wi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&&this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new Oi(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new Di(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};ii("DataDrivenProperty",qi),ii("DataConstantProperty",Vi),ii("CrossFadedDataDrivenProperty",Hi),ii("CrossFadedProperty",Gi),ii("ColorRampProperty",Zi);var Yi="-transition",Xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new Ni(r.layout)),r.paint)){for(var n in this._transitionablePaint=new Ri(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ui(r.paint)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var n="layers."+this.id+".layout."+t;if(this._validate($n,n,t,e,r))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return x(t,Yi)?this._transitionablePaint.getTransition(t.slice(0,-11)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var n="layers."+this.id+".paint."+t;if(this._validate(Xn,n,t,e,r))return!1}if(x(t,Yi))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;var i=this._transitionablePaint._values[t],a="cross-faded-data-driven"===i.property.specification["property-type"],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),b(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Jn(this,t.call(Wn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Dt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof ji&&Yr(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(Ot),$i={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ji=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ki=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Qi(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map((function(t){var i=function(t){return $i[t].BYTES_PER_ELEMENT}(t.type),a=r=ta(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ta(r,Math.max(n,e)),alignment:e}}function ta(t,e){return Math.ceil(t/e)*e}Ki.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Ki.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Ki.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ki.prototype.clear=function(){this.length=0},Ki.prototype.resize=function(t){this.reserve(t),this.length=t},Ki.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Ki.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(Ki);ea.prototype.bytesPerElement=4,ii("StructArrayLayout2i4",ea);var ra=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(Ki);ra.prototype.bytesPerElement=8,ii("StructArrayLayout4i8",ra);var na=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Ki);na.prototype.bytesPerElement=12,ii("StructArrayLayout2i4i12",na);var ia=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(Ki);ia.prototype.bytesPerElement=8,ii("StructArrayLayout2i4ub8",ia);var aa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(Ki);aa.prototype.bytesPerElement=8,ii("StructArrayLayout2f8",aa);var oa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l,u)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,u,c){var h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=r,this.uint16[h+2]=n,this.uint16[h+3]=i,this.uint16[h+4]=a,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,t},e}(Ki);oa.prototype.bytesPerElement=20,ii("StructArrayLayout10ui20",oa);var sa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,u,c,h){var f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,n,i,a,o,s,l,u,c,h)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,u,c,h,f){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=c,this.int16[p+10]=h,this.int16[p+11]=f,t},e}(Ki);sa.prototype.bytesPerElement=24,ii("StructArrayLayout4i4ui4i24",sa);var la=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(Ki);la.prototype.bytesPerElement=12,ii("StructArrayLayout3f12",la);var ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Ki);ua.prototype.bytesPerElement=4,ii("StructArrayLayout1ul4",ua);var ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,u){var c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=r,this.int16[c+2]=n,this.int16[c+3]=i,this.int16[c+4]=a,this.int16[c+5]=o,this.uint32[h+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,t},e}(Ki);ca.prototype.bytesPerElement=20,ii("StructArrayLayout6i1ul2ui20",ca);var ha=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Ki);ha.prototype.bytesPerElement=12,ii("StructArrayLayout2i2i2i12",ha);var fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(Ki);fa.prototype.bytesPerElement=16,ii("StructArrayLayout2f1f2i16",fa);var pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(Ki);pa.prototype.bytesPerElement=12,ii("StructArrayLayout2ub2f12",pa);var da=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(Ki);da.prototype.bytesPerElement=6,ii("StructArrayLayout3ui6",da);var ma=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g){var y=this.length;return this.resize(y+1),this.emplace(y,t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y){var v=24*t,x=12*t,_=48*t;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=n,this.uint16[v+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=c,this.float32[x+7]=h,this.float32[x+8]=f,this.uint8[_+36]=p,this.uint8[_+37]=d,this.uint8[_+38]=m,this.uint32[x+10]=g,this.int16[v+22]=y,t},e}(Ki);ma.prototype.bytesPerElement=48,ii("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ma);var ga=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S,E){var C=34*t,I=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=u,this.uint16[C+9]=c,this.uint16[C+10]=h,this.uint16[C+11]=f,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=m,this.uint16[C+15]=g,this.uint16[C+16]=y,this.uint16[C+17]=v,this.uint16[C+18]=x,this.uint16[C+19]=_,this.uint16[C+20]=b,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[I+12]=k,this.float32[I+13]=A,this.float32[I+14]=M,this.float32[I+15]=S,this.float32[I+16]=E,t},e}(Ki);ga.prototype.bytesPerElement=68,ii("StructArrayLayout8i15ui1ul4f68",ga);var ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Ki);ya.prototype.bytesPerElement=4,ii("StructArrayLayout1f4",ya);var va=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(Ki);va.prototype.bytesPerElement=6,ii("StructArrayLayout3i6",va);var xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(Ki);xa.prototype.bytesPerElement=8,ii("StructArrayLayout1ul2ui8",xa);var _a=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(Ki);_a.prototype.bytesPerElement=4,ii("StructArrayLayout2ui4",_a);var ba=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Ki);ba.prototype.bytesPerElement=2,ii("StructArrayLayout1ui2",ba);var wa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(Ki);wa.prototype.bytesPerElement=16,ii("StructArrayLayout4f16",wa);var Ta=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Ji);Ta.prototype.size=20;var ka=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Ta(this,t)},e}(ca);ii("CollisionBoxArray",ka);var Aa=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Ji);Aa.prototype.size=48;var Ma=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Aa(this,t)},e}(ma);ii("PlacedSymbolArray",Ma);var Sa=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Ji);Sa.prototype.size=68;var Ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Sa(this,t)},e}(ga);ii("SymbolInstanceArray",Ea);var Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ya);ii("GlyphOffsetArray",Ca);var Ia=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(va);ii("SymbolLineVertexArray",Ia);var La=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Ji);La.prototype.size=8;var Pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new La(this,t)},e}(xa);ii("FeatureIndexArray",Pa);var za=Qi([{name:"a_pos",components:2,type:"Int16"}],4).members,Oa=function(t){void 0===t&&(t=[]),this.segments=t};function Da(t,e){return 256*(t=h(Math.floor(t),0,255))+h(Math.floor(e),0,255)}Oa.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t>Oa.MAX_VERTEX_ARRAY_LENGTH&&k("Max vertices per segment is "+Oa.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>Oa.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i},Oa.prototype.get=function(){return this.segments},Oa.prototype.destroy=function(){for(var t=0,e=this.segments;t>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),Ba=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),Na=Fa,ja=Fa,Ua=Ba;Na.murmur3=ja,Na.murmur2=Ua;var Va=function(){this.ids=[],this.positions=[],this.indexed=!1};Va.prototype.add=function(t,e,r,n){this.ids.push(Ha(t)),this.positions.push(e,r,n)},Va.prototype.getPositions=function(t){for(var e=Ha(t),r=0,n=this.ids.length-1;r>1;this.ids[i]>=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},Va.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Ga(r,n,0,r.length-1),e&&e.push(r.buffer,n.buffer),{ids:r,positions:n}},Va.deserialize=function(t){var e=new Va;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var qa=Math.pow(2,53)-1;function Ha(t){var e=+t;return!isNaN(e)&&e<=qa?e:Na(String(t))}function Ga(t,e,r,n){for(;r>1],a=r-1,o=n+1;;){do{a++}while(t[a]i);if(a>=o)break;Za(t,a,o),Za(e,3*a,3*o),Za(e,3*a+1,3*o+1),Za(e,3*a+2,3*o+2)}o-ro.x+1||lo.y+1)&&k("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function yo(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?go(t):[]}}function vo(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var xo=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new ea,this.indexArray=new da,this.segments=new Oa,this.programConfigurations=new uo(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function _o(t,e){for(var r=0;r1){if(ko(t,e))return!0;for(var n=0;n1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function Eo(t,e){for(var r,n,i,a=!1,o=0;oe.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function Co(t,e){for(var r=!1,n=0,i=t.length-1;ne.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function Io(t,e,r){var n=r[0],i=r[2];if(t.xi.x&&e.x>i.x||t.yi.y&&e.y>i.y)return!1;var a=A(t,e,r[0]);return a!==A(t,e,r[1])||a!==A(t,e,r[2])||a!==A(t,e,r[3])}function Lo(t,e,r){var n=e.paint.get(t).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Po(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zo(t,e,r,n,i){if(!e[0]&&!e[1])return t;var o=a.convert(e)._mult(i);"viewport"===r&&o._rotate(-n);for(var s=[],l=0;l=fo||c<0||c>=fo)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),f=h.vertexLength;vo(this.layoutVertexArray,u,c,-1,-1),vo(this.layoutVertexArray,u,c,1,-1),vo(this.layoutVertexArray,u,c,1,1),vo(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},ii("CircleBucket",xo,{omit:["layers"]});var Oo=new Wi({"circle-sort-key":new qi(Dt.layout_circle["circle-sort-key"])}),Do={paint:new Wi({"circle-radius":new qi(Dt.paint_circle["circle-radius"]),"circle-color":new qi(Dt.paint_circle["circle-color"]),"circle-blur":new qi(Dt.paint_circle["circle-blur"]),"circle-opacity":new qi(Dt.paint_circle["circle-opacity"]),"circle-translate":new Vi(Dt.paint_circle["circle-translate"]),"circle-translate-anchor":new Vi(Dt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Vi(Dt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Vi(Dt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new qi(Dt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new qi(Dt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new qi(Dt.paint_circle["circle-stroke-opacity"])}),layout:Oo},Ro="undefined"!=typeof Float32Array?Float32Array:Array;function Fo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Bo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=r[0],_=r[1],b=r[2],w=r[3];return t[0]=x*n+_*s+b*h+w*m,t[1]=x*i+_*l+b*f+w*g,t[2]=x*a+_*u+b*p+w*y,t[3]=x*o+_*c+b*d+w*v,x=r[4],_=r[5],b=r[6],w=r[7],t[4]=x*n+_*s+b*h+w*m,t[5]=x*i+_*l+b*f+w*g,t[6]=x*a+_*u+b*p+w*y,t[7]=x*o+_*c+b*d+w*v,x=r[8],_=r[9],b=r[10],w=r[11],t[8]=x*n+_*s+b*h+w*m,t[9]=x*i+_*l+b*f+w*g,t[10]=x*a+_*u+b*p+w*y,t[11]=x*o+_*c+b*d+w*v,x=r[12],_=r[13],b=r[14],w=r[15],t[12]=x*n+_*s+b*h+w*m,t[13]=x*i+_*l+b*f+w*g,t[14]=x*a+_*u+b*p+w*y,t[15]=x*o+_*c+b*d+w*v,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var No,jo=Bo;function Uo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}No=new Ro(3),Ro!=Float32Array&&(No[0]=0,No[1]=0,No[2]=0),function(){var t=new Ro(4);Ro!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var Vo=(function(){var t=new Ro(2);Ro!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,Do)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new xo(t)},e.prototype.queryRadius=function(t){var e=t;return Lo("circle-radius",this,e)+Lo("circle-stroke-width",this,e)+Po(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=zo(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),a.angle,o),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),c="map"===this.paint.get("circle-pitch-alignment"),h=c?l:function(t,e){return t.map((function(t){return qo(t,e)}))}(l,s),f=c?u*o:u,p=0,d=n;pt.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=t.data,s=e.data,l=0;l80*r){n=a=t[0],i=o=t[1];for(var d=r;da&&(a=s),l>o&&(o=l);u=0!==(u=Math.max(a-n,o-i))?1/u:0}return ss(f,p,r,n,i,u),p}function as(t,e,r,n,i){var a,o;if(i===Cs(t,e,r,n)>0)for(a=e;a=e;a-=n)o=Ms(a,t[a],t[a+1],o);return o&&_s(o,o.next)&&(Ss(o),o=o.next),o}function os(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!_s(n,n.next)&&0!==xs(n.prev,n,n.next))n=n.next;else{if(Ss(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function ss(t,e,r,n,i,a,o){if(t){!o&&a&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=ms(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,u=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1)}(i)}(t,n,i,a);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?us(t,n,i,a):ls(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Ss(t),t=l.next,u=l.next;else if((t=l)===u){o?1===o?ss(t=cs(os(t),e,r),e,r,n,i,a,2):2===o&&hs(t,e,r,n,i,a):ss(os(t),e,r,n,i,a,1);break}}}function ls(t){var e=t.prev,r=t,n=t.next;if(xs(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(ys(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&xs(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function us(t,e,r,n){var i=t.prev,a=t,o=t.next;if(xs(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=ms(s,l,e,r,n),f=ms(u,c,e,r,n),p=t.prevZ,d=t.nextZ;p&&p.z>=h&&d&&d.z<=f;){if(p!==t.prev&&p!==t.next&&ys(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&xs(p.prev,p,p.next)>=0||(p=p.prevZ,d!==t.prev&&d!==t.next&&ys(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&xs(d.prev,d,d.next)>=0))return!1;d=d.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&ys(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&xs(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&ys(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&xs(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function cs(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!_s(i,a)&&bs(i,n,n.next,a)&&ks(i,a)&&ks(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Ss(n),Ss(n.next),n=t=a),n=n.next}while(n!==t);return os(n)}function hs(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&vs(o,s)){var l=As(o,s);return o=os(o,o.next),l=os(l,l.next),ss(o,e,r,n,i,a),void ss(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function fs(t,e){return t.x-e.x}function ps(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=c&&i!==n.x&&ys(ar.x||n.x===r.x&&ds(r,n)))&&(r=n,f=l)),n=n.next}while(n!==u);return r}(t,e),e){var r=As(e,t);os(e,e.next),os(r,r.next)}}function ds(t,e){return xs(t.prev,t,e.prev)<0&&xs(e.next,t,t.next)<0}function ms(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function gs(t){var e=t,r=t;do{(e.x=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function vs(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&bs(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(ks(t,e)&&ks(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(xs(t.prev,t,e.prev)||xs(t,e.prev,e))||_s(t,e)&&xs(t.prev,t,t.next)>0&&xs(e.prev,e,e.next)>0)}function xs(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function _s(t,e){return t.x===e.x&&t.y===e.y}function bs(t,e,r,n){var i=Ts(xs(t,e,r)),a=Ts(xs(t,e,n)),o=Ts(xs(r,n,t)),s=Ts(xs(r,n,e));return!!(i!==a&&o!==s||0===i&&ws(t,r,e)||0===a&&ws(t,n,e)||0===o&&ws(r,t,n)||0===s&&ws(r,e,n))}function ws(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ts(t){return t>0?1:t<0?-1:0}function ks(t,e){return xs(t.prev,t,t.next)<0?xs(t,e,t.next)>=0&&xs(t,t.prev,e)>=0:xs(t,e,t.prev)<0||xs(t,t.next,e)<0}function As(t,e){var r=new Es(t.i,t.x,t.y),n=new Es(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Ms(t,e,r,n){var i=new Es(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ss(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Es(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Cs(t,e,r,n){for(var i=0,a=e,o=r-n;ar;){if(n-r>600){var a=n-r+1,o=e-r+1,s=Math.log(a),l=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1);Ls(t,e,Math.max(r,Math.floor(e-o*l/a+u)),Math.min(n,Math.floor(e+(a-o)*l/a+u)),i)}var c=t[e],h=r,f=n;for(Ps(t,r,e),i(t[n],c)>0&&Ps(t,r,n);h0;)f--}0===i(t[r],c)?Ps(t,r,f):Ps(t,++f,n),f<=e&&(r=f+1),e<=f&&(n=f-1)}}function Ps(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function zs(t,e){return te?1:0}function Os(t,e){var r=t.length;if(r<=1)return[t];for(var n,i,a=[],o=0;o1)for(var l=0;l0&&(n+=t[i-1].length,r.holes.push(n))}return r},rs.default=ns;var Bs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ea,this.indexArray=new da,this.indexArray2=new _a,this.programConfigurations=new uo(t.layers,t.zoom),this.segments=new Oa,this.segments2=new Oa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Bs.prototype.populate=function(t,e,r){this.hasPattern=Rs("fill",this.layers,e);for(var n=this.layers[0].layout.get("fill-sort-key"),i=[],a=0,o=t;a>3}if(i--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&l.push(e),e=[]),e.push(new a(o,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&l.push(e),l},Hs.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;t.pos>3}if(n--,1===r||2===r)(i+=t.readSVarint())s&&(s=i),(a+=t.readSVarint())u&&(u=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,u]},Hs.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=Hs.types[this.type];function c(t){for(var e=0;e>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}Ys.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new qs(this._pbf,e,this.extent,this._keys,this._values)};function $s(t,e,r){if(3===t){var n=new Ws(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}var Js={VectorTile:function(t,e){this.layers=t.readFields($s,{},e)},VectorTileFeature:qs,VectorTileLayer:Ws},Ks=Js.VectorTileFeature.types,Qs=Math.pow(2,13);function tl(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Qs)+o,i*Qs*2,a*Qs*2,Math.round(s))}var el=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new na,this.indexArray=new da,this.programConfigurations=new uo(t.layers,t.zoom),this.segments=new Oa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function rl(t,e){return t.x===e.x&&(t.x<0||t.x>fo)||t.y===e.y&&(t.y<0||t.y>fo)}function nl(t){return t.every((function(t){return t.x<0}))||t.every((function(t){return t.x>fo}))||t.every((function(t){return t.y<0}))||t.every((function(t){return t.y>fo}))}el.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=Rs("fill-extrusion",this.layers,e);for(var n=0,i=t;n=1){var v=d[g-1];if(!rl(y,v)){h.vertexLength+4>Oa.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=y.sub(v)._perp()._unit(),_=v.dist(y);m+_>32768&&(m=0),tl(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,m),tl(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,m),m+=_,tl(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,m),tl(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,m);var b=h.vertexLength;this.indexArray.emplaceBack(b,b+2,b+1),this.indexArray.emplaceBack(b+1,b+2,b+3),h.vertexLength+=4,h.primitiveLength+=2}}}}if(h.vertexLength+l>Oa.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===Ks[t.type]){for(var w=[],T=[],k=h.vertexLength,A=0,M=s;A=2&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u0;if(T&&y>u){var A=c.dist(p);if(A>2*h){var M=c.sub(c.sub(p)._mult(h/A)._round());this.updateDistance(p,M),this.addCurrentVertex(M,m,0,0,f),p=M}}var S=p&&d,E=S?r:s?"butt":n;if(S&&"round"===E&&(bi&&(E="bevel"),"bevel"===E&&(b>2&&(E="flipbevel"),b100)v=g.mult(-1);else{var C=b*m.add(g).mag()/m.sub(g).mag();v._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(c,v,0,0,f),this.addCurrentVertex(c,v.mult(-1),0,0,f)}else if("bevel"===E||"fakeround"===E){var I=-Math.sqrt(b*b-1),L=k?I:0,P=k?0:I;if(p&&this.addCurrentVertex(c,m,L,P,f),"fakeround"===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O2*h){var j=c.add(d.sub(c)._mult(h/N)._round());this.updateDistance(c,j),this.addCurrentVertex(j,g,0,0,f),c=j}}}}},pl.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&&(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,u=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,u,a,!0,-n,i),this.distance>fl/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},pl.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,u=.5*(this.lineClips?this.scaledDistance*(fl-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((s<<1)+(n?1:0),(l<<1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a<0?-1:1)|(63&u)<<2,u>>6),this.lineClips){var c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}var h=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,h),o.primitiveLength++),i?this.e2=h:this.e1=h},pl.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},pl.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},ii("LineBucket",pl,{omit:["layers","patternFeatures"]});var dl=new Wi({"line-cap":new Vi(Dt.layout_line["line-cap"]),"line-join":new qi(Dt.layout_line["line-join"]),"line-miter-limit":new Vi(Dt.layout_line["line-miter-limit"]),"line-round-limit":new Vi(Dt.layout_line["line-round-limit"]),"line-sort-key":new qi(Dt.layout_line["line-sort-key"])}),ml={paint:new Wi({"line-opacity":new qi(Dt.paint_line["line-opacity"]),"line-color":new qi(Dt.paint_line["line-color"]),"line-translate":new Vi(Dt.paint_line["line-translate"]),"line-translate-anchor":new Vi(Dt.paint_line["line-translate-anchor"]),"line-width":new qi(Dt.paint_line["line-width"]),"line-gap-width":new qi(Dt.paint_line["line-gap-width"]),"line-offset":new qi(Dt.paint_line["line-offset"]),"line-blur":new qi(Dt.paint_line["line-blur"]),"line-dasharray":new Gi(Dt.paint_line["line-dasharray"]),"line-pattern":new Hi(Dt.paint_line["line-pattern"]),"line-gradient":new Zi(Dt.paint_line["line-gradient"])}),layout:dl},gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new zi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=p({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(qi),yl=new gl(ml.paint.properties["line-width"].specification);yl.useIntegerZoom=!0;var vl=function(t){function e(e){t.call(this,e,ml),this.gradientVersion=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){if("line-gradient"===t){var e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression.expression instanceof Qe,this.gradientVersion=(this.gradientVersion+1)%l}},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values["line-floorwidth"]=yl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new pl(t)},e.prototype.queryRadius=function(t){var e=t,r=xl(Lo("line-width",this,e),Lo("line-gap-width",this,e)),n=Lo("line-offset",this,e);return r/2+Math.abs(n)+Po(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,o,s){var l=zo(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,s),u=s/2*xl(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),c=this.paint.get("line-offset").evaluate(e,r);return c&&(n=function(t,e){for(var r=[],n=new a(0,0),i=0;i=3)for(var a=0;a0?e+2*t:t}var _l=Qi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),bl=Qi([{name:"a_projected_pos",components:3,type:"Float32"}],4),wl=(Qi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Qi([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Tl=(Qi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Qi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),kl=Qi([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Al(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),Pi.applyArabicShaping&&(t=Pi.applyArabicShaping(t)),t}(t.text,e,r)})),t}Qi([{name:"triangle",components:3,type:"Uint16"}]),Qi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Qi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Qi([{type:"Float32",name:"offsetX"}]),Qi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Ml={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Sl=24,El=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)},Cl=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*m},Il=Ll;function Ll(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ll.Varint=0,Ll.Fixed64=1,Ll.Bytes=2,Ll.Fixed32=5;var Pl=4294967296,zl=1/Pl,Ol="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Dl(t){return t.type===Ll.Bytes?t.readVarint()+t.pos:t.pos+1}function Rl(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function Fl(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Yl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function Xl(t,e,r){1===t&&r.readMessage($l,e)}function $l(t,e,r){if(3===t){var n=r.readMessage(Jl,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,u=n.top,c=n.advance;e.push({id:i,bitmap:new Yo({width:o+6,height:s+6},a),metrics:{width:o,height:s,left:l,top:u,advance:c}})}}function Jl(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}function Kl(t){for(var e=0,r=0,n=0,i=t;n=0;f--){var p=o[f];if(!(h.w>p.w||h.h>p.h)){if(h.x=p.x,h.y=p.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===p.w&&h.h===p.h){var d=o.pop();f>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Zl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Yl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Zl(this.buf,this.pos)+Zl(this.buf,this.pos+4)*Pl;return this.pos+=8,t},readSFixed64:function(){var t=Zl(this.buf,this.pos)+Yl(this.buf,this.pos+4)*Pl;return this.pos+=8,t},readFloat:function(){var t=El(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=El(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128||(e|=(127&(r=n[this.pos++]))<<7,r<128)||(e|=(127&(r=n[this.pos++]))<<14,r<128)||(e|=(127&(r=n[this.pos++]))<<21,r<128)?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128||(n|=(127&(i=a[r.pos++]))<<3,i<128)||(n|=(127&(i=a[r.pos++]))<<10,i<128)||(n|=(127&(i=a[r.pos++]))<<17,i<128)||(n|=(127&(i=a[r.pos++]))<<24,i<128)||(n|=(1&(i=a[r.pos++]))<<31,i<128))return function(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Ol?function(t,e,r){return Ol.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n="",i=e;i239?4:l>223?3:l>191?2:1;if(i+c>r)break;1===c?l<128&&(u=l):2===c?128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)<=127&&(u=null):3===c?(a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&((u=(15&l)<<12|(63&a)<<6|63&o)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=c}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ll.Bytes)return t.push(this.readVarint(e));var r=Dl(this);for(t=t||[];this.pos127;);else if(e===Ll.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ll.Fixed32)this.pos+=4;else{if(e!==Ll.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&Rl(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Cl(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Cl(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&Rl(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Ll.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Fl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Bl,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,Ul,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Nl,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,jl,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Vl,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ql,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,Hl,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,Gl,e)},writeBytesField:function(t,e){this.writeTag(t,Ll.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ll.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ll.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ll.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ll.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ll.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ll.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ll.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ll.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ll.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};var Ql=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},tu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};tu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},tu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},tu.tlbr.get=function(){return this.tl.concat(this.br)},tu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Ql.prototype,tu);var eu=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=Kl(i),o=a.w,s=a.h,l=new Xo({width:o||1,height:s||1});for(var u in t){var c=t[u],h=r[u].paddedRect;Xo.copy(c.data,l,{x:0,y:0},{x:h.x+1,y:h.y+1},c.data)}for(var f in e){var p=e[f],d=n[f].paddedRect,m=d.x+1,g=d.y+1,y=p.data.width,v=p.data.height;Xo.copy(p.data,l,{x:0,y:0},{x:m,y:g},p.data),Xo.copy(p.data,l,{x:0,y:v-1},{x:m,y:g-1},{width:y,height:1}),Xo.copy(p.data,l,{x:0,y:0},{x:m,y:g+v},{width:y,height:1}),Xo.copy(p.data,l,{x:y-1,y:0},{x:m-1,y:g},{width:1,height:v}),Xo.copy(p.data,l,{x:0,y:0},{x:m+y,y:g},{width:1,height:v})}this.image=l,this.iconPositions=r,this.patternPositions=n};eu.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new Ql(a,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(n)}},eu.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},eu.prototype.patchUpdatedImage=function(t,e,r){if(t&&e&&t.version!==e.version){t.version=e.version;var n=t.tl,i=n[0],a=n[1];r.update(e.data,void 0,{x:i,y:a})}},ii("ImagePosition",Ql),ii("ImageAtlas",eu);var ru={horizontal:1,vertical:2,horizontalOnly:3},nu=-17,iu=function(){this.scale=1,this.fontStack="",this.imageName=null};iu.forText=function(t,e){var r=new iu;return r.scale=t||1,r.fontStack=e,r},iu.forImage=function(t){var e=new iu;return e.imageName=t,e};var au=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function ou(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m){var g=au.fromFeature(t,i);h===ru.vertical&&g.verticalizePunctuation();var y,v=Pi.processBidirectionalText,x=Pi.processStyledBidirectionalText;if(v&&1===g.sections.length){y=[];for(var _=0,b=v(g.toString(),du(g,u,a,e,n,p,d));_0&&B>A&&(A=B)}else{var N=r[S.fontStack],j=N&&N[C];if(j&&j.rect)P=j.rect,L=j.metrics;else{var U=e[S.fontStack],V=U&&U[C];if(!V)continue;L=V.metrics}I=(b-S.scale)*Sl}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:f,y:p+I,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:L,rect:P}),f+=O*S.scale+u):(k.push({glyph:C,imageName:z,x:f,y:p+I,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:L,rect:P}),f+=L.advance*S.scale+u)}if(0!==k.length){var q=f-u;d=Math.max(q,d),gu(k,0,k.length-1,g,A)}f=0;var H=a*b+A;T.lineOffset=Math.max(A,w),p+=H,m=Math.max(H,m),++y}else p+=a,++y}var G=p-nu,Z=mu(o),W=Z.horizontalAlign,Y=Z.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var u,c=(e-r)*i;u=a!==o?-s*n-nu:(-n*l+.5)*o;for(var h=0,f=t;h=0&&n>=t&&su[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},au.prototype.substring=function(t,e){var r=new au;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},au.prototype.toString=function(){return this.text},au.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},au.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(iu.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var su={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},lu={};function uu(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*Sl/a+i:0}var s=r[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+i:0}function cu(t,e,r,n){var i=Math.pow(t-e,2);return n?t=0,c=0,h=0;h-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],u=0;sn;)u-=l.shift().angleDelta;if(u>i)return!1;o++,s+=h.dist(f)}return!0}function Au(t){for(var e=0,r=0;ru){var d=(u-l)/p,m=tr(h.x,f.x,d),g=tr(h.y,f.y,d),y=new vu(m,g,f.angleTo(h),c);return y._round(),!o||ku(t,y,s,o,e)?y:void 0}l+=p}}function Cu(t,e,r,n,i,a,o,s,l){var u=Mu(n,a,o),c=Su(n,i),h=c*o,f=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h=0&&_=0&&b=0&&f+u<=c){var w=new vu(_,b,v,d);w._round(),(!n||ku(t,w,a,n,i))&&p.push(w)}}h+=y}return!s&&!p.length&&!o&&(p=Iu(t,h/2,r,n,i,a,o,!0,l)),p}function Lu(t,e,r,n,i){for(var o=[],s=0;s=n&&f.x>=n)&&(h.x>=n?h=new a(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round():f.x>=n&&(f=new a(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round()),!(h.y>=i&&f.y>=i)&&(h.y>=i?h=new a(h.x+(f.x-h.x)*((i-h.y)/(f.y-h.y)),i)._round():f.y>=i&&(f=new a(h.x+(f.x-h.x)*((i-h.y)/(f.y-h.y)),i)._round()),(!u||!h.equals(u[u.length-1]))&&(u=[h],o.push(u)),u.push(f)))))}return o}function Pu(t,e,r,n){var i=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,u=o.paddedRect.h-2,c=t.right-t.left,h=t.bottom-t.top,f=o.stretchX||[[0,l]],p=o.stretchY||[[0,u]],d=function(t,e){return t+e[1]-e[0]},m=f.reduce(d,0),g=p.reduce(d,0),y=l-m,v=u-g,x=0,_=m,b=0,w=g,T=0,k=y,A=0,M=v;if(o.content&&n){var S=o.content;x=zu(f,0,S[0]),b=zu(p,0,S[1]),_=zu(f,S[0],S[2]),w=zu(p,S[1],S[3]),T=S[0]-x,A=S[1]-b,k=S[2]-S[0]-_,M=S[3]-S[1]-w}var E=function(n,i,l,u){var f=Du(n.stretch-x,_,c,t.left),p=Ru(n.fixed-T,k,n.stretch,m),d=Du(i.stretch-b,w,h,t.top),y=Ru(i.fixed-A,M,i.stretch,g),v=Du(l.stretch-x,_,c,t.left),S=Ru(l.fixed-T,k,l.stretch,m),E=Du(u.stretch-b,w,h,t.top),C=Ru(u.fixed-A,M,u.stretch,g),I=new a(f,d),L=new a(v,d),P=new a(v,E),z=new a(f,E),O=new a(p/s,y/s),D=new a(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];I._matMult(N),L._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=i.stretch+i.fixed,q=u.stretch+u.fixed;return{tl:I,tr:L,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+V,w:U-j,h:q-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/c,minFontScaleY:M/s/h,isSDF:r}};if(n&&(o.stretchX||o.stretchY))for(var C=Ou(f,y,m),I=Ou(p,v,g),L=0;L0&&(d=Math.max(10,d),this.circleDiameter=d)}else{var m=o.top*s-l,g=o.bottom*s+l,y=o.left*s-l,v=o.right*s+l,x=o.collisionPadding;if(x&&(y-=x[0]*s,m-=x[1]*s,v+=x[2]*s,g+=x[3]*s),c){var _=new a(y,m),b=new a(v,m),w=new a(y,g),T=new a(v,g),k=c*Math.PI/180;_._rotate(k),b._rotate(k),w._rotate(k),T._rotate(k),y=Math.min(_.x,b.x,w.x,T.x),v=Math.max(_.x,b.x,w.x,T.x),m=Math.min(_.y,b.y,w.y,T.y),g=Math.max(_.y,b.y,w.y,T.y)}t.emplaceBack(e.x,e.y,y,m,v,g,r,n,i)}this.boxEndIndex=t.length},Bu=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=Nu),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)};function Nu(t,e){return te?1:0}function ju(t,e,r){void 0===e&&(e=1),void 0===r&&(r=!1);for(var n=1/0,i=1/0,o=-1/0,s=-1/0,l=t[0],u=0;uo)&&(o=c.x),(!u||c.y>s)&&(s=c.y)}var h=o-n,f=s-i,p=Math.min(h,f),d=p/2,m=new Bu([],Uu);if(0===p)return new a(n,i);for(var g=n;gv.d||!v.d)&&(v=_,r&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,x)),!(_.max-v.d<=e)&&(d=_.h/2,m.push(new Vu(_.p.x-d,_.p.y-d,d,t)),m.push(new Vu(_.p.x+d,_.p.y-d,d,t)),m.push(new Vu(_.p.x-d,_.p.y+d,d,t)),m.push(new Vu(_.p.x+d,_.p.y+d,d,t)),x+=4)}return r&&(console.log("num probes: "+x),console.log("best distance: "+v.d)),v.p}function Uu(t,e){return e.max-t.max}function Vu(t,e,r,n){this.p=new a(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;it.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(r=!r),n=Math.min(n,So(t,u,c))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Bu.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Bu.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Bu.prototype.peek=function(){return this.data[0]},Bu.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n},Bu.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];t=0)break;e[t]=o,t=a}e[t]=i};var qu=Number.POSITIVE_INFINITY;function Hu(t,e){return e[1]!==qu?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":i=r-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-r}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":n=i-7;break;case"bottom-right":case"bottom-left":n=7-i;break;case"bottom":n=7-e;break;case"top":n=e-7}switch(t){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=e;break;case"right":r=-e}return[r,n]}(t,e[0])}function Gu(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var Zu=255,Wu=32640;function Yu(t,e,r,n,i,o,s,l,u,c,h,f,p,d,m){var g=function(t,e,r,n,i,o,s,l){for(var u=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,c=[],h=0,f=e.positionedLines;hWu&&k(t.layerIds[0]+': Value for "text-size" is >= '+Zu+'. Reduce your "text-size".'):"composite"===y.kind&&((v=[xu*d.compositeTextSizes[0].evaluate(s,{},m),xu*d.compositeTextSizes[1].evaluate(s,{},m)])[0]>Wu||v[1]>Wu)&&k(t.layerIds[0]+': Value for "text-size" is >= '+Zu+'. Reduce your "text-size".'),t.addSymbols(t.text,g,v,l,o,s,c,e,u.lineStartIndex,u.lineLength,p,m);for(var x=0,_=h;x<_.length;x+=1)f[_[x]]=t.text.placedSymbolArray.length-1;return 4*g.length}function Xu(t){for(var e in t)return t[e];return null}function $u(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o>=0;o--)if(n.dist(a[o])0)&&("constant"!==a.value.kind||a.value.value.length>0),u="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],l||u){for(var h=e.iconDependencies,f=e.glyphDependencies,p=e.availableImages,d=new zi(this.zoom),m=0,g=t;m=0;for(var z=0,O=k.sections;z=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l0},ic.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ic.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ic.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ic.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ic.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r=0&&n.indexOf(t)===r&&e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},ii("SymbolBucket",ic,{omit:["layers","collisionBoxArray","features","compareText"]}),ic.MAX_GLYPHS=65535,ic.addDynamicAttributes=tc;var ac=new Wi({"symbol-placement":new Vi(Dt.layout_symbol["symbol-placement"]),"symbol-spacing":new Vi(Dt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Vi(Dt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qi(Dt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Vi(Dt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Vi(Dt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Vi(Dt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Vi(Dt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Vi(Dt.layout_symbol["icon-rotation-alignment"]),"icon-size":new qi(Dt.layout_symbol["icon-size"]),"icon-text-fit":new Vi(Dt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Vi(Dt.layout_symbol["icon-text-fit-padding"]),"icon-image":new qi(Dt.layout_symbol["icon-image"]),"icon-rotate":new qi(Dt.layout_symbol["icon-rotate"]),"icon-padding":new Vi(Dt.layout_symbol["icon-padding"]),"icon-keep-upright":new Vi(Dt.layout_symbol["icon-keep-upright"]),"icon-offset":new qi(Dt.layout_symbol["icon-offset"]),"icon-anchor":new qi(Dt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Vi(Dt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Vi(Dt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Vi(Dt.layout_symbol["text-rotation-alignment"]),"text-field":new qi(Dt.layout_symbol["text-field"]),"text-font":new qi(Dt.layout_symbol["text-font"]),"text-size":new qi(Dt.layout_symbol["text-size"]),"text-max-width":new qi(Dt.layout_symbol["text-max-width"]),"text-line-height":new Vi(Dt.layout_symbol["text-line-height"]),"text-letter-spacing":new qi(Dt.layout_symbol["text-letter-spacing"]),"text-justify":new qi(Dt.layout_symbol["text-justify"]),"text-radial-offset":new qi(Dt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Vi(Dt.layout_symbol["text-variable-anchor"]),"text-anchor":new qi(Dt.layout_symbol["text-anchor"]),"text-max-angle":new Vi(Dt.layout_symbol["text-max-angle"]),"text-writing-mode":new Vi(Dt.layout_symbol["text-writing-mode"]),"text-rotate":new qi(Dt.layout_symbol["text-rotate"]),"text-padding":new Vi(Dt.layout_symbol["text-padding"]),"text-keep-upright":new Vi(Dt.layout_symbol["text-keep-upright"]),"text-transform":new qi(Dt.layout_symbol["text-transform"]),"text-offset":new qi(Dt.layout_symbol["text-offset"]),"text-allow-overlap":new Vi(Dt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Vi(Dt.layout_symbol["text-ignore-placement"]),"text-optional":new Vi(Dt.layout_symbol["text-optional"])}),oc=new Wi({"icon-opacity":new qi(Dt.paint_symbol["icon-opacity"]),"icon-color":new qi(Dt.paint_symbol["icon-color"]),"icon-halo-color":new qi(Dt.paint_symbol["icon-halo-color"]),"icon-halo-width":new qi(Dt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qi(Dt.paint_symbol["icon-halo-blur"]),"icon-translate":new Vi(Dt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Vi(Dt.paint_symbol["icon-translate-anchor"]),"text-opacity":new qi(Dt.paint_symbol["text-opacity"]),"text-color":new qi(Dt.paint_symbol["text-color"],{runtimeType:Wt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new qi(Dt.paint_symbol["text-halo-color"]),"text-halo-width":new qi(Dt.paint_symbol["text-halo-width"]),"text-halo-blur":new qi(Dt.paint_symbol["text-halo-blur"]),"text-translate":new Vi(Dt.paint_symbol["text-translate"]),"text-translate-anchor":new Vi(Dt.paint_symbol["text-translate-anchor"])}),sc={paint:oc,layout:ac},lc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:qt,this.defaultValue=t};lc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},lc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},lc.prototype.outputDefined=function(){return!1},lc.prototype.serialize=function(){return null},ii("FormatSectionOverride",lc,{omit:["defaultValue"]});var uc=function(t){function e(e){t.call(this,e,sc)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var i=[],a=0,o=n;a",targetMapId:n,sourceMapId:a.mapId})}}},Tc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&&n()}else S()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Tc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Tc.prototype.processTask=function(t,e){var r=this;if(""===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n(ui(e.error)):n(null,ui(e.data)))}else{var i=!1,a=I(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:"",sourceMapId:r.mapId,error:e?li(e):null,data:li(n,a)},a)}:function(t){i=!0},s=null,l=ui(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var u=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,u[0],l.source)[u[1]](l,o)}else o(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Tc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Ac=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ac.prototype.setNorthEast=function(t){return this._ne=t instanceof Sc?new Sc(t.lng,t.lat):Sc.convert(t),this},Ac.prototype.setSouthWest=function(t){return this._sw=t instanceof Sc?new Sc(t.lng,t.lat):Sc.convert(t),this},Ac.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Sc)e=t,r=t;else{if(!(t instanceof Ac)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(Ac.convert(a))}var o=t;return this.extend(Sc.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Sc(e.lng,e.lat),this._ne=new Sc(r.lng,r.lat)),this},Ac.prototype.getCenter=function(){return new Sc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ac.prototype.getSouthWest=function(){return this._sw},Ac.prototype.getNorthEast=function(){return this._ne},Ac.prototype.getNorthWest=function(){return new Sc(this.getWest(),this.getNorth())},Ac.prototype.getSouthEast=function(){return new Sc(this.getEast(),this.getSouth())},Ac.prototype.getWest=function(){return this._sw.lng},Ac.prototype.getSouth=function(){return this._sw.lat},Ac.prototype.getEast=function(){return this._ne.lng},Ac.prototype.getNorth=function(){return this._ne.lat},Ac.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ac.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Ac.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Ac.prototype.contains=function(t){var e=Sc.convert(t),r=e.lng,n=e.lat,i=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),i&&a},Ac.convert=function(t){return!t||t instanceof Ac?t:new Ac(t)};var Mc=6371008.8,Sc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Sc.prototype.wrap=function(){return new Sc(f(this.lng,-180,180),this.lat)},Sc.prototype.toArray=function(){return[this.lng,this.lat]},Sc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Sc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return Mc*Math.acos(Math.min(i,1))},Sc.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ac(new Sc(this.lng-r,this.lat-e),new Sc(this.lng+r,this.lat+e))},Sc.convert=function(t){if(t instanceof Sc)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Sc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Sc(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Ec=2*Math.PI*Mc;function Cc(t){return Ec*Math.cos(t*Math.PI/180)}function Ic(t){return(180+t)/360}function Lc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Pc(t,e){return t/Cc(e)}function zc(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var Oc=function(t,e,r){void 0===r&&(r=0),this.x=+t,this.y=+e,this.z=+r};Oc.fromLngLat=function(t,e){void 0===e&&(e=0);var r=Sc.convert(t);return new Oc(Ic(r.lng),Lc(r.lat),Pc(e,r.lat))},Oc.prototype.toLngLat=function(){return new Sc(function(t){return 360*t-180}(this.x),zc(this.y))},Oc.prototype.toAltitude=function(){return function(t,e){return t*Cc(zc(e))}(this.z,this.y)},Oc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Ec*function(t){return 1/Math.cos(t*Math.PI/180)}(zc(this.y))};var Dc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Bc(0,t,t,e,r)};Dc.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Dc.prototype.url=function(t,e){var r=function(t,e,r){var n=kc(256*t,256*(e=Math.pow(2,r)-e-1),r),i=kc(256*(t+1),256*(e+1),r);return n[0]+","+n[1]+","+i[0]+","+i[1]}(this.x,this.y,this.z),n=function(t,e,r){for(var n,i="",a=t;a>0;a--)i+=(e&(n=1<this.canonical.z?new Fc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Fc(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Fc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t>this.canonical.z?Bc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):Bc(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)},Fc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e},Fc.prototype.children=function(t){if(this.overscaledZ>=t)return[new Fc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Fc(e,this.wrap,e,r,n),new Fc(e,this.wrap,e,r+1,n),new Fc(e,this.wrap,e,r,n+1),new Fc(e,this.wrap,e,r+1,n+1)]},Fc.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Nc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Nc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Nc.prototype.getPixels=function(){return new Xo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Nc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,u=a;u=0&&c[3]>=0&&s.insert(o,c[0],c[1],c[2],c[3])}},Hc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Js.VectorTile(new Il(this.rawTileData)).layers,this.sourceLayerCoder=new jc(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Hc.prototype.query=function(t,e,r,n){var i=this;this.loadVTLayers();for(var o=t.params||{},s=fo/t.tileSize/t.scale,l=Tn(o.filter),u=t.queryGeometry,c=t.queryPadding*s,h=Zc(u),f=this.grid.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c),p=Zc(t.cameraQueryGeometry),d=this.grid3D.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c,(function(e,r,n,i){return function(t,e,r,n,i){for(var o=0,s=t;o=l.x&&i>=l.y)return!0}var u=[new a(e,r),new a(e,i),new a(n,i),new a(n,r)];if(t.length>2)for(var c=0,h=u;c=0)return!0;return!1}(a,h)){var f=this.sourceLayerCoder.decode(r),d=this.vtLayers[f].feature(n);if(i.needGeometry){var m=yo(d,!0);if(!i.filter(new zi(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!i.filter(new zi(this.tileID.overscaledZ),d))return;for(var g=this.getId(d,f),y=0;yn)i=!1;else if(e)if(this.expirationTimeft&&(t.getActor().send("enforceCacheSizeLimit",ht),gt=0)},t.clamp=h,t.clearTileCache=function(t){var e=s.caches.delete(ct);t&&e.catch(t).then((function(){return t()}))},t.clipLine=Lu,t.clone=function(t){var e=new Ro(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=w,t.clone$2=function(t){var e=new Ro(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=kl,t.config=j,t.create=function(){var t=new Ro(16);return Ro!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new Ro(9);return Ro!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new Ro(4);return Ro!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=un,t.createLayout=Qi,t.createStyleLayer=function(t){return"custom"===t.type?new dc(t):new mc[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=tr,t.offscreenCanvasSupported=yt,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Il(t).readFields(Xl,[])},t.pbf=Il,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=fo/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,u=t.layers[0]._unevaluatedLayout._values,c={};if("composite"===t.textSizeData.kind){var h=t.textSizeData,f=h.minZoom,p=h.maxZoom;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new zi(f),o),u["text-size"].possiblyEvaluate(new zi(p),o)]}if("composite"===t.iconSizeData.kind){var d=t.iconSizeData,m=d.minZoom,g=d.maxZoom;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new zi(m),o),u["icon-size"].possiblyEvaluate(new zi(g),o)]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new zi(t.zoom+1),o),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new zi(t.zoom+1),o),c.textMaxSize=u["text-size"].possiblyEvaluate(new zi(18));for(var y=l.get("text-line-height")*Sl,v="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),x=l.get("text-keep-upright"),_=l.get("text-size"),b=function(){var a=T[w],s=l.get("text-font").evaluate(a,{},o).join(","),u=_.evaluate(a,{},o),h=c.layoutTextSize.evaluate(a,{},o),f=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},d=a.text,m=[0,0];if(d){var g=d.toString(),b=l.get("text-letter-spacing").evaluate(a,{},o)*Sl,A=function(t){for(var e=0,r=t;e=fo||h.y<0||h.y>=fo||function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,A){var M,S,E,C,I,L=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=Na(""),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(j=(M=s.layout.get("text-offset").evaluate(_,{},T).map((function(t){return t*Sl})))[0],U=M[1]):(j=s.layout.get("text-radial-offset").evaluate(_,{},T)*Sl,U=qu),t.allowVerticalPlacement&&n.vertical){var V=s.layout.get("text-rotate").evaluate(_,{},T)+90,q=n.vertical;C=new Fu(l,e,u,c,h,q,f,p,d,V),o&&(I=new Fu(l,e,u,c,h,o,g,y,d,V))}if(i){var H=s.layout.get("icon-rotate").evaluate(_,{}),G="none"!==s.layout.get("icon-text-fit"),Z=Pu(i,H,w,G),W=o?Pu(o,H,w,G):void 0;E=new Fu(l,e,u,c,h,i,g,y,!1,H),P=4*Z.length;var Y=t.iconSizeData,X=null;"source"===Y.kind?(X=[xu*s.layout.get("icon-size").evaluate(_,{})])[0]>Wu&&k(t.layerIds[0]+': Value for "icon-size" is >= '+Zu+'. Reduce your "icon-size".'):"composite"===Y.kind&&((X=[xu*b.compositeIconSizes[0].evaluate(_,{},T),xu*b.compositeIconSizes[1].evaluate(_,{},T)])[0]>Wu||X[1]>Wu)&&k(t.layerIds[0]+': Value for "icon-size" is >= '+Zu+'. Reduce your "icon-size".'),t.addSymbols(t.icon,Z,X,x,v,_,!1,e,L.lineStartIndex,L.lineLength,-1,T),R=t.icon.placedSymbolArray.length-1,W&&(z=4*W.length,t.addSymbols(t.icon,W,X,x,v,_,ru.vertical,e,L.lineStartIndex,L.lineLength,-1,T),F=t.icon.placedSymbolArray.length-1)}for(var $ in n.horizontal){var J=n.horizontal[$];if(!S){N=Na(J.text);var K=s.layout.get("text-rotate").evaluate(_,{},T);S=new Fu(l,e,u,c,h,J,f,p,d,K)}var Q=1===J.positionedLines.length;if(O+=Yu(t,e,J,a,s,d,_,m,L,n.vertical?ru.horizontal:ru.horizontalOnly,Q?Object.keys(n.horizontal):[$],B,R,b,T),Q)break}n.vertical&&(D+=Yu(t,e,n.vertical,a,s,d,_,m,L,ru.vertical,["vertical"],B,F,b,T));var tt=S?S.boxStartIndex:t.collisionBoxArray.length,et=S?S.boxEndIndex:t.collisionBoxArray.length,rt=C?C.boxStartIndex:t.collisionBoxArray.length,nt=C?C.boxEndIndex:t.collisionBoxArray.length,it=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,ot=I?I.boxStartIndex:t.collisionBoxArray.length,st=I?I.boxEndIndex:t.collisionBoxArray.length,lt=-1,ut=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ut(S,lt),lt=ut(C,lt),lt=ut(E,lt);var ct=(lt=ut(I,lt))>-1?1:0;ct&&(lt*=A/Sl),t.glyphOffsetArray.length>=ic.MAX_GLYPHS&&k("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,R,F,N,tt,et,rt,nt,it,at,ot,st,u,O,D,P,z,ct,0,f,j,U,lt)}(t,h,s,r,n,i,f,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,y,b,A,l,x,w,M,d,e,a,u,c,o)};if("line"===S)for(var L=0,P=Lu(e.geometry,0,0,fo,fo);L1){var j=Eu(N,T,r.vertical||m,n,24,v);j&&I(N,j)}}else if("Polygon"===e.type)for(var U=0,V=Os(e.geometry,0);U=k.maxzoom||"none"===k.visibility||(o(T,this.zoom,n),(h[k.id]=k.createBucket({index:c.bucketLayerIDs.length,layers:T,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:g,sourceID:this.source})).populate(y,f,this.tileID.canonical),c.bucketLayerIDs.push(T.map((function(t){return t.id}))))}}}var A,M,S,E,C=t.mapObject(f.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send("getGlyphs",{uid:this.uid,stacks:C},(function(t,e){A||(A=t,M=e,P.call(l))})):M={};var I=Object.keys(f.iconDependencies);I.length?a.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){A||(A=t,S=e,P.call(l))})):S={};var L=Object.keys(f.patternDependencies);function P(){if(A)return s(A);if(M&&S&&E){var e=new i(M),r=new t.ImageAtlas(S,E);for(var a in h){var l=h[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,M,e.positions,S,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(o(l.layers,this.zoom,n),l.addFeatures(f,this.tileID.canonical,r.patternPositions))}this.status="done",s(null,{buckets:t.values(h).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?M:null,iconMap:this.returnDependencies?S:null,glyphPositions:this.returnDependencies?e.positions:null})}}L.length?a.send("getImages",{icons:L,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){A||(A=t,E=e,P.call(l))})):E={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status="done",n.loaded[i]=s,r(e);var l=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl);var c={};if(o){var h=o.finish();h&&(c.resourceTiming=JSON.parse(JSON.stringify(h)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,u,c))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&&n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&&(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var u=t.window.ImageBitmap,c=function(){this.loaded={}};c.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=u&&a instanceof u?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},c.prototype.getImageData=function(e){(!this.offscreenCanvas||!this.offscreenCanvasContext)&&(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},c.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var h=function t(e,r){var n,i=e&&e.type;if("FeatureCollection"===i)for(n=0;n=0!=!!e&&t.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,m=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};m.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r>31}function I(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s>1;z(t,e,o,n,i,a%2),P(t,e,r,n,o-1,a+1),P(t,e,r,o+1,i,a+1)}}function z(t,e,r,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(s-o/2<0?-1:1);z(t,e,r,Math.max(n,Math.floor(r-s*u/o+c)),Math.min(i,Math.floor(r+(o-s)*u/o+c)),a)}var h=e[2*r+a],f=n,p=i;for(O(t,e,n,r),e[2*i+a]>h&&O(t,e,n,i);fh;)p--}e[2*n+a]===h?O(t,e,n,p):O(t,e,++p,i),p<=r&&(n=p+1),r<=p&&(i=p-1)}}function O(t,e,r,n){D(t,r,n),D(e,2*r,2*n),D(e,2*r+1,2*n+1)}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function R(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return k({layers:r})},b.GeoJSONWrapper=T;var F=function(t){return t[0]},B=function(t){return t[1]},N=function(t,e,r,n,i){void 0===e&&(e=F),void 0===r&&(r=B),void 0===n&&(n=64),void 0===i&&(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length<65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l=r&&s<=i&&l>=n&&l<=a&&c.push(t[d]);else{var m=Math.floor((p+f)/2);s=e[2*m],l=e[2*m+1],s>=r&&s<=i&&l>=n&&l<=a&&c.push(t[m]);var g=(h+1)%2;(0===h?r<=s:n<=l)&&(u.push(p),u.push(m-1),u.push(g)),(0===h?i>=s:a>=l)&&(u.push(m+1),u.push(f),u.push(g))}}return c}(this.ids,this.coords,t,e,r,n,this.nodeSize)},N.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var u=o.pop(),c=o.pop(),h=o.pop();if(c-h<=a)for(var f=h;f<=c;f++)R(e[2*f],e[2*f+1],r,n)<=l&&s.push(t[f]);else{var p=Math.floor((h+c)/2),d=e[2*p],m=e[2*p+1];R(d,m,r,n)<=l&&s.push(t[p]);var g=(u+1)%2;(0===u?r-i<=d:n-i<=m)&&(o.push(h),o.push(p-1),o.push(g)),(0===u?r+i>=d:n+i>=m)&&(o.push(p+1),o.push(c),o.push(g))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var j={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},U=function(t){this.options=$(Object.create(j),t),this.trees=new Array(this.options.maxZoom+1)};function V(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function q(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:Z(n),y:W(i),zoom:1/0,index:e,parentId:-1}}function H(t){return{type:"Feature",id:t.id,properties:G(t),geometry:{type:"Point",coordinates:[Y(t.x),X(t.y)]}}}function G(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return $($({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Z(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Y(t){return 360*(t-.5)}function X(t){var e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function $(t,e){for(var r in e)t[r]=e[r];return t}function J(t){return t.x}function K(t){return t.y}function Q(t,e,r,n){for(var i,a=n,o=r-e>>1,s=r-e,l=t[e],u=t[e+1],c=t[r],h=t[r+1],f=e+3;fa)i=f,a=p;else if(p===a){var d=Math.abs(f-o);dn&&(i-e>3&&Q(t,e,i,n),t[i+2]=a,r-i>3&&Q(t,i,r,n))}function tt(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function et(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)rt(t,e);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n0&&(o+=n?(i*u-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(u-a,2))),i=l,a=u}var c=e.length-3;e[2]=1,Q(e,0,c,r),e[c+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function ot(t,e,r,n){for(var i=0;i1?1:r}function ut(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o=n)return null;for(var l=[],u=0;u=r&&d=n)){var m=[];if("Point"===f||"MultiPoint"===f)ct(h,m,r,n,i);else if("LineString"===f)ht(h,m,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===f)pt(h,m,r,n,i,!1);else if("Polygon"===f)pt(h,m,r,n,i,!0);else if("MultiPolygon"===f)for(var g=0;g=r&&o<=n&&(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function ht(t,e,r,n,i,a,o){for(var s,l,u=ft(t),c=0===i?mt:gt,h=t.start,f=0;fr&&(l=c(u,p,d,g,y,r),o&&(u.start=h+s*l)):v>n?x=r&&(l=c(u,p,d,g,y,r),_=!0),x>n&&v<=n&&(l=c(u,p,d,g,y,n),_=!0),!a&&_&&(o&&(u.end=h+s*l),e.push(u),u=ft(t)),o&&(h+=s)}var b=t.length-3;p=t[b],d=t[b+1],m=t[b+2],(v=0===i?p:d)>=r&&v<=n&&dt(u,p,d,m),b=u.length-3,a&&b>=3&&(u[b]!==u[0]||u[b+1]!==u[1])&&dt(u,u[0],u[1],u[2]),u.length&&e.push(u)}function ft(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function pt(t,e,r,n,i,a){for(var o=0;oo.maxX&&(o.maxX=c),h>o.maxY&&(o.maxY=h)}return o}function wt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if("Point"===a||"MultiPoint"===a)for(var s=0;s0&&e.size<(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;lo)&&(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&&function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n0===e)for(n=0,i=t.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=function(t,e){var r=[];if("FeatureCollection"===t.type)for(var n=0;n=n;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new N(s,J,K,a,Float32Array),r&&console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return r&&console.timeEnd("total time"),this},U.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,h=l.range(Z(r),W(a),Z(i),W(n));ce&&(d+=v.numPoints||1)}if(d>=s){for(var x=c.x*p,_=c.y*p,b=o&&p>1?this._map(c,!0):null,w=(u<<5)+(e+1)+this.points.length,T=0,k=f;T1)for(var E=0,C=f;E>5},U.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},U.prototype._map=function(t,e){if(t.numPoints)return e?$({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?$({},n):n},kt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},kt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,u=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var c=1<1&&console.time("creation"),f=this.tiles[h]=bt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var p="z"+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(f.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1<1&&console.time("clipping");var m,g,y,v,x,_,b=.5*l.buffer/l.extent,w=.5-b,T=.5+b,k=1+b;m=g=y=v=null,x=ut(t,c,r-b,r+T,0,f.minX,f.maxX,l),_=ut(t,c,r+w,r+k,0,f.minX,f.maxX,l),t=null,x&&(m=ut(x,c,n-b,n+T,1,f.minY,f.maxY,l),g=ut(x,c,n+w,n+k,1,f.minY,f.maxY,l),x=null),_&&(y=ut(_,c,n-b,n+T,1,f.minY,f.maxY,l),v=ut(_,c,n+w,n+k,1,f.minY,f.maxY,l),_=null),u>1&&console.timeEnd("clipping"),s.push(m||[],e+1,2*r,2*n),s.push(g||[],e+1,2*r,2*n+1),s.push(y||[],e+1,2*r+1,2*n),s.push(v||[],e+1,2*r+1,2*n+1)}}},kt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t<0||t>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var l,u=t,c=e,h=r;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[At(u,c,h)];return l&&l.source?(a>1&&console.log("found parent tile z%d-%d-%d",u,c,h),a>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,t,e,r),a>1&&console.timeEnd("drilling down"),this.tiles[s]?xt(this.tiles[s],i):null):null};var St=function(e){function r(t,r,n,i){e.call(this,t,r,n,Mt),i&&(this.loadGeoJSON=i)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&&n.request&&n.request.collectResourceTiming)&&new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if("object"!=typeof o)return r(new Error("Input data given to '"+n.source+"' is not a valid GeoJSON object."));h(o,!0);try{if(n.filter){var s=t.createExpression(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(t){return t.key+": "+t.message})).join(", "));var l=o.features.filter((function(t){return s.value.evaluate({zoom:0},t)}));o={type:"FeatureCollection",features:l}}e._geoJSONIndex=n.cluster?new U(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),u=0,c=l;u=0?0:e.button},r.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var f=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e=0?1.2:1))}function y(t,e,r,n,i,a,o){for(var s=0;s65535)e(new Error("glyphs > 65535 not supported"));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i1&&(l=t[++s]);var c=Math.abs(u-l.left),h=Math.abs(u-l.right),f=Math.min(c,h),p=void 0,d=i/r*(n+1);if(l.isDash){var m=n-Math.abs(d);p=Math.sqrt(f*f+m*m)}else p=n-Math.sqrt(f*f+d*d);this.data[o+u]=Math.max(0,Math.min(255,p+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&&n.isDash===r.isDash&&(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&&(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],u=0;u1&&(l=t[++s]);var c=Math.abs(u-l.left),h=Math.abs(u-l.right),f=Math.min(c,h),p=l.isDash?f:-f;this.data[o+u]=Math.max(0,Math.min(255,p+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var a=0,o=0;o=n&&e.x=i&&e.y0&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+10&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event("data",n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+".loadData",n,(function(t,i){r._removed||i&&i.abandoned||(r._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[r.id]&&(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,"reloadTile"===i),r(null))}))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),L=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&&(n.image=a,e&&(n.coordinates=e),r&&r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;or.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,L.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?(!Array.isArray(n.coordinates)||4!==n.coordinates.length||n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))})))&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"!=typeof n.canvas&&!(n.canvas instanceof t.window.HTMLCanvasElement)&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,L.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];tthis.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ<=e||a.tileID.overscaledZ>r)){for(var o=a.tileID;a&&a.tileID.overscaledZ>e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&&a.hasData()&&(o=s)}for(var l=o;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&&r.tileID.overscaledZ>=e?r:null}for(var n=t.overscaledZ-1;n>=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(zt(this._source.type)){for(var u={},c={},h=0,f=Object.keys(l);hthis._source.maxzoom){var g=d.children(this._source.maxzoom)[0],y=this.getTile(g);if(y&&y.hasData()){n[g.key]=g;continue}}else{var v=d.children(this._source.maxzoom);if(n[v[0].key]&&n[v[1].key]&&n[v[2].key]&&n[v[3].key])continue}for(var x=m.wasRequested(),_=d.overscaledZ-1;_>=a;--_){var b=d.scaledTo(_);if(i[b.key]||(i[b.key]=!0,!(m=this.getTile(b))&&x&&(m=this._addTile(b)),m&&(n[b.key]=b,x=m.wasRequested(),m.hasData())))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a0)&&(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),u=s.map((function(t){return o.pointCoordinate(t)})),c=this.getIds(),h=1/0,f=1/0,p=-1/0,d=-1/0,m=0,g=u;m=0&&y[1].y+g>=0){var v=l.map((function(t){return s.getTilePoint(t)})),x=u.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:v,cameraQueryGeometry:x,scale:m})}}},x=0;x=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&&n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&&this._reloadTile(r,"reloading");this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Pt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function zt(t){return"raster"===t||"image"===t||"video"===t}function Ot(){return new t.window.Worker(na.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Dt="mapboxgl_preloaded_worker_pool",Rt=function(){this.active={}};Rt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function ne(e,r,n,i,a,o,s,l){var u=i?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,n.transform.zoom),h=[256/n.width*2+1,256/n.height*2+1],f=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;f.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=n.transform.width/n.transform.height,g=!1,y=0;yMath.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.yn.x)?{needsFlipping:!0}:null}function oe(e,r,n,i,a,o,s,l,u,c,h,f,p,d){var m,g=r/24,y=e.lineOffsetX*g,v=e.lineOffsetY*g;if(e.numGlyphs>1){var x=e.glyphStartIndex+e.numGlyphs,_=e.lineStartIndex,b=e.lineStartIndex+e.lineLength,w=ie(g,l,y,v,n,h,f,e,u,o,p);if(!w)return{notEnoughRoom:!0};var T=te(w.first.point,s).point,k=te(w.last.point,s).point;if(i&&!n){var A=ae(e.writingMode,T,k,d);if(A)return A}m=[w.first];for(var M=e.glyphStartIndex+1;M0?I.point:se(f,C,S,1,a),P=ae(e.writingMode,S,L,d);if(P)return P}var z=le(g*l.getoffsetX(e.glyphStartIndex),y,v,n,h,f,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,o,p);if(!z)return{notEnoughRoom:!0};m=[z]}for(var O=0,D=m;O0?1:-1,m=0;i&&(d*=-1,m=Math.PI),d<0&&(m+=Math.PI);for(var g=d>0?l+s:l+s+1,y=a,v=a,x=0,_=0,b=Math.abs(p),w=[];x+_<=b;){if((g+=d)=u)return null;if(v=y,w.push(y),void 0===(y=f[g])){var T=new t.Point(c.getx(g),c.gety(g)),k=te(T,h);if(k.signedDistanceFromCamera>0)y=f[g]=k.point;else{var A=g-d;y=se(0===x?o:new t.Point(c.getx(A),c.gety(A)),T,v,b-x+1,h)}}x+=_,_=v.dist(y)}var M=(b-x)/_,S=y.sub(v),E=S.mult(M)._add(v);E._add(S._unit()._perp()._mult(n*d));var C=m+Math.atan2(y.y-v.y,y.x-v.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r<0||t>this.width||n<0||e>this.height)return!i&&[];var o=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var s=0;s0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o<0||a>this.width||l<0||s>this.height)return!n&&[];var u=[],c={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,c,i),n?u.length>0:u},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,u=this.boxCells[i];if(null!==u)for(var c=this.bboxes,h=0,f=u;h=c[d+0]&&n>=c[d+1]&&(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:c[d],y1:c[d+1],x2:c[d+2],y2:c[d+3]})}}}var m=this.circleCells[i];if(null!==m)for(var g=this.circles,y=0,v=m;yo*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;var u=(o-i)/2,c=Math.abs(e-(i+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;var h=l-s,f=c-u;return h*h+f*f<=r*r};var ue=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r=1;L--)I.push(E.path[L]);for(var P=1;P0){for(var R=I[0].clone(),F=I[0].clone(),B=1;B=A.x&&F.x<=M.x&&R.y>=A.y&&F.y<=M.y?[I]:F.xM.x||F.yM.y?[]:t.clipLine([I],A.x,A.y,M.x,M.y)}for(var N=0,j=D;N=this.screenRightBoundary||nthis.screenBottomBoundary},pe.prototype.isInsideGrid=function(t,e,r,n){return r>=0&&t=0&&e0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(m=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:g,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:m},this.markUsedJustification(f,t,h,p),f.allowVerticalPlacement&&(this.markUsedOrientation(f,p,h),this.placedOrientations[h.crossTileID]=p),{shift:y,placedGlyphBoxes:v}):void 0},Te.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,u=a.textLabelPlaneMatrix,c=a.labelToScreenMatrix,h=a.textPixelRatio,f=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,m=a.collisionGroup,g=s.get("text-optional"),y=s.get("icon-optional"),v=s.get("text-allow-overlap"),x=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),b="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order"),k=v&&(x||!o.hasIconData()||y),A=x&&(v||!o.hasTextData()||g);!o.collisionArrays&&p&&o.deserializeCollisionBoxes(p);var M=function(e,a){if(!r[e.crossTileID]){if(f)return void(i.placements[e.crossTileID]=new ye(!1,!1,!1));var p,T=!1,M=!1,S=!0,E=null,C={box:null,offscreen:null},I={box:null,offscreen:null},L=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&&(z=e.featureIndex),a.verticalTextFeatureIndex&&(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&&!r&&i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&&(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&a.verticalTextBox)for(var i=0,s=o.writingModes;i0&&(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,u=e.textBoxScale,c=w&&!x?r:null,f={box:[],offscreen:!1},p=v?2*N.length:N.length,d=0;d=N.length,k=i.attemptAnchorPlacement(g,t,a,s,u,_,b,h,l,m,y,e,o,n,c);if(k&&(f=k.placedGlyphBoxes)&&f.box&&f.box.length){T=!0,E=k.shift;break}}return f};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=C&&C.box&&C.box.length;return o.allowVerticalPlacement&&!n&&e.numVerticalGlyphVertices>0&&r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&&(T=C.box,S=C.offscreen);var V=F(C&&C.box);if(!T&&i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&&(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,v,h,l,m.predicate);return n&&n.box&&n.box.length&&(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&&C.box&&C.box.length)}}if(T=(p=C)&&p.box&&p.box.length>0,S=p&&p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Z=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get("text-padding"),Y=e.collisionCircleDiameter;L=i.collisionIndex.placeCollisionCircles(v,G,o.lineVertexArray,o.glyphOffsetArray,Z,l,u,c,n,b,m.predicate,Y,W),T=v||L.circles.length>0&&!L.collisionDetected,S=S&&L.offscreen}if(a.iconFeatureIndex&&(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&&E?we(t,E.x,E.y,_,b,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,h,l,m.predicate)};M=I&&I.box&&I.box.length&&a.verticalIconBox?(P=X(a.verticalIconBox)).box.length>0:(P=X(a.iconBox)).box.length>0,S=S&&P.offscreen}var $=g||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,J=y||0===e.numIconVertices;if($||J?J?$||(M=M&&T):T=M&&T:M=T=M&&T,T&&p&&p.box&&(I&&I.box&&O?i.collisionIndex.insertCollisionBox(p.box,s.get("text-ignore-placement"),o.bucketInstanceId,O,m.ID):i.collisionIndex.insertCollisionBox(p.box,s.get("text-ignore-placement"),o.bucketInstanceId,z,m.ID)),M&&P&&i.collisionIndex.insertCollisionBox(P.box,s.get("icon-ignore-placement"),o.bucketInstanceId,D,m.ID),L&&(T&&i.collisionIndex.insertCollisionCircles(L.circles,s.get("text-ignore-placement"),o.bucketInstanceId,z,m.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&&(Q=i.collisionCircleArrays[K]=new ve);for(var tt=0;tt=0;--E){var C=S[E];M(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var I=e.symbolInstanceStart;I=0&&(e.text.placedSymbolArray.get(u).crossTileID=a>=0&&u!==a?0:n.crossTileID)}},Te.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o0||l>0,x=a.numIconVertices>0,_=i.placedOrientations[a.crossTileID],b=_===t.WritingMode.vertical,w=_===t.WritingMode.horizontal||_===t.WritingMode.horizontalOnly;if(v){var T=Pe(y.text),k=b?ze:T;d(e.text,s,k);var A=w?ze:T;d(e.text,l,A);var M=y.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=M||b?1:0)})),a.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&&i.markUsedJustification(e,S.anchor,a,_);var E=i.placedOrientations[a.crossTileID];E&&(i.markUsedJustification(e,"left",a,E),i.markUsedOrientation(e,E,a))}if(x){var C=Pe(y.icon),I=!(f&&a.verticalPlacedIconSymbolIndex&&b);if(a.placedIconSymbolIndex>=0){var L=I?C:ze;d(e.icon,a.numIconVertices,L),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=y.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex>=0){var P=I?ze:C;d(e.icon,a.numVerticalIconVertices,P),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var z=e.collisionArrays[n];if(z){var O=new t.Point(0,0);if(z.textBox||z.verticalTextBox){var D=!0;if(u){var R=i.variableOffsets[m];R?(O=be(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),c&&O._rotate(h?i.transform.angle:-i.transform.angle)):D=!1}z.textBox&&ke(e.textCollisionBox.collisionVertexArray,y.text.placed,!D||b,O.x,O.y),z.verticalTextBox&&ke(e.textCollisionBox.collisionVertexArray,y.text.placed,!D||w,O.x,O.y)}var F=!(w||!z.verticalIconBox);z.iconBox&&ke(e.iconCollisionBox.collisionVertexArray,y.icon.placed,F,f?O.x:0,f?O.y:0),z.verticalIconBox&&ke(e.iconCollisionBox.collisionVertexArray,y.icon.placed,!F,f?O.x:0,f?O.y:0)}}},g=0;gt},Te.prototype.setStale=function(){this.stale=!0};var Ae=Math.pow(2,25),Me=Math.pow(2,24),Se=Math.pow(2,17),Ee=Math.pow(2,16),Ce=Math.pow(2,9),Ie=Math.pow(2,8),Le=Math.pow(2,1);function Pe(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Ae+e*Me+r*Se+e*Ee+r*Ce+e*Ie+r*Le+e}var ze=0,Oe=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new Oe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},De.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Re=512/t.EXTENT/2,Fe=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;nt.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,i)}else{var u=o[t.scaledTo(Number(a)).key];u&&u.findMatches(e.symbolInstances,t,i)}}for(var c=0;c1?"@2x":"",l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,c())})),u=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=null,o||(o=t,a=e,c())}));function c(){if(o)n(o);else if(i&&a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],u=l.width,c=l.height,h=l.x,f=l.y,p=l.sdf,d=l.pixelRatio,m=l.stretchX,g=l.stretchY,y=l.content,v=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,v,{x:h,y:f},{x:0,y:0},{width:u,height:c}),r[s]={data:v,pixelRatio:d,sdf:p,stretchX:m,stretchY:g,content:y}}n(null,r)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast("setImages",r._availableImages),r.fire(new t.Event("data",{dataType:"style"}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},r.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return n.forEach((function(t){"setTransition"!==t.command&&r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,r),this._afterImageUpdated(e)},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},r.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,r,null,n))){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+r+'" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var a;if("custom"===e.type){if(Ue(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&"custom"!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;if(r&&-1===i)return void this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));this._order.splice(i,0,e),this._layerOrderChanged=!0}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&&r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r)){if(null==r)return i.filter=void 0,void this._updateLayer(i);this._validate(t.validateStyle.filter,"layers."+i.id+".filter",r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i))}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;"geojson"===o&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o="vector"===a?e.sourceLayer:void 0;"vector"!==a||o?r&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if("vector"!==i.getSource().type||n)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return"fill-extrusion"===e._layers[t].type},n={},i=[],a=this._order.length-1;a>=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s=0;d--){var m=this._order[d];if(r(m))for(var g=i.length-1;g>=0;g--){var y=i[g].feature;if(n[y.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),er=xr("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),rr=xr("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),nr=xr("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),ir=xr("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ar=xr("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),or=xr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),sr=xr("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),lr=xr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),ur=xr("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),cr=xr("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),hr=xr("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fr=xr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),pr=xr("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),dr=xr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),mr=xr("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),gr=xr("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),yr=xr("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),vr=xr("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function xr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n=e.match(/attribute ([\w]+) ([\w]+)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s={};return{fragmentSource:t=t.replace(r,(function(t,e,r,n,i){return s[i]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+r+" "+n+" "+i+";\n#else\nuniform "+r+" "+n+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+r+" "+n+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:e=e.replace(r,(function(t,e,r,n,i){var a="float"===n?"vec2":"vec4",o=i.match(/color/)?"color":a;return s[i]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+r+" "+a+" a_"+i+";\nvarying "+r+" "+n+" "+i+";\n#else\nuniform "+r+" "+n+" u_"+i+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+r+" "+n+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+o+"(a_"+i+", u_"+i+"_t);\n#else\n "+r+" "+n+" "+i+" = u_"+i+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+r+" "+a+" a_"+i+";\n#else\nuniform "+r+" "+n+" u_"+i+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+r+" "+n+" "+i+" = a_"+i+";\n#else\n "+r+" "+n+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+r+" "+n+" "+i+" = unpack_mix_"+o+"(a_"+i+", u_"+i+"_t);\n#else\n "+r+" "+n+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:n,staticUniforms:o}}var _r=Object.freeze({__proto__:null,prelude:We,background:Ye,backgroundPattern:Xe,circle:$e,clippingMask:Je,heatmap:Ke,heatmapTexture:Qe,collisionBox:tr,collisionCircle:er,debug:rr,fill:nr,fillOutline:ir,fillOutlinePattern:ar,fillPattern:or,fillExtrusion:sr,fillExtrusionPattern:lr,hillshadePrepare:ur,hillshade:cr,line:hr,lineGradient:fr,linePattern:pr,lineSDF:dr,raster:mr,symbolIcon:gr,symbolSDF:yr,symbolTextAndIcon:vr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function wr(t){for(var e=[],r=0;r>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}Tr.prototype.draw=function(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m){var g,y=t.gl;if(!this.failedToCreate){for(var v in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[v].set(o[v]);p&&p.setUniforms(t,this.binderUniforms,h,{zoom:f});for(var x=(g={},g[y.LINES]=2,g[y.TRIANGLES]=3,g[y.LINE_STRIP]=1,g)[e],_=0,b=c.get();_0?1/(1-t):1+t}function Wr(t){return t>0?1-1/(1.001-t):-t}var Yr,Xr=function(t,e,r,n,i,a,o,s,l,u){var c=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:c.width/c.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:u,u_texture:0}},$r=function(e,r,n,i,a,o,s,l,u,c,h){var f=a.transform;return t.extend(Xr(e,r,n,i,a,o,s,l,u,c),{u_gamma_scale:i?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+h})},Jr=function(e,r,n,i,a,o,s,l,u,c){return t.extend($r(e,r,n,i,a,o,s,l,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Kr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Qr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,u=Math.pow(2,n.tileID.overscaledZ),c=n.tileSize*Math.pow(2,r.transform.tileZoom)/u,h=c*(n.tileID.canonical.x+n.tileID.wrap*u),f=c*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/de(n,1,r.transform.tileZoom),u_pixel_coord_upper:[h>>16,f>>16],u_pixel_coord_lower:[65535&h,65535&f]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},tn={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image),u_image_height:new t.Uniform1f(e,r.u_image_height)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function en(e,r,n,i,a,o,s){for(var l=e.context,u=l.gl,c=e.useProgram("collisionBox"),h=[],f=0,p=0,d=0;d0){var b=t.create(),w=v;t.mul(b,y.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(b,b,y.placementViewportMatrix),h.push({circleArray:_,circleOffset:p,transform:w,invTransform:b}),p=f+=_.length/4}x&&c.draw(l,u.LINES,At.disabled,St.disabled,e.colorModeForRenderPass(),Ct.disabled,Pr(v,e.transform,g),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&&h.length){var T=e.useProgram("collisionCircle"),k=new t.StructArrayLayout2f1f2i16;k.resize(4*f),k._trim();for(var A=0,M=0,S=h;M=0&&(m[y.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ce(y.numGlyphs,p)}if(h){d.clear();for(var I=e.icon.placedSymbolArray,L=0;L0){var s=t.browser.now(),l=(s-e.timeAdded)/o,u=r?(s-r.timeAdded)/o:-1,c=n.getSource(),h=a.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!r||Math.abs(r.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),p=f&&e.refreshedUponExpiration?1:t.clamp(f?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var dn=new t.Color(1,0,0,1),mn=new t.Color(0,1,0,1),gn=new t.Color(0,0,1,1),yn=new t.Color(1,0,1,1),vn=new t.Color(0,1,1,1);function xn(t,e,r,n){bn(t,0,e+r/2,t.transform.width,r,n)}function _n(t,e,r,n){bn(t,e-r/2,0,r,t.transform.height,n)}function bn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function wn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram("debug"),l=At.disabled,u=St.disabled,c=e.colorModeForRenderPass(),h="$debug";i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,u,c,Ct.disabled,Or(o,t.Color.red),h,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,p=f&&f.byteLength||0,d=Math.floor(p/1024),m=r.getTile(n).tileSize,g=512/Math.min(m,512)*(n.overscaledZ/e.transform.zoom)*.5,y=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(y+=" => "+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,y+" "+d+"kb"),s.draw(i,a.TRIANGLES,l,u,Et.alphaBlended,Ct.disabled,Or(o,t.Color.transparent,g),h,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var Tn={symbol:function(e,r,n,i,a){if("translucent"===e.renderPass){var o=St.disabled,s=e.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(e,r,n,i,a,o,s){for(var l=r.transform,u="map"===a,c="map"===o,h=0,f=e;h256&&this.clearStencil(),r.setColorMode(Et.disabled),r.setDepthMode(At.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var a=0,o=e;a256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new St({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},kn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new St({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},kn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();for(var o={},s=0;s=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=c[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?e.pop():null},kn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},kn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new Tr(this.context,t,_r[t],e,tn[t],this._showOverdrawInspector)),this.cache[r]},kn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},kn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},kn.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},kn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var An=function(t,e){this.points=t,this.planes=e};An.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new An(a,o)};var Mn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};Mn.prototype.quadrant=function(e){for(var r=[e%2==0,e<2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a=0;if(0===o)return 0;o!==r.length&&(n=!1)}if(n)return 2;for(var l=0;l<3;l++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;hthis.max[l]-this.min[l])return 0}return 1};var Sn=function(t,e,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=r,this.right=n};Sn.prototype.interpolate=function(e,r,n){return null!=r.top&&null!=e.top&&(this.top=t.number(e.top,r.top,n)),null!=r.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&&null!=e.left&&(this.left=t.number(e.left,r.left,n)),null!=r.right&&null!=e.right&&(this.right=t.number(e.right,r.right,n)),this},Sn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},Sn.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},Sn.prototype.clone=function(){return new Sn(this.top,this.bottom,this.left,this.right)},Sn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var En=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Sn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Cn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};En.prototype.clone=function(){var t=new En(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Cn.minZoom.get=function(){return this._minZoom},Cn.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Cn.maxZoom.get=function(){return this._maxZoom},Cn.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Cn.minPitch.get=function(){return this._minPitch},Cn.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Cn.maxPitch.get=function(){return this._maxPitch},Cn.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Cn.renderWorldCopies.get=function(){return this._renderWorldCopies},Cn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Cn.worldSize.get=function(){return this.tileSize*this.scale},Cn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Cn.size.get=function(){return new t.Point(this.width,this.height)},Cn.bearing.get=function(){return-this.angle/Math.PI*180},Cn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Cn.pitch.get=function(){return this._pitch/Math.PI*180},Cn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Cn.fov.get=function(){return this._fov/Math.PI*180},Cn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Cn.zoom.get=function(){return this._zoom},Cn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Cn.center.get=function(){return this._center},Cn.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Cn.padding.get=function(){return this._edgeInsets.toJSON()},Cn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Cn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},En.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},En.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},En.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},En.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),u=s-1;u<=l+1;u++)0!==u&&r.push(new t.UnwrappedTileID(u,e));return r},En.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&re.maxzoom&&(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=An.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=r);var u=function(t){return{aabb:new Mn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],h=[],f=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d<=3;d++)c.push(u(-d)),c.push(u(d));for(c.push(u(0));c.length>0;){var m=c.pop(),g=m.x,y=m.y,v=m.fullyVisible;if(!v){var x=m.aabb.intersects(s);if(0===x)continue;v=2===x}var _=m.aabb.distanceX(o),b=m.aabb.distanceY(o),w=Math.max(Math.abs(_),Math.abs(b)),T=3+(1<T&&m.zoom>=l)h.push({tileID:new t.OverscaledTileID(m.zoom===f?p:m.zoom,m.wrap,m.zoom,g,y),distanceSq:t.sqrLen([o[0]-.5-g,o[1]-.5-y])});else for(var k=0;k<4;k++){var A=(g<<1)+k%2,M=(y<<1)+(k>>1);c.push({aabb:m.aabb.quadrant(k),zoom:m.zoom+1,x:A,y:M,wrap:m.wrap,fullyVisible:v})}}return h.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},En.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Cn.unmodified.get=function(){return this._unmodified},En.prototype.zoomScale=function(t){return Math.pow(2,t)},En.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},En.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},En.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Cn.point.get=function(){return this.project(this.center)},En.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},En.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},En.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},En.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},En.prototype.coordinateLocation=function(t){return t.toLngLat()},En.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[0]/i,s=n[0]/a,l=r[1]/i,u=n[1]/a,c=r[2]/i,h=n[2]/a,f=c===h?0:(0-c)/(h-c);return new t.MercatorCoordinate(t.number(o,s,f)/this.worldSize,t.number(l,u,f)/this.worldSize)},En.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},En.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},En.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},En.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},En.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},En.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},En.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;a=t.mercatorYfromLat(h[1])*this.worldSize,e=(o=t.mercatorYfromLat(h[0])*this.worldSize)-ao&&(i=o-g)}if(this.lngRange){var y=p.x,v=u.x/2;y-vl&&(n=l-v)}(void 0!==n||void 0!==i)&&(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=c,this._constraining=!1}},En.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),c=this.height/50,h=new Float64Array(16);t.perspective(h,this._fov,this.width/this.height,c,u),h[8]=2*-r.x/this.width,h[9]=2*r.y/this.height,t.scale(h,h,[1,-1,1]),t.translate(h,h,[0,0,-this.cameraToCenterDistance]),t.rotateX(h,h,this._pitch),t.rotateZ(h,h,this.angle),t.translate(h,h,[-s,-l,0]),this.mercatorMatrix=t.scale([],h,[this.worldSize,this.worldSize,this.worldSize]),t.scale(h,h,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=h,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),m=Math.sin(this.angle),g=s-Math.round(s)+d*f+m*p,y=l-Math.round(l)+d*p+m*f,v=new Float64Array(h);if(t.translate(v,v,[g>.5?g-1:g,y>.5?y-1:y,0]),this.alignedProjMatrix=v,h=t.create(),t.scale(h,h,[this.width/2,-this.height/2,1]),t.translate(h,h,[1,-1,0]),this.labelPlaneMatrix=h,h=t.create(),t.scale(h,h,[1,-1,1]),t.translate(h,h,[-1,-1,0]),t.scale(h,h,[2/this.width,2/this.height,1]),this.glCoordMatrix=h,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(h=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=h,this._posMatrixCache={},this._alignedPosMatrixCache={}}},En.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},En.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},En.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},In.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Ln={linearity:.3,easing:t.bezier(0,0,.3,1)},Pn=t.extend({deceleration:2500,maxSpeed:1400},Ln),zn=t.extend({deceleration:20,maxSpeed:1400},Ln),On=t.extend({deceleration:1e3,maxSpeed:360},Ln),Dn=t.extend({deceleration:1e3,maxSpeed:90},Ln),Rn=function(t){this._map=t,this.clear()};function Fn(t,e){(!t.duration||t.duration0&&r-e[0].time>160;)e.shift()},Rn.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n=this._clickTolerance||this._map.fire(new Nn(t.type,this._map,t))},Vn.prototype.dblclick=function(t){return this._firePreventable(new Nn(t.type,this._map,t))},Vn.prototype.mouseover=function(t){this._map.fire(new Nn(t.type,this._map,t))},Vn.prototype.mouseout=function(t){this._map.fire(new Nn(t.type,this._map,t))},Vn.prototype.touchstart=function(t){return this._firePreventable(new jn(t.type,this._map,t))},Vn.prototype.touchmove=function(t){this._map.fire(new jn(t.type,this._map,t))},Vn.prototype.touchend=function(t){this._map.fire(new jn(t.type,this._map,t))},Vn.prototype.touchcancel=function(t){this._map.fire(new jn(t.type,this._map,t))},Vn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Vn.prototype.isEnabled=function(){return!0},Vn.prototype.isActive=function(){return!1},Vn.prototype.enable=function(){},Vn.prototype.disable=function(){};var qn=function(t){this._map=t};qn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},qn.prototype.mousemove=function(t){this._map.fire(new Nn(t.type,this._map,t))},qn.prototype.mousedown=function(){this._delayContextMenu=!0},qn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Nn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},qn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Nn(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},qn.prototype.isEnabled=function(){return!0},qn.prototype.isActive=function(){return!1},qn.prototype.enable=function(){},qn.prototype.disable=function(){};var Hn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Gn(t,e){for(var r={},n=0;nthis.numTouches)&&(this.aborted=!0),!this.aborted&&(void 0===this.startTime&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n30)&&(this.aborted=!0)}}},Zn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){var n=!this.aborted&&this.centroid;if(this.reset(),n)return n}};var Wn=function(t){this.singleTap=new Zn(t),this.numTaps=t.numTaps,this.reset()};Wn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Wn.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Wn.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Wn.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(n)<30;if((!i||!a)&&this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Yn=function(){this._zoomIn=new Wn({numTouches:1,numTaps:2}),this._zoomOut=new Wn({numTouches:2,numTaps:1}),this.reset()};Yn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Yn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Yn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Yn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Yn.prototype.touchcancel=function(){this.reset()},Yn.prototype.enable=function(){this._enabled=!0},Yn.prototype.disable=function(){this._enabled=!1,this.reset()},Yn.prototype.isEnabled=function(){return this._enabled},Yn.prototype.isActive=function(){return this._active};var Xn={0:1,2:2},$n=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};$n.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},$n.prototype._correctButton=function(t,e){return!1},$n.prototype._move=function(t,e){return{}},$n.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}},$n.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r){if(t.preventDefault(),function(t,e){var r=Xn[e];return void 0===t.buttons||(t.buttons&r)!==r}(t,this._eventButton))return void this.reset();if(this._moved||!(e.dist(r)0&&(this._active=!0);var i=Gn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var u=i[l],c=this._touches[l];c&&(a._add(u),o._add(u.sub(c)),s++,i[l]=u)}if(this._touches=i,!(sMath.abs(t.x)}var li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,si(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()>=2,i=e.mag()>=2;if(n||i){if(!n||!i)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;var a=t.y>0==e.y>0;return si(t)&&si(e)&&a}},e}(ei),ui={panStep:100,bearingStep:15,pitchStep:10},ci=function(){var t=ui;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function hi(t){return t*(2-t)}ci.prototype.reset=function(){this._active=!1},ci.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,i=0),{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:hi,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active},ci.prototype.disableRotation=function(){this._rotationDisabled=!0},ci.prototype.enableRotation=function(){this._rotationDisabled=!1};var fi=4.000244140625,pi=1/450,di=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=pi,t.bindAll(["_onTimeout"],this)};di.prototype.setZoomRate=function(t){this._defaultZoomRate=t},di.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},di.prototype.isEnabled=function(){return!!this._enabled},di.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},di.prototype.isZooming=function(){return!!this._zooming},di.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},di.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},di.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%fi==0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},di.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},di.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},di.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>fi?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var a="number"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),"wheel"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s="number"==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&l&&u){var h=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),f=u(h);o=t.number(l,s,f),h<1?this._frameId||(this._frameId=!0):c=!0}else o=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},di.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},di.prototype.reset=function(){this._active=!1};var mi=function(t,e){this._clickZoom=t,this._tapZoom=e};mi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},mi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},mi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},mi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var gi=function(){this.reset()};gi.prototype.reset=function(){this._active=!1},gi.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},gi.prototype.enable=function(){this._enabled=!0},gi.prototype.disable=function(){this._enabled=!1,this.reset()},gi.prototype.isEnabled=function(){return this._enabled},gi.prototype.isActive=function(){return this._active};var yi=function(){this._tap=new Wn({numTouches:1,numTaps:1}),this.reset()};yi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},yi.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},yi.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},yi.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(t,e,r)&&(this._tapTime=t.timeStamp)},yi.prototype.touchcancel=function(){this.reset()},yi.prototype.enable=function(){this._enabled=!0},yi.prototype.disable=function(){this._enabled=!1,this.reset()},yi.prototype.isEnabled=function(){return this._enabled},yi.prototype.isActive=function(){return this._active};var vi=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};vi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},vi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},vi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},vi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xi=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};xi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var _i=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};_i.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},_i.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},_i.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},_i.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},_i.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},_i.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var bi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t.Event);function Ti(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var ki=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Rn(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var a=0,o=this._listeners;aa?Math.min(2,b):Math.max(.5,b),w=Math.pow(g,1-e),T=i.unproject(x.add(_.mult(e*w)).mult(m));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&&(n={}),this._moving=!0,!r&&!n.moving&&this.fire(new t.Event("movestart",e)),this._zooming&&!n.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new t.Event("pitchstart",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),a&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,h="bearing"in e?this._normalizeBearing(e.bearing,s):s,f="pitch"in e?+e.pitch:l,p="padding"in e?e.padding:a.padding,d=a.zoomScale(c-o),m=t.Point.convert(e.offset),g=a.centerPoint.add(m),y=a.pointLocation(g),v=t.LngLat.convert(e.center||y);this._normalizeCenter(v);var x=a.project(y),_=a.project(v).sub(x),b=e.curve,w=Math.max(a.width,a.height),T=w/d,k=_.mag();if("minZoom"in e){var A=t.clamp(Math.min(e.minZoom,o,c),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);b=Math.sqrt(M/k*2)}var S=b*b;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function I(t){return(Math.exp(t)+Math.exp(-t))/2}var L=E(0),P=function(t){return I(L)/I(L+b*t)},z=function(t){return w*((I(L)*function(t){return C(t)/I(t)}(L+b*t)-C(L))/S)/k},O=(E(1)-L)/b;if(Math.abs(k)<1e-6||!isFinite(O)){if(Math.abs(w-T)<1e-6)return this.easeTo(e,r);var D=Te.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=f!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?c:o+a.scaleZoom(d),n._rotating&&(a.bearing=t.number(s,h,e)),n._pitching&&(a.pitch=t.number(l,f,e)),n._padding&&(a.interpolatePadding(u,p,e),g=a.centerPoint.add(m));var y=1===e?v:a.unproject(x.add(_.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?y.wrap():y,g),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&&n.stop(!1)}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)180?-360:r<-180?360:0}},r}(t.Evented),Mi=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Mi.prototype.getDefaultPosition=function(){return"bottom-right"},Mi.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=r.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Mi.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Mi.prototype._setElementTitle=function(t,e){var r=this._map._getUIString("AttributionControl."+e);t.title=r,t.setAttribute("aria-label",r)},Mi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Mi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&&(t+=e.key+"="+e.value+(n=0)return!1;return!0}))).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Mi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Si=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};Si.prototype.onAdd=function(t){this._map=t,this._container=r.create("div","mapboxgl-ctrl");var e=r.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Si.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Si.prototype.getDefaultPosition=function(){return"bottom-left"},Si.prototype._updateLogo=function(t){(!t||"metadata"===t.sourceDataType)&&(this._container.style.display=this._logoRequired()?"block":"none")},Si.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},Si.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var Ei=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ei.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},Ei.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;re.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new En(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new Ei,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Ci,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Li))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return r._update(!1)})),this.on("moveend",(function(){return r._update(!1)})),this.on("zoom",(function(){return r._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ki(this,e);var a="string"==typeof e.hash&&e.hash||void 0;this._hash=e.hash&&new In(a).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new Mi({customAttribution:e.customAttribution})),this.addControl(new Si,e.logoPosition),this.on("style.load",(function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)})),this.on("data",(function(e){r._update("style"===e.dataType),r.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){r.fire(new t.Event(e.dataType+"dataloading",e))}))}n&&(i.__proto__=n),i.prototype=Object.create(n&&n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&&(r=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(e);return r>-1&&this._controls.splice(r,1),e.onRemove(this),this},i.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),a&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if("mouseenter"===t||"mouseover"===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Nn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if("mouseleave"===t||"mouseout"===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&&(o=!1,r.call(i,new Nn(t,i,n.originalEvent)))},mouseout:function(e){o&&(o=!1,r.call(i,new Nn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&&(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(n){for(var a=n[t],o=0;o180;){var s=n.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=n.width&&s.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e}Bi.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),r.disableDrag()},Bi.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&&n.bearingDelta&&r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&r.setPitch(r.getPitch()+i.pitchDelta)}},Bi.prototype.off=function(){var t=this.element;r.removeEventListener(t,"mousedown",this.mousedown),r.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(t,"touchmove",this.touchmove),r.removeEventListener(t,"touchend",this.touchend),r.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Bi.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,"mousemove",this.mousemove),r.removeEventListener(t.window,"mouseup",this.mouseup)},Bi.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,"mousemove",this.mousemove),r.addEventListener(t.window,"mouseup",this.mouseup)},Bi.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Bi.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Bi.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Bi.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Bi.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=r}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},n.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Hi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Gi=0,Zi=!1,Wi=function(e){function n(r){e.call(this),this.options=t.extend({},Hi,r),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){return this._map=e,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),function(e){void 0!==Vi?e(Vi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){Vi="denied"!==t.state,e(Vi)})):(Vi=!!t.window.navigator.geolocation,e(Vi))}(this._setupUI),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Gi=0,Zi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&&(r.longitudee.getEast()||r.latitudee.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),(!this.options.trackUserLocation||"ACTIVE_LOCK"===this._watchState)&&this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},n.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Zi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var a=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new qi(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new qi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){var r=e.originalEvent&&"resize"===e.originalEvent.type;!e.geolocateSource&&"ACTIVE_LOCK"===n._watchState&&!r&&(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new t.Event("trackuserlocationend")))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Gi--,Zi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Gi>1?(e={maximumAge:6e5,timeout:0},Zi=!0):(e=this.options.positionOptions,Zi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},n}(t.Evented),Yi={maxWidth:100,unit:"metric"},Xi=function(e){this.options=t.extend({},Yi,e),t.bindAll(["_onMove","setUnit"],this)};function $i(t,e,r){var n=r&&r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&&"imperial"===r.unit){var l=3.2808*s;l>5280?Ji(e,n,l/5280,t._getUIString("ScaleControl.Miles")):Ji(e,n,l,t._getUIString("ScaleControl.Feet"))}else r&&"nautical"===r.unit?Ji(e,n,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Ji(e,n,s/1e3,t._getUIString("ScaleControl.Kilometers")):Ji(e,n,s,t._getUIString("ScaleControl.Meters"))}function Ji(t,e,r,n){var i=function(t){var e=Math.pow(10,(""+Math.floor(t)).length-1),r=t/e;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(r),e*r}(r),a=i/r;t.style.width=e*a+"px",t.innerHTML=i+" "+n}Xi.prototype.getDefaultPosition=function(){return"bottom-left"},Xi.prototype._onMove=function(){$i(this._map,this._container,this.options)},Xi.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Xi.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Xi.prototype.setUnit=function(t){this.options.unit=t,$i(this._map,this._container,this.options)};var Ki=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ki.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ki.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ki.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Ki.prototype._setupUI=function(){var e=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ki.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Ki.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ki.prototype._isFullscreen=function(){return this._fullscreen},Ki.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ki.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Qi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ta=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),ea=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Qi),r),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=r.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},n.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},n.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(t){var e=this,n=this._lngLat||this._trackPointer;if(this._map&&n&&this._content&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return e._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Ni(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),a=this.options.anchor,o=ra(this.options.offset);if(!a){var s,l=this._container.offsetWidth,u=this._container.offsetHeight;s=i.y+o.bottom.ythis._map.transform.height-u?["bottom"]:[],i.xthis._map.transform.width-l/2&&s.push("right"),a=0===s.length?"bottom":s.join("-")}var c=i.add(o[a]).round();r.setTransform(this._container,ji[a]+" translate("+c.x+"px,"+c.y+"px)"),Ui(this._container,a,"popup")}},n.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector(ta);t&&t.focus()}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);function ra(e){if(e){if("number"==typeof e){var r=Math.round(Math.sqrt(.5*Math.pow(e,2)));return{center:new t.Point(0,0),top:new t.Point(0,e),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-e),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(e,0),right:new t.Point(-e,0)}}if(e instanceof t.Point||Array.isArray(e)){var n=t.Point.convert(e);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.Point.convert(e.center||[0,0]),top:t.Point.convert(e.top||[0,0]),"top-left":t.Point.convert(e["top-left"]||[0,0]),"top-right":t.Point.convert(e["top-right"]||[0,0]),bottom:t.Point.convert(e.bottom||[0,0]),"bottom-left":t.Point.convert(e["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(e["bottom-right"]||[0,0]),left:t.Point.convert(e.left||[0,0]),right:t.Point.convert(e.right||[0,0])}}return ra(new t.Point(0,0))}var na={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Oi,NavigationControl:Fi,GeolocateControl:Wi,AttributionControl:Mi,ScaleControl:Xi,FullscreenControl:Ki,Popup:ea,Marker:qi,Style:Ge,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Nt().acquire(Dt)},clearPrewarmedResources:function(){var t=Ft;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Dt),Ft=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Rt.workerCount},set workerCount(t){Rt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return na})),r},"object"==typeof t&&void 0!==e?e.exports=n():(r=r||self).mapboxgl=n()})),b_=f(((t,e)=>{var r=le(),n=Se().sanitizeHTML,i=d_(),a=l_();function o(t,e){this.subplot=t,this.uid=t.uid+"-"+e,this.index=e,this.idSource="source-"+this.uid,this.idLayer=a.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var s=o.prototype;function l(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&&e.length>0){for(var n=0;n0}function u(t){var e={},n={};switch(t.type){case"circle":r.extendFlat(n,{"circle-radius":t.circle.radius,"circle-color":t.color,"circle-opacity":t.opacity});break;case"line":r.extendFlat(n,{"line-width":t.line.width,"line-color":t.color,"line-opacity":t.opacity,"line-dasharray":t.line.dash});break;case"fill":r.extendFlat(n,{"fill-color":t.color,"fill-outline-color":t.fill.outlinecolor,"fill-opacity":t.opacity});break;case"symbol":var a=t.symbol,o=i(a.textposition,a.iconsize);r.extendFlat(e,{"icon-image":a.icon+"-15","icon-size":a.iconsize/10,"text-field":a.text,"text-size":a.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":a.placement}),r.extendFlat(n,{"icon-color":t.color,"text-color":a.textfont.color,"text-opacity":t.opacity});break;case"raster":r.extendFlat(n,{"raster-fade-duration":0,"raster-opacity":t.opacity})}return{layout:e,paint:n}}s.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=l(t)},s.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===t.sourcetype&&(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},s.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},s.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},s.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},s.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&&this.subplot.map.moveLayer(this.idLayer,e)},s.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,l(t)){var r=function(t){var e,r=t.sourcetype,i=t.source,a={type:r};return"geojson"===r?e="data":"vector"===r?e="string"==typeof i?"url":"tiles":"raster"===r?(e="tiles",a.tileSize=256):"image"===r&&(e="url",a.coordinates=t.coordinates),a[e]=i,t.sourceattribution&&(a.attribution=n(t.sourceattribution)),a}(t);e.addSource(this.idSource,r)}},s.findFollowingMapboxLayerId=function(t){if("traces"===t)for(var e=this.subplot.getMapLayers(),r=0;r{var r=__(),n=le(),i=rg(),a=qt(),o=ir(),s=fr(),l=Or(),u=Dr(),c=u.drawMode,h=u.selectMode,f=En().prepSelect,p=En().clearOutline,d=En().clearSelectionsCache,m=En().selectOnClick,g=l_(),y=b_();function v(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var x=v.prototype;x.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},x.createMap=function(t,e,n,a){var o=this,s=e[o.id],l=o.styleObj=b(s.style,e);o.accessToken=s.accesstoken;var u=s.bounds,c=u?[[u.west,u.south],[u.east,u.north]]:null,h=o.map=new r.Map({container:o.div,style:l.style,center:T(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:c,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new r.AttributionControl({compact:!0}));h._canvas.style.left="0px",h._canvas.style.top="0px",o.rejectOnError(a),o.isStatic||o.initFx(t,e);var f=[];f.push(new Promise((function(t){h.once("load",t)}))),f=f.concat(i.fetchTraceGeoData(t)),Promise.all(f).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(n)})).catch(a)},x.updateMap=function(t,e,r,n){var a=this,o=a.map,s=e[this.id];a.rejectOnError(n);var l=[],u=b(s.style,e);JSON.stringify(a.styleObj)!==JSON.stringify(u)&&(a.styleObj=u,o.setStyle(u.style),a.traceHash={},l.push(new Promise((function(t){o.once("styledata",t)})))),l=l.concat(i.fetchTraceGeoData(t)),Promise.all(l).then((function(){a.fillBelowLookup(t,e),a.updateData(t),a.updateLayout(e),a.resolveOnRender(r)})).catch(n)},x.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r1)for(r=0;r-1&&m(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf("event")>-1&&l.click(n,e.originalEvent)}}},x.updateFx=function(t){var e=this,r=e.map,i=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=function(t,r){r.isRect?(t.range={})[e.id]=[u([r.xmin,r.ymin]),u([r.xmax,r.ymax])]:(t.lassoPoints={})[e.id]=r.map(u)};var l=e.dragOptions;e.dragOptions=n.extendDeep(l||{},{dragmode:t.dragmode,element:e.div,gd:i,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off("click",e.onClickInPanHandler),h(o)||c(o)?(r.dragPan.disable(),r.on("zoomstart",e.clearOutline),e.dragOptions.prepFn=function(t,r,n){f(t,r,n,e.dragOptions,o)},s.init(e.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",e.clearOutline),e.div.onmousedown=null,e.div.ontouchstart=null,e.div.removeEventListener("touchstart",e.div._ontouchstart),e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on("click",e.onClickInPanHandler))}function u(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},x.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+"px",n.height=r.h*(e.y[1]-e.y[0])+"px",n.left=r.l+e.x[0]*r.w+"px",n.top=r.t+(1-e.y[1])*r.h+"px",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},x.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e{var r=le(),n=Hs(),i=Ne(),a=u_();function o(t,e,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),o=r("bounds.east"),l=r("bounds.south"),u=r("bounds.north");(void 0===a||void 0===o||void 0===l||void 0===u)&&delete e.bounds,i(t,e,{name:"layers",handleItemDefaults:s}),e._input=t}function s(t,e){function n(n,i){return r.coerce(t,e,a.layers,n,i)}if(n("visible")){var i,o=n("sourcetype"),s="raster"===o||"image"===o;n("source"),n("sourceattribution"),"vector"===o&&n("sourcelayer"),"image"===o&&n("coordinates"),s&&(i="raster");var l=n("type",i);s&&"raster"!==l&&(l=e.type="raster",r.log("Source types *raster* and *image* must drawn *raster* layer type.")),n("below"),n("color"),n("opacity"),n("minzoom"),n("maxzoom"),"circle"===l&&n("circle.radius"),"line"===l&&(n("line.width"),n("line.dash")),"fill"===l&&n("fill.outlinecolor"),"symbol"===l&&(n("symbol.icon"),n("symbol.iconsize"),n("symbol.text"),r.coerceFont(n,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),n("symbol.textposition"),n("symbol.placement"))}}e.exports=function(t,e,r){n(t,e,r,{type:"mapbox",attributes:a,handleDefaults:o,partition:"y",accessToken:e._mapboxAccessToken})}})),k_=f((t=>{var e=__(),r=le(),n=r.strTranslate,i=r.strScale,a=we().getSubplotCalcData,o=Ae(),s=v(),l=Qe(),u=Se(),c=w_(),h="mapbox",f=t.constants=l_();t.name=h,t.attr="subplot",t.idRoot=h,t.idRegex=t.attrRegex=r.counterRegex(h);var p=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");t.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},t.layoutAttributes=u_(),t.supplyLayoutDefaults=T_();var d=!0;function m(t){return"string"==typeof t&&(-1!==f.styleValuesMapbox.indexOf(t)||0===t.indexOf("mapbox://")||0===t.indexOf("stamen"))}t.plot=function(t){d&&(d=!1,r.warn(p));var n=t._fullLayout,i=t.calcdata,o=n._subplots[h];if(e.version!==f.requiredVersion)throw new Error(f.wrongVersionErrorMsg);var s=function(t,e){var n=t._fullLayout;if(""===t._context.mapboxAccessToken)return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&r.warn(f.multipleTokensErrorMsg),i[0]):(a.length&&r.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(t,o);e.accessToken=s;for(var l=0;lw/2){var T=v.split("|").join("
");_.text(T).attr("data-unformatted",T).call(u.convertToTspans,t),b=l.bBox(_.node())}_.attr("transform",n(-3,8-b.height)),x.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var k=1;b.width+6>w&&(k=w/(b.width+6));var A=[a.l+a.w*d.x[1],a.t+a.h*(1-d.y[0])];x.attr("transform",n(A[0],A[1])+i(k))}},t.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots[h],n=0;n{["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" "),e.exports={attributes:c_(),supplyDefaults:f_(),colorbar:pi(),formatLabels:p_(),calc:Gm(),plot:g_(),hoverPoints:y_().hoverPoints,eventData:v_(),selectPoints:x_(),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.update(e)},moduleType:"trace",name:"scattermapbox",basePlotModule:k_(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}})),M_=f(((t,e)=>{e.exports=A_()})),S_=f(((t,e)=>{var r=vg(),n=Pe(),i=Ot().hovertemplateAttrs,a=j(),o=D().extendFlat;e.exports=o({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:o({},r.featureidkey,{}),below:{valType:"string",editType:"plot"},text:r.text,hovertext:r.hovertext,marker:{line:{color:o({},r.marker.line.color,{editType:"plot"}),width:o({},r.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:o({},r.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:o({},r.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:o({},r.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:r.hoverinfo,hovertemplate:i({},{keys:["properties"]}),showlegend:o({},a.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))})),E_=f(((t,e)=>{var r=le(),n=qe(),i=S_();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("locations"),u=s("z"),c=s("geojson");r.isArrayOrTypedArray(l)&&l.length&&r.isArrayOrTypedArray(u)&&u.length&&("string"==typeof c&&""!==c||r.isPlainObject(c))?(s("featureidkey"),e._length=Math.min(l.length,u.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),n(t,e,o,s,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}})),C_=f(((t,e)=>{var r=T(),n=le(),i=We(),a=Qe(),o=Xm().makeBlank,s=rg();function l(t){var e,r=t[0].trace,i=r._opts;if(r.selectedpoints){for(var o=a.makeSelectedPointStyleFns(r),s=0;s{var r=C_().convert,n=C_().convertOnSelect,i=l_().traceLayerPrefix;function a(t,e){this.type="choroplethmapbox",this.subplot=t,this.uid=e,this.sourceId="source-"+e,this.layerList=[["fill",i+e+"-fill"],["line",i+e+"-line"]],this.below=null}var o=a.prototype;o.update=function(t){this._update(r(t)),t[0].trace._glTrace=this},o.updateOnSelect=function(t){this._update(n(t))},o._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup["trace-"+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var n=e[0].trace,i=new a(t,n.uid),o=i.sourceId,s=r(e),l=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}})),L_=f(((t,e)=>{["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" "),e.exports={attributes:S_(),supplyDefaults:E_(),colorbar:Uo(),calc:_g(),plot:I_(),hoverPoints:Tg(),eventData:kg(),selectPoints:Ag(),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if("string"==typeof i&&0===i.indexOf("water"))for(var a=n+1;a{e.exports=L_()})),z_=f(((t,e)=>{var r=Pe(),n=Ot().hovertemplateAttrs,i=j(),a=c_(),o=D().extendFlat;e.exports=o({lon:a.lon,lat:a.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:a.text,hovertext:a.hovertext,hoverinfo:o({},i.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:n(),showlegend:o({},i.showlegend,{dflt:!1})},r("",{cLetter:"z",editTypeOverride:"calc"}))})),O_=f(((t,e)=>{var r=le(),n=qe(),i=z_();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("lon")||[],u=s("lat")||[],c=Math.min(l.length,u.length);c?(e._length=c,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),n(t,e,o,s,{prefix:"",cLetter:"z"})):e.visible=!1}})),D_=f(((t,e)=>{var r=T(),n=le().isArrayOrTypedArray,i=k().BADNUM,a=Ze(),o=le()._;e.exports=function(t,e){for(var s=e._length,l=new Array(s),u=e.z,c=n(u)&&u.length,h=0;h{var r=T(),n=le(),i=q(),a=We(),o=k().BADNUM,s=Xm().makeBlank;e.exports=function(t){var e=t[0].trace,l=!0===e.visible&&0!==e._length,u=e._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:s()};if(!l)return u;var c,h=[],f=e.z,p=e.radius,d=n.isArrayOrTypedArray(f)&&f.length,m=n.isArrayOrTypedArray(p);for(c=0;c0?+p[c]:0),h.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:v})}}var _=a.extractOpts(e),b=_.reversescale?a.flipScale(_.colorscale):_.colorscale,w=b[0][1],T=["interpolate",["linear"],["heatmap-density"],0,i.opacity(w)<1?w:i.addOpacity(w,0)];for(c=1;c{var r=R_(),n=l_().traceLayerPrefix;function i(t,e){this.type="densitymapbox",this.subplot=t,this.uid=e,this.sourceId="source-"+e,this.layerList=[["heatmap",n+e+"-heatmap"]],this.below=null}var a=i.prototype;a.update=function(t){var e=this.subplot,n=this.layerList,i=r(t),a=e.belowLookup["trace-"+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o=0;r--)t.removeLayer(e[r][1])},a.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var n=e[0].trace,a=new i(t,n.uid),o=a.sourceId,s=r(e),l=a.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),a._addLayers(s,l),a}})),B_=f(((t,e)=>{var r=ir(),n=y_().hoverPoints,i=y_().getExtraText;e.exports=function(t,e,a){var o=n(t,e,a);if(o){var s=o[0],l=s.cd,u=l[0].trace,c=l[s.index];if(delete s.color,"z"in c){var h=s.subplot.mockAxis;s.z=c.z,s.zLabel=r.tickText(h,h.c2l(c.z),"hover").text}return s.extraText=i(u,c,l[0].t.labels),[s]}}})),N_=f(((t,e)=>{e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}})),j_=f(((t,e)=>{["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" "),e.exports={attributes:z_(),supplyDefaults:O_(),colorbar:Uo(),formatLabels:p_(),calc:D_(),plot:F_(),hoverPoints:B_(),eventData:N_(),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n{e.exports=j_()})),V_=f(((t,e)=>{e.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":"{name:latin}\n{name:nonlatin}","text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}})),q_=f(((t,e)=>{e.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}})),H_=f(((t,e)=>{var r=Wt(),n=V_(),i="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",s={basic:o,streets:o,outdoors:o,light:i,dark:a,satellite:q_(),"satellite-streets":n,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:'© OpenStreetMap contributors',tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":i,"carto-darkmatter":a,"carto-voyager":o,"carto-positron-nolabels":"https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json","carto-darkmatter-nolabels":"https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json","carto-voyager-nolabels":"https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json"},l=r(s);e.exports={styleValueDflt:"basic",stylesMap:s,styleValuesMap:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",l.join(", "),"or use a tile service."].join("\n"),mapOnErrorMsg:"Map error."}})),G_=f(((t,e)=>{var r=le(),n=q().defaultLine,i=ka().attributes,a=R(),o=Tn().textposition,s=Lt().overrideAll,l=ye().templatedArray,u=H_(),c=a({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});c.family.dflt="Open Sans Regular, Arial Unicode MS Regular",(e.exports=s({_arrayAttrRegexps:[r.counterRegex("map",".layers",!0)],domain:i({name:"map"}),style:{valType:"any",values:u.styleValuesMap,dflt:u.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:l("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:n},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:n}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:c,textposition:r.extendFlat({},o,{arrayOk:!1})}})},"plot","from-root")).uirevision={valType:"any",editType:"none"}})),Z_=f(((t,e)=>{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=wn(),a=Vm(),o=Tn(),s=G_(),l=j(),u=Pe(),c=D().extendFlat,h=Lt().overrideAll,f=G_(),p=a.line,d=a.marker;e.exports=h({lon:a.lon,lat:a.lat,cluster:{enabled:{valType:"boolean"},maxzoom:c({},f.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:c({},d.opacity,{dflt:1})},mode:c({},o.mode,{dflt:"markers"}),text:c({},o.text,{}),texttemplate:n({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:c({},o.hovertext,{}),line:{color:p.color,width:p.width},connectgaps:o.connectgaps,marker:c({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:d.opacity,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode},u("marker")),fill:a.fill,fillcolor:i(),textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:"string"},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:c({},l.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:r()},"calc","nested")})),W_=f(((t,e)=>{var r=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];e.exports={isSupportedFont:function(t){return-1!==r.indexOf(t)}}})),Y_=f(((t,e)=>{var r=le(),n=Ye(),i=Wn(),a=Yn(),o=$n(),s=Jn(),l=Z_(),u=W_().isSupportedFont;e.exports=function(t,e,c,h){function f(n,i){return r.coerce(t,e,l,n,i)}function p(n,i){return r.coerce2(t,e,l,n,i)}var d=function(t,e,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f);if(d){if(f("text"),f("texttemplate"),f("hovertext"),f("hovertemplate"),f("mode"),f("below"),n.hasMarkers(e)){i(t,e,c,h,f,{noLine:!0,noAngle:!0}),f("marker.allowoverlap"),f("marker.angle");var m=e.marker;"circle"!==m.symbol&&(r.isArrayOrTypedArray(m.size)&&(m.size=m.size[0]),r.isArrayOrTypedArray(m.color)&&(m.color=m.color[0]))}n.hasLines(e)&&(a(t,e,c,h,f,{noDash:!0}),f("connectgaps"));var g=p("cluster.maxzoom"),y=p("cluster.step"),v=p("cluster.color",e.marker&&e.marker.color||c),x=p("cluster.size"),_=p("cluster.opacity");if(f("cluster.enabled",!1!==g||!1!==y||!1!==v||!1!==x||!1!==_)||n.hasText(e)){var b=h.font.family;o(t,e,h,f,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:u(b)?b:"Open Sans Regular",weight:h.font.weight,style:h.font.style,size:h.font.size,color:h.font.color}})}f("fill"),"none"!==e.fill&&s(t,e,c,f),r.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}})),X_=f(((t,e)=>{var r=ir();e.exports=function(t,e,n){var i={},a=n[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=r.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=r.tickText(a,a.c2l(o[1]),!0).text,i}})),$_=f(((t,e)=>{var r=le();e.exports=function(t,e){var n=t.split(" "),i=n[0],a=n[1],o=r.isArrayOrTypedArray(e)?r.mean(e):e,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s}return{anchor:u[0]&&u[1]?u.join("-"):u[0]?u[0]:u[1]?u[1]:"center",offset:c}}})),J_=f(((t,e)=>{var r=T(),n=le(),i=k().BADNUM,a=Xm(),o=We(),s=Qe(),l=Xe(),u=Ye(),c=W_().isSupportedFont,h=$_(),f=$e().appendArrayPointValue,p=Se().NEWLINES,d=Se().BR_TAG_ALL;function m(t){return{type:t,geojson:a.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function g(t,e){return n.isArrayOrTypedArray(t)?e?function(e){return r(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:y}function y(){return""}function v(t){return t[0]===i}function x(t,e){var r;if(n.isArrayOrTypedArray(t)&&n.isArrayOrTypedArray(e)){r=["step",["get","point_count"],t[0]];for(var i=1;i850?" Black":i>750?" Extra Bold":i>650?" Bold":i>550?" Semi Bold":i>450?" Medium":i>350?" Regular":i>250?" Light":i>150?" Extra Light":" Thin"):"Open Sans"===a.slice(0,2).join(" ")?(s="Open Sans",s+=i>750?" Extrabold":i>650?" Bold":i>550?" Semibold":i>350?" Regular":" Light"):"Klokantech Noto Sans"===a.slice(0,3).join(" ")&&(s="Klokantech Noto Sans","CJK"===a[3]&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),"Open Sans Regular Italic"===s?s="Open Sans Italic":"Open Sans Regular Bold"===s?s="Open Sans Bold":"Open Sans Regular Bold Italic"===s?s="Open Sans Bold Italic":"Klokantech Noto Sans Regular Italic"===s&&(s="Klokantech Noto Sans Italic"),c(s)||(s=r),s.split(", ")}e.exports=function(t,e){var i,c=e[0].trace,b=!0===c.visible&&0!==c._length,w="none"!==c.fill,T=u.hasLines(c),k=u.hasMarkers(c),A=u.hasText(c),M=k&&"circle"===c.marker.symbol,S=k&&"circle"!==c.marker.symbol,E=c.cluster&&c.cluster.enabled,C=m("fill"),I=m("line"),L=m("circle"),P=m("symbol"),z={fill:C,line:I,circle:L,symbol:P};if(!b)return z;if((w||T)&&(i=a.calcTraceToLineCoords(e)),w&&(C.geojson=a.makePolygon(i),C.layout.visibility="visible",n.extendFlat(C.paint,{"fill-color":c.fillcolor})),T&&(I.geojson=a.makeLine(i),I.layout.visibility="visible",n.extendFlat(I.paint,{"line-width":c.line.width,"line-color":c.line.color,"line-opacity":c.opacity})),M){var O=function(t){var e,i,a,u,c=t[0].trace,h=c.marker,f=c.selectedpoints,p=n.isArrayOrTypedArray(h.color),d=n.isArrayOrTypedArray(h.size),m=n.isArrayOrTypedArray(h.opacity);function g(t){return c.opacity*t}p&&(i=o.hasColorscale(c,"marker")?o.makeColorScaleFuncFromTrace(h):n.identity),d&&(a=l(c)),m&&(u=function(t){return g(r(t)?+n.constrain(t,0,1):0)});var y,x=[];for(e=0;e{var r=le(),n=J_(),i=H_().traceLayerPrefix,a={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function o(t,e,r,n){this.type="scattermap",this.subplot=t,this.uid=e,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+e+"-fill",line:"source-"+e+"-line",circle:"source-"+e+"-circle",symbol:"source-"+e+"-symbol",cluster:"source-"+e+"-circle",clusterCount:"source-"+e+"-circle"},this.layerIds={fill:i+e+"-fill",line:i+e+"-line",circle:i+e+"-circle",symbol:i+e+"-symbol",cluster:i+e+"-cluster",clusterCount:i+e+"-cluster-count"},this.below=null}var s=o.prototype;s.addSource=function(t,e,n){var i={type:"geojson",data:e.geojson};n&&n.enabled&&r.extendFlat(i,{cluster:!0,clusterMaxZoom:n.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[t]);a?a.setData(e.geojson):this.subplot.map.addSource(this.sourceIds[t],i)},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){var n={type:e.type,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint};e.filter&&(n.filter=e.filter);for(var i,a=this.layerIds[t],o=this.subplot.getMapLayers(),s=0;s=0;r--){var n=e[r];i.removeLayer(c.layerIds[n])}t||i.removeSource(c.sourceIds.circle)}(t):function(t){for(var e=a.nonCluster,r=e.length-1;r>=0;r--){var n=e[r];i.removeLayer(c.layerIds[n]),t||i.removeSource(c.sourceIds[n])}}(t)}function f(t){l?function(t){t||c.addSource("circle",o.circle,e.cluster);for(var r=a.cluster,n=0;n=0;r--){var n=e[r];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}},e.exports=function(t,e){var r,i,s,l=e[0].trace,u=l.cluster&&l.cluster.enabled,c=!0!==l.visible,h=new o(t,l.uid,u,c),f=n(t.gd,e),p=h.below=t.belowLookup["trace-"+l.uid];if(u)for(h.addSource("circle",f.circle,l.cluster),r=0;r{var r=Or(),n=le(),i=gi(),a=n.fillText,o=k().BADNUM,s=H_().traceLayerPrefix;function l(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split("+"),i=-1!==n.indexOf("all"),o=-1!==n.indexOf("lon"),s=-1!==n.indexOf("lat"),l=e.lonlat,u=[];return i||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(i||-1!==n.indexOf("text"))&&a(e,t,u),u.join("
")}function c(t){return t+"°"}}e.exports={hoverPoints:function(t,e,a){var u=t.cd,c=u[0].trace,h=t.xa,f=t.ya,p=t.subplot,d=[],m=s+c.uid+"-circle",g=c.cluster&&c.cluster.enabled;if(g){var y=p.map.queryRenderedFeatures(null,{layers:[m]});d=y.map((function(t){return t.id}))}var v=360*(e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),x=e-v;if(r.getClosest(u,(function(t){var e=t.lonlat;if(e[0]===o||g&&-1===d.indexOf(t.i+1))return 1/0;var r=n.modHalf(e[0],360),i=e[1],s=p.project([r,i]),l=s.x-h.c2p([x,i]),u=s.y-f.c2p([r,a]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+u*u)-c,1-3/c)}),t),!1!==t.index){var _=u[t.index],b=_.lonlat,w=[n.modHalf(b[0],360)+v,b[1]],T=h.c2p(w),k=f.c2p(w),A=_.mrc||1;t.x0=T-A,t.x1=T+A,t.y0=k-A,t.y1=k+A;var M={};M[c.subplot]={_subplot:p};var S=c._module.formatLabels(_,c,M);return t.lonLabel=S.lonLabel,t.latLabel=S.latLabel,t.color=i(c,_),t.extraText=l(c,_,u[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}})),tb=f(((t,e)=>{e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}})),eb=f(((t,e)=>{var r=le(),n=Ye(),i=k().BADNUM;e.exports=function(t,e){var a,o=t.cd,s=t.xaxis,l=t.yaxis,u=[],c=o[0].trace;if(!n.hasMarkers(c))return[];if(!1===e)for(a=0;a{var n,a;n=t,a=function(){var t={},e={};function n(r,n,i){if(e[r]=i,"index"===r){var a="var sharedModule = {}; ("+e.shared+")(sharedModule); ("+e.worker+")(sharedModule);",o={};return e.shared(o),e.index(t,o),"undefined"!=typeof window&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([a],{type:"text/javascript"}))),t}}return n("shared",0,(function(t){function e(t,e,r,n){return new(r||(r=Promise))((function(i,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,s)}l((n=n.apply(t,e||[])).next())}))}function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var a=s;function s(t,e){this.x=t,this.y=e}s.prototype={clone:function(){return new s(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},s.convert=function(t){return t instanceof s?t:Array.isArray(t)?new s(t[0],t[1]):t};var h=n(a),f=p;function p(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=n}p.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,n=0;n<8;n++){var i=this.sampleCurveX(r)-t;if(Math.abs(i)i?o=r:s=r,r=.5*(s-o)+o;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var d=n(f);let m,g;function y(){return null==m&&(m="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),m}function v(){if(null==g&&(g=!1,y())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let e=0;e<25;e++){let r=4*e;t.fillStyle=`rgb(${r},${r+1},${r+2})`,t.fillRect(e%5,Math.floor(e/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let t=0;t<100;t++)if(t%4!=3&&e[t]!==t){g=!0;break}}}return g||!1}function x(t,e,r,n){let i=new d(t,e,r,n);return t=>i.solve(t)}let _=x(.25,.1,.25,1);function b(t,e,r){return Math.min(r,Math.max(e,t))}function w(t,e,r){let n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function T(t,...e){for(let r of e)for(let e in r)t[e]=r[e];return t}let k=1;function A(t,e,r){let n={};for(let r in t)n[r]=e.call(this,t[r],r,t);return n}function M(t,e,r){let n={};for(let r in t)e.call(this,t[r],r,t)&&(n[r]=t[r]);return n}function S(t){return Array.isArray(t)?t.map(S):"object"==typeof t&&t?A(t,S):t}let E={};function C(t){E[t]||("undefined"!=typeof console&&console.warn(t),E[t]=!0)}function I(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function L(t){return"undefined"!=typeof WorkerGlobalScope&&void 0!==t&&t instanceof WorkerGlobalScope}let P=null;function z(t){return"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap}let O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function D(t,r,n,i,a){return e(this,void 0,void 0,(function*(){if("undefined"==typeof VideoFrame)throw new Error("VideoFrame not supported");let e=new VideoFrame(t,{timestamp:0});try{let o=null==e?void 0:e.format;if(!o||!o.startsWith("BGR")&&!o.startsWith("RGB"))throw new Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*a*4);if(yield e.copyTo(l,function(t,e,r,n,i){let a=4*Math.max(-e,0),o=(Math.max(0,r)-r)*n*4+a,s=4*n,l=Math.max(0,e),u=Math.max(0,r);return{rect:{x:l,y:u,width:Math.min(t.width,e+n)-l,height:Math.min(t.height,r+i)-u},layout:[{offset:o,stride:s}]}}(t,r,n,i,a)),s)for(let t=0;tL(self)?self.worker&&self.worker.referrer:("blob:"===window.location.protocol?window.parent:window).location.href,G=function(t,r){if(/:\/\//.test(t.url)&&!/^https?:|^file:/.test(t.url)){let e=U(t.url);if(e)return e(t,r);if(L(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:V},r)}if(!(/^file:/.test(n=t.url)||/^file:/.test(H())&&!/^\w+:/.test(n))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(t,r){return e(this,void 0,void 0,(function*(){let e=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:H(),signal:r.signal});"json"!==t.type||e.headers.has("Accept")||e.headers.set("Accept","application/json");let n,i=yield fetch(e);if(!i.ok){let e=yield i.blob();throw new q(i.status,i.statusText,t.url,e)}n="arrayBuffer"===t.type||"image"===t.type?i.arrayBuffer():"json"===t.type?i.json():i.text();let a=yield n;if(r.signal.aborted)throw N();return{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires")}}))}(t,r);if(L(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:V},r)}var n,i,a;return i=t,a=r,new Promise(((t,e)=>{var r;let n=new XMLHttpRequest;n.open(i.method||"GET",i.url,!0),"arrayBuffer"!==i.type&&"image"!==i.type||(n.responseType="arraybuffer");for(let t in i.headers)n.setRequestHeader(t,i.headers[t]);"json"===i.type&&(n.responseType="text",!(null===(r=i.headers)||void 0===r)&&r.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===i.credentials,n.onerror=()=>{e(new Error(n.statusText))},n.onload=()=>{if(!a.signal.aborted)if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let r=n.response;if("json"===i.type)try{r=JSON.parse(n.response)}catch(t){return void e(t)}t({data:r,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")})}else{let t=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});e(new q(n.status,n.statusText,i.url,t))}},a.signal.addEventListener("abort",(()=>{n.abort(),e(N())})),n.send(i.body)}))};function Z(t){if(!t||t.indexOf("://")<=0||0===t.indexOf("data:image/")||0===t.indexOf("blob:"))return!0;let e=new URL(t),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function W(t,e,r){r[t]&&-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function Y(t,e,r){if(r&&r[t]){let n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1)}}class X{constructor(t,e={}){T(this,e),this.type=t}}class $ extends X{constructor(t,e={}){super("error",T({error:t},e))}}class J{on(t,e){return this._listeners=this._listeners||{},W(t,e,this._listeners),this}off(t,e){return Y(t,e,this._listeners),Y(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners=this._oneTimeListeners||{},W(t,e,this._oneTimeListeners),this):new Promise((e=>this.once(t,e)))}fire(t,e){"string"==typeof t&&(t=new X(t,e||{}));let r=t.type;if(this.listens(r)){t.target=this;let e=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];for(let r of e)r.call(this,t);let n=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];for(let e of n)Y(r,e,this._oneTimeListeners),e.call(this,t);let i=this._eventedParent;i&&(T(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(t))}else t instanceof $&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var K={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Q=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function tt(t,e){let r={};for(let e in t)"ref"!==e&&(r[e]=t[e]);return Q.forEach((t=>{t in e&&(r[t]=e[t])})),r}function et(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}let Et=[dt,mt,gt,yt,vt,wt,xt,Mt(_t),Tt,kt,At];function Ct(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Ct(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(let t of Et)if(!Ct(t,e))return null}return`Expected ${St(t)} but found ${St(e)} instead.`}function It(t,e){return e.some((e=>e.kind===t.kind))}function Lt(t,e){return e.some((e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t))}function Pt(t,e){return"array"===t.kind&&"array"===e.kind?t.itemType.kind===e.itemType.kind&&"number"==typeof t.N:t.kind===e.kind}let zt=.96422,Ot=.82521,Dt=4/29,Rt=6/29,Ft=3*Rt*Rt,Bt=Rt*Rt*Rt,Nt=Math.PI/180,jt=180/Math.PI;function Ut(t){return(t%=360)<0&&(t+=360),t}function Vt([t,e,r,n]){let i,a,o=Ht((.2225045*(t=qt(t))+.7168786*(e=qt(e))+.0606169*(r=qt(r)))/1);t===e&&e===r?i=a=o:(i=Ht((.4360747*t+.3850649*e+.1430804*r)/zt),a=Ht((.0139322*t+.0971045*e+.7141733*r)/Ot));let s=116*o-16;return[s<0?0:s,500*(i-o),200*(o-a),n]}function qt(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ht(t){return t>Bt?Math.pow(t,1/3):t/Ft+Dt}function Gt([t,e,r,n]){let i=(t+16)/116,a=isNaN(e)?i:i+e/500,o=isNaN(r)?i:i-r/200;return i=1*Wt(i),a=zt*Wt(a),o=Ot*Wt(o),[Zt(3.1338561*a-1.6168667*i-.4906146*o),Zt(-.9787684*a+1.9161415*i+.033454*o),Zt(.0719453*a-.2289914*i+1.4052427*o),n]}function Zt(t){return(t=t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055)<0?0:t>1?1:t}function Wt(t){return t>Rt?t*t*t:Ft*(t-Dt)}function Yt(t){return parseInt(t.padEnd(2,t),16)/255}function Xt(t,e){return $t(e?t/100:t,0,1)}function $t(t,e,r){return Math.min(Math.max(e,t),r)}function Jt(t){return!t.some(Number.isNaN)}let Kt={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]};class Qt{constructor(t,e,r,n=1,i=!0){this.r=t,this.g=e,this.b=r,this.a=n,i||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[t,e,r,n]))}static parse(t){if(t instanceof Qt)return t;if("string"!=typeof t)return;let e=function(t){if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];let e=Kt[t];if(e){let[t,r,n]=e;return[t/255,r/255,n/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let e=t.length<6?1:2,r=1;return[Yt(t.slice(r,r+=e)),Yt(t.slice(r,r+=e)),Yt(t.slice(r,r+=e)),Yt(t.slice(r,r+e)||"ff")]}if(t.startsWith("rgb")){let e=t.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(e){let[t,r,n,i,a,o,s,l,u,c,h,f]=e,p=[i||" ",s||" ",c].join("");if(" "===p||" /"===p||",,"===p||",,,"===p){let t=[n,o,u].join(""),e="%%%"===t?100:""===t?255:0;if(e){let t=[$t(+r/e,0,1),$t(+a/e,0,1),$t(+l/e,0,1),h?Xt(+h,f):1];if(Jt(t))return t}}return}}let r=t.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[t,e,n,i,a,o,s,l,u]=r,c=[n||" ",a||" ",s].join("");if(" "===c||" /"===c||",,"===c||",,,"===c){let t=[+e,$t(+i,0,100),$t(+o,0,100),l?Xt(+l,u):1];if(Jt(t))return function([t,e,r,n]){function i(n){let i=(n+t/30)%12,a=e*Math.min(r,1-r);return r-a*Math.max(-1,Math.min(i-3,9-i,1))}return t=Ut(t),e/=100,r/=100,[i(0),i(8),i(4),n]}(t)}}}(t);return e?new Qt(...e,!1):void 0}get rgb(){let{r:t,g:e,b:r,a:n}=this,i=n||1/0;return this.overwriteGetter("rgb",[t/i,e/i,r/i,n])}get hcl(){return this.overwriteGetter("hcl",function(t){let[e,r,n,i]=Vt(t),a=Math.sqrt(r*r+n*n);return[Math.round(1e4*a)?Ut(Math.atan2(n,r)*jt):NaN,a,e,i]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Vt(this.rgb))}overwriteGetter(t,e){return Object.defineProperty(this,t,{value:e}),e}toString(){let[t,e,r,n]=this.rgb;return`rgba(${[t,e,r].map((t=>Math.round(255*t))).join(",")},${n})`}}Qt.black=new Qt(0,0,0,1),Qt.white=new Qt(1,1,1,1),Qt.transparent=new Qt(0,0,0,0),Qt.red=new Qt(1,0,0,1);class te{constructor(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ee{constructor(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i}}class re{constructor(t){this.sections=t}static fromString(t){return new re([new ee(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((t=>0!==t.text.length||t.image&&0!==t.image.name.length))}static factory(t){return t instanceof re?t:re.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map((t=>t.text)).join("")}}class ne{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ne)return t;if("number"==typeof t)return new ne([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let e of t)if("number"!=typeof e)return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new ne(t)}}toString(){return JSON.stringify(this.values)}}let ie=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class ae{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ae)return t;if(Array.isArray(t)&&!(t.length<1)&&t.length%2==0){for(let e=0;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function le(t){if(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t||t instanceof Qt||t instanceof te||t instanceof re||t instanceof ne||t instanceof ae||t instanceof oe)return!0;if(Array.isArray(t)){for(let e of t)if(!le(e))return!1;return!0}if("object"==typeof t){for(let e in t)if(!le(t[e]))return!1;return!0}return!1}function ue(t){if(null===t)return dt;if("string"==typeof t)return gt;if("boolean"==typeof t)return yt;if("number"==typeof t)return mt;if(t instanceof Qt)return vt;if(t instanceof te)return bt;if(t instanceof re)return wt;if(t instanceof ne)return Tt;if(t instanceof ae)return At;if(t instanceof oe)return kt;if(Array.isArray(t)){let e,r=t.length;for(let r of t){let t=ue(r);if(e){if(e===t)continue;e=_t;break}e=t}return Mt(e||_t,r)}return xt}function ce(t){let e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Qt||t instanceof re||t instanceof ne||t instanceof ae||t instanceof oe?t.toString():JSON.stringify(t)}class he{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!le(t[1]))return e.error("invalid value");let r=t[1],n=ue(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(n=i),new he(n,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class fe{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}let pe={string:gt,number:mt,boolean:yt,object:xt};class de{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let r,n=1,i=t[0];if("array"===i){let i,a;if(t.length>2){let r=t[1];if("string"!=typeof r||!(r in pe)||"object"===r)return e.error('The item type argument of "array" must be one of string, number, boolean',1);i=pe[r],n++}else i=_t;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=Mt(i,a)}else{if(!pe[i])throw new Error(`Types doesn't contain name = ${i}`);r=pe[i]}let a=[];for(;nt.outputDefined()))}}let me={"to-boolean":yt,"to-color":vt,"to-number":mt,"to-string":gt};class ge{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let r=t[0];if(!me[r])throw new Error(`Can't parse ${r} as it is not part of the known types`);if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");let n=me[r],i=[];for(let r=1;r4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:se(e[0],e[1],e[2],e[3]),!r))return new Qt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new fe(r||`Could not parse color from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"padding":{let e;for(let r of this.args){e=r.evaluate(t);let n=ne.parse(e);if(n)return n}throw new fe(`Could not parse padding from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"variableAnchorOffsetCollection":{let e;for(let r of this.args){e=r.evaluate(t);let n=ae.parse(e);if(n)return n}throw new fe(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"number":{let e=null;for(let r of this.args){if(e=r.evaluate(t),null===e)return 0;let n=Number(e);if(!isNaN(n))return n}throw new fe(`Could not convert ${JSON.stringify(e)} to number.`)}case"formatted":return re.fromString(ce(this.args[0].evaluate(t)));case"resolvedImage":return oe.fromString(ce(this.args[0].evaluate(t)));default:return ce(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}let ye=["Unknown","Point","LineString","Polygon"];class ve{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?ye[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Qt.parse(t)),e}}class xe{constructor(t,e,r=[],n,i=new pt,a=[]){this.registry=t,this.path=r,this.key=r.map((t=>`[${t}]`)).join(""),this.scope=i,this.errors=a,this.expectedType=n,this._isConstant=e}parse(t,e,r,n,i={}){return e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)}_parse(t,e){function r(t,e,r){return"assert"===r?new de(e,[t]):"coerce"===r?new ge(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let n=t[0];if("string"!=typeof n)return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let i=this.registry[n];if(i){let n=i.parse(t,this);if(!n)return null;if(this.expectedType){let t=this.expectedType,i=n.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==i.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==i.kind&&"string"!==i.kind)if("padding"!==t.kind||"value"!==i.kind&&"number"!==i.kind&&"array"!==i.kind)if("variableAnchorOffsetCollection"!==t.kind||"value"!==i.kind&&"array"!==i.kind){if(this.checkSubtype(t,i))return null}else n=r(n,t,e.typeAnnotation||"coerce");else n=r(n,t,e.typeAnnotation||"coerce");else n=r(n,t,e.typeAnnotation||"coerce");else n=r(n,t,e.typeAnnotation||"assert")}if(!(n instanceof he)&&"resolvedImage"!==n.type.kind&&this._isConstant(n)){let t=new ve;try{n=new he(n.type,n.evaluate(t))}catch(t){return this.error(t.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,r){let n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new xe(this.registry,this._isConstant,n,e||null,i,this.errors)}error(t,...e){let r=`${this.key}${e.map((t=>`[${t}]`)).join("")}`;this.errors.push(new ft(r,t))}checkSubtype(t,e){let r=Ct(t,e);return r&&this.error(r),r}}class _e{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let r=[];for(let n=1;n=r.length)throw new fe(`Array index out of bounds: ${e} > ${r.length-1}.`);if(e!==Math.floor(e))throw new fe(`Array index must be an integer, but found ${e} instead.`);return r[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}}class Te{constructor(t,e){this.type=yt,this.needle=t,this.haystack=e}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,_t),n=e.parse(t[2],2,_t);return r&&n?It(r.type,[yt,gt,mt,dt,_t])?new Te(r,n):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${St(r.type)} instead`):null}evaluate(t){let e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Lt(e,["boolean","string","number","null"]))throw new fe(`Expected first argument to be of type boolean, string, number or null, but found ${St(ue(e))} instead.`);if(!Lt(r,["string","array"]))throw new fe(`Expected second argument to be of type array or string, but found ${St(ue(r))} instead.`);return r.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}}class ke{constructor(t,e,r){this.type=mt,this.needle=t,this.haystack=e,this.fromIndex=r}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,_t),n=e.parse(t[2],2,_t);if(!r||!n)return null;if(!It(r.type,[yt,gt,mt,dt,_t]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${St(r.type)} instead`);if(4===t.length){let i=e.parse(t[3],3,mt);return i?new ke(r,n,i):null}return new ke(r,n)}evaluate(t){let e,r=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Lt(r,["boolean","string","number","null"]))throw new fe(`Expected first argument to be of type boolean, string, number or null, but found ${St(ue(r))} instead.`);if(this.fromIndex&&(e=this.fromIndex.evaluate(t)),Lt(n,["string"])){let t=n.indexOf(r,e);return-1===t?-1:[...n.slice(0,t)].length}if(Lt(n,["array"]))return n.indexOf(r,e);throw new fe(`Expected second argument to be of type array or string, but found ${St(ue(n))} instead.`)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}}class Ae{constructor(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);let i={},a=[];for(let o=2;oNumber.MAX_SAFE_INTEGER)return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof t&&Math.floor(t)!==t)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,ue(t)))return null}else r=ue(t);if(void 0!==i[String(t)])return u.error("Branch labels must be unique.");i[String(t)]=a.length}let c=e.parse(l,o,n);if(!c)return null;n=n||c.type,a.push(c)}let o=e.parse(t[1],1,_t);if(!o)return null;let s=e.parse(t[t.length-1],t.length-1,n);return s?"value"!==o.type.kind&&e.concat(1).checkSubtype(r,o.type)?null:new Ae(r,n,o,i,a,s):null}evaluate(t){let e=this.input.evaluate(t);return(ue(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))&&this.otherwise.outputDefined()}}class Me{constructor(t,e,r){this.type=t,this.branches=e,this.otherwise=r}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return e.error("Expected an odd number of arguments.");let r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);let n=[];for(let i=1;ie.outputDefined()))&&this.otherwise.outputDefined()}}class Se{constructor(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);let r=e.parse(t[1],1,_t),n=e.parse(t[2],2,mt);if(!r||!n)return null;if(!It(r.type,[Mt(_t),gt,_t]))return e.error(`Expected first argument to be of type array or string, but found ${St(r.type)} instead`);if(4===t.length){let i=e.parse(t[3],3,mt);return i?new Se(r.type,r,n,i):null}return new Se(r.type,r,n)}evaluate(t){let e,r=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(this.endIndex&&(e=this.endIndex.evaluate(t)),Lt(r,["string"]))return[...r].slice(n,e).join("");if(Lt(r,["array"]))return r.slice(n,e);throw new fe(`Expected first argument to be of type array or string, but found ${St(ue(r))} instead.`)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}}function Ee(t,e){let r,n,i=t.length-1,a=0,o=i,s=0;for(;a<=o;)if(s=Math.floor((a+o)/2),r=t[s],n=t[s+1],r<=e){if(s===i||ee))throw new fe("Input is not a number.");o=s-1}return 0}class Ce{constructor(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(let[t,e]of r)this.labels.push(t),this.outputs.push(e)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");let r=e.parse(t[1],1,mt);if(!r)return null;let n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(let r=1;r=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);let u=e.parse(o,l,i);if(!u)return null;i=i||u.type,n.push([a,u])}return new Ce(i,r,n)}evaluate(t){let e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);let n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);let i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[Ee(e,n)].evaluate(t)}eachChild(t){t(this.input);for(let e of this.outputs)t(e)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}var Ie=Le;function Le(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=n}Le.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,n=0;n<8;n++){var i=this.sampleCurveX(r)-t;if(Math.abs(i)i?o=r:s=r,r=.5*(s-o)+o;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var Pe,ze=(Pe=Ie)&&Pe.__esModule&&Object.prototype.hasOwnProperty.call(Pe,"default")?Pe.default:Pe;function Oe(t,e,r){return t+r*(e-t)}function De(t,e,r){return t.map(((t,n)=>Oe(t,e[n],r)))}let Re={number:Oe,color:function(t,e,r,n="rgb"){switch(n){case"rgb":{let[n,i,a,o]=De(t.rgb,e.rgb,r);return new Qt(n,i,a,o,!1)}case"hcl":{let n,i,[a,o,s,l]=t.hcl,[u,c,h,f]=e.hcl;if(isNaN(a)||isNaN(u))isNaN(a)?isNaN(u)?n=NaN:(n=u,1!==s&&0!==s||(i=c)):(n=a,1!==h&&0!==h||(i=o));else{let t=u-a;u>a&&t>180?t-=360:u180&&(t+=360),n=a+r*t}let[p,d,m,g]=function([t,e,r,n]){return t=isNaN(t)?0:t*Nt,Gt([r,Math.cos(t)*e,Math.sin(t)*e,n])}([n,null!=i?i:Oe(o,c,r),Oe(s,h,r),Oe(l,f,r)]);return new Qt(p,d,m,g,!1)}case"lab":{let[n,i,a,o]=Gt(De(t.lab,e.lab,r));return new Qt(n,i,a,o,!1)}}},array:De,padding:function(t,e,r){return new ne(De(t.values,e.values,r))},variableAnchorOffsetCollection:function(t,e,r){let n=t.values,i=e.values;if(n.length!==i.length)throw new fe(`Cannot interpolate values of different length. from: ${t.toString()}, to: ${e.toString()}`);let a=[];for(let t=0;t"number"!=typeof t||t<0||t>1)))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:t}}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,mt),!i)return null;let o=[],s=null;"interpolate-hcl"===r||"interpolate-lab"===r?s=vt:e.expectedType&&"value"!==e.expectedType.kind&&(s=e.expectedType);for(let t=0;t=r)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);let u=e.parse(n,l,s);if(!u)return null;s=s||u.type,o.push([r,u])}return Pt(s,mt)||Pt(s,vt)||Pt(s,Tt)||Pt(s,At)||Pt(s,Mt(mt))?new Fe(s,r,n,i,o):e.error(`Type ${St(s)} is not interpolatable.`)}evaluate(t){let e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);let n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);let i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);let a=Ee(e,n),o=Fe.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);switch(this.operator){case"interpolate":return Re[this.type.kind](s,l,o);case"interpolate-hcl":return Re.color(s,l,o,"hcl");case"interpolate-lab":return Re.color(s,l,o,"lab")}}eachChild(t){t(this.input);for(let e of this.outputs)t(e)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}function Be(t,e,r,n){let i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}class Ne{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);let i=[];for(let n of t.slice(1)){let t=e.parse(n,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!t)return null;r=r||t.type,i.push(t)}if(!r)throw new Error("No output type");let a=n&&i.some((t=>Ct(n,t.type)));return new Ne(a?_t:r,i)}evaluate(t){let e,r=null,n=0;for(let i of this.args)if(n++,r=i.evaluate(t),r&&r instanceof oe&&!r.available&&(e||(e=r.name),r=null,n===this.args.length&&(r=e)),null!==r)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}function je(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function Ue(t,e,r,n){return 0===n.compare(e,r)}function Ve(t,e,r){let n="=="!==t&&"!="!==t;return class i{constructor(t,e,r){this.type=yt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}static parse(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");let r=t[0],a=e.parse(t[1],1,_t);if(!a)return null;if(!je(r,a.type))return e.concat(1).error(`"${r}" comparisons are not supported for type '${St(a.type)}'.`);let o=e.parse(t[2],2,_t);if(!o)return null;if(!je(r,o.type))return e.concat(2).error(`"${r}" comparisons are not supported for type '${St(o.type)}'.`);if(a.type.kind!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return e.error(`Cannot compare types '${St(a.type)}' and '${St(o.type)}'.`);n&&("value"===a.type.kind&&"value"!==o.type.kind?a=new de(o.type,[a]):"value"!==a.type.kind&&"value"===o.type.kind&&(o=new de(a.type,[o])));let s=null;if(4===t.length){if("string"!==a.type.kind&&"string"!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return e.error("Cannot use collator to compare non-string types.");if(s=e.parse(t[3],3,bt),!s)return null}return new i(a,o,s)}evaluate(i){let a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){let e=ue(a),r=ue(o);if(e.kind!==r.kind||"string"!==e.kind&&"number"!==e.kind)throw new fe(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${e.kind}, ${r.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){let t=ue(a),r=ue(o);if("string"!==t.kind||"string"!==r.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}}}let qe=Ve("==",(function(t,e,r){return e===r}),Ue),He=Ve("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!Ue(0,e,r,n)})),Ge=Ve("<",(function(t,e,r){return e",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),We=Ve("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),Ye=Ve(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0}));class Xe{constructor(t,e,r){this.type=bt,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");let r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");let n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,yt);if(!n)return null;let i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,yt);if(!i)return null;let a=null;return r.locale&&(a=e.parse(r.locale,1,gt),!a)?null:new Xe(n,i,a)}evaluate(t){return new te(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}}class $e{constructor(t,e,r,n,i){this.type=gt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i}static parse(t,e){if(3!==t.length)return e.error("Expected two arguments.");let r=e.parse(t[1],1,mt);if(!r)return null;let n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");let i=null;if(n.locale&&(i=e.parse(n.locale,1,gt),!i))return null;let a=null;if(n.currency&&(a=e.parse(n.currency,1,gt),!a))return null;let o=null;if(n["min-fraction-digits"]&&(o=e.parse(n["min-fraction-digits"],1,mt),!o))return null;let s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,mt),!s)?null:new $e(r,i,a,o,s)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}}class Je{constructor(t){this.type=wt,this.sections=t}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");let n=[],i=!1;for(let r=1;r<=t.length-1;++r){let a=t[r];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;let t=null;if(a["font-scale"]&&(t=e.parse(a["font-scale"],1,mt),!t))return null;let r=null;if(a["text-font"]&&(r=e.parse(a["text-font"],1,Mt(gt)),!r))return null;let o=null;if(a["text-color"]&&(o=e.parse(a["text-color"],1,vt),!o))return null;let s=n[n.length-1];s.scale=t,s.font=r,s.textColor=o}else{let a=e.parse(t[r],1,_t);if(!a)return null;let o=a.type.kind;if("string"!==o&&"value"!==o&&"null"!==o&&"resolvedImage"!==o)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:a,scale:null,font:null,textColor:null})}}return new Je(n)}evaluate(t){return new re(this.sections.map((e=>{let r=e.content.evaluate(t);return ue(r)===kt?new ee("",r,null,null,null):new ee(ce(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))}eachChild(t){for(let e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor)}outputDefined(){return!1}}class Ke{constructor(t){this.type=kt,this.input=t}static parse(t,e){if(2!==t.length)return e.error("Expected two arguments.");let r=e.parse(t[1],1,gt);return r?new Ke(r):e.error("No image name provided.")}evaluate(t){let e=this.input.evaluate(t),r=oe.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r}eachChild(t){t(this.input)}outputDefined(){return!1}}class Qe{constructor(t){this.type=mt,this.input=t}static parse(t,e){if(2!==t.length)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);let r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error(`Expected argument of type string or array, but found ${St(r.type)} instead.`):new Qe(r):null}evaluate(t){let e=this.input.evaluate(t);if("string"==typeof e)return[...e].length;if(Array.isArray(e))return e.length;throw new fe(`Expected value to be of type string or array, but found ${St(ue(e))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}}let tr=8192;function er(t,e){let r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*tr),Math.round(n*i*tr)]}function rr(t,e){let r=Math.pow(2,e.z);return[(i=(t[0]/tr+e.x)/r,360*i-180),(n=(t[1]/tr+e.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90)];var n,i}function nr(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function ir(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function ar(t,e,r){let n=t[0]-e[0],i=t[1]-e[1],a=t[0]-r[0],o=t[1]-r[1];return n*o-a*i==0&&n*a<=0&&i*o<=0}function or(t,e,r,n){return(i=[n[0]-r[0],n[1]-r[1]])[0]*(a=[e[0]-t[0],e[1]-t[1]])[1]-i[1]*a[0]!=0&&!(!fr(t,e,r,n)||!fr(r,n,t,e));var i,a}function sr(t,e,r){for(let n of r)for(let r=0;r(i=t)[1]!=(o=s[e+1])[1]>i[1]&&i[0]<(o[0]-a[0])*(i[1]-a[1])/(o[1]-a[1])+a[0]&&(n=!n)}var i,a,o;return n}function ur(t,e){for(let r of e)if(lr(t,r))return!0;return!1}function cr(t,e){for(let r of t)if(!lr(r,e))return!1;for(let r=0;r0&&s<0||o<0&&s>0}function pr(t,e,r){let n=[];for(let i=0;ir[2]){let e=.5*n,i=t[0]-r[0]>e?-n:r[0]-t[0]>e?n:0;0===i&&(i=t[0]-r[2]>e?-n:r[2]-t[0]>e?n:0),t[0]+=i}nr(e,t)}function gr(t,e,r,n){let i=Math.pow(2,n.z)*tr,a=[n.x*tr,n.y*tr],o=[];for(let n of t)for(let t of n){let n=[t.x+a[0],t.y+a[1]];mr(n,e,r,i),o.push(n)}return o}function yr(t,e,r,n){let i=Math.pow(2,n.z)*tr,a=[n.x*tr,n.y*tr],o=[];for(let r of t){let t=[];for(let n of r){let r=[n.x+a[0],n.y+a[1]];nr(e,r),t.push(r)}o.push(t)}if(e[2]-e[0]<=i/2){(s=e)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(let t of o)for(let n of t)mr(n,e,r,i)}var s;return o}class vr{constructor(t,e){this.type=yt,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(le(t[1])){let e=t[1];if("FeatureCollection"===e.type){let t=[];for(let r of e.features){let{type:e,coordinates:n}=r.geometry;"Polygon"===e&&t.push(n),"MultiPolygon"===e&&t.push(...n)}if(t.length)return new vr(e,{type:"MultiPolygon",coordinates:t})}else if("Feature"===e.type){let t=e.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new vr(e,e.geometry)}else if("Polygon"===e.type||"MultiPolygon"===e.type)return new vr(e,e)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){let r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){let a=pr(e.coordinates,n,i),o=gr(t.geometry(),r,n,i);if(!ir(r,n))return!1;for(let t of o)if(!lr(t,a))return!1}if("MultiPolygon"===e.type){let a=dr(e.coordinates,n,i),o=gr(t.geometry(),r,n,i);if(!ir(r,n))return!1;for(let t of o)if(!ur(t,a))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){let r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){let a=pr(e.coordinates,n,i),o=yr(t.geometry(),r,n,i);if(!ir(r,n))return!1;for(let t of o)if(!cr(t,a))return!1}if("MultiPolygon"===e.type){let a=dr(e.coordinates,n,i),o=yr(t.geometry(),r,n,i);if(!ir(r,n))return!1;for(let t of o)if(!hr(t,a))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let xr=class{constructor(t=[],e=(t,e)=>te?1:0){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,n=e[t];for(;t>0;){let i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n}_down(t){let{data:e,compare:r}=this,n=this.length>>1,i=e[t];for(;t=0)break;e[t]=e[n],t=n}e[t]=i}};function _r(t,e,r,n,i){br(t,e,r,n||t.length-1,i||Tr)}function br(t,e,r,n,i){for(;n>r;){if(n-r>600){var a=n-r+1,o=e-r+1,s=Math.log(a),l=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1);br(t,e,Math.max(r,Math.floor(e-o*l/a+u)),Math.min(n,Math.floor(e+(a-o)*l/a+u)),i)}var c=t[e],h=r,f=n;for(wr(t,r,e),i(t[n],c)>0&&wr(t,r,n);h0;)f--}0===i(t[r],c)?wr(t,r,f):wr(t,++f,n),f<=e&&(r=f+1),e<=f&&(n=f-1)}}function wr(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Tr(t,e){return te?1:0}function kr(t,e){if(t.length<=1)return[t];let r,n,i=[];for(let e of t){let t=Mr(e);0!==t&&(e.area=Math.abs(t),void 0===n&&(n=t<0),n===t<0?(r&&i.push(r),r=[e]):r.push(e))}if(r&&i.push(r),e>1)for(let t=0;t1?(l=t[s+1][0],u=t[s+1][1]):f>0&&(l+=c/this.kx*f,u+=h/this.ky*f)),c=this.wrap(e[0]-l)*this.kx,h=(e[1]-u)*this.ky;let p=c*c+h*h;p180;)t-=360;return t}}function Lr(t,e){return e[0]-t[0]}function Pr(t){return t[1]-t[0]+1}function zr(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=Pr(t);if(e){if(2===r)return[t,null];let e=Math.floor(r/2);return[[t[0],t[0]+e],[t[0]+e,t[1]]]}if(1===r)return[t,null];let n=Math.floor(r/2)-1;return[[t[0],t[0]+n],[t[0]+n+1,t[1]]]}function Dr(t,e){if(!zr(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let n=e[0];n<=e[1];++n)nr(r,t[n]);return r}function Rr(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let t of r)nr(e,t);return e}function Fr(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Br(t,e,r){if(!Fr(t)||!Fr(e))return NaN;let n=0,i=0;return t[2]e[2]&&(n=t[0]-e[2]),t[1]>e[3]&&(i=t[1]-e[3]),t[3]=n)return n;if(ir(i,a)){if(Gr(t,e))return 0}else if(Gr(e,t))return 0;let o=1/0;for(let n of t)for(let t=0,i=n.length,a=i-1;t0;){let i=o.pop();if(i[0]>=a)continue;let l=i[1],u=e?50:100;if(Pr(l)<=u){if(!zr(l,t.length))return NaN;if(e){let e=Hr(t,l,r,n);if(isNaN(e)||0===e)return e;a=Math.min(a,e)}else for(let e=l[0];e<=l[1];++e){let i=qr(t[e],r,n);if(a=Math.min(a,i),0===a)return 0}}else{let r=Or(l,e);Wr(o,a,n,t,s,r[0]),Wr(o,a,n,t,s,r[1])}}return a}function $r(t,e,r,n,i,a=1/0){let o=Math.min(a,i.distance(t[0],r[0]));if(0===o)return o;let s=new xr([[0,[0,t.length-1],[0,r.length-1]]],Lr);for(;s.length>0;){let a=s.pop();if(a[0]>=o)continue;let l=a[1],u=a[2],c=e?50:100,h=n?50:100;if(Pr(l)<=c&&Pr(u)<=h){if(!zr(l,t.length)&&zr(u,r.length))return NaN;let a;if(e&&n)a=Ur(t,l,r,u,i),o=Math.min(o,a);else if(e&&!n){let e=t.slice(l[0],l[1]+1);for(let t=u[0];t<=u[1];++t)if(a=Nr(r[t],e,i),o=Math.min(o,a),0===o)return o}else if(!e&&n){let e=r.slice(u[0],u[1]+1);for(let r=l[0];r<=l[1];++r)if(a=Nr(t[r],e,i),o=Math.min(o,a),0===o)return o}else a=Vr(t,l,r,u,i),o=Math.min(o,a)}else{let a=Or(l,e),c=Or(u,n);Yr(s,o,i,t,r,a[0],c[0]),Yr(s,o,i,t,r,a[0],c[1]),Yr(s,o,i,t,r,a[1],c[0]),Yr(s,o,i,t,r,a[1],c[1])}}return o}function Jr(t){return"MultiPolygon"===t.type?t.coordinates.map((t=>({type:"Polygon",coordinates:t}))):"MultiLineString"===t.type?t.coordinates.map((t=>({type:"LineString",coordinates:t}))):"MultiPoint"===t.type?t.coordinates.map((t=>({type:"Point",coordinates:t}))):[t]}class Kr{constructor(t,e){this.type=mt,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(le(t[1])){let e=t[1];if("FeatureCollection"===e.type)return new Kr(e,e.features.map((t=>Jr(t.geometry))).flat());if("Feature"===e.type)return new Kr(e,Jr(e.geometry));if("type"in e&&"coordinates"in e)return new Kr(e,Jr(e))}return e.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){let r=t.geometry(),n=r.flat().map((e=>rr([e.x,e.y],t.canonical)));if(0===r.length)return NaN;let i=new Ir(n[0][1]),a=1/0;for(let t of e){switch(t.type){case"Point":a=Math.min(a,$r(n,!1,[t.coordinates],!1,i,a));break;case"LineString":a=Math.min(a,$r(n,!1,t.coordinates,!0,i,a));break;case"Polygon":a=Math.min(a,Xr(n,!1,t.coordinates,i,a))}if(0===a)return a}return a}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){let r=t.geometry(),n=r.flat().map((e=>rr([e.x,e.y],t.canonical)));if(0===r.length)return NaN;let i=new Ir(n[0][1]),a=1/0;for(let t of e){switch(t.type){case"Point":a=Math.min(a,$r(n,!0,[t.coordinates],!1,i,a));break;case"LineString":a=Math.min(a,$r(n,!0,t.coordinates,!0,i,a));break;case"Polygon":a=Math.min(a,Xr(n,!0,t.coordinates,i,a))}if(0===a)return a}return a}(t,this.geometries);if("Polygon"===t.geometryType())return function(t,e){let r=t.geometry();if(0===r.length||0===r[0].length)return NaN;let n=kr(r,0).map((e=>e.map((e=>e.map((e=>rr([e.x,e.y],t.canonical))))))),i=new Ir(n[0][0][0][1]),a=1/0;for(let t of e)for(let e of n){switch(t.type){case"Point":a=Math.min(a,Xr([t.coordinates],!1,e,i,a));break;case"LineString":a=Math.min(a,Xr(t.coordinates,!0,e,i,a));break;case"Polygon":a=Math.min(a,Zr(e,t.coordinates,i,a))}if(0===a)return a}return a}(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Qr={"==":qe,"!=":He,">":Ze,"<":Ge,">=":Ye,"<=":We,array:de,at:we,boolean:de,case:Me,coalesce:Ne,collator:Xe,format:Je,image:Ke,in:Te,"index-of":ke,interpolate:Fe,"interpolate-hcl":Fe,"interpolate-lab":Fe,length:Qe,let:_e,literal:he,match:Ae,number:de,"number-format":$e,object:de,slice:Se,step:Ce,string:de,"to-boolean":ge,"to-color":ge,"to-number":ge,"to-string":ge,var:be,within:vr,distance:Kr};class tn{constructor(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,e){let r=t[0],n=tn.definitions[r];if(!n)return e.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);let i=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=a.filter((([e])=>!Array.isArray(e)||e.length===t.length-1)),s=null;for(let[n,a]of o){s=new xe(e.registry,on,e.path,null,e.scope);let o=[],l=!1;for(let e=1;e{return e=t,Array.isArray(e)?`(${e.map(St).join(", ")})`:`(${St(e.type)}...)`;var e})).join(" | "),n=[];for(let r=1;r{r=e?r&&on(t):r&&t instanceof he})),!!r&&sn(t)&&un(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function sn(t){if(t instanceof tn&&("get"===t.name&&1===t.args.length||"feature-state"===t.name||"has"===t.name&&1===t.args.length||"properties"===t.name||"geometry-type"===t.name||"id"===t.name||/^filter-/.test(t.name))||t instanceof vr||t instanceof Kr)return!1;let e=!0;return t.eachChild((t=>{e&&!sn(t)&&(e=!1)})),e}function ln(t){if(t instanceof tn&&"feature-state"===t.name)return!1;let e=!0;return t.eachChild((t=>{e&&!ln(t)&&(e=!1)})),e}function un(t,e){if(t instanceof tn&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild((t=>{r&&!un(t,e)&&(r=!1)})),r}function cn(t){return{result:"success",value:t}}function hn(t){return{result:"error",value:t}}function fn(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function pn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function dn(t){return!!t.expression&&t.expression.interpolated}function mn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function gn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function yn(t){return t}function vn(t,e){let r="color"===e.type,n=t.stops&&"object"==typeof t.stops[0][0],i=n||!(n||void 0!==t.property),a=t.type||(dn(e)?"exponential":"interval");if(r||"padding"===e.type){let n=r?Qt.parse:ne.parse;(t=ht({},t)).stops&&(t.stops=t.stops.map((t=>[t[0],n(t[1])]))),t.default=n(t.default?t.default:e.default)}if(t.colorSpace&&"rgb"!==(o=t.colorSpace)&&"hcl"!==o&&"lab"!==o)throw new Error(`Unknown color space: "${t.colorSpace}"`);var o;let s,l,u;if("exponential"===a)s=wn;else if("interval"===a)s=bn;else if("categorical"===a){s=_n,l=Object.create(null);for(let e of t.stops)l[e[0]]=e[1];u=typeof t.stops[0][0]}else{if("identity"!==a)throw new Error(`Unknown function type "${a}"`);s=Tn}if(n){let r={},n=[];for(let e=0;et[0])),evaluate:({zoom:r},n)=>wn({stops:i,base:t.base},e,r).evaluate(r,n)}}if(i){let r="exponential"===a?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:r,interpolationFactor:Fe.interpolationFactor.bind(void 0,r),zoomStops:t.stops.map((t=>t[0])),evaluate:({zoom:r})=>s(t,e,r,l,u)}}return{kind:"source",evaluate(r,n){let i=n&&n.properties?n.properties[t.property]:void 0;return void 0===i?xn(t.default,e.default):s(t,e,i,l,u)}}}function xn(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function _n(t,e,r,n,i){return xn(typeof r===i?n[r]:void 0,t.default,e.default)}function bn(t,e,r){if("number"!==mn(r))return xn(t.default,e.default);let n=t.stops.length;if(1===n||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let i=Ee(t.stops.map((t=>t[0])),r);return t.stops[i][1]}function wn(t,e,r){let n=void 0!==t.base?t.base:1;if("number"!==mn(r))return xn(t.default,e.default);let i=t.stops.length;if(1===i||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let a=Ee(t.stops.map((t=>t[0])),r),o=function(t,e,r,n){let i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],u=Re[e.type]||yn;return"function"==typeof s.evaluate?{evaluate(...e){let r=s.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==n)return u(r,n,o,t.colorSpace)}}:u(s,l,o,t.colorSpace)}function Tn(t,e,r){switch(e.type){case"color":r=Qt.parse(r);break;case"formatted":r=re.fromString(r.toString());break;case"resolvedImage":r=oe.fromString(r.toString());break;case"padding":r=ne.parse(r);break;default:mn(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0)}return xn(r,t.default,e.default)}tn.register(Qr,{error:[{kind:"error"},[gt],(t,[e])=>{throw new fe(e.evaluate(t))}],typeof:[gt,[_t],(t,[e])=>St(ue(e.evaluate(t)))],"to-rgba":[Mt(mt,4),[vt],(t,[e])=>{let[r,n,i,a]=e.evaluate(t).rgb;return[255*r,255*n,255*i,a]}],rgb:[vt,[mt,mt,mt],en],rgba:[vt,[mt,mt,mt,mt],en],has:{type:yt,overloads:[[[gt],(t,[e])=>rn(e.evaluate(t),t.properties())],[[gt,xt],(t,[e,r])=>rn(e.evaluate(t),r.evaluate(t))]]},get:{type:_t,overloads:[[[gt],(t,[e])=>nn(e.evaluate(t),t.properties())],[[gt,xt],(t,[e,r])=>nn(e.evaluate(t),r.evaluate(t))]]},"feature-state":[_t,[gt],(t,[e])=>nn(e.evaluate(t),t.featureState||{})],properties:[xt,[],t=>t.properties()],"geometry-type":[gt,[],t=>t.geometryType()],id:[_t,[],t=>t.id()],zoom:[mt,[],t=>t.globals.zoom],"heatmap-density":[mt,[],t=>t.globals.heatmapDensity||0],"line-progress":[mt,[],t=>t.globals.lineProgress||0],accumulated:[_t,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[mt,an(mt),(t,e)=>{let r=0;for(let n of e)r+=n.evaluate(t);return r}],"*":[mt,an(mt),(t,e)=>{let r=1;for(let n of e)r*=n.evaluate(t);return r}],"-":{type:mt,overloads:[[[mt,mt],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[mt],(t,[e])=>-e.evaluate(t)]]},"/":[mt,[mt,mt],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[mt,[mt,mt],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[mt,[],()=>Math.LN2],pi:[mt,[],()=>Math.PI],e:[mt,[],()=>Math.E],"^":[mt,[mt,mt],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[mt,[mt],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[mt,[mt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[mt,[mt],(t,[e])=>Math.log(e.evaluate(t))],log2:[mt,[mt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[mt,[mt],(t,[e])=>Math.sin(e.evaluate(t))],cos:[mt,[mt],(t,[e])=>Math.cos(e.evaluate(t))],tan:[mt,[mt],(t,[e])=>Math.tan(e.evaluate(t))],asin:[mt,[mt],(t,[e])=>Math.asin(e.evaluate(t))],acos:[mt,[mt],(t,[e])=>Math.acos(e.evaluate(t))],atan:[mt,[mt],(t,[e])=>Math.atan(e.evaluate(t))],min:[mt,an(mt),(t,e)=>Math.min(...e.map((e=>e.evaluate(t))))],max:[mt,an(mt),(t,e)=>Math.max(...e.map((e=>e.evaluate(t))))],abs:[mt,[mt],(t,[e])=>Math.abs(e.evaluate(t))],round:[mt,[mt],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[mt,[mt],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[mt,[mt],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[yt,[gt,_t],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[yt,[_t],(t,[e])=>t.id()===e.value],"filter-type-==":[yt,[gt],(t,[e])=>t.geometryType()===e.value],"filter-<":[yt,[gt,_t],(t,[e,r])=>{let n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n{let r=t.id(),n=e.value;return typeof r==typeof n&&r":[yt,[gt,_t],(t,[e,r])=>{let n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>i}],"filter-id->":[yt,[_t],(t,[e])=>{let r=t.id(),n=e.value;return typeof r==typeof n&&r>n}],"filter-<=":[yt,[gt,_t],(t,[e,r])=>{let n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[yt,[_t],(t,[e])=>{let r=t.id(),n=e.value;return typeof r==typeof n&&r<=n}],"filter->=":[yt,[gt,_t],(t,[e,r])=>{let n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[yt,[_t],(t,[e])=>{let r=t.id(),n=e.value;return typeof r==typeof n&&r>=n}],"filter-has":[yt,[_t],(t,[e])=>e.value in t.properties()],"filter-has-id":[yt,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[yt,[Mt(gt)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[yt,[Mt(_t)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[yt,[gt,Mt(_t)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[yt,[gt,Mt(_t)],(t,[e,r])=>function(t,e,r,n){for(;r<=n;){let i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[an(yt),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[an(yt),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[yt,[yt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[yt,[gt],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[gt,[gt],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[gt,[gt],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[gt,an(_t),(t,e)=>e.map((e=>ce(e.evaluate(t)))).join("")],"resolved-locale":[gt,[bt],(t,[e])=>e.evaluate(t).resolvedLocale()]});class kn{constructor(t,e){var r;this.expression=t,this._warningHistory={},this._evaluator=new ve,this._defaultValue=e?"color"===(r=e).type&&gn(r.default)?new Qt(0,0,0,0):"color"===r.type?Qt.parse(r.default)||null:"padding"===r.type?ne.parse(r.default)||null:"variableAnchorOffsetCollection"===r.type?ae.parse(r.default)||null:void 0===r.default?null:r.default:null,this._enumValues=e&&"enum"===e.type?e.values:null}evaluateWithoutErrorHandling(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{let t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new fe(`Expected value to be one of ${Object.keys(this._enumValues).map((t=>JSON.stringify(t))).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}function An(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Qr}function Mn(t,e){let r=new xe(Qr,on,[],e?function(t){let e={color:vt,string:gt,number:mt,enum:gt,boolean:yt,formatted:wt,padding:Tt,resolvedImage:kt,variableAnchorOffsetCollection:At};return"array"===t.type?Mt(e[t.value]||_t,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?cn(new kn(n,e)):hn(r.errors)}class Sn{constructor(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!ln(e.expression)}evaluateWithoutErrorHandling(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)}evaluate(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)}}class En{constructor(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!ln(e.expression),this.interpolationType=n}evaluateWithoutErrorHandling(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)}evaluate(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)}interpolationFactor(t,e,r){return this.interpolationType?Fe.interpolationFactor(this.interpolationType,t,e,r):0}}function Cn(t,e){let r=Mn(t,e);if("error"===r.result)return r;let n=r.value.expression,i=sn(n);if(!i&&!fn(e))return hn([new ft("","data expressions not supported")]);let a=un(n,["zoom"]);if(!a&&!pn(e))return hn([new ft("","zoom expressions not supported")]);let o=Ln(n);return o||a?o instanceof ft?hn([o]):o instanceof Fe&&!dn(e)?hn([new ft("",'"interpolate" expressions cannot be used with this property')]):cn(o?new En(i?"camera":"composite",r.value,o.labels,o instanceof Fe?o.interpolation:void 0):new Sn(i?"constant":"source",r.value)):hn([new ft("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class In{constructor(t,e){this._parameters=t,this._specification=e,ht(this,vn(this._parameters,this._specification))}static deserialize(t){return new In(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function Ln(t){let e=null;if(t instanceof _e)e=Ln(t.result);else if(t instanceof Ne){for(let r of t.args)if(e=Ln(r),e)break}else(t instanceof Ce||t instanceof Fe)&&t.input instanceof tn&&"zoom"===t.input.name&&(e=t);return e instanceof ft||t.eachChild((t=>{let r=Ln(t);r instanceof ft?e=r:!e&&r?e=new ft("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new ft("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function Pn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(let e of t.slice(1))if(!Pn(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}let zn={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function On(t){if(null==t)return{filter:()=>!0,needGeometry:!1};Pn(t)||(t=Fn(t));let e=Mn(t,zn);if("error"===e.result)throw new Error(e.value.map((t=>`${t.key}: ${t.message}`)).join(", "));return{filter:(t,r,n)=>e.value.evaluate(t,r,{},n),needGeometry:Rn(t)}}function Dn(t,e){return te?1:0}function Rn(t){if(!Array.isArray(t))return!1;if("within"===t[0]||"distance"===t[0])return!0;for(let e=1;e"===e||"<="===e||">="===e?Bn(t[1],t[2],e):"any"===e?(r=t.slice(1),["any"].concat(r.map(Fn))):"all"===e?["all"].concat(t.slice(1).map(Fn)):"none"===e?["all"].concat(t.slice(1).map(Fn).map(Un)):"in"===e?Nn(t[1],t.slice(2)):"!in"===e?Un(Nn(t[1],t.slice(2))):"has"===e?jn(t[1]):"!has"!==e||Un(jn(t[1]));var r}function Bn(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Nn(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((t=>typeof t!=typeof e[0]))?["filter-in-large",t,["literal",e.sort(Dn)]]:["filter-in-small",t,["literal",e]]}}function jn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Un(t){return["!",t]}function Vn(t){let e=typeof t;if("number"===e||"boolean"===e||"string"===e||null==t)return JSON.stringify(t);if(Array.isArray(t)){let e="[";for(let r of t)e+=`${Vn(r)},`;return`${e}]`}let r=Object.keys(t).sort(),n="{";for(let e=0;en.maximum?[new ct(e,r,`${r} is greater than the maximum value ${n.maximum}`)]:[]}function $n(t){let e,r,n,i=t.valueSpec,a=Gn(t.value.type),o={},s="categorical"!==a&&void 0===t.value.property,l=!s,u="array"===mn(t.value.stops)&&"array"===mn(t.value.stops[0])&&"object"===mn(t.value.stops[0][0]),c=Wn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===a)return[new ct(t.key,t.value,'identity function may not have a "stops" property')];let e=[],r=t.value;return e=e.concat(Yn({key:t.key,value:r,valueSpec:t.valueSpec,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===mn(r)&&0===r.length&&e.push(new ct(t.key,r,"array must have at least one stop")),e},default:function(t){return t.validateSpec({key:t.key,value:t.value,valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===a&&s&&c.push(new ct(t.key,t.value,'missing required property "property"')),"identity"===a||t.value.stops||c.push(new ct(t.key,t.value,'missing required property "stops"')),"exponential"===a&&t.valueSpec.expression&&!dn(t.valueSpec)&&c.push(new ct(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!fn(t.valueSpec)?c.push(new ct(t.key,t.value,"property functions not supported")):s&&!pn(t.valueSpec)&&c.push(new ct(t.key,t.value,"zoom functions not supported"))),"categorical"!==a&&!u||void 0!==t.value.property||c.push(new ct(t.key,t.value,'"property" property is required')),c;function h(t){let e=[],a=t.value,s=t.key;if("array"!==mn(a))return[new ct(s,a,`array expected, ${mn(a)} found`)];if(2!==a.length)return[new ct(s,a,`array length 2 expected, length ${a.length} found`)];if(u){if("object"!==mn(a[0]))return[new ct(s,a,`object expected, ${mn(a[0])} found`)];if(void 0===a[0].zoom)return[new ct(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new ct(s,a,"object stop key must have value")];if(n&&n>Gn(a[0].zoom))return[new ct(s,a[0].zoom,"stop zoom values must appear in ascending order")];Gn(a[0].zoom)!==n&&(n=Gn(a[0].zoom),r=void 0,o={}),e=e.concat(Wn({key:`${s}[0]`,value:a[0],valueSpec:{zoom:{}},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Xn,value:f}}))}else e=e.concat(f({key:`${s}[0]`,value:a[0],valueSpec:{},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec},a));return An(Zn(a[1]))?e.concat([new ct(`${s}[1]`,a[1],"expressions are not allowed in function stops.")]):e.concat(t.validateSpec({key:`${s}[1]`,value:a[1],valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec}))}function f(t,n){let s=mn(t.value),l=Gn(t.value),u=null!==t.value?t.value:n;if(e){if(s!==e)return[new ct(t.key,u,`${s} stop domain type must match previous stop domain type ${e}`)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new ct(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==a){let e=`number expected, ${s} found`;return fn(i)&&void 0===a&&(e+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ct(t.key,u,e)]}return"categorical"!==a||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==a&&"number"===s&&void 0!==r&&lnew ct(`${t.key}${e.key}`,t.value,e.message)));let r=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new ct(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!ln(r))return[new ct(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!ln(r))return[new ct(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!un(r,["zoom","feature-state"]))return[new ct(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!sn(r))return[new ct(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Kn(t){let e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Gn(r))&&i.push(new ct(e,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(n.values).indexOf(Gn(r))&&i.push(new ct(e,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),i}function Qn(t){return Pn(Zn(t.value))?Jn(ht({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ti(t)}function ti(t){let e=t.value,r=t.key;if("array"!==mn(e))return[new ct(r,e,`array expected, ${mn(e)} found`)];let n,i=t.styleSpec,a=[];if(e.length<1)return[new ct(r,e,"filter array must have at least 1 element")];switch(a=a.concat(Kn({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),Gn(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===Gn(e[1])&&a.push(new ct(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&a.push(new ct(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=mn(e[1]),"string"!==n&&a.push(new ct(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let o=2;o{t in r&&e.push(new ct(n,r[t],`"${t}" is prohibited for ref layers`))})),i.layers.forEach((e=>{Gn(e.id)===s&&(t=e)})),t?t.ref?e.push(new ct(n,r.ref,"ref cannot reference another ref layer")):o=Gn(t.type):e.push(new ct(n,r.ref,`ref layer "${s}" not found`))}else if("background"!==o)if(r.source){let t=i.sources&&i.sources[r.source],a=t&&Gn(t.type);t?"vector"===a&&"raster"===o?e.push(new ct(n,r.source,`layer "${r.id}" requires a raster source`)):"raster-dem"!==a&&"hillshade"===o?e.push(new ct(n,r.source,`layer "${r.id}" requires a raster-dem source`)):"raster"===a&&"raster"!==o?e.push(new ct(n,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==a||r["source-layer"]?"raster-dem"===a&&"hillshade"!==o?e.push(new ct(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==o||!r.paint||!r.paint["line-gradient"]||"geojson"===a&&t.lineMetrics||e.push(new ct(n,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new ct(n,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(new ct(n,r.source,`source "${r.source}" not found`))}else e.push(new ct(n,r,'missing required property "source"'));return e=e.concat(Wn({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":()=>[],type:()=>t.validateSpec({key:`${n}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"}),filter:Qn,layout:t=>Wn({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>ni(ht({layerType:o},t))}}),paint:t=>Wn({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>ri(ht({layerType:o},t))}})}})),e}function ai(t){let e=t.value,r=t.key,n=mn(e);return"string"!==n?[new ct(r,e,`string expected, ${n} found`)]:[]}let oi={promoteId:function({key:t,value:e}){if("string"===mn(e))return ai({key:t,value:e});{let r=[];for(let n in e)r.push(...ai({key:`${t}.${n}`,value:e[n]}));return r}}};function si(t){let e=t.value,r=t.key,n=t.styleSpec,i=t.style,a=t.validateSpec;if(!e.type)return[new ct(r,e,'"type" is required')];let o,s=Gn(e.type);switch(s){case"vector":case"raster":return o=Wn({key:r,value:e,valueSpec:n[`source_${s.replace("-","_")}`],style:t.style,styleSpec:n,objectElementValidators:oi,validateSpec:a}),o;case"raster-dem":return o=function(t){var e;let r=null!==(e=t.sourceName)&&void 0!==e?e:"",n=t.value,i=t.styleSpec,a=i.source_raster_dem,o=t.style,s=[],l=mn(n);if(void 0===n)return s;if("object"!==l)return s.push(new ct("source_raster_dem",n,`object expected, ${l} found`)),s;let u="custom"===Gn(n.encoding),c=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let e in n)!u&&c.includes(e)?s.push(new ct(e,n[e],`In "${r}": "${e}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):a[e]?s=s.concat(t.validateSpec({key:e,value:n[e],valueSpec:a[e],validateSpec:t.validateSpec,style:o,styleSpec:i})):s.push(new ct(e,n[e],`unknown property "${e}"`));return s}({sourceName:r,value:e,style:t.style,styleSpec:n,validateSpec:a}),o;case"geojson":if(o=Wn({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,validateSpec:a,objectElementValidators:oi}),e.cluster)for(let t in e.clusterProperties){let[n,i]=e.clusterProperties[t],s="string"==typeof n?[n,["accumulated"],["get",t]]:n;o.push(...Jn({key:`${r}.${t}.map`,value:i,validateSpec:a,expressionContext:"cluster-map"})),o.push(...Jn({key:`${r}.${t}.reduce`,value:s,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return Wn({key:r,value:e,valueSpec:n.source_video,style:i,validateSpec:a,styleSpec:n});case"image":return Wn({key:r,value:e,valueSpec:n.source_image,style:i,validateSpec:a,styleSpec:n});case"canvas":return[new ct(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Kn({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,validateSpec:a,styleSpec:n})}}function li(t){let e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=mn(e);if(void 0===e)return a;if("object"!==o)return a=a.concat([new ct("light",e,`object expected, ${o} found`)]),a;for(let o in e){let s=o.match(/^(.*)-transition$/);a=a.concat(s&&n[s[1]]&&n[s[1]].transition?t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:i,styleSpec:r}):n[o]?t.validateSpec({key:o,value:e[o],valueSpec:n[o],validateSpec:t.validateSpec,style:i,styleSpec:r}):[new ct(o,e[o],`unknown property "${o}"`)])}return a}function ui(t){let e=t.value,r=t.styleSpec,n=r.sky,i=t.style,a=mn(e);if(void 0===e)return[];if("object"!==a)return[new ct("sky",e,`object expected, ${a} found`)];let o=[];for(let a in e)o=o.concat(n[a]?t.validateSpec({key:a,value:e[a],valueSpec:n[a],style:i,styleSpec:r}):[new ct(a,e[a],`unknown property "${a}"`)]);return o}function ci(t){let e=t.value,r=t.styleSpec,n=r.terrain,i=t.style,a=[],o=mn(e);if(void 0===e)return a;if("object"!==o)return a=a.concat([new ct("terrain",e,`object expected, ${o} found`)]),a;for(let o in e)a=a.concat(n[o]?t.validateSpec({key:o,value:e[o],valueSpec:n[o],validateSpec:t.validateSpec,style:i,styleSpec:r}):[new ct(o,e[o],`unknown property "${o}"`)]);return a}function hi(t){let e=[],r=t.value,n=t.key;if(Array.isArray(r)){let i=[],a=[];for(let o in r)r[o].id&&i.includes(r[o].id)&&e.push(new ct(n,r,`all the sprites' ids must be unique, but ${r[o].id} is duplicated`)),i.push(r[o].id),r[o].url&&a.includes(r[o].url)&&e.push(new ct(n,r,`all the sprites' URLs must be unique, but ${r[o].url} is duplicated`)),a.push(r[o].url),e=e.concat(Wn({key:`${n}[${o}]`,value:r[o],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:t.validateSpec}));return e}return ai({key:n,value:r})}let fi={"*":()=>[],array:Yn,boolean:function(t){let e=t.value,r=t.key,n=mn(e);return"boolean"!==n?[new ct(r,e,`boolean expected, ${n} found`)]:[]},number:Xn,color:function(t){let e=t.key,r=t.value,n=mn(r);return"string"!==n?[new ct(e,r,`color expected, ${n} found`)]:Qt.parse(String(r))?[]:[new ct(e,r,`color expected, "${r}" found`)]},constants:Hn,enum:Kn,filter:Qn,function:$n,layer:ii,object:Wn,source:si,light:li,sky:ui,terrain:ci,projection:function(t){let e=t.value,r=t.styleSpec,n=r.projection,i=t.style,a=mn(e);if(void 0===e)return[];if("object"!==a)return[new ct("projection",e,`object expected, ${a} found`)];let o=[];for(let a in e)o=o.concat(n[a]?t.validateSpec({key:a,value:e[a],valueSpec:n[a],style:i,styleSpec:r}):[new ct(a,e[a],`unknown property "${a}"`)]);return o},string:ai,formatted:function(t){return 0===ai(t).length?[]:Jn(t)},resolvedImage:function(t){return 0===ai(t).length?[]:Jn(t)},padding:function(t){let e=t.key,r=t.value;if("array"===mn(r)){if(r.length<1||r.length>4)return[new ct(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let n={type:"number"},i=[];for(let a=0;a[]}})),t.constants&&(r=r.concat(Hn({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:pi}))),yi(r)}function gi(t){return function(e){return t(((t,e)=>r(t,i(e)))(((t,e)=>{for(var r in e||(e={}))l.call(e,r)&&c(t,r,e[r]);if(o)for(var r of o(e))u.call(e,r)&&c(t,r,e[r]);return t})({},e),{validateSpec:pi}))}}function yi(t){return[].concat(t).sort(((t,e)=>t.line-e.line))}function vi(t){return function(...e){return yi(t.apply(this,e))}}mi.source=vi(gi(si)),mi.sprite=vi(gi(hi)),mi.glyphs=vi(gi(di)),mi.light=vi(gi(li)),mi.sky=vi(gi(ui)),mi.terrain=vi(gi(ci)),mi.layer=vi(gi(ii)),mi.filter=vi(gi(Qn)),mi.paintProperty=vi(gi(ri)),mi.layoutProperty=vi(gi(ni));let xi=mi,_i=xi.light,bi=xi.sky,wi=xi.paintProperty,Ti=xi.layoutProperty;function ki(t,e){let r=!1;if(e&&e.length)for(let n of e)t.fire(new $(new Error(n.message))),r=!0;return r}class Ai{constructor(t,e,r){let n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(let t=0;t=u[l+0]&&n>=u[l+1])?(o[h]=!0,a.push(i[h])):o[h]=!1}}}}_forEachCell(t,e,r,n,i,a,o,s){let l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(r),h=this._convertToCellCoord(n);for(let f=l;f<=c;f++)for(let l=u;l<=h;l++){let u=this.d*l+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(l),this._convertFromCellCoord(f+1),this._convertFromCellCoord(l+1)))&&i.call(this,t,e,r,n,u,a,o,s))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,e=3+this.cells.length+1+1,r=0;for(let t=0;t=0)continue;let a=t[n];i[n]=Mi[r].shallow.indexOf(n)>=0?a:Li(a,e)}t instanceof Error&&(i.message=t.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(i.$name=r),i}function Pi(t){if(Ii(t))return t;if(Array.isArray(t))return t.map(Pi);if("object"!=typeof t)throw new Error("can't deserialize object of type "+typeof t);let e=Ci(t)||"Object";if(!Mi[e])throw new Error(`can't deserialize unregistered class ${e}`);let{klass:r}=Mi[e];if(!r)throw new Error(`can't deserialize unregistered class ${e}`);if(r.deserialize)return r.deserialize(t);let n=Object.create(r.prototype);for(let r of Object.keys(t)){if("$name"===r)continue;let i=t[r];n[r]=Mi[e].shallow.indexOf(r)>=0?i:Pi(i)}return n}class zi{constructor(){this.first=!0}update(t,e){let r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomt>=12272&&t<=12287,Di=t=>t>=12288&&t<=12351,Ri=t=>t>=12448&&t<=12543,Fi=t=>t>=12736&&t<=12783,Bi=t=>t>=12800&&t<=13055,Ni=t=>t>=13056&&t<=13311,ji=t=>t>=65040&&t<=65055,Ui=t=>t>=65072&&t<=65103,Vi=t=>t>=65104&&t<=65135,qi=t=>t>=65280&&t<=65519;function Hi(t){for(let e of t)if($i(e.charCodeAt(0)))return!0;return!1}function Gi(t){for(let e of t)if(!Yi(e.charCodeAt(0)))return!1;return!0}function Zi(t){let e=t.map((t=>{try{return new RegExp(`\\p{sc=${t}}`,"u").source}catch(t){return null}})).filter((t=>t));return new RegExp(e.join("|"),"u")}let Wi=Zi(["Arab","Dupl","Mong","Ougr","Syrc"]);function Yi(t){return!Wi.test(String.fromCodePoint(t))}let Xi=Zi(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function $i(t){return!(746!==t&&747!==t&&(t<4352||!(Ui(t)&&!(t>=65097&&t<=65103)||Ni(t)||Fi(t)||!(!Di(t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Bi(t)||Oi(t)||(t=>t>=12688&&t<=12703)(t)||Ri(t)&&12540!==t||!(!qi(t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Vi(t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||ji(t)||(t=>t>=19904&&t<=19967)(t)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(t))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(t))||Xi.test(String.fromCodePoint(t)))))}function Ji(t){return!($i(t)||(e=t,(t=>t>=128&&t<=255)(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||(t=>t>=8192&&t<=8303)(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||(t=>t>=8448&&t<=8527)(e)||(t=>t>=8528&&t<=8591)(e)||(t=>t>=8960&&t<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||(t=>t>=9216&&t<=9279)(e)&&9251!==e||(t=>t>=9280&&t<=9311)(e)||(t=>t>=9312&&t<=9471)(e)||(t=>t>=9632&&t<=9727)(e)||(t=>t>=9728&&t<=9983)(e)&&!(e>=9754&&e<=9759)||(t=>t>=11008&&t<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Di(e)||Ri(e)||(t=>t>=57344&&t<=63743)(e)||Ui(e)||Vi(e)||qi(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e));var e}let Ki=Zi(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Qi(t){return Ki.test(String.fromCodePoint(t))}function ta(t,e){return!(!e&&Qi(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||(t=>t>=6016&&t<=6143)(t))}function ea(t){for(let e of t)if(Qi(e.charCodeAt(0)))return!0;return!1}let ra=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText}isParsed(){return null!=this.applyArabicShaping&&null!=this.processBidirectionalText&&null!=this.processStyledBidirectionalText}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class na{constructor(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new zi,this.transition={})}isSupportedScript(t){return function(t,e){for(let r of t)if(!ta(r.charCodeAt(0),e))return!1;return!0}(t,"loaded"===ra.getRTLTextPluginStatus())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}}class ia{constructor(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(gn(t))return new In(t,e);if(An(t)){let r=Cn(t,e);if("error"===r.result)throw new Error(r.value.map((t=>`${t.key}: ${t.message}`)).join(", "));return r.value}{let r=t;return"color"===e.type&&"string"==typeof t?r=Qt.parse(t):"padding"!==e.type||"number"!=typeof t&&!Array.isArray(t)?"variableAnchorOffsetCollection"===e.type&&Array.isArray(t)&&(r=ae.parse(t)):r=ne.parse(t),{kind:"constant",evaluate:()=>r}}}(void 0===e?t.specification.default:e,t.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}}class aa{constructor(t){this.property=t,this.value=new ia(t,void 0)}transitioned(t,e){return new sa(this.property,this.value,e,T({},t.transition,this.transition),t.now)}untransitioned(){return new sa(this.property,this.value,null,{},0)}}class oa{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)}getValue(t){return S(this._values[t].value.value)}setValue(t,e){Object.prototype.hasOwnProperty.call(this._values,t)||(this._values[t]=new aa(this._values[t].property)),this._values[t].value=new ia(this._values[t].property,null===e?void 0:S(e))}getTransition(t){return S(this._values[t].transition)}setTransition(t,e){Object.prototype.hasOwnProperty.call(this._values,t)||(this._values[t]=new aa(this._values[t].property)),this._values[t].transition=S(e)||void 0}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);void 0!==r&&(t[e]=r);let n=this.getTransition(e);void 0!==n&&(t[`${e}-transition`]=n)}return t}transitioned(t,e){let r=new la(this._properties);for(let n of Object.keys(this._values))r._values[n]=this._values[n].transitioned(t,e._values[n]);return r}untransitioned(){let t=new la(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}}class sa{constructor(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}(o))}}return i}}class la{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,e,r){let n=new ha(this._properties);for(let i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(t,e,r);return n}hasTransition(){for(let t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class ua{constructor(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)}hasValue(t){return void 0!==this._values[t].value}getValue(t){return S(this._values[t].value)}setValue(t,e){this._values[t]=new ia(this._values[t].property,null===e?void 0:S(e))}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);void 0!==r&&(t[e]=r)}return t}possiblyEvaluate(t,e,r){let n=new ha(this._properties);for(let i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(t,e,r);return n}}class ca{constructor(t,e,r){this.property=t,this.value=e,this.parameters=r}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)}}class ha{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class fa{constructor(t){this.specification=t}possiblyEvaluate(t,e){if(t.isDataDriven())throw new Error("Value should not be data driven");return t.expression.evaluate(e)}interpolate(t,e,r){let n=Re[this.specification.type];return n?n(t,e,r):t}}class pa{constructor(t,e){this.specification=t,this.overrides=e}possiblyEvaluate(t,e,r,n){return new ca(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)}interpolate(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new ca(this,{kind:"constant",value:void 0},t.parameters);let n=Re[this.specification.type];if(n){let i=n(t.value.value,e.value.value,r);return new ca(this,{kind:"constant",value:i},t.parameters)}return t}evaluate(t,e,r,n,i,a){return"constant"===t.kind?t.value:t.evaluate(e,r,n,i,a)}}class da extends pa{possiblyEvaluate(t,e,r,n){if(void 0===t.value)return new ca(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){let i=t.expression.evaluate(e,null,{},r,n),a="resolvedImage"===t.property.specification.type&&"string"!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new ca(this,{kind:"constant",value:o},e)}if("camera"===t.expression.kind){let r=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new ca(this,{kind:"constant",value:r},e)}return new ca(this,t.expression,e)}evaluate(t,e,r,n,i,a){if("source"===t.kind){let o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value}_calculate(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}}class ma{constructor(t){this.specification=t}possiblyEvaluate(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){let i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new na(Math.floor(e.zoom-1),e)),t.expression.evaluate(new na(Math.floor(e.zoom),e)),t.expression.evaluate(new na(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}}class ga{constructor(t){this.specification=t}possiblyEvaluate(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)}interpolate(){return!1}}class ya{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let n=this.defaultPropertyValues[e]=new ia(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new aa(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}}}Si("DataDrivenProperty",pa),Si("DataConstantProperty",fa),Si("CrossFadedDataDrivenProperty",da),Si("CrossFadedProperty",ma),Si("ColorRampProperty",ga);let va="-transition";class xa extends J{constructor(t,e){if(super(),this.id=t.id,this.type=t.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new ua(e.layout)),e.paint)){this._transitionablePaint=new oa(e.paint);for(let e in t.paint)this.setPaintProperty(e,t.paint[e],{validate:!1});for(let e in t.layout)this.setLayoutProperty(e,t.layout[e],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ha(e.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}setLayoutProperty(t,e,r={}){null!=e&&this._validate(Ti,`layers.${this.id}.layout.${t}`,t,e,r)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)}getPaintProperty(t){return t.endsWith(va)?this._transitionablePaint.getTransition(t.slice(0,-11)):this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){if(null!=e&&this._validate(wi,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith(va))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let r=this._transitionablePaint._values[t],n="cross-faded-data-driven"===r.property.specification["property-type"],i=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let o=this._transitionablePaint._values[t].value;return o.isDataDriven()||i||n||this._handleOverridablePaintPropertyUpdate(t,a,o)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){let t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),M(t,((t,e)=>!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)))}_validate(t,e,r,n,i={}){return(!i||!1!==i.validate)&&ki(this,t.call(xi,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:K,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof ca&&fn(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1}}let _a={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ba{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class wa{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ta(t,e=1){let r=0,n=0;return{members:t.map((t=>{let i=_a[t.type].BYTES_PER_ELEMENT,a=r=ka(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ka(r,Math.max(n,e)),alignment:e}}function ka(t,e){return Math.ceil(t/e)*e}class Aa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t}}Aa.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",Aa);class Ma extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){let i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t}}Ma.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Ma);class Sa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)}emplace(t,e,r,n,i){let a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t}}Sa.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",Sa);class Ea extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)}emplace(t,e,r,n,i,a,o){let s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t}}Ea.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",Ea);class Ca extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)}emplace(t,e,r,n,i,a,o){let s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t}}Ca.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",Ca);class Ia extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t}}Ia.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Ia);class La extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l,u)}emplace(t,e,r,n,i,a,o,s,l,u,c){let h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=r,this.uint16[h+2]=n,this.uint16[h+3]=i,this.uint16[h+4]=a,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,t}}La.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",La);class Pa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a,o,s,l,u,c,h){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,n,i,a,o,s,l,u,c,h)}emplace(t,e,r,n,i,a,o,s,l,u,c,h,f){let p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=c,this.int16[p+10]=h,this.int16[p+11]=f,t}}Pa.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Pa);class za extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){let i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t}}za.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",za);class Oa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint32[1*t+0]=e,t}}Oa.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",Oa);class Da extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l)}emplace(t,e,r,n,i,a,o,s,l,u){let c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=r,this.int16[c+2]=n,this.int16[c+3]=i,this.int16[c+4]=a,this.int16[c+5]=o,this.uint32[h+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,t}}Da.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",Da);class Ra extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)}emplace(t,e,r,n,i,a,o){let s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t}}Ra.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",Ra);class Fa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)}emplace(t,e,r,n,i,a){let o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t}}Fa.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",Fa);class Ba extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)}emplace(t,e,r,n,i,a,o){let s=16*t,l=4*t,u=8*t;return this.uint8[s+0]=e,this.uint8[s+1]=r,this.float32[l+1]=n,this.float32[l+2]=i,this.int16[u+6]=a,this.int16[u+7]=o,t}}Ba.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Ba);class Na extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){let i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t}}Na.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",Na);class ja extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g){let y=this.length;return this.resize(y+1),this.emplace(y,t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g)}emplace(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y){let v=24*t,x=12*t,_=48*t;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=n,this.uint16[v+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=c,this.float32[x+7]=h,this.float32[x+8]=f,this.uint8[_+36]=p,this.uint8[_+37]=d,this.uint8[_+38]=m,this.uint32[x+10]=g,this.int16[v+22]=y,t}}ja.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ja);class Ua extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S){let E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S)}emplace(t,e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A,M,S,E){let C=32*t,I=16*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=u,this.uint16[C+9]=c,this.uint16[C+10]=h,this.uint16[C+11]=f,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=m,this.uint16[C+15]=g,this.uint16[C+16]=y,this.uint16[C+17]=v,this.uint16[C+18]=x,this.uint16[C+19]=_,this.uint16[C+20]=b,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[I+12]=k,this.float32[I+13]=A,this.float32[I+14]=M,this.uint16[C+30]=S,this.uint16[C+31]=E,t}}Ua.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",Ua);class Va extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.float32[1*t+0]=e,t}}Va.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Va);class qa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){let i=3*t;return this.uint16[6*t+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t}}qa.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",qa);class Ha extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){let i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t}}Ha.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",Ha);class Ga extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t}}Ga.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Ga);class Za extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint16[1*t+0]=e,t}}Za.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",Za);class Wa extends wa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,n){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)}emplace(t,e,r,n,i){let a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t}}Wa.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Wa);class Ya extends ba{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new h(this.anchorPointX,this.anchorPointY)}}Ya.prototype.size=20;class Xa extends Da{get(t){return new Ya(this,t)}}Si("CollisionBoxArray",Xa);class $a extends ba{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}$a.prototype.size=48;class Ja extends ja{get(t){return new $a(this,t)}}Si("PlacedSymbolArray",Ja);class Ka extends ba{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Ka.prototype.size=64;class Qa extends Ua{get(t){return new Ka(this,t)}}Si("SymbolInstanceArray",Qa);class to extends Va{getoffsetX(t){return this.float32[1*t+0]}}Si("GlyphOffsetArray",to);class eo extends Ma{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}}Si("SymbolLineVertexArray",eo);class ro extends ba{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}ro.prototype.size=12;class no extends qa{get(t){return new ro(this,t)}}Si("TextAnchorOffsetArray",no);class io extends ba{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}io.prototype.size=8;class ao extends Ha{get(t){return new io(this,t)}}Si("FeatureIndexArray",ao);class oo extends Aa{}class so extends Aa{}class lo extends Aa{}class uo extends Ea{}class co extends Ca{}class ho extends Ia{}class fo extends La{}class po extends Pa{}class mo extends za{}class go extends Oa{}class yo extends Ra{}class vo extends Ba{}class xo extends Na{}class _o extends Ga{}let bo=Ta([{name:"a_pos",components:2,type:"Int16"}],4),{members:wo}=bo;class To{constructor(t=[]){this.segments=t}prepareSegment(t,e,r,n){let i=this.segments[this.segments.length-1];return t>To.MAX_VERTEX_ARRAY_LENGTH&&C(`Max vertices per segment is ${To.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`),(!i||i.vertexLength+t>To.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i}get(){return this.segments}destroy(){for(let t of this.segments)for(let e in t.vaos)t.vaos[e].destroy()}static simpleSegment(t,e,r,n){return new To([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])}}function ko(t,e){return 256*(t=b(Math.floor(t),0,255))+b(Math.floor(e),0,255)}To.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",To);let Ao=Ta([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Mo={exports:{}},So=function(t,e){var r,n,i,a,o,s,l,u;for(n=t.length-(r=3&t.length),i=e,o=3432918353,s=461845907,u=0;u>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0},Eo=function(t,e){for(var r,n=t.length,i=e^n,a=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0};Mo.exports=So,Mo.exports.murmur3=So,Mo.exports.murmur2=Eo;var Co=n(Mo.exports);class Io{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,e,r,n){this.ids.push(Lo(t)),this.positions.push(e,r,n)}getPositions(t){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let e=Lo(t),r=0,n=this.ids.length-1;for(;r>1;this.ids[t]>=e?n=t:r=t+1}let i=[];for(;this.ids[r]===e;)i.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return i}static serialize(t,e){let r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Po(r,n,0,r.length-1),e&&e.push(r.buffer,n.buffer),{ids:r,positions:n}}static deserialize(t){let e=new Io;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e}}function Lo(t){let e=+t;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:Co(String(t))}function Po(t,e,r,n){for(;r>1],a=r-1,o=n+1;for(;;){do{a++}while(t[a]i);if(a>=o)break;zo(t,a,o),zo(e,3*a,3*o),zo(e,3*a+1,3*o+1),zo(e,3*a+2,3*o+2)}o-r`u_${t}`)),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return"color"===this.type?new Fo(t,e):new Do(t,e)}}class Uo{constructor(t,e){this.uniformNames=e.map((t=>`u_${t}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setUniform(t,e,r,n){let i="u_pattern_to"===n?this.patternTo:"u_pattern_from"===n?this.patternFrom:"u_pixel_ratio_to"===n?this.pixelRatioTo:"u_pixel_ratio_from"===n?this.pixelRatioFrom:null;i&&t.set(i)}getBinding(t,e,r){return"u_pattern"===r.substr(0,9)?new Ro(t,e):new Do(t,e)}}class Vo{constructor(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((t=>({name:`a_${t}`,type:"Float32",components:"color"===r?2:1,offset:0}))),this.paintVertexArray=new n}populatePaintArray(t,e,r,n,i){let a=this.paintVertexArray.length,o=this.expression.evaluate(new na(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)}updatePaintArray(t,e,r,n){let i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)}_setPaintValue(t,e,r){if("color"===this.type){let n=No(r);for(let r=t;r`u_${t}_t`)),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((t=>({name:`a_${t}`,type:"Float32",components:"color"===r?4:2,offset:0}))),this.paintVertexArray=new a}populatePaintArray(t,e,r,n,i){let a=this.expression.evaluate(new na(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new na(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)}updatePaintArray(t,e,r,n){let i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)}_setPaintValue(t,e,r,n){if("color"===this.type){let i=No(r),a=No(n);for(let r=t;r`#define HAS_UNIFORM_${t}`)))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Vo||r instanceof qo)for(let e=0;e!0){this.programConfigurations={};for(let n of t)this.programConfigurations[n.id]=new Go(n,e,r);this.needsUpload=!1,this._featureMap=new Io,this._bufferOffset=0}populatePaintArrays(t,e,r,n,i,a){for(let r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,e,n,i,a);void 0!==e.id&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,n){for(let i of r)this.needsUpload=this.programConfigurations[i.id].updatePaintArrays(t,this._featureMap,e,i,n)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}}function Wo(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Yo(t,e,r){let n={color:{source:Ia,composite:Wa},number:{source:Va,composite:Ia}},i={"line-pattern":{source:fo,composite:fo},"fill-pattern":{source:fo,composite:fo},"fill-extrusion-pattern":{source:fo,composite:fo}}[t];return i&&i[r]||n[e][r]}Si("ConstantBinder",jo),Si("CrossFadedConstantBinder",Uo),Si("SourceExpressionBinder",Vo),Si("CrossFadedCompositeBinder",Ho),Si("CompositeExpressionBinder",qo),Si("ProgramConfiguration",Go,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Zo);let Xo,$o,Jo=8192,Ko=Math.pow(2,14)-1,Qo=-Ko-1;function ts(t){let e=Jo/t.extent,r=t.loadGeometry();for(let t=0;tr.x+1||ar.y+1)&&C("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return r}function es(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?ts(t):[]}}function rs(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}class ns{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new so,this.indexArray=new xo,this.segments=new To,this.programConfigurations=new Zo(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id))}populate(t,e,r){let n=this.layers[0],i=[],a=null,o=!1;"circle"===n.type&&(a=n.layout.get("circle-sort-key"),o=!a.isConstant());for(let{feature:e,id:n,index:s,sourceLayerIndex:l}of t){let t=this.layers[0]._featureFilter.needGeometry,u=es(e,t);if(!this.layers[0]._featureFilter.filter(new na(this.zoom),u,r))continue;let c=o?a.evaluate(u,{},r):void 0,h={id:n,properties:e.properties,type:e.type,sourceLayerIndex:l,index:s,geometry:t?u.geometry:ts(e),patterns:{},sortKey:c};i.push(h)}o&&i.sort(((t,e)=>t.sortKey-e.sortKey));for(let n of i){let{geometry:i,index:a,sourceLayerIndex:o}=n,s=t[a].feature;this.addFeature(n,i,a,r),e.featureIndex.insert(s,i,a,o,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,wo),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,n){for(let r of e)for(let e of r){let r=e.x,n=e.y;if(r<0||r>=Jo||n<0||n>=Jo)continue;let i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),a=i.vertexLength;rs(this.layoutVertexArray,r,n,-1,-1),rs(this.layoutVertexArray,r,n,1,-1),rs(this.layoutVertexArray,r,n,1,1),rs(this.layoutVertexArray,r,n,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+3,a+2),i.vertexLength+=4,i.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)}}function is(t,e){for(let r=0;r1){if(ls(t,e))return!0;for(let n=0;n1?r:r.sub(e)._mult(i)._add(e))}function fs(t,e){let r,n,i,a=!1;for(let o=0;oe.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a)}return a}function ps(t,e){let r=!1;for(let n=0,i=t.length-1;ne.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function ds(t,e,r){let n=r[0],i=r[2];if(t.xi.x&&e.x>i.x||t.yi.y&&e.y>i.y)return!1;let a=I(t,e,r[0]);return a!==I(t,e,r[1])||a!==I(t,e,r[2])||a!==I(t,e,r[3])}function ms(t,e,r){let n=e.paint.get(t).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function gs(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ys(t,e,r,n,i){if(!e[0]&&!e[1])return t;let a=h.convert(e)._mult(i);"viewport"===r&&a._rotate(-n);let o=[];for(let e=0;eSs(t,p)))),f=c?u*o:u;var p;for(let t of n)for(let e of t){let t=c?e:Ss(e,s),r=f,n=As([],[e.x,e.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?r*=n[3]/a.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(r*=a.cameraToCenterDistance/n[3]),as(h,t,r))return!0}return!1}}function Ss(t,e){let r=As([],[t.x,t.y,0,1],e);return new h(r[0]/r[3],r[1]/r[3])}class Es extends ns{}let Cs;Si("HeatmapBucket",Es,{omit:["layers"]});var Is={get paint(){return Cs=Cs||new ya({"heatmap-radius":new pa(K.paint_heatmap["heatmap-radius"]),"heatmap-weight":new pa(K.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new fa(K.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ga(K.paint_heatmap["heatmap-color"]),"heatmap-opacity":new fa(K.paint_heatmap["heatmap-opacity"])})}};function Ls(t,{width:e,height:r},n,i){if(i){if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==e*r*n)throw new RangeError(`mismatched image size. expected: ${i.length} but got: ${e*r*n}`)}else i=new Uint8Array(e*r*n);return t.width=e,t.height=r,t.data=i,t}function Ps(t,{width:e,height:r},n){if(e===t.width&&r===t.height)return;let i=Ls({},{width:e,height:r},n);zs(t,i,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},n),t.width=e,t.height=r,t.data=i.data}function zs(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");let o=t.data,s=e.data;if(o===s)throw new Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=a;let o=t.expression.evaluate(e);i.data[r+n+0]=Math.floor(255*o.r/o.a),i.data[r+n+1]=Math.floor(255*o.g/o.a),i.data[r+n+2]=Math.floor(255*o.b/o.a),i.data[r+n+3]=Math.floor(255*o.a)};if(t.clips)for(let e=0,i=0;e80*r){n=1/0,i=1/0;let e=-1/0,o=-1/0;for(let a=r;ae&&(e=r),s>o&&(o=s)}a=Math.max(e-n,o-i),a=0!==a?32767/a:0}return Xs(l,u,r,n,i,a,0),u}function Ws(t,e,r,n,i){let a;if(i===function(t,e,r,n){let i=0;for(let a=e,o=r-n;a0)for(let i=e;i=e;i-=n)a=dl(i/n|0,t[i],t[i+1],a);return a&&ll(a,a.next)&&(ml(a),a=a.next),a}function Ys(t,e){if(!t)return t;e||(e=t);let r,n=t;do{if(r=!1,n.steiner||!ll(n,n.next)&&0!==sl(n.prev,n,n.next))n=n.next;else{if(ml(n),n=e=n.prev,n===n.next)break;r=!0}}while(r||n!==e);return e}function Xs(t,e,r,n,i,a,o){if(!t)return;!o&&a&&function(t,e,r,n){let i=t;do{0===i.z&&(i.z=nl(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,r=1;do{let n,i=t;t=null;let a=null;for(e=0;i;){e++;let o=i,s=0;for(let t=0;t0||l>0&&o;)0!==s&&(0===l||!o||i.z<=o.z)?(n=i,i=i.nextZ,s--):(n=o,o=o.nextZ,l--),a?a.nextZ=n:t=n,n.prevZ=a,a=n;i=o}a.nextZ=null,r*=2}while(e>1)}(i)}(t,n,i,a);let s=t;for(;t.prev!==t.next;){let l=t.prev,u=t.next;if(a?Js(t,n,i,a):$s(t))e.push(l.i,t.i,u.i),ml(t),t=u.next,s=u.next;else if((t=u)===s){o?1===o?Xs(t=Ks(Ys(t),e),e,r,n,i,a,2):2===o&&Qs(t,e,r,n,i,a):Xs(Ys(t),e,r,n,i,a,1);break}}}function $s(t){let e=t.prev,r=t,n=t.next;if(sl(e,r,n)>=0)return!1;let i=e.x,a=r.x,o=n.x,s=e.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,p=s>l?s>u?s:u:l>u?l:u,d=n.next;for(;d!==e;){if(d.x>=c&&d.x<=f&&d.y>=h&&d.y<=p&&al(i,s,a,l,o,u,d.x,d.y)&&sl(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function Js(t,e,r,n){let i=t.prev,a=t,o=t.next;if(sl(i,a,o)>=0)return!1;let s=i.x,l=a.x,u=o.x,c=i.y,h=a.y,f=o.y,p=sl?s>u?s:u:l>u?l:u,g=c>h?c>f?c:f:h>f?h:f,y=nl(p,d,e,r,n),v=nl(m,g,e,r,n),x=t.prevZ,_=t.nextZ;for(;x&&x.z>=y&&_&&_.z<=v;){if(x.x>=p&&x.x<=m&&x.y>=d&&x.y<=g&&x!==i&&x!==o&&al(s,c,l,h,u,f,x.x,x.y)&&sl(x.prev,x,x.next)>=0||(x=x.prevZ,_.x>=p&&_.x<=m&&_.y>=d&&_.y<=g&&_!==i&&_!==o&&al(s,c,l,h,u,f,_.x,_.y)&&sl(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;x&&x.z>=y;){if(x.x>=p&&x.x<=m&&x.y>=d&&x.y<=g&&x!==i&&x!==o&&al(s,c,l,h,u,f,x.x,x.y)&&sl(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;_&&_.z<=v;){if(_.x>=p&&_.x<=m&&_.y>=d&&_.y<=g&&_!==i&&_!==o&&al(s,c,l,h,u,f,_.x,_.y)&&sl(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function Ks(t,e){let r=t;do{let n=r.prev,i=r.next.next;!ll(n,i)&&ul(n,r,r.next,i)&&fl(n,i)&&fl(i,n)&&(e.push(n.i,r.i,i.i),ml(r),ml(r.next),r=t=i),r=r.next}while(r!==t);return Ys(r)}function Qs(t,e,r,n,i,a){let o=t;do{let t=o.next.next;for(;t!==o.prev;){if(o.i!==t.i&&ol(o,t)){let s=pl(o,t);return o=Ys(o,o.next),s=Ys(s,s.next),Xs(o,e,r,n,i,a,0),void Xs(s,e,r,n,i,a,0)}t=t.next}o=o.next}while(o!==t)}function tl(t,e){return t.x-e.x}function el(t,e){let r=function(t,e){let r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){let t=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=i&&t>o&&(o=t,r=n.x=n.x&&n.x>=l&&i!==n.x&&al(ar.x||n.x===r.x&&rl(r,n)))&&(r=n,c=e)}n=n.next}while(n!==s);return r}(t,e);if(!r)return e;let n=pl(r,t);return Ys(n,n.next),Ys(r,r.next)}function rl(t,e){return sl(t.prev,t,e.prev)<0&&sl(e.next,t,t.next)<0}function nl(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function il(t){let e=t,r=t;do{(e.x=(t-o)*(a-s)&&(t-o)*(n-s)>=(r-o)*(e-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function ol(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ul(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(fl(t,e)&&fl(e,t)&&function(t,e){let r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(sl(t.prev,t,e.prev)||sl(t,e.prev,e))||ll(t,e)&&sl(t.prev,t,t.next)>0&&sl(e.prev,e,e.next)>0)}function sl(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function ll(t,e){return t.x===e.x&&t.y===e.y}function ul(t,e,r,n){let i=hl(sl(t,e,r)),a=hl(sl(t,e,n)),o=hl(sl(r,n,t)),s=hl(sl(r,n,e));return i!==a&&o!==s||!(0!==i||!cl(t,r,e))||!(0!==a||!cl(t,n,e))||!(0!==o||!cl(r,t,n))||!(0!==s||!cl(r,e,n))}function cl(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function hl(t){return t>0?1:t<0?-1:0}function fl(t,e){return sl(t.prev,t,t.next)<0?sl(t,e,t.next)>=0&&sl(t,t.prev,e)>=0:sl(t,e,t.prev)<0||sl(t,t.next,e)<0}function pl(t,e){let r=gl(t.i,t.x,t.y),n=gl(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function dl(t,e,r,n){let i=gl(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ml(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function gl(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function yl(t,e,r){let n=r.patternDependencies,i=!1;for(let r of e){let e=r.paint.get(`${t}-pattern`);e.isConstant()||(i=!0);let a=e.constantOr(null);a&&(i=!0,n[a.to]=!0,n[a.from]=!0)}return i}function vl(t,e,r,n,i){let a=i.patternDependencies;for(let o of e){let e=o.paint.get(`${t}-pattern`).value;if("constant"!==e.kind){let t=e.evaluate({zoom:n-1},r,{},i.availableImages),s=e.evaluate({zoom:n},r,{},i.availableImages),l=e.evaluate({zoom:n+1},r,{},i.availableImages);t=t&&t.name?t.name:t,s=s&&s.name?s.name:s,l=l&&l.name?l.name:l,a[t]=!0,a[s]=!0,a[l]=!0,r.patterns[o.id]={min:t,mid:s,max:l}}}return r}class xl{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new lo,this.indexArray=new xo,this.indexArray2=new _o,this.programConfigurations=new Zo(t.layers,t.zoom),this.segments=new To,this.segments2=new To,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id))}populate(t,e,r){this.hasPattern=yl("fill",this.layers,e);let n=this.layers[0].layout.get("fill-sort-key"),i=!n.isConstant(),a=[];for(let{feature:o,id:s,index:l,sourceLayerIndex:u}of t){let t=this.layers[0]._featureFilter.needGeometry,c=es(o,t);if(!this.layers[0]._featureFilter.filter(new na(this.zoom),c,r))continue;let h=i?n.evaluate(c,{},r,e.availableImages):void 0,f={id:s,properties:o.properties,type:o.type,sourceLayerIndex:u,index:l,geometry:t?c.geometry:ts(o),patterns:{},sortKey:h};a.push(f)}i&&a.sort(((t,e)=>t.sortKey-e.sortKey));for(let n of a){let{geometry:i,index:a,sourceLayerIndex:o}=n;if(this.hasPattern){let t=vl("fill",this.layers,n,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(n,i,a,r,{});e.featureIndex.insert(t[a].feature,i,a,o,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)}addFeatures(t,e,r){for(let t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Gs),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,n,i){for(let t of kr(e,500)){let e=0;for(let r of t)e+=r.length;let r=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),n=r.vertexLength,i=[],a=[];for(let e of t){if(0===e.length)continue;e!==t[0]&&a.push(i.length/2);let r=this.segments2.prepareSegment(e.length,this.layoutVertexArray,this.indexArray2),n=r.vertexLength;this.layoutVertexArray.emplaceBack(e[0].x,e[0].y),this.indexArray2.emplaceBack(n+e.length-1,n),i.push(e[0].x),i.push(e[0].y);for(let t=1;t>3}if(i--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),1===n&&(e&&s.push(e),e=[]),e.push(new Ml(a,o));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&s.push(e),s},El.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;t.pos>3}if(n--,1===r||2===r)(i+=t.readSVarint())s&&(s=i),(a+=t.readSVarint())u&&(u=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,u]},El.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=El.types[this.type];function c(t){for(var e=0;e>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}zl.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Ll(this._pbf,e,this.extent,this._keys,this._values)};var Dl=Pl;function Rl(t,e,r){if(3===t){var n=new Dl(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}Al.VectorTile=function(t,e){this.layers=t.readFields(Rl,{},e)},Al.VectorTileFeature=Sl,Al.VectorTileLayer=Pl;let Fl,Bl=Al.VectorTileFeature.types,Nl=Math.pow(2,13);function jl(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Nl)+o,i*Nl*2,a*Nl*2,Math.round(s))}class Ul{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new uo,this.centroidVertexArray=new oo,this.indexArray=new xo,this.programConfigurations=new Zo(t.layers,t.zoom),this.segments=new To,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id))}populate(t,e,r){this.features=[],this.hasPattern=yl("fill-extrusion",this.layers,e);for(let{feature:n,id:i,index:a,sourceLayerIndex:o}of t){let t=this.layers[0]._featureFilter.needGeometry,s=es(n,t);if(!this.layers[0]._featureFilter.filter(new na(this.zoom),s,r))continue;let l={id:i,sourceLayerIndex:o,index:a,geometry:t?s.geometry:ts(n),properties:n.properties,type:n.type,patterns:{}};this.hasPattern?this.features.push(vl("fill-extrusion",this.layers,l,this.zoom,e)):this.addFeature(l,l.geometry,a,r,{}),e.featureIndex.insert(n,l.geometry,a,o,this.index,!0)}}addFeatures(t,e,r){for(let t of this.features){let{geometry:n}=t;this.addFeature(t,n,t.index,e,r)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,kl),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Tl.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,n,i){for(let r of kr(e,500)){let e={x:0,y:0,vertexCount:0},n=0;for(let t of r)n+=t.length;let i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let t of r){if(0===t.length||ql(t))continue;let r=0;for(let n=0;n=1){let o=t[n-1];if(!Vl(a,o)){i.vertexLength+4>To.MAX_VERTEX_ARRAY_LENGTH&&(i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let t=a.sub(o)._perp()._unit(),n=o.dist(a);r+n>32768&&(r=0),jl(this.layoutVertexArray,a.x,a.y,t.x,t.y,0,0,r),jl(this.layoutVertexArray,a.x,a.y,t.x,t.y,0,1,r),e.x+=2*a.x,e.y+=2*a.y,e.vertexCount+=2,r+=n,jl(this.layoutVertexArray,o.x,o.y,t.x,t.y,0,0,r),jl(this.layoutVertexArray,o.x,o.y,t.x,t.y,0,1,r),e.x+=2*o.x,e.y+=2*o.y,e.vertexCount+=2;let s=i.vertexLength;this.indexArray.emplaceBack(s,s+2,s+1),this.indexArray.emplaceBack(s+1,s+2,s+3),i.vertexLength+=4,i.primitiveLength+=2}}}}if(i.vertexLength+n>To.MAX_VERTEX_ARRAY_LENGTH&&(i=this.segments.prepareSegment(n,this.layoutVertexArray,this.indexArray)),"Polygon"!==Bl[t.type])continue;let a=[],o=[],s=i.vertexLength;for(let t of r)if(0!==t.length){t!==r[0]&&o.push(a.length/2);for(let r=0;rJo)||t.y===e.y&&(t.y<0||t.y>Jo)}function ql(t){return t.every((t=>t.x<0))||t.every((t=>t.x>Jo))||t.every((t=>t.y<0))||t.every((t=>t.y>Jo))}Si("FillExtrusionBucket",Ul,{omit:["layers","features"]});var Hl={get paint(){return Fl=Fl||new ya({"fill-extrusion-opacity":new fa(K["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new pa(K["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new fa(K["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new fa(K["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new da(K["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new pa(K["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new pa(K["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new fa(K["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Gl extends xa{constructor(t){super(t,Hl)}createBucket(t){return new Ul(t)}queryRadius(){return gs(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(t,e,r,n,i,a,o,s){let l=ys(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,o),u=this.paint.get("fill-extrusion-height").evaluate(e,r),c=this.paint.get("fill-extrusion-base").evaluate(e,r),f=function(t,e){let r=[];for(let n of t){let t=[n.x,n.y,0,1];As(t,t,e),r.push(new h(t[0]/t[3],t[1]/t[3]))}return r}(l,s),p=function(t,e,r,n){let i=[],a=[],o=n[8]*e,s=n[9]*e,l=n[10]*e,u=n[11]*e,c=n[8]*r,f=n[9]*r,p=n[10]*r,d=n[11]*r;for(let e of t){let t=[],r=[];for(let i of e){let e=i.x,a=i.y,m=n[0]*e+n[4]*a+n[12],g=n[1]*e+n[5]*a+n[13],y=n[2]*e+n[6]*a+n[14],v=n[3]*e+n[7]*a+n[15],x=y+l,_=v+u,b=m+c,w=g+f,T=y+p,k=v+d,A=new h((m+o)/_,(g+s)/_);A.z=x/_,t.push(A);let M=new h(b/k,w/k);M.z=T/k,r.push(M)}i.push(t),a.push(r)}return[i,a]}(n,c,u,s);return function(t,e,r){let n=1/0;os(r,e)&&(n=Wl(r,e[0]));for(let i=0;it.id)),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((t=>{this.gradients[t.id]={}})),this.layoutVertexArray=new co,this.layoutVertexArray2=new ho,this.indexArray=new xo,this.programConfigurations=new Zo(t.layers,t.zoom),this.segments=new To,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id))}populate(t,e,r){this.hasPattern=yl("line",this.layers,e);let n=this.layers[0].layout.get("line-sort-key"),i=!n.isConstant(),a=[];for(let{feature:e,id:o,index:s,sourceLayerIndex:l}of t){let t=this.layers[0]._featureFilter.needGeometry,u=es(e,t);if(!this.layers[0]._featureFilter.filter(new na(this.zoom),u,r))continue;let c=i?n.evaluate(u,{},r):void 0,h={id:o,properties:e.properties,type:e.type,sourceLayerIndex:l,index:s,geometry:t?u.geometry:ts(e),patterns:{},sortKey:c};a.push(h)}i&&a.sort(((t,e)=>t.sortKey-e.sortKey));for(let n of a){let{geometry:i,index:a,sourceLayerIndex:o}=n;if(this.hasPattern){let t=vl("line",this.layers,n,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(n,i,a,r,{});e.featureIndex.insert(t[a].feature,i,a,o,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)}addFeatures(t,e,r){for(let t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,Ql)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Jl),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.prototype.hasOwnProperty.call(t.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(t.properties,"mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}}addFeature(t,e,r,n,i){let a=this.layers[0].layout,o=a.get("line-join").evaluate(t,{}),s=a.get("line-cap"),l=a.get("line-miter-limit"),u=a.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(let r of e)this.addLine(r,t,o,s,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)}addLine(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let e=0;e=2&&t[s-1].equals(t[s-2]);)s--;let l=0;for(;l0;if(b&&e>l){let t=u.dist(c);if(t>2*d){let e=u.sub(u.sub(c)._mult(d/t)._round());this.updateDistance(c,e),this.addCurrentVertex(e,f,0,0,m),c=e}}let T=c&&h,k=T?r:o?"butt":n;if(T&&"round"===k&&(xi&&(k="bevel"),"bevel"===k&&(x>2&&(k="flipbevel"),x100)g=p.mult(-1);else{let t=x*f.add(p).mag()/f.sub(p).mag();g._perp()._mult(t*(w?-1:1))}this.addCurrentVertex(u,g,0,0,m),this.addCurrentVertex(u,g.mult(-1),0,0,m)}else if("bevel"===k||"fakeround"===k){let t=-Math.sqrt(x*x-1),e=w?t:0,r=w?0:t;if(c&&this.addCurrentVertex(u,f,e,r,m),"fakeround"===k){let t=Math.round(180*_/Math.PI/20);for(let e=1;e2*d){let e=u.add(h.sub(u)._mult(d/t)._round());this.updateDistance(u,e),this.addCurrentVertex(e,p,0,0,m),u=e}}}}addCurrentVertex(t,e,r,n,i,a=!1){let o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance>ru/2&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,n,i,a))}addHalfVertex({x:t,y:e},r,n,i,a,o,s){let l=.5*(this.lineClips?this.scaledDistance*(ru-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t<<1)+(i?1:0),(e<<1)+(a?1:0),Math.round(63*r)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}}Si("LineBucket",nu,{omit:["layers","patternFeatures"]});var iu={get paint(){return Xl=Xl||new ya({"line-opacity":new pa(K.paint_line["line-opacity"]),"line-color":new pa(K.paint_line["line-color"]),"line-translate":new fa(K.paint_line["line-translate"]),"line-translate-anchor":new fa(K.paint_line["line-translate-anchor"]),"line-width":new pa(K.paint_line["line-width"]),"line-gap-width":new pa(K.paint_line["line-gap-width"]),"line-offset":new pa(K.paint_line["line-offset"]),"line-blur":new pa(K.paint_line["line-blur"]),"line-dasharray":new ma(K.paint_line["line-dasharray"]),"line-pattern":new da(K.paint_line["line-pattern"]),"line-gradient":new ga(K.paint_line["line-gradient"])})},get layout(){return Yl=Yl||new ya({"line-cap":new fa(K.layout_line["line-cap"]),"line-join":new pa(K.layout_line["line-join"]),"line-miter-limit":new fa(K.layout_line["line-miter-limit"]),"line-round-limit":new fa(K.layout_line["line-round-limit"]),"line-sort-key":new pa(K.layout_line["line-sort-key"])})}};class au extends pa{possiblyEvaluate(t,e){return e=new na(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,n){return e=T({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,n)}}let ou;class su extends xa{constructor(t){super(t,iu),this.gradientVersion=0,ou||(ou=new au(iu.paint.properties["line-width"].specification),ou.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){let t=this.gradientExpression();this.stepInterpolant=!(void 0===t._styleExpression)&&t._styleExpression.expression instanceof Ce,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ou.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new nu(t)}queryRadius(t){let e=t,r=lu(ms("line-width",this,e),ms("line-gap-width",this,e)),n=ms("line-offset",this,e);return r/2+Math.abs(n)+gs(this.paint.get("line-translate"))}queryIntersectsFeature(t,e,r,n,i,a,o){let s=ys(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,o),l=o/2*lu(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),u=this.paint.get("line-offset").evaluate(e,r);return u&&(n=function(t,e){let r=[];for(let n=0;n=3)for(let e=0;e0?e+2*t:t}let uu=Ta([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),cu=Ta([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ta([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let hu=Ta([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ta([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let fu=Ta([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),pu=Ta([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function du(t,e,r){return t.sections.forEach((t=>{t.text=function(t,e,r){let n=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),ra.applyArabicShaping&&(t=ra.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ta([{name:"triangle",components:3,type:"Uint16"}]),Ta([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ta([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ta([{type:"Float32",name:"offsetX"}]),Ta([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ta([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let mu={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var gu=24,yu=_u,vu=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)},xu=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*m};function _u(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}_u.Varint=0,_u.Fixed64=1,_u.Bytes=2,_u.Fixed32=5;var bu=4294967296,wu=1/bu,Tu="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");function ku(t){return t.type===_u.Bytes?t.readVarint()+t.pos:t.pos+1}function Au(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function Mu(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Fu(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}_u.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Du(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Fu(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Du(this.buf,this.pos)+Du(this.buf,this.pos+4)*bu;return this.pos+=8,t},readSFixed64:function(){var t=Du(this.buf,this.pos)+Fu(this.buf,this.pos+4)*bu;return this.pos+=8,t},readFloat:function(){var t=vu(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=vu(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128||(n|=(127&(i=a[r.pos++]))<<3,i<128)||(n|=(127&(i=a[r.pos++]))<<10,i<128)||(n|=(127&(i=a[r.pos++]))<<17,i<128)||(n|=(127&(i=a[r.pos++]))<<24,i<128)||(n|=(1&(i=a[r.pos++]))<<31,i<128))return function(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t,e,r,n=this.readVarint()+this.pos,i=this.pos;return this.pos=n,n-i>=12&&Tu?(t=this.buf,e=i,r=n,Tu.decode(t.subarray(e,r))):function(t,e,r){for(var n="",i=e;i239?4:l>223?3:l>191?2:1;if(i+c>r)break;1===c?l<128&&(u=l):2===c?128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)<=127&&(u=null):3===c?(o=t[i+2],128==(192&(a=t[i+1]))&&128==(192&o)&&((u=(15&l)<<12|(63&a)<<6|63&o)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=t[i+2],s=t[i+3],128==(192&(a=t[i+1]))&&128==(192&o)&&128==(192&s)&&((u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=c}return n}(this.buf,i,n)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==_u.Bytes)return t.push(this.readVarint(e));var r=ku(this);for(t=t||[];this.pos127;);else if(e===_u.Bytes)this.pos=this.readVarint()+this.pos;else if(e===_u.Fixed32)this.pos+=4;else{if(e!==_u.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var r,n,i,a;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),i=r,(a=e).buf[a.pos++]=127&i|128,i>>>=7,a.buf[a.pos++]=127&i|128,i>>>=7,a.buf[a.pos++]=127&i|128,i>>>=7,a.buf[a.pos++]=127&i|128,a.buf[a.pos]=127&(i>>>=7),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&Au(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),xu(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),xu(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&Au(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,_u.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Mu,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Su,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,Iu,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Eu,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,Cu,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Lu,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,Pu,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,zu,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,Ou,e)},writeBytesField:function(t,e){this.writeTag(t,_u.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,_u.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,_u.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,_u.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,_u.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,_u.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,_u.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,_u.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,_u.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,_u.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};var Bu,Nu=n(yu);function ju(t,e,r){1===t&&r.readMessage(Uu,e)}function Uu(t,e,r){if(3===t){let{id:t,bitmap:n,width:i,height:a,left:o,top:s,advance:l}=r.readMessage(Vu,{});e.push({id:t,bitmap:new Os({width:i+6,height:a+6},n),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function Vu(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}function qu(t){let e=0,r=0;for(let n of t)e+=n.w*n.h,r=Math.max(r,n.w);t.sort(((t,e)=>e.h-t.h));let n=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],i=0,a=0;for(let e of t)for(let t=n.length-1;t>=0;t--){let r=n[t];if(!(e.w>r.w||e.h>r.h)){if(e.x=r.x,e.y=r.y,a=Math.max(a,e.y+e.h),i=Math.max(i,e.x+e.w),e.w===r.w&&e.h===r.h){let e=n.pop();t=0&&r>=t&&$u[this.text.charCodeAt(r)];r--)e--;this.text=this.text.substring(t,e),this.sectionIndex=this.sectionIndex.slice(t,e)}substring(t,e){let r=new Yu;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((t,e)=>Math.max(t,this.sections[e].scale)),0)}addTextSection(t,e){this.text+=t.text,this.sections.push(Wu.forText(t.scale,t.fontStack||e));let r=this.sections.length-1;for(let e=0;e=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Xu(e,r,n,i,a,o,s,l,u,c,h,f,p,d,m){let g,y=Yu.fromFeature(e,a);f===t.ah.vertical&&y.verticalizePunctuation();let{processBidirectionalText:v,processStyledBidirectionalText:x}=ra;if(v&&1===y.sections.length){g=[];let t=v(y.toString(),ic(y,c,o,r,i,d));for(let e of t){let t=new Yu;t.text=e,t.sections=y.sections;for(let r=0;r0&&n>w&&(w=n)}else{let t=n[m.fontStack],e=t&&t[y];if(e&&e.rect)T=e.rect,_=e.metrics;else{let t=r[m.fontStack],e=t&&t[y];if(!e)continue;_=e.metrics}v=(a-m.scale)*gu}M?(e.verticalizable=!0,b.push({glyph:y,imageName:k,x:p,y:d+v,vertical:M,scale:m.scale,fontStack:m.fontStack,sectionIndex:g,metrics:_,rect:T}),p+=A*m.scale+c):(b.push({glyph:y,imageName:k,x:p,y:d+v,vertical:M,scale:m.scale,fontStack:m.fontStack,sectionIndex:g,metrics:_,rect:T}),p+=_.advance*m.scale+c)}0!==b.length&&(m=Math.max(p-c,m),oc(b,0,b.length-1,y,w)),p=0;let T=o*a+w;_.lineOffset=Math.max(w,l),d+=T,g=Math.max(T,g),++v}var x;let _=d-Zu,{horizontalAlign:b,verticalAlign:w}=ac(s);(function(t,e,r,n,i,a,o,s,l){let u=(e-r)*i,c=0;c=a!==o?-s*n-Zu:(-n*l+.5)*o;for(let e of t)for(let t of e.positionedGlyphs)t.x+=u,t.y+=c})(e.positionedLines,y,b,w,m,g,o,_,a.length),e.top+=-w*_,e.bottom=e.top+_,e.left+=-b*m,e.right=e.left+m}(b,r,n,i,g,s,l,u,f,c,p,m),!function(t){for(let e of t)if(0!==e.positionedGlyphs.length)return!1;return!0}(_)&&b}let $u={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Ju={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Ku={40:!0};function Qu(t,e,r,n,i,a){if(e.imageName){let t=n[e.imageName];return t?t.displaySize[0]*e.scale*gu/a+i:0}{let n=r[e.fontStack],a=n&&n[t];return a?a.metrics.advance*e.scale+i:0}}function tc(t,e,r,n){let i=Math.pow(t-e,2);return n?t=0,u=0;for(let r=0;ru){let t=Math.ceil(a/u);i*=t/o,o=t}return{x1:n,y1:i,x2:n+a,y2:i+o}}function uc(t,e,r,n,i,a){let o,s=t.image;if(s.content){let t=s.content,e=s.pixelRatio||1;o=[t[0]/e,t[1]/e,s.displaySize[0]-t[2]/e,s.displaySize[1]-t[3]/e]}let l,u,c,h,f=e.left*a,p=e.right*a;"width"===r||"both"===r?(h=i[0]+f-n[3],u=i[0]+p+n[1]):(h=i[0]+(f+p-s.displaySize[0])/2,u=h+s.displaySize[0]);let d=e.top*a,m=e.bottom*a;return"height"===r||"both"===r?(l=i[1]+d-n[0],c=i[1]+m+n[2]):(l=i[1]+(d+m-s.displaySize[1])/2,c=l+s.displaySize[1]),{image:s,top:l,right:u,bottom:c,left:h,collisionPadding:o}}let cc=128,hc=32640;function fc(t,e){let{expression:r}=e;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new na(t+1))};if("source"===r.kind)return{kind:"source"};{let{zoomStops:e,interpolationType:n}=r,i=0;for(;it.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=bs([]),this.placementViewportMatrix=bs([]);let r=this.layers[0]._unevaluatedLayout._values;this.textSizeData=fc(this.zoom,r["text-size"]),this.iconSizeData=fc(this.zoom,r["icon-size"]);let n=this.layers[0].layout,i=n.get("symbol-sort-key"),a=n.get("symbol-z-order");this.canOverlap="never"!==pc(n,"text-overlap","text-allow-overlap")||"never"!==pc(n,"icon-overlap","icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==a&&!i.isConstant(),this.sortFeaturesByY=("viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((e=>t.ah[e]))),this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id)),this.sourceID=e.sourceID}createArrays(){this.text=new bc(new Zo(this.layers,this.zoom,(t=>/^text/.test(t)))),this.icon=new bc(new Zo(this.layers,this.zoom,(t=>/^icon/.test(t)))),this.glyphOffsetArray=new to,this.lineVertexArray=new eo,this.symbolInstances=new Qa,this.textAnchorOffsets=new no}calculateGlyphDependencies(t,e,r,n,i){for(let a=0;a0)&&("constant"!==o.value.kind||o.value.value.length>0),c="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=a.get("symbol-sort-key");if(this.features=[],!u&&!c)return;let f=r.iconDependencies,p=r.glyphDependencies,d=r.availableImages,m=new na(this.zoom);for(let{feature:r,id:s,index:l,sourceLayerIndex:g}of e){let e,y,v=i._featureFilter.needGeometry,x=es(r,v);if(!i._featureFilter.filter(m,x,n))continue;if(v||(x.geometry=ts(r)),u){let t=i.getValueAndResolveTokens("text-field",x,n,d),r=re.factory(t),a=this.hasRTLText=this.hasRTLText||_c(r);(!a||"unavailable"===ra.getRTLTextPluginStatus()||a&&ra.isParsed())&&(e=du(r,i,x))}if(c){let t=i.getValueAndResolveTokens("icon-image",x,n,d);y=t instanceof oe?t:oe.fromString(t)}if(!e&&!y)continue;let _=this.sortFeaturesByKey?h.evaluate(x,{},n):void 0;if(this.features.push({id:s,text:e,icon:y,index:l,sourceLayerIndex:g,geometry:x.geometry,properties:r.properties,type:gc[r.type],sortKey:_}),y&&(f[y.name]=!0),e){let r=o.evaluate(x,{},n).join(","),i="viewport"!==a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(t.ah.vertical)>=0;for(let t of e.sections)if(t.image)f[t.image.name]=!0;else{let n=Hi(e.toString()),a=t.fontStack||r,o=p[a]=p[a]||{};this.calculateGlyphDependencies(t.text,o,i,this.allowVerticalPlacement,n)}}}"line"===a.get("symbol-placement")&&(this.features=function(t){let e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){let a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){let a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){let n=r?e[0][e[0].length-1]:e[0][0];return`${t}:${n.x}:${n.y}`}for(let u=0;ut.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((t,e)=>t.sortKey-e.sortKey))}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(void 0!==t.segment){let r=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),i={};for(let n=t.segment+1;n=0;r--)i[r]={x:e[r].x,y:e[r].y,tileUnitDistanceFromAnchor:n},r>0&&(n+=e[r-1].dist(e[r]));for(let t=0;t0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs;for(let e=r.vertexStartIndex;en[t]-n[e]||i[e]-i[t])),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex),[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach(((t,e,r)=>{t>=0&&r.indexOf(t)===e&&this.addIndicesForPlacedSymbol(this.text,t)})),e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,e.verticalPlacedTextSymbolIndex),e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.placedIconSymbolIndex),e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Si("SymbolBucket",Tc,{omit:["layers","collisionBoxArray","features","compareText"]}),Tc.MAX_GLYPHS=65535,Tc.addDynamicAttributes=xc;var kc={get paint(){return mc=mc||new ya({"icon-opacity":new pa(K.paint_symbol["icon-opacity"]),"icon-color":new pa(K.paint_symbol["icon-color"]),"icon-halo-color":new pa(K.paint_symbol["icon-halo-color"]),"icon-halo-width":new pa(K.paint_symbol["icon-halo-width"]),"icon-halo-blur":new pa(K.paint_symbol["icon-halo-blur"]),"icon-translate":new fa(K.paint_symbol["icon-translate"]),"icon-translate-anchor":new fa(K.paint_symbol["icon-translate-anchor"]),"text-opacity":new pa(K.paint_symbol["text-opacity"]),"text-color":new pa(K.paint_symbol["text-color"],{runtimeType:vt,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new pa(K.paint_symbol["text-halo-color"]),"text-halo-width":new pa(K.paint_symbol["text-halo-width"]),"text-halo-blur":new pa(K.paint_symbol["text-halo-blur"]),"text-translate":new fa(K.paint_symbol["text-translate"]),"text-translate-anchor":new fa(K.paint_symbol["text-translate-anchor"])})},get layout(){return dc=dc||new ya({"symbol-placement":new fa(K.layout_symbol["symbol-placement"]),"symbol-spacing":new fa(K.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new fa(K.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new pa(K.layout_symbol["symbol-sort-key"]),"symbol-z-order":new fa(K.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new fa(K.layout_symbol["icon-allow-overlap"]),"icon-overlap":new fa(K.layout_symbol["icon-overlap"]),"icon-ignore-placement":new fa(K.layout_symbol["icon-ignore-placement"]),"icon-optional":new fa(K.layout_symbol["icon-optional"]),"icon-rotation-alignment":new fa(K.layout_symbol["icon-rotation-alignment"]),"icon-size":new pa(K.layout_symbol["icon-size"]),"icon-text-fit":new fa(K.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new fa(K.layout_symbol["icon-text-fit-padding"]),"icon-image":new pa(K.layout_symbol["icon-image"]),"icon-rotate":new pa(K.layout_symbol["icon-rotate"]),"icon-padding":new pa(K.layout_symbol["icon-padding"]),"icon-keep-upright":new fa(K.layout_symbol["icon-keep-upright"]),"icon-offset":new pa(K.layout_symbol["icon-offset"]),"icon-anchor":new pa(K.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new fa(K.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new fa(K.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new fa(K.layout_symbol["text-rotation-alignment"]),"text-field":new pa(K.layout_symbol["text-field"]),"text-font":new pa(K.layout_symbol["text-font"]),"text-size":new pa(K.layout_symbol["text-size"]),"text-max-width":new pa(K.layout_symbol["text-max-width"]),"text-line-height":new fa(K.layout_symbol["text-line-height"]),"text-letter-spacing":new pa(K.layout_symbol["text-letter-spacing"]),"text-justify":new pa(K.layout_symbol["text-justify"]),"text-radial-offset":new pa(K.layout_symbol["text-radial-offset"]),"text-variable-anchor":new fa(K.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new pa(K.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new pa(K.layout_symbol["text-anchor"]),"text-max-angle":new fa(K.layout_symbol["text-max-angle"]),"text-writing-mode":new fa(K.layout_symbol["text-writing-mode"]),"text-rotate":new pa(K.layout_symbol["text-rotate"]),"text-padding":new fa(K.layout_symbol["text-padding"]),"text-keep-upright":new fa(K.layout_symbol["text-keep-upright"]),"text-transform":new pa(K.layout_symbol["text-transform"]),"text-offset":new pa(K.layout_symbol["text-offset"]),"text-allow-overlap":new fa(K.layout_symbol["text-allow-overlap"]),"text-overlap":new fa(K.layout_symbol["text-overlap"]),"text-ignore-placement":new fa(K.layout_symbol["text-ignore-placement"]),"text-optional":new fa(K.layout_symbol["text-optional"])})}};class Ac{constructor(t){if(void 0===t.property.overrides)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:dt,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",Ac,{omit:["defaultValue"]});class Mc extends xa{constructor(t){super(t,kc)}recalculate(t,e){if(super.recalculate(t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){let t=this.layout.get("text-writing-mode");if(t){let e=[];for(let r of t)e.indexOf(r)<0&&e.push(r);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,e,r,n){let i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||An(a.value)||!i?i:(o=e.properties,i.replace(/{([^{}]+)}/g,((t,e)=>o&&e in o?String(o[e]):"")));var o}createBucket(t){return new Tc(t)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of kc.paint.overridableProperties){if(!Mc.hasPaintOverride(this.layout,t))continue;let e=this.paint.get(t),r=new Ac(e),n=new kn(r,e.property.specification),i=null;i="constant"===e.value.kind||"source"===e.value.kind?new Sn("source",n):new En("composite",n,e.value.zoomStops),this.paint._values[t]=new ca(e.property,i,e.parameters)}}_handleOverridablePaintPropertyUpdate(t,e,r){return!(!this.layout||e.isDataDriven()||r.isDataDriven())&&Mc.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,e){let r=t.get("text-field"),n=kc.paint.properties[e],i=!1,a=t=>{for(let e of t)if(n.overrides&&n.overrides.hasOverride(e))return void(i=!0)};if("constant"===r.value.kind&&r.value.value instanceof re)a(r.value.value.sections);else if("source"===r.value.kind){let t=e=>{i||(e instanceof he&&ue(e.value)===wt?a(e.value.sections):e instanceof Je?a(e.sections):e.eachChild(t))},e=r.value;e._styleExpression&&t(e._styleExpression.expression)}return i}}let Sc;var Ec={get paint(){return Sc=Sc||new ya({"background-color":new fa(K.paint_background["background-color"]),"background-pattern":new ma(K.paint_background["background-pattern"]),"background-opacity":new fa(K.paint_background["background-opacity"])})}};class Cc extends xa{constructor(t){super(t,Ec)}}let Ic;var Lc={get paint(){return Ic=Ic||new ya({"raster-opacity":new fa(K.paint_raster["raster-opacity"]),"raster-hue-rotate":new fa(K.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new fa(K.paint_raster["raster-brightness-min"]),"raster-brightness-max":new fa(K.paint_raster["raster-brightness-max"]),"raster-saturation":new fa(K.paint_raster["raster-saturation"]),"raster-contrast":new fa(K.paint_raster["raster-contrast"]),"raster-resampling":new fa(K.paint_raster["raster-resampling"]),"raster-fade-duration":new fa(K.paint_raster["raster-fade-duration"])})}};class Pc extends xa{constructor(t){super(t,Lc)}}class zc extends xa{constructor(t){super(t,{}),this.onAdd=t=>{this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},this.onRemove=t=>{this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class Oc{constructor(t){this._methodToThrottle=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._methodToThrottle()}),0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let Dc=6371008.8;class Rc{constructor(t,e){if(isNaN(t)||isNaN(e))throw new Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Rc(w(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return Dc*Math.acos(Math.min(i,1))}static convert(t){if(t instanceof Rc)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Rc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Rc(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let Fc=2*Math.PI*Dc;function Bc(t){return Fc*Math.cos(t*Math.PI/180)}function Nc(t){return(180+t)/360}function jc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Uc(t,e){return t/Bc(e)}function Vc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}class qc{constructor(t,e,r=0){this.x=+t,this.y=+e,this.z=+r}static fromLngLat(t,e=0){let r=Rc.convert(t);return new qc(Nc(r.lng),jc(r.lat),Uc(e,r.lat))}toLngLat(){return new Rc(360*this.x-180,Vc(this.y))}toAltitude(){return this.z*Bc(Vc(this.y))}meterInMercatorCoordinateUnits(){return 1/Fc*(t=Vc(this.y),1/Math.cos(t*Math.PI/180));var t}}function Hc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}class Gc{constructor(t,e,r){if(i=e,a=r,(n=t)<0||n>25||a<0||a>=Math.pow(2,n)||i<0||i>=Math.pow(2,n))throw new Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${Math.pow(2,t)}, 0<=y<${Math.pow(2,t)} 0<=z<=25 `);var n,i,a;this.z=t,this.x=e,this.y=r,this.key=Yc(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let n=(a=this.y,o=this.z,s=Hc(256*(i=this.x),256*(a=Math.pow(2,o)-a-1),o),l=Hc(256*(i+1),256*(a+1),o),s[0]+","+s[1]+","+l[0]+","+l[1]);var i,a,o,s,l;let u=function(t,e,r){let n,i="";for(let a=t;a>0;a--)n=1<1?"@2x":"").replace(/{quadkey}/g,u).replace(/{bbox-epsg-3857}/g,n)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=Math.pow(2,this.z);return new h((t.x*e-this.x)*Jo,(t.y*e-this.y)*Jo)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Zc{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Yc(t,e.z,e.z,e.x,e.y)}}class Wc{constructor(t,e,r,n,i){if(t= z; overscaledZ = ${t}; z = ${r}`);this.overscaledZ=t,this.wrap=e,this.canonical=new Gc(r,+n,+i),this.key=Yc(e,t,r,n,i)}clone(){return new Wc(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let e=this.canonical.z-t;return t>this.canonical.z?new Wc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Wc(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)}calculateScaledKey(t,e){if(t>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?Yc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):Yc(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)}isChildOf(t){if(t.wrap!==this.wrap)return!1;let e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e}children(t){if(this.overscaledZ>=t)return[new Wc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Wc(e,this.wrap,e,r,n),new Wc(e,this.wrap,e,r+1,n),new Wc(e,this.wrap,e,r,n+1),new Wc(e,this.wrap,e,r+1,n+1)]}isLessThan(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.ythis.max&&(this.max=r),r=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)}unpack(t,e,r){return t*this.redFactor+e*this.greenFactor+r*this.blueFactor-this.baseShift}getPixels(){return new Ds({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");let n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}let s=-e*this.dim,l=-r*this.dim;for(let e=a;e=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${t} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}}class Jc{constructor(t,e,r,n,i){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t}}class Kc{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ai(Jo,16,0),this.grid3D=new Ai(Jo,16,0),this.featureIndexArray=new ao,this.promoteId=e}insert(t,e,r,n,i,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);let s=a?this.grid3D:this.grid;for(let t=0;t=0&&n[3]>=0&&s.insert(o,n[0],n[1],n[2],n[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Al.VectorTile(new Nu(this.rawTileData)).layers,this.sourceLayerCoder=new $c(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(t,e,r,n){this.loadVTLayers();let i=t.params||{},a=Jo/t.tileSize/t.scale,o=On(i.filter),s=t.queryGeometry,l=t.queryPadding*a,u=th(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),f=th(t.cameraQueryGeometry),p=this.grid3D.query(f.minX-l,f.minY-l,f.maxX+l,f.maxY+l,((e,r,n,i)=>function(t,e,r,n,i){for(let a of t)if(e<=a.x&&r<=a.y&&n>=a.x&&i>=a.y)return!0;let a=[new h(e,r),new h(e,i),new h(n,i),new h(n,r)];if(t.length>2)for(let e of a)if(ps(t,e))return!0;for(let e=0;e(f||(f=ts(e)),r.queryIntersectsFeature(s,e,n,f,this.z,t.transform,a,t.pixelPosMatrix))))}return m}loadMatchingFeature(t,e,r,n,i,a,o,s,l,u,c){let h=this.bucketLayerIDs[e];if(a&&!function(t,e){for(let r=0;r=0)return!0;return!1}(a,h))return;let f=this.sourceLayerCoder.decode(r),p=this.vtLayers[f].feature(n);if(i.needGeometry){let t=es(p,!0);if(!i.filter(new na(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!i.filter(new na(this.tileID.overscaledZ),p))return;let d=this.getId(p,f);for(let e=0;e{let o=e instanceof ha?e.get(a):null;return o&&o.evaluate?o.evaluate(r,n,i):o}))}function th(t){let e=1/0,r=1/0,n=-1/0,i=-1/0;for(let a of t)e=Math.min(e,a.x),r=Math.min(r,a.y),n=Math.max(n,a.x),i=Math.max(i,a.y);return{minX:e,minY:r,maxX:n,maxY:i}}function eh(t,e){return e-t}function rh(t,e,r,n,i){let a=[];for(let o=0;o=n&&u.x>=n||(o.x>=n?o=new h(n,o.y+(n-o.x)/(u.x-o.x)*(u.y-o.y))._round():u.x>=n&&(u=new h(n,o.y+(n-o.x)/(u.x-o.x)*(u.y-o.y))._round()),o.y>=i&&u.y>=i||(o.y>=i?o=new h(o.x+(i-o.y)/(u.y-o.y)*(u.x-o.x),i)._round():u.y>=i&&(u=new h(o.x+(i-o.y)/(u.y-o.y)*(u.x-o.x),i)._round()),s&&o.equals(s[s.length-1])||(s=[o],a.push(s)),s.push(u)))))}}return a}Si("FeatureIndex",Kc,{omit:["rawTileData","sourceLayerCoder"]});class nh extends h{constructor(t,e,r,n){super(t,e),this.angle=r,void 0!==n&&(this.segment=n)}clone(){return new nh(this.x,this.y,this.angle,this.segment)}}function ih(t,e,r,n,i){if(void 0===e.segment||0===r)return!0;let a=e,o=e.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;let l=[],u=0;for(;sn;)u-=l.shift().angleDelta;if(u>i)return!1;o++,s+=e.dist(r)}return!0}function ah(t){let e=0;for(let r=0;ru){let c=(u-l)/a,h=Re.number(n.x,i.x,c),f=Re.number(n.y,i.y,c),p=new nh(h,f,i.angleTo(n),r);return p._round(),!o||ih(t,p,s,o,e)?p:void 0}l+=a}}function uh(t,e,r,n,i,a,o,s,l){let u=oh(n,a,o),c=sh(n,i),h=c*o,f=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h=0&&y=0&&v=0&&f+u<=c){let r=new nh(y,v,m,e);r._round(),n&&!ih(t,r,a,n,i)||p.push(r)}}h+=d}return s||p.length||o||(p=ch(t,h/2,r,n,i,a,o,!0,l)),p}function hh(t,e,r,n){let i=[],a=t.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},c=a.stretchX||[[0,s]],f=a.stretchY||[[0,l]],p=(t,e)=>t+e[1]-e[0],d=c.reduce(p,0),m=f.reduce(p,0),g=s-d,y=l-m,v=0,x=d,_=0,b=m,w=0,T=g,k=0,A=y;if(a.content&&n){let e=a.content,r=e[2]-e[0],n=e[3]-e[1];(a.textFitWidth||a.textFitHeight)&&(u=lc(t)),v=fh(c,0,e[0]),_=fh(f,0,e[1]),x=fh(c,e[0],e[2]),b=fh(f,e[1],e[3]),w=e[0]-v,k=e[1]-_,T=r-x,A=n-b}let M=u.x1,S=u.y1,E=u.x2-M,C=u.y2-S,I=(t,n,i,s)=>{let l=dh(t.stretch-v,x,E,M),u=mh(t.fixed-w,T,t.stretch,d),c=dh(n.stretch-_,b,C,S),f=mh(n.fixed-k,A,n.stretch,m),p=dh(i.stretch-v,x,E,M),g=mh(i.fixed-w,T,i.stretch,d),y=dh(s.stretch-_,b,C,S),I=mh(s.fixed-k,A,s.stretch,m),L=new h(l,c),P=new h(p,c),z=new h(p,y),O=new h(l,y),D=new h(u/o,f/o),R=new h(g/o,I/o),F=e*Math.PI/180;if(F){let t=Math.sin(F),e=Math.cos(F),r=[e,-t,t,e];L._matMult(r),P._matMult(r),O._matMult(r),z._matMult(r)}let B=t.stretch+t.fixed,N=n.stretch+n.fixed;return{tl:L,tr:P,bl:O,br:z,tex:{x:a.paddedRect.x+1+B,y:a.paddedRect.y+1+N,w:i.stretch+i.fixed-B,h:s.stretch+s.fixed-N},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:R,minFontScaleX:T/o/E,minFontScaleY:A/o/C,isSDF:r}};if(n&&(a.stretchX||a.stretchY)){let t=ph(c,g,d),e=ph(f,y,m);for(let r=0;r0&&(n=Math.max(10,n),this.circleDiameter=n)}else{let l=null!==(c=a.image)&&void 0!==c&&c.content&&(a.image.textFitWidth||a.image.textFitHeight)?lc(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};l.y1=l.y1*o-s[0],l.y2=l.y2*o+s[2],l.x1=l.x1*o-s[3],l.x2=l.x2*o+s[1];let f=a.collisionPadding;if(f&&(l.x1-=f[0]*o,l.y1-=f[1]*o,l.x2+=f[2]*o,l.y2+=f[3]*o),u){let t=new h(l.x1,l.y1),e=new h(l.x2,l.y1),r=new h(l.x1,l.y2),n=new h(l.x2,l.y2),i=u*Math.PI/180;t._rotate(i),e._rotate(i),r._rotate(i),n._rotate(i),l.x1=Math.min(t.x,e.x,r.x,n.x),l.x2=Math.max(t.x,e.x,r.x,n.x),l.y1=Math.min(t.y,e.y,r.y,n.y),l.y2=Math.max(t.y,e.y,r.y,n.y)}t.emplaceBack(e.x,e.y,l.x1,l.y1,l.x2,l.y2,r,n,i)}this.boxEndIndex=t.length}}class yh{constructor(t=[],e=(t,e)=>te?1:0){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,n=e[t];for(;t>0;){let i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n}_down(t){let{data:e,compare:r}=this,n=this.length>>1,i=e[t];for(;t=0)break;e[t]=e[n],t=n}e[t]=i}}function vh(t,e=1,r=!1){let n=1/0,i=1/0,a=-1/0,o=-1/0,s=t[0];for(let t=0;ta)&&(a=e.x),(!t||e.y>o)&&(o=e.y)}let l=Math.min(a-n,o-i),u=l/2,c=new yh([],xh);if(0===l)return new h(n,i);for(let e=n;ef.d||!f.d)&&(f=n,r&&console.log("found best %d after %d probes",Math.round(1e4*n.d)/1e4,p)),n.max-f.d<=e||(u=n.h/2,c.push(new _h(n.p.x-u,n.p.y-u,u,t)),c.push(new _h(n.p.x+u,n.p.y-u,u,t)),c.push(new _h(n.p.x-u,n.p.y+u,u,t)),c.push(new _h(n.p.x+u,n.p.y+u,u,t)),p+=4)}return r&&(console.log(`num probes: ${p}`),console.log(`best distance: ${f.d}`)),f.p}function xh(t,e){return e.max-t.max}function _h(t,e,r,n){this.p=new h(t,e),this.h=r,this.d=function(t,e){let r=!1,n=1/0;for(let i=0;it.y!=s.y>t.y&&t.x<(s.x-i.x)*(t.y-i.y)/(s.y-i.y)+i.x&&(r=!r),n=Math.min(n,hs(t,i,s))}}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}var bh;t.aq=void 0,(bh=t.aq||(t.aq={}))[bh.center=1]="center",bh[bh.left=2]="left",bh[bh.right=3]="right",bh[bh.top=4]="top",bh[bh.bottom=5]="bottom",bh[bh["top-left"]=6]="top-left",bh[bh["top-right"]=7]="top-right",bh[bh["bottom-left"]=8]="bottom-left",bh[bh["bottom-right"]=9]="bottom-right";let wh=Number.POSITIVE_INFINITY;function Th(t,e){return e[1]!==wh?function(t,e,r){let n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":i=r-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-r}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}return[n,i]}(t,e[0],e[1]):function(t,e){let r=0,n=0;e<0&&(e=0);let i=e/Math.SQRT2;switch(t){case"top-right":case"top-left":n=i-7;break;case"bottom-right":case"bottom-left":n=7-i;break;case"bottom":n=7-e;break;case"top":n=e-7}switch(t){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=e;break;case"right":r=-e}return[r,n]}(t,e[0])}function kh(t,e,r){var n;let i=t.layout,a=null===(n=i.get("text-variable-anchor-offset"))||void 0===n?void 0:n.evaluate(e,{},r);if(a){let t=a.values,e=[];for(let r=0;rt*gu));n.startsWith("top")?i[1]-=7:n.startsWith("bottom")&&(i[1]+=7),e[r+1]=i}return new ae(e)}let o=i.get("text-variable-anchor");if(o){let n;n=void 0!==t._unevaluatedLayout.getValue("text-radial-offset")?[i.get("text-radial-offset").evaluate(e,{},r)*gu,wh]:i.get("text-offset").evaluate(e,{},r).map((t=>t*gu));let a=[];for(let t of o)a.push(t,Th(t,n));return new ae(a)}return null}function Ah(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Mh(e,r,n,i,a,o,s,l,u,c,h){let f=o.textMaxSize.evaluate(r,{});void 0===f&&(f=s);let p,d=e.layers[0].layout,m=d.get("icon-offset").evaluate(r,{},h),g=Eh(n.horizontal),y=s/24,v=e.tilePixelRatio*y,x=e.tilePixelRatio*f/24,_=e.tilePixelRatio*l,b=e.tilePixelRatio*d.get("symbol-spacing"),w=d.get("text-padding")*e.tilePixelRatio,T=function(t,e,r,n=1){let i=t.get("icon-padding").evaluate(e,{},r),a=i&&i.values;return[a[0]*n,a[1]*n,a[2]*n,a[3]*n]}(d,r,h,e.tilePixelRatio),k=d.get("text-max-angle")/180*Math.PI,A="viewport"!==d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),M="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),S=d.get("symbol-placement"),E=b/2,I=d.get("icon-text-fit");i&&"none"!==I&&(e.allowVerticalPlacement&&n.vertical&&(p=uc(i,n.vertical,I,d.get("icon-text-fit-padding"),m,y)),g&&(i=uc(i,g,I,d.get("icon-text-fit-padding"),m,y)));let L=(l,f)=>{f.x<0||f.x>=Jo||f.y<0||f.y>=Jo||function(e,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x,_,b,w,T,k,A){let M,S,E,I,L=e.addToLineVertexArray(r,n),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=Co("");if(e.allowVerticalPlacement&&i.vertical){let t=l.layout.get("text-rotate").evaluate(b,{},k)+90;E=new gh(u,r,c,h,f,i.vertical,p,d,m,t),s&&(I=new gh(u,r,c,h,f,s,y,v,m,t))}if(a){let n=l.layout.get("icon-rotate").evaluate(b,{}),i="none"!==l.layout.get("icon-text-fit"),o=hh(a,n,T,i),p=s?hh(s,n,T,i):void 0;S=new gh(u,r,c,h,f,a,y,v,!1,n),P=4*o.length;let d=e.iconSizeData,m=null;"source"===d.kind?(m=[cc*l.layout.get("icon-size").evaluate(b,{})],m[0]>hc&&C(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===d.kind&&(m=[cc*w.compositeIconSizes[0].evaluate(b,{},k),cc*w.compositeIconSizes[1].evaluate(b,{},k)],(m[0]>hc||m[1]>hc)&&C(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,o,m,_,x,b,t.ah.none,r,L.lineStartIndex,L.lineLength,-1,k),R=e.icon.placedSymbolArray.length-1,p&&(z=4*p.length,e.addSymbols(e.icon,p,m,_,x,b,t.ah.vertical,r,L.lineStartIndex,L.lineLength,-1,k),F=e.icon.placedSymbolArray.length-1)}let j=Object.keys(i.horizontal);for(let n of j){let a=i.horizontal[n];if(!M){N=Co(a.text);let t=l.layout.get("text-rotate").evaluate(b,{},k);M=new gh(u,r,c,h,f,a,p,d,m,t)}let s=1===a.positionedLines.length;if(O+=Sh(e,r,a,o,l,m,b,g,L,i.vertical?t.ah.horizontal:t.ah.horizontalOnly,s?j:[n],B,R,w,k),s)break}i.vertical&&(D+=Sh(e,r,i.vertical,o,l,m,b,g,L,t.ah.vertical,["vertical"],B,F,w,k));let U=M?M.boxStartIndex:e.collisionBoxArray.length,V=M?M.boxEndIndex:e.collisionBoxArray.length,q=E?E.boxStartIndex:e.collisionBoxArray.length,H=E?E.boxEndIndex:e.collisionBoxArray.length,G=S?S.boxStartIndex:e.collisionBoxArray.length,Z=S?S.boxEndIndex:e.collisionBoxArray.length,W=I?I.boxStartIndex:e.collisionBoxArray.length,Y=I?I.boxEndIndex:e.collisionBoxArray.length,X=-1,$=(t,e)=>t&&t.circleDiameter?Math.max(t.circleDiameter,e):e;X=$(M,X),X=$(E,X),X=$(S,X),X=$(I,X);let J=X>-1?1:0;J&&(X*=A/gu),e.glyphOffsetArray.length>=Tc.MAX_GLYPHS&&C("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey);let K=kh(l,b,k),[Q,tt]=function(e,r){let n=e.length,i=null==r?void 0:r.values;if((null==i?void 0:i.length)>0)for(let r=0;r=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,R,F,N,U,V,q,H,G,Z,W,Y,c,O,D,P,z,J,0,p,X,Q,tt)}(e,f,l,n,i,a,p,e.layers[0],e.collisionBoxArray,r.index,r.sourceLayerIndex,e.index,v,[w,w,w,w],A,u,_,T,M,m,r,o,c,h,s)};if("line"===S)for(let t of rh(r.geometry,0,0,Jo,Jo)){let r=uh(t,b,k,n.vertical||g,i,24,x,e.overscaling,Jo);for(let n of r)g&&Ch(e,g.text,E,n)||L(t,n)}else if("line-center"===S){for(let t of r.geometry)if(t.length>1){let e=lh(t,k,n.vertical||g,i,24,x);e&&L(t,e)}}else if("Polygon"===r.type)for(let t of kr(r.geometry,0)){let e=vh(t,16);L(t[0],new nh(e.x,e.y,0))}else if("LineString"===r.type)for(let t of r.geometry)L(t,new nh(t[0].x,t[0].y,0));else if("Point"===r.type)for(let t of r.geometry)for(let e of t)L([e],new nh(e.x,e.y,0))}function Sh(t,e,r,n,i,a,o,s,l,u,c,f,p,d,m){let g=function(t,e,r,n,i,a,o,s){let l=n.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,u=[];for(let t of e.positionedLines)for(let n of t.positionedGlyphs){if(!n.rect)continue;let a=n.rect||{},c=4,f=!0,p=1,d=0,m=(i||s)&&n.vertical,g=n.metrics.advance*n.scale/2;if(s&&e.verticalizable&&(d=t.lineOffset/2-(n.imageName?-(gu-n.metrics.width*n.scale)/2:(n.scale-1)*gu)),n.imageName){let t=o[n.imageName];f=t.sdf,p=t.pixelRatio,c=1/p}let y=i?[n.x+g,n.y]:[0,0],v=i?[0,0]:[n.x+g+r[0],n.y+r[1]-d],x=[0,0];m&&(x=v,v=[0,0]);let _=n.metrics.isDoubleResolution?2:1,b=(n.metrics.left-c)*n.scale-g+v[0],w=(-n.metrics.top-c)*n.scale+v[1],T=b+a.w/_*n.scale/p,k=w+a.h/_*n.scale/p,A=new h(b,w),M=new h(T,w),S=new h(b,k),E=new h(T,k);if(m){let t=new h(-g,g-Zu),e=-Math.PI/2,r=12-g,i=new h(22-r,-(n.imageName?r:0)),a=new h(...x);A._rotateAround(e,t)._add(i)._add(a),M._rotateAround(e,t)._add(i)._add(a),S._rotateAround(e,t)._add(i)._add(a),E._rotateAround(e,t)._add(i)._add(a)}if(l){let t=Math.sin(l),e=Math.cos(l),r=[e,-t,t,e];A._matMult(r),M._matMult(r),S._matMult(r),E._matMult(r)}let C=new h(0,0),I=new h(0,0);u.push({tl:A,tr:M,bl:S,br:E,tex:a,writingMode:e.writingMode,glyphOffset:y,sectionIndex:n.sectionIndex,isSDF:f,pixelOffsetTL:C,pixelOffsetBR:I,minFontScaleX:0,minFontScaleY:0})}return u}(0,r,s,i,a,o,n,t.allowVerticalPlacement),y=t.textSizeData,v=null;"source"===y.kind?(v=[cc*i.layout.get("text-size").evaluate(o,{})],v[0]>hc&&C(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===y.kind&&(v=[cc*d.compositeTextSizes[0].evaluate(o,{},m),cc*d.compositeTextSizes[1].evaluate(o,{},m)],(v[0]>hc||v[1]>hc)&&C(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,g,v,s,a,o,u,e,l.lineStartIndex,l.lineLength,p,m);for(let e of c)f[e]=t.text.placedSymbolArray.length-1;return 4*g.length}function Eh(t){for(let e in t)return t[e];return null}function Ch(t,e,r,n){let i=t.compareText;if(e in i){let t=i[e];for(let e=t.length-1;e>=0;e--)if(n.dist(t[e])>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);let i=Ih[15&r];if(!i)throw new Error("Unrecognized array type.");let[a]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new Lh(o,a,i,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let i=Ih.indexOf(this.ArrayType),a=2*t*this.ArrayType.BYTES_PER_ELEMENT,o=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-o%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+o+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+a+o+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+o+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return Ph(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:i,coords:a,nodeSize:o}=this,s=[0,i.length-1,0],l=[];for(;s.length;){let u=s.pop()||0,c=s.pop()||0,h=s.pop()||0;if(c-h<=o){for(let o=h;o<=c;o++){let s=a[2*o],u=a[2*o+1];s>=t&&s<=r&&u>=e&&u<=n&&l.push(i[o])}continue}let f=h+c>>1,p=a[2*f],d=a[2*f+1];p>=t&&p<=r&&d>=e&&d<=n&&l.push(i[f]),(0===u?t<=p:e<=d)&&(s.push(h),s.push(f-1),s.push(1-u)),(0===u?r>=p:n>=d)&&(s.push(f+1),s.push(c),s.push(1-u))}return l}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:n,coords:i,nodeSize:a}=this,o=[0,n.length-1,0],s=[],l=r*r;for(;o.length;){let u=o.pop()||0,c=o.pop()||0,h=o.pop()||0;if(c-h<=a){for(let r=h;r<=c;r++)Rh(i[2*r],i[2*r+1],t,e)<=l&&s.push(n[r]);continue}let f=h+c>>1,p=i[2*f],d=i[2*f+1];Rh(p,d,t,e)<=l&&s.push(n[f]),(0===u?t-r<=p:e-r<=d)&&(o.push(h),o.push(f-1),o.push(1-u)),(0===u?t+r>=p:e+r>=d)&&(o.push(f+1),o.push(c),o.push(1-u))}return s}}function Ph(t,e,r,n,i,a){if(i-n<=r)return;let o=n+i>>1;zh(t,e,o,n,i,a),Ph(t,e,r,n,o-1,1-a),Ph(t,e,r,o+1,i,1-a)}function zh(t,e,r,n,i,a){for(;i>n;){if(i-n>600){let o=i-n+1,s=r-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(s-o/2<0?-1:1);zh(t,e,r,Math.max(n,Math.floor(r-s*u/o+c)),Math.min(i,Math.floor(r+(o-s)*u/o+c)),a)}let o=e[2*r+a],s=n,l=i;for(Oh(t,e,n,r),e[2*i+a]>o&&Oh(t,e,n,i);so;)l--}e[2*n+a]===o?Oh(t,e,n,l):(l++,Oh(t,e,l,i)),l<=r&&(n=l+1),r<=l&&(i=l-1)}}function Oh(t,e,r,n){Dh(t,r,n),Dh(e,2*r,2*n),Dh(e,2*r+1,2*n+1)}function Dh(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function Rh(t,e,r,n){let i=t-r,a=e-n;return i*i+a*a}var Fh;t.bg=void 0,(Fh=t.bg||(t.bg={})).create="create",Fh.load="load",Fh.fullLoad="fullLoad";let Bh=null,Nh=[],jh=1e3/60,Uh="loadTime",Vh="fullLoadTime",qh={mark(t){performance.mark(t)},frame(t){let e=t;null!=Bh&&Nh.push(e-Bh),Bh=e},clearMetrics(){Bh=null,Nh=[],performance.clearMeasures(Uh),performance.clearMeasures(Vh);for(let e in t.bg)performance.clearMarks(t.bg[e])},getPerformanceMetrics(){performance.measure(Uh,t.bg.create,t.bg.load),performance.measure(Vh,t.bg.create,t.bg.fullLoad);let e=performance.getEntriesByName(Uh)[0].duration,r=performance.getEntriesByName(Vh)[0].duration,n=Nh.length,i=1/(Nh.reduce(((t,e)=>t+e),0)/n/1e3),a=Nh.filter((t=>t>jh)).reduce(((t,e)=>t+(e-jh)/jh),0);return{loadTime:e,fullLoadTime:r,fps:i,percentDroppedFrames:a/(n+a)*100,totalFrames:n}}};t.$=class extends Sa{},t.A=_s,t.B=bi,t.C=function(t){if(null==P){let e=t.navigator?t.navigator.userAgent:null;P=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return P},t.D=fa,t.E=J,t.F=class{constructor(t,e){var r,n,i;this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Oc((()=>this.process())),this.subscription=(r=this.target,n="message",i=t=>this.receive(t),r.addEventListener(n,i,!1),{unsubscribe:()=>{r.removeEventListener(n,i,!1)}}),this.globalScope=L(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}sendAsync(t,e){return new Promise(((r,n)=>{let i=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[i]={resolve:r,reject:n},e&&e.signal.addEventListener("abort",(()=>{delete this.resolveRejects[i];let e={id:i,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(e)}),{once:!0});let a=[],o=Object.assign(Object.assign({},t),{id:i,sourceMapId:this.mapId,origin:location.origin,data:Li(t.data,a)});this.target.postMessage(o,{transfer:a})}))}receive(t){let e=t.data,r=e.id;if(!("file://"!==e.origin&&"file://"!==location.origin&&"resource://android"!==e.origin&&"resource://android"!==location.origin&&e.origin!==location.origin||e.targetMapId&&this.mapId!==e.targetMapId)){if(""===e.type){delete this.tasks[r];let t=this.abortControllers[r];return delete this.abortControllers[r],void(t&&t.abort())}if(L(self)||e.mustQueue)return this.tasks[r]=e,this.taskQueue.push(r),void this.invoker.trigger();this.processTask(r,e)}}process(){if(0===this.taskQueue.length)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,r){return e(this,void 0,void 0,(function*(){if(""===r.type){let e=this.resolveRejects[t];return delete this.resolveRejects[t],e?void(r.error?e.reject(Pi(r.error)):e.resolve(Pi(r.data))):void 0}if(!this.messageHandlers[r.type])return void this.completeTask(t,new Error(`Could not find a registered handler for ${r.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let e=Pi(r.data),n=new AbortController;this.abortControllers[t]=n;try{let i=yield this.messageHandlers[r.type](r.sourceMapId,e,n);this.completeTask(t,null,i)}catch(e){this.completeTask(t,e)}}))}completeTask(t,e,r){let n=[];delete this.abortControllers[t];let i={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Li(e):null,data:Li(r,n)};this.target.postMessage(i,{transfer:n})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},t.G=V,t.H=function(){var t=new _s(16);return _s!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.I=Hu,t.J=function(t,e,r){var n,i,a,o,s,l,u,c,h,f,p,d,m=r[0],g=r[1],y=r[2];return e===t?(t[12]=e[0]*m+e[4]*g+e[8]*y+e[12],t[13]=e[1]*m+e[5]*g+e[9]*y+e[13],t[14]=e[2]*m+e[6]*g+e[10]*y+e[14],t[15]=e[3]*m+e[7]*g+e[11]*y+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=p,t[11]=d,t[12]=n*m+s*g+h*y+e[12],t[13]=i*m+l*g+f*y+e[13],t[14]=a*m+u*g+p*y+e[14],t[15]=o*m+c*g+d*y+e[15]),t},t.K=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.L=ws,t.M=function(t,e){let r={};for(let n=0;n{let e=window.document.createElement("video");return e.muted=!0,new Promise((r=>{e.onloadstart=()=>{r(e)};for(let r of t){let t=window.document.createElement("source");Z(r)||(e.crossOrigin="Anonymous"),t.src=r,e.appendChild(t)}}))},t.a4=function(){return k++},t.a5=Xa,t.a6=Tc,t.a7=On,t.a8=es,t.a9=Jc,t.aA=function(t){if("custom"===t.type)return new zc(t);switch(t.type){case"background":return new Cc(t);case"circle":return new Ms(t);case"fill":return new bl(t);case"fill-extrusion":return new Gl(t);case"heatmap":return new Ns(t);case"hillshade":return new Us(t);case"line":return new su(t);case"raster":return new Pc(t);case"symbol":return new Mc(t)}},t.aB=S,t.aC=function(t,e){if(!t)return[{command:"setStyle",args:[e]}];let r=[];try{if(!et(t.version,e.version))return[{command:"setStyle",args:[e]}];et(t.center,e.center)||r.push({command:"setCenter",args:[e.center]}),et(t.zoom,e.zoom)||r.push({command:"setZoom",args:[e.zoom]}),et(t.bearing,e.bearing)||r.push({command:"setBearing",args:[e.bearing]}),et(t.pitch,e.pitch)||r.push({command:"setPitch",args:[e.pitch]}),et(t.sprite,e.sprite)||r.push({command:"setSprite",args:[e.sprite]}),et(t.glyphs,e.glyphs)||r.push({command:"setGlyphs",args:[e.glyphs]}),et(t.transition,e.transition)||r.push({command:"setTransition",args:[e.transition]}),et(t.light,e.light)||r.push({command:"setLight",args:[e.light]}),et(t.terrain,e.terrain)||r.push({command:"setTerrain",args:[e.terrain]}),et(t.sky,e.sky)||r.push({command:"setSky",args:[e.sky]}),et(t.projection,e.projection)||r.push({command:"setProjection",args:[e.projection]});let n={},i=[];!function(t,e,r,n){let i;for(i in e=e||{},t=t||{})Object.prototype.hasOwnProperty.call(t,i)&&(Object.prototype.hasOwnProperty.call(e,i)||it(i,r,n));for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Object.prototype.hasOwnProperty.call(t,i)?et(t[i],e[i])||("geojson"===t[i].type&&"geojson"===e[i].type&&ot(t,e,i)?rt(r,{command:"setGeoJSONSourceData",args:[i,e[i].data]}):at(i,e,r,n)):nt(i,e,r))}(t.sources,e.sources,i,n);let a=[];t.layers&&t.layers.forEach((t=>{"source"in t&&n[t.source]?r.push({command:"removeLayer",args:[t.id]}):a.push(t)})),r=r.concat(i),function(t,e,r){e=e||[];let n,i,a,o,s,l=(t=t||[]).map(lt),u=e.map(lt),c=t.reduce(ut,{}),h=e.reduce(ut,{}),f=l.slice(),p=Object.create(null);for(let t=0,e=0;t@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((t,r,n,i)=>{let a=n||i;return e[r]=!a||a.toLowerCase(),""})),e["max-age"]){let t=parseInt(e["max-age"],10);isNaN(t)?delete e["max-age"]:e["max-age"]=t}return e},t.ab=function(t,e){let r=[];for(let n in t)n in e||r.push(n);return r},t.ac=b,t.ad=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t},t.ae=function(t){var e=new _s(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.af=As,t.ag=function(t,e){let r=0,n=0;if("constant"===t.kind)n=t.layoutSize;else if("source"!==t.kind){let{interpolationType:i,minZoom:a,maxZoom:o}=t,s=i?b(Fe.interpolationFactor(i,e,a,o),0,1):0;"camera"===t.kind?n=Re.number(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:n}},t.ai=function(t,{uSize:e,uSizeT:r},{lowerSize:n,upperSize:i}){return"source"===t.kind?n/cc:"composite"===t.kind?Re.number(n/cc,i/cc,r):e},t.aj=xc,t.ak=function(t,e,r,n){let i=e.y-t.y,a=e.x-t.x,o=n.y-r.y,s=n.x-r.x,l=o*a-s*i;if(0===l)return null;let u=(s*(t.y-r.y)-o*(t.x-r.x))/l;return new h(t.x+u*a,t.y+u*i)},t.al=rh,t.am=is,t.an=bs,t.ao=function(t){let e=1/0,r=1/0,n=-1/0,i=-1/0;for(let a of t)e=Math.min(e,a.x),r=Math.min(r,a.y),n=Math.max(n,a.x),i=Math.max(i,a.y);return[e,r,n,i]},t.ap=gu,t.ar=pc,t.as=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],m=e[13],g=e[14],y=e[15],v=r*s-n*o,x=r*l-i*o,_=r*u-a*o,b=n*l-i*s,w=n*u-a*s,T=i*u-a*l,k=c*m-h*d,A=c*g-f*d,M=c*y-p*d,S=h*g-f*m,E=h*y-p*m,C=f*y-p*g,I=v*C-x*E+_*S+b*M-w*A+T*k;return I?(t[0]=(s*C-l*E+u*S)*(I=1/I),t[1]=(i*E-n*C-a*S)*I,t[2]=(m*T-g*w+y*b)*I,t[3]=(f*w-h*T-p*b)*I,t[4]=(l*M-o*C-u*A)*I,t[5]=(r*C-i*M+a*A)*I,t[6]=(g*_-d*T-y*x)*I,t[7]=(c*T-f*_+p*x)*I,t[8]=(o*E-s*M+u*k)*I,t[9]=(n*M-r*E-a*k)*I,t[10]=(d*w-m*_+y*v)*I,t[11]=(h*_-c*w-p*v)*I,t[12]=(s*A-o*S-l*k)*I,t[13]=(r*S-n*A+i*k)*I,t[14]=(m*x-d*b-g*v)*I,t[15]=(c*b-h*x+f*v)*I,t):null},t.at=Ah,t.au=ac,t.av=Lh,t.aw=function(){let t={},e=K.$version;for(let r in K.$root){let n=K.$root[r];if(n.required){let i=null;i="version"===r?e:"array"===n.type?[]:{},null!=i&&(t[r]=i)}}return t},t.ax=zi,t.ay=H,t.az=function(t){t=t.slice();let e=Object.create(null);for(let r=0;r25||n<0||n>=1||r<0||r>=1)},t.bc=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.bd=class extends Ma{},t.be=Dc,t.bf=qh,t.bh=q,t.bi=function(t,e){j.REGISTERED_PROTOCOLS[t]=e},t.bj=function(t){delete j.REGISTERED_PROTOCOLS[t]},t.bk=function(t,e){let r={};for(let n=0;nt*gu))}let x=s?"center":n.get("text-justify").evaluate(i,{},e.canonical),_="point"===n.get("symbol-placement")?n.get("text-max-width").evaluate(i,{},e.canonical)*gu:1/0,b=()=>{e.bucket.allowVerticalPlacement&&Hi(a)&&(m.vertical=Xu(g,e.glyphMap,e.glyphPositions,e.imagePositions,h,_,o,d,"left",c,y,t.ah.vertical,!0,p,f))};if(!s&&v){let r=new Set;if("auto"===x)for(let t=0;te(void 0,void 0,void 0,(function*(){if(0===t.byteLength)return createImageBitmap(new ImageData(1,1));let e=new Blob([new Uint8Array(t)],{type:"image/png"});try{return createImageBitmap(e)}catch(t){throw new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),t.e=T,t.f=t=>new Promise(((e,r)=>{let n=new Image;n.onload=()=>{e(n),URL.revokeObjectURL(n.src),n.onload=null,window.requestAnimationFrame((()=>{n.src=O}))},n.onerror=()=>r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let i=new Blob([new Uint8Array(t)],{type:"image/png"});n.src=t.byteLength?URL.createObjectURL(i):O})),t.g=U,t.h=(t,e)=>G(T(t,{type:"json"}),e),t.i=L,t.j=$,t.k=X,t.l=(t,e)=>G(T(t,{type:"arrayBuffer"}),e),t.m=G,t.n=function(t){return new Nu(t).readFields(ju,[])},t.o=Os,t.p=qu,t.q=ya,t.r=_i,t.s=Z,t.t=ki,t.u=xi,t.v=K,t.w=C,t.x=function([t,e,r]){return e+=90,e*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(e)*Math.sin(r),y:t*Math.sin(e)*Math.sin(r),z:t*Math.cos(r)}},t.y=Re,t.z=na})),n("worker",0,(function(t){class e{constructor(t){this.keyCache={},t&&this.replace(t)}replace(t){this._layerConfigs={},this._layers={},this.update(t,[])}update(e,r){for(let r of e){this._layerConfigs[r.id]=r;let e=this._layers[r.id]=t.aA(r);e._featureFilter=t.a7(e.filter),this.keyCache[r.id]&&delete this.keyCache[r.id]}for(let t of r)delete this.keyCache[t],delete this._layerConfigs[t],delete this._layers[t];this.familiesBySource={};let n=t.bk(Object.values(this._layerConfigs),this.keyCache);for(let t of n){let e=t.map((t=>this._layers[t.id])),r=e[0];if("none"===r.visibility)continue;let n=r.source||"",i=this.familiesBySource[n];i||(i=this.familiesBySource[n]={});let a=r.sourceLayer||"_geojsonTileLayer",o=i[a];o||(o=i[a]=[]),o.push(e)}}}class r{constructor(e){let r={},n=[];for(let t in e){let i=e[t],a=r[t]={};for(let t in i){let e=i[+t];if(!e||0===e.bitmap.width||0===e.bitmap.height)continue;let r={x:0,y:0,w:e.bitmap.width+2,h:e.bitmap.height+2};n.push(r),a[t]={rect:r,metrics:e.metrics}}}let{w:i,h:a}=t.p(n),o=new t.o({width:i||1,height:a||1});for(let n in e){let i=e[n];for(let e in i){let a=i[+e];if(!a||0===a.bitmap.width||0===a.bitmap.height)continue;let s=r[n][e].rect;t.o.copy(a.bitmap,o,{x:0,y:0},{x:s.x+1,y:s.y+1},a.bitmap)}}this.image=o,this.positions=r}}t.bl("GlyphAtlas",r);class n{constructor(e){this.tileID=new t.S(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.inFlightDependencies=[]}parse(e,n,a,o){return t._(this,void 0,void 0,(function*(){this.status="parsing",this.data=e,this.collisionBoxArray=new t.a5;let s=new t.bm(Object.keys(e.layers).sort()),l=new t.bn(this.tileID,this.promoteId);l.bucketLayerIDs=[];let u={},c={featureIndex:l,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:a},h=n.familiesBySource[this.source];for(let r in h){let n=e.layers[r];if(!n)continue;1===n.version&&t.w(`Vector tile source "${this.source}" layer "${r}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let o=s.encode(r),f=[];for(let t=0;t=r.maxzoom||"none"!==r.visibility&&(i(e,this.zoom,a),(u[r.id]=r.createBucket({index:l.bucketLayerIDs.length,layers:e,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:o,sourceID:this.source})).populate(f,c,this.tileID.canonical),l.bucketLayerIDs.push(e.map((t=>t.id))))}}let f=t.aF(c.glyphDependencies,(t=>Object.keys(t).map(Number)));this.inFlightDependencies.forEach((t=>null==t?void 0:t.abort())),this.inFlightDependencies=[];let p=Promise.resolve({});if(Object.keys(f).length){let t=new AbortController;this.inFlightDependencies.push(t),p=o.sendAsync({type:"GG",data:{stacks:f,source:this.source,tileID:this.tileID,type:"glyphs"}},t)}let d=Object.keys(c.iconDependencies),m=Promise.resolve({});if(d.length){let t=new AbortController;this.inFlightDependencies.push(t),m=o.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"icons"}},t)}let g=Object.keys(c.patternDependencies),y=Promise.resolve({});if(g.length){let t=new AbortController;this.inFlightDependencies.push(t),y=o.sendAsync({type:"GI",data:{icons:g,source:this.source,tileID:this.tileID,type:"patterns"}},t)}let[v,x,_]=yield Promise.all([p,m,y]),b=new r(v),w=new t.bo(x,_);for(let e in u){let r=u[e];r instanceof t.a6?(i(r.layers,this.zoom,a),t.bp({bucket:r,glyphMap:v,glyphPositions:b.positions,imageMap:x,imagePositions:w.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):r.hasPattern&&(r instanceof t.bq||r instanceof t.br||r instanceof t.bs)&&(i(r.layers,this.zoom,a),r.addFeatures(c,this.tileID.canonical,w.patternPositions))}return this.status="done",{buckets:Object.values(u).filter((t=>!t.isEmpty())),featureIndex:l,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:b.image,imageAtlas:w,glyphMap:this.returnDependencies?v:null,iconMap:this.returnDependencies?x:null,glyphPositions:this.returnDependencies?b.positions:null}}))}}function i(e,r,n){let i=new t.z(r);for(let t of e)t.recalculate(i,n)}class a{constructor(t,e,r){this.actor=t,this.layerIndex=e,this.availableImages=r,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(e,r){return t._(this,void 0,void 0,(function*(){let n=yield t.l(e.request,r);try{return{vectorTile:new t.bt.VectorTile(new t.bu(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires}}catch(t){let r=new Uint8Array(n.data),i=`Unable to parse the tile at ${e.request.url}, `;throw i+=31===r[0]&&139===r[1]?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${t.message}`,new Error(i)}}))}loadTile(e){return t._(this,void 0,void 0,(function*(){let r=e.uid,i=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.bv(e.request),a=new n(e);this.loading[r]=a;let o=new AbortController;a.abort=o;try{let n=yield this.loadVectorTile(e,o);if(delete this.loading[r],!n)return null;let s=n.rawData,l={};n.expires&&(l.expires=n.expires),n.cacheControl&&(l.cacheControl=n.cacheControl);let u={};if(i){let t=i.finish();t&&(u.resourceTiming=JSON.parse(JSON.stringify(t)))}a.vectorTile=n.vectorTile;let c=a.parse(n.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[r]=a,this.fetching[r]={rawTileData:s,cacheControl:l,resourceTiming:u};try{let e=yield c;return t.e({rawTileData:s.slice(0)},e,l,u)}finally{delete this.fetching[r]}}catch(t){throw delete this.loading[r],a.status="done",this.loaded[r]=a,t}}))}reloadTile(e){return t._(this,void 0,void 0,(function*(){let r=e.uid;if(!this.loaded||!this.loaded[r])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let n=this.loaded[r];if(n.showCollisionBoxes=e.showCollisionBoxes,"parsing"===n.status){let e,i=yield n.parse(n.vectorTile,this.layerIndex,this.availableImages,this.actor);if(this.fetching[r]){let{rawTileData:n,cacheControl:a,resourceTiming:o}=this.fetching[r];delete this.fetching[r],e=t.e({rawTileData:n.slice(0)},i,a,o)}else e=i;return e}if("done"===n.status&&n.vectorTile)return n.parse(n.vectorTile,this.layerIndex,this.availableImages,this.actor)}))}abortTile(e){return t._(this,void 0,void 0,(function*(){let t=this.loading,r=e.uid;t&&t[r]&&t[r].abort&&(t[r].abort.abort(),delete t[r])}))}removeTile(e){return t._(this,void 0,void 0,(function*(){this.loaded&&this.loaded[e.uid]&&delete this.loaded[e.uid]}))}}class o{constructor(){this.loaded={}}loadTile(e){return t._(this,void 0,void 0,(function*(){let{uid:r,encoding:n,rawImageData:i,redFactor:a,greenFactor:o,blueFactor:s,baseShift:l}=e,u=i.width+2,c=i.height+2,h=t.b(i)?new t.R({width:u,height:c},yield t.bw(i,-1,-1,u,c)):i,f=new t.bx(r,h,n,a,o,s,l);return this.loaded=this.loaded||{},this.loaded[r]=f,f}))}removeTile(t){let e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]}}function s(t,e){if(0!==t.length){l(t[0],e);for(var r=1;r=Math.abs(s)?r-l+s:s-l+r,r=l}r+n>=0!=!!e&&t.reverse()}var u=t.by((function t(e,r){var n,i=e&&e.type;if("FeatureCollection"===i)for(n=0;n>31}function A(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;st},C=Math.fround||(I=new Float32Array(1),t=>(I[0]=+t,I[0]));var I;class L{constructor(t){this.options=Object.assign(Object.create(E),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){let{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");let i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e=r;t--){let r=+Date.now();o=this.trees[t]=this._createTree(this._cluster(o,t)),e&&console.log("z%d: %d clusters in %dms",t,o.numItems,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){let t=this.getClusters([r,n,180,a],e),o=this.getClusters([-180,n,i,a],e);return t.concat(o)}let o=this.trees[this._limitZoom(e)],s=o.range(O(r),D(a),O(i),D(n)),l=o.data,u=[];for(let t of s){let e=this.stride*t;u.push(l[e+5]>1?P(l,e,this.clusterProps):this.points[l[e+3]])}return u}getChildren(t){let e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(n);let a=i.data;if(e*this.stride>=a.length)throw new Error(n);let o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i.within(a[e*this.stride],a[e*this.stride+1],o),l=[];for(let e of s){let r=e*this.stride;a[r+4]===t&&l.push(a[r+5]>1?P(a,r,this.clusterProps):this.points[a[r+3]])}if(0===l.length)throw new Error(n);return l}getLeaves(t,e,r){let n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n}getTile(t,e,r){let n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:o}=this.options,s=o/a,l=(r-s)/i,u=(r+1+s)/i,c={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,u),n.data,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-s/i,l,1,u),n.data,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,l,s/i,u),n.data,-1,r,i,c),c.features.length?c:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){let r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,i){let a=this.getChildren(e);for(let e of a){let a=e.properties;if(a&&a.cluster?i+a.point_count<=n?i+=a.point_count:i=this._appendLeaves(t,a.cluster_id,r,n,i):i1;if(c)t=z(e,u,this.clusterProps),s=e[u],l=e[u+1];else{let r=this.points[e[u+3]];t=r.properties;let[n,i]=r.geometry.coordinates;s=O(n),l=D(i)}let h,f={type:1,geometry:[[Math.round(this.options.extent*(s*i-r)),Math.round(this.options.extent*(l*i-n))]],tags:t};h=c||this.options.generateId?e[u+3]:this.points[e[u+3]].id,void 0!==h&&(f.id=h),a.features.push(f)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){let{radius:r,extent:n,reduce:i,minPoints:a}=this.options,o=r/(n*Math.pow(2,e)),s=t.data,l=[],u=this.stride;for(let r=0;re&&(p+=s[r+5])}if(p>f&&p>=a){let t,a=n*f,o=c*f,d=-1,m=(r/u<<5)+(e+1)+this.points.length;for(let n of h){let l=n*u;if(s[l+2]<=e)continue;s[l+2]=e;let c=s[l+5];a+=s[l]*c,o+=s[l+1]*c,s[l+4]=m,i&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(s,l)))}s[r+4]=m,l.push(a/p,o/p,1/0,m,-1,p),i&&l.push(d)}else{for(let t=0;t1)for(let t of h){let r=t*u;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){let n=this.clusterProps[t[e+6]];return r?Object.assign({},n):n}let n=this.points[t[e+3]].properties,i=this.options.map(n);return r&&i===n?Object.assign({},i):i}}function P(t,e,r){return{type:"Feature",id:t[e+3],properties:z(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),R(t[e+1])]}};var n}function z(t,e,r){let n=t[e+5],i=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,a=t[e+6],o=-1===a?{}:Object.assign({},r[a]);return Object.assign(o,{cluster:!0,cluster_id:t[e+3],point_count:n,point_count_abbreviated:i})}function O(t){return t/360+.5}function D(t){let e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function R(t){let e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function F(t,e,r,n){let i,a=n,o=e+(r-e>>1),s=r-e,l=t[e],u=t[e+1],c=t[r],h=t[r+1];for(let n=e+3;na)i=n,a=e;else if(e===a){let t=Math.abs(n-o);tn&&(i-e>3&&F(t,e,i,n),t[i+2]=a,r-i>3&&F(t,i,r,n))}function B(t,e,r,n,i,a){let o=i-r,s=a-n;if(0!==o||0!==s){let l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return o=t-r,s=e-n,o*o+s*s}function N(t,e,r,n){let i={id:null==t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("Point"===e||"MultiPoint"===e||"LineString"===e)j(i,r);else if("Polygon"===e)j(i,r[0]);else if("MultiLineString"===e)for(let t of r)j(i,t);else if("MultiPolygon"===e)for(let t of r)j(i,t[0]);return i}function j(t,e){for(let r=0;r0&&(o+=n?(i*l-s*a)/2:Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2))),i=s,a=l}let s=e.length-3;e[2]=1,F(e,0,s,r),e[s+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function H(t,e,r,n){for(let i=0;i1?1:r}function W(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o=n)return null;let l=[];for(let e of t){let t=e.geometry,a=e.type,o=0===i?e.minX:e.minY,u=0===i?e.maxX:e.maxY;if(o>=r&&u=n)continue;let c=[];if("Point"===a||"MultiPoint"===a)Y(t,c,r,n,i);else if("LineString"===a)X(t,c,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===a)J(t,c,r,n,i,!1);else if("Polygon"===a)J(t,c,r,n,i,!0);else if("MultiPolygon"===a)for(let e of t){let t=[];J(e,t,r,n,i,!0),t.length&&c.push(t)}if(c.length){if(s.lineMetrics&&"LineString"===a){for(let t of c)l.push(N(e.id,a,t,e.tags));continue}"LineString"!==a&&"MultiLineString"!==a||(1===c.length?(a="LineString",c=c[0]):a="MultiLineString"),"Point"!==a&&"MultiPoint"!==a||(a=3===c.length?"Point":"MultiPoint"),l.push(N(e.id,a,c,e.tags))}}return l.length?l:null}function Y(t,e,r,n,i){for(let a=0;a=r&&o<=n&&K(e,t[a],t[a+1],t[a+2])}}function X(t,e,r,n,i,a,o){let s,l,u=$(t),c=0===i?Q:tt,h=t.start;for(let f=0;fr&&(l=c(u,p,d,g,y,r),o&&(u.start=h+s*l)):v>n?x=r&&(l=c(u,p,d,g,y,r),_=!0),x>n&&v<=n&&(l=c(u,p,d,g,y,n),_=!0),!a&&_&&(o&&(u.end=h+s*l),e.push(u),u=$(t)),o&&(h+=s)}let f=t.length-3,p=t[f],d=t[f+1],m=0===i?p:d;m>=r&&m<=n&&K(u,p,d,t[f+2]),f=u.length-3,a&&f>=3&&(u[f]!==u[0]||u[f+1]!==u[1])&&K(u,u[0],u[1],u[2]),u.length&&e.push(u)}function $(t){let e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function J(t,e,r,n,i,a){for(let o of t)X(o,e,r,n,i,a,!1)}function K(t,e,r,n){t.push(e,r,n)}function Q(t,e,r,n,i,a){let o=(a-e)/(n-e);return K(t,a,r+(i-r)*o,1),o}function tt(t,e,r,n,i,a){let o=(a-r)/(i-r);return K(t,e+(n-e)*o,a,1),o}function et(t,e){let r=[];for(let n=0;n0&&e.size<(i?o:n))return void(r.numPoints+=e.length/3);let s=[];for(let t=0;to)&&(r.numSimplified++,s.push(e[t],e[t+1])),r.numPoints++;i&&function(t,e){let r=0;for(let e=0,n=t.length,i=n-2;e0===e)for(let e=0,r=t.length;e24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");let n=function(t,e){let r=[];if("FeatureCollection"===t.type)for(let n=0;n1&&console.time("creation"),f=this.tiles[h]=at(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));let t=`z${e}`;this.stats[t]=(this.stats[t]||0)+1,this.total++}if(f.source=t,null==i){if(e===l.indexMaxZoom||f.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===i)continue;if(null!=i){let t=i-e;if(r!==a>>t||n!==o>>t)continue}}if(f.source=null,0===t.length)continue;u>1&&console.time("clipping");let p=.5*l.buffer/l.extent,d=.5-p,m=.5+p,g=1+p,y=null,v=null,x=null,_=null,b=W(t,c,r-p,r+m,0,f.minX,f.maxX,l),w=W(t,c,r+d,r+g,0,f.minX,f.maxX,l);t=null,b&&(y=W(b,c,n-p,n+m,1,f.minY,f.maxY,l),v=W(b,c,n+d,n+g,1,f.minY,f.maxY,l),b=null),w&&(x=W(w,c,n-p,n+m,1,f.minY,f.maxY,l),_=W(w,c,n+d,n+g,1,f.minY,f.maxY,l),w=null),u>1&&console.timeEnd("clipping"),s.push(y||[],e+1,2*r,2*n),s.push(v||[],e+1,2*r,2*n+1),s.push(x||[],e+1,2*r+1,2*n),s.push(_||[],e+1,2*r+1,2*n+1)}}getTile(t,e,r){t=+t,e=+e,r=+r;let n=this.options,{extent:i,debug:a}=n;if(t<0||t>24)return null;let o=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let l,u=t,c=e,h=r;for(;!l&&u>0;)u--,c>>=1,h>>=1,l=this.tiles[ct(u,c,h)];return l&&l.source?(a>1&&(console.log("found parent tile z%d-%d-%d",u,c,h),console.time("drilling down")),this.splitTile(l.source,u,c,h,t,e,r),a>1&&console.timeEnd("drilling down"),this.tiles[s]?nt(this.tiles[s],i):null):null}}function ct(t,e,r){return 32*((1<{o.properties=t;let e={};for(let t of s)e[t]=n[t].evaluate(a,o);return e},e.reduce=(t,e)=>{o.properties=e;for(let e of s)a.accumulated=t[e],t[e]=i[e].evaluate(a,o)},e}(e)).load((yield this._pendingData).features):(i=yield this._pendingData,new ut(i,e.geojsonVtOptions)),this.loaded={};let r={};if(n){let t=n.finish();t&&(r.resourceTiming={},r.resourceTiming[e.source]=JSON.parse(JSON.stringify(t)))}return r}catch(e){if(delete this._pendingRequest,t.bB(e))return{abandoned:!0};throw e}var i}))}getData(){return t._(this,void 0,void 0,(function*(){return this._pendingData}))}reloadTile(t){let e=this.loaded;return e&&e[t.uid]?super.reloadTile(t):this.loadTile(t)}loadAndProcessGeoJSON(e,r){return t._(this,void 0,void 0,(function*(){let n=yield this.loadGeoJSON(e,r);if(delete this._pendingRequest,"object"!=typeof n)throw new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`);if(u(n,!0),e.filter){let r=t.bC(e.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===r.result)throw new Error(r.value.map((t=>`${t.key}: ${t.message}`)).join(", "));n={type:"FeatureCollection",features:n.features.filter((t=>r.value.evaluate({zoom:0},t)))}}return n}))}loadGeoJSON(e,r){return t._(this,void 0,void 0,(function*(){let{promoteId:n}=e;if(e.request){let i=yield t.h(e.request,r);return this._dataUpdateable=ft(i.data,n)?pt(i.data,n):void 0,i.data}if("string"==typeof e.data)try{let t=JSON.parse(e.data);return this._dataUpdateable=ft(t,n)?pt(t,n):void 0,t}catch(t){throw new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`)}if(!e.dataDiff)throw new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${e.source}`);return function(t,e,r){var n,i,a,o;if(e.removeAll&&t.clear(),e.remove)for(let r of e.remove)t.delete(r);if(e.add)for(let n of e.add){let e=ht(n,r);null!=e&&t.set(e,n)}if(e.update)for(let r of e.update){let e=t.get(r.id);if(null==e)continue;let s=!r.removeAllProperties&&((null===(n=r.removeProperties)||void 0===n?void 0:n.length)>0||(null===(i=r.addOrUpdateProperties)||void 0===i?void 0:i.length)>0);if((r.newGeometry||r.removeAllProperties||s)&&(e=Object.assign({},e),t.set(r.id,e),s&&(e.properties=Object.assign({},e.properties))),r.newGeometry&&(e.geometry=r.newGeometry),r.removeAllProperties)e.properties={};else if((null===(a=r.removeProperties)||void 0===a?void 0:a.length)>0)for(let t of r.removeProperties)Object.prototype.hasOwnProperty.call(e.properties,t)&&delete e.properties[t];if((null===(o=r.addOrUpdateProperties)||void 0===o?void 0:o.length)>0)for(let{key:t,value:n}of r.addOrUpdateProperties)e.properties[t]=n}}(this._dataUpdateable,e.dataDiff,n),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}}))}removeSource(e){return t._(this,void 0,void 0,(function*(){this._pendingRequest&&this._pendingRequest.abort()}))}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset)}}class mt{constructor(e){this.self=e,this.actor=new t.F(e),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(t,e)=>{if(this.externalWorkerSourceTypes[t])throw new Error(`Worker source with name "${t}" already registered.`);this.externalWorkerSourceTypes[t]=e},this.self.addProtocol=t.bi,this.self.removeProtocol=t.bj,this.self.registerRTLTextPlugin=e=>{if(t.bD.isParsed())throw new Error("RTL text plugin already registered.");t.bD.setMethods(e)},this.actor.registerMessageHandler("LDT",((t,e)=>this._getDEMWorkerSource(t,e.source).loadTile(e))),this.actor.registerMessageHandler("RDT",((e,r)=>t._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})))),this.actor.registerMessageHandler("GCEZ",((e,r)=>t._(this,void 0,void 0,(function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})))),this.actor.registerMessageHandler("GCC",((e,r)=>t._(this,void 0,void 0,(function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})))),this.actor.registerMessageHandler("GCL",((e,r)=>t._(this,void 0,void 0,(function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})))),this.actor.registerMessageHandler("LD",((t,e)=>this._getWorkerSource(t,e.type,e.source).loadData(e))),this.actor.registerMessageHandler("GD",((t,e)=>this._getWorkerSource(t,e.type,e.source).getData())),this.actor.registerMessageHandler("LT",((t,e)=>this._getWorkerSource(t,e.type,e.source).loadTile(e))),this.actor.registerMessageHandler("RT",((t,e)=>this._getWorkerSource(t,e.type,e.source).reloadTile(e))),this.actor.registerMessageHandler("AT",((t,e)=>this._getWorkerSource(t,e.type,e.source).abortTile(e))),this.actor.registerMessageHandler("RMT",((t,e)=>this._getWorkerSource(t,e.type,e.source).removeTile(e))),this.actor.registerMessageHandler("RS",((e,r)=>t._(this,void 0,void 0,(function*(){if(!this.workerSources[e]||!this.workerSources[e][r.type]||!this.workerSources[e][r.type][r.source])return;let t=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],void 0!==t.removeSource&&t.removeSource(r)})))),this.actor.registerMessageHandler("RM",(e=>t._(this,void 0,void 0,(function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e]})))),this.actor.registerMessageHandler("SR",((e,r)=>t._(this,void 0,void 0,(function*(){this.referrer=r})))),this.actor.registerMessageHandler("SRPS",((t,e)=>this._syncRTLPluginState(t,e))),this.actor.registerMessageHandler("IS",((e,r)=>t._(this,void 0,void 0,(function*(){this.self.importScripts(r)})))),this.actor.registerMessageHandler("SI",((t,e)=>this._setImages(t,e))),this.actor.registerMessageHandler("UL",((e,r)=>t._(this,void 0,void 0,(function*(){this._getLayerIndex(e).update(r.layers,r.removedIds)})))),this.actor.registerMessageHandler("SL",((e,r)=>t._(this,void 0,void 0,(function*(){this._getLayerIndex(e).replace(r)}))))}_setImages(e,r){return t._(this,void 0,void 0,(function*(){this.availableImages[e]=r;for(let t in this.workerSources[e]){let n=this.workerSources[e][t];for(let t in n)n[t].availableImages=r}}))}_syncRTLPluginState(e,r){return t._(this,void 0,void 0,(function*(){if(t.bD.isParsed())return t.bD.getState();if("loading"!==r.pluginStatus)return t.bD.setState(r),r;let e=r.pluginURL;if(this.self.importScripts(e),t.bD.isParsed()){let r={pluginStatus:"loaded",pluginURL:e};return t.bD.setState(r),r}throw t.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${e}`)}))}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let r=this.layerIndexes[t];return r||(r=this.layerIndexes[t]=new e),r}_getWorkerSource(t,e,r){if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){let n={sendAsync:(e,r)=>(e.targetMapId=t,this.actor.sendAsync(e,r))};switch(e){case"vector":this.workerSources[t][e][r]=new a(n,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new dt(n,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](n,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new o),this.demWorkerSources[t][e]}}return t.i(self)&&(self.worker=new mt(self)),mt})),n("index",0,(function(t,e){var r="4.7.1";let n,i,a={now:"undefined"!=typeof performance&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:t=>new Promise(((r,n)=>{let i=requestAnimationFrame(r);t.signal.addEventListener("abort",(()=>{cancelAnimationFrame(i),n(e.c())}))})),getImageData(t,e=0){return this.getImageCanvasContext(t).getImageData(-e,-e,t.width+2*e,t.height+2*e)},getImageCanvasContext(t){let e=window.document.createElement("canvas"),r=e.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return e.width=t.width,e.height=t.height,r.drawImage(t,0,0,t.width,t.height),r},resolveURL:t=>(n||(n=document.createElement("a")),n.href=t,n.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==i&&(i=matchMedia("(prefers-reduced-motion: reduce)")),i.matches)}};class o{static testProp(t){if(!o.docStyle)return t[0];for(let e=0;e{window.removeEventListener("click",o.suppressClickInternal,!0)}),0)}static getScale(t){let e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}static getPoint(t,r,n){let i=r.boundingClientRect;return new e.P((n.clientX-i.left)/r.x-t.clientLeft,(n.clientY-i.top)/r.y-t.clientTop)}static mousePos(t,e){let r=o.getScale(t);return o.getPoint(t,r,e)}static touchPos(t,e){let r=[],n=o.getScale(t);for(let i=0;i{s&&f(s),s=null,h=!0},l.onerror=()=>{c=!0,s=null},l.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(t){let r,n,i,a;t.resetRequestQueue=()=>{r=[],n=0,i=0,a={}},t.addThrottleControl=t=>{let e=i++;return a[e]=t,e},t.removeThrottleControl=t=>{delete a[t],s()},t.getImage=(t,n,i=!0)=>new Promise(((a,o)=>{u.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),e.e(t,{type:"image"}),r.push({abortController:n,requestParameters:t,supportImageRefresh:i,state:"queued",onError:t=>{o(t)},onSuccess:t=>{a(t)}}),s()}));let o=t=>e._(this,void 0,void 0,(function*(){t.state="running";let{requestParameters:r,supportImageRefresh:i,onError:a,onSuccess:o,abortController:u}=t,c=!1===i&&!e.i(self)&&!e.g(r.url)&&(!r.headers||Object.keys(r.headers).reduce(((t,e)=>t&&"accept"===e),!0));n++;let h=c?l(r,u):e.m(r,u);try{let r=yield h;delete t.abortController,t.state="completed",r.data instanceof HTMLImageElement||e.b(r.data)?o(r):r.data&&o({data:yield(f=r.data,"function"==typeof createImageBitmap?e.d(f):e.f(f)),cacheControl:r.cacheControl,expires:r.expires})}catch(e){delete t.abortController,a(e)}finally{n--,s()}var f})),s=()=>{let t=(()=>{for(let t of Object.keys(a))if(a[t]())return!0;return!1})()?e.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:e.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let e=n;e0;e++){let t=r.shift();t.abortController.signal.aborted?e--:o(t)}},l=(t,r)=>new Promise(((n,i)=>{let a=new Image,o=t.url,s=t.credentials;s&&"include"===s?a.crossOrigin="use-credentials":(s&&"same-origin"===s||!e.s(o))&&(a.crossOrigin="anonymous"),r.signal.addEventListener("abort",(()=>{a.src="",i(e.c())})),a.fetchPriority="high",a.onload=()=>{a.onerror=a.onload=null,n({data:a})},a.onerror=()=>{a.onerror=a.onload=null,r.signal.aborted||i(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},a.src=o}))}(p||(p={})),p.resetRequestQueue();class d{constructor(t){this._transformRequestFn=t}transformRequest(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}}function m(t){var r=new e.A(3);return r[0]=t[0],r[1]=t[1],r[2]=t[2],r}var g,y=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t};g=new e.A(3),e.A!=Float32Array&&(g[0]=0,g[1]=0,g[2]=0);var v,x=function(t){var e=t[0],r=t[1];return e*e+r*r};function _(t){let e=[];if("string"==typeof t)e.push({id:"default",url:t});else if(t&&t.length>0){let r=[];for(let{id:n,url:i}of t){let t=`${n}${i}`;-1===r.indexOf(t)&&(r.push(t),e.push({id:n,url:i}))}}return e}function b(t,e,r){let n=t.split("?");return n[0]+=`${e}${r}`,n.join("?")}v=new e.A(2),e.A!=Float32Array&&(v[0]=0,v[1]=0);class w{constructor(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)}update(t,r,n){let{width:i,height:a}=t,o=!(this.size&&this.size[0]===i&&this.size[1]===a||n),{context:s}=this,{gl:l}=s;if(this.useMipmap=!(!r||!r.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!r||!1!==r.premultiply)),o)this.size=[i,a],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.b(t)?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,t):l.texImage2D(l.TEXTURE_2D,0,this.format,i,a,0,this.format,l.UNSIGNED_BYTE,t.data);else{let{x:r,y:o}=n||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.b(t)?l.texSubImage2D(l.TEXTURE_2D,0,r,o,l.RGBA,l.UNSIGNED_BYTE,t):l.texSubImage2D(l.TEXTURE_2D,0,r,o,i,a,l.RGBA,l.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D)}bind(t,e,r){let{context:n}=this,{gl:i}=n;i.bindTexture(i.TEXTURE_2D,this.texture),r!==i.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=i.LINEAR),t!==this.filter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,e),this.wrap=e)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}function T(t){let{userImage:e}=t;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}class k extends e.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:t,promiseResolve:e}of this.requestors)e(this._getImagesForIds(t));this.requestors=[]}}getImage(t){let r=this.images[t];if(r&&!r.data&&r.spriteData){let t=r.spriteData;r.data=new e.R({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),r.spriteData=null}return r}addImage(t,e){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,e)&&(this.images[t]=e)}_validate(t,r){let n=!0,i=r.data||r.spriteData;return this._validateStretch(r.stretchX,i&&i.width)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "stretchX" value`))),n=!1),this._validateStretch(r.stretchY,i&&i.height)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "stretchY" value`))),n=!1),this._validateContent(r.content,r)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "content" value`))),n=!1),n}_validateStretch(t,e){if(!t)return!0;let r=0;for(let n of t){if(n[0]{let n=!0;if(!this.isLoaded())for(let e of t)this.images[e]||(n=!1);this.isLoaded()||n?e(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:e})}))}_getImagesForIds(t){let r={};for(let n of t){let t=this.getImage(n);t||(this.fire(new e.k("styleimagemissing",{id:n})),t=this.getImage(n)),t?r[n]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,textFitWidth:t.textFitWidth,textFitHeight:t.textFitHeight,hasRenderCallback:!(!t.userImage||!t.userImage.render)}:e.w(`Image "${n}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return r}getPixelSize(){let{width:t,height:e}=this.atlasImage;return{width:t,height:e}}getPattern(t){let r=this.patterns[t],n=this.getImage(t);if(!n)return null;if(r&&r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{let r={w:n.data.width+2,h:n.data.height+2,x:0,y:0},i=new e.I(r,n);this.patterns[t]={bin:r,position:i}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){let e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new w(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE)}_updatePatternAtlas(){let t=[];for(let e in this.patterns)t.push(this.patterns[e].bin);let{w:r,h:n}=e.p(t),i=this.atlasImage;i.resize({width:r||1,height:n||1});for(let t in this.patterns){let{bin:r}=this.patterns[t],n=r.x+1,a=r.y+1,o=this.getImage(t).data,s=o.width,l=o.height;e.R.copy(o,i,{x:0,y:0},{x:n,y:a},{width:s,height:l}),e.R.copy(o,i,{x:0,y:l-1},{x:n,y:a-1},{width:s,height:1}),e.R.copy(o,i,{x:0,y:0},{x:n,y:a+l},{width:s,height:1}),e.R.copy(o,i,{x:s-1,y:0},{x:n-1,y:a},{width:1,height:l}),e.R.copy(o,i,{x:0,y:0},{x:n+s,y:a},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let r of t){if(this.callbackDispatchedThisFrame[r])continue;this.callbackDispatchedThisFrame[r]=!0;let t=this.getImage(r);t||e.w(`Image with ID: "${r}" was not found`),T(t)&&this.updateImage(r,t)}}}let A,M=1e20;function S(t,e,r,n,i,a,o,s,l){for(let u=e;u-1);l++,a[l]=s,o[l]=u,o[l+1]=M}for(let s=0,l=0;s65535)throw new Error("glyphs > 65535 not supported");if(e.ranges[i])return{stack:t,id:r,glyph:n};if(!this.url)throw new Error("glyphsUrl is not set");if(!e.requests[i]){let r=C.loadGlyphRange(t,i,this.url,this.requestManager);e.requests[i]=r}let a=yield e.requests[i];for(let t in a)this._doesCharSupportLocalGlyph(+t)||(e.glyphs[+t]=a[+t]);return e.ranges[i]=!0,{stack:t,id:r,glyph:a[r]||null}}))}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(t))}_tinySDF(t,r,n){let i=this.localIdeographFontFamily;if(!i||!this._doesCharSupportLocalGlyph(n))return;let a=t.tinySDF;if(!a){let e="400";/bold/i.test(r)?e="900":/medium/i.test(r)?e="500":/light/i.test(r)&&(e="200"),a=t.tinySDF=new C.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:i,fontWeight:e})}let o=a.draw(String.fromCharCode(n));return{id:n,bitmap:new e.o({width:o.width||60,height:o.height||60},o.data),metrics:{width:o.glyphWidth/2||24,height:o.glyphHeight/2||24,left:o.glyphLeft/2+.5||0,top:o.glyphTop/2-27.5||-8,advance:o.glyphAdvance/2||24,isDoubleResolution:!0}}}}C.loadGlyphRange=function(t,r,n,i){return e._(this,void 0,void 0,(function*(){let a=256*r,o=a+255,s=i.transformRequest(n.replace("{fontstack}",t).replace("{range}",`${a}-${o}`),"Glyphs"),l=yield e.l(s,new AbortController);if(!l||!l.data)throw new Error(`Could not load glyph range. range: ${r}, ${a}-${o}`);let u={};for(let t of e.n(l.data))u[t.id]=t;return u}))},C.TinySDF=class{constructor({fontSize:t=24,buffer:e=3,radius:r=8,cutoff:n=.25,fontFamily:i="sans-serif",fontWeight:a="normal",fontStyle:o="normal"}={}){this.buffer=e,this.cutoff=n,this.radius=r;let s=this.size=t+4*e,l=this._createCanvas(s),u=this.ctx=l.getContext("2d",{willReadFrequently:!0});u.font=`${o} ${a} ${t}px ${i}`,u.textBaseline="alphabetic",u.textAlign="left",u.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(t){let e=document.createElement("canvas");return e.width=e.height=t,e}draw(t){let{width:e,actualBoundingBoxAscent:r,actualBoundingBoxDescent:n,actualBoundingBoxLeft:i,actualBoundingBoxRight:a}=this.ctx.measureText(t),o=Math.ceil(r),s=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a-i))),l=Math.min(this.size-this.buffer,o+Math.ceil(n)),u=s+2*this.buffer,c=l+2*this.buffer,h=Math.max(u*c,0),f=new Uint8ClampedArray(h),p={data:f,width:u,height:c,glyphWidth:s,glyphHeight:l,glyphTop:o,glyphLeft:0,glyphAdvance:e};if(0===s||0===l)return p;let{ctx:d,buffer:m,gridInner:g,gridOuter:y}=this;d.clearRect(m,m,s,l),d.fillText(t,m,m+o);let v=d.getImageData(m,m,s,l);y.fill(M,0,h),g.fill(0,0,h);for(let t=0;t0?t*t:0,g[n]=t<0?t*t:0}}S(y,0,0,u,c,u,this.f,this.v,this.z),S(g,m,m,s,l,u,this.f,this.v,this.z);for(let t=0;t1&&(o=t[++a]);let l,u=Math.abs(s-o.left),c=Math.abs(s-o.right),h=Math.min(u,c),f=e/r*(n+1);if(o.isDash){let t=n-Math.abs(f);l=Math.sqrt(h*h+t*t)}else l=n-Math.sqrt(h*h+f*f);this.data[i+s]=Math.max(0,Math.min(255,l+128))}}}addRegularDash(t){for(let e=t.length-1;e>=0;--e){let r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&&n.isDash===r.isDash&&(n.left=r.left,t.splice(e,1))}let e=t[0],r=t[t.length-1];e.isDash===r.isDash&&(e.left=r.left-this.width,r.right=e.right+this.width);let n=this.width*this.nextRow,i=0,a=t[i];for(let e=0;e1&&(a=t[++i]);let r=Math.abs(e-a.left),o=Math.abs(e-a.right),s=Math.min(r,o);this.data[n+e]=Math.max(0,Math.min(255,(a.isDash?s:-s)+128))}}addDash(t,r){let n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return e.w("LineAtlas out of space"),null;let a=0;for(let e=0;e{t.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[D]}numActive(){return Object.keys(this.active).length}}let F,B,N=Math.floor(a.hardwareConcurrency/2);function j(){return F||(F=new R),F}R.workerCount=e.C(globalThis)?Math.max(Math.min(N,3),1):1;class U{constructor(t,r){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=r;let n=this.workerPool.acquire(r);for(let t=0;t{t.remove()})),this.actors=[],t&&this.workerPool.release(this.id)}registerMessageHandler(t,e){for(let r of this.actors)r.registerMessageHandler(t,e)}}function V(){return B||(B=new U(j(),e.G),B.registerMessageHandler("GR",((t,r,n)=>e.m(r,n)))),B}function q(t,r){let n=e.H();return e.J(n,n,[1,1,0]),e.K(n,n,[.5*t.width,.5*t.height,1]),e.L(n,n,t.calculatePosMatrix(r.toUnwrapped()))}function H(t,e,r,n,i,a){let o=function(t,e,r){if(t)for(let n of t){let t=e[n];if(t&&t.source===r&&"fill-extrusion"===t.type)return!0}else for(let t in e){let n=e[t];if(n.source===r&&"fill-extrusion"===n.type)return!0}return!1}(i&&i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(G);let u=[];for(let n of l)u.push({wrappedTileID:n.tileID.wrapped().key,queryResults:n.tile.queryRenderedFeatures(e,r,t._state,n.queryGeometry,n.cameraQueryGeometry,n.scale,i,a,s,q(t.transform,n.tileID))});let c=function(t){let e={},r={};for(let n of t){let t=n.queryResults,i=n.wrappedTileID,a=r[i]=r[i]||{};for(let r in t){let n=t[r],i=a[r]=a[r]||{},o=e[r]=e[r]||[];for(let t of n)i[t.featureIndex]||(i[t.featureIndex]=!0,o.push(t))}}return e}(u);for(let e in c)c[e].forEach((e=>{let r=e.feature,n=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=n}));return c}function G(t,e){let r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}function Z(t,r,n){return e._(this,void 0,void 0,(function*(){let i=t;if(t.url?i=(yield e.h(r.transformRequest(t.url,"Source"),n)).data:yield a.frameAsync(n),!i)return null;let o=e.M(e.e(i,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in i&&i.vector_layers&&(o.vectorLayerIds=i.vector_layers.map((t=>t.id))),o}))}class W{constructor(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):Array.isArray(t)&&(4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof e.N?new e.N(t.lng,t.lat):e.N.convert(t),this}setSouthWest(t){return this._sw=t instanceof e.N?new e.N(t.lng,t.lat):e.N.convert(t),this}extend(t){let r,n,i=this._sw,a=this._ne;if(t instanceof e.N)r=t,n=t;else{if(!(t instanceof W))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(W.convert(t)):this.extend(e.N.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(e.N.convert(t)):this;if(r=t._sw,n=t._ne,!r||!n)return this}return i||a?(i.lng=Math.min(r.lng,i.lng),i.lat=Math.min(r.lat,i.lat),a.lng=Math.max(n.lng,a.lng),a.lat=Math.max(n.lat,a.lat)):(this._sw=new e.N(r.lng,r.lat),this._ne=new e.N(n.lng,n.lat)),this}getCenter(){return new e.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new e.N(this.getWest(),this.getNorth())}getSouthEast(){return new e.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:n}=e.N.convert(t),i=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=r&&r>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&i}static convert(t){return t instanceof W?t:t&&new W(t)}static fromLngLat(t,r=0){let n=360*r/40075017,i=n/Math.cos(Math.PI/180*t.lat);return new W(new e.N(t.lng-i,t.lat-n),new e.N(t.lng+i,t.lat+n))}adjustAntiMeridian(){let t=new e.N(this._sw.lng,this._sw.lat),r=new e.N(this._ne.lng,this._ne.lat);return new W(t,t.lng>r.lng?new e.N(r.lng+360,r.lat):r)}}class Y{constructor(t,e,r){this.bounds=W.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=r||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let r=Math.pow(2,t.z),n=Math.floor(e.O(this.bounds.getWest())*r),i=Math.floor(e.Q(this.bounds.getNorth())*r),a=Math.ceil(e.O(this.bounds.getEast())*r),o=Math.ceil(e.Q(this.bounds.getSouth())*r);return t.x>=n&&t.x=i&&t.y{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return e.e({},this._options)}loadTile(t){return e._(this,void 0,void 0,(function*(){let e=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:this.map._requestManager.transformRequest(e,"Tile"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};r.request.collectResourceTiming=this._collectResourceTiming;let n="RT";if(t.actor&&"expired"!==t.state){if("loading"===t.state)return new Promise(((e,r)=>{t.reloadPromise={resolve:e,reject:r}}))}else t.actor=this.dispatcher.getActor(),n="LT";t.abortController=new AbortController;try{let e=yield t.actor.sendAsync({type:n,data:r},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,e)}catch(e){if(delete t.abortController,t.aborted)return;if(e&&404!==e.status)throw e;this._afterTileLoadWorkerResponse(t,null)}}))}_afterTileLoadWorkerResponse(t,e){if(e&&e.resourceTiming&&(t.resourceTiming=e.resourceTiming),e&&this.map._refreshExpiredTiles&&t.setExpiryData(e),t.loadVectorData(e,this.map.painter),t.reloadPromise){let e=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(e.resolve).catch(e.reject)}}abortTile(t){return e._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&(yield t.actor.sendAsync({type:"AT",data:{uid:t.uid,type:this.type,source:this.id}}))}))}unloadTile(t){return e._(this,void 0,void 0,(function*(){t.unloadVectorData(),t.actor&&(yield t.actor.sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class $ extends e.E{constructor(t,r,n,i){super(),this.id=t,this.dispatcher=n,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.e({type:"raster"},r),e.e(this,e.M(r,["url","scheme","tileSize"]))}load(){return e._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let t=yield Z(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,t&&(e.e(this,t),t.bounds&&(this.tileBounds=new Y(t.bounds,this.minzoom,this.maxzoom)),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})))}catch(t){this._tileJSONRequest=null,this.fire(new e.j(t))}}))}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(t){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),t(),this.load()}setTiles(t){return this.setSourceProperty((()=>{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}serialize(){return e.e({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t){return e._(this,void 0,void 0,(function*(){let e=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.abortController=new AbortController;try{let r=yield p.getImage(this.map._requestManager.transformRequest(e,"Tile"),t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state="unloaded");if(r&&r.data){this.map._refreshExpiredTiles&&r.cacheControl&&r.expires&&t.setExpiryData({cacheControl:r.cacheControl,expires:r.expires});let e=this.map.painter.context,n=e.gl,i=r.data;t.texture=this.map.painter.getTileTexture(i.width),t.texture?t.texture.update(i,{useMipmap:!0}):(t.texture=new w(e,i,n.RGBA,{useMipmap:!0}),t.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_NEAREST)),t.state="loaded"}}catch(e){if(delete t.abortController,t.aborted)t.state="unloaded";else if(e)throw t.state="errored",e}}))}abortTile(t){return e._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController)}))}unloadTile(t){return e._(this,void 0,void 0,(function*(){t.texture&&this.map.painter.saveTileTexture(t.texture)}))}hasTransition(){return!1}}class J extends ${constructor(t,r,n,i){super(t,r,n,i),this.type="raster-dem",this.maxzoom=22,this._options=e.e({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox",this.redFactor=r.redFactor,this.greenFactor=r.greenFactor,this.blueFactor=r.blueFactor,this.baseShift=r.baseShift}loadTile(t){return e._(this,void 0,void 0,(function*(){let r=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n=this.map._requestManager.transformRequest(r,"Tile");t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let r=yield p.getImage(n,t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state="unloaded");if(r&&r.data){let n=r.data;this.map._refreshExpiredTiles&&r.cacheControl&&r.expires&&t.setExpiryData({cacheControl:r.cacheControl,expires:r.expires});let i=e.b(n)&&e.U()?n:yield this.readImageNow(n),a={type:this.type,uid:t.uid,source:this.id,rawImageData:i,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!t.actor||"expired"===t.state){t.actor=this.dispatcher.getActor();let e=yield t.actor.sendAsync({type:"LDT",data:a});t.dem=e,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded"}}}catch(e){if(delete t.abortController,t.aborted)t.state="unloaded";else if(e)throw t.state="errored",e}}))}readImageNow(t){return e._(this,void 0,void 0,(function*(){if("undefined"!=typeof VideoFrame&&e.V()){let r=t.width+2,n=t.height+2;try{return new e.R({width:r,height:n},yield e.W(t,-1,-1,r,n))}catch(t){}}return a.getImageData(t,1)}))}_getNeighboringTiles(t){let r=t.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?t.wrap-1:t.wrap,o=(r.x+1+n)%n,s=r.x+1===n?t.wrap+1:t.wrap,l={};return l[new e.S(t.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new e.S(t.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y>0&&(l[new e.S(t.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new e.S(t.overscaledZ,t.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new e.S(t.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+10&&e.e(i,{resourceTiming:n}),this.fire(new e.k("data",Object.assign(Object.assign({},i),{sourceDataType:"metadata"}))),this.fire(new e.k("data",Object.assign(Object.assign({},i),{sourceDataType:"content"})))}catch(t){if(this._pendingLoads--,this._removed)return void this.fire(new e.k("dataabort",{dataType:"source"}));this.fire(new e.j(t))}}))}loaded(){return 0===this._pendingLoads}loadTile(t){return e._(this,void 0,void 0,(function*(){let e=t.actor?"RT":"LT";t.actor=this.actor;let r={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.abortController=new AbortController;let n=yield this.actor.sendAsync({type:e,data:r},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(n,this.map.painter,"RT"===e)}))}abortTile(t){return e._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}))}unloadTile(t){return e._(this,void 0,void 0,(function*(){t.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return e.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Q=e.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class tt extends e.E{constructor(t,e,r,n){super(),this.id=t,this.dispatcher=r,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=e}load(t){return e._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let e=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,e&&e.data&&(this.image=e.data,t&&(this.coordinates=t),this._finishLoading())}catch(t){this._request=null,this._loaded=!0,this.fire(new e.j(t))}}))}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=t.url,this.load(t.coordinates).finally((()=>{this.texture=null})),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(t){this.coordinates=t;let r=t.map(e.Z.fromLngLat);this.tileID=function(t){let r=1/0,n=1/0,i=-1/0,a=-1/0;for(let e of t)r=Math.min(r,e.x),n=Math.min(n,e.y),i=Math.max(i,e.x),a=Math.max(a,e.y);let o=Math.max(i-r,a-n),s=Math.max(0,Math.floor(-Math.log(o)/Math.LN2)),l=Math.pow(2,s);return new e.a1(s,Math.floor((r+i)/2*l),Math.floor((n+a)/2*l))}(r),this.minzoom=this.maxzoom=this.tileID.z;let n=r.map((t=>this.tileID.getTilePoint(t)._round()));return this._boundsArray=new e.$,this._boundsArray.emplaceBack(n[0].x,n[0].y,0,0),this._boundsArray.emplaceBack(n[1].x,n[1].y,e.X,0),this._boundsArray.emplaceBack(n[3].x,n[3].y,0,e.X),this._boundsArray.emplaceBack(n[2].x,n[2].y,e.X,e.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let t=this.map.painter.context,r=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,Q.members)),this.boundsSegments||(this.boundsSegments=e.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new w(t,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let n=!1;for(let t in this.tiles){let e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture,n=!0)}n&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(t){return e._(this,void 0,void 0,(function*(){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state="errored"}))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class et extends tt{constructor(t,e,r,n){super(t,e,r,n),this.roundZoom=!0,this.type="video",this.options=e}load(){return e._(this,void 0,void 0,(function*(){this._loaded=!1;let t=this.options;this.urls=[];for(let e of t.urls)this.urls.push(this.map._requestManager.transformRequest(e,"Source").url);try{let t=yield e.a3(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new e.j(t))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let r=this.video.seekable;tr.end(0)?this.fire(new e.j(new e.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${r.start(0)} and ${r.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let t=this.map.painter.context,r=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,Q.members)),this.boundsSegments||(this.boundsSegments=e.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new w(t,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let n=!1;for(let t in this.tiles){let e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture,n=!0)}n&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class rt extends tt{constructor(t,r,n,i){super(t,r,n,i),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((t=>!Array.isArray(t)||2!==t.length||t.some((t=>"number"!=typeof t))))||this.fire(new e.j(new e.a2(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.j(new e.a2(`sources.${t}`,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.j(new e.a2(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof HTMLCanvasElement||this.fire(new e.j(new e.a2(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.j(new e.a2(`sources.${t}`,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}load(){return e._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let r=this.map.painter.context,n=r.gl;this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,Q.members)),this.boundsSegments||(this.boundsSegments=e.a0.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new w(r,this.canvas,n.RGBA,{premultiply:!0});let i=!1;for(let t in this.tiles){let e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture,i=!0)}i&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}let nt={},it=t=>{switch(t){case"geojson":return K;case"image":return tt;case"raster":return $;case"raster-dem":return J;case"vector":return X;case"video":return et;case"canvas":return rt}return nt[t]},at="RTLPluginLoaded";class ot extends e.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=V()}_syncState(t){return this.status=t,this.dispatcher.broadcast("SRPS",{pluginStatus:t,pluginURL:this.url}).catch((t=>{throw this.status="error",t}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(t){return e._(this,arguments,void 0,(function*(t,e=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=a.resolveURL(t),!this.url)throw new Error(`requested url ${t} is invalid`);if("unavailable"===this.status){if(!e)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if("requested"===this.status)return this._requestImport()}))}_requestImport(){return e._(this,void 0,void 0,(function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new e.k(at))}))}lazyLoad(){"unavailable"===this.status?this.status="requested":"deferred"===this.status&&this._requestImport()}}let st=null;function lt(){return st||(st=new ot),st}class ut{constructor(t,r){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=e.a4(),this.uses=0,this.tileSize=r,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){let e=t+this.timeAdded;ee.getLayer(t))).filter(Boolean);if(0!==t.length){n.layers=t,n.stateDependentLayerIds&&(n.stateDependentLayers=n.stateDependentLayerIds.map((e=>t.filter((t=>t.id===e))[0])));for(let e of t)r[e.id]=n}}return r}(t.buckets,r.style),this.hasSymbolBuckets=!1;for(let t in this.buckets){let r=this.buckets[t];if(r instanceof e.a6){if(this.hasSymbolBuckets=!0,!n)break;r.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let t in this.buckets){let r=this.buckets[t];if(r instanceof e.a6&&r.hasRTLText){this.hasRTLText=!0,lt().lazyLoad();break}}this.queryPadding=0;for(let t in this.buckets){let e=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,r.style.getLayer(t).queryRadius(e))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new e.a5}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(let e in this.buckets){let r=this.buckets[e];r.uploadPending()&&r.upload(t)}let e=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new w(t,this.imageAtlas.image,e.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new w(t,this.glyphAtlasImage,e.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,e,r,n,i,a,o,s,l,u){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}}querySourceFeatures(t,r){let n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;let i=n.loadVTLayers(),a=r&&r.sourceLayer?r.sourceLayer:"",o=i._geojsonTileLayer||i[a];if(!o)return;let s=e.a7(r&&r.filter),{z:l,x:u,y:c}=this.tileID.canonical,h={z:l,x:u,y:c};for(let r=0;rt)e=!1;else if(r)if(this.expirationTime{this.remove(t,i)}),r)),this.data[n].push(i),this.order.push(n),this.order.length>this.max){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){let e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value}getByKey(t){let e=this.data[t];return e?e[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,e){if(!this.has(t))return this;let r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){let e=[];for(let r in this.data)for(let n of this.data[r])t(n.value)||e.push(n);for(let t of e)this.remove(t.value.tileID,t)}}class ht{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,r,n){let i=String(r);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},e.e(this.stateChanges[t][i],n),null===this.deletedStates[t]){this.deletedStates[t]={};for(let e in this.state[t])e!==i&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][i]){this.deletedStates[t][i]={};for(let e in this.state[t][i])n[e]||(this.deletedStates[t][i][e]=null)}else for(let e in n)this.deletedStates[t]&&this.deletedStates[t][i]&&null===this.deletedStates[t][i][e]&&delete this.deletedStates[t][i][e]}removeFeatureState(t,e,r){if(null===this.deletedStates[t])return;let n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&&void 0!==e)null!==this.deletedStates[t][n]&&(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}getState(t,r){let n=String(r),i=e.e({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){let e=this.deletedStates[t][r];if(null===e)return{};for(let t in e)delete i[t]}return i}initializeTileState(t,e){t.setFeatureState(this.state,e)}coalesceChanges(t,r){let n={};for(let t in this.stateChanges){this.state[t]=this.state[t]||{};let r={};for(let n in this.stateChanges[t])this.state[t][n]||(this.state[t][n]={}),e.e(this.state[t][n],this.stateChanges[t][n]),r[n]=this.state[t][n];n[t]=r}for(let t in this.deletedStates){this.state[t]=this.state[t]||{};let r={};if(null===this.deletedStates[t])for(let e in this.state[t])r[e]={},this.state[t][e]={};else for(let e in this.deletedStates[t]){if(null===this.deletedStates[t][e])this.state[t][e]={};else for(let r of Object.keys(this.deletedStates[t][e]))delete this.state[t][e][r];r[e]=this.state[t][e]}n[t]=n[t]||{},e.e(n[t],r)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(let e in t)t[e].setFeatureState(n,r)}}class ft extends e.E{constructor(t,e,r){super(),this.id=t,this.dispatcher=r,this.on("data",(t=>this._dataHandler(t))),this.on("dataloading",(()=>{this._sourceErrored=!1})),this.on("error",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((t,e,r,n)=>{let i=new(it(e.type))(t,e,r,n);if(i.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${i.id}`);return i})(t,e,r,this),this._tiles={},this._cache=new ct(0,(t=>this._unloadTile(t))),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new ht,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(t)}onRemove(t){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(t)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let t in this._tiles){let e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,n){return e._(this,void 0,void 0,(function*(){try{yield this._source.loadTile(t),this._tileLoaded(t,r,n)}catch(r){t.state="errored",404!==r.status?this._source.fire(new e.j(r,{tile:t})):this.update(this.transform,this.terrain)}}))}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new e.k("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let e in this._tiles){let r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map((t=>t.tileID)).sort(pt).map((t=>t.key))}getRenderableIds(t){let r=[];for(let e in this._tiles)this._isIdRenderable(e,t)&&r.push(this._tiles[e]);return t?r.sort(((t,r)=>{let n=t.tileID,i=r.tileID,a=new e.P(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new e.P(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-i.overscaledZ||o.y-a.y||o.x-a.x})).map((t=>t.tileID.key)):r.map((t=>t.tileID)).sort(pt).map((t=>t.key))}hasRenderableParent(t){let e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)}_isIdRenderable(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")}}_reloadTile(t,r){return e._(this,void 0,void 0,(function*(){let e=this._tiles[t];e&&("loading"!==e.state&&(e.state=r),yield this._loadTile(e,t,r))}))}_tileLoaded(t,r,n){t.timeAdded=a.now(),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new e.k("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(t){let e=this.getRenderableIds();for(let n=0;n1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,e,r,n){for(let i in this._tiles){let a=this._tiles[i];if(n[i]||!a.hasData()||a.tileID.overscaledZ<=e||a.tileID.overscaledZ>r)continue;let o=a.tileID;for(;a&&a.tileID.overscaledZ>e+1;){let t=a.tileID.scaledTo(a.tileID.overscaledZ-1);a=this._tiles[t.key],a&&a.hasData()&&(o=t)}let s=o;for(;s.overscaledZ>e;)if(s=s.scaledTo(s.overscaledZ-1),t[s.key]){n[o.key]=o;break}}}findLoadedParent(t,e){if(t.key in this._loadedParentTiles){let r=this._loadedParentTiles[t.key];return r&&r.tileID.overscaledZ>=e?r:null}for(let r=t.overscaledZ-1;r>=e;r--){let e=t.scaledTo(r),n=this._getLoadedTile(e);if(n)return n}}findLoadedSibling(t){return this._getLoadedTile(t)}_getLoadedTile(t){let e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)}updateCacheSize(t){let r=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,i=Math.floor(r*n*(null===this._maxTileCacheZoomLevels?e.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(a)}handleWrapJump(t){let e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){let t={};for(let r in this._tiles){let n=this._tiles[r];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+e),t[n.tileID.key]=n}this._tiles=t;for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t in this._tiles)this._setTileReloadTimer(t,this._tiles[t])}}_updateCoveredAndRetainedTiles(t,e,r,n,i,o){let s={},l={},u=Object.keys(t),c=a.now();for(let r of u){let n=t[r],i=this._tiles[r];if(!i||0!==i.fadeEndTime&&i.fadeEndTime<=c)continue;let a=this.findLoadedParent(n,e),o=this.findLoadedSibling(n),u=a||o||null;u&&(this._addTile(u.tileID),s[u.tileID.key]=u.tileID),l[r]=n}this._retainLoadedChildren(l,n,r,t);for(let e in s)t[e]||(this._coveredTiles[e]=!0,t[e]=s[e]);if(o){let e={},r={};for(let t of i)this._tiles[t.key].hasData()?e[t.key]=t:r[t.key]=t;for(let n in r){let i=r[n].children(this._source.maxzoom);this._tiles[i[0].key]&&this._tiles[i[1].key]&&this._tiles[i[2].key]&&this._tiles[i[3].key]&&(e[i[0].key]=t[i[0].key]=i[0],e[i[1].key]=t[i[1].key]=i[1],e[i[2].key]=t[i[2].key]=i[2],e[i[3].key]=t[i[3].key]=i[3],delete r[n])}for(let n in r){let i=r[n],a=this.findLoadedParent(i,this._source.minzoom),o=this.findLoadedSibling(i),s=a||o||null;if(s){e[s.tileID.key]=t[s.tileID.key]=s.tileID;for(let t in e)e[t].isChildOf(s.tileID)&&delete e[t]}}for(let t in this._tiles)e[t]||(this._coveredTiles[t]=!0)}}update(t,r){if(!this._sourceLoaded||this._paused)return;let n;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((t=>new e.S(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y))):(n=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r}),this._source.hasTile&&(n=n.filter((t=>this._source.hasTile(t))))):n=[];let i=t.coveringZoomLevel(this._source),a=Math.max(i-ft.maxOverzooming,this._source.minzoom),o=Math.max(i+ft.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let t={};for(let e of n)if(e.canonical.z>this._source.minzoom){let r=e.scaledTo(e.canonical.z-1);t[r.key]=r;let n=e.scaledTo(Math.max(this._source.minzoom,Math.min(e.canonical.z,5)));t[n.key]=n}n=n.concat(Object.values(t))}let s=0===n.length&&!this._updated&&this._didEmitContent;this._updated=!0,s&&this.fire(new e.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let l=this._updateRetainedTiles(n,i);dt(this._source.type)&&this._updateCoveredAndRetainedTiles(l,a,o,i,n,r);for(let t in l)this._tiles[t].clearFadeHold();let u=e.ab(this._tiles,l);for(let t of u){let e=this._tiles[t];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(t)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)}_updateRetainedTiles(t,e){var r;let n={},i={},a=Math.max(e-ft.maxOverzooming,this._source.minzoom),o=Math.max(e+ft.maxUnderzooming,this._source.minzoom),s={};for(let r of t){let t=this._addTile(r);n[r.key]=r,t.hasData()||ethis._source.maxzoom){let t=o.children(this._source.maxzoom)[0],e=this.getTile(t);if(e&&e.hasData()){n[t.key]=t;continue}}else{let t=o.children(this._source.maxzoom);if(n[t[0].key]&&n[t[1].key]&&n[t[2].key]&&n[t[3].key])continue}let s=t.wasRequested();for(let e=o.overscaledZ-1;e>=a;--e){let a=o.scaledTo(e);if(i[a.key])break;if(i[a.key]=!0,t=this.getTile(a),!t&&s&&(t=this._addTile(a)),t){let e=t.hasData();if((e||!(null!==(r=this.map)&&void 0!==r&&r.cancelPendingTileRequestsWhileZooming)||s)&&(n[a.key]=a),s=t.wasRequested(),e)break}}}return n}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let t in this._tiles){let e,r=[],n=this._tiles[t].tileID;for(;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){e=this._loadedParentTiles[n.key];break}r.push(n.key);let t=n.scaledTo(n.overscaledZ-1);if(e=this._getLoadedTile(t),e)break;n=t}for(let t of r)this._loadedParentTiles[t]=e}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let t in this._tiles){let e=this._tiles[t].tileID,r=this._getLoadedTile(e);this._loadedSiblingTiles[e.key]=r}}_addTile(t){let r=this._tiles[t.key];if(r)return r;r=this._cache.getAndRemove(t),r&&(this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,r)));let n=r;return r||(r=new ut(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state)),r.uses++,this._tiles[t.key]=r,n||this._source.fire(new e.k("dataloading",{tile:r,coord:r.tileID,dataType:"source"})),r}_setTileReloadTimer(t,e){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);let r=e.getExpiryTimeout();r&&(this._timers[t]=setTimeout((()=>{this._reloadTile(t,"expired"),delete this._timers[t]}),r))}_removeTile(t){let e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))}_dataHandler(t){let e=t.sourceDataType;"source"===t.dataType&&"metadata"===e&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===t.dataType&&"content"===e&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let t in this._tiles)this._removeTile(t);this._cache.reset()}tilesIn(t,r,n){let i=[],a=this.transform;if(!a)return i;let o=n?a.getCameraQueryGeometry(t):t,s=t.map((t=>a.pointCoordinate(t,this.terrain))),l=o.map((t=>a.pointCoordinate(t,this.terrain))),u=this.getIds(),c=1/0,h=1/0,f=-1/0,p=-1/0;for(let t of l)c=Math.min(c,t.x),h=Math.min(h,t.y),f=Math.max(f,t.x),p=Math.max(p,t.y);for(let t=0;t=0&&g[1].y+m>=0){let t=s.map((t=>o.getTilePoint(t))),e=l.map((t=>o.getTilePoint(t)));i.push({tile:n,tileID:o,queryGeometry:t,cameraQueryGeometry:e,scale:d})}}return i}getVisibleCoordinates(t){let e=this.getRenderableIds(t).map((t=>this._tiles[t].tileID));for(let t of e)t.posMatrix=this.transform.calculatePosMatrix(t.toUnwrapped());return e}hasTransition(){if(this._source.hasTransition())return!0;if(dt(this._source.type)){let t=a.now();for(let e in this._tiles)if(this._tiles[e].fadeEndTime>=t)return!0}return!1}setFeatureState(t,e,r){this._state.updateState(t=t||"_geojsonTileLayer",e,r)}removeFeatureState(t,e,r){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,r)}getFeatureState(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)}setDependencies(t,e,r){let n=this._tiles[t];n&&n.setDependencies(e,r)}reloadTilesForDependencies(t,e){for(let r in this._tiles)this._tiles[r].hasDependency(t,e)&&this._reloadTile(r,"reloading");this._cache.filter((r=>!r.hasDependency(t,e)))}}function pt(t,e){let r=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function dt(t){return"raster"===t||"image"===t||"video"===t}ft.maxOverzooming=10,ft.maxUnderzooming=3;class mt{constructor(t,e){this.reset(t,e)}reset(t,e){this.points=t||[],this._distances=[0];for(let t=1;t0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))}}function gt(t,e){let r=!0;return"always"===t||"never"!==t&&"never"!==e||(r=!1),r}class yt{constructor(t,e,r){let n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(let t=0;tthis.width||n<0||e>this.height)return[];let s=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return[{key:null,x1:t,y1:e,x2:r,y2:n}];for(let t=0;t0}hitTestCircle(t,e,r,n,i){let a=t-r,o=t+r,s=e-r,l=e+r;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,u,{hitTest:!0,overlapMode:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),u.length>0}_queryCell(t,e,r,n,i,a,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,h=this.boxCells[i];if(null!==h){let i=this.bboxes;for(let o of h)if(!l.box[o]){l.box[o]=!0;let h=4*o,f=this.boxKeys[o];if(t<=i[h+2]&&e<=i[h+3]&&r>=i[h+0]&&n>=i[h+1]&&(!s||s(f))&&(!u||!gt(c,f.overlapMode))&&(a.push({key:f,x1:i[h],y1:i[h+1],x2:i[h+2],y2:i[h+3]}),u))return!0}}let f=this.circleCells[i];if(null!==f){let i=this.circles;for(let o of f)if(!l.circle[o]){l.circle[o]=!0;let h=3*o,f=this.circleKeys[o];if(this._circleAndRectCollide(i[h],i[h+1],i[h+2],t,e,r,n)&&(!s||s(f))&&(!u||!gt(c,f.overlapMode))){let t=i[h],e=i[h+1],r=i[h+2];if(a.push({key:f,x1:t-r,y1:e-r,x2:t+r,y2:e+r}),u)return!0}}}return!1}_queryCellCircle(t,e,r,n,i,a,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,h=this.boxCells[i];if(null!==h){let t=this.bboxes;for(let e of h)if(!u.box[e]){u.box[e]=!0;let r=4*e,n=this.boxKeys[e];if(this._circleAndRectCollide(l.x,l.y,l.radius,t[r+0],t[r+1],t[r+2],t[r+3])&&(!s||s(n))&&!gt(c,n.overlapMode))return a.push(!0),!0}}let f=this.circleCells[i];if(null!==f){let t=this.circles;for(let e of f)if(!u.circle[e]){u.circle[e]=!0;let r=3*e,n=this.circleKeys[e];if(this._circlesCollide(t[r],t[r+1],t[r+2],l.x,l.y,l.radius)&&(!s||s(n))&&!gt(c,n.overlapMode))return a.push(!0),!0}}}_forEachCell(t,e,r,n,i,a,o,s){let l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(r),h=this._convertToYCellCoord(n);for(let f=l;f<=c;f++)for(let l=u;l<=h;l++)if(i.call(this,t,e,r,n,this.xCellCount*l+f,a,o,s))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,e,r,n,i,a){let o=n-t,s=i-e,l=r+a;return l*l>o*o+s*s}_circleAndRectCollide(t,e,r,n,i,a,o){let s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;let u=(o-i)/2,c=Math.abs(e-(i+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;let h=l-s,f=c-u;return h*h+f*f<=r*r}}function vt(t,r,n,i,a){let o=e.H();return r?(e.K(o,o,[1/a,1/a,1]),n||e.ad(o,o,i.angle)):e.L(o,i.labelPlaneMatrix,t),o}function xt(t,r,n,i,a){if(r){let r=e.ae(t);return e.K(r,r,[a,a,1]),n||e.ad(r,r,-i.angle),r}return i.glCoordMatrix}function _t(t,r,n,i){let a;i?(a=[t,r,i(t,r),1],e.af(a,a,n)):(a=[t,r,0,1],Dt(a,a,n));let o=a[3];return{point:new e.P(a[0]/o,a[1]/o),signedDistanceFromCamera:o,isOccluded:!1}}function bt(t,e){return.5+t/e*.5}function wt(t,e){return t.x>=-e[0]&&t.x<=e[0]&&t.y>=-e[1]&&t.y<=e[1]}function Tt(t,r,n,i,a,o,s,l,u,c,h,f,p,d,m){let g=i?t.textSizeData:t.iconSizeData,y=e.ag(g,n.transform.zoom),v=[256/n.width*2+1,256/n.height*2+1],x=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;x.clear();let _=t.lineVertexArray,b=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,w=n.transform.width/n.transform.height,T=!1;for(let i=0;iMath.abs(n.x-r.x)*i?{useVertical:!0}:(t===e.ah.vertical?r.yn.x)?{needsFlipping:!0}:null}function Mt(t,r,n,i,a,o,s,l,u,c,h){let f,p=n/24,d=r.lineOffsetX*p,m=r.lineOffsetY*p;if(r.numGlyphs>1){let e=r.glyphStartIndex+r.numGlyphs,n=r.lineStartIndex,o=r.lineStartIndex+r.lineLength,u=kt(p,l,d,m,i,r,h,t);if(!u)return{notEnoughRoom:!0};let g=_t(u.first.point.x,u.first.point.y,s,t.getElevation).point,y=_t(u.last.point.x,u.last.point.y,s,t.getElevation).point;if(a&&!i){let t=At(r.writingMode,g,y,c);if(t)return t}f=[u.first];for(let a=r.glyphStartIndex+1;a0?s.point:St(t.tileAnchorPoint,a,n,1,o,t),u=At(r.writingMode,n,l,c);if(u)return u}let n=Pt(p*l.getoffsetX(r.glyphStartIndex),d,m,i,r.segment,r.lineStartIndex,r.lineStartIndex+r.lineLength,t,h);if(!n||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};f=[n]}for(let t of f)e.aj(u,t.point,t.angle);return{}}function St(t,e,r,n,i,a){let o=t.add(t.sub(e)._unit()),s=void 0!==i?_t(o.x,o.y,i,a.getElevation).point:Ct(o.x,o.y,a).point,l=r.sub(s);return r.add(l._mult(n/l.mag()))}function Et(t,r,n){let i=r.projectionCache;if(i.projections[t])return i.projections[t];let a=new e.P(r.lineVertexArray.getx(t),r.lineVertexArray.gety(t)),o=Ct(a.x,a.y,r);if(o.signedDistanceFromCamera>0)return i.projections[t]=o.point,i.anyProjectionOccluded=i.anyProjectionOccluded||o.isOccluded,o.point;let s=t-n.direction;return St(0===n.distanceFromAnchor?r.tileAnchorPoint:new e.P(r.lineVertexArray.getx(s),r.lineVertexArray.gety(s)),a,n.previousVertex,n.absOffsetX-n.distanceFromAnchor+1,void 0,r)}function Ct(t,e,r){let n,i=t+r.translation[0],a=e+r.translation[1];return!r.pitchWithMap&&r.projection.useSpecialProjectionForSymbols?(n=r.projection.projectTileCoordinates(i,a,r.unwrappedTileID,r.getElevation),n.point.x=(.5*n.point.x+.5)*r.width,n.point.y=(.5*-n.point.y+.5)*r.height):(n=_t(i,a,r.labelPlaneMatrix,r.getElevation),n.isOccluded=!1),n}function It(t,e,r){return t._unit()._perp()._mult(e*r)}function Lt(t,r,n,i,a,o,s,l,u){if(l.projectionCache.offsets[t])return l.projectionCache.offsets[t];let c=n.add(r);if(t+u.direction=a)return l.projectionCache.offsets[t]=c,c;let h=Et(t+u.direction,l,u),f=It(h.sub(n),s,u.direction),p=n.add(f),d=h.add(f);return l.projectionCache.offsets[t]=e.ak(o,c,p,d)||c,l.projectionCache.offsets[t]}function Pt(t,e,r,n,i,a,o,s,l){let u=n?t-e:t+e,c=u>0?1:-1,h=0;n&&(c*=-1,h=Math.PI),c<0&&(h+=Math.PI);let f,p=c>0?a+i:a+i+1;s.projectionCache.cachedAnchorPoint?f=s.projectionCache.cachedAnchorPoint:(f=Ct(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=f);let d,m,g,y=f,v=f,x=0,_=0,b=Math.abs(u),w=[];for(;x+_<=b;){if(p+=c,p=o)return null;x+=_,v=y,m=d;let t={absOffsetX:b,direction:c,distanceFromAnchor:x,previousVertex:v};if(y=Et(p,s,t),0===r)w.push(v),g=y.sub(v);else{let e,n=y.sub(v);e=0===n.mag()?It(Et(p+c,s,t).sub(y),r,c):It(n,r,c),m||(m=v.add(e)),d=Lt(p,e,y,a,o,m,r,s,t),w.push(m),g=d.sub(m)}_=g.mag()}let T=g._mult((b-x)/_)._add(m||v),k=h+Math.atan2(y.y-v.y,y.x-v.x);return w.push(T),{point:T,angle:l?k:0,path:w}}let zt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ot(t,e){for(let r=0;r=1;t--)l.push(o.path[t]);for(let t=1;tt.signedDistanceFromCamera<=0))?[]:t.map((t=>t.point))}let m=[];if(l.length>0){let t=l[0].clone(),r=l[0].clone();for(let e=1;e=n.x&&r.x<=i.x&&t.y>=n.y&&r.y<=i.y?[l]:r.xi.x||r.yi.y?[]:e.al([l],n.x,n.y,i.x,i.y)}for(let e of m){a.reset(e,.25*r);let n=0;n=a.length<=.5*r?1:Math.ceil(a.paddedLength/h)+1;for(let e=0;e_t(t.x,t.y,r,e.getElevation)))}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let r=[],n=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of t){let t=new e.P(s.x+Rt,s.y+Rt);n=Math.min(n,t.x),i=Math.min(i,t.y),a=Math.max(a,t.x),o=Math.max(o,t.y),r.push(t)}let s=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o)),l={},u={};for(let t of s){let n=t.key;if(void 0===l[n.bucketInstanceId]&&(l[n.bucketInstanceId]={}),l[n.bucketInstanceId][n.featureIndex])continue;let i=[new e.P(t.x1,t.y1),new e.P(t.x2,t.y1),new e.P(t.x2,t.y2),new e.P(t.x1,t.y2)];e.am(r,i)&&(l[n.bucketInstanceId][n.featureIndex]=!0,void 0===u[n.bucketInstanceId]&&(u[n.bucketInstanceId]=[]),u[n.bucketInstanceId].push(n.featureIndex))}return u}insertCollisionBox(t,e,r,n,i,a){(r?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:i,collisionGroupID:a,overlapMode:e},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,e,r,n,i,a){let o=r?this.ignoredGrid:this.grid,s={bucketInstanceId:n,featureIndex:i,collisionGroupID:a,overlapMode:e};for(let e=0;e=this.screenRightBoundary||nthis.screenBottomBoundary}isInsideGrid(t,e,r,n){return r>=0&&t=0&&ethis.projectAndGetPerspectiveRatio(n,t.x,t.y,i,u)));k=t.some((t=>!t.isOccluded)),T=t.map((t=>t.point))}else k=!0;return{box:e.ao(T),allPointsOccluded:!k}}}function Bt(t,r,n){return r*(e.X/(t.tileSize*Math.pow(2,n-t.tileID.overscaledZ)))}class Nt{constructor(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&r?1:0,this.placed=r}isHidden(){return 0===this.opacity&&!this.placed}}class jt{constructor(t,e,r,n,i){this.text=new Nt(t?t.text:null,e,r,i),this.icon=new Nt(t?t.icon:null,e,n,i)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Ut{constructor(t,e,r){this.text=t,this.icon=e,this.skipFade=r}}class Vt{constructor(){this.invProjMatrix=e.H(),this.viewportMatrix=e.H(),this.circles=[]}}class qt{constructor(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i}}class Ht{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:t=>t.collisionGroupID===e}}return this.collisionGroups[t]}}function Gt(t,r,n,i,a){let{horizontalAlign:o,verticalAlign:s}=e.au(t);return new e.P(-(o-.5)*r+i[0]*a,-(s-.5)*n+i[1]*a)}class Zt{constructor(t,e,r,n,i,a){this.transform=t.clone(),this.terrain=r,this.collisionIndex=new Ft(this.transform,e),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new Ht(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let e=this.terrain;return e?(r,n)=>e.getElevation(t,r,n):null}getBucketParts(t,r,n,i){let a=n.getBucket(r),o=n.latestFeatureIndex;if(!a||!o||r.id!==a.layerIds[0])return;let s=n.collisionBoxArray,l=a.layers[0].layout,u=a.layers[0].paint,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),h=n.tileSize/e.X,f=n.tileID.toUnwrapped(),p=this.transform.calculatePosMatrix(f),d="map"===l.get("text-pitch-alignment"),m="map"===l.get("text-rotation-alignment"),g=Bt(n,1,this.transform.zoom),y=this.collisionIndex.mapProjection.translatePosition(this.transform,n,u.get("text-translate"),u.get("text-translate-anchor")),v=this.collisionIndex.mapProjection.translatePosition(this.transform,n,u.get("icon-translate"),u.get("icon-translate-anchor")),x=vt(p,d,m,this.transform,g),_=null;if(d){let t=xt(p,d,m,this.transform,g);_=e.L([],this.transform.labelPlaneMatrix,t)}this.retainedQueryData[a.bucketInstanceId]=new qt(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);let b={bucket:a,layout:l,translationText:y,translationIcon:v,posMatrix:p,unwrappedTileID:f,textLabelPlaneMatrix:x,labelToScreenMatrix:_,scale:c,textPixelRatio:h,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.ag(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(let e of a.sortKeyRanges){let{sortKey:r,symbolInstanceStart:n,symbolInstanceEnd:i}=e;t.push({sortKey:r,symbolInstanceStart:n,symbolInstanceEnd:i,parameters:b})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:b})}attemptAnchorPlacement(t,r,n,i,a,o,s,l,u,c,h,f,p,d,m,g,y,v,x){let _=e.aq[t.textAnchor],b=[t.textOffset0,t.textOffset1],w=Gt(_,n,i,b,a),T=this.collisionIndex.placeCollisionBox(r,f,l,u,c,s,o,g,h.predicate,x,w);if((!v||this.collisionIndex.placeCollisionBox(v,f,l,u,c,s,o,y,h.predicate,x,w).placeable)&&T.placeable){let t;if(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(t=this.prevPlacement.variableOffsets[p.crossTileID].anchor),0===p.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[p.crossTileID]={textOffset:b,width:n,height:i,anchor:_,textBoxScale:a,prevAnchor:t},this.markUsedJustification(d,_,p,m),d.allowVerticalPlacement&&(this.markUsedOrientation(d,m,p),this.placedOrientations[p.crossTileID]=m),{shift:w,placedGlyphBoxes:T}}}placeLayerBucketPart(t,r,n){let{bucket:i,layout:a,translationText:o,translationIcon:s,posMatrix:l,unwrappedTileID:u,textLabelPlaneMatrix:c,labelToScreenMatrix:h,textPixelRatio:f,holdingForFade:p,collisionBoxArray:d,partiallyEvaluatedTextSize:m,collisionGroup:g}=t.parameters,y=a.get("text-optional"),v=a.get("icon-optional"),x=e.ar(a,"text-overlap","text-allow-overlap"),_="always"===x,b=e.ar(a,"icon-overlap","icon-allow-overlap"),w="always"===b,T="map"===a.get("text-rotation-alignment"),k="map"===a.get("text-pitch-alignment"),A="none"!==a.get("icon-text-fit"),M="viewport-y"===a.get("symbol-z-order"),S=_&&(w||!i.hasIconData()||v),E=w&&(_||!i.hasTextData()||y);!i.collisionArrays&&d&&i.deserializeCollisionBoxes(d);let C=this._getTerrainElevationFunc(this.retainedQueryData[i.bucketInstanceId].tileID),I=(t,d,w)=>{var M,I;if(r[t.crossTileID])return;if(p)return void(this.placements[t.crossTileID]=new Ut(!1,!1,!1));let L=!1,P=!1,z=!0,O=null,D={box:null,placeable:!1,offscreen:null},R={box:null,placeable:!1,offscreen:null},F=null,B=null,N=null,j=0,U=0,V=0;d.textFeatureIndex?j=d.textFeatureIndex:t.useRuntimeCollisionCircles&&(j=t.featureIndex),d.verticalTextFeatureIndex&&(U=d.verticalTextFeatureIndex);let q=d.textBox;if(q){let r=r=>{let n=e.ah.horizontal;if(i.allowVerticalPlacement&&!r&&this.prevPlacement){let e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,n=e,this.markUsedOrientation(i,n,t))}return n},a=(r,n)=>{if(i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&d.verticalTextBox){for(let t of i.writingModes)if(t===e.ah.vertical?(D=n(),R=D):D=r(),D&&D.placeable)break}else D=r()},c=t.textAnchorOffsetStartIndex,h=t.textAnchorOffsetEndIndex;if(h===c){let n=(e,r)=>{let n=this.collisionIndex.placeCollisionBox(e,x,f,l,u,k,T,o,g.predicate,C);return n&&n.placeable&&(this.markUsedOrientation(i,r,t),this.placedOrientations[t.crossTileID]=r),n};a((()=>n(q,e.ah.horizontal)),(()=>{let r=d.verticalTextBox;return i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&r?n(r,e.ah.vertical):{box:null,offscreen:null}})),r(D&&D.placeable)}else{let p=e.aq[null===(I=null===(M=this.prevPlacement)||void 0===M?void 0:M.variableOffsets[t.crossTileID])||void 0===I?void 0:I.anchor],m=(r,a,d)=>{let m=r.x2-r.x1,y=r.y2-r.y1,v=t.textBoxScale,_=A&&"never"===b?a:null,w=null,M="never"===x?1:2,S="never";p&&M++;for(let e=0;em(q,d.iconBox,e.ah.horizontal)),(()=>{let r=d.verticalTextBox;return i.allowVerticalPlacement&&(!D||!D.placeable)&&t.numVerticalGlyphVertices>0&&r?m(r,d.verticalIconBox,e.ah.vertical):{box:null,occluded:!0,offscreen:null}})),D&&(L=D.placeable,z=D.offscreen);let y=r(D&&D.placeable);if(!L&&this.prevPlacement){let e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(i,e.anchor,t,y))}}}if(F=D,L=F&&F.placeable,z=F&&F.offscreen,t.useRuntimeCollisionCircles){let r=i.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),s=e.ai(i.textSizeData,m,r),f=a.get("text-padding");B=this.collisionIndex.placeCollisionCircles(x,r,i.lineVertexArray,i.glyphOffsetArray,s,l,u,c,h,n,k,g.predicate,t.collisionCircleDiameter,f,o,C),B.circles.length&&B.collisionDetected&&!n&&e.w("Collisions detected, but collision boxes are not shown"),L=_||B.circles.length>0&&!B.collisionDetected,z=z&&B.offscreen}if(d.iconFeatureIndex&&(V=d.iconFeatureIndex),d.iconBox){let t=t=>this.collisionIndex.placeCollisionBox(t,b,f,l,u,k,T,s,g.predicate,C,A&&O?O:void 0);R&&R.placeable&&d.verticalIconBox?(N=t(d.verticalIconBox),P=N.placeable):(N=t(d.iconBox),P=N.placeable),z=z&&N.offscreen}let H=y||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,G=v||0===t.numIconVertices;H||G?G?H||(P=P&&L):L=P&&L:P=L=P&&L;let Z=P&&N.placeable;if(L&&F.placeable&&this.collisionIndex.insertCollisionBox(F.box,x,a.get("text-ignore-placement"),i.bucketInstanceId,R&&R.placeable&&U?U:j,g.ID),Z&&this.collisionIndex.insertCollisionBox(N.box,b,a.get("icon-ignore-placement"),i.bucketInstanceId,V,g.ID),B&&L&&this.collisionIndex.insertCollisionCircles(B.circles,x,a.get("text-ignore-placement"),i.bucketInstanceId,j,g.ID),n&&this.storeCollisionData(i.bucketInstanceId,w,d,F,N,B),0===t.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");if(0===i.bucketInstanceId)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[t.crossTileID]=new Ut(L||S,P||E,z||i.justReloaded),r[t.crossTileID]=!0};if(M){if(0!==t.symbolInstanceStart)throw new Error("bucket.bucketInstanceId should be 0");let e=i.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){let r=e[t];I(i.symbolInstances.get(r),i.collisionArrays[r],r)}}else for(let e=t.symbolInstanceStart;e=0&&(t.text.placedSymbolArray.get(e).crossTileID=a>=0&&e!==a?0:n.crossTileID)}markUsedOrientation(t,r,n){let i=r===e.ah.horizontal||r===e.ah.horizontalOnly?r:0,a=r===e.ah.vertical?r:0,o=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];for(let e of o)t.text.placedSymbolArray.get(e).placedOrientation=i;n.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;let n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(let t in this.placements){let e=this.placements[t],a=i[t];a?(this.opacities[t]=new jt(a,n,e.text,e.icon),r=r||e.text!==a.text.placed||e.icon!==a.icon.placed):(this.opacities[t]=new jt(null,n,e.text,e.icon,e.skipFade),r=r||e.text||e.icon)}for(let t in i){let e=i[t];if(!this.opacities[t]){let i=new jt(e,n,!1,!1);i.isHidden()||(this.opacities[t]=i,r=r||e.text.placed||e.icon.placed)}}for(let t in a)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=a[t]);for(let t in o)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=o[t]);if(e&&void 0===e.lastPlacementChangeTime)throw new Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)}updateLayerOpacities(t,e){let r={};for(let n of e){let e=n.getBucket(t);e&&n.latestFeatureIndex&&t.id===e.layerIds[0]&&this.updateBucketOpacities(e,n.tileID,r,n.collisionBoxArray)}}updateBucketOpacities(t,r,n,i){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let a=t.layers[0],o=a.layout,s=new jt(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),u=o.get("icon-allow-overlap"),c=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),h="map"===o.get("text-rotation-alignment"),f="map"===o.get("text-pitch-alignment"),p="none"!==o.get("icon-text-fit"),d=new jt(null,0,l&&(u||!t.hasIconData()||o.get("icon-optional")),u&&(l||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&i&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(i);let m=(t,e,r)=>{for(let n=0;n0,v=this.placedOrientations[i.crossTileID],x=v===e.ah.vertical,_=v===e.ah.horizontal||v===e.ah.horizontalOnly;if(a>0||o>0){let e=ee(u.text);m(t.text,a,x?re:e),m(t.text,o,_?re:e);let r=u.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=r||x?1:0)})),i.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=r||_?1:0);let n=this.variableOffsets[i.crossTileID];n&&this.markUsedJustification(t,n.anchor,i,v);let s=this.placedOrientations[i.crossTileID];s&&(this.markUsedJustification(t,"left",i,s),this.markUsedOrientation(t,s,i))}if(y){let e=ee(u.icon),r=!(p&&i.verticalPlacedIconSymbolIndex&&x);i.placedIconSymbolIndex>=0&&(m(t.icon,i.numIconVertices,r?e:re),t.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=u.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(m(t.icon,i.numVerticalIconVertices,r?re:e),t.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=u.icon.isHidden())}let b=g&&g.has(r)?g.get(r):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let n=t.collisionArrays[r];if(n){let r=new e.P(0,0);if(n.textBox||n.verticalTextBox){let e=!0;if(c){let t=this.variableOffsets[l];t?(r=Gt(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),h&&r._rotate(f?this.transform.angle:-this.transform.angle)):e=!1}if(n.textBox||n.verticalTextBox){let i;n.textBox&&(i=x),n.verticalTextBox&&(i=_),Wt(t.textCollisionBox.collisionVertexArray,u.text.placed,!e||i,b.text,r.x,r.y)}}if(n.iconBox||n.verticalIconBox){let e,i=!(_||!n.verticalIconBox);n.iconBox&&(e=i),n.verticalIconBox&&(e=!i),Wt(t.iconCollisionBox.collisionVertexArray,u.icon.placed,e,b.icon,p?r.x:0,p?r.y:0)}}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){let e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function Wt(t,e,r,n,i,a){n&&0!==n.length||(n=[0,0,0,0]);let o=n[0]-Rt,s=n[1]-Rt,l=n[2]-Rt,u=n[3]-Rt;t.emplaceBack(e?1:0,r?1:0,i||0,a||0,o,s),t.emplaceBack(e?1:0,r?1:0,i||0,a||0,l,s),t.emplaceBack(e?1:0,r?1:0,i||0,a||0,l,u),t.emplaceBack(e?1:0,r?1:0,i||0,a||0,o,u)}let Yt=Math.pow(2,25),Xt=Math.pow(2,24),$t=Math.pow(2,17),Jt=Math.pow(2,16),Kt=Math.pow(2,9),Qt=Math.pow(2,8),te=Math.pow(2,1);function ee(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;let e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Yt+e*Xt+r*$t+e*Jt+r*Kt+e*Qt+r*te+e}let re=0;function ne(){return{isOccluded:(t,e,r)=>!1,getPitchedTextCorrection:(t,e,r)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(t,e,r,n){throw new Error("Not implemented.")},translatePosition:(t,e,r,n)=>function(t,e,r,n,i=!1){if(!r[0]&&!r[1])return[0,0];let a=i?"map"===n?t.angle:0:"viewport"===n?-t.angle:0;if(a){let t=Math.sin(a),e=Math.cos(a);r=[r[0]*e-r[1]*t,r[0]*t+r[1]*e]}return[i?r[0]:Bt(e,r[0],t.zoom),i?r[1]:Bt(e,r[1],t.zoom)]}(t,e,r,n),getCircleRadiusCorrection:t=>1}}class ie{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,e,r,n,i){let a=this._bucketParts;for(;this._currentTileIndext.sortKey-e.sortKey)));this._currentPartIndex!this._forceFullPlacement&&a.now()-n>2;for(;this._currentPlacementIndex>=0;){let n=e[t[this._currentPlacementIndex]],a=this.placement.collisionIndex.transform.zoom;if("symbol"===n.type&&(!n.minzoom||n.minzoom<=a)&&(!n.maxzoom||n.maxzoom>a)){if(this._inProgressLayer||(this._inProgressLayer=new ie(n)),this._inProgressLayer.continuePlacement(r[n.source],this.placement,this._showCollisionBoxes,n,i))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}let oe=512/e.X/2;class se{constructor(t,r,n){this.tileID=t,this.bucketInstanceId=n,this._symbolsByKey={};let i=new Map;for(let t=0;t({x:Math.floor(t.anchorX*oe),y:Math.floor(t.anchorY*oe)}))),crossTileIDs:r.map((t=>t.crossTileID))};if(n.positions.length>128){let t=new e.av(n.positions.length,16,Uint16Array);for(let{x:e,y:r}of n.positions)t.add(e,r);t.finish(),delete n.positions,n.index=t}this._symbolsByKey[t]=n}}getScaledCoordinates(t,r){let{x:n,y:i,z:a}=this.tileID.canonical,{x:o,y:s,z:l}=r.canonical,u=oe/Math.pow(2,l-a),c=(s*e.X+t.anchorY)*u,h=i*e.X*oe;return{x:Math.floor((o*e.X+t.anchorX)*u-n*e.X*oe),y:Math.floor(c-h)}}findMatches(t,e,r){let n=this.tileID.canonical.zt))}}class le{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class ue{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let e=Math.round((t-this.lng)/360);if(0!==e)for(let t in this.indexes){let r=this.indexes[t],n={};for(let t in r){let i=r[t];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),n[i.tileID.key]=i}this.indexes[t]=n}this.lng=t}addBucket(t,e,r){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let t=0;tt.overscaledZ)for(let r in i){let a=i[r];a.tileID.isChildOf(t)&&a.findMatches(e.symbolInstances,t,n)}else{let a=i[t.scaledTo(Number(r)).key];a&&a.findMatches(e.symbolInstances,t,n)}}for(let t=0;t{e[t]=!0}));for(let t in this.layerIndexes)e[t]||delete this.layerIndexes[t]}}let he=(t,r)=>e.t(t,r&&r.filter((t=>"source.canvas"!==t.identifier))),fe=e.aw();class pe extends e.E{constructor(t,r={}){super(),this._rtlPluginLoaded=()=>{for(let t in this.sourceCaches){let e=this.sourceCaches[t].getSource().type;"vector"!==e&&"geojson"!==e||this.sourceCaches[t].reload()}},this.map=t,this.dispatcher=new U(j(),t._getMapId()),this.dispatcher.registerMessageHandler("GG",((t,e)=>this.getGlyphs(t,e))),this.dispatcher.registerMessageHandler("GI",((t,e)=>this.getImages(t,e))),this.imageManager=new k,this.imageManager.setEventedParent(this),this.glyphManager=new C(t._requestManager,r.localIdeographFontFamily),this.lineAtlas=new O(256,512),this.crossTileSymbolIndex=new ce,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",e.ay()),lt().on(at,this._rtlPluginLoaded),this.on("data",(t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;let e=this.sourceCaches[t.sourceId];if(!e)return;let r=e.getSource();if(r&&r.vectorLayerIds)for(let t in this._layers){let e=this._layers[t];e.source===r.id&&this._validateLayer(e)}}))}loadURL(t,r={},n){this.fire(new e.k("dataloading",{dataType:"style"})),r.validate="boolean"!=typeof r.validate||r.validate;let i=this.map._requestManager.transformRequest(t,"Style");this._loadStyleRequest=new AbortController;let a=this._loadStyleRequest;e.h(i,this._loadStyleRequest).then((t=>{this._loadStyleRequest=null,this._load(t.data,r,n)})).catch((t=>{this._loadStyleRequest=null,t&&!a.signal.aborted&&this.fire(new e.j(t))}))}loadJSON(t,r={},n){this.fire(new e.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,a.frameAsync(this._frameRequest).then((()=>{this._frameRequest=null,r.validate=!1!==r.validate,this._load(t,r,n)})).catch((()=>{}))}loadEmpty(){this.fire(new e.k("dataloading",{dataType:"style"})),this._load(fe,{validate:!1})}_load(t,r,n){var i;let a=r.transformStyle?r.transformStyle(n,t):t;if(!r.validate||!he(this,e.u(a))){this._loaded=!0,this.stylesheet=a;for(let t in a.sources)this.addSource(t,a.sources[t],{validate:!1});a.sprite?this._loadSprite(a.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(a.glyphs),this._createLayers(),this.light=new L(this.stylesheet.light),this.sky=new z(this.stylesheet.sky),this.map.setTerrain(null!==(i=this.stylesheet.terrain)&&void 0!==i?i:null),this.fire(new e.k("data",{dataType:"style"})),this.fire(new e.k("style.load"))}}_createLayers(){let t=e.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",t),this._order=t.map((t=>t.id)),this._layers={},this._serializedLayers=null;for(let r of t){let t=e.aA(r);t.setEventedParent(this,{layer:{id:r.id}}),this._layers[r.id]=t}}_loadSprite(t,r=!1,n=void 0){let i;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(t,r,n,i){return e._(this,void 0,void 0,(function*(){let o=_(t),s=n>1?"@2x":"",l={},u={};for(let{id:t,url:n}of o){let a=r.transformRequest(b(n,s,".json"),"SpriteJSON");l[t]=e.h(a,i);let o=r.transformRequest(b(n,s,".png"),"SpriteImage");u[t]=p.getImage(o,i)}return yield Promise.all([...Object.values(l),...Object.values(u)]),function(t,r){return e._(this,void 0,void 0,(function*(){let e={};for(let n in t){e[n]={};let i=a.getImageCanvasContext((yield r[n]).data),o=(yield t[n]).data;for(let t in o){let{width:r,height:a,x:s,y:l,sdf:u,pixelRatio:c,stretchX:h,stretchY:f,content:p,textFitWidth:d,textFitHeight:m}=o[t];e[n][t]={data:null,pixelRatio:c,sdf:u,stretchX:h,stretchY:f,content:p,textFitWidth:d,textFitHeight:m,spriteData:{width:r,height:a,x:s,y:l,context:i}}}}return e}))}(l,u)}))}(t,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((t=>{if(this._spriteRequest=null,t)for(let e in t){this._spritesImagesIds[e]=[];let n=this._spritesImagesIds[e]?this._spritesImagesIds[e].filter((e=>!(e in t))):[];for(let t of n)this.imageManager.removeImage(t),this._changedImages[t]=!0;for(let n in t[e]){let i="default"===e?n:`${e}:${n}`;this._spritesImagesIds[e].push(i),i in this.imageManager.images?this.imageManager.updateImage(i,t[e][n],!1):this.imageManager.addImage(i,t[e][n]),r&&(this._changedImages[i]=!0)}}})).catch((t=>{this._spriteRequest=null,i=t,this.fire(new e.j(i))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),r&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new e.k("data",{dataType:"style"})),n&&n(i)}))}_unloadSprite(){for(let t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}_validateLayer(t){let r=this.sourceCaches[t.source];if(!r)return;let n=t.sourceLayer;if(!n)return;let i=r.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new e.j(new Error(`Source layer "${n}" does not exist on source "${i.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(t,r=!1){let n=this._serializedAllLayers();if(!t||0===t.length)return Object.values(r?e.aB(n):n);let i=[];for(let a of t)if(n[a]){let t=r?e.aB(n[a]):n[a];i.push(t)}return i}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};let e=Object.keys(this._layers);for(let r of e){let e=this._layers[r];"custom"!==e.type&&(t[r]=e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(let t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;let r=this._changed;if(r){let e=Object.keys(this._updatedLayers),r=Object.keys(this._removedLayers);(e.length||r.length)&&this._updateWorkerLayers(e,r);for(let t in this._updatedSources){let e=this._updatedSources[t];if("reload"===e)this._reloadSource(t);else{if("clear"!==e)throw new Error(`Invalid action ${e}`);this._clearSource(t)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let e in this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this.sky.updateTransitions(t),this._resetUpdates()}let n={};for(let t in this.sourceCaches){let e=this.sourceCaches[t];n[t]=e.used,e.used=!1}for(let e of this._order){let r=this._layers[e];r.recalculate(t,this._availableImages),!r.isHidden(t.zoom)&&r.source&&(this.sourceCaches[r.source].used=!0)}for(let t in n){let r=this.sourceCaches[t];!!n[t]!=!!r.used&&r.fire(new e.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:t}))}this.light.recalculate(t),this.sky.recalculate(t),this.z=t.zoom,r&&this.fire(new e.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let t=Object.keys(this._changedImages);if(t.length){for(let e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,e){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(t,!1),removedIds:e})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,r={}){var n;this._checkLoaded();let i=this.serialize();if(t=r.transformStyle?r.transformStyle(i,t):t,(null===(n=r.validate)||void 0===n||n)&&he(this,e.u(t)))return!1;(t=e.aB(t)).layers=e.az(t.layers);let a=e.aC(i,t),o=this._getOperationsToPerform(a);if(o.unimplemented.length>0)throw new Error(`Unimplemented: ${o.unimplemented.join(", ")}.`);if(0===o.operations.length)return!1;for(let t of o.operations)t();return this.stylesheet=t,this._serializedLayers=null,!0}_getOperationsToPerform(t){let e=[],r=[];for(let n of t)switch(n.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":e.push((()=>this.addLayer.apply(this,n.args)));break;case"removeLayer":e.push((()=>this.removeLayer.apply(this,n.args)));break;case"setPaintProperty":e.push((()=>this.setPaintProperty.apply(this,n.args)));break;case"setLayoutProperty":e.push((()=>this.setLayoutProperty.apply(this,n.args)));break;case"setFilter":e.push((()=>this.setFilter.apply(this,n.args)));break;case"addSource":e.push((()=>this.addSource.apply(this,n.args)));break;case"removeSource":e.push((()=>this.removeSource.apply(this,n.args)));break;case"setLayerZoomRange":e.push((()=>this.setLayerZoomRange.apply(this,n.args)));break;case"setLight":e.push((()=>this.setLight.apply(this,n.args)));break;case"setGeoJSONSourceData":e.push((()=>this.setGeoJSONSourceData.apply(this,n.args)));break;case"setGlyphs":e.push((()=>this.setGlyphs.apply(this,n.args)));break;case"setSprite":e.push((()=>this.setSprite.apply(this,n.args)));break;case"setSky":e.push((()=>this.setSky.apply(this,n.args)));break;case"setTerrain":e.push((()=>this.map.setTerrain.apply(this,n.args)));break;case"setTransition":e.push((()=>{}));break;default:r.push(n.command)}return{operations:e,unimplemented:r}}addImage(t,r){if(this.getImage(t))return this.fire(new e.j(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,r),this._afterImageUpdated(t)}updateImage(t,e){this.imageManager.updateImage(t,e)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new e.j(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,r,n={}){if(this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error(`Source "${t}" already exists.`);if(!r.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(r).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(r.type)>=0&&this._validate(e.u.source,`sources.${t}`,r,null,n))return;this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);let i=this.sourceCaches[t]=new ft(t,r,this.dispatcher);i.style=this,i.setEventedParent(this,(()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:t}))),i.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(let r in this._layers)if(this._layers[r].source===t)return this.fire(new e.j(new Error(`Source "${t}" cannot be removed while layer "${r}" is using it.`)));let r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,e){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error(`There is no source with this ID=${t}`);let r=this.sourceCaches[t].getSource();if("geojson"!==r.type)throw new Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(e),this._changed=!0}getSource(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()}addLayer(t,r,n={}){this._checkLoaded();let i,a=t.id;if(this.getLayer(a))return void this.fire(new e.j(new Error(`Layer "${a}" already exists on this map.`)));if("custom"===t.type){if(he(this,e.aD(t)))return;i=e.aA(t)}else{if("source"in t&&"object"==typeof t.source&&(this.addSource(a,t.source),t=e.aB(t),t=e.e(t,{source:a})),this._validate(e.u.layer,`layers.${a}`,t,{arrayIndex:-1},n))return;i=e.aA(t),this._validateLayer(i),i.setEventedParent(this,{layer:{id:a}})}let o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new e.j(new Error(`Cannot add layer "${a}" before non-existing layer "${r}".`)));else{if(this._order.splice(o,0,a),this._layerOrderChanged=!0,this._layers[a]=i,this._removedLayers[a]&&i.source&&"custom"!==i.type){let t=this._removedLayers[a];delete this._removedLayers[a],t.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}moveLayer(t,r){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.j(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===r)return;let n=this._order.indexOf(t);this._order.splice(n,1);let i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new e.j(new Error(`Cannot move layer "${t}" before non-existing layer "${r}".`))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();let r=this._layers[t];if(!r)return void this.fire(new e.j(new Error(`Cannot remove non-existing layer "${t}".`)));r.setEventedParent(null);let n=this._order.indexOf(t);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=r,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],r.onRemove&&r.onRemove(this.map)}getLayer(t){return this._layers[t]}getLayersOrder(){return[...this._order]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,r,n){this._checkLoaded();let i=this.getLayer(t);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new e.j(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,r,n={}){this._checkLoaded();let i=this.getLayer(t);if(i){if(!e.aE(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(e.u.filter,`layers.${i.id}.filter`,r,null,n)||(i.filter=e.aB(r),this._updateLayer(i)))}else this.fire(new e.j(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return e.aB(this.getLayer(t).filter)}setLayoutProperty(t,r,n,i={}){this._checkLoaded();let a=this.getLayer(t);a?e.aE(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new e.j(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,r){let n=this.getLayer(t);if(n)return n.getLayoutProperty(r);this.fire(new e.j(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,r,n,i={}){this._checkLoaded();let a=this.getLayer(t);a?e.aE(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[t]=!0,this._serializedLayers=null):this.fire(new e.j(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(t,e){return this.getLayer(t).getPaintProperty(e)}setFeatureState(t,r){this._checkLoaded();let n=t.source,i=t.sourceLayer,a=this.sourceCaches[n];if(void 0===a)return void this.fire(new e.j(new Error(`The source '${n}' does not exist in the map's style.`)));let o=a.getSource().type;"geojson"===o&&i?this.fire(new e.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===t.id&&this.fire(new e.j(new Error("The feature id parameter must be provided."))),a.setFeatureState(i,t.id,r)):this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,r){this._checkLoaded();let n=t.source,i=this.sourceCaches[n];if(void 0===i)return void this.fire(new e.j(new Error(`The source '${n}' does not exist in the map's style.`)));let a=i.getSource().type,o="vector"===a?t.sourceLayer:void 0;"vector"!==a||o?r&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.j(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(o,t.id,r):this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();let r=t.source,n=t.sourceLayer,i=this.sourceCaches[r];if(void 0!==i)return"vector"!==i.getSource().type||n?(void 0===t.id&&this.fire(new e.j(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,t.id)):void this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new e.j(new Error(`The source '${r}' does not exist in the map's style.`)))}getTransition(){return e.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let t=e.aF(this.sourceCaches,(t=>t.serialize())),r=this._serializeByIds(this._order,!0),n=this.map.getTerrain()||void 0,i=this.stylesheet;return e.aG({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,transition:i.transition,sources:t,layers:r,terrain:n},(t=>void 0!==t))}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){let e=t=>"fill-extrusion"===this._layers[t].type,r={},n=[];for(let i=this._order.length-1;i>=0;i--){let a=this._order[i];if(e(a)){r[a]=i;for(let e of t){let t=e[a];if(t)for(let e of t)n.push(e)}}}n.sort(((t,e)=>e.intersectionZ-t.intersectionZ));let i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(e(o))for(let t=n.length-1;t>=0;t--){let e=n[t].feature;if(r[e.layer.id]{let n=r.featureSortOrder;if(n){let r=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-r}return e.featureIndex-t.featureIndex}));for(let t of i)e.push(t)}}for(let e in s)s[e].forEach((n=>{let i=n.feature,a=r[t[e].source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=a}));return s}(this._layers,o,this.sourceCaches,t,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(a)}querySourceFeatures(t,r){r&&r.filter&&this._validate(e.u.filter,"querySourceFeatures.filter",r.filter,null,r);let n=this.sourceCaches[t];return n?function(t,e){let r=t.getRenderableIds().map((e=>t.getTileByID(e))),n=[],i={};for(let t=0;tt.getTileByID(e))).sort(((t,e)=>e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)))}let n=this.crossTileSymbolIndex.addLayer(r,l[r.source],t.center.lng);o=o||n}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((i=i||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.now(),t.zoom))&&(this.pauseablePlacement=new ae(t,this.map.terrain,this._order,i,e,r,n,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(a.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(let t of this._order){let e=this._layers[t];"symbol"===e.type&&this.placement.updateLayerOpacities(e,l[e.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.now())}_releaseSymbolFadeTiles(){for(let t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,r){return e._(this,void 0,void 0,(function*(){let t=yield this.imageManager.getImages(r.icons);this._updateTilesForChangedImages();let e=this.sourceCaches[r.source];return e&&e.setDependencies(r.tileID.key,r.type,r.icons),t}))}getGlyphs(t,r){return e._(this,void 0,void 0,(function*(){let t=yield this.glyphManager.getGlyphs(r.stacks),e=this.sourceCaches[r.source];return e&&e.setDependencies(r.tileID.key,r.type,[""]),t}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,r={}){this._checkLoaded(),t&&this._validate(e.u.glyphs,"glyphs",t,null,r)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,r,n={},i){this._checkLoaded();let a=[{id:t,url:r}],o=[..._(this.stylesheet.sprite),...a];this._validate(e.u.sprite,"sprite",o,null,n)||(this.stylesheet.sprite=o,this._loadSprite(a,!0,i))}removeSprite(t){this._checkLoaded();let r=_(this.stylesheet.sprite);if(r.find((e=>e.id===t))){if(this._spritesImagesIds[t])for(let e of this._spritesImagesIds[t])this.imageManager.removeImage(e),this._changedImages[e]=!0;r.splice(r.findIndex((e=>e.id===t)),1),this.stylesheet.sprite=r.length>0?r:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}else this.fire(new e.j(new Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return _(this.stylesheet.sprite)}setSprite(t,r={},n){this._checkLoaded(),t&&this._validate(e.u.sprite,"sprite",t,null,r)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,n):(this._unloadSprite(),n&&n(null)))}}var de=e.Y([{name:"a_pos",type:"Int16",components:2}]);let me={prelude:ge("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:ge("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:ge("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:ge("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:ge("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:ge("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"),heatmapTexture:ge("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:ge("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:ge("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:ge("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:ge("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:ge("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:ge("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:ge("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:ge("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:ge("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:ge("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:ge("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:ge("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:ge("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),linePattern:ge("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:ge("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:ge("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:ge("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:ge("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:ge("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:ge("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:ge("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:ge("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:ge("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function ge(t,e){let r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n=e.match(/attribute ([\w]+) ([\w]+)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s={};return{fragmentSource:t=t.replace(r,((t,e,r,n,i)=>(s[i]=!0,"define"===e?`\n#ifndef HAS_UNIFORM_u_${i}\nvarying ${r} ${n} ${i};\n#else\nuniform ${r} ${n} u_${i};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${i}\n ${r} ${n} ${i} = u_${i};\n#endif\n`))),vertexSource:e=e.replace(r,((t,e,r,n,i)=>{let a="float"===n?"vec2":"vec4",o=i.match(/color/)?"color":a;return s[i]?"define"===e?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nattribute ${r} ${a} a_${i};\nvarying ${r} ${n} ${i};\n#else\nuniform ${r} ${n} u_${i};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = a_${i};\n#else\n ${r} ${n} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = unpack_mix_${o}(a_${i}, u_${i}_t);\n#else\n ${r} ${n} ${i} = u_${i};\n#endif\n`:"define"===e?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nattribute ${r} ${a} a_${i};\n#else\nuniform ${r} ${n} u_${i};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${i}\n ${r} ${n} ${i} = a_${i};\n#else\n ${r} ${n} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${r} ${n} ${i} = unpack_mix_${o}(a_${i}, u_${i}_t);\n#else\n ${r} ${n} ${i} = u_${i};\n#endif\n`})),staticAttributes:n,staticUniforms:o}}class ye{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,e,r,n,i,a,o,s,l){this.context=t;let u=this.boundPaintVertexBuffers.length!==n.length;for(let t=0;!u&&t({u_matrix:t,u_texture:0,u_ele_delta:r,u_fog_matrix:n,u_fog_color:i?i.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:i?i.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:i?i.calculateFogBlendOpacity(a):0,u_horizon_color:i?i.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:i?i.properties.get("horizon-fog-blend"):1});function xe(t){let e=[];for(let r=0;r>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}let we=(t,r,n,i)=>{let a=r.style.light,o=a.properties.get("position"),s=[o.x,o.y,o.z],l=(u=new e.A(9),e.A!=Float32Array&&(u[1]=0,u[2]=0,u[3]=0,u[5]=0,u[6]=0,u[7]=0),u[0]=1,u[4]=1,u[8]=1,u);var u;"viewport"===a.properties.get("anchor")&&function(t,e){var r=Math.sin(e),n=Math.cos(e);t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1}(l,-r.transform.angle),function(t,e,r){var n=e[0],i=e[1],a=e[2];t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8]}(s,s,l);let c=a.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Te=(t,r,n,i,a,o,s)=>e.e(we(t,r,n,i),be(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8}),ke=t=>({u_matrix:t}),Ae=(t,r,n,i)=>e.e(ke(t),be(n,r,i)),Me=(t,e)=>({u_matrix:t,u_world:e}),Se=(t,r,n,i,a)=>e.e(Ae(t,r,n,i),{u_world:a}),Ee=(t,e,r,n)=>{let i,a,o=t.transform;if("map"===n.paint.get("circle-pitch-alignment")){let t=Bt(r,1,o.zoom);i=!0,a=[t,t]}else i=!1,a=o.pixelsToGLUnits;return{u_camera_to_center_distance:o.cameraToCenterDistance,u_scale_with_map:+("map"===n.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(e.posMatrix,r,n.paint.get("circle-translate"),n.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:t.pixelRatio,u_extrude_scale:a}},Ce=(t,e,r)=>({u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}),Ie=(t,e,r=1)=>({u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}),Le=t=>({u_matrix:t}),Pe=(t,e,r,n)=>({u_matrix:t,u_extrude_scale:Bt(e,1,r),u_intensity:n}),ze=(t,r,n,i)=>{let a=e.H();e.aP(a,0,t.width,t.height,0,0,1);let o=t.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get("heatmap-opacity")}};function Oe(t,r){let n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new e.Z(0,i/n).toLngLat().lat,new e.Z(0,(i+1)/n).toLngLat().lat]}let De=(t,e,r,n)=>{let i=t.transform;return{u_matrix:je(t,e,r,n),u_ratio:1/Bt(e,1,i.zoom),u_device_pixel_ratio:t.pixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Re=(t,r,n,i,a)=>e.e(De(t,r,n,a),{u_image:0,u_image_height:i}),Fe=(t,e,r,n,i)=>{let a=t.transform,o=Ne(e,a);return{u_matrix:je(t,e,r,i),u_texsize:e.imageAtlasTexture.size,u_ratio:1/Bt(e,1,a.zoom),u_device_pixel_ratio:t.pixelRatio,u_image:0,u_scale:[o,n.fromScale,n.toScale],u_fade:n.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Be=(t,r,n,i,a,o)=>{let s=t.lineAtlas,l=Ne(r,t.transform),u="round"===n.layout.get("line-cap"),c=s.getDash(i.from,u),h=s.getDash(i.to,u),f=c.width*a.fromScale,p=h.width*a.toScale;return e.e(De(t,r,n,o),{u_patternscale_a:[l/f,-c.height/2],u_patternscale_b:[l/p,-h.height/2],u_sdfgamma:s.width/(256*Math.min(f,p)*t.pixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:h.y,u_mix:a.t})};function Ne(t,e){return 1/Bt(t,1,e.tileZoom)}function je(t,e,r,n){return t.translatePosMatrix(n?n.posMatrix:e.tileID.posMatrix,e,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}let Ue=(t,e,r,n,i)=>{return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(o=i.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get("raster-contrast"),a>0?1/(1-a):1+a),u_spin_weights:Ve(i.paint.get("raster-hue-rotate"))};var a,o};function Ve(t){t*=Math.PI/180;let e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}let qe=(t,e,r,n,i,a,o,s,l,u,c,h,f,p)=>{let d=o.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:d.cameraToCenterDistance,u_pitch:d.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:d.width/d.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:l,u_coord_matrix:u,u_is_text:+h,u_pitch_with_map:+n,u_is_along_line:i,u_is_variable_anchor:a,u_texsize:f,u_texture:0,u_translation:c,u_pitched_scale:p}},He=(t,r,n,i,a,o,s,l,u,c,h,f,p,d,m)=>{let g=s.transform;return e.e(qe(t,r,n,i,a,o,s,l,u,c,h,f,p,m),{u_gamma_scale:i?Math.cos(g._pitch)*g.cameraToCenterDistance:1,u_device_pixel_ratio:s.pixelRatio,u_is_halo:+d})},Ge=(t,r,n,i,a,o,s,l,u,c,h,f,p,d)=>e.e(He(t,r,n,i,a,o,s,l,u,c,h,!0,f,!0,d),{u_texsize_icon:p,u_texture_icon:1}),Ze=(t,e,r)=>({u_matrix:t,u_opacity:e,u_color:r}),We=(t,r,n,i,a,o)=>e.e(function(t,e,r,n){let i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),{width:o,height:s}=r.imageManager.getPixelSize(),l=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/l,c=u*(n.tileID.canonical.x+n.tileID.wrap*l),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/Bt(n,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,h>>16],u_pixel_coord_lower:[65535&c,65535&h]}}(i,o,n,a),{u_matrix:t,u_opacity:r}),Ye={fillExtrusion:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_lightpos:new e.aN(t,r.u_lightpos),u_lightintensity:new e.aI(t,r.u_lightintensity),u_lightcolor:new e.aN(t,r.u_lightcolor),u_vertical_gradient:new e.aI(t,r.u_vertical_gradient),u_opacity:new e.aI(t,r.u_opacity)}),fillExtrusionPattern:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_lightpos:new e.aN(t,r.u_lightpos),u_lightintensity:new e.aI(t,r.u_lightintensity),u_lightcolor:new e.aN(t,r.u_lightcolor),u_vertical_gradient:new e.aI(t,r.u_vertical_gradient),u_height_factor:new e.aI(t,r.u_height_factor),u_image:new e.aH(t,r.u_image),u_texsize:new e.aO(t,r.u_texsize),u_pixel_coord_upper:new e.aO(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.aO(t,r.u_pixel_coord_lower),u_scale:new e.aN(t,r.u_scale),u_fade:new e.aI(t,r.u_fade),u_opacity:new e.aI(t,r.u_opacity)}),fill:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix)}),fillPattern:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_image:new e.aH(t,r.u_image),u_texsize:new e.aO(t,r.u_texsize),u_pixel_coord_upper:new e.aO(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.aO(t,r.u_pixel_coord_lower),u_scale:new e.aN(t,r.u_scale),u_fade:new e.aI(t,r.u_fade)}),fillOutline:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_world:new e.aO(t,r.u_world)}),fillOutlinePattern:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_world:new e.aO(t,r.u_world),u_image:new e.aH(t,r.u_image),u_texsize:new e.aO(t,r.u_texsize),u_pixel_coord_upper:new e.aO(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.aO(t,r.u_pixel_coord_lower),u_scale:new e.aN(t,r.u_scale),u_fade:new e.aI(t,r.u_fade)}),circle:(t,r)=>({u_camera_to_center_distance:new e.aI(t,r.u_camera_to_center_distance),u_scale_with_map:new e.aH(t,r.u_scale_with_map),u_pitch_with_map:new e.aH(t,r.u_pitch_with_map),u_extrude_scale:new e.aO(t,r.u_extrude_scale),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_matrix:new e.aJ(t,r.u_matrix)}),collisionBox:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_pixel_extrude_scale:new e.aO(t,r.u_pixel_extrude_scale)}),collisionCircle:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_inv_matrix:new e.aJ(t,r.u_inv_matrix),u_camera_to_center_distance:new e.aI(t,r.u_camera_to_center_distance),u_viewport_size:new e.aO(t,r.u_viewport_size)}),debug:(t,r)=>({u_color:new e.aL(t,r.u_color),u_matrix:new e.aJ(t,r.u_matrix),u_overlay:new e.aH(t,r.u_overlay),u_overlay_scale:new e.aI(t,r.u_overlay_scale)}),clippingMask:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix)}),heatmap:(t,r)=>({u_extrude_scale:new e.aI(t,r.u_extrude_scale),u_intensity:new e.aI(t,r.u_intensity),u_matrix:new e.aJ(t,r.u_matrix)}),heatmapTexture:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_world:new e.aO(t,r.u_world),u_image:new e.aH(t,r.u_image),u_color_ramp:new e.aH(t,r.u_color_ramp),u_opacity:new e.aI(t,r.u_opacity)}),hillshade:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_image:new e.aH(t,r.u_image),u_latrange:new e.aO(t,r.u_latrange),u_light:new e.aO(t,r.u_light),u_shadow:new e.aL(t,r.u_shadow),u_highlight:new e.aL(t,r.u_highlight),u_accent:new e.aL(t,r.u_accent)}),hillshadePrepare:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_image:new e.aH(t,r.u_image),u_dimension:new e.aO(t,r.u_dimension),u_zoom:new e.aI(t,r.u_zoom),u_unpack:new e.aK(t,r.u_unpack)}),line:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_ratio:new e.aI(t,r.u_ratio),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.aO(t,r.u_units_to_pixels)}),lineGradient:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_ratio:new e.aI(t,r.u_ratio),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.aO(t,r.u_units_to_pixels),u_image:new e.aH(t,r.u_image),u_image_height:new e.aI(t,r.u_image_height)}),linePattern:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_texsize:new e.aO(t,r.u_texsize),u_ratio:new e.aI(t,r.u_ratio),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_image:new e.aH(t,r.u_image),u_units_to_pixels:new e.aO(t,r.u_units_to_pixels),u_scale:new e.aN(t,r.u_scale),u_fade:new e.aI(t,r.u_fade)}),lineSDF:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_ratio:new e.aI(t,r.u_ratio),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.aO(t,r.u_units_to_pixels),u_patternscale_a:new e.aO(t,r.u_patternscale_a),u_patternscale_b:new e.aO(t,r.u_patternscale_b),u_sdfgamma:new e.aI(t,r.u_sdfgamma),u_image:new e.aH(t,r.u_image),u_tex_y_a:new e.aI(t,r.u_tex_y_a),u_tex_y_b:new e.aI(t,r.u_tex_y_b),u_mix:new e.aI(t,r.u_mix)}),raster:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_tl_parent:new e.aO(t,r.u_tl_parent),u_scale_parent:new e.aI(t,r.u_scale_parent),u_buffer_scale:new e.aI(t,r.u_buffer_scale),u_fade_t:new e.aI(t,r.u_fade_t),u_opacity:new e.aI(t,r.u_opacity),u_image0:new e.aH(t,r.u_image0),u_image1:new e.aH(t,r.u_image1),u_brightness_low:new e.aI(t,r.u_brightness_low),u_brightness_high:new e.aI(t,r.u_brightness_high),u_saturation_factor:new e.aI(t,r.u_saturation_factor),u_contrast_factor:new e.aI(t,r.u_contrast_factor),u_spin_weights:new e.aN(t,r.u_spin_weights)}),symbolIcon:(t,r)=>({u_is_size_zoom_constant:new e.aH(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aH(t,r.u_is_size_feature_constant),u_size_t:new e.aI(t,r.u_size_t),u_size:new e.aI(t,r.u_size),u_camera_to_center_distance:new e.aI(t,r.u_camera_to_center_distance),u_pitch:new e.aI(t,r.u_pitch),u_rotate_symbol:new e.aH(t,r.u_rotate_symbol),u_aspect_ratio:new e.aI(t,r.u_aspect_ratio),u_fade_change:new e.aI(t,r.u_fade_change),u_matrix:new e.aJ(t,r.u_matrix),u_label_plane_matrix:new e.aJ(t,r.u_label_plane_matrix),u_coord_matrix:new e.aJ(t,r.u_coord_matrix),u_is_text:new e.aH(t,r.u_is_text),u_pitch_with_map:new e.aH(t,r.u_pitch_with_map),u_is_along_line:new e.aH(t,r.u_is_along_line),u_is_variable_anchor:new e.aH(t,r.u_is_variable_anchor),u_texsize:new e.aO(t,r.u_texsize),u_texture:new e.aH(t,r.u_texture),u_translation:new e.aO(t,r.u_translation),u_pitched_scale:new e.aI(t,r.u_pitched_scale)}),symbolSDF:(t,r)=>({u_is_size_zoom_constant:new e.aH(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aH(t,r.u_is_size_feature_constant),u_size_t:new e.aI(t,r.u_size_t),u_size:new e.aI(t,r.u_size),u_camera_to_center_distance:new e.aI(t,r.u_camera_to_center_distance),u_pitch:new e.aI(t,r.u_pitch),u_rotate_symbol:new e.aH(t,r.u_rotate_symbol),u_aspect_ratio:new e.aI(t,r.u_aspect_ratio),u_fade_change:new e.aI(t,r.u_fade_change),u_matrix:new e.aJ(t,r.u_matrix),u_label_plane_matrix:new e.aJ(t,r.u_label_plane_matrix),u_coord_matrix:new e.aJ(t,r.u_coord_matrix),u_is_text:new e.aH(t,r.u_is_text),u_pitch_with_map:new e.aH(t,r.u_pitch_with_map),u_is_along_line:new e.aH(t,r.u_is_along_line),u_is_variable_anchor:new e.aH(t,r.u_is_variable_anchor),u_texsize:new e.aO(t,r.u_texsize),u_texture:new e.aH(t,r.u_texture),u_gamma_scale:new e.aI(t,r.u_gamma_scale),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_is_halo:new e.aH(t,r.u_is_halo),u_translation:new e.aO(t,r.u_translation),u_pitched_scale:new e.aI(t,r.u_pitched_scale)}),symbolTextAndIcon:(t,r)=>({u_is_size_zoom_constant:new e.aH(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aH(t,r.u_is_size_feature_constant),u_size_t:new e.aI(t,r.u_size_t),u_size:new e.aI(t,r.u_size),u_camera_to_center_distance:new e.aI(t,r.u_camera_to_center_distance),u_pitch:new e.aI(t,r.u_pitch),u_rotate_symbol:new e.aH(t,r.u_rotate_symbol),u_aspect_ratio:new e.aI(t,r.u_aspect_ratio),u_fade_change:new e.aI(t,r.u_fade_change),u_matrix:new e.aJ(t,r.u_matrix),u_label_plane_matrix:new e.aJ(t,r.u_label_plane_matrix),u_coord_matrix:new e.aJ(t,r.u_coord_matrix),u_is_text:new e.aH(t,r.u_is_text),u_pitch_with_map:new e.aH(t,r.u_pitch_with_map),u_is_along_line:new e.aH(t,r.u_is_along_line),u_is_variable_anchor:new e.aH(t,r.u_is_variable_anchor),u_texsize:new e.aO(t,r.u_texsize),u_texsize_icon:new e.aO(t,r.u_texsize_icon),u_texture:new e.aH(t,r.u_texture),u_texture_icon:new e.aH(t,r.u_texture_icon),u_gamma_scale:new e.aI(t,r.u_gamma_scale),u_device_pixel_ratio:new e.aI(t,r.u_device_pixel_ratio),u_is_halo:new e.aH(t,r.u_is_halo),u_translation:new e.aO(t,r.u_translation),u_pitched_scale:new e.aI(t,r.u_pitched_scale)}),background:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_opacity:new e.aI(t,r.u_opacity),u_color:new e.aL(t,r.u_color)}),backgroundPattern:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_opacity:new e.aI(t,r.u_opacity),u_image:new e.aH(t,r.u_image),u_pattern_tl_a:new e.aO(t,r.u_pattern_tl_a),u_pattern_br_a:new e.aO(t,r.u_pattern_br_a),u_pattern_tl_b:new e.aO(t,r.u_pattern_tl_b),u_pattern_br_b:new e.aO(t,r.u_pattern_br_b),u_texsize:new e.aO(t,r.u_texsize),u_mix:new e.aI(t,r.u_mix),u_pattern_size_a:new e.aO(t,r.u_pattern_size_a),u_pattern_size_b:new e.aO(t,r.u_pattern_size_b),u_scale_a:new e.aI(t,r.u_scale_a),u_scale_b:new e.aI(t,r.u_scale_b),u_pixel_coord_upper:new e.aO(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.aO(t,r.u_pixel_coord_lower),u_tile_units_to_pixels:new e.aI(t,r.u_tile_units_to_pixels)}),terrain:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_texture:new e.aH(t,r.u_texture),u_ele_delta:new e.aI(t,r.u_ele_delta),u_fog_matrix:new e.aJ(t,r.u_fog_matrix),u_fog_color:new e.aL(t,r.u_fog_color),u_fog_ground_blend:new e.aI(t,r.u_fog_ground_blend),u_fog_ground_blend_opacity:new e.aI(t,r.u_fog_ground_blend_opacity),u_horizon_color:new e.aL(t,r.u_horizon_color),u_horizon_fog_blend:new e.aI(t,r.u_horizon_fog_blend)}),terrainDepth:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_ele_delta:new e.aI(t,r.u_ele_delta)}),terrainCoords:(t,r)=>({u_matrix:new e.aJ(t,r.u_matrix),u_texture:new e.aH(t,r.u_texture),u_terrain_coords_id:new e.aI(t,r.u_terrain_coords_id),u_ele_delta:new e.aI(t,r.u_ele_delta)}),sky:(t,r)=>({u_sky_color:new e.aL(t,r.u_sky_color),u_horizon_color:new e.aL(t,r.u_horizon_color),u_horizon:new e.aI(t,r.u_horizon),u_sky_horizon_blend:new e.aI(t,r.u_sky_horizon_blend)})};class Xe{constructor(t,e,r){this.context=t;let n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){let e=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let $e={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Je{constructor(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;let i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw new Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);let e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,e){for(let r=0;r0){let r=e.H();e.aQ(r,m.placementInvProjMatrix,t.transform.glCoordMatrix),e.aQ(r,r,m.placementViewportMatrix),u.push({circleArray:y,circleOffset:h,transform:d.posMatrix,invTransform:r,coord:d}),c+=y.length/4,h=c}g&&l.draw(o,s.LINES,Nr.disabled,Vr.disabled,t.colorModeForRenderPass(),qr.disabled,{u_matrix:d.posMatrix,u_pixel_extrude_scale:[1/(f=t.transform).width,1/f.height]},t.style.map.terrain&&t.style.map.terrain.getTerrainData(d),n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,null,t.transform.zoom,null,null,g.collisionVertexBuffer)}var f;if(!a||!u.length)return;let p=t.useProgram("collisionCircle"),d=new e.aR;d.resize(4*c),d._trim();let m=0;for(let t of u)for(let e=0;e=0&&(v[x.associatedIconIndex]={shiftedAnchor:I,angle:L})}else Ot(x.numGlyphs,g)}if(c){y.clear();let r=t.icon.placedSymbolArray;for(let t=0;tt.style.map.terrain.getElevation(l,e,r):null,r="map"===n.layout.get("text-rotation-alignment");Tt(u,l.posMatrix,t,a,j,V,v,c,r,g,l.toUnwrapped(),m.width,m.height,q,e)}let Z,W=l.posMatrix,Y=a&&A||G,X=x||Y?Gr:j,$=U,J=I&&0!==n.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1);Z=I?u.iconsInText?Ge(L.kind,O,_,v,x,Y,t,W,X,$,q,f,R,S):He(L.kind,O,_,v,x,Y,t,W,X,$,q,a,f,!0,S):qe(L.kind,O,_,v,x,Y,t,W,X,$,q,a,f,S);let K={program:z,buffers:h,uniformValues:Z,atlasTexture:p,atlasTextureIcon:F,atlasInterpolation:k,atlasInterpolationIcon:E,isSDF:I,hasHalo:J};if(w&&u.canOverlap){T=!0;let t=h.segments.get();for(let r of t)M.push({segments:new e.a0([r]),sortKey:r.sortKey,state:K,terrainData:D})}else M.push({segments:h.segments,sortKey:0,state:K,terrainData:D})}T&&M.sort(((t,e)=>t.sortKey-e.sortKey));for(let e of M){let r=e.state;if(p.activeTexture.set(d.TEXTURE0),r.atlasTexture.bind(r.atlasInterpolation,d.CLAMP_TO_EDGE),r.atlasTextureIcon&&(p.activeTexture.set(d.TEXTURE1),r.atlasTextureIcon&&r.atlasTextureIcon.bind(r.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),r.isSDF){let i=r.uniformValues;r.hasHalo&&(i.u_is_halo=1,Jr(r.buffers,e.segments,n,t,r.program,k,h,f,i,e.terrainData)),i.u_is_halo=0}Jr(r.buffers,e.segments,n,t,r.program,k,h,f,r.uniformValues,e.terrainData)}}function Jr(t,e,r,n,i,a,o,s,l,u){let c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,qr.disabled,l,u,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function Kr(t,r,n,i){let a=t.context,o=a.gl,s=Vr.disabled,l=new Fr([o.ONE,o.ONE],e.aM.transparent,[!0,!0,!0,!0]),u=r.getBucket(n);if(!u)return;let c=i.key,h=n.heatmapFbos.get(c);h||(h=tn(a,r.tileSize,r.tileSize),n.heatmapFbos.set(c,h)),a.bindFramebuffer.set(h.framebuffer),a.viewport.set([0,0,r.tileSize,r.tileSize]),a.clear({color:e.aM.transparent});let f=u.programConfigurations.get(n.id),p=t.useProgram("heatmap",f),d=t.style.map.terrain.getTerrainData(i);p.draw(a,o.TRIANGLES,Nr.disabled,s,l,qr.disabled,Pe(i.posMatrix,r,t.transform.zoom,n.paint.get("heatmap-intensity")),d,n.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,n.paint,t.transform.zoom,f)}function Qr(t,e,r){let n=t.context,i=n.gl;n.setColorMode(t.colorModeForRenderPass());let a=en(n,e),o=r.key,s=e.heatmapFbos.get(o);s&&(n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,s.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(n,i.TRIANGLES,Nr.disabled,Vr.disabled,t.colorModeForRenderPass(),qr.disabled,ze(t,e,0,1),null,e.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments,e.paint,t.transform.zoom),s.destroy(),e.heatmapFbos.delete(o))}function tn(t,e,r){var n,i;let a=t.gl,o=a.createTexture();a.bindTexture(a.TEXTURE_2D,o),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);let s=null!==(n=t.HALF_FLOAT)&&void 0!==n?n:a.UNSIGNED_BYTE,l=null!==(i=t.RGBA16F)&&void 0!==i?i:a.RGBA;a.texImage2D(a.TEXTURE_2D,0,l,e,r,0,a.RGBA,s,null);let u=t.createFramebuffer(e,r,!1,!1);return u.colorAttachment.set(o),u}function en(t,e){return e.colorRampTexture||(e.colorRampTexture=new w(t,e.colorRamp,t.gl.RGBA)),e.colorRampTexture}function rn(t,e,r,n,i){if(!r||!n||!n.imageAtlas)return;let a=n.imageAtlas.patternPositions,o=a[r.to.toString()],s=a[r.from.toString()];if(!o&&s&&(o=s),!s&&o&&(s=o),!o||!s){let t=i.getPaintProperty(e);o=a[t],s=a[t]}o&&s&&t.setConstantPatternPositions(o,s)}function nn(t,e,r,n,i,a,o){let s,l,u,c,h,f=t.context.gl,p="fill-pattern",d=r.paint.get(p),m=d&&d.constantOr(1),g=r.getCrossfadeParameters();o?(l=m&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(l=m?"fillPattern":"fill",s=f.TRIANGLES);let y=d.constantOr(null);for(let d of n){let n=e.getTile(d);if(m&&!n.patternsLoaded())continue;let v=n.getBucket(r);if(!v)continue;let x=v.programConfigurations.get(r.id),_=t.useProgram(l,x),b=t.style.map.terrain&&t.style.map.terrain.getTerrainData(d);m&&(t.context.activeTexture.set(f.TEXTURE0),n.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),x.updatePaintBuffers(g)),rn(x,p,y,n,r);let w=b?d:null,T=t.translatePosMatrix(w?w.posMatrix:d.posMatrix,n,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(o){c=v.indexBuffer2,h=v.segments2;let e=[f.drawingBufferWidth,f.drawingBufferHeight];u="fillOutlinePattern"===l&&m?Se(T,t,g,n,e):Me(T,e)}else c=v.indexBuffer,h=v.segments,u=m?Ae(T,t,g,n):ke(T);_.draw(t.context,s,i,t.stencilModeForClipping(d),a,qr.disabled,u,b,r.id,v.layoutVertexBuffer,c,h,r.paint,t.transform.zoom,x)}}function an(t,e,r,n,i,a,o){let s=t.context,l=s.gl,u="fill-extrusion-pattern",c=r.paint.get(u),h=c.constantOr(1),f=r.getCrossfadeParameters(),p=r.paint.get("fill-extrusion-opacity"),d=c.constantOr(null);for(let c of n){let n=e.getTile(c),m=n.getBucket(r);if(!m)continue;let g=t.style.map.terrain&&t.style.map.terrain.getTerrainData(c),y=m.programConfigurations.get(r.id),v=t.useProgram(h?"fillExtrusionPattern":"fillExtrusion",y);h&&(t.context.activeTexture.set(l.TEXTURE0),n.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f)),rn(y,u,d,n,r);let x=t.translatePosMatrix(c.posMatrix,n,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),_=r.paint.get("fill-extrusion-vertical-gradient"),b=h?Te(x,t,_,p,c,f,n):we(x,t,_,p);v.draw(s,s.gl.TRIANGLES,i,a,o,qr.backCCW,b,g,r.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,r.paint,t.transform.zoom,y,t.style.map.terrain&&m.centroidVertexBuffer)}}function on(t,e,r,n,i,a,o){let s=t.context,l=s.gl,u=r.fbo;if(!u)return;let c=t.useProgram("hillshade"),h=t.style.map.terrain&&t.style.map.terrain.getTerrainData(e);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,u.colorAttachment.get()),c.draw(s,l.TRIANGLES,i,a,o,qr.disabled,((t,e,r,n)=>{let i=r.paint.get("hillshade-shadow-color"),a=r.paint.get("hillshade-highlight-color"),o=r.paint.get("hillshade-accent-color"),s=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(s-=t.transform.angle);let l=!t.options.moving;return{u_matrix:n?n.posMatrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),l),u_image:0,u_latrange:Oe(0,e.tileID),u_light:[r.paint.get("hillshade-exaggeration"),s],u_shadow:i,u_highlight:a,u_accent:o}})(t,r,n,h?e:null),h,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}function sn(t,r,n,i,a,o){let s=t.context,l=s.gl,u=r.dem;if(u&&u.data){let c=u.dim,h=u.stride,f=u.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||t.getTileTexture(h),r.demTexture){let t=r.demTexture;t.update(f,{premultiply:!1}),t.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else r.demTexture=new w(s,f,l.RGBA,{premultiply:!1}),r.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);let p=r.fbo;if(!p){let t=new w(s,{width:c,height:c,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),p=r.fbo=s.createFramebuffer(c,c,!0,!1),p.colorAttachment.set(t.texture)}s.bindFramebuffer.set(p.framebuffer),s.viewport.set([0,0,c,c]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,i,a,o,qr.disabled,((t,r)=>{let n=r.stride,i=e.H();return e.aP(i,0,e.X,-e.X,0,0,1),e.J(i,i,[0,-e.X,0]),{u_matrix:i,u_image:1,u_dimension:[n,n],u_zoom:t.overscaledZ,u_unpack:r.getUnpackVector()}})(r.tileID,u),null,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function ln(t,r,n,i,o,s){let l=i.paint.get("raster-fade-duration");if(!s&&l>0){let i=a.now(),s=(i-t.timeAdded)/l,u=r?(i-r.timeAdded)/l:-1,c=n.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!r||Math.abs(r.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),p=f&&t.refreshedUponExpiration?1:e.ac(f?s:1-u,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}let un=new e.aM(1,0,0,1),cn=new e.aM(0,1,0,1),hn=new e.aM(0,0,1,1),fn=new e.aM(1,0,1,1),pn=new e.aM(0,1,1,1);function dn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function mn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(t,e,r,n,i,a){let o=t.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(e*t.pixelRatio,r*t.pixelRatio,n*t.pixelRatio,i*t.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function yn(t,r,n){let i=t.context,a=i.gl,o=n.posMatrix,s=t.useProgram("debug"),l=Nr.disabled,u=Vr.disabled,c=t.colorModeForRenderPass(),h="$debug",f=t.style.map.terrain&&t.style.map.terrain.getTerrainData(n);i.activeTexture.set(a.TEXTURE0);let p=r.getTileByID(n.key).latestRawTileData,d=Math.floor((p&&p.byteLength||0)/1024),m=r.getTile(n).tileSize,g=512/Math.min(m,512)*(n.overscaledZ/t.transform.zoom)*.5,y=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(y+=` => ${n.overscaledZ}`),function(t,e){t.initDebugOverlayCanvas();let r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(t,`${y} ${d}kB`),s.draw(i,a.TRIANGLES,l,u,Fr.alphaBlended,qr.disabled,Ie(o,e.aM.transparent,g),null,h,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments),s.draw(i,a.LINE_STRIP,l,u,c,qr.disabled,Ie(o,e.aM.red),f,h,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments)}function vn(t,e,r){let n=t.context,i=n.gl,a=t.colorModeForRenderPass(),o=new Nr(i.LEQUAL,Nr.ReadWrite,t.depthRangeFor3D),s=t.useProgram("terrain"),l=e.getTerrainMesh();n.bindFramebuffer.set(null),n.viewport.set([0,0,t.width,t.height]);for(let u of r){let r=t.renderToTexture.getTexture(u),c=e.getTerrainData(u.tileID);n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,r.texture);let h=t.transform.calculatePosMatrix(u.tileID.toUnwrapped()),f=e.getMeshFrameDelta(t.transform.zoom),p=t.transform.calculateFogMatrix(u.tileID.toUnwrapped()),d=ve(h,f,p,t.style.sky,t.transform.pitch);s.draw(n,i.TRIANGLES,o,Vr.disabled,a,qr.backCCW,d,c,"terrain",l.vertexBuffer,l.indexBuffer,l.segments)}}class xn{constructor(t,e,r){this.vertexBuffer=t,this.indexBuffer=e,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class _n{constructor(t,r){this.context=new Br(t),this.transform=r,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:e.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ft.maxUnderzooming+ft.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new ce}resize(t,e,r){if(this.width=Math.floor(t*r),this.height=Math.floor(e*r),this.pixelRatio=r,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let t of this.style._order)this.style._layers[t].resize()}setup(){let t=this.context,r=new e.aX;r.emplaceBack(0,0),r.emplaceBack(e.X,0),r.emplaceBack(0,e.X),r.emplaceBack(e.X,e.X),this.tileExtentBuffer=t.createVertexBuffer(r,de.members),this.tileExtentSegments=e.a0.simpleSegment(0,0,4,2);let n=new e.aX;n.emplaceBack(0,0),n.emplaceBack(e.X,0),n.emplaceBack(0,e.X),n.emplaceBack(e.X,e.X),this.debugBuffer=t.createVertexBuffer(n,de.members),this.debugSegments=e.a0.simpleSegment(0,0,4,5);let i=new e.$;i.emplaceBack(0,0,0,0),i.emplaceBack(e.X,0,e.X,0),i.emplaceBack(0,e.X,0,e.X),i.emplaceBack(e.X,e.X,e.X,e.X),this.rasterBoundsBuffer=t.createVertexBuffer(i,Q.members),this.rasterBoundsSegments=e.a0.simpleSegment(0,0,4,2);let a=new e.aX;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(a,de.members),this.viewportSegments=e.a0.simpleSegment(0,0,4,2);let o=new e.aZ;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(o);let s=new e.aY;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);let l=this.context.gl;this.stencilClearMode=new Vr({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let n=e.H();e.aP(n,0,this.width,this.height,0,0,1),e.K(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,r.TRIANGLES,Nr.disabled,this.stencilClearMode,Fr.disabled,qr.disabled,Le(n),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(t,e){if(this.currentStencilSource===t.source||!t.isTileClipped()||!e||!e.length)return;this.currentStencilSource=t.source;let r=this.context,n=r.gl;this.nextStencilID+e.length>256&&this.clearStencil(),r.setColorMode(Fr.disabled),r.setDepthMode(Nr.disabled);let i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let t of e){let e=this._tileClippingMaskIDs[t.key]=this.nextStencilID++,a=this.style.map.terrain&&this.style.map.terrain.getTerrainData(t);i.draw(r,n.TRIANGLES,Nr.disabled,new Vr({func:n.ALWAYS,mask:0},e,255,n.KEEP,n.KEEP,n.REPLACE),Fr.disabled,qr.disabled,Le(t.posMatrix),a,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,e=this.context.gl;return new Vr({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)}stencilModeForClipping(t){let e=this.context.gl;return new Vr({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)}stencilConfigForOverlap(t){let e=this.context.gl,r=t.sort(((t,e)=>e.overscaledZ-t.overscaledZ)),n=r[r.length-1].overscaledZ,i=r[0].overscaledZ-n+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();let t={};for(let r=0;r=0;this.currentLayer--){let t=this.style._layers[n[this.currentLayer]],e=i[t.source],r=o[t.source];this._renderTileClippingMasks(t,r),this.renderLayer(this,e,t,r)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerr.source&&!r.isHidden(e)?[t.sourceCaches[r.source]]:[])),i=n.filter((t=>"vector"===t.getSource().type)),a=n.filter((t=>"vector"!==t.getSource().type)),o=t=>{(!r||r.getSource().maxzoomo(t))),r||a.forEach((t=>o(t))),r}(this.style,this.transform.zoom);t&&function(t,e,r){for(let n=0;n0),i&&(e.b0(r,n),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(t,r){let n=t.context,i=n.gl,a=Fr.unblended,o=new Nr(i.LEQUAL,Nr.ReadWrite,[0,1]),s=r.getTerrainMesh(),l=r.sourceCache.getRenderableTiles(),u=t.useProgram("terrainDepth");n.bindFramebuffer.set(r.getFramebuffer("depth").framebuffer),n.viewport.set([0,0,t.width/devicePixelRatio,t.height/devicePixelRatio]),n.clear({color:e.aM.transparent,depth:1});for(let e of l){let l=r.getTerrainData(e.tileID),c={u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped()),u_ele_delta:r.getMeshFrameDelta(t.transform.zoom)};u.draw(n,i.TRIANGLES,o,Vr.disabled,a,qr.backCCW,c,l,"terrain",s.vertexBuffer,s.indexBuffer,s.segments)}n.bindFramebuffer.set(null),n.viewport.set([0,0,t.width,t.height])}(this,this.style.map.terrain),function(t,r){let n=t.context,i=n.gl,a=Fr.unblended,o=new Nr(i.LEQUAL,Nr.ReadWrite,[0,1]),s=r.getTerrainMesh(),l=r.getCoordsTexture(),u=r.sourceCache.getRenderableTiles(),c=t.useProgram("terrainCoords");n.bindFramebuffer.set(r.getFramebuffer("coords").framebuffer),n.viewport.set([0,0,t.width/devicePixelRatio,t.height/devicePixelRatio]),n.clear({color:e.aM.transparent,depth:1}),r.coordsIndex=[];for(let e of u){let u=r.getTerrainData(e.tileID);n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,l.texture);let h={u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped()),u_terrain_coords_id:(255-r.coordsIndex.length)/255,u_texture:0,u_ele_delta:r.getMeshFrameDelta(t.transform.zoom)};c.draw(n,i.TRIANGLES,o,Vr.disabled,a,qr.backCCW,h,u,"terrain",s.vertexBuffer,s.indexBuffer,s.segments),r.coordsIndex.push(e.tileID.key)}n.bindFramebuffer.set(null),n.viewport.set([0,0,t.width,t.height])}(this,this.style.map.terrain))}renderLayer(t,r,n,i){if(!n.isHidden(this.transform.zoom)&&("background"===n.type||"custom"===n.type||(i||[]).length))switch(this.id=n.id,n.type){case"symbol":!function(t,r,n,i,a){if("translucent"!==t.renderPass)return;let o=Vr.disabled,s=t.colorModeForRenderPass();(n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(t,r,n,i,a,o,s,l,u){let c=r.transform,h=ne(),f="map"===a,p="map"===o;for(let a of t){let t=i.getTile(a),o=t.getBucket(n);if(!o||!o.text||!o.text.segments.get().length)continue;let d=e.ag(o.textSizeData,c.zoom),m=Bt(t,1,r.transform.zoom),g=vt(a.posMatrix,p,f,r.transform,m),y="none"!==n.layout.get("icon-text-fit")&&o.hasIconData();if(d){let e=Math.pow(2,c.zoom-t.tileID.overscaledZ),n=r.style.map.terrain?(t,e)=>r.style.map.terrain.getElevation(a,t,e):null,i=h.translatePosition(c,t,s,l);Yr(o,f,p,u,c,g,a.posMatrix,e,d,y,h,i,a.toUnwrapped(),n)}}}(i,t,n,r,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),a),0!==n.paint.get("icon-opacity").constantOr(1)&&$r(t,r,n,i,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),o,s),0!==n.paint.get("text-opacity").constantOr(1)&&$r(t,r,n,i,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),o,s),r.map.showCollisionBoxes&&(Hr(t,r,n,i,!0),Hr(t,r,n,i,!1))}(t,r,n,i,this.style.placement.variableOffsets);break;case"circle":!function(t,r,n,i){if("translucent"!==t.renderPass)return;let a=n.paint.get("circle-opacity"),o=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),l=!n.layout.get("circle-sort-key").isConstant();if(0===a.constantOr(1)&&(0===o.constantOr(1)||0===s.constantOr(1)))return;let u=t.context,c=u.gl,h=t.depthModeForSublayer(0,Nr.ReadOnly),f=Vr.disabled,p=t.colorModeForRenderPass(),d=[];for(let a=0;at.sortKey-e.sortKey));for(let e of d){let{programConfiguration:r,program:i,layoutVertexBuffer:a,indexBuffer:o,uniformValues:s,terrainData:l}=e.state;i.draw(u,c.TRIANGLES,h,f,p,qr.disabled,s,l,n.id,a,o,e.segments,n.paint,t.transform.zoom,r)}}(t,r,n,i);break;case"heatmap":!function(t,r,n,i){if(0===n.paint.get("heatmap-opacity"))return;let a=t.context;if(t.style.map.terrain){for(let e of i){let i=r.getTile(e);r.hasRenderableParent(e)||("offscreen"===t.renderPass?Kr(t,i,n,e):"translucent"===t.renderPass&&Qr(t,n,e))}a.viewport.set([0,0,t.width,t.height])}else"offscreen"===t.renderPass?function(t,r,n,i){let a=t.context,o=a.gl,s=Vr.disabled,l=new Fr([o.ONE,o.ONE],e.aM.transparent,[!0,!0,!0,!0]);(function(t,r,n){let i=t.gl;t.activeTexture.set(i.TEXTURE1),t.viewport.set([0,0,r.width/4,r.height/4]);let a=n.heatmapFbos.get(e.aU);a?(i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),t.bindFramebuffer.set(a.framebuffer)):(a=tn(t,r.width/4,r.height/4),n.heatmapFbos.set(e.aU,a))})(a,t,n),a.clear({color:e.aM.transparent});for(let e=0;e20&&a.texParameterf(a.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax);let _=t.style.map.terrain&&t.style.map.terrain.getTerrainData(n),b=_?n:null,w=b?b.posMatrix:t.transform.calculatePosMatrix(n.toUnwrapped(),f),T=Ue(w,m||[0,0],d||1,v,r);o instanceof tt?s.draw(i,a.TRIANGLES,c,Vr.disabled,l,qr.disabled,T,_,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,c,u[n.overscaledZ],l,qr.disabled,T,_,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}(t,r,n,i);break;case"background":!function(t,e,r,n){let i=r.paint.get("background-color"),a=r.paint.get("background-opacity");if(0===a)return;let o=t.context,s=o.gl,l=t.transform,u=l.tileSize,c=r.paint.get("background-pattern");if(t.isPatternMissing(c))return;let h=!c&&1===i.a&&1===a&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==h)return;let f=Vr.disabled,p=t.depthModeForSublayer(0,"opaque"===h?Nr.ReadWrite:Nr.ReadOnly),d=t.colorModeForRenderPass(),m=t.useProgram(c?"backgroundPattern":"background"),g=n||l.coveringTiles({tileSize:u,terrain:t.style.map.terrain});c&&(o.activeTexture.set(s.TEXTURE0),t.imageManager.bind(t.context));let y=r.getCrossfadeParameters();for(let e of g){let l=n?e.posMatrix:t.transform.calculatePosMatrix(e.toUnwrapped()),h=c?We(l,a,t,c,{tileID:e,tileSize:u},y):Ze(l,a,i),g=t.style.map.terrain&&t.style.map.terrain.getTerrainData(e);m.draw(o,s.TRIANGLES,p,f,d,qr.disabled,h,g,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}(t,0,n,i);break;case"custom":!function(t,e,r){let n=t.context,i=r.implementation;if("offscreen"===t.renderPass){let e=i.prerender;e&&(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),e.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Vr.disabled);let e="3d"===i.renderingMode?new Nr(t.context.gl.LEQUAL,Nr.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Nr.ReadOnly);n.setDepthMode(e),i.render(n.gl,t.transform.customLayerMatrix(),{farZ:t.transform.farZ,nearZ:t.transform.nearZ,fov:t.transform._fov,modelViewProjectionMatrix:t.transform.modelViewProjectionMatrix,projectionMatrix:t.transform.projectionMatrix}),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}(t,0,n)}}translatePosMatrix(t,r,n,i,a){if(!n[0]&&!n[1])return t;let o=a?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(o){let t=Math.sin(o),e=Math.cos(o);n=[n[0]*e-n[1]*t,n[0]*t+n[1]*e]}let s=[a?n[0]:Bt(r,n[0],this.transform.zoom),a?n[1]:Bt(r,n[1],this.transform.zoom),0],l=new Float32Array(16);return e.J(l,t,s),l}saveTileTexture(t){let e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]}getTileTexture(t){let e=this._tileTextures[t];return e&&e.length>0?e.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r}useProgram(t,e){this.cache=this.cache||{};let r=t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[r]||(this.cache[r]=new _e(this.context,me[t],e,Ye[t],this._showOverdrawInspector,this.style.map.terrain)),this.cache[r]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new w(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:e}=this.context.gl;return this.width!==t||this.height!==e}}class bn{constructor(t,e){this.points=t,this.planes=e}static fromInvProjectionMatrix(t,r,n){let i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((n=>{let a=1/(n=e.af([],n,t))[3]/r*i;return e.b1(n,n,[a,a,1/n[3],a])})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((t=>{let e=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}([],(n=[],i=y([],a[t[0]],a[t[1]]),o=y([],a[t[2]],a[t[1]]),s=i[0],l=i[1],u=i[2],c=o[0],h=o[1],f=o[2],n[0]=l*f-u*h,n[1]=u*c-s*f,n[2]=s*h-l*c,n)),r=-((p=e)[0]*(d=a[t[1]])[0]+p[1]*d[1]+p[2]*d[2]);var n,i,o,s,l,u,c,h,f,p,d;return e.concat(r)}));return new bn(a,o)}}class wn{constructor(t,e){var r,n,i;this.min=t,this.max=e,this.center=function(t,e){return t[0]=.5*e[0],t[1]=.5*e[1],t[2]=.5*e[2],t}([],(r=[],n=this.min,i=this.max,r[0]=n[0]+i[0],r[1]=n[1]+i[1],r[2]=n[2]+i[2],r))}quadrant(t){let e=[t%2==0,t<2],r=m(this.min),n=m(this.max);for(let t=0;t=0&&o++;if(0===o)return 0;o!==r.length&&(n=!1)}if(n)return 2;for(let e=0;e<3;e++){let r=Number.MAX_VALUE,n=-Number.MAX_VALUE;for(let i=0;ithis.max[e]-this.min[e])return 0}return 1}}class Tn{constructor(t=0,e=0,r=0,n=0){if(isNaN(t)||t<0||isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=r,this.right=n}interpolate(t,r,n){return null!=r.top&&null!=t.top&&(this.top=e.y.number(t.top,r.top,n)),null!=r.bottom&&null!=t.bottom&&(this.bottom=e.y.number(t.bottom,r.bottom,n)),null!=r.left&&null!=t.left&&(this.left=e.y.number(t.left,r.left,n)),null!=r.right&&null!=t.right&&(this.right=e.y.number(t.right,r.right,n)),this}getCenter(t,r){let n=e.ac((this.left+t-this.right)/2,0,t),i=e.ac((this.top+r-this.bottom)/2,0,r);return new e.P(n,i)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Tn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let kn=85.051129;class An{constructor(t,r,n,i,a){this.tileSize=512,this._renderWorldCopies=void 0===a||!!a,this._minZoom=t||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Tn,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let t=new An(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.apply(this),t}apply(t){this.tileSize=t.tileSize,this.latRange=t.latRange,this.lngRange=t.lngRange,this.width=t.width,this.height=t.height,this._center=t._center,this._elevation=t._elevation,this.minElevationForCurrentTile=t.minElevationForCurrentTile,this.zoom=t.zoom,this.angle=t.angle,this._fov=t._fov,this._pitch=t._pitch,this._unmodified=t._unmodified,this._edgeInsets=t._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){let r=-e.b3(t,-180,180)*Math.PI/180;var n;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=(n=new e.A(4),e.A!=Float32Array&&(n[1]=0,n[2]=0),n[0]=1,n[3]=1,n),function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){let r=e.ac(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(t){let e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.tileZoom=Math.max(0,Math.floor(e)),this.scale=this.zoomScale(e),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(t){t!==this._elevation&&(this._elevation=t,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){let e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}getVisibleUnwrappedCoordinates(t){let r=[new e.b4(0,t)];if(this._renderWorldCopies){let n=this.pointCoordinate(new e.P(0,0)),i=this.pointCoordinate(new e.P(this.width,0)),a=this.pointCoordinate(new e.P(this.width,this.height)),o=this.pointCoordinate(new e.P(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),u=1;for(let n=s-u;n<=l+u;n++)0!==n&&r.push(new e.b4(n,t))}return r}coveringTiles(t){var r,n;let i=this.coveringZoomLevel(t),a=i;if(void 0!==t.minzoom&&it.maxzoom&&(i=t.maxzoom);let o=this.pointCoordinate(this.getCameraPoint()),s=e.Z.fromLngLat(this.center),l=Math.pow(2,i),u=[l*o.x,l*o.y,0],c=[l*s.x,l*s.y,0],h=bn.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,i),f=t.minzoom||0;!t.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(f=i);let p=t.terrain?2/Math.min(this.tileSize,t.tileSize)*this.tileSize:3,d=t=>({aabb:new wn([t*l,0,0],[(t+1)*l,l,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),m=[],g=[],y=i,v=t.reparseOverscaled?a:i;if(this._renderWorldCopies)for(let t=1;t<=3;t++)m.push(d(-t)),m.push(d(t));for(m.push(d(0));m.length>0;){let i=m.pop(),a=i.x,o=i.y,s=i.fullyVisible;if(!s){let t=i.aabb.intersects(h);if(0===t)continue;s=2===t}let l=t.terrain?u:c,d=i.aabb.distanceX(l),_=i.aabb.distanceY(l),b=Math.max(Math.abs(d),Math.abs(_));if(i.zoom===y||b>p+(1<=f){let t=y-i.zoom,r=u[0]-.5-(a<>1),h=i.zoom+1,f=i.aabb.quadrant(l);if(t.terrain){let a=new e.S(h,i.wrap,h,u,c),o=t.terrain.getMinMaxElevation(a),s=null!==(r=o.minElevation)&&void 0!==r?r:this.elevation,l=null!==(n=o.maxElevation)&&void 0!==n?n:this.elevation;f=new wn([f.min[0],f.min[1],s],[f.max[0],f.max[1],l])}m.push({aabb:f,zoom:h,x:u,y:c,wrap:i.wrap,fullyVisible:s})}}return g.sort(((t,e)=>t.distanceSq-e.distanceSq)).map((t=>t.tileID))}resize(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(t){let r=e.ac(t.lat,-85.051129,kn);return new e.P(e.O(t.lng)*this.worldSize,e.Q(r)*this.worldSize)}unproject(t){return new e.Z(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(t){let r=this.elevation,n=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,i=this.pointLocation(this.centerPoint,t),a=t.getElevationForLngLatZoom(i,this.tileZoom);if(!(this.elevation-a))return;let o=n+r-a,s=Math.cos(this._pitch)*this.cameraToCenterDistance/o/e.b5(1,i.lat),l=this.scaleZoom(s/this.tileSize);this._elevation=a,this._center=i,this.zoom=l}setLocationAtPoint(t,r){let n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(t),o=new e.Z(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(t,e){return e?this.coordinatePoint(this.locationCoordinate(t),e.getElevationForLngLatZoom(t,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(t))}pointLocation(t,e){return this.coordinateLocation(this.pointCoordinate(t,e))}locationCoordinate(t){return e.Z.fromLngLat(t)}coordinateLocation(t){return t&&t.toLngLat()}pointCoordinate(t,r){if(r){let e=r.pointCoordinate(t);if(null!=e)return e}let n=[t.x,t.y,0,1],i=[t.x,t.y,1,1];e.af(n,n,this.pixelMatrixInverse),e.af(i,i,this.pixelMatrixInverse);let a=n[3],o=i[3],s=n[1]/a,l=i[1]/o,u=n[2]/a,c=i[2]/o,h=u===c?0:(0-u)/(c-u);return new e.Z(e.y.number(n[0]/a,i[0]/o,h)/this.worldSize,e.y.number(s,l,h)/this.worldSize)}coordinatePoint(t,r=0,n=this.pixelMatrix){let i=[t.x*this.worldSize,t.y*this.worldSize,r,1];return e.af(i,i,n),new e.P(i[0]/i[3],i[1]/i[3])}getBounds(){let t=Math.max(0,this.height/2-this.getHorizon());return(new W).extend(this.pointLocation(new e.P(0,t))).extend(this.pointLocation(new e.P(this.width,t))).extend(this.pointLocation(new e.P(this.width,this.height))).extend(this.pointLocation(new e.P(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new W([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,kn])}calculateTileMatrix(t){let r=t.canonical,n=this.worldSize/this.zoomScale(r.z),i=r.x+Math.pow(2,r.z)*t.wrap,a=e.an(new Float64Array(16));return e.J(a,a,[i*n,r.y*n,0]),e.K(a,a,[n/e.X,n/e.X,1]),a}calculatePosMatrix(t,r=!1){let n=t.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];let a=this.calculateTileMatrix(t);return e.L(a,r?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,a),i[n]=new Float32Array(a),i[n]}calculateFogMatrix(t){let r=t.key,n=this._fogMatrixCache;if(n[r])return n[r];let i=this.calculateTileMatrix(t);return e.L(i,this.fogMatrix,i),n[r]=new Float32Array(i),n[r]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(t,r){r=e.ac(+r,this.minZoom,this.maxZoom);let n={center:new e.N(t.lng,t.lat),zoom:r},i=this.lngRange;if(!this._renderWorldCopies&&null===i){let t=179.9999999999;i=[-t,t]}let a=this.tileSize*this.zoomScale(n.zoom),o=0,s=a,l=0,u=a,c=0,h=0,{x:f,y:p}=this.size;if(this.latRange){let t=this.latRange;o=e.Q(t[1])*a,s=e.Q(t[0])*a,s-os&&(m=s-t)}if(i){let t=(l+u)/2,r=g;this._renderWorldCopies&&(r=e.b3(g,t-a/2,t+a/2));let n=f/2;r-nu&&(d=u-n)}if(void 0!==d||void 0!==m){let t=new e.P(null!=d?d:g,null!=m?m:y);n.center=this.unproject.call({worldSize:a},t).wrap()}return n}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t=this._unmodified,{center:e,zoom:r}=this.getConstrained(this.center,this.zoom);this.center=e,this.zoom=r,this._unmodified=t,this._constraining=!1}_calcMatrices(){if(!this.height)return;let t=this.centerOffset,r=this.point.x,n=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=e.b5(1,this.center.lat)*this.worldSize;let i=e.an(new Float64Array(16));e.K(i,i,[this.width/2,-this.height/2,1]),e.J(i,i,[1,-1,0]),this.labelPlaneMatrix=i,i=e.an(new Float64Array(16)),e.K(i,i,[1,-1,1]),e.J(i,i,[-1,-1,0]),e.K(i,i,[2/this.width,2/this.height,1]),this.glCoordMatrix=i;let a=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),o=Math.min(this.elevation,this.minElevationForCurrentTile),s=a-o*this._pixelPerMeter/Math.cos(this._pitch),l=o<0?s:a,u=Math.PI/2+this._pitch,c=this._fov*(.5+t.y/this.height),h=Math.sin(c)*l/Math.sin(e.ac(Math.PI-u-c,.01,Math.PI-.01)),f=this.getHorizon(),p=2*Math.atan(f/this.cameraToCenterDistance)*(.5+t.y/(2*f)),d=Math.sin(p)*l/Math.sin(e.ac(Math.PI-u-p,.01,Math.PI-.01)),m=Math.min(h,d);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*m+l),this.nearZ=this.height/50,i=new Float64Array(16),e.b6(i,this._fov,this.width/this.height,this.nearZ,this.farZ),i[8]=2*-t.x/this.width,i[9]=2*t.y/this.height,this.projectionMatrix=e.ae(i),e.K(i,i,[1,-1,1]),e.J(i,i,[0,0,-this.cameraToCenterDistance]),e.b7(i,i,this._pitch),e.ad(i,i,this.angle),e.J(i,i,[-r,-n,0]),this.mercatorMatrix=e.K([],i,[this.worldSize,this.worldSize,this.worldSize]),e.K(i,i,[1,1,this._pixelPerMeter]),this.pixelMatrix=e.L(new Float64Array(16),this.labelPlaneMatrix,i),e.J(i,i,[0,0,-this.elevation]),this.modelViewProjectionMatrix=i,this.invModelViewProjectionMatrix=e.as([],i),this.fogMatrix=new Float64Array(16),e.b6(this.fogMatrix,this._fov,this.width/this.height,a,this.farZ),this.fogMatrix[8]=2*-t.x/this.width,this.fogMatrix[9]=2*t.y/this.height,e.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),e.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),e.b7(this.fogMatrix,this.fogMatrix,this._pitch),e.ad(this.fogMatrix,this.fogMatrix,this.angle),e.J(this.fogMatrix,this.fogMatrix,[-r,-n,0]),e.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),e.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=e.L(new Float64Array(16),this.labelPlaneMatrix,i);let g=this.width%2/2,y=this.height%2/2,v=Math.cos(this.angle),x=Math.sin(this.angle),_=r-Math.round(r)+v*g+x*y,b=n-Math.round(n)+v*y+x*g,w=new Float64Array(i);if(e.J(w,w,[_>.5?_-1:_,b>.5?b-1:b,0]),this.alignedModelViewProjectionMatrix=w,i=e.as(new Float64Array(16),this.pixelMatrix),!i)throw new Error("failed to invert matrix");this.pixelMatrixInverse=i,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let t=this.pointCoordinate(new e.P(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.af(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.P(0,t))}getCameraQueryGeometry(t){let r=this.getCameraPoint();if(1===t.length)return[t[0],r];{let n=r.x,i=r.y,a=r.x,o=r.y;for(let e of t)n=Math.min(n,e.x),i=Math.min(i,e.y),a=Math.max(a,e.x),o=Math.max(o,e.y);return[new e.P(n,i),new e.P(a,i),new e.P(a,o),new e.P(n,o),new e.P(n,i)]}}lngLatToCameraDepth(t,r){let n=this.locationCoordinate(t),i=[n.x*this.worldSize,n.y*this.worldSize,r,1];return e.af(i,i,this.modelViewProjectionMatrix),i[2]/i[3]}}function Mn(t,e){let r,n=!1,i=null,a=null,o=()=>{i=null,n&&(t.apply(a,r),i=setTimeout(o,e),n=!1)};return(...t)=>(n=!0,a=this,r=t,i||o(),i)}class Sn{constructor(t){this._getCurrentHash=()=>{let t=window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map((t=>t.split("="))).forEach((t=>{t[0]===this._hashName&&(e=t)})),(e&&e[1]||"").split("/")}return t.split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(t.length>=3&&!t.some((t=>isNaN(t)))){let e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getCurrentHash();if(0===t.length)return;let e=t.join("/"),r=e;r.split("&").length>0&&(r=r.split("&")[0]),this._hashName&&(r=`${this._hashName}=${e}`);let n=window.location.hash.replace(r,"");n.startsWith("#&")?n=n.slice(0,1)+n.slice(2):"#"===n&&(n="");let i=window.location.href.replace(/(#.+)?$/,n);i=i.replace("&&","&"),window.history.replaceState(window.history.state,null,i)},this._updateHash=Mn(this._updateHashUnthrottled,300),this._hashName=t&&encodeURIComponent(t)}addTo(t){return this._map=t,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(t){let e=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,n=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,n),a=Math.round(e.lng*i)/i,o=Math.round(e.lat*i)/i,s=this._map.getBearing(),l=this._map.getPitch(),u="";if(u+=t?`/${a}/${o}/${r}`:`${r}/${o}/${a}`,(s||l)&&(u+="/"+Math.round(10*s)/10),l&&(u+=`/${Math.round(l)}`),this._hashName){let t=this._hashName,e=!1,r=window.location.hash.slice(1).split("&").map((r=>{let n=r.split("=")[0];return n===t?(e=!0,`${n}=${u}`):r})).filter((t=>t));return e||r.push(`${t}=${u}`),`#${r.join("&")}`}return`#${u}`}}let En={linearity:.3,easing:e.b8(0,0,.3,1)},Cn=e.e({deceleration:2500,maxSpeed:1400},En),In=e.e({deceleration:20,maxSpeed:1400},En),Ln=e.e({deceleration:1e3,maxSpeed:360},En),Pn=e.e({deceleration:1e3,maxSpeed:90},En);class zn{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.now(),settings:t})}_drainInertiaBuffer(){let t=this._inertiaBuffer,e=a.now();for(;t.length>0&&e-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let r={zoom:0,bearing:0,pitch:0,pan:new e.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:t}of this._inertiaBuffer)r.zoom+=t.zoomDelta||0,r.bearing+=t.bearingDelta||0,r.pitch+=t.pitchDelta||0,t.panDelta&&r.pan._add(t.panDelta),t.around&&(r.around=t.around),t.pinchAround&&(r.pinchAround=t.pinchAround);let n=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(r.pan.mag()){let a=Dn(r.pan.mag(),n,e.e({},Cn,t||{}));i.offset=r.pan.mult(a.amount/r.pan.mag()),i.center=this._map.transform.center,On(i,a)}if(r.zoom){let t=Dn(r.zoom,n,In);i.zoom=this._map.transform.zoom+t.amount,On(i,t)}if(r.bearing){let t=Dn(r.bearing,n,Ln);i.bearing=this._map.transform.bearing+e.ac(t.amount,-179,179),On(i,t)}if(r.pitch){let t=Dn(r.pitch,n,Pn);i.pitch=this._map.transform.pitch+t.amount,On(i,t)}if(i.zoom||i.bearing){let t=void 0===r.pinchAround?r.around:r.pinchAround;i.around=t?this._map.unproject(t):this._map.getCenter()}return this.clear(),e.e(i,{noMoveStart:!0})}}function On(t,e){(!t.duration||t.durationr.unproject(t))),l=a.reduce(((t,e,r,n)=>t.add(e.div(n.length))),new e.P(0,0));super(t,{points:a,point:l,lngLats:s,lngLat:r.unproject(l),originalEvent:n}),this._defaultPrevented=!1}}class Bn extends e.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,e,r){super(t,{originalEvent:r}),this._defaultPrevented=!1}}class Nn{constructor(t,e){this._map=t,this._clickTolerance=e.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new Bn(t.type,this._map,t))}mousedown(t,e){return this._mousedownPos=e,this._firePreventable(new Rn(t.type,this._map,t))}mouseup(t){this._map.fire(new Rn(t.type,this._map,t))}click(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new Rn(t.type,this._map,t))}dblclick(t){return this._firePreventable(new Rn(t.type,this._map,t))}mouseover(t){this._map.fire(new Rn(t.type,this._map,t))}mouseout(t){this._map.fire(new Rn(t.type,this._map,t))}touchstart(t){return this._firePreventable(new Fn(t.type,this._map,t))}touchmove(t){this._map.fire(new Fn(t.type,this._map,t))}touchend(t){this._map.fire(new Fn(t.type,this._map,t))}touchcancel(t){this._map.fire(new Fn(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class jn{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new Rn(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new Rn(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Un{constructor(t){this._map=t}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.pointLocation(e.P.convert(t),this._map.terrain)}}class Vn{constructor(t,e){this._map=t,this._tr=new Un(t),this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(o.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)}mousemoveWindow(t,e){if(!this._active)return;let r=e;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)t.fitScreenCoordinates(n,i,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(o.remove(this._box),this._box=null),o.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,r){return this._map.fire(new e.k(t,{originalEvent:r}))}}function qn(t,e){if(t.length!==e.length)throw new Error(`The number of touches and points are not equal - touches ${t.length}, points ${e.length}`);let r={};for(let n=0;nthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){let r=new e.P(0,0);for(let e of t)r._add(e);return r.div(t.length)}(r),this.touches=qn(n,r)))}touchmove(t,e,r){if(this.aborted||!this.centroid)return;let n=qn(r,e);for(let t in this.touches){let e=n[t];(!e||e.dist(this.touches[t])>30)&&(this.aborted=!0)}}touchend(t,e,r){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){let t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}}class Gn{constructor(t){this.singleTap=new Hn(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,e,r){this.singleTap.touchstart(t,e,r)}touchmove(t,e,r){this.singleTap.touchmove(t,e,r)}touchend(t,e,r){let n=this.singleTap.touchend(t,e,r);if(n){let e=t.timeStamp-this.lastTime<500,r=!this.lastTap||this.lastTap.dist(n)<30;if(e&&r||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}}}class Zn{constructor(t){this._tr=new Un(t),this._zoomIn=new Gn({numTouches:1,numTaps:2}),this._zoomOut=new Gn({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)}touchmove(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)}touchend(t,e,r){let n=this._zoomIn.touchend(t,e,r),i=this._zoomOut.touchend(t,e,r),a=this._tr;return n?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:a.zoom+1,around:a.unproject(n)},{originalEvent:t})}):i?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:a.zoom-1,around:a.unproject(i)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wn{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){let e=this._moveFunction(...t);if(e.bearingDelta||e.pitchDelta||e.around||e.panDelta)return this._active=!0,e}dragStart(t,e){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=e.length?e[0]:e,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,e){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);let n=e.length?e[0]:e;return!this._moved&&n.dist(r){t.mousedown=t.dragStart,t.mousemoveWindow=t.dragMove,t.mouseup=t.dragEnd,t.contextmenu=t=>{t.preventDefault()}},Kn=({enable:t,clickTolerance:e,bearingDegreesPerPixelMoved:r=.8})=>{let n=new Xn({checkCorrectEvent:t=>0===o.mouseButton(t)&&t.ctrlKey||2===o.mouseButton(t)});return new Wn({clickTolerance:e,move:(t,e)=>({bearingDelta:(e.x-t.x)*r}),moveStateManager:n,enable:t,assignEvents:Jn})},Qn=({enable:t,clickTolerance:e,pitchDegreesPerPixelMoved:r=-.5})=>{let n=new Xn({checkCorrectEvent:t=>0===o.mouseButton(t)&&t.ctrlKey||2===o.mouseButton(t)});return new Wn({clickTolerance:e,move:(t,e)=>({pitchDelta:(e.y-t.y)*r}),moveStateManager:n,enable:t,assignEvents:Jn})};class ti{constructor(t,e){this._clickTolerance=t.clickTolerance||1,this._map=e,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new e.P(0,0)}_shouldBePrevented(t){return t<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(t,e,r){return this._calculateTransform(t,e,r)}touchmove(t,e,r){if(this._active){if(!this._shouldBePrevented(r.length))return t.preventDefault(),this._calculateTransform(t,e,r);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",t)}}touchend(t,e,r){this._calculateTransform(t,e,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,r,n){n.length>0&&(this._active=!0);let i=qn(n,r),a=new e.P(0,0),o=new e.P(0,0),s=0;for(let t in i){let e=i[t],r=this._touches[t];r&&(a._add(e),o._add(e.sub(r)),s++,i[t]=e)}if(this._touches=i,this._shouldBePrevented(s)||!o.mag())return;let l=o.div(s);return this._sum._add(l),this._sum.mag()Math.abs(t.x)}class li extends ei{constructor(t){super(),this._currentTouchCount=0,this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,e,r){super.touchstart(t,e,r),this._currentTouchCount=r.length}_start(t){this._lastPoints=t,si(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,e,r){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid?(this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}):void 0}gestureBeginsVertically(t,e,r){if(void 0!==this._valid)return this._valid;let n=t.mag()>=2,i=e.mag()>=2;if(!n&&!i)return;if(!n||!i)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;let a=t.y>0==e.y>0;return si(t)&&si(e)&&a}}let ui={panStep:100,bearingStep:15,pitchStep:10};class ci{constructor(t){this._tr=new Un(t);let e=ui;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let e=0,r=0,n=0,i=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?n=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,n=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:hi,zoom:e?Math.round(s.zoom)+e*(t.shiftKey?2:1):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+n*this._pitchStep,offset:[-i*this._panStep,-a*this._panStep],center:s.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function hi(t){return t*(2-t)}let fi=4.000244140625;class pi{constructor(t,e){this._onTimeout=t=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},this._map=t,this._tr=new Un(t),this._triggerRenderFrame=e,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(t){return!!this._map.cooperativeGestures.isEnabled()&&!(t.ctrlKey||this._map.cooperativeGestures.isBypassed(t))}wheel(t){if(!this.isEnabled())return;if(this._shouldBePrevented(t))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",t);let e=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=a.now(),n=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==e&&e%fi==0?this._type="wheel":0!==e&&Math.abs(e)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=e,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(n*e)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,e+=this._lastValue)),t.shiftKey&&e&&(e/=4),this._type&&(this._lastWheelEvent=t,this._delta-=e,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let r=o.mousePos(this._map.getCanvas(),t),n=this._tr;this._around=r.y>n.transform.height/2-n.transform.getHorizon()?e.N.convert(this._aroundCenter?n.center:n.unproject(r)):e.N.convert(n.center),this._aroundPoint=n.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let t=this._tr.transform;if(0!==this._delta){let e="wheel"===this._type&&Math.abs(this._delta)>fi?this._wheelZoomRate:this._defaultZoomRate,r=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==r&&(r=1/r);let n="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(n*r))),"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let r,n="number"==typeof this._targetZoom?this._targetZoom:t.zoom,i=this._startZoom,o=this._easing,s=!1,l=a.now()-this._lastWheelEventTime;if("wheel"===this._type&&i&&o&&l){let t=Math.min(l/200,1),a=o(t);r=e.y.number(i,n,a),t<1?this._frameId||(this._frameId=!0):s=!0}else r=n,s=!0;return this._active=!0,s&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:r-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let r=e.b9;if(this._prevEase){let t=this._prevEase,n=(a.now()-t.start)/t.duration,i=t.easing(n+.01)-t.easing(n),o=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=e.b8(o,s,.25,1)}return this._prevEase={start:a.now(),duration:t,easing:r},r}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class di{constructor(t,e){this._clickZoom=t,this._tapZoom=e}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class mi{constructor(t){this._tr=new Un(t),this.reset()}reset(){this._active=!1}dblclick(t,e){return t.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:this._tr.zoom+(t.shiftKey?-1:1),around:this._tr.unproject(e)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class gi{constructor(){this._tap=new Gn({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(t,e,r){if(!this._swipePoint)if(this._tapTime){let n=e[0],i=t.timeStamp-this._tapTime<500,a=this._tapPoint.dist(n)<30;i&&a?r.length>0&&(this._swipePoint=n,this._swipeTouch=r[0].identifier):this.reset()}else this._tap.touchstart(t,e,r)}touchmove(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)}touchend(t,e,r){if(this._tapTime)this._swipePoint&&0===r.length&&this.reset();else{let n=this._tap.touchend(t,e,r);n&&(this._tapTime=t.timeStamp,this._tapPoint=n)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class yi{constructor(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class vi{constructor(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class xi{constructor(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class _i{constructor(t,e){this._bypassKey=-1!==navigator.userAgent.indexOf("Mac")?"metaKey":"ctrlKey",this._map=t,this._options=e,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let t=this._map.getCanvasContainer();t.classList.add("maplibregl-cooperative-gestures"),this._container=o.create("div","maplibregl-cooperative-gesture-screen",t);let e=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");"metaKey"===this._bypassKey&&(e=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),n=document.createElement("div");n.className="maplibregl-desktop-message",n.textContent=e,this._container.appendChild(n);let i=document.createElement("div");i.className="maplibregl-mobile-message",i.textContent=r,this._container.appendChild(i),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(o.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(t){return t[this._bypassKey]}notifyGestureBlocked(t,r){this._enabled&&(this._map.fire(new e.k("cooperativegestureprevented",{gestureType:t,originalEvent:r})),this._container.classList.add("maplibregl-show"),setTimeout((()=>{this._container.classList.remove("maplibregl-show")}),100))}}let bi=t=>t.zoom||t.drag||t.pitch||t.rotate;class wi extends e.k{}function Ti(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class ki{constructor(t,e){this.handleWindowEvent=t=>{this.handleEvent(t,`${t.type}Window`)},this.handleEvent=(t,e)=>{if("blur"===t.type)return void this.stop(!0);this._updatingCamera=!0;let r="renderFrame"===t.type?void 0:t,n={needsRenderFrame:!1},i={},a={},s=t.touches,l=s?this._getMapTouches(s):void 0,u=l?o.touchPos(this._map.getCanvas(),l):o.mousePos(this._map.getCanvas(),t);for(let{handlerName:o,handler:s,allowed:c}of this._handlers){if(!s.isEnabled())continue;let h;this._blockedByActive(a,c,o)?s.reset():s[e||t.type]&&(h=s[e||t.type](t,u,l),this.mergeHandlerResult(n,i,h,o,r),h&&h.needsRenderFrame&&this._triggerRenderFrame()),(h||s.isActive())&&(a[o]=s)}let c={};for(let t in this._previousActiveHandlers)a[t]||(c[t]=r);this._previousActiveHandlers=a,(Object.keys(c).length||Ti(n))&&(this._changes.push([n,i,c]),this._triggerRenderFrame()),(Object.keys(a).length||Ti(n))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:h}=n;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))},this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new zn(t),this._bearingSnap=e.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(e);let r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[window,"blur",void 0]];for(let[t,e,r]of this._listeners)o.addEventListener(t,e,t===document?this.handleWindowEvent:this.handleEvent,r)}destroy(){for(let[t,e,r]of this._listeners)o.removeEventListener(t,e,t===document?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(t){let e=this._map,r=e.getCanvasContainer();this._add("mapEvent",new Nn(e,t));let n=e.boxZoom=new Vn(e,t);this._add("boxZoom",n),t.interactive&&t.boxZoom&&n.enable();let i=e.cooperativeGestures=new _i(e,t.cooperativeGestures);this._add("cooperativeGestures",i),t.cooperativeGestures&&i.enable();let a=new Zn(e),s=new mi(e);e.doubleClickZoom=new di(s,a),this._add("tapZoom",a),this._add("clickZoom",s),t.interactive&&t.doubleClickZoom&&e.doubleClickZoom.enable();let l=new gi;this._add("tapDragZoom",l);let u=e.touchPitch=new li(e);this._add("touchPitch",u),t.interactive&&t.touchPitch&&e.touchPitch.enable(t.touchPitch);let c=Kn(t),h=Qn(t);e.dragRotate=new vi(t,c,h),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",h,["mouseRotate"]),t.interactive&&t.dragRotate&&e.dragRotate.enable();let f=(({enable:t,clickTolerance:e})=>{let r=new Xn({checkCorrectEvent:t=>0===o.mouseButton(t)&&!t.ctrlKey});return new Wn({clickTolerance:e,move:(t,e)=>({around:e,panDelta:e.sub(t)}),activateOnStart:!0,moveStateManager:r,enable:t,assignEvents:Jn})})(t),p=new ti(t,e);e.dragPan=new yi(r,f,p),this._add("mousePan",f),this._add("touchPan",p,["touchZoom","touchRotate"]),t.interactive&&t.dragPan&&e.dragPan.enable(t.dragPan);let d=new oi,m=new ii;e.touchZoomRotate=new xi(r,m,d,l),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]),t.interactive&&t.touchZoomRotate&&e.touchZoomRotate.enable(t.touchZoomRotate);let g=e.scrollZoom=new pi(e,(()=>this._triggerRenderFrame()));this._add("scrollZoom",g,["mousePan"]),t.interactive&&t.scrollZoom&&e.scrollZoom.enable(t.scrollZoom);let y=e.keyboard=new ci(e);this._add("keyboard",y),t.interactive&&t.keyboard&&e.keyboard.enable(),this._add("blockableMapEvent",new jn(e))}_add(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e}stop(t){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(let{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!bi(this._eventsInProgress)||this.isZooming()}_blockedByActive(t,e,r){for(let n in t)if(n!==r&&(!e||e.indexOf(n)<0))return!0;return!1}_getMapTouches(t){let e=[];for(let r of t)this._el.contains(r.target)&&e.push(r);return e}mergeHandlerResult(t,r,n,i,a){if(!n)return;e.e(t,n);let o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&&(r.zoom=o),void 0!==n.panDelta&&(r.drag=o),void 0!==n.pitchDelta&&(r.pitch=o),void 0!==n.bearingDelta&&(r.rotate=o)}_applyChanges(){let t={},r={},n={};for(let[i,a,o]of this._changes)i.panDelta&&(t.panDelta=(t.panDelta||new e.P(0,0))._add(i.panDelta)),i.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(t.around=i.around),void 0!==i.pinchAround&&(t.pinchAround=i.pinchAround),i.noInertia&&(t.noInertia=i.noInertia),e.e(r,a),e.e(n,o);this._updateMapTransform(t,r,n),this._changes=[]}_updateMapTransform(t,e,r){let n=this._map,i=n._getTransformForUpdate(),a=n.terrain;if(!(Ti(t)||a&&this._terrainMovement))return this._fireEvents(e,r,!0);let{panDelta:o,zoomDelta:s,bearingDelta:l,pitchDelta:u,around:c,pinchAround:h}=t;void 0!==h&&(c=h),n._stop(!0),c=c||n.transform.centerPoint;let f=i.pointLocation(o?c.sub(o):c);l&&(i.bearing+=l),u&&(i.pitch+=u),s&&(i.zoom+=s),a?this._terrainMovement||!e.drag&&!e.zoom?e.drag&&this._terrainMovement?i.center=i.pointLocation(i.centerPoint.sub(o)):i.setLocationAtPoint(f,c):(this._terrainMovement=!0,this._map._elevationFreeze=!0,i.setLocationAtPoint(f,c)):i.setLocationAtPoint(f,c),n._applyUpdatedTransform(i),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r,!0)}_fireEvents(t,r,n){let i=bi(this._eventsInProgress),o=bi(t),s={};for(let e in t){let{originalEvent:r}=t[e];this._eventsInProgress[e]||(s[`${e}start`]=r),this._eventsInProgress[e]=t[e]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(let t in s)this._fireEvent(t,s[t]);o&&this._fireEvent("move",o.originalEvent);for(let e in t){let{originalEvent:r}=t[e];this._fireEvent(e,r)}let l,u={};for(let t in this._eventsInProgress){let{handlerName:e,originalEvent:n}=this._eventsInProgress[t];this._handlersById[e].isActive()||(delete this._eventsInProgress[t],l=r[e]||n,u[`${t}end`]=l)}for(let t in u)this._fireEvent(t,u[t]);let c=bi(this._eventsInProgress),h=(i||o)&&!c;if(h&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let t=this._map._getTransformForUpdate();t.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(t)}if(n&&h){this._updatingCamera=!0;let t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),r=t=>0!==t&&-this._bearingSnap{delete this._frameId,this.handleEvent(new wi("renderFrame",{timeStamp:t})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class Ai extends e.E{constructor(t,e){super(),this._renderFrameCallback=()=>{let t=Math.min((a.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=e.bearingSnap,this.on("moveend",(()=>{delete this._requestedCameraState}))}getCenter(){return new e.N(this.transform.center.lng,this.transform.center.lat)}setCenter(t,e){return this.jumpTo({center:t},e)}panBy(t,r,n){return t=e.P.convert(t).mult(-1),this.panTo(this.transform.center,e.e({offset:t},r),n)}panTo(t,r,n){return this.easeTo(e.e({center:t},r),n)}getZoom(){return this.transform.zoom}setZoom(t,e){return this.jumpTo({zoom:t},e),this}zoomTo(t,r,n){return this.easeTo(e.e({zoom:t},r),n)}zoomIn(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}zoomOut(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}getBearing(){return this.transform.bearing}setBearing(t,e){return this.jumpTo({bearing:t},e),this}getPadding(){return this.transform.padding}setPadding(t,e){return this.jumpTo({padding:t},e),this}rotateTo(t,r,n){return this.easeTo(e.e({bearing:t},r),n)}resetNorth(t,r){return this.rotateTo(0,e.e({duration:1e3},t),r),this}resetNorthPitch(t,r){return this.easeTo(e.e({bearing:0,pitch:0,duration:1e3},t),r),this}snapToNorth(t,e){return Math.abs(this.getBearing()){if(this._zooming&&(i.zoom=e.y.number(o,y,n)),this._rotating&&(i.bearing=e.y.number(s,c,n)),this._pitching&&(i.pitch=e.y.number(l,h,n)),this._padding&&(i.interpolatePadding(u,f,n),d=i.centerPoint.add(p)),this.terrain&&!t.freezeElevation&&this._updateElevation(n),v)i.setLocationAtPoint(v,x);else{let t=i.zoomScale(i.zoom-o),e=y>o?Math.min(2,w):Math.max(.5,w),r=Math.pow(e,1-n),a=i.unproject(_.add(b.mult(n*r)).mult(t));i.setLocationAtPoint(i.renderWorldCopies?a.wrap():a,d)}this._applyUpdatedTransform(i),this._fireMoveEvents(r)}),(e=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(r,e)}),t),this}_prepareEase(t,r,n={}){this._moving=!0,r||n.moving||this.fire(new e.k("movestart",t)),this._zooming&&!n.zooming&&this.fire(new e.k("zoomstart",t)),this._rotating&&!n.rotating&&this.fire(new e.k("rotatestart",t)),this._pitching&&!n.pitching&&this.fire(new e.k("pitchstart",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(t,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let r=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&r!==this._elevationTarget){let e=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(e-(r-(e*t+this._elevationStart))/(1-t)),this._elevationTarget=r}this.transform.elevation=e.y.number(this._elevationStart,this._elevationTarget,t)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(t){let e=t.getCameraPosition(),r=this.terrain.getElevationForLngLatZoom(e.lngLat,t.zoom);if(e.altitudethis._elevateCameraIfInsideTerrain(t))),this.transformCameraUpdate&&e.push((t=>this.transformCameraUpdate(t))),!e.length)return;let r=t.clone();for(let t of e){let e=r.clone(),{center:n,zoom:i,pitch:a,bearing:o,elevation:s}=t(e);n&&(e.center=n),void 0!==i&&(e.zoom=i),void 0!==a&&(e.pitch=a),void 0!==o&&(e.bearing=o),void 0!==s&&(e.elevation=s),r.apply(e)}this.transform.apply(r)}_fireMoveEvents(t){this.fire(new e.k("move",t)),this._zooming&&this.fire(new e.k("zoom",t)),this._rotating&&this.fire(new e.k("rotate",t)),this._pitching&&this.fire(new e.k("pitch",t))}_afterEase(t,r){if(this._easeId&&r&&this._easeId===r)return;delete this._easeId;let n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new e.k("zoomend",t)),i&&this.fire(new e.k("rotateend",t)),a&&this.fire(new e.k("pitchend",t)),this.fire(new e.k("moveend",t))}flyTo(t,r){var n;if(!t.essential&&a.prefersReducedMotion){let n=e.M(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(n,r)}this.stop(),t=e.e({offset:[0,0],speed:1.2,curve:1.42,easing:e.b9},t);let i=this._getTransformForUpdate(),o=i.zoom,s=i.bearing,l=i.pitch,u=i.padding,c="bearing"in t?this._normalizeBearing(t.bearing,s):s,h="pitch"in t?+t.pitch:l,f="padding"in t?t.padding:i.padding,p=e.P.convert(t.offset),d=i.centerPoint.add(p),m=i.pointLocation(d),{center:g,zoom:y}=i.getConstrained(e.N.convert(t.center||m),null!==(n=t.zoom)&&void 0!==n?n:o);this._normalizeCenter(g,i);let v=i.zoomScale(y-o),x=i.project(m),_=i.project(g).sub(x),b=t.curve,w=Math.max(i.width,i.height),T=w/v,k=_.mag();if("minZoom"in t){let r=e.ac(Math.min(t.minZoom,o,y),i.minZoom,i.maxZoom),n=w/i.zoomScale(r-o);b=Math.sqrt(n/k*2)}let A=b*b;function M(t){let e=(T*T-w*w+(t?-1:1)*A*A*k*k)/(2*(t?T:w)*A*k);return Math.log(Math.sqrt(e*e+1)-e)}function S(t){return(Math.exp(t)-Math.exp(-t))/2}function E(t){return(Math.exp(t)+Math.exp(-t))/2}let C=M(!1),I=function(t){return E(C)/E(C+b*t)},L=function(t){return w*((E(C)*(S(e=C+b*t)/E(e))-S(C))/A)/k;var e},P=(M(!0)-C)/b;if(Math.abs(k)<1e-6||!isFinite(P)){if(Math.abs(w-T)<1e-6)return this.easeTo(t,r);let e=T0,I=t=>Math.exp(e*b*t)}return t.duration="duration"in t?+t.duration:1e3*P/("screenSpeed"in t?+t.screenSpeed/b:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==c,this._pitching=h!==l,this._padding=!i.isPaddingEqual(f),this._prepareEase(r,!1),this.terrain&&this._prepareElevation(g),this._ease((n=>{let a=n*P,m=1/I(a);i.zoom=1===n?y:o+i.scaleZoom(m),this._rotating&&(i.bearing=e.y.number(s,c,n)),this._pitching&&(i.pitch=e.y.number(l,h,n)),this._padding&&(i.interpolatePadding(u,f,n),d=i.centerPoint.add(p)),this.terrain&&!t.freezeElevation&&this._updateElevation(n);let v=1===n?g:i.unproject(x.add(_.mult(L(a))).mult(m));i.setLocationAtPoint(i.renderWorldCopies?v.wrap():v,d),this._applyUpdatedTransform(i),this._fireMoveEvents(r)}),(()=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(r)}),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,e){var r;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let t=this._onEaseEnd;delete this._onEaseEnd,t.call(this,e)}return t||null===(r=this.handlers)||void 0===r||r.stop(!1),this}_ease(t,e,r){!1===r.animate||0===r.duration?(t(1),e()):(this._easeStart=a.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=e,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,r){t=e.b3(t,-180,180);let n=Math.abs(t-r);return Math.abs(t-360-r)180?-360:r<-180?360:0}queryTerrainElevation(t){return this.terrain?this.terrain.getElevationForLngLatZoom(e.N.convert(t),this.transform.tileZoom)-this.transform.elevation:null}}let Mi={compact:!0,customAttribution:'MapLibre'};class Si{constructor(t=Mi){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType&&"terrain"!==t.type||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=t}getDefaultPosition(){return"bottom-right"}onAdd(t){return this._map=t,this._compact=this.options.compact,this._container=o.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=o.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,e){let r=this._map._getUIString(`AttributionControl.${e}`);t.title=r,t.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((t=>"string"!=typeof t?"":t))):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){let t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}let e=this._map.style.sourceCaches;for(let r in e){let n=e[r];if(n.used||n.usedForTerrain){let e=n.getSource();e.attribution&&t.indexOf(e.attribution)<0&&t.push(e.attribution)}}t=t.filter((t=>String(t).trim())),t.sort(((t,e)=>t.length-e.length)),t=t.filter(((e,r)=>{for(let n=r+1;n=0)return!1;return!0}));let r=t.join(" | ");r!==this._attribHTML&&(this._attribHTML=r,t.length?(this._innerContainer.innerHTML=r,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Ei{constructor(t={}){this._updateCompact=()=>{let t=this._container.children;if(t.length){let e=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&e.classList.add("maplibregl-compact"):e.classList.remove("maplibregl-compact")}},this.options=t}getDefaultPosition(){return"bottom-left"}onAdd(t){this._map=t,this._compact=this.options&&this.options.compact,this._container=o.create("div","maplibregl-ctrl");let e=o.create("a","maplibregl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://maplibre.org/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){o.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Ci{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){let e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e}remove(t){let e=this._currentlyRunning,r=e?this._queue.concat(e):this._queue;for(let e of r)if(e.id===t)return void(e.cancelled=!0)}run(t=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let e=this._currentlyRunning=this._queue;this._queue=[];for(let r of e)if(!r.cancelled&&(r.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ii=e.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Li extends e.E{constructor(t){super(),this.sourceCache=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,t.usedForTerrain=!0,t.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(t,r){this.sourceCache.update(t,r),this._renderableTilesKeys=[];let n={};for(let i of t.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:r}))n[i.key]=!0,this._renderableTilesKeys.push(i.key),this._tiles[i.key]||(i.posMatrix=new Float64Array(16),e.aP(i.posMatrix,0,e.X,0,e.X,0,1),this._tiles[i.key]=new ut(i,this.tileSize));for(let t in this._tiles)n[t]||delete this._tiles[t]}freeRtt(t){for(let e in this._tiles){let r=this._tiles[e];(!t||r.tileID.equals(t)||r.tileID.isChildOf(t)||t.isChildOf(r.tileID))&&(r.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((t=>this.getTileByID(t)))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t){let r={};for(let n of this._renderableTilesKeys){let i=this._tiles[n].tileID;if(i.canonical.equals(t.canonical)){let i=t.clone();i.posMatrix=new Float64Array(16),e.aP(i.posMatrix,0,e.X,0,e.X,0,1),r[n]=i}else if(i.canonical.isChildOf(t.canonical)){let a=t.clone();a.posMatrix=new Float64Array(16);let o=i.canonical.z-t.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;e.aP(a.posMatrix,0,u,0,u,0,1),e.J(a.posMatrix,a.posMatrix,[-s*u,-l*u,0]),r[n]=a}else if(t.canonical.isChildOf(i.canonical)){let a=t.clone();a.posMatrix=new Float64Array(16);let o=t.canonical.z-i.canonical.z,s=t.canonical.x-(t.canonical.x>>o<>o<>o;e.aP(a.posMatrix,0,e.X,0,e.X,0,1),e.J(a.posMatrix,a.posMatrix,[s*u,l*u,0]),e.K(a.posMatrix,a.posMatrix,[1/2**o,1/2**o,0]),r[n]=a}}return r}getSourceTile(t,e){let r=this.sourceCache._source,n=t.overscaledZ-this.deltaZoom;if(n>r.maxzoom&&(n=r.maxzoom),n=r.minzoom&&(!i||!i.dem);)i=this.sourceCache.getTileByID(t.scaledTo(n--).key);return i}tilesAfterTime(t=Date.now()){return Object.values(this._tiles).filter((e=>e.timeAdded>=t))}}class Pi{constructor(t,e,r){this.painter=t,this.sourceCache=new Li(e),this.options=r,this.exaggeration="number"==typeof r.exaggeration?r.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(t,r,n,i=e.X){var a;if(!(r>=0&&r=0&&nt.canonical.z&&(t.canonical.z>=n?i=t.canonical.z-n:e.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let a=t.canonical.x-(t.canonical.x>>i<>i<>8<<4|t>>8,r[e+3]=0;let n=new e.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(r.buffer)),i=new w(t,n,t.gl.RGBA,{premultiply:!1});return i.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=i,i}pointCoordinate(t){this.painter.maybeDrawDepthAndCoords(!0);let r=new Uint8Array(4),n=this.painter.context,i=n.gl,a=Math.round(t.x*this.painter.pixelRatio/devicePixelRatio),o=Math.round(t.y*this.painter.pixelRatio/devicePixelRatio),s=Math.round(this.painter.height/devicePixelRatio);n.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),i.readPixels(a,s-o-1,1,1,i.RGBA,i.UNSIGNED_BYTE,r),n.bindFramebuffer.set(null);let l=r[0]+(r[2]>>4<<8),u=r[1]+((15&r[2])<<8),c=this.coordsIndex[255-r[3]],h=c&&this.sourceCache.getTileByID(c);if(!h)return null;let f=this._coordsTextureSize,p=(1<t.id!==e)),this._recentlyUsed.push(t.id)}stampObject(t){t.stamp=++this._stamp}getOrCreateFreeObject(){for(let t of this._recentlyUsed)if(!this._objects[t].inUse)return this._objects[t];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let t=this._createObject(this._objects.length);return this._objects.push(t),t}freeObject(t){t.inUse=!1}freeAllObjects(){for(let t of this._objects)this.freeObject(t)}isFull(){return!(this._objects.length!t.inUse))}}let Oi={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Di{constructor(t,e){this.painter=t,this.terrain=e,this.pool=new zi(t.context,30,e.sourceCache.tileSize*e.qualityFactor)}destruct(){this.pool.destruct()}getTexture(t){return this.pool.getObjectForId(t.rtt[this._stacks.length-1].id).texture}prepareForRender(t,e){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=t._order.filter((r=>!t._layers[r].isHidden(e))),this._coordsDescendingInv={};for(let e in t.sourceCaches){this._coordsDescendingInv[e]={};let r=t.sourceCaches[e].getVisibleCoordinates();for(let t of r){let r=this.terrain.sourceCache.getTerrainCoords(t);for(let t in r)this._coordsDescendingInv[e][t]||(this._coordsDescendingInv[e][t]=[]),this._coordsDescendingInv[e][t].push(r[t])}}this._coordsDescendingInvStr={};for(let e of t._order){let r=t._layers[e],n=r.source;if(Oi[r.type]&&!this._coordsDescendingInvStr[n]){this._coordsDescendingInvStr[n]={};for(let t in this._coordsDescendingInv[n])this._coordsDescendingInvStr[n][t]=this._coordsDescendingInv[n][t].map((t=>t.key)).sort().join()}}for(let t of this._renderableTiles)for(let e in this._coordsDescendingInvStr){let r=this._coordsDescendingInvStr[e][t.tileID.key];r&&r!==t.rttCoords[e]&&(t.rtt=[])}}renderLayer(t){if(t.isHidden(this.painter.transform.zoom))return!1;let r=t.type,n=this.painter,i=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(Oi[r]&&(this._prevType&&Oi[this._prevType]||this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(t.id),!i))return!0;if(Oi[this._prevType]||Oi[r]&&i){this._prevType=r;let t=this._stacks.length-1,i=this._stacks[t]||[];for(let r of this._renderableTiles){if(this.pool.isFull()&&(vn(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(r),r.rtt[t]){let e=this.pool.getObjectForId(r.rtt[t].id);if(e.stamp===r.rtt[t].stamp){this.pool.useObject(e);continue}}let a=this.pool.getOrCreateFreeObject();this.pool.useObject(a),this.pool.stampObject(a),r.rtt[t]={id:a.id,stamp:a.stamp},n.context.bindFramebuffer.set(a.fbo.framebuffer),n.context.clear({color:e.aM.transparent,stencil:0}),n.currentStencilSource=void 0;for(let t=0;t{t.touchstart=t.dragStart,t.touchmoveWindow=t.dragMove,t.touchend=t.dragEnd},Ui={showCompass:!0,showZoom:!0,visualizePitch:!1};class Vi{constructor(t,r,n=!1){this.mousedown=t=>{this.startMouse(e.e({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),o.mousePos(this.element,t)),o.addEventListener(window,"mousemove",this.mousemove),o.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=t=>{this.moveMouse(t,o.mousePos(this.element,t))},this.mouseup=t=>{this.mouseRotate.dragEnd(t),this.mousePitch&&this.mousePitch.dragEnd(t),this.offTemp()},this.touchstart=t=>{1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=o.touchPos(this.element,t.targetTouches)[0],this.startTouch(t,this._startPos),o.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.addEventListener(window,"touchend",this.touchend))},this.touchmove=t=>{1!==t.targetTouches.length?this.reset():(this._lastPos=o.touchPos(this.element,t.targetTouches)[0],this.moveTouch(t,this._lastPos))},this.touchend=t=>{0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let i=t.dragRotate._mouseRotate.getClickTolerance(),a=t.dragRotate._mousePitch.getClickTolerance();this.element=r,this.mouseRotate=Kn({clickTolerance:i,enable:!0}),this.touchRotate=(({enable:t,clickTolerance:e,bearingDegreesPerPixelMoved:r=.8})=>{let n=new $n;return new Wn({clickTolerance:e,move:(t,e)=>({bearingDelta:(e.x-t.x)*r}),moveStateManager:n,enable:t,assignEvents:ji})})({clickTolerance:i,enable:!0}),this.map=t,n&&(this.mousePitch=Qn({clickTolerance:a,enable:!0}),this.touchPitch=(({enable:t,clickTolerance:e,pitchDegreesPerPixelMoved:r=-.5})=>{let n=new $n;return new Wn({clickTolerance:e,move:(t,e)=>({pitchDelta:(e.y-t.y)*r}),moveStateManager:n,enable:t,assignEvents:ji})})({clickTolerance:a,enable:!0})),o.addEventListener(r,"mousedown",this.mousedown),o.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),o.addEventListener(r,"touchcancel",this.reset)}startMouse(t,e){this.mouseRotate.dragStart(t,e),this.mousePitch&&this.mousePitch.dragStart(t,e),o.disableDrag()}startTouch(t,e){this.touchRotate.dragStart(t,e),this.touchPitch&&this.touchPitch.dragStart(t,e),o.disableDrag()}moveMouse(t,e){let r=this.map,{bearingDelta:n}=this.mouseRotate.dragMove(t,e)||{};if(n&&r.setBearing(r.getBearing()+n),this.mousePitch){let{pitchDelta:n}=this.mousePitch.dragMove(t,e)||{};n&&r.setPitch(r.getPitch()+n)}}moveTouch(t,e){let r=this.map,{bearingDelta:n}=this.touchRotate.dragMove(t,e)||{};if(n&&r.setBearing(r.getBearing()+n),this.touchPitch){let{pitchDelta:n}=this.touchPitch.dragMove(t,e)||{};n&&r.setPitch(r.getPitch()+n)}}off(){let t=this.element;o.removeEventListener(t,"mousedown",this.mousedown),o.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend),o.removeEventListener(t,"touchcancel",this.reset),this.offTemp()}offTemp(){o.enableDrag(),o.removeEventListener(window,"mousemove",this.mousemove),o.removeEventListener(window,"mouseup",this.mouseup),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend)}}function qi(t,r,n){let i=new e.N(t.lng,t.lat);if(t=new e.N(t.lng,t.lat),r){let i=new e.N(t.lng-360,t.lat),a=new e.N(t.lng+360,t.lat),o=n.locationPoint(t).distSqr(r);n.locationPoint(i).distSqr(r)180;){let e=n.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=n.width&&e.y<=n.height)break;t.lng>n.center.lng?t.lng-=360:t.lng+=360}return t.lng!==i.lng&&n.locationPoint(t).y>n.height/2-n.getHorizon()?t:i}let Hi={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Gi(t,e,r){let n=t.classList;for(let t in Hi)n.remove(`maplibregl-${r}-anchor-${t}`);n.add(`maplibregl-${r}-anchor-${e}`)}class Zi extends e.E{constructor(t){if(super(),this._onKeyPress=t=>{let e=t.code,r=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==r&&13!==r||this.togglePopup()},this._onMapClick=t=>{let e=t.originalEvent.target,r=this._element;this._popup&&(e===r||r.contains(e))&&this.togglePopup()},this._update=t=>{var e;if(!this._map)return;let r=this._map.loaded()&&!this._map.isMoving();("terrain"===(null==t?void 0:t.type)||"render"===(null==t?void 0:t.type)&&!r)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?qi(this._lngLat,this._flatPos,this._map.transform):null===(e=this._lngLat)||void 0===e?void 0:e.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let n="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?n=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(n=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?i="rotateX(0deg)":"map"===this._pitchAlignment&&(i=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||t&&"moveend"!==t.type||(this._pos=this._pos.round()),o.setTransform(this._element,`${Hi[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${n}`),a.frameAsync(new AbortController).then((()=>{this._updateOpacity(t&&"moveend"===t.type)})).catch((()=>{}))},this._onMove=t=>{if(!this._isDragging){let e=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.k("dragstart"))),this.fire(new e.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.k("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._subpixelPositioning=t&&t.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(null==t?void 0:t.opacity,null==t?void 0:t.opacityWhenCovered),t&&t.element)this._element=t.element,this._offset=e.P.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o.create("div");let r=o.createNS("http://www.w3.org/2000/svg","svg"),n=41,i=27;r.setAttributeNS(null,"display","block"),r.setAttributeNS(null,"height",`${n}px`),r.setAttributeNS(null,"width",`${i}px`),r.setAttributeNS(null,"viewBox",`0 0 ${i} ${n}`);let a=o.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");let s=o.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");let l=o.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");let u=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let t of u){let e=o.createNS("http://www.w3.org/2000/svg","ellipse");e.setAttributeNS(null,"opacity","0.04"),e.setAttributeNS(null,"cx","10.5"),e.setAttributeNS(null,"cy","5.80029008"),e.setAttributeNS(null,"rx",t.rx),e.setAttributeNS(null,"ry",t.ry),l.appendChild(e)}let c=o.createNS("http://www.w3.org/2000/svg","g");c.setAttributeNS(null,"fill",this._color);let h=o.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),c.appendChild(h);let f=o.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"opacity","0.25"),f.setAttributeNS(null,"fill","#000000");let p=o.createNS("http://www.w3.org/2000/svg","path");p.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),f.appendChild(p);let d=o.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"transform","translate(6.0, 7.0)"),d.setAttributeNS(null,"fill","#FFFFFF");let m=o.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(8.0, 8.0)");let g=o.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#000000"),g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962");let y=o.createNS("http://www.w3.org/2000/svg","circle");y.setAttributeNS(null,"fill","#FFFFFF"),y.setAttributeNS(null,"cx","5.5"),y.setAttributeNS(null,"cy","5.5"),y.setAttributeNS(null,"r","5.4999962"),m.appendChild(g),m.appendChild(y),s.appendChild(l),s.appendChild(c),s.appendChild(f),s.appendChild(d),s.appendChild(m),r.appendChild(s),r.setAttributeNS(null,"height",n*this._scale+"px"),r.setAttributeNS(null,"width",i*this._scale+"px"),this._element.appendChild(r),this._offset=e.P.convert(t&&t.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",(t=>{t.preventDefault()})),this._element.addEventListener("mousedown",(t=>{t.preventDefault()})),Gi(this._element,this._anchor,"marker"),t&&t.className)for(let e of t.className.split(" "))this._element.classList.add(e);this._popup=null}addTo(t){return this.remove(),this._map=t,this._element.setAttribute("aria-label",t._getUIString("Marker.Title")),t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),t.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),o.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.N.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){let e=Math.abs(13.5)/Math.SQRT2;t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(t){return this._subpixelPositioning=t,this}getPopup(){return this._popup}togglePopup(){let t=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:t?(t.isOpen()?t.remove():(t.setLngLat(this._lngLat),t.addTo(this._map)),this):this}_updateOpacity(t=!1){var r,n;if(null===(r=this._map)||void 0===r||!r.terrain)return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(t)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}let i=this._map,a=i.terrain.depthAtPoint(this._pos),o=i.terrain.getElevationForLngLatZoom(this._lngLat,i.transform.tileZoom);if(i.transform.lngLatToCameraDepth(this._lngLat,o)-a<.006)return void(this._element.style.opacity=this._opacity);let s=-this._offset.y/i.transform._pixelPerMeter,l=Math.sin(i.getPitch()*Math.PI/180)*s,u=i.terrain.depthAtPoint(new e.P(this._pos.x,this._pos.y-this._offset.y)),c=i.transform.lngLatToCameraDepth(this._lngLat,o+l)-u>.006;!(null===(n=this._popup)||void 0===n)&&n.isOpen()&&c&&this._popup.remove(),this._element.style.opacity=c?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(t){return this._offset=e.P.convert(t),this._update(),this}addClassName(t){this._element.classList.add(t)}removeClassName(t){this._element.classList.remove(t)}toggleClassName(t){return this._element.classList.toggle(t)}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(t,e){return void 0===t&&void 0===e&&(this._opacity="1",this._opacityWhenCovered="0.2"),void 0!==t&&(this._opacity=t),void 0!==e&&(this._opacityWhenCovered=e),this._map&&this._updateOpacity(!0),this}}let Wi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Yi=0,Xi=!1,$i={maxWidth:100,unit:"metric"};function Ji(t,e,r){let n=r&&r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&&"imperial"===r.unit){let r=3.2808*s;r>5280?Ki(e,n,r/5280,t._getUIString("ScaleControl.Miles")):Ki(e,n,r,t._getUIString("ScaleControl.Feet"))}else r&&"nautical"===r.unit?Ki(e,n,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Ki(e,n,s/1e3,t._getUIString("ScaleControl.Kilometers")):Ki(e,n,s,t._getUIString("ScaleControl.Meters"))}function Ki(t,e,r,n){let i=function(t){let e=Math.pow(10,`${Math.floor(t)}`.length-1),r=t/e;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:function(t){let e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(r),e*r}(r);t.style.width=e*(i/r)+"px",t.innerHTML=`${i} ${n}`}let Qi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},ta=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function ea(t){if(t){if("number"==typeof t){let r=Math.round(Math.abs(t)/Math.SQRT2);return{center:new e.P(0,0),top:new e.P(0,t),"top-left":new e.P(r,r),"top-right":new e.P(-r,r),bottom:new e.P(0,-t),"bottom-left":new e.P(r,-r),"bottom-right":new e.P(-r,-r),left:new e.P(t,0),right:new e.P(-t,0)}}if(t instanceof e.P||Array.isArray(t)){let r=e.P.convert(t);return{center:r,top:r,"top-left":r,"top-right":r,bottom:r,"bottom-left":r,"bottom-right":r,left:r,right:r}}return{center:e.P.convert(t.center||[0,0]),top:e.P.convert(t.top||[0,0]),"top-left":e.P.convert(t["top-left"]||[0,0]),"top-right":e.P.convert(t["top-right"]||[0,0]),bottom:e.P.convert(t.bottom||[0,0]),"bottom-left":e.P.convert(t["bottom-left"]||[0,0]),"bottom-right":e.P.convert(t["bottom-right"]||[0,0]),left:e.P.convert(t.left||[0,0]),right:e.P.convert(t.right||[0,0])}}return ea(new e.P(0,0))}let ra=r;t.AJAXError=e.bh,t.Evented=e.E,t.LngLat=e.N,t.MercatorCoordinate=e.Z,t.Point=e.P,t.addProtocol=e.bi,t.config=e.a,t.removeProtocol=e.bj,t.AttributionControl=Si,t.BoxZoomHandler=Vn,t.CanvasSource=rt,t.CooperativeGesturesHandler=_i,t.DoubleClickZoomHandler=di,t.DragPanHandler=yi,t.DragRotateHandler=vi,t.EdgeInsets=Tn,t.FullscreenControl=class extends e.E{constructor(t={}){super(),this._onFullscreenChange=()=>{var t;let e=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;null!==(t=null==e?void 0:e.shadowRoot)&&void 0!==t&&t.fullscreenElement;)e=e.shadowRoot.fullscreenElement;e===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){o.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let t=this._fullscreenButton=o.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);o.create("span","maplibregl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new e.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new e.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},t.GeoJSONSource=K,t.GeolocateControl=class extends e.E{constructor(t){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.k("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new e.k("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new e.N(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,i=this._map.getBearing(),a=e.e({bearing:i},this.options.fitBoundsOptions),o=W.fromLngLat(r,n);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new e.N(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=t=>{if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Xi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new e.k("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",(t=>t.preventDefault())),this._geolocateButton=o.create("button","maplibregl-ctrl-geolocate",this._container),o.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(!1===t){e.w("Geolocation support is not available so the GeolocateControl will be disabled.");let t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{let t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Zi({element:this._dotElement}),this._circleElement=o.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new e.k("trackuserlocationend")),this.fire(new e.k("userlocationlostfocus")))}))}},this.options=e.e({},Wi,t)}onAdd(t){return this._map=t,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return e._(this,arguments,void 0,(function*(t=!1){if(void 0!==Ri&&!t)return Ri;if(void 0===window.navigator.permissions)return Ri=!!window.navigator.geolocation,Ri;try{Ri="denied"!==(yield window.navigator.permissions.query({name:"geolocation"})).state}catch(t){Ri=!!window.navigator.geolocation}return Ri}))}().then((t=>this._finishSetupUI(t))),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Yi=0,Xi=!1}_isOutOfMapMaxBounds(t){let e=this._map.getMaxBounds(),r=t.coords;return e&&(r.longitudee.getEast()||r.latitudee.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let t=this._map.getBounds(),e=t.getSouthEast(),r=t.getNorthEast(),n=e.distanceTo(r),i=Math.ceil(this._accuracy/(n/this._map._container.clientHeight)*2);this._circleElement.style.width=`${i}px`,this._circleElement.style.height=`${i}px`}trigger(){if(!this._setup)return e.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Yi--,Xi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new e.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.k("trackuserlocationstart")),this.fire(new e.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Yi++,Yi>1?(t={maximumAge:6e5,timeout:0},Xi=!0):(t=this.options.positionOptions,Xi=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},t.Hash=Sn,t.ImageSource=tt,t.KeyboardHandler=ci,t.LngLatBounds=W,t.LogoControl=Ei,t.Map=class extends Ai{constructor(t){e.bf.mark(e.bg.create);let r=Object.assign(Object.assign({},Ni),t);if(null!=r.minZoom&&null!=r.maxZoom&&r.minZoom>r.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=r.minPitch&&null!=r.maxPitch&&r.minPitch>r.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=r.minPitch&&r.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=r.maxPitch&&r.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new An(r.minZoom,r.maxZoom,r.minPitch,r.maxPitch,r.renderWorldCopies),{bearingSnap:r.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Ci,this._controls=[],this._mapId=e.a4(),this._contextLost=t=>{t.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new e.k("webglcontextlost",{originalEvent:t}))},this._contextRestored=t=>{this._setupPainter(),this.resize(),this._update(),this.fire(new e.k("webglcontextrestored",{originalEvent:t}))},this._onMapScroll=t=>{if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=r.interactive,this._maxTileCacheSize=r.maxTileCacheSize,this._maxTileCacheZoomLevels=r.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=!0===r.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=!0===r.preserveDrawingBuffer,this._antialias=!0===r.antialias,this._trackResize=!0===r.trackResize,this._bearingSnap=r.bearingSnap,this._refreshExpiredTiles=!0===r.refreshExpiredTiles,this._fadeDuration=r.fadeDuration,this._crossSourceCollisions=!0===r.crossSourceCollisions,this._collectResourceTiming=!0===r.collectResourceTiming,this._locale=Object.assign(Object.assign({},Fi),r.locale),this._clickTolerance=r.clickTolerance,this._overridePixelRatio=r.pixelRatio,this._maxCanvasSize=r.maxCanvasSize,this.transformCameraUpdate=r.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=!0===r.cancelPendingTileRequestsWhileZooming,this._imageQueueHandle=p.addThrottleControl((()=>this.isMoving())),this._requestManager=new d(r.transformRequest),"string"==typeof r.container){if(this._container=document.getElementById(r.container),!this._container)throw new Error(`Container '${r.container}' not found.`)}else{if(!(r.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=r.container}if(r.maxBounds&&this.setMaxBounds(r.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",(()=>this._update(!1))).on("moveend",(()=>this._update(!1))).on("zoom",(()=>this._update(!0))).on("terrain",(()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)})).once("idle",(()=>{this._idleTriggered=!0})),"undefined"!=typeof window){addEventListener("online",this._onWindowOnline,!1);let t=!1,e=Mn((t=>{this._trackResize&&!this._removed&&(this.resize(t),this.redraw())}),50);this._resizeObserver=new ResizeObserver((r=>{t?e(r):t=!0})),this._resizeObserver.observe(this._container)}this.handlers=new ki(this,r),this._hash=r.hash&&new Sn("string"==typeof r.hash&&r.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:r.center,zoom:r.zoom,bearing:r.bearing,pitch:r.pitch}),r.bounds&&(this.resize(),this.fitBounds(r.bounds,e.e({},r.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=r.localIdeographFontFamily,this._validateStyle=r.validateStyle,r.style&&this.setStyle(r.style,{localIdeographFontFamily:r.localIdeographFontFamily}),r.attributionControl&&this.addControl(new Si("boolean"==typeof r.attributionControl?void 0:r.attributionControl)),r.maplibreLogo&&this.addControl(new Ei,r.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.k(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.k(`${t.dataType}dataloading`,t))})),this.on("dataabort",(t=>{this.fire(new e.k("sourcedataabort",t))}))}_getMapId(){return this._mapId}addControl(t,r){if(void 0===r&&(r=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let n=t.onAdd(this);this._controls.push(t);let i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let r=this._controls.indexOf(t);return r>-1&&this._controls.splice(r,1),t.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}calculateCameraOptionsFromTo(t,e,r,n){return null==n&&this.terrain&&(n=this.terrain.getElevationForLngLatZoom(r,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(t,e,r,n)}resize(t){var r;let n=this._containerDimensions(),i=n[0],a=n[1],o=this._getClampedPixelRatio(i,a);if(this._resizeCanvas(i,a,o),this.painter.resize(i,a,o),this.painter.overLimit()){let t=this.painter.context.gl;this._maxCanvasSize=[t.drawingBufferWidth,t.drawingBufferHeight];let e=this._getClampedPixelRatio(i,a);this._resizeCanvas(i,a,e),this.painter.resize(i,a,e)}this.transform.resize(i,a),null===(r=this._requestedCameraState)||void 0===r||r.resize(i,a);let s=!this._moving;return s&&(this.stop(),this.fire(new e.k("movestart",t)).fire(new e.k("move",t))),this.fire(new e.k("resize",t)),s&&this.fire(new e.k("moveend",t)),this}_getClampedPixelRatio(t,e){let{0:r,1:n}=this._maxCanvasSize,i=this.getPixelRatio(),a=t*i,o=e*i;return Math.min(a>r?r/a:1,o>n?n/o:1)*i}getPixelRatio(){var t;return null!==(t=this._overridePixelRatio)&&void 0!==t?t:devicePixelRatio}setPixelRatio(t){this._overridePixelRatio=t,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(t){return this.transform.setMaxBounds(W.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this._update()}project(t){return this.transform.locationPoint(e.N.convert(t),this.style&&this.terrain)}unproject(t){return this.transform.pointLocation(e.P.convert(t),this.terrain)}isMoving(){var t;return this._moving||(null===(t=this.handlers)||void 0===t?void 0:t.isMoving())}isZooming(){var t;return this._zooming||(null===(t=this.handlers)||void 0===t?void 0:t.isZooming())}isRotating(){var t;return this._rotating||(null===(t=this.handlers)||void 0===t?void 0:t.isRotating())}_createDelegatedListener(t,e,r){if("mouseenter"===t||"mouseover"===t){let n=!1;return{layers:e,listener:r,delegates:{mousemove:i=>{let a=e.filter((t=>this.getLayer(t))),o=0!==a.length?this.queryRenderedFeatures(i.point,{layers:a}):[];o.length?n||(n=!0,r.call(this,new Rn(t,this,i.originalEvent,{features:o}))):n=!1},mouseout:()=>{n=!1}}}}if("mouseleave"===t||"mouseout"===t){let n=!1;return{layers:e,listener:r,delegates:{mousemove:i=>{let a=e.filter((t=>this.getLayer(t)));(0!==a.length?this.queryRenderedFeatures(i.point,{layers:a}):[]).length?n=!0:n&&(n=!1,r.call(this,new Rn(t,this,i.originalEvent)))},mouseout:e=>{n&&(n=!1,r.call(this,new Rn(t,this,e.originalEvent)))}}}}{let n=t=>{let n=e.filter((t=>this.getLayer(t))),i=0!==n.length?this.queryRenderedFeatures(t.point,{layers:n}):[];i.length&&(t.features=i,r.call(this,t),delete t.features)};return{layers:e,listener:r,delegates:{[t]:n}}}}_saveDelegatedListener(t,e){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(e)}_removeDelegatedListener(t,e,r){if(!this._delegatedListeners||!this._delegatedListeners[t])return;let n=this._delegatedListeners[t];for(let t=0;te.includes(t)))){for(let t in i.delegates)this.off(t,i.delegates[t]);return void n.splice(t,1)}}}on(t,e,r){if(void 0===r)return super.on(t,e);let n=this._createDelegatedListener(t,"string"==typeof e?[e]:e,r);this._saveDelegatedListener(t,n);for(let t in n.delegates)this.on(t,n.delegates[t]);return this}once(t,e,r){if(void 0===r)return super.once(t,e);let n="string"==typeof e?[e]:e,i=this._createDelegatedListener(t,n,r);for(let e in i.delegates){let a=i.delegates[e];i.delegates[e]=(...e)=>{this._removeDelegatedListener(t,n,r),a(...e)}}this._saveDelegatedListener(t,i);for(let t in i.delegates)this.once(t,i.delegates[t]);return this}off(t,e,r){return void 0===r?super.off(t,e):(this._removeDelegatedListener(t,"string"==typeof e?[e]:e,r),this)}queryRenderedFeatures(t,r){if(!this.style)return[];let n,i=t instanceof e.P||Array.isArray(t),a=i?t:[[0,0],[this.transform.width,this.transform.height]];if(r=r||(i?{}:t)||{},a instanceof e.P||"number"==typeof a[0])n=[e.P.convert(a)];else{let t=e.P.convert(a[0]),r=e.P.convert(a[1]);n=[t,new e.P(r.x,t.y),r,new e.P(t.x,r.y),t]}return this.style.queryRenderedFeatures(n,r,this.transform)}querySourceFeatures(t,e){return this.style.querySourceFeatures(t,e)}setStyle(t,r){return!1!==(r=e.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},r)).diff&&r.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(t,r))}setTransformRequest(t){return this._requestManager.setTransformRequest(t),this}_getUIString(t){let e=this._locale[t];if(null==e)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){if(e.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",(()=>this._updateStyle(t,e)));let r=this.style&&e.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!t)),t?(this.style=new pe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t,e,r):this.style.loadJSON(t,e,r),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new pe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,r){if("string"==typeof t){let n=this._requestManager.transformRequest(t,"Style");e.h(n,new AbortController).then((t=>{this._updateDiff(t.data,r)})).catch((t=>{t&&this.fire(new e.j(t))}))}else"object"==typeof t&&this._updateDiff(t,r)}_updateDiff(t,r){try{this.style.setState(t,r)&&this._update(!0)}catch(n){e.w(`Unable to perform style diff: ${n.message||n.error||n}. Rebuilding the style from scratch.`),this._updateStyle(t,r)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():e.w("There is no style added to the map.")}addSource(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)}isSourceLoaded(t){let r=this.style&&this.style.sourceCaches[t];if(void 0!==r)return r.loaded();this.fire(new e.j(new Error(`There is no source with ID '${t}'`)))}setTerrain(t){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),t){let r=this.style.sourceCaches[t.source];if(!r)throw new Error(`cannot load terrain, because there exists no source with ID: ${t.source}`);null===this.terrain&&r.reload();for(let r in this.style._layers){let n=this.style._layers[r];"hillshade"===n.type&&n.source===t.source&&e.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Pi(this.painter,r,t),this.painter.renderToTexture=new Di(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=e=>{"style"===e.dataType?this.terrain.sourceCache.freeRtt():"source"===e.dataType&&e.tile&&(e.sourceId!==t.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(e.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new e.k("terrain",{terrain:t})),this}getTerrain(){var t,e;return null!==(e=null===(t=this.terrain)||void 0===t?void 0:t.options)&&void 0!==e?e:null}areTilesLoaded(){let t=this.style&&this.style.sourceCaches;for(let e in t){let r=t[e]._tiles;for(let t in r){let e=r[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}}return!0}removeSource(t){return this.style.removeSource(t),this._update(!0)}getSource(t){return this.style.getSource(t)}addImage(t,r,n={}){let{pixelRatio:i=1,sdf:o=!1,stretchX:s,stretchY:l,content:u,textFitWidth:c,textFitHeight:h}=n;if(this._lazyInitEmptyStyle(),!(r instanceof HTMLImageElement||e.b(r))){if(void 0===r.width||void 0===r.height)return this.fire(new e.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:n,height:a,data:f}=r,p=r;return this.style.addImage(t,{data:new e.R({width:n,height:a},new Uint8Array(f)),pixelRatio:i,stretchX:s,stretchY:l,content:u,textFitWidth:c,textFitHeight:h,sdf:o,version:0,userImage:p}),p.onAdd&&p.onAdd(this,t),this}}{let{width:n,height:f,data:p}=a.getImageData(r);this.style.addImage(t,{data:new e.R({width:n,height:f},p),pixelRatio:i,stretchX:s,stretchY:l,content:u,textFitWidth:c,textFitHeight:h,sdf:o,version:0})}}updateImage(t,r){let n=this.style.getImage(t);if(!n)return this.fire(new e.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let i=r instanceof HTMLImageElement||e.b(r)?a.getImageData(r):r,{width:o,height:s,data:l}=i;if(void 0===o||void 0===s)return this.fire(new e.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==n.data.width||s!==n.data.height)return this.fire(new e.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let u=!(r instanceof HTMLImageElement||e.b(r));return n.data.replace(l,u),this.style.updateImage(t,n),this}getImage(t){return this.style.getImage(t)}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.j(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(t){return p.getImage(this._requestManager.transformRequest(t,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)}moveLayer(t,e){return this.style.moveLayer(t,e),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style.getLayer(t)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)}setFilter(t,e,r={}){return this.style.setFilter(t,e,r),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,e,r,n={}){return this.style.setPaintProperty(t,e,r,n),this._update(!0)}getPaintProperty(t,e){return this.style.getPaintProperty(t,e)}setLayoutProperty(t,e,r,n={}){return this.style.setLayoutProperty(t,e,r,n),this._update(!0)}getLayoutProperty(t,e){return this.style.getLayoutProperty(t,e)}setGlyphs(t,e={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(t,e),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(t,e,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(t,e,r,(t=>{t||this._update(!0)})),this}removeSprite(t){return this._lazyInitEmptyStyle(),this.style.removeSprite(t),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(t,e={}){return this._lazyInitEmptyStyle(),this.style.setSprite(t,e,(t=>{t||this._update(!0)})),this}setLight(t,e={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)}getLight(){return this.style.getLight()}setSky(t){return this._lazyInitEmptyStyle(),this.style.setSky(t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(t,e){return this.style.setFeatureState(t,e),this._update()}removeFeatureState(t,e){return this.style.removeFeatureState(t,e),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]}_setupContainer(){let t=this._container;t.classList.add("maplibregl-map");let e=this._canvasContainer=o.create("div","maplibregl-canvas-container",t);this._interactive&&e.classList.add("maplibregl-interactive"),this._canvas=o.create("canvas","maplibregl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let r=this._containerDimensions(),n=this._getClampedPixelRatio(r[0],r[1]);this._resizeCanvas(r[0],r[1],n);let i=this._controlContainer=o.create("div","maplibregl-control-container",t),a=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((t=>{a[t]=o.create("div",`maplibregl-ctrl-${t} `,i)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,e,r){this._canvas.width=Math.floor(r*t),this._canvas.height=Math.floor(r*e),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${e}px`}_setupPainter(){let t={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},e=null;this._canvas.addEventListener("webglcontextcreationerror",(r=>{e={requestedAttributes:t},r&&(e.statusMessage=r.statusMessage,e.type=r.type)}),{once:!0});let r=this._canvas.getContext("webgl2",t)||this._canvas.getContext("webgl",t);if(!r){let t="Failed to initialize WebGL";throw e?(e.message=t,new Error(JSON.stringify(e))):new Error(t)}this.painter=new _n(r,this.transform),u.testSupport(r)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_render(t){let r=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let n=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let t=this.transform.zoom,i=a.now();this.style.zoomHistory.update(t,i);let o=new e.z(t,{now:i,fadeDuration:r,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),s=o.crossFadingFactor();1===s&&s===this._crossFadingFactor||(n=!0,this._crossFadingFactor=s),this.style.update(o)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,r,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:r,showPadding:this.showPadding}),this.fire(new e.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,e.bf.mark(e.bg.load),this.fire(new e.k("load"))),this.style&&(this.style.hasTransitions()||n)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let i=this._sourcesDirty||this._styleDirty||this._placementDirty;return i||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.k("idle")),!this._loaded||this._fullyLoaded||i||(this._fullyLoaded=!0,e.bf.mark(e.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var t;this._hash&&this._hash.remove();for(let t of this._controls)t.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!=typeof window&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),null===(t=this._resizeObserver)||void 0===t||t.disconnect();let r=this.painter.context.gl.getExtension("WEBGL_lose_context");null!=r&&r.loseContext&&r.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),o.remove(this._canvasContainer),o.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),e.bf.clearMetrics(),this._removed=!0,this.fire(new e.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,a.frameAsync(this._frameRequest).then((t=>{e.bf.frame(t),this._frameRequest=null,this._render(t)})).catch((()=>{})))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get version(){return Bi}getCameraTargetElevation(){return this.transform.elevation}},t.MapMouseEvent=Rn,t.MapTouchEvent=Fn,t.MapWheelEvent=Bn,t.Marker=Zi,t.NavigationControl=class{constructor(t){this._updateZoomButtons=()=>{let t=this._map.getZoom(),e=t===this._map.getMaxZoom(),r=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())},this._rotateCompassArrow=()=>{let t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=t},this._setButtonTitle=(t,e)=>{let r=this._map._getUIString(`NavigationControl.${e}`);t.title=r,t.setAttribute("aria-label",r)},this.options=e.e({},Ui,t),this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",(t=>t.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",(t=>this._map.zoomIn({},{originalEvent:t}))),o.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",(t=>this._map.zoomOut({},{originalEvent:t}))),o.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",(t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})})),this._compassIcon=o.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Vi(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){o.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(t,e){let r=o.create("button",t,this._container);return r.type="button",r.addEventListener("click",e),r}},t.Popup=class extends e.E{constructor(t){super(),this.remove=()=>(this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new e.k("close"))),this),this._onMouseUp=t=>{this._update(t.point)},this._onMouseMove=t=>{this._update(t.point)},this._onDrag=t=>{this._update(t.point)},this._update=t=>{var e;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=o.create("div","maplibregl-popup",this._map.getContainer()),this._tip=o.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let t of this.options.className.split(" "))this._container.classList.add(t);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?qi(this._lngLat,this._flatPos,this._map.transform):null===(e=this._lngLat)||void 0===e?void 0:e.wrap(),this._trackPointer&&!t)return;let r=this._flatPos=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&t?t:this._map.transform.locationPoint(this._lngLat));let n=this.options.anchor,i=ea(this.options.offset);if(!n){let t,e=this._container.offsetWidth,a=this._container.offsetHeight;t=r.y+i.bottom.ythis._map.transform.height-a?["bottom"]:[],r.xthis._map.transform.width-e/2&&t.push("right"),n=0===t.length?"bottom":t.join("-")}let a=r.add(i[n]);this.options.subpixelPositioning||(a=a.round()),o.setTransform(this._container,`${Hi[n]} translate(${a.x}px,${a.y}px)`),Gi(this._container,n,"popup")},this._onClose=()=>{this.remove()},this.options=e.e(Object.create(Qi),t)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new e.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.N.convert(t),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(document.createTextNode(t))}setHTML(t){let e,r=document.createDocumentFragment(),n=document.createElement("body");for(n.innerHTML=t;e=n.firstChild,e;)r.appendChild(e);return this.setDOMContent(r)}getMaxWidth(){var t;return null===(t=this._container)||void 0===t?void 0:t.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(t){return this._container&&this._container.classList.add(t),this}removeClassName(t){return this._container&&this._container.classList.remove(t),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){if(this._container)return this._container.classList.toggle(t)}setSubpixelPositioning(t){this.options.subpixelPositioning=t}_createCloseButton(){this.options.closeButton&&(this._closeButton=o.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let t=this._container.querySelector(ta);t&&t.focus()}},t.RasterDEMTileSource=J,t.RasterTileSource=$,t.ScaleControl=class{constructor(t){this._onMove=()=>{Ji(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Ji(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},$i),t)}getDefaultPosition(){return"bottom-left"}onAdd(t){return this._map=t,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},t.ScrollZoomHandler=pi,t.Style=pe,t.TerrainControl=class{constructor(t){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=t}onAdd(t){return this._map=t,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=o.create("button","maplibregl-ctrl-terrain",this._container),o.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){o.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},t.TwoFingersTouchPitchHandler=li,t.TwoFingersTouchRotateHandler=oi,t.TwoFingersTouchZoomHandler=ii,t.TwoFingersTouchZoomRotateHandler=xi,t.VectorTileSource=X,t.VideoSource=et,t.addSourceType=(t,r)=>e._(void 0,void 0,void 0,(function*(){if(it(t))throw new Error(`A source type called "${t}" already exists.`);var e;e=r,nt[t]=e})),t.clearPrewarmedResources=function(){let t=F;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(D),F=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},t.getMaxParallelImageRequests=function(){return e.a.MAX_PARALLEL_IMAGE_REQUESTS},t.getRTLTextPluginStatus=function(){return lt().getRTLTextPluginStatus()},t.getVersion=function(){return ra},t.getWorkerCount=function(){return R.workerCount},t.getWorkerUrl=function(){return e.a.WORKER_URL},t.importScriptInWorkers=function(t){return V().broadcast("IS",t)},t.prewarm=function(){j().acquire(D)},t.setMaxParallelImageRequests=function(t){e.a.MAX_PARALLEL_IMAGE_REQUESTS=t},t.setRTLTextPlugin=function(t,e){return lt().setRTLTextPlugin(t,e)},t.setWorkerCount=function(t){R.workerCount=t},t.setWorkerUrl=function(t){e.a.WORKER_URL=t}})),t},"object"==typeof t&&void 0!==e?e.exports=a():(n="undefined"!=typeof globalThis?globalThis:n||self).maplibregl=a()})),nb=f(((t,e)=>{var r=le(),n=Se().sanitizeHTML,i=$_(),a=H_();function o(t,e){this.subplot=t,this.uid=t.uid+"-"+e,this.index=e,this.idSource="source-"+this.uid,this.idLayer=a.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var s=o.prototype;function l(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&&e.length>0){for(var n=0;n0}function u(t){var e={},n={};switch(t.type){case"circle":r.extendFlat(n,{"circle-radius":t.circle.radius,"circle-color":t.color,"circle-opacity":t.opacity});break;case"line":r.extendFlat(n,{"line-width":t.line.width,"line-color":t.color,"line-opacity":t.opacity,"line-dasharray":t.line.dash});break;case"fill":r.extendFlat(n,{"fill-color":t.color,"fill-outline-color":t.fill.outlinecolor,"fill-opacity":t.opacity});break;case"symbol":var a=t.symbol,o=i(a.textposition,a.iconsize);r.extendFlat(e,{"icon-image":a.icon+"-15","icon-size":a.iconsize/10,"text-field":a.text,"text-size":a.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":a.placement}),r.extendFlat(n,{"icon-color":t.color,"text-color":a.textfont.color,"text-opacity":t.opacity});break;case"raster":r.extendFlat(n,{"raster-fade-duration":0,"raster-opacity":t.opacity})}return{layout:e,paint:n}}s.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=l(t)},s.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===t.sourcetype&&(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},s.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},s.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},s.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},s.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapLayerId(this.lookupBelow());null!==e&&this.subplot.map.moveLayer(this.idLayer,e)},s.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,l(t)){var r=function(t){var e,r=t.sourcetype,i=t.source,a={type:r};return"geojson"===r?e="data":"vector"===r?e="string"==typeof i?"url":"tiles":"raster"===r?(e="tiles",a.tileSize=256):"image"===r&&(e="url",a.coordinates=t.coordinates),a[e]=i,t.sourceattribution&&(a.attribution=n(t.sourceattribution)),a}(t);e.addSource(this.idSource,r)}},s.findFollowingMapLayerId=function(t){if("traces"===t)for(var e=this.subplot.getMapLayers(),r=0;r{var r=rb(),n=le(),i=rg(),a=qt(),o=ir(),s=fr(),l=Or(),u=Dr(),c=u.drawMode,h=u.selectMode,f=En().prepSelect,p=En().clearOutline,d=En().clearSelectionsCache,m=En().selectOnClick,g=H_(),y=nb();function v(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var x=v.prototype;x.plot=function(t,e,r){var n,i=this;n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},x.createMap=function(t,e,n,a){var o=this,s=e[o.id],l=o.styleObj=b(s.style),u=s.bounds,c=u?[[u.west,u.south],[u.east,u.north]]:null,h=o.map=new r.Map({container:o.div,style:l.style,center:w(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:c,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new r.AttributionControl({compact:!0})),f={};h.on("styleimagemissing",(function(t){var e=t.id;if(!f[e]&&e.includes("-15")){f[e]=!0;var r=new Image(15,15);r.onload=function(){h.addImage(e,r)},r.crossOrigin="Anonymous",r.src="https://unpkg.com/maki@2.1.0/icons/"+e+".svg"}})),h.setTransformRequest((function(t){return{url:t=(t=(t=t.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold")).replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold")).replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular")}})),h._canvas.style.left="0px",h._canvas.style.top="0px",o.rejectOnError(a),o.isStatic||o.initFx(t,e);var p=[];p.push(new Promise((function(t){h.once("load",t)}))),p=p.concat(i.fetchTraceGeoData(t)),Promise.all(p).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(n)})).catch(a)},x.updateMap=function(t,e,r,n){var a=this,o=a.map,s=e[this.id];a.rejectOnError(n);var l=[],u=b(s.style);JSON.stringify(a.styleObj)!==JSON.stringify(u)&&(a.styleObj=u,o.setStyle(u.style),a.traceHash={},l.push(new Promise((function(t){o.once("styledata",t)})))),l=l.concat(i.fetchTraceGeoData(t)),Promise.all(l).then((function(){a.fillBelowLookup(t,e),a.updateData(t),a.updateLayout(e),a.resolveOnRender(r)})).catch(n)},x.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r1)for(r=0;r-1&&m(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf("event")>-1&&l.click(n,e.originalEvent)}}},x.updateFx=function(t){var e=this,r=e.map,i=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=function(t,r){r.isRect?(t.range={})[e.id]=[u([r.xmin,r.ymin]),u([r.xmax,r.ymax])]:(t.lassoPoints={})[e.id]=r.map(u)};var l=e.dragOptions;e.dragOptions=n.extendDeep(l||{},{dragmode:t.dragmode,element:e.div,gd:i,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off("click",e.onClickInPanHandler),h(o)||c(o)?(r.dragPan.disable(),r.on("zoomstart",e.clearOutline),e.dragOptions.prepFn=function(t,r,n){f(t,r,n,e.dragOptions,o)},s.init(e.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",e.clearOutline),e.div.onmousedown=null,e.div.ontouchstart=null,e.div.removeEventListener("touchstart",e.div._ontouchstart),e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on("click",e.onClickInPanHandler))}function u(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},x.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+"px",n.height=r.h*(e.y[1]-e.y[0])+"px",n.left=r.l+e.x[0]*r.w+"px",n.top=r.t+(1-e.y[1])*r.h+"px",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},x.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e{var r=le(),n=Hs(),i=Ne(),a=G_();function o(t,e,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),l=r("bounds.north");(void 0===n||void 0===a||void 0===o||void 0===l)&&delete e.bounds,i(t,e,{name:"layers",handleItemDefaults:s}),e._input=t}function s(t,e){function n(n,i){return r.coerce(t,e,a.layers,n,i)}if(n("visible")){var i,o=n("sourcetype"),s="raster"===o||"image"===o;n("source"),n("sourceattribution"),"vector"===o&&n("sourcelayer"),"image"===o&&n("coordinates"),s&&(i="raster");var l=n("type",i);s&&"raster"!==l&&(l=e.type="raster",r.log("Source types *raster* and *image* must drawn *raster* layer type.")),n("below"),n("color"),n("opacity"),n("minzoom"),n("maxzoom"),"circle"===l&&n("circle.radius"),"line"===l&&(n("line.width"),n("line.dash")),"fill"===l&&n("fill.outlinecolor"),"symbol"===l&&(n("symbol.icon"),n("symbol.iconsize"),n("symbol.text"),r.coerceFont(n,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),n("symbol.textposition"),n("symbol.placement"))}}e.exports=function(t,e,r){n(t,e,r,{type:"map",attributes:a,handleDefaults:o,partition:"y"})}})),ob=f((t=>{var e=le(),r=e.strTranslate,n=e.strScale,i=we().getSubplotCalcData,a=Ae(),o=v(),s=Qe(),l=Se(),u=ib(),c="map";t.name=c,t.attr="subplot",t.idRoot=c,t.idRegex=t.attrRegex=e.counterRegex(c),t.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}},t.layoutAttributes=G_(),t.supplyLayoutDefaults=ab(),t.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,a=r._subplots[c],o=0;ox/2){var _=m.split("|").join("
");y.text(_).attr("data-unformatted",_).call(l.convertToTspans,t),v=s.bBox(y.node())}y.attr("transform",r(-3,8-v.height)),g.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var b=1;v.width+6>x&&(b=x/(v.width+6));var w=[u.l+u.w*p.x[1],u.t+u.h*(1-p.y[0])];g.attr("transform",r(w[0],w[1])+n(b))}},t.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots[c],n=0;n{e.exports={attributes:Z_(),supplyDefaults:Y_(),colorbar:pi(),formatLabels:X_(),calc:Gm(),plot:K_(),hoverPoints:Q_().hoverPoints,eventData:tb(),selectPoints:eb(),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.update(e)},moduleType:"trace",name:"scattermap",basePlotModule:ob(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}})),lb=f(((t,e)=>{e.exports=sb()})),ub=f(((t,e)=>{var r=vg(),n=Pe(),i=Ot().hovertemplateAttrs,a=j(),o=D().extendFlat;e.exports=o({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:o({},r.featureidkey,{}),below:{valType:"string",editType:"plot"},text:r.text,hovertext:r.hovertext,marker:{line:{color:o({},r.marker.line.color,{editType:"plot"}),width:o({},r.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:o({},r.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:o({},r.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:o({},r.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:r.hoverinfo,hovertemplate:i({},{keys:["properties"]}),showlegend:o({},a.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))})),cb=f(((t,e)=>{var r=le(),n=qe(),i=ub();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("locations"),u=s("z"),c=s("geojson");r.isArrayOrTypedArray(l)&&l.length&&r.isArrayOrTypedArray(u)&&u.length&&("string"==typeof c&&""!==c||r.isPlainObject(c))?(s("featureidkey"),e._length=Math.min(l.length,u.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),n(t,e,o,s,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}})),hb=f(((t,e)=>{var r=T(),n=le(),i=We(),a=Qe(),o=Xm().makeBlank,s=rg();function l(t){var e,r=t[0].trace,i=r._opts;if(r.selectedpoints){for(var o=a.makeSelectedPointStyleFns(r),s=0;s{var r=hb().convert,n=hb().convertOnSelect,i=H_().traceLayerPrefix;function a(t,e){this.type="choroplethmap",this.subplot=t,this.uid=e,this.sourceId="source-"+e,this.layerList=[["fill",i+e+"-fill"],["line",i+e+"-line"]],this.below=null}var o=a.prototype;o.update=function(t){this._update(r(t)),t[0].trace._glTrace=this},o.updateOnSelect=function(t){this._update(n(t))},o._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup["trace-"+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var n=e[0].trace,i=new a(t,n.uid),o=i.sourceId,s=r(e),l=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}})),pb=f(((t,e)=>{e.exports={attributes:ub(),supplyDefaults:cb(),colorbar:Uo(),calc:_g(),plot:fb(),hoverPoints:Tg(),eventData:kg(),selectPoints:Ag(),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if("string"==typeof i&&0===i.indexOf("water"))for(var a=n+1;a{e.exports=pb()})),mb=f(((t,e)=>{var r=Pe(),n=Ot().hovertemplateAttrs,i=j(),a=Z_(),o=D().extendFlat;e.exports=o({lon:a.lon,lat:a.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:a.text,hovertext:a.hovertext,hoverinfo:o({},i.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:n(),showlegend:o({},i.showlegend,{dflt:!1})},r("",{cLetter:"z",editTypeOverride:"calc"}))})),gb=f(((t,e)=>{var r=le(),n=qe(),i=mb();e.exports=function(t,e,a,o){function s(n,a){return r.coerce(t,e,i,n,a)}var l=s("lon")||[],u=s("lat")||[],c=Math.min(l.length,u.length);c?(e._length=c,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),n(t,e,o,s,{prefix:"",cLetter:"z"})):e.visible=!1}})),yb=f(((t,e)=>{var r=T(),n=le().isArrayOrTypedArray,i=k().BADNUM,a=Ze(),o=le()._;e.exports=function(t,e){for(var s=e._length,l=new Array(s),u=e.z,c=n(u)&&u.length,h=0;h{var r=T(),n=le(),i=q(),a=We(),o=k().BADNUM,s=Xm().makeBlank;e.exports=function(t){var e=t[0].trace,l=!0===e.visible&&0!==e._length,u=e._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:s()};if(!l)return u;var c,h=[],f=e.z,p=e.radius,d=n.isArrayOrTypedArray(f)&&f.length,m=n.isArrayOrTypedArray(p);for(c=0;c0?+p[c]:0),h.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:v})}}var _=a.extractOpts(e),b=_.reversescale?a.flipScale(_.colorscale):_.colorscale,w=b[0][1],T=["interpolate",["linear"],["heatmap-density"],0,i.opacity(w)<1?w:i.addOpacity(w,0)];for(c=1;c{var r=vb(),n=H_().traceLayerPrefix;function i(t,e){this.type="densitymap",this.subplot=t,this.uid=e,this.sourceId="source-"+e,this.layerList=[["heatmap",n+e+"-heatmap"]],this.below=null}var a=i.prototype;a.update=function(t){var e=this.subplot,n=this.layerList,i=r(t),a=e.belowLookup["trace-"+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o=0;r--)t.removeLayer(e[r][1])},a.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var n=e[0].trace,a=new i(t,n.uid),o=a.sourceId,s=r(e),l=a.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),a._addLayers(s,l),a}})),_b=f(((t,e)=>{var r=ir(),n=Q_().hoverPoints,i=Q_().getExtraText;e.exports=function(t,e,a){var o=n(t,e,a);if(o){var s=o[0],l=s.cd,u=l[0].trace,c=l[s.index];if(delete s.color,"z"in c){var h=s.subplot.mockAxis;s.z=c.z,s.zLabel=r.tickText(h,h.c2l(c.z),"hover").text}return s.extraText=i(u,c,l[0].t.labels),[s]}}})),bb=f(((t,e)=>{e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}})),wb=f(((t,e)=>{e.exports={attributes:mb(),supplyDefaults:gb(),colorbar:Uo(),formatLabels:X_(),calc:yb(),plot:xb(),hoverPoints:_b(),eventData:bb(),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n{e.exports=wb()})),kb=f(((t,e)=>{var r=R(),n=j(),i=V(),a=N(),o=ka().attributes,s=Ot().hovertemplateAttrs,l=Pe(),u=ye().templatedArray,c=Ce().descriptionOnlyNumbers,h=D().extendFlat,f=Lt().overrideAll;e.exports=f({hoverinfo:h({},n.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:a.hoverlabel,domain:o({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:c("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:r({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:i.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:a.hoverlabel,hovertemplate:s({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:i.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:a.hoverlabel,hovertemplate:s({},{keys:["value","label"]}),colorscales:u("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:h(l().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")})),Ab=f(((t,e)=>{var r=le(),n=kb(),i=q(),a=O(),o=ka().defaults,s=Sr(),l=ye(),u=Ne();function c(t,e){function i(i,a){return r.coerce(t,e,n.link.colorscales,i,a)}i("label"),i("cmin"),i("cmax"),i("colorscale")}e.exports=function(t,e,h,f){function p(i,a){return r.coerce(t,e,n,i,a)}var d=r.extendDeep(f.hoverlabel,t.hoverlabel),m=t.node,g=l.newContainer(e,"node");function y(t,e){return r.coerce(m,g,n.node,t,e)}y("label"),y("groups"),y("x"),y("y"),y("pad"),y("thickness"),y("line.color"),y("line.width"),y("hoverinfo",t.hoverinfo),s(m,g,y,d),y("hovertemplate"),y("align");var v=f.colorway;y("color",g.label.map((function(t,e){return i.addOpacity(function(t){return v[t%v.length]}(e),.8)}))),y("customdata");var x=t.link||{},_=l.newContainer(e,"link");function b(t,e){return r.coerce(x,_,n.link,t,e)}b("label"),b("arrowlen"),b("source"),b("target"),b("value"),b("line.color"),b("line.width"),b("hoverinfo",t.hoverinfo),s(x,_,b,d),b("hovertemplate");var w,T=a(f.paper_bgcolor).getLuminance()<.333,k=b("color",T?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)");function A(t){var e=a(t);if(!e.isValid())return t;var r=e.getAlpha();return r<=.8?e.setAlpha(r+.2):e=T?e.brighten():e.darken(),e.toRgbString()}b("hovercolor",Array.isArray(k)?k.map(A):A(k)),b("customdata"),u(x,_,{name:"colorscales",handleItemDefaults:c}),o(e,f,p),p("orientation"),p("valueformat"),p("valuesuffix"),g.x.length&&g.y.length&&(w="freeform"),p("arrangement",w),r.coerceFont(p,"textfont",f.font,{autoShadowDflt:!0}),e._length=null}})),Mb=f(((t,e)=>{e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l0;){e=u[u.length-1];var p=t[e];if(a[e]=0&&s[e].push(o[m])}a[e]=d}else{if(n[e]===r[e]){var g=[],y=[],v=0;for(d=l.length-1;d>=0;--d){var x=l[d];if(i[x]=!1,g.push(x),y.push(s[x]),v+=s[x].length,o[x]=h.length,x===e){l.length=d;break}}h.push(g);var _=new Array(v);for(d=0;d{var r=Mb(),n=le(),i=Ix().wrap,a=n.isArrayOrTypedArray,o=n.isIndex,s=We();e.exports=function(t,e){var l=function(t){var e,i=t.node,l=t.link,u=[],c=a(l.color),h=a(l.hovercolor),f=a(l.customdata),p={},d={},m=l.colorscales.length;for(e=0;ex&&(x=l.source[e]),l.target[e]>x&&(x=l.target[e]);var _=x+1;t.node._count=_;var b,w=t.node.groups,T={};for(e=0;e0&&o(C,_)&&o(I,_)&&(!T.hasOwnProperty(C)||!T.hasOwnProperty(I)||T[C]!==T[I])){T.hasOwnProperty(I)&&(I=T[I]),T.hasOwnProperty(C)&&(C=T[C]),I=+I,p[C=+C]=p[I]=!0;var L="";l.label&&l.label[e]&&(L=l.label[e]);var P=null;L&&d.hasOwnProperty(L)&&(P=d[L]),u.push({pointNumber:e,label:L,color:c?l.color[e]:l.color,hovercolor:h?l.hovercolor[e]:l.hovercolor,customdata:f?l.customdata[e]:l.customdata,concentrationscale:P,source:C,target:I,value:+E}),S.source.push(C),S.target.push(I)}}var z=_+w.length,O=a(i.color),D=a(i.customdata),R=[];for(e=0;e_-1,childrenNodes:[],pointNumber:e,label:F,color:O?i.color[e]:i.color,customdata:D?i.customdata[e]:i.customdata})}var B=!1;return function(t,e,i){for(var a=n.init2dArray(t,0),o=0;o1}))}(z,S.source,S.target)&&(B=!0),{circular:B,links:u,nodes:R,groups:w,groupLookup:T}}(e);return i({circular:l.circular,_nodes:l.nodes,_links:l.links,_groups:l.groups,_groupLookup:l.groupLookup})}})),Eb=f(((t,e)=>{var r,n;r=t,n=function(t){function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,u,c,h,f,p=t._root,d={data:n},m=t._x0,g=t._y0,y=t._x1,v=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((u=e>=(a=(m+y)/2))?m=a:y=a,(c=r>=(o=(g+v)/2))?g=o:v=o,i=p,!(p=p[h=c<<1|u]))return i[h]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&r===l)return d.next=p,i?i[h]=d:t._root=d,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(m+y)/2))?m=a:y=a,(c=r>=(o=(g+v)/2))?g=o:v=o}while((h=c<<1|u)==(f=(l>=o)<<1|s>=a));return i[f]=p,i[h]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),u=1/0,c=1/0,h=-1/0,f=-1/0;for(n=0;nh&&(h=i),af&&(f=a));if(u>h||c>f)return this;for(this.cover(u,c).cover(h,f),n=0;nt||t>=i||n>e||e>=a;)switch(s=(ep||(o=u.y0)>d||(s=u.x1)=v)<<1|t>=y)&&(u=m[m.length-1],m[m.length-1]=m[m.length-1-c],m[m.length-1-c]=u)}else{var x=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=x*x+_*_;if(b=(s=(d+g)/2))?d=s:g=s,(c=o>=(l=(m+y)/2))?m=l:y=l,e=p,!(p=p[h=c<<1|u]))return this;if(!p.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,f=h)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[h]=i:delete e[h],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[f]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e{var r;r=t,function(t){var e="$";function r(){}function n(t,e){var n=new r;if(t instanceof r)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==e)for(;++a=l.length)return null!=t&&r.sort(t),null!=e?e(r):r;for(var s,u,h,f=-1,p=r.length,d=l[i++],m=n(),g=a();++fl.length)return t;var n,i=u[r-1];return null!=e&&r>=l.length?n=t.entries():(n=[],t.each((function(t,e){n.push({key:e,values:h(t,r)})}))),null!=i?n.sort((function(t,e){return i(t.key,e.key)})):n}return r={object:function(t){return c(t,0,i,a)},map:function(t){return c(t,0,o,s)},entries:function(t){return h(c(t,0,o,s),0)},key:function(t){return l.push(t),r},sortKeys:function(t){return u[l.length-1]=t,r},sortValues:function(e){return t=e,r},rollup:function(t){return e=t,r}}},t.set=c,t.map=n,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof t&&void 0!==e?t:r.d3=r.d3||{})})),Ib=f(((t,e)=>{var r,n;r=t,n=function(t){var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}(t+"",n),s=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s0)for(var r,n,i=new Array(r),a=0;a{var r,n;r=t,n=function(t){var e,r,n=0,i=0,a=0,o=0,s=0,l=0,u="object"==typeof performance&&performance.now?performance:Date,c="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h(){return s||(c(f),s=u.now()+l)}function f(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function m(){h(),++n;for(var t,r=e;r;)(t=s-r._time)>=0&&r._call.call(null,t),r=r._next;--n}function g(){s=(o=u.now())+l,n=i=0;try{m()}finally{n=0,function(){for(var t,n,i=e,a=1/0;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,v(a)}(),s=0}}function y(){var t=u.now(),e=t-o;e>1e3&&(l-=e,o=t)}function v(t){n||(i&&(i=clearTimeout(i)),t-s>24?(t<1/0&&(i=setTimeout(g,t-u.now()-l)),a&&(a=clearInterval(a))):(a||(o=u.now(),a=setInterval(y,1e3)),n=1,c(g)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?h():+i)+(null==n?0:+n),!this._next&&r!==this&&(r?r._next=this:e=this,r=this),this._call=t,this._time=i,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?h():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=h,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=m,Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r=r||self).d3=r.d3||{})})),Pb=f(((t,e)=>{var r,n;r=t,n=function(t,e,r,n,i){function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function u(t){return t.index}function c(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function h(t){return t.x}function f(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;nf+u||np+u||ac.index){var h=f-s.x-s.vx,g=p-s.y-s.vy,y=h*h+g*g;yt.r&&(t.r=t[e].r)}function f(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e=u)){(t.data!==r||t.next)&&(0===h&&(d+=(h=o())*h),0===f&&(d+=(f=o())*f),d1?(null==r?c.remove(t):c.set(t,y(r)),e):c.get(t)},find:function(e,r,n){var i,a,o,s,l,u=0,c=t.length;for(null==n?n=1/0:n*=n,u=0;u1?(f.on(t,r),e):f.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a{var r,n;r=t,n=function(t){var e=Math.PI,r=2*e,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,r,i,a,o){t=+t,r=+r,i=+i,a=+a,o=+o;var s=this._x1,l=this._y1,u=i-t,c=a-r,h=s-t,f=l-r,p=h*h+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=r);else if(p>n)if(Math.abs(f*u-c*h)>n&&o){var d=i-s,m=a-l,g=u*u+c*c,y=d*d+m*m,v=Math.sqrt(g),x=Math.sqrt(p),_=o*Math.tan((e-Math.acos((g+p-y)/(2*v*x)))/2),b=_/x,w=_/v;Math.abs(b-1)>n&&(this._+="L"+(t+b*h)+","+(r+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>h*m)+","+(this._x1=t+w*u)+","+(this._y1=r+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=r)},arc:function(t,a,o,s,l,u){t=+t,a=+a,u=!!u;var c=(o=+o)*Math.cos(s),h=o*Math.sin(s),f=t+c,p=a+h,d=1^u,m=u?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+p:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&(this._+="L"+f+","+p),o&&(m<0&&(m=m%r+r),m>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(a-h)+"A"+o+","+o+",0,1,"+d+","+(this._x1=f)+","+(this._y1=p):m>n&&(this._+="A"+o+","+o+",0,"+ +(m>=e)+","+d+","+(this._x1=t+o*Math.cos(l))+","+(this._y1=a+o*Math.sin(l))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})},n("object"==typeof t&&void 0!==e?t:(r=r||self).d3=r.d3||{})})),Ob=f(((t,e)=>{var r,n;r=t,n=function(t,e){function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,f=h/2,p=2*h;function d(t){return t>=1?f:t<=-1?-f:Math.asin(t)}function m(t){return t.innerRadius}function g(t){return t.outerRadius}function y(t){return t.startAngle}function v(t){return t.endAngle}function x(t){return t&&t.padAngle}function _(t,e,r,n,i,a,s){var l=t-r,c=e-n,h=(s?a:-a)/u(l*l+c*c),f=h*c,p=-h*l,d=t+f,m=e+p,g=r+f,y=n+p,v=(d+g)/2,x=(m+y)/2,_=g-d,b=y-m,w=_*_+b*b,T=i-a,k=d*y-g*m,A=(b<0?-1:1)*u(o(0,T*T*w-k*k)),M=(k*b-_*A)/w,S=(-k*_-b*A)/w,E=(k*b+_*A)/w,C=(-k*_+b*A)/w,I=M-v,L=S-x,P=E-v,z=C-x;return I*I+L*L>P*P+z*z&&(M=E,S=C),{cx:M,cy:S,x01:-f,y01:-p,x11:M*(i/T-1),y11:S*(i/T-1)}}function b(t){this._context=t}function w(t){return new b(t)}function T(t){return t[0]}function k(t){return t[1]}function A(){var t=T,n=k,i=r(!0),a=null,o=w,s=null;function l(r){var l,u,c,h=r.length,f=!1;for(null==a&&(s=o(c=e.path())),l=0;l<=h;++l)!(l=h;--f)u.point(y[f],v[f]);u.lineEnd(),u.areaEnd()}g&&(y[c]=+t(p,c,r),v[c]=+i(p,c,r),u.point(n?+n(p,c,r):y[c],a?+a(p,c,r):v[c]))}if(d)return u=null,d+""||null}function h(){return A().defined(o).curve(l).context(s)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),n=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:r(+t),c):n},c.y=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),a=null,c):i},c.y0=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),c):i},c.y1=function(t){return arguments.length?(a=null==t?null:"function"==typeof t?t:r(+t),c):a},c.lineX0=c.lineY0=function(){return h().x(t).y(i)},c.lineY1=function(){return h().x(t).y(a)},c.lineX1=function(){return h().x(n).y(i)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:r(!!t),c):o},c.curve=function(t){return arguments.length?(l=t,null!=s&&(u=l(s)),c):l},c.context=function(t){return arguments.length?(null==t?s=u=null:u=l(s=t),c):s},c}function S(t,e){return et?1:e>=t?0:NaN}function E(t){return t}b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=L(w);function I(t){this._curve=t}function L(t){function e(e){return new I(t(e))}return e._curve=t,e}function P(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function z(){return P(A().curve(C))}function O(){var t=M().curve(C),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return P(r())},delete t.lineX0,t.lineEndAngle=function(){return P(n())},delete t.lineX1,t.lineInnerRadius=function(){return P(i())},delete t.lineY0,t.lineOuterRadius=function(){return P(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function D(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var R=Array.prototype.slice;function F(t){return t.source}function B(t){return t.target}function N(t){var n=F,i=B,a=T,o=k,s=null;function l(){var r,l=R.call(arguments),u=n.apply(this,l),c=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=u,l)),+o.apply(this,l),+a.apply(this,(l[0]=c,l)),+o.apply(this,l)),r)return s=null,r+""||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a="function"==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o="function"==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function j(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function V(t,e,r,n,i){var a=D(e,r),o=D(e,r=(r+i)/2),s=D(n,r),l=D(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var q={draw:function(t,e){var r=Math.sqrt(e/h);t.moveTo(r,0),t.arc(0,0,r,0,p)}},H={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},G=Math.sqrt(1/3),Z=2*G,W={draw:function(t,e){var r=Math.sqrt(e/Z),n=r*G;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Y=Math.sin(h/10)/Math.sin(7*h/10),X=Math.sin(p/10)*Y,$=-Math.cos(p/10)*Y,J={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=X*r,i=$*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a<5;++a){var o=p*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},K={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},Q=Math.sqrt(3),tt={draw:function(t,e){var r=-Math.sqrt(e/(3*Q));t.moveTo(0,2*r),t.lineTo(-Q*r,-r),t.lineTo(Q*r,-r),t.closePath()}},et=-.5,rt=Math.sqrt(3)/2,nt=1/Math.sqrt(12),it=3*(nt/2+1),at={draw:function(t,e){var r=Math.sqrt(e/it),n=r/2,i=r*nt,a=n,o=r*nt+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(et*n-rt*i,rt*n+et*i),t.lineTo(et*a-rt*o,rt*a+et*o),t.lineTo(et*s-rt*l,rt*s+et*l),t.lineTo(et*n+rt*i,et*i-rt*n),t.lineTo(et*a+rt*o,et*o-rt*a),t.lineTo(et*s+rt*l,et*l-rt*s),t.closePath()}},ot=[q,H,W,K,J,tt,at];function st(){}function lt(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ct(t){this._context=t}function ht(t){this._context=t}function ft(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ct.prototype={areaStart:st,areaEnd:st,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var pt=function t(e){function r(t){return 1===e?new ut(t):new ft(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function dt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:dt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:dt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:st,areaEnd:st,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:dt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function xt(t,e){this._context=t,this._k=(1-e)/6}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:dt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new xt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>c){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>c){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*u+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function wt(t,e){this._context=t,this._alpha=e}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:bt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tt=function t(e){function r(t){return e?new wt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function kt(t,e){this._context=t,this._alpha=e}kt.prototype={areaStart:st,areaEnd:st,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:bt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new kt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var St=function t(e){function r(t){return e?new Mt(t,e):new xt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Et(t){this._context=t}function Ct(t){return t<0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ct(a)+Ct(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Pt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zt(t){this._context=t}function Ot(t){this._context=new Dt(t)}function Dt(t){this._context=t}function Rt(t){this._context=t}function Ft(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a=0;)r[e]=e;return r}function Ut(t,e){return t[e]}function Vt(t){var e=t.map(qt);return jt(t).sort((function(t,r){return e[t]-e[r]}))}function qt(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++ra&&(a=e,n=r);return n}function Ht(t){var e=t.map(Gt);return jt(t).sort((function(t,r){return e[t]-e[r]}))}function Gt(t){for(var e,r=0,n=-1,i=t.length;++n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=m,o=g,b=r(0),w=null,T=y,k=v,A=x,M=null;function S(){var r,m,g=+t.apply(this,arguments),y=+o.apply(this,arguments),v=T.apply(this,arguments)-f,x=k.apply(this,arguments)-f,S=n(x-v),E=x>v;if(M||(M=r=e.path()),yc)if(S>p-c)M.moveTo(y*a(v),y*l(v)),M.arc(0,0,y,v,x,!E),g>c&&(M.moveTo(g*a(x),g*l(x)),M.arc(0,0,g,x,v,E));else{var C,I,L=v,P=x,z=v,O=x,D=S,R=S,F=A.apply(this,arguments)/2,B=F>c&&(w?+w.apply(this,arguments):u(g*g+y*y)),N=s(n(y-g)/2,+b.apply(this,arguments)),j=N,U=N;if(B>c){var V=d(B/g*l(F)),q=d(B/y*l(F));(D-=2*V)>c?(z+=V*=E?1:-1,O-=V):(D=0,z=O=(v+x)/2),(R-=2*q)>c?(L+=q*=E?1:-1,P-=q):(R=0,L=P=(v+x)/2)}var H=y*a(L),G=y*l(L),Z=g*a(O),W=g*l(O);if(N>c){var Y,X=y*a(P),$=y*l(P),J=g*a(z),K=g*l(z);if(S1?0:t<-1?h:Math.acos(t)}((Q*et+tt*rt)/(u(Q*Q+tt*tt)*u(et*et+rt*rt)))/2),it=u(Y[0]*Y[0]+Y[1]*Y[1]);j=s(N,(g-it)/(nt-1)),U=s(N,(y-it)/(nt+1))}}R>c?U>c?(C=_(J,K,H,G,y,U,E),I=_(X,$,Z,W,y,U,E),M.moveTo(C.cx+C.x01,C.cy+C.y01),Uc&&D>c?j>c?(C=_(Z,W,X,$,g,-j,E),I=_(H,G,J,K,g,-j,E),M.lineTo(C.cx+C.x01,C.cy+C.y01),j0&&(d+=h);for(null!=e?m.sort((function(t,r){return e(g[t],g[r])})):null!=n&&m.sort((function(t,e){return n(r[t],r[e])})),s=0,u=d?(v-f*_)/d:0;s0?h*u:0)+_,g[l]={data:r[l],index:s,value:h,startAngle:y,endAngle:c,padAngle:x};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:r(+t),s):o},s},t.pointRadial=D,t.radialArea=O,t.radialLine=z,t.stack=function(){var t=r([]),e=jt,n=Nt,i=Ut;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,u=s.length,c=new Array(u);for(a=0;a0)for(var r,n,i,a,o,s,l=0,u=t[e[0]].length;l0?(n[0]=a,n[1]=a+=i):i<0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)>0){for(var r,n,i,a=0,o=t[0].length;a0){for(var r,n=0,i=t[e[0]],a=i.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,a=0,o=1;o{var r,n;r=t,n=function(t,e,r,n){function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return u(t.source,e.source)||t.index-e.index}function l(t,e){return u(t.target,e.target)||t.index-e.index}function u(t,e){return t.y0-e.y0}function c(t){return t.value}function h(t){return(t.y0+t.y1)/2}function f(t){return h(t.source)*t.value}function p(t){return h(t.target)*t.value}function d(t){return t.index}function m(t){return t.nodes}function g(t){return t.links}function y(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function v(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,v=1,x=24,_=8,b=d,w=a,T=m,k=g,A=32,M=2/3;function S(){var a={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return function(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,b);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;"object"!=typeof n&&(n=t.source=y(e,n)),"object"!=typeof i&&(i=t.target=y(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}(a),function(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,c),e.sum(t.targetLinks,c))}))}(a),function(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}(a),function(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));(function(){var r=e.max(i,(function(t){return t.length})),a=M*(v-n)/(r-1);_>a&&(_=a);var o=e.min(i,(function(t){return(v-n-(t.length-1)*_)/e.sum(t,c)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))})(),d();for(var a=1,o=A;o>0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,f)/e.sum(r.targetLinks,c)-h(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,c)-h(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(u),i=0;i0&&(e.y0+=r,e.y1+=r),a=e.y1+_;if((r=a-_-v)>0)for(a=e.y0-=r,e.y1-=r,i=o-2;i>=0;--i)(r=(e=t[i]).y1+_-a)>0&&(e.y0-=r,e.y1-=r),a=e.y0}))}}(a),E(a),a}function E(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return S.update=function(t){return E(t),t},S.nodeId=function(t){return arguments.length?(b="function"==typeof t?t:o(t),S):b},S.nodeAlign=function(t){return arguments.length?(w="function"==typeof t?t:o(t),S):w},S.nodeWidth=function(t){return arguments.length?(x=+t,S):x},S.nodePadding=function(t){return arguments.length?(_=+t,S):_},S.nodes=function(t){return arguments.length?(T="function"==typeof t?t:o(t),S):T},S.links=function(t){return arguments.length?(k="function"==typeof t?t:o(t),S):k},S.size=function(e){return arguments.length?(t=n=0,i=+e[0],v=+e[1],S):[i-t,v-n]},S.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],v=+e[1][1],S):[[t,n],[i,v]]},S.iterations=function(t){return arguments.length?(A=+t,S):A},S},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(v).target(x)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof t&&void 0!==e?n(t,lg(),Cb(),Ob()):n(r.d3=r.d3||{},r.d3,r.d3,r.d3)})),Rb=f(((t,e)=>{var r=Mb();e.exports=function(t,e){var n,i=[],a=[],o=[],s={},l=[];function u(t){o[t]=!1,s.hasOwnProperty(t)&&Object.keys(s[t]).forEach((function(e){delete s[t][e],o[e]&&u(e)}))}function c(t){var e,r,i=!1;for(a.push(t),o[t]=!0,e=0;e=e}))}(e);for(var n,i=r(t).components.filter((function(t){return t.length>1})),a=1/0,o=0;o{var r,n;r=t,n=function(t,e,r,n,i){function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&&i.hasOwnProperty("default")?i.default:i;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function u(t,e){return h(t.source,e.source)||t.index-e.index}function c(t,e){return h(t.target,e.target)||t.index-e.index}function h(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:"top"===t.circularLinkType||"bottom"===e.circularLinkType?-1:1}function f(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function m(t){return p(t.target)}function g(t){return t.index}function y(t){return t.nodes}function v(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function _(t,e){return e(t)}var b=25,w=10;function T(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&&(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=re.source.column)}function M(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&&!Z(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&&!Z(t,e)?n+1:n})),r+n}function S(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r>1||i>1)}function E(t,e,r){return t.sort(I),t.forEach((function(n,i){var a=0;if(Z(n,r)&&S(n))n.circularPathData.verticalBuffer=a+n.width/2;else{for(var o=0;oa?s:a}n.circularPathData.verticalBuffer=a+n.width/2}})),t}function C(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&&(t.circularPathData={})})),E(t.links.filter((function(t){return"top"==t.circularLinkType})),r,a),E(t.links.filter((function(t){return"bottom"==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+w,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,Z(e,a)&&S(e))e.circularPathData.leftSmallArcRadius=w+e.width/2,e.circularPathData.leftLargeArcRadius=w+e.width/2,e.circularPathData.rightSmallArcRadius=w+e.width/2,e.circularPathData.rightLargeArcRadius=w+e.width/2,"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+b+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-b-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,u=t.links.filter((function(t){return t.source.column==s&&t.circularLinkType==l}));"bottom"==e.circularLinkType?u.sort(P):u.sort(L);var c=0;u.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.leftSmallArcRadius=w+e.width/2+c,e.circularPathData.leftLargeArcRadius=w+e.width/2+n*r+c),c+=t.width})),s=e.target.column,u=t.links.filter((function(t){return t.target.column==s&&t.circularLinkType==l})),"bottom"==e.circularLinkType?u.sort(O):u.sort(z),c=0,u.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.rightSmallArcRadius=w+e.width/2+c,e.circularPathData.rightLargeArcRadius=w+e.width/2+n*r+c),c+=t.width})),"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+b+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-b-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){return"top"==t.circularLinkType?"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 0 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 0 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 0 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 0 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY:"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 1 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 1 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 1 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 1 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY}(e);else{var h=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=h(e)}}))}function I(t,e){return D(t)==D(e)?"bottom"==t.circularLinkType?P(t,e):L(t,e):D(e)-D(t)}function L(t,e){return t.y0-e.y0}function P(t,e){return e.y0-t.y0}function z(t,e){return t.y1-e.y1}function O(t,e){return e.y1-t.y1}function D(t){return t.target.column-t.source.column}function R(t){return t.target.x0-t.source.x1}function F(t,e){var r=k(t),n=R(e)/Math.tan(r);return"up"==G(t)?t.y1+n:t.y1-n}function B(t,e){var r=k(t),n=R(e)/Math.tan(r);return"up"==G(t)?t.y1-n:t.y1+n}function N(t,e,r,n){t.links.forEach((function(i){if(!i.circular&&i.target.column-i.source.column>1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a<=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var u,c=s/(l+1),h=Math.pow(1-c,3),f=3*c*Math.pow(1-c,2),p=3*Math.pow(c,2)*(1-c),d=Math.pow(c,3),m=h*i.y0+f*i.y0+p*i.y1+d*i.y1,g=m-i.width/2,y=m+i.width/2;g>o.y0&&go.y0&&yo.y1)&&(u=y-o.y0+10,o=U(o,u,e,r),t.nodes.forEach((function(t){_(t,n)==_(o,n)||t.column!=o.column||t.y0o.y1&&U(t,u,e,r)})))}}))}}))}function j(t,e){return t.y0>e.y0&&t.y0e.y0&&t.y1e.y1}function U(t,e,r,n){return t.y0+e>=r&&t.y1+e<=n&&(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function V(t,e,r,n){t.nodes.forEach((function(i){n&&i.y+(i.y1-i.y0)>e&&(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return _(t.source,r)==_(i,r)})),o=a.length;o>1&&a.sort((function(t,e){if(!t.circular&&!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!H(t,e))return t.y1-e.y1;if(t.target.column>e.target.column){var r=B(e,t);return t.y1-r}if(e.target.column>t.target.column)return B(t,e)-e.y1}return t.circular&&!e.circular?"top"==t.circularLinkType?-1:1:e.circular&&!t.circular?"top"==e.circularLinkType?1:-1:t.circular&&e.circular?t.circularLinkType===e.circularLinkType&&"top"==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&&"bottom"==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:"top"==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if("bottom"==t.circularLinkType){for(var r=e+1,n=0;r1&&n.sort((function(t,e){if(!t.circular&&!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!H(t,e))return t.y0-e.y0;if(e.source.column0?"up":"down"}function Z(t,e){return _(t.source,e)==_(t.target,e)}t.sankeyCircular=function(){var t,n,a=0,_=0,k=1,A=1,S=24,E=g,I=o,L=y,P=v,z=32,O=2,D=null;function R(){var o={nodes:L.apply(null,arguments),links:P.apply(null,arguments)};(function(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,E);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;"object"!==(void 0===n?"undefined":l(n))&&(n=t.source=x(e,n)),"object"!==(void 0===i?"undefined":l(i))&&(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))})(o),function(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o0?r+b+w:r,bottom:n=n>0?n+b+w:n,left:a=a>0?a+b+w:a,right:i=i>0?i+b+w:i}}(i),c=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),i=k-a,o=A-_,s=i/(i+r.right+r.left),l=o/(o+r.top+r.bottom);return a=a*s+r.left,k=0==r.right?k:k*s,_=_*l+r.top,A*=l,t.nodes.forEach((function(t){t.x0=a+t.column*((k-a-S)/n),t.x1=t.x0+S})),l}(i,u);s*=c,i.links.forEach((function(t){t.width=t.value*s})),l.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==l.length-1&&1==e||0==t.depth&&1==e?(t.y0=A/2-t.value*s,t.y1=t.y0+t.value*s):t.partOfCycle?0==M(t,r)?(t.y0=A/2+n,t.y1=t.y0+t.value*s):"top"==t.circularLinkType?(t.y0=_+n,t.y1=t.y0+t.value*s):(t.y0=A-t.value*s-n,t.y1=t.y0+t.value*s):0==u.top||0==u.bottom?(t.y0=(A-_)/e*n,t.y1=t.y0+t.value*s):(t.y0=(A-_)/2-e/2+n,t.y1=t.y0+t.value*s)}))}))})(s),y();for(var u=1,c=o;c>0;--c)g(u*=.99,s),y();function g(t,r){var n=l.length;l.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if((i.sourceLinks.length||i.targetLinks.length)&&!(i.partOfCycle&&M(i,r)>0))if(0==o&&1==a)s=i.y1-i.y0,i.y0=A/2-s/2,i.y1=A/2+s/2;else if(o==n-1&&1==a)s=i.y1-i.y0,i.y0=A/2-s/2,i.y1=A/2+s/2;else{var l=e.mean(i.sourceLinks,m),u=e.mean(i.targetLinks,d),c=((l&&u?(l+u)/2:l||u)-p(i))*t;i.y0+=c,i.y1+=c}}))}))}function y(){l.forEach((function(e){var r,n,i,a=_,o=e.length;for(e.sort(h),i=0;i0&&(r.y0+=n,r.y1+=n),a=r.y1+t;if((n=a-t-A)>0)for(a=r.y0-=n,r.y1-=n,i=o-2;i>=0;--i)(n=(r=e[i]).y1+t-a)>0&&(r.y0-=n,r.y1-=n),a=r.y0}))}}(o,z,E),F(o);for(var s=0;s<4;s++)V(o,A,E),q(o,0,E),N(o,_,A,E),V(o,A,E),q(o,0,E);return function(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){"top"==t.circularLinkType?o=!0:"bottom"==t.circularLinkType&&(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),u=e.max(i,(function(t){return t.y1})),c=(n-r)/(u-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}(o,_,A),C(o,O,A,E),o}function F(t){t.nodes.forEach((function(t){t.sourceLinks.sort(c),t.targetLinks.sort(u)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return R.nodeId=function(t){return arguments.length?(E="function"==typeof t?t:s(t),R):E},R.nodeAlign=function(t){return arguments.length?(I="function"==typeof t?t:s(t),R):I},R.nodeWidth=function(t){return arguments.length?(S=+t,R):S},R.nodePadding=function(e){return arguments.length?(t=+e,R):t},R.nodes=function(t){return arguments.length?(L="function"==typeof t?t:s(t),R):L},R.links=function(t){return arguments.length?(P="function"==typeof t?t:s(t),R):P},R.size=function(t){return arguments.length?(a=_=0,k=+t[0],A=+t[1],R):[k-a,A-_]},R.extent=function(t){return arguments.length?(a=+t[0][0],k=+t[1][0],_=+t[0][1],A=+t[1][1],R):[[a,_],[k,A]]},R.iterations=function(t){return arguments.length?(z=+t,R):z},R.circularLinkGap=function(t){return arguments.length?(O=+t,R):O},R.nodePaddingRatio=function(t){return arguments.length?(n=+t,R):n},R.sortNodes=function(t){return arguments.length?(D=t,R):D},R.update=function(t){return T(t,E),F(t),t.links.forEach((function(t){t.circular&&(t.circularLinkType=t.y0+t.y1{e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}})),Nb=f(((t,e)=>{var r=Pb(),n=(Rp(),m(Dp)).interpolateNumber,i=v(),a=Db(),o=Fb(),s=Bb(),l=O(),u=q(),c=Qe(),h=le(),f=h.strTranslate,p=h.strRotate,d=Ix(),g=d.keyFun,y=d.repeat,x=d.unwrap,_=Se(),b=qt(),w=Me(),T=w.CAP_SHIFT,k=w.LINE_SPACING;function A(t,e,r){var n,i=x(e),u=i.trace,c=u.domain,f="h"===u.orientation,p=u.node.pad,d=u.node.thickness,m={justify:a.sankeyJustify,left:a.sankeyLeft,right:a.sankeyRight,center:a.sankeyCenter}[u.node.align],g=t.width*(c.x[1]-c.x[0]),y=t.height*(c.y[1]-c.y[0]),v=i._nodes,_=i._links,b=i.circular;(n=b?o.sankeyCircular().circularLinkGap(0):a.sankey()).iterations(s.sankeyIterations).size(f?[g,y]:[y,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodeAlign(m).nodes(v).links(_);var w,T,k,A=n();for(var M in n.nodePadding()o+d&&(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i})(v=A.nodes).forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n=i||(r=i-e.y0)>1e-6&&(e.y0+=r,e.y1+=r),i=e.y1+p}));n.update(A)}return{circular:b,key:r,trace:u,guid:h.randstr(),horizontal:f,width:g,height:y,nodePad:u.node.pad,nodeLineColor:u.node.line.color,nodeLineWidth:u.node.line.width,linkLineColor:u.link.line.color,linkLineWidth:u.link.line.width,linkArrowLength:u.link.arrowlen,valueFormat:u.valueformat,valueSuffix:u.valuesuffix,textFont:u.textfont,translateX:c.x[0]*t.width+t.margin.l,translateY:t.height-c.y[1]*t.height+t.margin.t,dragParallel:f?y:g,dragPerpendicular:f?g:y,arrangement:u.arrangement,sankey:n,graph:A,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function M(t,e,r){var n=l(e.color),i=l(e.hovercolor),a=e.source.label+"|"+e.target.label+"__"+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:a,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),tinyColorHoverHue:u.tinyRGB(i),tinyColorHoverAlpha:i.getAlpha(),linkPath:S,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,linkArrowLength:t.linkArrowLength,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function S(){return function(t){var e=t.linkArrowLength;if(t.link.circular)return function(t,e){var r="",n=t.width/2,i=t.circularPathData,a=i.sourceX+i.verticalBuffer0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-e)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-e)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-e)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-e)+" "+i.verticalRightInnerExtent,r+=a&&o?" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-e)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-e-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-e-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-e)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,r+=a&&o?" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-e+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-e)+" "+i.verticalRightInnerExtent:a?" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-e-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-e)+" "+i.verticalRightInnerExtent:" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-e)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-e)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-e)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-e)+" "+(i.targetY+n)+" L "+(i.targetX-e)+" "+(i.targetY+n)+(e>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}(t.link,e);var r=Math.abs((t.link.target.x0-t.link.source.x1)/2);e>r&&(e=r);var i=t.link.source.x1,a=t.link.target.x0-e,o=n(i,a),s=o(.5),l=o(.5),u=t.link.y0-t.link.width/2,c=t.link.y0+t.link.width/2,h=t.link.y1-t.link.width/2,f=t.link.y1+t.link.width/2,p="M"+i+","+u,d="C"+s+","+u+" "+l+","+h+" "+a+","+h,m="C"+l+","+f+" "+s+","+c+" "+i+","+c,g=e>0?"L"+(a+e)+","+(h+t.link.width/2):"";return p+d+(g+="L"+a+","+f)+m+"Z"}}function E(t,e){var r=l(e.color),n=s.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),c="node_"+e.pointNumber;return e.group&&(c=h.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:c,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,c].join("_"),interactionState:t.interactionState,figure:t}}function C(t){t.attr("transform",(function(t){return f(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function I(t){t.call(C)}function L(t,e){t.call(I),e.attr("d",S())}function P(t){t.attr("width",(function(t){return t.node.x1-t.node.x0})).attr("height",(function(t){return t.visibleHeight}))}function z(t){return t.link.width>1||t.linkLineWidth>0}function D(t){return f(t.translateX,t.translateY)+(t.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function R(t,e,r){t.on(".basic",null).on("mouseover.basic",(function(t){!t.interactionState.dragInProgress&&!t.partOfGroup&&(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on("mousemove.basic",(function(t){!t.interactionState.dragInProgress&&!t.partOfGroup&&(r.follow(this,t),t.interactionState.hovered=[this,t])})).on("mouseout.basic",(function(t){!t.interactionState.dragInProgress&&!t.partOfGroup&&(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on("click.basic",(function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),!t.interactionState.dragInProgress&&!t.partOfGroup&&r.select(this,t,e)}))}function F(t,e,n,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on("dragstart",(function(i){if("fixed"!==i.arrangement&&(h.ensureSingle(a._fullLayout._infolayer,"g","dragcover",(function(t){a._fullLayout._dragCover=t})),h.raiseToTop(this),i.interactionState.dragInProgress=i.node,N(i.node),i.interactionState.hovered&&(n.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),"snap"===i.arrangement)){var o=i.traceId+"|"+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,n){!function(t){for(var e=0;e0&&n.forceLayouts[e].alpha(0)}}(0,e,i,n)).stop()}(0,o,i),function(t,e,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,B(r,i)}}))}(t,e,i,o,a)}})).on("drag",(function(r){if("fixed"!==r.arrangement){var n=i.event.x,a=i.event.y;"snap"===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):("freeform"===r.arrangement&&(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),N(r.node),"snap"!==r.arrangement&&(r.sankey.update(r.graph),L(t.filter(j(r)),e))}})).on("dragend",(function(t){if("fixed"!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e{var r=v(),n=le(),i=n.numberFormat,a=Nb(),o=Or(),s=q(),l=Bb().cn,u=n._;function c(t){return""!==t}function h(t,e){return t.filter((function(t){return t.key===e.traceId}))}function f(t,e){r.select(t).select("path").style("fill-opacity",e),r.select(t).select("rect").style("fill-opacity",e)}function p(t){r.select(t).select("text.name").style("fill","black")}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function m(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function g(t,e,r){e&&r&&h(r,e).selectAll("."+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r){e&&r&&h(r,e).selectAll("."+l.sankeyLink).filter(d(e)).call(_.bind(0,e,r,!1))}function x(t,e,r,n){n.style("fill",(function(t){if(!t.link.concentrationscale)return t.tinyColorHoverHue})).style("fill-opacity",(function(t){if(!t.link.concentrationscale)return t.tinyColorHoverAlpha})),n.each((function(r){var n=r.link.label;""!==n&&h(e,t).selectAll("."+l.sankeyLink).filter((function(t){return t.link.label===n})).style("fill",(function(t){if(!t.link.concentrationscale)return t.tinyColorHoverHue})).style("fill-opacity",(function(t){if(!t.link.concentrationscale)return t.tinyColorHoverAlpha}))})),r&&h(e,t).selectAll("."+l.sankeyNode).filter(m(t)).call(g)}function _(t,e,r,n){n.style("fill",(function(t){return t.tinyColorHue})).style("fill-opacity",(function(t){return t.tinyColorAlpha})),n.each((function(r){var n=r.link.label;""!==n&&h(e,t).selectAll("."+l.sankeyLink).filter((function(t){return t.link.label===n})).style("fill",(function(t){return t.tinyColorHue})).style("fill-opacity",(function(t){return t.tinyColorAlpha}))})),r&&h(e,t).selectAll(l.sankeyNode).filter(m(t)).call(y)}function b(t,e){var r=t.hoverlabel||{},i=n.nestedProperty(r,e).get();return!Array.isArray(i)&&i}e.exports=function(t,e){for(var n=t._fullLayout,h=n._paper,d=n._size,m=0;m"),color:b(l,"bgcolor")||s.addOpacity(m.color,1),borderColor:b(l,"bordercolor"),fontFamily:b(l,"font.family"),fontSize:b(l,"font.size"),fontColor:b(l,"font.color"),fontWeight:b(l,"font.weight"),fontStyle:b(l,"font.style"),fontVariant:b(l,"font.variant"),fontTextcase:b(l,"font.textcase"),fontLineposition:b(l,"font.lineposition"),fontShadow:b(l,"font.shadow"),nameLength:b(l,"namelength"),textAlign:b(l,"align"),idealAlign:r.event.x"),color:b(s,"bgcolor")||a.tinyColorHue,borderColor:b(s,"bordercolor"),fontFamily:b(s,"font.family"),fontSize:b(s,"font.size"),fontColor:b(s,"font.color"),fontWeight:b(s,"font.weight"),fontStyle:b(s,"font.style"),fontVariant:b(s,"font.variant"),fontTextcase:b(s,"font.textcase"),fontLineposition:b(s,"font.lineposition"),fontShadow:b(s,"font.shadow"),nameLength:b(s,"namelength"),textAlign:b(s,"align"),idealAlign:"left",hovertemplate:s.hovertemplate,hovertemplateLabels:v,eventData:[a.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});f(w,.85),p(w)}}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&&(r.select(e).call(y,i,a),"skip"!==i.node.trace.node.hoverinfo&&(i.node.fullData=i.node.trace,t.emit("plotly_unhover",{event:r.event,points:[i.node]})),o.loneUnhover(n._hoverlayer.node()))},select:function(e,n,i){var a=n.node;a.originalEvent=r.event,t._hoverdata=[a],r.select(e).call(y,n,i),o.click(t,{target:!0})}}})}})),Ub=f((t=>{var e=Lt().overrideAll,r=we().getModuleCalcData,n=jb(),i=B(),a=pr(),o=fr(),s=En().prepSelect,l=le(),u=qt(),c="sankey";function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,c="pan"===n.dragmode?"move":"crosshair",h=r._bgRect;if(h&&"pan"!==i&&"zoom"!==i){a(h,c);var f={_id:"x",c2p:l.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:"y",c2p:l.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:h.node(),plotinfo:{id:e,xaxis:f,yaxis:p,fillRangeItems:l.noop},subplot:e,xaxes:[f],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r{e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a{e.exports={attributes:kb(),supplyDefaults:Ab(),calc:Sb(),plot:jb(),moduleType:"trace",name:"sankey",basePlotModule:Ub(),selectPoints:Vb(),categories:["noOpacity"],meta:{}}})),Hb=f(((t,e)=>{e.exports=qb()})),Gb=f((t=>{var e=ke();t.name="indicator",t.plot=function(r,n,i,a){e.plotBasePlot(t.name,r,n,i,a)},t.clean=function(r,n,i,a){e.cleanBasePlot(t.name,r,n,i,a)}})),Zb=f(((t,e)=>{var r=D().extendFlat,n=D().extendDeep,i=Lt().overrideAll,a=R(),o=V(),s=ka().attributes,l=Ie(),u=ye().templatedArray,c=Al(),h=Ce().descriptionOnlyNumbers,f=a({editType:"plot",colorEditType:"plot"}),p={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:o.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},d={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},m=u("step",n({},p,{range:d}));e.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:s({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:r({},f,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:h("value")},font:r({},f,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:h("value")},increasing:{symbol:{valType:"string",dflt:c.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:c.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:c.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:c.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:r({},f,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:n({},p,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:o.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:i({range:d,visible:r({},l.visible,{dflt:!0}),tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:r({},l.ticks,{dflt:"outside"}),ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:a({}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,editType:"plot"},"plot"),steps:m,threshold:{line:{color:r({},p.line.color,{}),width:r({},p.line.width,{dflt:1}),editType:"plot"},thickness:r({},p.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}})),Wb=f(((t,e)=>{e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}})),Yb=f(((t,e)=>{var r=le(),n=Zb(),i=ka().defaults,a=ye(),o=Ne(),s=Wb(),l=Re(),u=Fe(),c=je(),h=Ue();function f(t,e){function i(i,a){return r.coerce(t,e,n.gauge.steps,i,a)}i("color"),i("line.color"),i("line.width"),i("range"),i("thickness")}e.exports={supplyDefaults:function(t,e,p,d){function m(i,a){return r.coerce(t,e,n,i,a)}i(e,d,m),m("mode"),e._hasNumber=-1!==e.mode.indexOf("number"),e._hasDelta=-1!==e.mode.indexOf("delta"),e._hasGauge=-1!==e.mode.indexOf("gauge");var g=m("value");e._range=[0,"number"==typeof g?1.5*g:1];var y,v,x=new Array(2);if(e._hasNumber){m("number.valueformat");var _=r.extendFlat({},d.font);_.size=void 0,r.coerceFont(m,"number.font",_),void 0===e.number.font.size&&(e.number.font.size=s.defaultNumberFontSize,x[0]=!0),m("number.prefix"),m("number.suffix"),y=e.number.font.size}if(e._hasDelta){var b=r.extendFlat({},d.font);b.size=void 0,r.coerceFont(m,"delta.font",b),void 0===e.delta.font.size&&(e.delta.font.size=(e._hasNumber?.5:1)*(y||s.defaultNumberFontSize),x[1]=!0),m("delta.reference",e.value),m("delta.relative"),m("delta.valueformat",e.delta.relative?"2%":""),m("delta.increasing.symbol"),m("delta.increasing.color"),m("delta.decreasing.symbol"),m("delta.decreasing.color"),m("delta.position"),m("delta.prefix"),m("delta.suffix"),v=e.delta.font.size}e._scaleNumbers=(!e._hasNumber||x[0])&&(!e._hasDelta||x[1])||!1;var w,T,k,A,M=r.extendFlat({},d.font);function S(t,e){return r.coerce(w,T,n.gauge,t,e)}function E(t,e){return r.coerce(k,A,n.gauge.axis,t,e)}if(M.size=.25*(y||v||s.defaultNumberFontSize),r.coerceFont(m,"title.font",M),m("title.text"),e._hasGauge){(w=t.gauge)||(w={}),T=a.newContainer(e,"gauge"),S("shape"),(e._isBullet="bullet"===e.gauge.shape)||m("title.align","center"),(e._isAngular="angular"===e.gauge.shape)||m("align","center"),S("bgcolor",d.paper_bgcolor),S("borderwidth"),S("bordercolor"),S("bar.color"),S("bar.line.color"),S("bar.line.width"),S("bar.thickness",s.valueThickness*("bullet"===e.gauge.shape?.5:1)),o(w,T,{name:"steps",handleItemDefaults:f}),S("threshold.value"),S("threshold.thickness"),S("threshold.line.width"),S("threshold.line.color"),k={},w&&(k=w.axis||{}),A=a.newContainer(T,"axis"),E("visible"),e._range=E("range",e._range);var C={font:d.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};l(k,A,E,"linear"),h(k,A,E,"linear",C),c(k,A,E,"linear",C),u(k,A,E,C)}else m("title.align","center"),m("align","center"),e._isAngular=e._isBullet=!1;e._length=null}}})),Xb=f(((t,e)=>{e.exports={calc:function(t,e){var r=[],n=e.value;"number"!=typeof e._lastValue&&(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&&"number"==typeof e.delta.reference&&(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}})),$b=f(((t,e)=>{var r=v(),n=(Rp(),m(Dp)).interpolate,i=(Rp(),m(Dp)).interpolateNumber,a=le(),o=a.strScale,s=a.strTranslate,l=a.rad2deg,u=Me().MID_SHIFT,c=Qe(),h=Wb(),f=Se(),p=ir(),d=Ti(),g=ki(),y=Ie(),x=q(),_={left:"start",center:"middle",right:"end"},b={left:0,center:.5,right:1},w=/[yzafpnµmkMGTPEZY]/;function T(t){return t&&t.duration>0}function k(t){t.each((function(t){x.stroke(r.select(this),t.line.color)})).each((function(t){x.fill(r.select(this),t.color)})).style("stroke-width",(function(t){return t.line.width}))}function A(t,e,r){var n=t._fullLayout,i=a.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},e),o={type:"linear",_id:"x"+e._id},s={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function l(t,e){return a.coerce(i,o,y,t,e)}return d(i,o,l,s,n),g(i,o,l,s),o}function M(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+"x"+r]}function S(t,e,n,i){var a=document.createElementNS("http://www.w3.org/2000/svg","text"),o=r.select(a);return o.text(t).attr("x",0).attr("y",0).attr("text-anchor",n).attr("data-unformatted",t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function E(t,e,r,n,i,o){var s="_cache"+e;t[s]&&t[s].key===i||(t[s]={key:i,value:r});var l=a.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,d,m){var g,y=t._fullLayout;T(d)&&m&&(g=m()),a.makeTraceGroups(y._indicatorlayer,e,"trace").each((function(e){var m,v,C,I,L,P=e[0].trace,z=r.select(this),O=P._hasGauge,D=P._isAngular,R=P._isBullet,F=P.domain,B={w:y._size.w*(F.x[1]-F.x[0]),h:y._size.h*(F.y[1]-F.y[0]),l:y._size.l+y._size.w*F.x[0],r:y._size.r+y._size.w*(1-F.x[1]),t:y._size.t+y._size.h*(1-F.y[1]),b:y._size.b+y._size.h*F.y[0]},N=B.l+B.w/2,j=B.t+B.h/2,U=Math.min(B.w/2,B.h),V=h.innerRadius*U,q=P.align||"center";if(v=j,O){if(D&&(m=N,v=j+U/2,C=function(t){return function(t,e){return[e/Math.sqrt(t.width/2*(t.width/2)+t.height*t.height),t,e]}(t,.9*V)}),R){var H=h.bulletPadding,G=1-h.bulletNumberDomainSize+H;m=B.l+(G+(1-G)*b[q])*B.w,C=function(t){return M(t,(h.bulletNumberDomainSize-H)*B.w,B.h)}}}else m=B.l+b[q]*B.w,C=function(t){return M(t,B.w,B.h)};!function(t,e,n,l){var u,h,d,m=n[0].trace,g=l.numbersX,y=l.numbersY,v=m.align||"center",k=_[v],M=l.transitionOpts,C=l.onComplete,I=a.ensureSingle(e,"g","numbers"),L=[];m._hasNumber&&L.push("number"),m._hasDelta&&(L.push("delta"),"left"===m.delta.position&&L.reverse());var P=I.selectAll("text").data(L);function z(e,r,n,i){if(!e.match("s")||n>=0==i>=0||r(n).slice(-1).match(w)||r(i).slice(-1).match(w))return r;var a=e.slice().replace("s","f").replace(/\d+/,(function(t){return parseInt(t)-1})),o=A(t,{tickformat:a});return function(t){return Math.abs(t)<1?p.tickText(o,t).text:r(t)}}P.enter().append("text"),P.attr("text-anchor",(function(){return k})).attr("class",(function(t){return t})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),P.exit().remove();var O,D=m.mode+m.align;if(m._hasDelta&&(O=function(){var e=A(t,{tickformat:m.delta.valueformat},m._range);e.setScale(),p.prepTicks(e);var a=function(t){return p.tickText(e,t).text},o=m.delta.suffix,s=m.delta.prefix,l=function(t){return m.delta.relative?t.relativeDelta:t.delta},u=function(t,e){return 0===t||"number"!=typeof t||isNaN(t)?"-":(t>0?m.delta.increasing.symbol:m.delta.decreasing.symbol)+s+e(t)+o},d=function(t){return t.delta>=0?m.delta.increasing.color:m.delta.decreasing.color};void 0===m._deltaLastValue&&(m._deltaLastValue=l(n[0]));var g=I.select("text.delta");function y(){g.text(u(l(n[0]),a)).call(x.fill,d(n[0])).call(f.convertToTspans,t)}return g.call(c.font,m.delta.font).call(x.fill,d({delta:m._deltaLastValue})),T(M)?g.transition().duration(M.duration).ease(M.easing).tween("text",(function(){var t=r.select(this),e=l(n[0]),o=m._deltaLastValue,s=z(m.delta.valueformat,a,o,e),c=i(o,e);return m._deltaLastValue=e,function(e){t.text(u(c(e),s)),t.call(x.fill,d({delta:c(e)}))}})).each("end",(function(){y(),C&&C()})).each("interrupt",(function(){y(),C&&C()})):y(),h=S(u(l(n[0]),a),m.delta.font,k,t),g}(),D+=m.delta.position+m.delta.font.size+m.delta.font.family+m.delta.valueformat,D+=m.delta.increasing.symbol+m.delta.decreasing.symbol,d=h),m._hasNumber&&(function(){var e=A(t,{tickformat:m.number.valueformat},m._range);e.setScale(),p.prepTicks(e);var a=function(t){return p.tickText(e,t).text},o=m.number.suffix,s=m.number.prefix,l=I.select("text.number");function h(){var e="number"==typeof n[0].y?s+a(n[0].y)+o:"-";l.text(e).call(c.font,m.number.font).call(f.convertToTspans,t)}T(M)?l.transition().duration(M.duration).ease(M.easing).each("end",(function(){h(),C&&C()})).each("interrupt",(function(){h(),C&&C()})).attrTween("text",(function(){var t=r.select(this),e=i(n[0].lastY,n[0].y);m._lastValue=n[0].y;var l=z(m.number.valueformat,a,n[0].lastY,n[0].y);return function(r){t.text(s+l(e(r))+o)}})):h(),u=S(s+a(n[0].y)+o,m.number.font,k,t)}(),D+=m.number.font.size+m.number.font.family+m.number.valueformat+m.number.suffix+m.number.prefix,d=u),m._hasDelta&&m._hasNumber){var R,F,B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=[(h.left+h.right)/2,(h.top+h.bottom)/2],j=.75*m.delta.font.size;"left"===m.delta.position&&(R=E(m,"deltaPos",0,-1*(u.width*b[m.align]+h.width*(1-b[m.align])+j),D,Math.min),F=B[1]-N[1],d={width:u.width+h.width+j,height:Math.max(u.height,h.height),left:h.left+R,right:u.right,top:Math.min(u.top,h.top+F),bottom:Math.max(u.bottom,h.bottom+F)}),"right"===m.delta.position&&(R=E(m,"deltaPos",0,u.width*(1-b[m.align])+h.width*b[m.align]+j,D,Math.max),F=B[1]-N[1],d={width:u.width+h.width+j,height:Math.max(u.height,h.height),left:u.left,right:h.right+R,top:Math.min(u.top,h.top+F),bottom:Math.max(u.bottom,h.bottom+F)}),"bottom"===m.delta.position&&(R=null,F=h.height,d={width:Math.max(u.width,h.width),height:u.height+h.height,left:Math.min(u.left,h.left),right:Math.max(u.right,h.right),top:u.bottom-u.height,bottom:u.bottom+h.height}),"top"===m.delta.position&&(R=null,F=u.top,d={width:Math.max(u.width,h.width),height:u.height+h.height,left:Math.min(u.left,h.left),right:Math.max(u.right,h.right),top:u.bottom-u.height-h.height,bottom:u.bottom}),O.attr({dx:R,dy:F})}(m._hasNumber||m._hasDelta)&&I.attr("transform",(function(){var t=l.numbersScaler(d);D+=t[2];var e,r=E(m,"numbersScale",1,t[0],D,Math.min);m._scaleNumbers||(r=1),e=m._isAngular?y-r*d.bottom:y-r*(d.top+d.bottom)/2,m._numbersTop=r*d.top+e;var n=d[v];"center"===v&&(n=(d.left+d.right)/2);var i=g-r*n;return i=E(m,"numbersTranslate",0,i,D,Math.max),s(i,e)+o(r)}))}(t,z,e,{numbersX:m,numbersY:v,numbersScaler:C,transitionOpts:d,onComplete:g}),O&&(I={range:P.gauge.axis.range,color:P.gauge.bgcolor,line:{color:P.gauge.bordercolor,width:0},thickness:1},L={range:P.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:P.gauge.bordercolor,width:P.gauge.borderwidth},thickness:1});var Z=z.selectAll("g.angular").data(D?e:[]);Z.exit().remove();var W=z.selectAll("g.angularaxis").data(D?e:[]);W.exit().remove(),D&&function(t,e,i,a){var o,c,h,f,d=i[0].trace,m=a.size,g=a.radius,y=a.innerRadius,v=a.gaugeBg,x=a.gaugeOutline,_=[m.l+m.w/2,m.t+m.h/2+g/2],b=a.gauge,w=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function C(t){var e=d.gauge.axis.range[0],r=(t-e)/(d.gauge.axis.range[1]-e)*Math.PI-E;return r<-E?-E:r>E?E:r}function I(t){return r.svg.arc().innerRadius((y+g)/2-t/2*(g-y)).outerRadius((y+g)/2+t/2*(g-y)).startAngle(-E)}function L(t){t.attr("d",(function(t){return I(t.thickness).startAngle(C(t.range[0])).endAngle(C(t.range[1]))()}))}b.enter().append("g").classed("angular",!0),b.attr("transform",s(_[0],_[1])),w.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),w.selectAll("g.xangularaxistick,path,text").remove(),(o=A(t,d.gauge.axis)).type="linear",o.range=d.gauge.axis.range,o._id="xangularaxis",o.ticklabeloverflow="allow",o.setScale();var P=function(t){return(o.range[0]-t.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},z={},O=p.makeLabelFns(o,0).labelStandoff;z.xFn=function(t){var e=P(t);return Math.cos(e)*O},z.yFn=function(t){var e=P(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(O+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},z.anchorFn=function(t){var e=P(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},z.heightFn=function(t,e,r){var n=P(t);return-.5*(1+Math.sin(n))*r};var D=function(t){return s(_[0]+g*Math.cos(t),_[1]-g*Math.sin(t))};h=function(t){return D(P(t))};if(c=p.calcTicks(o),f=p.getTickSigns(o)[2],o.visible){f="inside"===o.ticks?-1:1;var R=(o.linewidth||1)/2;p.drawTicks(t,o,{vals:c,layer:w,path:"M"+f*R+",0h"+f*o.ticklen,transFn:function(t){var e=P(t);return D(e)+"rotate("+-l(e)+")"}}),p.drawLabels(t,o,{vals:c,layer:w,transFn:h,labelFns:z})}var F=[v].concat(d.gauge.steps),B=b.selectAll("g.bg-arc").data(F);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(L).call(k),B.exit().remove();var N=I(d.gauge.bar.thickness),j=b.selectAll("g.value-arc").data([d.gauge.bar]);j.enter().append("g").classed("value-arc",!0).append("path");var U=j.select("path");T(M)?(U.transition().duration(M.duration).ease(M.easing).each("end",(function(){S&&S()})).each("interrupt",(function(){S&&S()})).attrTween("d",function(t,e,r){return function(){var i=n(e,r);return function(e){return t.endAngle(i(e))()}}}(N,C(i[0].lastY),C(i[0].y))),d._lastValue=i[0].y):U.attr("d","number"==typeof i[0].y?N.endAngle(C(i[0].y)):"M0,0Z"),U.call(k),j.exit().remove(),F=[];var V=d.gauge.threshold.value;(V||0===V)&&F.push({range:[V,V],color:d.gauge.threshold.color,line:{color:d.gauge.threshold.line.color,width:d.gauge.threshold.line.width},thickness:d.gauge.threshold.thickness});var q=b.selectAll("g.threshold-arc").data(F);q.enter().append("g").classed("threshold-arc",!0).append("path"),q.select("path").call(L).call(k),q.exit().remove();var H=b.selectAll("g.gauge-outline").data([x]);H.enter().append("g").classed("gauge-outline",!0).append("path"),H.select("path").call(L).call(k),H.exit().remove()}(t,0,e,{radius:U,innerRadius:V,gauge:Z,layer:W,size:B,gaugeBg:I,gaugeOutline:L,transitionOpts:d,onComplete:g});var Y=z.selectAll("g.bullet").data(R?e:[]);Y.exit().remove();var X=z.selectAll("g.bulletaxis").data(R?e:[]);X.exit().remove(),R&&function(t,e,r,n){var i,a,o,l,u,c=r[0].trace,f=n.gauge,d=n.layer,m=n.gaugeBg,g=n.gaugeOutline,y=n.size,v=c.domain,_=n.transitionOpts,b=n.onComplete;f.enter().append("g").classed("bullet",!0),f.attr("transform",s(y.l,y.t)),d.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),d.selectAll("g.xbulletaxistick,path,text").remove();var w=y.h,M=c.gauge.bar.thickness*w,S=v.x[0],E=v.x[0]+(v.x[1]-v.x[0])*(c._hasNumber||c._hasDelta?1-h.bulletNumberDomainSize:1);function C(t){t.attr("width",(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr("x",(function(t){return i.c2p(t.range[0])})).attr("y",(function(t){return.5*(1-t.thickness)*w})).attr("height",(function(t){return t.thickness*w}))}(i=A(t,c.gauge.axis))._id="xbulletaxis",i.domain=[S,E],i.setScale(),a=p.calcTicks(i),o=p.makeTransTickFn(i),l=p.getTickSigns(i)[2],u=y.t+y.h,i.visible&&(p.drawTicks(t,i,{vals:"inside"===i.ticks?p.clipEnds(i,a):a,layer:d,path:p.makeTickPath(i,u,l),transFn:o}),p.drawLabels(t,i,{vals:a,layer:d,transFn:o,labelFns:p.makeLabelFns(i,u)}));var I=[m].concat(c.gauge.steps),L=f.selectAll("g.bg-bullet").data(I);L.enter().append("g").classed("bg-bullet",!0).append("rect"),L.select("rect").call(C).call(k),L.exit().remove();var P=f.selectAll("g.value-bullet").data([c.gauge.bar]);P.enter().append("g").classed("value-bullet",!0).append("rect"),P.select("rect").attr("height",M).attr("y",(w-M)/2).call(k),T(_)?P.select("rect").transition().duration(_.duration).ease(_.easing).each("end",(function(){b&&b()})).each("interrupt",(function(){b&&b()})).attr("width",Math.max(0,i.c2p(Math.min(c.gauge.axis.range[1],r[0].y)))):P.select("rect").attr("width","number"==typeof r[0].y?Math.max(0,i.c2p(Math.min(c.gauge.axis.range[1],r[0].y))):0),P.exit().remove();var z=r.filter((function(){return c.gauge.threshold.value||0===c.gauge.threshold.value})),O=f.selectAll("g.threshold-bullet").data(z);O.enter().append("g").classed("threshold-bullet",!0).append("line"),O.select("line").attr("x1",i.c2p(c.gauge.threshold.value)).attr("x2",i.c2p(c.gauge.threshold.value)).attr("y1",(1-c.gauge.threshold.thickness)/2*w).attr("y2",(1-(1-c.gauge.threshold.thickness)/2)*w).call(x.stroke,c.gauge.threshold.line.color).style("stroke-width",c.gauge.threshold.line.width),O.exit().remove();var D=f.selectAll("g.gauge-outline").data([g]);D.enter().append("g").classed("gauge-outline",!0).append("rect"),D.select("rect").call(C).call(k),D.exit().remove()}(t,0,e,{gauge:Y,layer:X,size:B,gaugeBg:I,gaugeOutline:L,transitionOpts:d,onComplete:g});var $=z.selectAll("text.title").data(e);$.exit().remove(),$.enter().append("text").classed("title",!0),$.attr("text-anchor",(function(){return R?_.right:_[P.title.align]})).text(P.title.text).call(c.font,P.title.font).call(f.convertToTspans,t),$.attr("transform",(function(){var t,e=B.l+B.w*b[P.title.align],r=h.titlePadding,n=c.bBox($.node());return O?(D&&(t=P.gauge.axis.visible?c.bBox(W.node()).top-r-n.bottom:B.t+B.h/2-U/2-n.bottom-r),R&&(t=v-(n.top+n.bottom)/2,e=B.l-h.bulletPadding*B.w)):t=P._numbersTop-r-n.bottom,s(e,t)}))}))}})),Jb=f(((t,e)=>{e.exports={moduleType:"trace",name:"indicator",basePlotModule:Gb(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:Zb(),supplyDefaults:Yb().supplyDefaults,calc:Xb().calc,plot:$b(),meta:{}}})),Kb=f(((t,e)=>{e.exports=Jb()})),Qb=f(((t,e)=>{var r=_n(),n=D().extendFlat,i=Lt().overrideAll,a=R(),o=ka().attributes,s=Ce().descriptionOnlyNumbers;e.exports=i({domain:o({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:s("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:n({},r.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:n({},a({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:s("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:n({},r.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:n({},a({arrayOk:!0}))}},"calc","from-root")})),tw=f(((t,e)=>{var r=le(),n=Qb(),i=ka().defaults;e.exports=function(t,e,a,o){function s(i,a){return r.coerce(t,e,n,i,a)}i(e,o,s),s("columnwidth"),s("header.values"),s("header.format"),s("header.align"),s("header.prefix"),s("header.suffix"),s("header.height"),s("header.line.width"),s("header.line.color"),s("header.fill.color"),r.coerceFont(s,"header.font",o.font),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s{var r=Ix().wrap;e.exports=function(){return r({})}})),rw=f(((t,e)=>{e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}})),nw=f(((t,e)=>{var r=rw(),n=D().extendFlat,i=T(),a=S().isTypedArray,o=S().isArrayOrTypedArray;function s(t){if(o(t)){for(var e=0,r=0;r=e||u===t.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=u+1,a=0);return n}e.exports=function(t,e){var a=u(e.cells.values),d=function(t){return t.slice(e.header.values.length,t.length)},m=u(e.header.values);m.length&&!m[0].length&&(m[0]=[""],m=u(m));var g=m.concat(d(a).map((function(){return c((m[0]||[""]).length)}))),y=e.domain,v=Math.floor(t._fullLayout._size.w*(y.x[1]-y.x[0])),x=Math.floor(t._fullLayout._size.h*(y.y[1]-y.y[0])),_=e.header.values.length?g[0].map((function(){return e.header.height})):[r.emptyHeaderHeight],b=a.length?a[0].map((function(){return e.cells.height})):[],w=_.reduce(l,0),T=p(b,x-w+r.uplift),k=f(p(_,w),[]),A=f(T,k),M={},S=e._fullInput.columnorder;o(S)&&(S=Array.from(S)),S=S.concat(d(a.map((function(t,e){return e}))));var E=g.map((function(t,r){var n=o(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return i(n)?Number(n):1})),C=E.reduce(l,0);E=E.map((function(t){return t/C*v}));var I=Math.max(s(e.header.line.width),s(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:y.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-y.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:I,height:x,columnOrder:S,groupHeight:x,rowBlocks:A,headerRowBlocks:k,scrollY:0,cells:n({},e.cells,{values:a}),headerCells:n({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+"__"+M[t],label:t,specIndex:e,xIndex:S[e],xScale:h,x:void 0,calcdata:void 0,columnWidth:E[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=h(t)})),L}})),iw=f((t=>{var e=D().extendFlat;t.splitToPanels=function(t){var r=[0,0],n=e({},t,{key:"header",type:"header",page:0,prevPages:r,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:e({},t.calcdata,{cells:t.calcdata.headerCells})});return[e({},t,{key:"cells1",type:"cells",page:0,prevPages:r,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),e({},t,{key:"cells2",type:"cells",page:1,prevPages:r,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n]},t.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0;return[r,e?r+e.rows.length:0]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+("string"==typeof r&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}})),aw=f(((t,e)=>{var r=rw(),n=v(),i=le(),a=i.numberFormat,o=Ix(),s=Qe(),l=Se(),u=le().raiseToTop,c=le().strTranslate,h=le().cancelTransition,f=nw(),p=iw(),d=q();function m(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return"clip"+t._fullLayout._uid+"_scrollAreaBottomClip_"+e.key}function y(t,e){return"clip"+t._fullLayout._uid+"_columnBoundaryClippath_"+e.calcdata.key+"_"+e.specIndex}function x(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function _(t,e,i){var a=t.selectAll("."+r.cn.scrollbarKit).data(o.repeat,o.keyFun);a.enter().append("g").classed(r.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),a.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return R(e,e.length-1)+(e.length?F(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-E(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,r.goldenRatio*r.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr("transform",(function(t){var e=t.width+r.scrollbarWidth/2+r.scrollbarOffset;return c(e,E(t))}));var s=a.selectAll("."+r.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append("g").classed(r.cn.scrollbar,!0);var l=s.selectAll("."+r.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append("g").classed(r.cn.scrollbarSlider,!0),l.attr("transform",(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll("."+r.cn.scrollbarGlyph).data(o.repeat,o.keyFun);u.enter().append("line").classed(r.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",r.scrollbarWidth).attr("stroke-linecap","round").attr("y1",r.scrollbarWidth/2),u.attr("y2",(function(t){return t.scrollbarState.barLength-r.scrollbarWidth/2})).attr("stroke-opacity",(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||i?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(r.scrollbarHideDelay).duration(r.scrollbarHideDuration).attr("stroke-opacity",0);var h=s.selectAll("."+r.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);h.enter().append("line").classed(r.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",r.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",(function(r){var i=n.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=i-a.top,l=n.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY<=s&&s<=o.bottomY||I(e,t,null,l(s-o.barLength/2))(r)})).call(n.behavior.drag().origin((function(t){return n.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on("drag",I(e,t)).on("dragend",(function(){}))),h.attr("y2",(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&&(u.remove(),h.remove())}function b(t,e,i,a){var l=function(t){var e=t.selectAll("."+r.cn.columnCells).data(o.repeat,o.keyFun);return e.enter().append("g").classed(r.cn.columnCells,!0),e.exit().remove(),e}(i),u=function(t){var e=t.selectAll("."+r.cn.columnCell).data(p.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append("g").classed(r.cn.columnCell,!0),e.exit().remove(),e}(l);!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:k(r.size,n,e),color:k(r.color,n,e),family:k(r.family,n,e),weight:k(r.weight,n,e),style:k(r.style,n,e),variant:k(r.variant,n,e),textcase:k(r.textcase,n,e),lineposition:k(r.lineposition,n,e),shadow:k(r.shadow,n,e)};t.rowNumber=t.key,t.align=k(t.calcdata.cells.align,n,e),t.cellBorderWidth=k(t.calcdata.cells.line.width,n,e),t.font=i}))}(u);var c=function(t){var e=t.selectAll("."+r.cn.cellRect).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append("rect").classed(r.cn.cellRect,!0),e}(u);!function(t){t.attr("width",(function(t){return t.column.columnWidth})).attr("stroke-width",(function(t){return t.cellBorderWidth})).each((function(t){var e=n.select(this);d.stroke(e,k(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),d.fill(e,k(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(c);var h=function(t){var e=t.selectAll("."+r.cn.cellTextHolder).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append("g").classed(r.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),e}(u),f=function(t){var e=t.selectAll("."+r.cn.cellText).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append("text").classed(r.cn.cellText,!0).style("cursor",(function(){return"auto"})).on("mousedown",(function(){n.event.stopPropagation()})),e}(h);(function(t){t.each((function(t){s.font(n.select(this),t.font)}))})(f),w(f,e,a,t),D(u)}function w(t,e,i,o){t.text((function(t){var e=t.column.specIndex,n=t.rowNumber,i=t.value,o="string"==typeof i,s=o&&i.match(/
/i),l=!o||s;t.mayHaveMarkup=o&&i.match(/[<&>]/);var u=function(t){return"string"==typeof t&&t.match(r.latexCheck)}(i);t.latex=u;var c,h,f=u?"":k(t.calcdata.cells.prefix,e,n)||"",p=u?"":k(t.calcdata.cells.suffix,e,n)||"",d=u?null:k(t.calcdata.cells.format,e,n)||null,m=f+(d?a(d)(t.value):t.value)+p;if(t.wrappingNeeded=!t.wrapped&&!l&&!u&&(c=T(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===c?T(m):c),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var g=(" "===r.wrapSplitCharacter?m.replace(/i&&n.push(a),i+=l}return n}(i,l,s);1===u.length&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr("transform",(function(t){var e=R(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&&(L(t,r,e,u,n.prevPages,n,0),L(t,r,e,u,n.prevPages,n,1),_(r,t))}}function I(t,e,i,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),u=i||s.scrollbarState.dragMultiplier,c=s.scrollY;s.scrollY=void 0===a?s.scrollY+u*n.event.dy:a;var h=l.selectAll("."+r.cn.yColumn).selectAll("."+r.cn.columnBlock).filter(M);return C(t,h,l),s.scrollY===c}}function L(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&&n[e]!==i[e]}));b(t,e,a,r),i[o]=n[o]})))}function P(t,e,i,a){return function(){var o=n.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll("tspan.line").each((function(t,r){e[r].width=this.getComputedTextLength()}));var n,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],u=0,c=t.column.columnWidth-2*r.cellPad;for(t.value="";s.length;)u+(i=(n=s.shift()).width+a)>c&&(t.value+=l.join(r.wrapSpacer)+r.lineBreaker,l=[],u=0),l.push(n.text),u+=i;u&&(t.value+=l.join(r.wrapSpacer)),t.wrapped=!0})),o.selectAll("tspan.line").remove(),w(o.select("."+r.cn.cellText),i,t,a),n.select(e.parentNode.parentNode).call(D)}}function z(t,e,i,a,o){return function(){if(!o.settledY){var s=n.select(e.parentNode),l=N(o),u=o.key-l.firstRowIndex,h=l.rows[u].rowHeight,f=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*r.cellPad:h,p=Math.max(f,h);p-l.rows[u].rowHeight&&(l.rows[u].rowHeight=p,t.selectAll("."+r.cn.columnCell).call(D),C(null,t.filter(M),0),_(i,a,!0)),s.attr("transform",(function(){var t=this,e=t.parentNode.getBoundingClientRect(),i=n.select(t.parentNode).select("."+r.cn.cellRect).node().getBoundingClientRect(),a=t.transform.baseVal.consolidate(),s=i.top-e.top+(a?a.matrix.f:r.cellPad);return c(O(o,n.select(t.parentNode).select("."+r.cn.cellTextHolder).node().getBoundingClientRect().width),s)})),o.settledY=!0}}}function O(t,e){switch(t.align){case"left":default:return r.cellPad;case"right":return t.column.columnWidth-(e||0)-r.cellPad;case"center":return(t.column.columnWidth-(e||0))/2}}function D(t){t.attr("transform",(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+F(e,1/0)}),0),r=F(N(t),t.key);return c(0,r+e)})).selectAll("."+r.cn.cellRect).attr("height",(function(t){return function(t,e){return t.rows[e-t.firstRowIndex]}(N(t),t.key).rowHeight}))}function R(t,e){for(var r=0,n=e-1;n>=0;n--)r+=B(t[n]);return r}function F(t,e){for(var r=0,n=0;n{var e=we().getModuleCalcData,r=aw(),n="table";t.name=n,t.plot=function(t){var i=e(t.calcdata,n)[0];i.length&&r(t,i)},t.clean=function(t,e,r,i){var a=i._has&&i._has(n),o=e._has&&e._has(n);a&&!o&&i._paperdiv.selectAll(".table").remove()}})),sw=f(((t,e)=>{e.exports={attributes:Qb(),supplyDefaults:tw(),calc:ew(),plot:aw(),moduleType:"trace",name:"table",basePlotModule:ow(),categories:["noOpacity"],meta:{}}})),lw=f(((t,e)=>{e.exports=sw()})),uw=f(((t,e)=>{var r=R(),n=V(),i=Ie(),a=Ce().descriptionWithDates,o=Lt().overrideAll,s=Pt().dash,l=D().extendFlat;e.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:r({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:i.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:l({},i.labelalias,{editType:"calc"}),tickfont:r({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:a("tick label")},tickformatstops:o(i.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:n.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:l({},s,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:l({},s,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:n.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}})),cw=f(((t,e)=>{var r=R(),n=uw(),i=V(),a=r({editType:"calc"}),o=Tn().zorder;a.family.dflt='"Open Sans", verdana, arial, sans-serif',a.size.dflt=12,a.color.dflt=i.defaultLine,e.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:n,baxis:n,font:a,color:{valType:"color",dflt:i.defaultLine,editType:"plot"},zorder:o}})),hw=f(((t,e)=>{var r=le().isArray1D;e.exports=function(t,e,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(e._cheater=!i,a&&!r(i)||s&&!r(o))e._length=null;else{var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),e.a&&e.a.length&&(l=Math.min(l,e.a.length)),e.b&&e.b.length&&(l=Math.min(l,e.b.length)),e._length=l}return!0}})),fw=f(((t,e)=>{var r=cw(),n=q().addOpacity,i=qt(),a=le(),o=Re(),s=je(),l=Ue(),u=bi(),c=er(),h=rr();e.exports=function(t,e,f){var p=f.letter,d=f.font||{},m=r[p+"axis"];function g(r,n){return a.coerce(t,e,m,r,n)}function y(r,n){return a.coerce2(t,e,m,r,n)}f.name&&(e._name=f.name,e._id=f.name),g("autotypenumbers",f.autotypenumbersDflt);var v=g("type");"-"===v&&(f.data&&function(t,e){if("-"===t.type){var r=t[t._id.charAt(0)+"calendar"];t.type=h(e,r,{autotypenumbers:t.autotypenumbers})}}(e,f.data),"-"===e.type?e.type="linear":v=t.type=e.type),g("smoothing"),g("cheatertype"),g("showticklabels"),g("labelprefix",p+" = "),g("labelsuffix"),g("showtickprefix"),g("showticksuffix"),g("separatethousands"),g("tickformat"),g("exponentformat"),g("minexponent"),g("showexponent"),g("categoryorder"),g("tickmode"),g("tickvals"),g("ticktext"),g("tick0"),g("dtick"),"array"===e.tickmode&&(g("arraytick0"),g("arraydtick")),g("labelpadding"),e._hovertitle=p,"date"===v&&i.getComponentMethod("calendars","handleDefaults")(t,e,"calendar",f.calendar),c(e,f.fullLayout),e.c2p=a.identity;var x=g("color",f.dfltColor),_=x===t.color?x:d.color;g("title.text")&&(a.coerceFont(g,"title.font",d,{overrideDflt:{size:a.bigFont(d.size),color:_}}),g("title.offset")),g("tickangle"),g("autorange",!e.isValidRange(t.range))&&g("rangemode"),g("range"),e.cleanRange(),g("fixedrange"),o(t,e,g,v),l(t,e,g,v,f),s(t,e,g,v,f),u(t,e,g,{data:f.data,dataAttr:p});var b=y("gridcolor",n(x,.3)),w=y("gridwidth"),T=y("griddash"),k=g("showgrid");k||(delete e.gridcolor,delete e.gridwidth,delete e.griddash);var A=y("startlinecolor",x),M=y("startlinewidth",w);g("startline",e.showgrid||!!A||!!M)||(delete e.startlinecolor,delete e.startlinewidth);var S=y("endlinecolor",x),E=y("endlinewidth",w);return g("endline",e.showgrid||!!S||!!E)||(delete e.endlinecolor,delete e.endlinewidth),k?(g("minorgridcount"),g("minorgridwidth",w),g("minorgriddash",T),g("minorgridcolor",n(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgriddash,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridwidth,delete e.griddash),"none"===e.showticklabels&&(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g("tickmode"),e}})),pw=f(((t,e)=>{var r=fw(),n=ye();e.exports=function(t,e,i,a,o){a("a")||(a("da"),a("a0")),a("b")||(a("db"),a("b0")),function(t,e,i,a){["aaxis","baxis"].forEach((function(o){var s=o.charAt(0),l=t[o]||{},u=n.newContainer(e,o),c={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:s+"axis",letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:i.paper_bgcolor,autotypenumbersDflt:i.autotypenumbers,fullLayout:i};r(l,u,c),u._categories=u._categories||[],!t[o]&&"-"!==l.type&&(t[o]={type:l.type})}))}(t,e,i,o)}})),dw=f(((t,e)=>{var r=le(),n=hw(),i=pw(),a=cw(),o=V();e.exports=function(t,e,s,l){function u(n,i){return r.coerce(t,e,a,n,i)}e._clipPathId="clip"+e.uid+"carpet";var c=u("color",o.defaultLine);r.coerceFont(u,"font",l.font),u("carpet"),i(t,e,l,u,c),e.a&&e.b?(e.a.length<3&&(e.aaxis.smoothing=0),e.b.length<3&&(e.baxis.smoothing=0),n(t,e,u)||(e.visible=!1),e._cheater&&u("cheaterslope"),u("zorder")):e.visible=!1}})),mw=f(((t,e)=>{var r=le().isArrayOrTypedArray;e.exports=function(t,e,n){var i;for(r(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],i=0;i{e.exports=function(t,e,r){if(0===t.length)return"";var n,i=[],a=r?3:1;for(n=0;n{e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,u=1;if(a){var c=Math.sqrt(i[0]*i[0]+i[1]*i[1]),h=Math.sqrt(a[0]*a[0]+a[1]*a[1]),f=(i[0]*a[0]+i[1]*a[1])/c/h;u=Math.max(0,f)}var p=180*Math.atan2(s,o)/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:u}}})),vw=f(((t,e)=>{var r=v(),n=Qe(),i=mw(),a=gw(),o=yw(),s=Se(),l=le(),u=l.strRotate,c=l.strTranslate,h=Me();function f(t,e,o,s,l,u,c){var h="const-"+l+"-lines",f=o.selectAll("."+h).data(u);f.enter().append("path").classed(h,!0).style("vector-effect",c?"none":"non-scaling-stroke"),f.each((function(o){var s=o,l=s.x,u=s.y,c=i([],l,t.c2p),h=i([],u,e.c2p),f="M"+a(c,h,s.smoothing);r.select(this).attr("d",f).style("stroke-width",s.width).style("stroke",s.color).style("stroke-dasharray",n.dashStyle(s.dash,s.width)).style("fill","none")})),f.exit().remove()}function p(t,e,i,a,l,h,f,p){var d=h.selectAll("text."+p).data(f);d.enter().append("text").classed(p,!0);var m=0,g={};return d.each((function(l,h){var f;if("auto"===l.axis.tickangle)f=o(a,e,i,l.xy,l.dxy);else{var p=(l.axis.tickangle+180)*Math.PI/180;f=o(a,e,i,l.xy,[Math.cos(p),Math.sin(p)])}h||(g={angle:f.angle,flip:f.flip});var d=(l.endAnchor?-1:1)*f.flip,y=r.select(this).attr({"text-anchor":d>0?"start":"end","data-notex":1}).call(n.font,l.font).text(l.text).call(s.convertToTspans,t),v=n.bBox(this);y.attr("transform",c(f.p[0],f.p[1])+u(f.angle)+c(l.axis.labelpadding*d,.3*v.height)),m=Math.max(m,v.width+l.axis.labelpadding)})),d.exit().remove(),g.maxExtent=m,g}e.exports=function(t,e,n,s){var u=t._context.staticPlot,c=e.xaxis,h=e.yaxis,d=t._fullLayout._clips;l.makeTraceGroups(s,n,"trace").each((function(e){var n=r.select(this),s=e[0],m=s.trace,y=m.aaxis,v=m.baxis,x=l.ensureSingle(n,"g","minorlayer"),_=l.ensureSingle(n,"g","majorlayer"),b=l.ensureSingle(n,"g","boundarylayer"),w=l.ensureSingle(n,"g","labellayer");n.style("opacity",m.opacity),f(c,h,_,0,"a",y._gridlines,!0),f(c,h,_,0,"b",v._gridlines,!0),f(c,h,x,0,"a",y._minorgridlines,!0),f(c,h,x,0,"b",v._minorgridlines,!0),f(c,h,b,0,"a-boundary",y._boundarylines,u),f(c,h,b,0,"b-boundary",v._boundarylines,u);var T=p(t,c,h,m,0,w,y._labels,"a-label"),k=p(t,c,h,m,0,w,v._labels,"b-label");(function(t,e,r,n,i,a,s,u){var c,h,f,p,d=l.aggNums(Math.min,null,r.a),m=l.aggNums(Math.max,null,r.a),y=l.aggNums(Math.min,null,r.b),v=l.aggNums(Math.max,null,r.b);c=.5*(d+m),h=y,f=r.ab2xy(c,h,!0),p=r.dxyda_rough(c,h),void 0===s.angle&&l.extendFlat(s,o(r,i,a,f,r.dxydb_rough(c,h))),g(t,e,r,0,f,p,r.aaxis,i,a,s,"a-title"),c=d,h=.5*(y+v),f=r.ab2xy(c,h,!0),p=r.dxydb_rough(c,h),void 0===u.angle&&l.extendFlat(u,o(r,i,a,f,r.dxyda_rough(c,h))),g(t,e,r,0,f,p,r.baxis,i,a,u,"b-title")})(t,w,m,0,c,h,T,k),function(t,e,r,n,o){var s,u,c,h,f=r.select("#"+t._clipPathId);f.size()||(f=r.append("clipPath").classed("carpetclip",!0));var p=l.ensureSingle(f,"path","carpetboundary"),d=e.clipsegments,m=[];for(h=0;h90&&v<270,_=r.select(this);_.text(f.title.text).call(s.convertToTspans,t),x&&(b=(-s.lineCount(_)+m)*d*a-b),_.attr("transform",c(e.p[0],e.p[1])+u(e.angle)+c(0,b)).attr("text-anchor","middle").call(n.font,f.title.font)})),_.exit().remove()}})),xw=f(((t,e)=>{var r=le().isArrayOrTypedArray;e.exports=function(t,e,n){var i,a,o,s,l,u=[],c=r(t)?t.length:t,h=r(e)?e.length:e,f=r(t)?t:null,p=r(e)?e:null;f&&(o=(f.length-1)/(f[f.length-1]-f[0])/(c-1)),p&&(s=(p.length-1)/(p[p.length-1]-p[0])/(h-1));var d,m=1/0,g=-1/0;for(a=0;a{var r=le().isArrayOrTypedArray;function n(t,e){if(!r(t)||e>=10)return null;for(var i=1/0,a=-1/0,o=t.length,s=0;s{var r=ir(),n=D().extendFlat;e.exports=function(t,e,i){var a,o,s,l,u,c,h,f,p,d,m,g,y,v,x=t["_"+e],_=t[e+"axis"],b=_._gridlines=[],w=_._minorgridlines=[],T=_._boundarylines=[],k=t["_"+i],A=t[i+"axis"];"array"===_.tickmode&&(_.tickvals=x.slice());var M=t._xctrl,S=t._yctrl,E=M[0].length,C=M.length,I=t._a.length,L=t._b.length;r.prepTicks(_),"array"===_.tickmode&&delete _.tickvals;var P=_.smoothing?3:1;function z(r){var n,a,o,s,l,u,c,h,p,d,m,g,y=[],v=[],x={};if("b"===e)for(a=t.b2j(r),o=Math.floor(Math.max(0,Math.min(L-2,a))),s=a-o,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},n=0;n0&&(p=t.dxydi([],n-1,o,0,s),y.push(l[0]+p[0]/3),v.push(l[1]+p[1]/3),d=t.dxydi([],n-1,o,1,s),y.push(h[0]-d[0]/3),v.push(h[1]-d[1]/3)),y.push(h[0]),v.push(h[1]),l=h;else for(n=t.a2i(r),u=Math.floor(Math.max(0,Math.min(I-2,n))),c=n-u,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],n,e)},x.dxy=function(e,r){return t.dxydj([],u,e,c,r)},a=0;a0&&(m=t.dxydj([],u,a-1,c,0),y.push(l[0]+m[0]/3),v.push(l[1]+m[1]/3),g=t.dxydj([],u,a-1,c,1),y.push(h[0]-g[0]/3),v.push(h[1]-g[1]/3)),y.push(h[0]),v.push(h[1]),l=h;return x.axisLetter=e,x.axis=_,x.crossAxis=A,x.value=r,x.constvar=i,x.index=f,x.x=y,x.y=v,x.smoothing=A.smoothing,x}function O(r){var n,a,o,s,l,u=[],c=[],h={};if(h.length=x.length,h.crossLength=k.length,"b"===e)for(o=Math.max(0,Math.min(L-2,r)),l=Math.min(1,Math.max(0,r-o)),h.xy=function(e){return t.evalxy([],e,r)},h.dxy=function(e,r){return t.dxydi([],e,o,r,l)},n=0;nx.length-1)&&b.push(n(O(o),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=c;fx.length-1||m<0||m>x.length-1))for(g=x[s],y=x[m],a=0;a<_.minorgridcount;a++)!((v=m-s)<=0)&&!((d=g+(y-g)*(a+1)/(_.minorgridcount+1)*(_.arraydtick/v))x[x.length-1])&&w.push(n(z(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&T.push(n(O(0),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&T.push(n(O(x.length-1),{color:_.endlinecolor,width:_.endlinewidth}))}else{for(l=5e-15,c=(u=[Math.floor((x[x.length-1]-_.tick0)/_.dtick*(1+l)),Math.ceil((x[0]-_.tick0)/_.dtick/(1+l))].sort((function(t,e){return t-e})))[0],h=u[1],f=c;f<=h;f++)p=_.tick0+_.dtick*f,b.push(n(z(p),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=c-1;fx[x.length-1])&&w.push(n(z(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&T.push(n(z(x[0]),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&T.push(n(z(x[x.length-1]),{color:_.endlinecolor,width:_.endlinewidth}))}}})),ww=f(((t,e)=>{var r=ir(),n=D().extendFlat;e.exports=function(t,e){var i,a,o,s=e._labels=[],l=e._gridlines;for(i=0;i{e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,u=!!n.smoothing,c=t[0].length-1,h=t.length-1;for(i=0,a=[],o=[];i<=c;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i<=h;i++)a[i]=t[i][c],o[i]=e[i][c];for(s.push({x:a,y:o,bicubic:u}),i=c,a=[],o=[];i>=0;i--)a[c-i]=t[h][i],o[c-i]=e[h][i];for(s.push({x:a,y:o,bicubic:l}),i=h,a=[],o=[];i>=0;i--)a[h-i]=t[i][0],o[h-i]=e[i][0];return s.push({x:a,y:o,bicubic:u}),s}})),kw=f(((t,e)=>{var r=le();e.exports=function(t,e,n){var i,a,o,s,l,u,c,h,f=[],p=[],d=t[0].length,m=t.length,g=0;for(i=0;i0&&void 0!==(u=t[l][s-1])&&(h++,c+=u),s0&&void 0!==(u=t[l-1][s])&&(h++,c+=u),l0&&a0&&i1e-5);return r.log("Smoother converged to",E,"after",C,"iterations"),t}})),Aw=f(((t,e)=>{e.exports={RELATIVE_CULL_TOLERANCE:1e-6}})),Mw=f(((t,e)=>{e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),u=Math.pow(o*o+s*s,.25),c=(u*u*i-l*l*o)*n,h=(u*u*a-l*l*s)*n,f=u*(l+u)*3,p=l*(l+u)*3;return[[e[0]+(f&&c/f),e[1]+(f&&h/f)],[e[0]-(p&&c/p),e[1]-(p&&h/p)]]}})),Sw=f(((t,e)=>{var r=Mw(),n=le().ensureArray;function i(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,a,o,s,l){var u,c,h,f,p,d,m,g,y,v,x=a[0].length,_=a.length,b=s?3*x-2:x,w=l?3*_-2:_;for(t=n(t,w),e=n(e,w),h=0;h{e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&&i?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-p));f*=3,p*=3;var g=d*d,y=g*d,v=1-d,x=v*v,_=x*v,b=m*m,w=b*m,T=1-m,k=T*T,A=k*T;for(h=0;h{e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,u,c,h;e||(e=[]),r*=3,n*=3;var f=i*i,p=1-i,d=p*p,m=p*i*2,g=-3*d,y=3*(d-m),v=3*(m-f),x=3*f,_=a*a,b=_*a,w=1-a,T=w*w,k=T*w;for(h=0;h{e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,u,c,h;e||(e=[]),r*=3,n*=3;var f=i*i,p=f*i,d=1-i,m=d*d,g=m*d,y=a*a,v=1-a,x=v*v,_=v*a*2,b=-3*x,w=3*(x-_),T=3*(_-y),k=3*y;for(h=0;h{var r=Aw(),n=Zt().findBin,i=Sw(),a=Ew(),o=Cw(),s=Iw();e.exports=function(t){var e=t._a,l=t._b,u=e.length,c=l.length,h=t.aaxis,f=t.baxis,p=e[0],d=e[u-1],m=l[0],g=l[c-1],y=e[e.length-1]-e[0],v=l[l.length-1]-l[0],x=y*r.RELATIVE_CULL_TOLERANCE,_=v*r.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,m-=_,g+=_,t.isVisible=function(t,e){return t>p&&tm&&ed||eg},t.setScale=function(){var e=t._x,r=t._y,n=i(t._xctrl,t._yctrl,e,r,h.smoothing,f.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=a([t._xctrl,t._yctrl],u,c,h.smoothing,f.smoothing),t.dxydi=o([t._xctrl,t._yctrl],h.smoothing,f.smoothing),t.dxydj=s([t._xctrl,t._yctrl],h.smoothing,f.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),u-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),u-2),r=t[1]-e;return(1-r)*l[e]+r*l[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(n(t,e),u-2)),i=e[r],a=e[r+1];return Math.max(0,Math.min(u-1,r+(t-i)/(a-i)))},t.b2j=function(t){var e=Math.max(0,Math.min(n(t,l),c-2)),r=l[e],i=l[e+1];return Math.max(0,Math.min(c-1,e+(t-r)/(i-r)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(r,n,i){if(!i&&(re[u-1]|nl[c-1]))return[!1,!1];var a=t.a2i(r),o=t.b2j(n),s=t.evalxy([],a,o);if(i){var h,f,p,d,m=0,g=0,y=[];re[u-1]?(h=u-2,f=1,m=(r-e[u-1])/(e[u-1]-e[u-2])):f=a-(h=Math.max(0,Math.min(u-2,Math.floor(a)))),nl[c-1]?(p=c-2,d=1,g=(n-l[c-1])/(l[c-1]-l[c-2])):d=o-(p=Math.max(0,Math.min(c-2,Math.floor(o)))),m&&(t.dxydi(y,h,p,f,d),s[0]+=y[0]*m,s[1]+=y[1]*m),g&&(t.dxydj(y,h,p,f,d),s[0]+=y[0]*g,s[1]+=y[1]*g)}return s},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(l.length-2,t));return l[e+1]-l[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}})),Pw=f(((t,e)=>{var r=ir(),n=le().isArray1D,i=xw(),a=_w(),o=bw(),s=ww(),l=Tw(),u=zo(),c=kw(),h=Po(),f=Lw();e.exports=function(t,e){var p=r.getFromId(t,e.xaxis),d=r.getFromId(t,e.yaxis),m=e.aaxis,g=e.baxis,y=e.x,v=e.y,x=[];y&&n(y)&&x.push("x"),v&&n(v)&&x.push("y"),x.length&&h(e,m,g,"a","b",x);var _=e._a=e._a||e.a,b=e._b=e._b||e.b;y=e._x||e.x,v=e._y||e.y;var w={};if(e._cheater){var T="index"===m.cheatertype?_.length:_,k="index"===g.cheatertype?b.length:b;y=i(T,k,e.cheaterslope)}e._x=y=u(y),e._y=v=u(v),c(y,_,b),c(v,_,b),f(e),e.setScale();var A=a(y),M=a(v),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),C=.5*(M[1]-M[0]),I=.5*(M[1]+M[0]),L=1.3;return A=[E-S*L,E+S*L],M=[I-C*L,I+C*L],e._extremes[p._id]=r.findExtremes(p,A,{padded:!0}),e._extremes[d._id]=r.findExtremes(d,M,{padded:!0}),o(e,"a","b"),o(e,"b","a"),s(e,m),s(e,g),w.clipsegments=l(e._xctrl,e._yctrl,m,g),w.x=y,w.y=v,w.a=_,w.b=b,[w]}})),zw=f(((t,e)=>{e.exports={attributes:cw(),supplyDefaults:dw(),plot:vw(),calc:Pw(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Si(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}})),Ow=f(((t,e)=>{e.exports=zw()})),Dw=f(((t,e)=>{var r=wn(),n=Tn(),i=j(),a=Ot().hovertemplateAttrs,o=Ot().texttemplateAttrs,s=Pe(),l=D().extendFlat,u=n.marker,c=n.line,h=u.line;e.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:l({},n.mode,{dflt:"markers"}),text:l({},n.text,{}),texttemplate:o({editType:"plot"},{keys:["a","b","text"]}),hovertext:l({},n.hovertext,{}),line:{color:c.color,width:c.width,dash:c.dash,backoff:c.backoff,shape:l({},c.shape,{values:["linear","spline"]}),smoothing:c.smoothing,editType:"calc"},connectgaps:n.connectgaps,fill:l({},n.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:r(),marker:l({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,angle:u.angle,angleref:u.angleref,standoff:u.standoff,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:l({width:h.width,editType:"calc"},s("marker.line")),gradient:u.gradient,editType:"calc"},s("marker")),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:n.hoveron,hovertemplate:a(),zorder:n.zorder}})),Rw=f(((t,e)=>{var r=le(),n=bn(),i=Ye(),a=Wn(),o=Yn(),s=Xn(),l=$n(),u=Jn(),c=Dw();e.exports=function(t,e,h,f){function p(n,i){return r.coerce(t,e,c,n,i)}p("carpet"),e.xaxis="x",e.yaxis="y";var d=p("a"),m=p("b"),g=Math.min(d.length,m.length);if(g){e._length=g,p("text"),p("texttemplate"),p("hovertext"),p("mode",g{e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,u=n.evalxy([],a,s,o,l);return r.yLabel=u[1].toFixed(3),r}})),Bw=f(((t,e)=>{e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i{var r=T(),n=ni(),i=ii(),a=ai(),o=oi().calcMarkerSize,s=Bw();e.exports=function(t,e){var l=e._carpetTrace=s(t,e);if(l&&l.visible&&"legendonly"!==l.visible){var u;e.xaxis=l.xaxis,e.yaxis=l.yaxis;var c,h,f=e._length,p=new Array(f),d=!1;for(u=0;u{var r=fi(),n=ir(),i=Qe();e.exports=function(t,e,a,o){var s,l,u,c=a[0][0].carpet,h=n.getFromId(t,c.xaxis||"x"),f=n.getFromId(t,c.yaxis||"y"),p={xaxis:h,yaxis:f,plot:e.plot};for(s=0;s{var r=yi(),n=le().fillText;e.exports=function(t,e,i,a){var o=r(t,e,i,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,u=t.xa._length,c=u*l/2,h=u-c;return s.x0=Math.max(Math.min(s.x0,h),c),s.x1=Math.max(Math.min(s.x1,h),c),o}var f=s.cd[s.index];s.a=f.a,s.b=f.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,m=p._module.formatLabels(f,p);s.yLabel=m.yLabel,delete s.text;var g=[];if(!p.hovertemplate){var y=(f.hi||p.hoverinfo).split("+");-1!==y.indexOf("all")&&(y=["a","b","text"]),-1!==y.indexOf("a")&&v(d.aaxis,f.a),-1!==y.indexOf("b")&&v(d.baxis,f.b),g.push("y: "+s.yLabel),-1!==y.indexOf("text")&&n(f,p,g),s.extraText=g.join("
")}return o}function v(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,""):t._hovertitle,g.push(r+": "+e.toFixed(3)+t.labelsuffix)}}})),Vw=f(((t,e)=>{e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}})),qw=f(((t,e)=>{e.exports={attributes:Dw(),supplyDefaults:Rw(),colorbar:pi(),formatLabels:Fw(),calc:Nw(),plot:jw(),style:mi().style,styleOnSelect:mi().styleOnSelect,hoverPoints:Uw(),selectPoints:vi(),eventData:Vw(),moduleType:"trace",name:"scattercarpet",basePlotModule:Si(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}})),Hw=f(((t,e)=>{e.exports=qw()})),Gw=f(((t,e)=>{var r=bo(),n=ls(),i=Pe(),a=D().extendFlat,o=n.contours;e.exports=a({carpet:{valType:"string",editType:"calc"},z:r.z,a:r.x,a0:r.x0,da:r.dx,b:r.y,b0:r.y0,db:r.dy,text:r.text,hovertext:r.hovertext,transpose:r.transpose,atype:r.xtype,btype:r.ytype,fillcolor:n.fillcolor,autocontour:n.autocontour,ncontours:n.ncontours,contours:{type:o.type,start:o.start,end:o.end,size:o.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:o.showlines,showlabels:o.showlabels,labelfont:o.labelfont,labelformat:o.labelformat,operation:o.operation,value:o.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:n.line.color,width:n.line.width,dash:n.line.dash,smoothing:n.line.smoothing,editType:"plot"},zorder:n.zorder},i("",{cLetter:"z",autoColorDflt:!1}))})),Zw=f(((t,e)=>{var r=le(),n=wo(),i=Gw(),a=Ls(),o=cs(),s=fs();e.exports=function(t,e,l,u){function c(n,a){return r.coerce(t,e,i,n,a)}if(c("carpet"),t.a&&t.b){if(!n(t,e,c,u,"a","b"))return void(e.visible=!1);c("text"),"constraint"===c("contours.type")?a(t,e,c,u,l,{hasHover:!1}):(o(t,e,c,(function(n){return r.coerce2(t,e,i,n)})),s(t,e,c,u,{hasHover:!1}))}else e._defaultColor=l,e._length=null;c("zorder")}})),Ww=f(((t,e)=>{var r=Ze(),n=le(),i=Po(),a=zo(),o=Oo(),s=Do(),l=Ro(),u=Zw(),c=Bw(),h=ds();e.exports=function(t,e){var f=e._carpetTrace=c(t,e);if(f&&f.visible&&"legendonly"!==f.visible){if(!e.a||!e.b){var p=t.data[f.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var m=function(t,e){var u,c,h,f,p,d,m,g=e._carpetTrace,y=g.aaxis,v=g.baxis;y._minDtick=0,v._minDtick=0,n.isArray1D(e.z)&&i(e,y,v,"a","b",["z"]),u=e._a=e._a||e.a,f=e._b=e._b||e.b,u=u?y.makeCalcdata(e,"_a"):[],f=f?v.makeCalcdata(e,"_b"):[],c=e.a0||0,h=e.da||1,p=e.b0||0,d=e.db||1,m=e._z=a(e._z||e.z,e.transpose),e._emptypoints=s(m),o(m,e._emptypoints);var x=n.maxRowLength(m),_="scaled"===e.xtype?"":u,b=l(e,_,c,h,x,y),w="scaled"===e.ytype?"":f,T={a:b,b:l(e,w,p,d,m.length,v),z:m};return"levels"===e.contours.type&&"none"!==e.contours.coloring&&r(t,e,{vals:m,containerStr:"",cLetter:"z"}),[T]}(t,e);return h(e,e._z),m}}})),Yw=f(((t,e)=>{var r=le().isArrayOrTypedArray;e.exports=function(t,e,n,i){var a,o,s,l,u,c,h,f,p,d,m,g,y,v=r(n)?"a":"b",x=("a"===v?t.aaxis:t.baxis).smoothing,_="a"===v?t.a2i:t.b2j,b="a"===v?n:i,w="a"===v?i:n,T="a"===v?e.a.length:e.b.length,k="a"===v?e.b.length:e.a.length,A=Math.floor("a"===v?t.b2j(w):t.a2i(w)),M="a"===v?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&&(s=Math.max(0,Math.min(k-2,A)),l=A-s,o="a"===v?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=_(b[0]),E=_(b[1]),C=S0?Math.floor:Math.ceil,P=C>0?Math.ceil:Math.floor,z=C>0?Math.min:Math.max,O=C>0?Math.max:Math.min,D=L(S+I),R=P(E-I),F=[[h=M(S)]];for(a=D;a*C{var r=v(),n=mw(),i=gw(),a=Qe(),o=le(),s=vs(),l=xs(),u=ks(),c=ys(),h=ws(),f=bs(),p=Ts(),d=Bw(),m=Yw();function g(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,v,_){var b=e.xaxis,w=e.yaxis;o.makeTraceGroups(_,v,"contour").each((function(v){var _=r.select(this),T=v[0],k=T.trace,A=k._carpetTrace=d(t,k),M=t.calcdata[A.index][0];if(A.visible&&"legendonly"!==A.visible){var S=T.a,E=T.b,C=k.contours,I=f(C,e,T),L="constraint"===C.type,P=C._operation,z=L?"="===P?"lines":"fill":C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];s(I);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);l(I,D,R);var F=I;"constraint"===C.type&&(F=h(I,P)),function(t,e){var r,n,i,a,o,s,l,u,c;for(r=0;r=0;U--)B=M.clipsegments[U],N=n([],B.x,b.c2p),j=n([],B.y,w.c2p),N.reverse(),j.reverse(),V.push(i(N,j,B.bicubic));var q="M"+V.join("L")+"Z";(function(t,e,r,a,s,l){var u,c,h,f,p=o.ensureSingle(t,"g","contourbg").selectAll("path").data("fill"!==l||s?[]:[0]);p.enter().append("path"),p.exit().remove();var d=[];for(f=0;f=0&&(f=C,d=g):Math.abs(h[1]-f[1])=0&&(f=C,d=g):o.log("endpt to newendpt is not vert. or horz.",h,f,C)}if(d>=0)break;v+=S(h,f),h=f}if(d===e.edgepaths.length){o.log("unclosed perimeter path");break}c=d,(_=-1===x.indexOf(c))&&(c=x[0],v+=S(h,f)+"Z",h=null)}for(c=0;cm&&(n.max=m),n.len=n.max-n.min}function v(t,e){var r,n=0,o=.1;return(Math.abs(t[0]-l){e.exports={attributes:Gw(),supplyDefaults:Zw(),colorbar:Ss(),calc:Ww(),plot:Xw(),style:Ms(),moduleType:"trace",name:"contourcarpet",basePlotModule:Si(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}})),Jw=f(((t,e)=>{e.exports=$w()})),Kw=f(((t,e)=>{var r=le().extendFlat,n=Tn(),i=Ce().axisHoverFormat,a=Pt().dash,o=N(),s=Al(),l=s.INCREASING.COLOR,u=s.DECREASING.COLOR,c=n.line;function h(t){return{line:{color:r({},c.color,{dflt:t}),width:c.width,dash:a,editType:"style"},editType:"style"}}e.exports={xperiod:n.xperiod,xperiod0:n.xperiod0,xperiodalignment:n.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:r({},c.width,{}),dash:r({},a,{}),editType:"style"},increasing:h(l),decreasing:h(u),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:r({},o.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:n.zorder}})),Qw=f(((t,e)=>{var r=qt(),n=le();e.exports=function(t,e,i,a){var o=i("x"),s=i("open"),l=i("high"),u=i("low"),c=i("close");if(i("hoverlabel.split"),r.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x"],a),s&&l&&u&&c){var h=Math.min(s.length,l.length,u.length,c.length);return o&&(h=Math.min(h,n.minRowLength(o))),e._length=h,h}}})),tT=f(((t,e)=>{var r=le(),n=Qw(),i=Gn(),a=Kw();function o(t,e,r,n){r(n+".line.color"),r(n+".line.width",e.line.width),r(n+".line.dash",e.line.dash)}e.exports=function(t,e,s,l){function u(n,i){return r.coerce(t,e,a,n,i)}n(t,e,u,l)?(i(t,e,l,u,{x:!0}),u("xhoverformat"),u("yhoverformat"),u("line.width"),u("line.dash"),o(0,e,u,"increasing"),o(0,e,u,"decreasing"),u("text"),u("hovertext"),u("tickwidth"),l._requestRangeslider[e.xaxis]=!0,u("zorder")):e.visible=!1}})),eT=f(((t,e)=>{var r=le(),n=r._,i=ir(),a=ri(),o=k().BADNUM;function s(t,e,r,n){return{o:t,h:e,l:r,c:n}}function l(t,e,a,s,l,u){for(var c=l.makeCalcdata(e,"open"),h=l.makeCalcdata(e,"high"),f=l.makeCalcdata(e,"low"),p=l.makeCalcdata(e,"close"),d=r.isArrayOrTypedArray(e.text),m=r.isArrayOrTypedArray(e.hovertext),g=!0,y=null,v=!!e.xperiodalignment,x=[],_=0;_y):g=A>w,y=A;var M=u(w,T,k,A);M.pos=b,M.yc=(w+A)/2,M.i=_,M.dir=g?"increasing":"decreasing",M.x=M.pos,M.y=[k,T],v&&(M.orig_p=a[_]),d&&(M.tx=e.text[_]),m&&(M.htx=e.hovertext[_]),x.push(M)}else x.push({pos:b,empty:!0})}return e._extremes[l._id]=i.findExtremes(l,r.concat(f,h),{padded:!0}),x.length&&(x[0].t={labels:{open:n(t,"open:")+" ",high:n(t,"high:")+" ",low:n(t,"low:")+" ",close:n(t,"close:")+" "}}),x}e.exports={calc:function(t,e){var n=i.getFromId(t,e.xaxis),o=i.getFromId(t,e.yaxis),u=function(t,e,n){var i=n._minDiff;if(!i){var o,s=t._fullData,l=[];for(i=1/0,o=0;o{var r=v(),n=le();e.exports=function(t,e,i,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;n.makeTraceGroups(a,i,"trace ohlc").each((function(t){var e=r.select(this),i=t[0],a=i.t;if(!0!==i.trace.visible||a.empty)e.remove();else{var u=a.tickLen,c=e.selectAll("path").data(n.identity);c.enter().append("path"),c.exit().remove(),c.attr("d",(function(t){if(t.empty)return"M0,0Z";var e=s.c2p(t.pos-u,!0),r=s.c2p(t.pos+u,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return"M"+e+","+o.c2p(t.o,!0)+"H"+n+"M"+n+","+o.c2p(t.h,!0)+"V"+o.c2p(t.l,!0)+"M"+r+","+o.c2p(t.c,!0)+"H"+n}))}}))}})),nT=f(((t,e)=>{var r=v(),n=Qe(),i=q();e.exports=function(t,e,a){var o=a||r.select(t).selectAll("g.ohlclayer").selectAll("g.trace");o.style("opacity",(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;r.select(this).selectAll("path").each((function(t){if(!t.empty){var a=e[t.dir].line;r.select(this).style("fill","none").call(i.stroke,a.color).call(n.dashLine,a.dash,a.width).style("opacity",e.selectedpoints&&!t.selected?.3:1)}}))}))}})),iT=f(((t,e)=>{var r=ir(),n=le(),i=Or(),a=q(),o=le().fillText,s=Al(),l={increasing:s.INCREASING.SYMBOL,decreasing:s.DECREASING.SYMBOL};function u(t,e,r,n){var o,s,l=t.cd,u=t.xa,c=l[0].trace,h=l[0].t,f=c.type,p="ohlc"===f?"l":"min",d="ohlc"===f?"h":"max",m=h.bPos||0,g=h.bdPos||h.tickLen,y=h.wHover,v=Math.min(1,g/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function x(t){var r=function(t){return t.pos+m-e}(t);return i.inbox(r-y,r+y,o)}function _(t){var e=t[p],n=t[d];return e===n||i.inbox(e-r,n-r,o)}function b(t){return(x(t)+_(t))/2}o=t.maxHoverDistance-v,s=t.maxSpikeDistance-v;var w=i.getDistanceFunction(n,x,_,b);if(i.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=c[T.dir],A=k.line.color;return a.opacity(A)&&k.line.width?t.color=A:t.color=k.fillcolor,t.x0=u.c2p(T.pos+m-g,!0),t.x1=u.c2p(T.pos+m+g,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=b(T)*s/o,t.xSpike=u.c2p(T.pos,!0),t}function c(t,e,i,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,h=[],f=u(t,e,i,a);if(!f)return[];var p=o[f.index].hi||l.hoverinfo,d=p.split("+");if("all"!==p&&-1===d.indexOf("y"))return[];for(var m=["high","open","close","low"],g={},y=0;y"+c.labels[x]+r.hoverLabelText(s,_,l.yhoverformat):((v=n.extendFlat({},f)).y0=v.y1=b,v.yLabelVal=_,v.yLabel=c.labels[x]+r.hoverLabelText(s,_,l.yhoverformat),v.name="",h.push(v),g[_]=v)}return h}function h(t,e,n,i){var a=t.cd,s=t.ya,c=a[0].trace,h=a[0].t,f=u(t,e,n,i);if(!f)return[];var p=a[f.index],d=f.index=p.i,m=p.dir;function g(t){return h.labels[t]+r.hoverLabelText(s,c[t][d],c.yhoverformat)}var y=p.hi||c.hoverinfo,v=y.split("+"),x="all"===y,_=x||-1!==v.indexOf("y"),b=x||-1!==v.indexOf("text"),w=_?[g("open"),g("high"),g("low"),g("close")+" "+l[m]]:[];return b&&o(p,c,w),f.extraText=w.join("
"),f.y0=f.y1=s.c2p(p.yc,!0),[f]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?c(t,e,r,n):h(t,e,r,n)},hoverSplit:c,hoverOnPoints:h}})),aT=f(((t,e)=>{e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r{e.exports={moduleType:"trace",name:"ohlc",basePlotModule:Si(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Kw(),supplyDefaults:tT(),calc:eT().calc,plot:rT(),style:nT(),hoverPoints:iT().hoverPoints,selectPoints:aT()}})),sT=f(((t,e)=>{e.exports=oT()})),lT=f(((t,e)=>{var r=le().extendFlat,n=Ce().axisHoverFormat,i=Kw(),a=so();function o(t){return{line:{color:r({},a.line.color,{dflt:t}),width:a.line.width,editType:"style"},fillcolor:a.fillcolor,editType:"style"}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:n("x"),yhoverformat:n("y"),x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:r({},a.line.width,{}),editType:"style"},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:r({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel,zorder:a.zorder}})),uT=f(((t,e)=>{var r=le(),n=q(),i=Qw(),a=Gn(),o=lT();function s(t,e,r,i){var a=r(i+".line.color");r(i+".line.width",e.line.width),r(i+".fillcolor",n.addOpacity(a,.5))}e.exports=function(t,e,n,l){function u(n,i){return r.coerce(t,e,o,n,i)}i(t,e,u,l)?(a(t,e,l,u,{x:!0}),u("xhoverformat"),u("yhoverformat"),u("line.width"),s(0,e,u,"increasing"),s(0,e,u,"decreasing"),u("text"),u("hovertext"),u("whiskerwidth"),l._requestRangeslider[e.xaxis]=!0,u("zorder")):e.visible=!1}})),cT=f(((t,e)=>{var r=le(),n=ir(),i=ri(),a=eT().calcCommon;function o(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var s=t._fullLayout,l=n.getFromId(t,e.xaxis),u=n.getFromId(t,e.yaxis),c=l.makeCalcdata(e,"x"),h=i(e,l,"x",c).vals,f=a(t,e,c,h,u,o);return f.length?(r.extendFlat(f[0].t,{num:s._numBoxes,dPos:r.distinctVals(h).minDiff/2,posLetter:"x",valLetter:"y"}),s._numBoxes++,f):[{t:{empty:!0}}]}})),hT=f(((t,e)=>{e.exports={moduleType:"trace",name:"candlestick",basePlotModule:Si(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:lT(),layoutAttributes:lo(),supplyLayoutDefaults:co().supplyLayoutDefaults,crossTraceCalc:fo().crossTraceCalc,supplyDefaults:uT(),calc:cT(),plot:po().plot,layerName:"boxlayer",style:mo().style,hoverPoints:iT().hoverPoints,selectPoints:aT()}})),fT=f(((t,e)=>{e.exports=hT()})),pT=f(((t,e)=>{var r=le(),n=er(),i=r.deg2rad,a=r.rad2deg;e.exports=function(t,e,o){switch(n(t,o),t._id){case"x":case"radialaxis":!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e>n?function(t){return t<=0}:function(t){return t>=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case"angularaxis":!function(t,e){var n=t.type;if("linear"===n){var o=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return"degrees"===e?i(t):t}(o(t),e)},t.c2d=function(t,e){return s(function(t,e){return"degrees"===e?a(t):t}(t,e))}}t.makeCalcdata=function(e,r){var n,i,a=e[r],o=e._length,s=function(r){return t.d2c(r,e.thetaunit)};if(a)for(n=new Array(o),i=0;i{e.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}})),mT=f(((t,e)=>{var r=le(),n=mn().tester,i=r.findIndexOfMin,a=r.isAngleInsideSector,o=r.angleDelta,s=r.angleDist;function l(t,e,r,n){var i,a,o=n[0],s=n[1],l=c(Math.sin(e)-Math.sin(t)),u=c(Math.cos(e)-Math.cos(t)),h=Math.tan(r),f=c(1/h),p=l/u,d=s-p*o;return f?l&&u?a=h*(i=d/(h-p)):u?(i=s*f,a=s):(i=o,a=o*h):l&&u?(i=0,a=d):u?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,n,o){return r.isFullCircle([e,n])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a0?r:1/0})),a=r.mod(n+1,e.length);return[e[n],e[a]]},findIntersectionXY:l,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),u=(-o+l)/(2*a),c=(-o-l)/(2*a);return[[u,e*u+i+n],[c,e*c+i+n]]},clampTiny:c,pathPolygon:function(t,e,r,n,i,a){return"M"+h(u(t,e,r,n),i,a).join("L")},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t{function r(t){return t<0?-1:t>0?1:0}function n(t){var e=t[0],r=t[1];if(!isFinite(e)||!isFinite(r))return[1,0];var n=(e+1)*(e+1)+r*r;return[(e*e+r*r-1)/n,2*r/n]}function i(t,e){var r=e[0],n=e[1];return[r*t.radius+t.cx,-n*t.radius+t.cy]}function a(t,e){return e*t.radius}e.exports={smith:n,reactanceArc:function(t,e,r,o){var s=i(t,n([r,e])),l=s[0],u=s[1],c=i(t,n([o,e])),h=c[0],f=c[1];if(0===e)return["M"+l+","+u,"L"+h+","+f].join(" ");var p=a(t,1/Math.abs(e));return["M"+l+","+u,"A"+p+","+p+" 0 0,"+(e<0?1:0)+" "+h+","+f].join(" ")},resistanceArc:function(t,e,o,s){var l=a(t,1/(e+1)),u=i(t,n([e,o])),c=u[0],h=u[1],f=i(t,n([e,s])),p=f[0],d=f[1];if(r(o)!==r(s)){var m=i(t,n([e,0]));return["M"+c+","+h,"A"+l+","+l+" 0 0,"+(0{var r=v(),n=O(),i=qt(),a=le(),o=a.strRotate,s=a.strTranslate,l=q(),u=Qe(),c=ke(),h=ir(),f=er(),p=pT(),d=nr().doAutoRange,m=Cn(),g=fr(),y=Or(),x=tr(),_=En().prepSelect,b=En().selectOnClick,w=En().clearOutline,T=pr(),k=Rr(),A=nn().redrawReglTraces,M=Me().MID_SHIFT,S=dT(),E=mT(),C=gT(),I=C.smith,L=C.reactanceArc,P=C.resistanceArc,z=C.smithTransform,D=a._,R=a.mod,F=a.deg2rad,B=a.rad2deg;function N(t,e,r){this.isSmith=r||!1,this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=t._fullLayout,i="clip"+n._uid+e;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",e),this.getHole=function(t){return this.isSmith?0:t.hole},this.getSector=function(t){return this.isSmith?[0,360]:t.sector},this.getRadial=function(t){return this.isSmith?t.realaxis:t.radialaxis},this.getAngular=function(t){return this.isSmith?t.imaginaryaxis:t.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var j=N.prototype;function U(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return"side"in t&&(e+=t.side),e}function V(t,e){return e[a.findIndexOfMin(e,(function(e){return a.angleDist(t,e)}))]}function H(t,e,r){return e?(t.attr("display",null),t.attr(r)):t&&t.attr("display","none"),t}e.exports=function(t,e,r){return new N(t,e,r)},j.plot=function(t,e){for(var r=this,n=e[r.id],i=!1,a=0;a=90||i>90&&a>=450?1:s<=0&&u<=0?0:Math.max(s,u),[i<=180&&a>=180||i>180&&a>=540?-1:o>=0&&l>=0?0:Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?-1:s>=0&&u>=0?0:Math.min(s,u),a>=360?1:o<=0&&l<=0?0:Math.max(o,l),e]}(d),b=_[2]-_[0],w=_[3]-_[1],T=p/f,k=Math.abs(w/b);T>k?(m=f,x=(p-(g=f*k))/i.h/2,y=[c[0],c[1]],v=[h[0]+x,h[1]-x]):(g=p,x=(f-(m=p/k))/i.w/2,y=[c[0]+x,c[1]-x],v=[h[0],h[1]]),r.xLength2=m,r.yLength2=g,r.xDomain2=y,r.yDomain2=v;var A,M=r.xOffset2=i.l+i.w*y[0],S=r.yOffset2=i.t+i.h*(1-v[1]),E=r.radius=m/b,C=r.innerRadius=r.getHole(e)*E,I=r.cx=M-E*_[0],L=r.cy=S+E*_[3],P=r.cxx=I-M,z=r.cyy=L-S,O=a.side;"counterclockwise"===O?(A=O,O="top"):"clockwise"===O&&(A=O,O="bottom"),r.radialAxis=r.mockAxis(t,e,a,{_id:"x",side:O,_trueSide:A,domain:[C/i.w,E/i.w]}),r.angularAxis=r.mockAxis(t,e,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(t,e),r.updateAngularAxis(t,e),r.updateRadialAxis(t,e),r.updateRadialAxisTitle(t,e),r.xaxis=r.mockCartesianAxis(t,e,{_id:"x",domain:y}),r.yaxis=r.mockCartesianAxis(t,e,{_id:"y",domain:v});var D=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",D).attr("transform",s(P,z)),n.frontplot.attr("transform",s(M,S)).call(u.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",D).attr("transform",s(I,L)).call(l.fill,e.bgcolor)},j.mockAxis=function(t,e,r,n){var i=a.extendFlat({},r,n);return p(i,e,t),i},j.mockCartesianAxis=function(t,e,r){var n=this,i=n.isSmith,o=r._id,s=a.extendFlat({type:"linear"},r);f(s,t);var l={x:[0,2],y:[1,3]};return s.setRange=function(){var t=n.sectorBBox,r=l[o],i=n.radialAxis._rl,a=(i[1]-i[0])/(1-n.getHole(e));s.range=[t[r[0]]*a,t[r[1]]*a]},s.isPtWithinRange="x"!==o||i?function(){return!0}:function(t){return n.isPtInside(t)},s.setRange(),s.setScale(),s},j.doAutoRange=function(t,e){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(e);d(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],void 0!==i.minallowed){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(void 0!==i.maxallowed){var l=i.r2l(i.maxallowed);i._rl[0]90&&m<=270&&(g.tickangle=180);var x=v?function(t){var e=z(r,I([t.x,0]));return s(e[0]-f,e[1]-p)}:function(t){return s(g.l2p(t.x)+c,0)},_=v?function(t){return P(r,t.x,-1/0,1/0)}:function(t){return r.pathArc(g.r2p(t.x)+c)},b=U(d);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),y){g.setScale();var w=0,T=v?(g.tickvals||[]).filter((function(t){return t>=0})).map((function(t){return h.tickText(g,t,!0,!1)})):h.calcTicks(g),k=v?T:h.clipEnds(g,T),A=h.getTickSigns(g)[2];v&&(("top"===g.ticks&&"bottom"===g.side||"bottom"===g.ticks&&"top"===g.side)&&(A=-A),"top"===g.ticks&&"top"===g.side&&(w=-g.ticklen),"bottom"===g.ticks&&"bottom"===g.side&&(w=g.ticklen)),h.drawTicks(n,g,{vals:T,layer:i["radial-axis"],path:h.makeTickPath(g,0,A),transFn:x,crisp:!1}),h.drawGrid(n,g,{vals:k,layer:i["radial-grid"],path:_,transFn:a.noop,crisp:!1}),h.drawLabels(n,g,{vals:T,layer:i["radial-axis"],transFn:x,labelFns:h.makeLabelFns(g,w)})}var M=r.radialAxisAngle=r.vangles?B(V(F(d.angle),r.vangles)):d.angle,S=s(f,p),E=S+o(-M);H(i["radial-axis"],y&&(d.showticklabels||d.ticks),{transform:E}),H(i["radial-grid"],y&&d.showgrid,{transform:v?"":S}),H(i["radial-line"].select("line"),y&&d.showline,{x1:v?-u:c,y1:0,x2:u,y2:0,transform:E}).attr("stroke-width",d.linewidth).call(l.stroke,d.linecolor)},j.updateRadialAxisTitle=function(t,e,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(e),c=n.id+"title",h=0;if(l.title){var f=u.bBox(n.layers["radial-axis"].node()).height,p=l.title.font.size,d=l.side;h="top"===d?p:"counterclockwise"===d?-(f+.4*p):f+.8*p}var m=void 0!==r?r:n.radialAxisAngle,g=F(m),y=Math.cos(g),v=Math.sin(g),_=o+a/2*y+h*v,b=s-a/2*v+h*y;n.layers["radial-axis-title"]=x.draw(i,c,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:D(i,"Click to enter radial axis title"),attributes:{x:_,y:b,"text-anchor":"middle"},transform:{rotate:-m}})}},j.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,u=r.radius,c=r.innerRadius,f=r.cx,p=r.cy,d=r.getAngular(e),m=r.angularAxis,g=r.isSmith;g||(r.fillViewInitialKey("angularaxis.rotation",d.rotation),m.setGeometry(),m.setScale());var y=g?function(t){var e=z(r,I([0,t.x]));return Math.atan2(e[0]-f,e[1]-p)-Math.PI/2}:function(t){return m.t2g(t.x)};"linear"===m.type&&"radians"===m.thetaunit&&(m.tick0=B(m.tick0),m.dtick=B(m.dtick));var v=function(t){return s(f+u*Math.cos(t),p-u*Math.sin(t))},x=g?function(t){var e=z(r,I([0,t.x]));return s(e[0],e[1])}:function(t){return v(y(t))},_=g?function(t){var e=z(r,I([0,t.x])),n=Math.atan2(e[0]-f,e[1]-p)-Math.PI/2;return s(e[0],e[1])+o(-B(n))}:function(t){var e=y(t);return v(e)+o(-B(e))},b=g?function(t){return L(r,t.x,0,1/0)}:function(t){var e=y(t),r=Math.cos(e),n=Math.sin(e);return"M"+[f+c*r,p-c*n]+"L"+[f+u*r,p-u*n]},w=h.makeLabelFns(m,0).labelStandoff,T={xFn:function(t){var e=y(t);return Math.cos(e)*w},yFn:function(t){var e=y(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(w+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*M)},anchorFn:function(t){var e=y(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},heightFn:function(t,e,r){var n=y(t);return-.5*(1+Math.sin(n))*r}},k=U(d);r.angularTickLayout!==k&&(i["angular-axis"].selectAll("."+m._id+"tick").remove(),r.angularTickLayout=k);var A,S=g?[1/0].concat(m.tickvals||[]).map((function(t){return h.tickText(m,t,!0,!1)})):h.calcTicks(m);if(g&&(S[0].text="∞",S[0].fontSize*=1.75),"linear"===e.gridshape?(A=S.map(y),a.angleDelta(A[0],A[1])<0&&(A=A.slice().reverse())):A=null,r.vangles=A,"category"===m.type&&(S=S.filter((function(t){return a.isAngleInsideSector(y(t),r.sectorInRad)}))),m.visible){var E="inside"===m.ticks?-1:1,C=(m.linewidth||1)/2;h.drawTicks(n,m,{vals:S,layer:i["angular-axis"],path:"M"+E*C+",0h"+E*m.ticklen,transFn:_,crisp:!1}),h.drawGrid(n,m,{vals:S,layer:i["angular-grid"],path:b,transFn:a.noop,crisp:!1}),h.drawLabels(n,m,{vals:S,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:x,labelFns:T})}H(i["angular-line"].select("path"),d.showline,{d:r.pathSubplot(),transform:s(f,p)}).attr("stroke-width",d.linewidth).call(l.stroke,d.linecolor)},j.updateFx=function(t,e){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1)),this.updateHoverAndMainDrag(t))},j.updateHoverAndMainDrag=function(t){var e,o,l=this,u=l.isSmith,c=l.gd,h=l.layers,f=t._zoomlayer,p=S.MINZOOM,d=S.OFFEDGE,v=l.radius,x=l.innerRadius,T=l.cx,k=l.cy,A=l.cxx,M=l.cyy,C=l.sectorInRad,I=l.vangles,L=l.radialAxis,P=E.clampTiny,z=E.findXYatLength,O=E.findEnclosingVertexAngles,D=S.cornerHalfWidth,R=S.cornerLen/2,F=m.makeDragger(h,"path","maindrag",!1===t.dragmode?"none":"crosshair");r.select(F).attr("d",l.pathSubplot()).attr("transform",s(T,k)),F.onmousemove=function(t){y.hover(c,t,l.id),c._fullLayout._lasthover=F,c._fullLayout._hoversubplot=l.id},F.onmouseout=function(t){c._dragging||g.unhover(c,t)};var B,N,j,U,V,q,H,G,Z,W={element:F,gd:c,subplot:l.id,plotinfo:{id:l.id,xaxis:l.xaxis,yaxis:l.yaxis},xaxes:[l.xaxis],yaxes:[l.yaxis]};function Y(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return Y(t-A,e-M)}function $(t,e){return Math.atan2(M-e,t-A)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return l.pathSector(2*D);var r=R/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,v)),o=a-D,s=a+D;return"M"+J(o,n)+"A"+[o,o]+" 0,0,0 "+J(o,i)+"L"+J(s,i)+"A"+[s,s]+" 0,0,1 "+J(s,n)+"Z"}function Q(t,e,r){if(0===t)return l.pathSector(2*D);var n,i,a=J(t,e),o=J(t,r),s=P((a[0]+o[0])/2),u=P((a[1]+o[1])/2);if(s&&u){var c=u/s,h=-1/c,f=z(D,c,s,u);n=z(R,h,f[0][0],f[0][1]),i=z(R,h,f[1][0],f[1][1])}else{var p,d;u?(p=R,d=D):(p=D,d=R),n=[[s-p,u-d],[s+p,u-d]],i=[[s-p,u+d],[s+p,u+d]]}return"M"+n.join("L")+"L"+i.reverse().join("L")+"Z"}function tt(t,e){return e=Math.max(Math.min(e,v),x),tp?(t-1&&1===t&&b(e,c,[l.xaxis],[l.yaxis],l.id,W),r.indexOf("event")>-1&&y.click(c,e,l.id)}W.prepFn=function(t,r,i){var s=c._fullLayout.dragmode,h=F.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var p=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,o=c._fullLayout._invScaleY;var d=a.apply3DTransform(p)(r-h.left,i-h.top);if(B=d[0],N=d[1],I){var g=E.findPolygonOffset(v,C[0],C[1],I);B+=A+g[0],N+=M+g[1]}switch(s){case"zoom":W.clickFn=st,u||(W.moveFn=I?it:rt,W.doneFn=at,function(){j=null,U=null,V=l.pathSubplot(),q=!1;var t=c._fullLayout[l.id];H=n(t.bgcolor).getLuminance(),(G=m.makeZoombox(f,H,T,k,V)).attr("fill-rule","evenodd"),Z=m.makeCorners(f,T,k),w(c)}());break;case"select":case"lasso":_(t,r,i,W,s)}},g.init(W)},j.updateRadialDrag=function(t,e,n){var l=this,u=l.gd,c=l.layers,h=l.radius,f=l.innerRadius,p=l.cx,d=l.cy,y=l.radialAxis,v=S.radialDragBoxSize,x=v/2;if(y.visible){var _,b,T,M=F(l.radialAxisAngle),E=y._rl,C=E[0],I=E[1],L=E[n],P=.75*(E[1]-E[0])/(1-l.getHole(e))/h;n?(_=p+(h+x)*Math.cos(M),b=d-(h+x)*Math.sin(M),T="radialdrag"):(_=p+(f-x)*Math.cos(M),b=d-(f-x)*Math.sin(M),T="radialdrag-inner");var z,O,D,R=m.makeRectDragger(c,T,"crosshair",-x,-x,v,v),N={element:R,gd:u};!1===t.dragmode&&(N.dragmode=!1),H(r.select(R),y.visible&&f0==(n?D>C:D{var r=V(),n=Ie(),i=ka().attributes,a=le().extendFlat,o=Lt().overrideAll,s=o({color:n.color,showline:a({},n.showline,{dflt:!0}),linecolor:n.linecolor,linewidth:n.linewidth,showgrid:a({},n.showgrid,{dflt:!0}),gridcolor:n.gridcolor,gridwidth:n.gridwidth,griddash:n.griddash},"plot","from-root"),l=o({tickmode:n.minor.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:n.ticks,ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,labelalias:n.labelalias,showtickprefix:n.showtickprefix,tickprefix:n.tickprefix,showticksuffix:n.showticksuffix,ticksuffix:n.ticksuffix,showexponent:n.showexponent,exponentformat:n.exponentformat,minexponent:n.minexponent,separatethousands:n.separatethousands,tickfont:n.tickfont,tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,layer:n.layer},"plot","from-root"),u={visible:a({},n.visible,{dflt:!0}),type:a({},n.type,{values:["-","linear","log","date","category"]}),autotypenumbers:n.autotypenumbers,autorangeoptions:{minallowed:n.autorangeoptions.minallowed,maxallowed:n.autorangeoptions.maxallowed,clipmin:n.autorangeoptions.clipmin,clipmax:n.autorangeoptions.clipmax,include:n.autorangeoptions.include,editType:"plot"},autorange:a({},n.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:a({},n.minallowed,{editType:"plot"}),maxallowed:a({},n.maxallowed,{editType:"plot"}),range:a({},n.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:n.categoryorder,categoryarray:n.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:n.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:a({},n.title.text,{editType:"plot",dflt:""}),font:a({},n.title.font,{editType:"plot"}),editType:"plot"},hoverformat:n.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};a(u,s,l);var c={visible:a({},n.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:n.autotypenumbers,categoryorder:n.categoryorder,categoryarray:n.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:n.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};a(c,s,l),e.exports={domain:i({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:r.background},radialaxis:u,angularaxis:c,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}})),xT=f(((t,e)=>{var r=le(),n=q(),i=ye(),a=Hs(),o=we().getSubplotData,s=Re(),l=Fe(),u=je(),c=Ue(),h=bi(),f=wi(),p=ar(),d=rr(),m=vT(),g=pT(),y=dT(),v=y.axisNames;function x(t,e,a,d){var x=a("bgcolor");d.bgColor=n.combine(x,d.paper_bgcolor);var b=a("sector");a("hole");var w,T=o(d.fullData,y.name,d.id),k=d.layoutOut;function A(t,e){return a(w+"."+t,e)}for(var M=0;M{var r=we().getSubplotCalcData,n=le().counterRegex,i=yT(),a=dT(),o=a.attr,s=a.name,l=n(s),u={};u[o]={valType:"subplotid",dflt:s,editType:"calc"},e.exports={attr:o,name:s,idRoot:s,idRegex:l,attrRegex:l,attributes:u,layoutAttributes:vT(),supplyLayoutDefaults:xT(),plot:function(t){for(var e=t._fullLayout,n=t.calcdata,a=e._subplots[s],o=0;o{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=D().extendFlat,a=wn(),o=Tn(),s=j(),l=o.line;e.exports={mode:o.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:o.text,texttemplate:n({editType:"plot"},{keys:["r","theta","text"]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,backoff:l.backoff,shape:i({},l.shape,{values:["linear","spline"]}),smoothing:l.smoothing,editType:"calc"},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:i({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:i({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:a(),hoverinfo:i({},s.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:o.hoveron,hovertemplate:r(),selected:o.selected,unselected:o.unselected}})),wT=f(((t,e)=>{var r=le(),n=Ye(),i=Wn(),a=Yn(),o=Xn(),s=$n(),l=Jn(),u=bn().PTS_LINESONLY,c=bT();function h(t,e,n,i){var a,o=i("r"),s=i("theta");if(r.isTypedArray(o)&&(e.r=o=Array.from(o)),r.isTypedArray(s)&&(e.theta=s=Array.from(s)),o)s?a=Math.min(o.length,s.length):(a=o.length,i("theta0"),i("dtheta"));else{if(!s)return 0;a=e.theta.length,i("r0"),i("dr")}return e._length=a,a}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,f,p){function d(n,i){return r.coerce(t,e,c,n,i)}var m=h(0,e,0,d);if(m){d("thetaunit"),d("mode",m{var r=le(),n=ir();e.exports=function(t,e,i){var a,o,s={},l=i[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=i[e.subplot]).radialaxis,o=l.angularaxis);var u=a.c2l(t.r);s.rLabel=n.tickText(a,u,!0).text;var c="degrees"===o.thetaunit?r.rad2deg(t.theta):t.theta;return s.thetaLabel=n.tickText(o,c,!0).text,s}})),kT=f(((t,e)=>{var r=T(),n=k().BADNUM,i=ir(),a=ni(),o=ii(),s=ai(),l=oi().calcMarkerSize;e.exports=function(t,e){for(var u=t._fullLayout,c=e.subplot,h=u[c].radialaxis,f=u[c].angularaxis,p=h.makeCalcdata(e,"r"),d=f.makeCalcdata(e,"theta"),m=e._length,g=new Array(m),y=0;y{var r=fi(),n=k().BADNUM;e.exports=function(t,e,i){for(var a=e.layers.frontplot.select("g.scatterlayer"),o=e.xaxis,s=e.yaxis,l={xaxis:o,yaxis:s,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},u=e.radialAxis,c=e.angularAxis,h=0;h{var r=yi();function n(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="θ";var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,u=[];function c(t,e){u.push(t._hovertitle+": "+e)}if(!e.hovertemplate){var h=l.split("+");-1!==h.indexOf("all")&&(h=["r","theta","text"]),-1!==h.indexOf("r")&&c(i,n.rLabel),-1!==h.indexOf("theta")&&c(a,n.thetaLabel),-1!==h.indexOf("text")&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}e.exports={hoverPoints:function(t,e,i,a){var o=r(t,e,i,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,u=s.cd[s.index],c=s.trace;if(l.isPtInside(u))return s.xLabelVal=void 0,s.yLabelVal=void 0,n(u,c,l,s),s.hovertemplate=c.hovertemplate,o}},makeHoverPointText:n}})),ST=f(((t,e)=>{e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:_T(),categories:["polar","symbols","showLegend","scatter-like"],attributes:bT(),supplyDefaults:wT().supplyDefaults,colorbar:pi(),formatLabels:TT(),calc:kT(),plot:AT(),style:mi().style,styleOnSelect:mi().styleOnSelect,hoverPoints:MT().hoverPoints,selectPoints:vi(),meta:{}}})),ET=f(((t,e)=>{e.exports=ST()})),CT=f(((t,e)=>{var r=bT(),n=Ig(),i=Ot().texttemplateAttrs;e.exports={mode:r.mode,r:r.r,theta:r.theta,r0:r.r0,dr:r.dr,theta0:r.theta0,dtheta:r.dtheta,thetaunit:r.thetaunit,text:r.text,texttemplate:i({editType:"plot"},{keys:["r","theta","text"]}),hovertext:r.hovertext,hovertemplate:r.hovertemplate,line:{color:n.line.color,width:n.line.width,dash:n.line.dash,editType:"calc"},connectgaps:n.connectgaps,marker:n.marker,fill:n.fill,fillcolor:n.fillcolor,textposition:n.textposition,textfont:n.textfont,hoverinfo:r.hoverinfo,selected:r.selected,unselected:r.unselected}})),IT=f(((t,e)=>{var r=le(),n=Ye(),i=wT().handleRThetaDefaults,a=Wn(),o=Yn(),s=$n(),l=Jn(),u=bn().PTS_LINESONLY,c=CT();e.exports=function(t,e,h,f){function p(n,i){return r.coerce(t,e,c,n,i)}var d=i(t,e,f,p);d?(p("thetaunit"),p("mode",d{var r=TT();e.exports=function(t,e,n){var i=t.i;return"r"in t||(t.r=e._r[i]),"theta"in t||(t.theta=e._theta[i]),r(t,e,n)}})),PT=f(((t,e)=>{var r=ni(),n=oi().calcMarkerSize,i=Qg(),a=ir(),o=Cg().TOO_MANY_POINTS;e.exports=function(t,e){var s=t._fullLayout,l=e.subplot,u=s[l].radialaxis,c=s[l].angularaxis,h=e._r=u.makeCalcdata(e,"r"),f=e._theta=c.makeCalcdata(e,"theta"),p=e._length,d={};p{var r=Eg(),n=MT().makeHoverPointText;e.exports={hoverPoints:function(t,e,i,a){var o=t.cd[0].t,s=o.r,l=o.theta,u=r.hoverPoints(t,e,i,a);if(u&&!1!==u[0].index){var c=u[0];if(void 0===c.index)return u;var h=t.subplot,f=c.cd[c.index],p=c.trace;if(f.r=s[c.index],f.theta=l[c.index],h.isPtInside(f))return c.xLabelVal=void 0,c.yLabelVal=void 0,n(f,p,h,c),u}}}})),OT=f(((t,e)=>{e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:_T(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:CT(),supplyDefaults:IT(),colorbar:pi(),formatLabels:LT(),calc:PT(),hoverPoints:zT().hoverPoints,selectPoints:ny(),meta:{}}})),DT=f(((t,e)=>{var r=qg(),n=T(),i=sx(),a=ty(),o=Qg(),s=le(),l=Cg().TOO_MANY_POINTS;e.exports=function(t,e,u){if(u.length){var c=e.radialAxis,h=e.angularAxis,f=a(t,e);return u.forEach((function(i){if(i&&i[0]&&i[0].trace){var a,u=i[0],p=u.trace,d=u.t,m=p._length,g=d.r,y=d.theta,v=d.opts,x=g.slice(),_=y.slice();for(a=0;a=l&&(v.marker.cluster=d.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=b),v.line&&b.length>1&&s.extendFlat(v.line,o.linePositions(t,p,b)),v.text&&(s.extendFlat(v.text,{positions:b},o.textPosition(t,p,v.text,v.marker)),s.extendFlat(v.textSel,{positions:b},o.textPosition(t,p,v.text,v.markerSel)),s.extendFlat(v.textUnsel,{positions:b},o.textPosition(t,p,v.text,v.markerUnsel))),v.fill&&!f.fill2d&&(f.fill2d=!0),v.marker&&!f.scatter2d&&(f.scatter2d=!0),v.line&&!f.line2d&&(f.line2d=!0),v.text&&!f.glText&&(f.glText=!0),f.lineOptions.push(v.line),f.fillOptions.push(v.fill),f.markerOptions.push(v.marker),f.markerSelectedOptions.push(v.markerSel),f.markerUnselectedOptions.push(v.markerUnsel),f.textOptions.push(v.text),f.textSelectedOptions.push(v.textSel),f.textUnselectedOptions.push(v.textUnsel),f.selectBatch.push([]),f.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=g,d.theta=y,d.positions=b,d._scene=f,d.index=f.count,f.count++}})),i(t,e,u)}},e.exports.reglPrecompiled={}})),RT=f(((t,e)=>{var r=OT();r.plot=DT(),e.exports=r})),FT=f(((t,e)=>{e.exports=RT()})),BT=f(((t,e)=>{var r,n=Ot().hovertemplateAttrs,i=D().extendFlat,a=bT(),o=Ga();e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:(r=i({},o.marker),delete r.cornerradius,r),hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}})),NT=f(((t,e)=>{e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}})),jT=f(((t,e)=>{var r=le(),n=wT().handleRThetaDefaults,i=Wa(),a=BT();e.exports=function(t,e,o,s){function l(n,i){return r.coerce(t,e,a,n,i)}n(t,e,s,l)?(l("thetaunit"),l("base"),l("offset"),l("width"),l("text"),l("hovertext"),l("hovertemplate"),i(t,e,l,o,s),r.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}})),UT=f(((t,e)=>{var r=le(),n=NT();e.exports=function(t,e,i){var a,o={};function s(i,o){return r.coerce(t[a]||{},e[a],n,i,o)}for(var l=0;l{var r=Ee().hasColorscale,n=Ze(),i=le().isArrayOrTypedArray,a=$a(),o=li().setGroupPositions,s=ai(),l=qt().traceIs,u=le().extendFlat;e.exports={calc:function(t,e){for(var o=t._fullLayout,l=e.subplot,u=o[l].radialaxis,c=o[l].angularaxis,h=u.makeCalcdata(e,"r"),f=c.makeCalcdata(e,"theta"),p=e._length,d=new Array(p),m=h,g=f,y=0;y{var r=v(),n=T(),i=le(),a=Qe(),o=mT();e.exports=function(t,e,s){var l=t._context.staticPlot,u=e.xaxis,c=e.yaxis,h=e.radialAxis,f=e.angularAxis,p=function(t){var e=t.cxx,r=t.cyy;return t.vangles?function(n,a,s,l){var u,c;i.angleDelta(s,l)>0?(u=s,c=l):(u=l,c=s);var h=[o.findEnclosingVertexAngles(u,t.vangles)[0],(u+c)/2,o.findEnclosingVertexAngles(c,t.vangles)[1]];return o.pathPolygonAnnulus(n,a,u,c,h,e,r)}:function(t,n,a,o){return i.pathAnnulus(t,n,a,o,e,r)}}(e),d=e.layers.frontplot.select("g.barlayer");i.makeTraceGroups(d,s,"trace bars").each((function(){var o=r.select(this),s=i.ensureSingle(o,"g","points").selectAll("g.point").data(i.identity);s.enter().append("g").style("vector-effect",l?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),s.exit().remove(),s.each((function(t){var e,a=r.select(this),o=t.rp0=h.c2p(t.s0),s=t.rp1=h.c2p(t.s1),l=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(n(o)&&n(s)&&n(l)&&n(d)&&o!==s&&l!==d){var m=h.c2g(t.s1),g=(l+d)/2;t.ct=[u.c2p(m*Math.cos(g)),c.c2p(m*Math.sin(g))],e=p(o,s,l,d)}else e="M0,0Z";i.ensureSingle(a,"path").attr("d",e)})),a.setClipUrl(o,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}})),HT=f(((t,e)=>{var r=Or(),n=le(),i=ro().getTraceColor,a=n.fillText,o=MT().makeHoverPointText,s=mT().isPtInsidePolygon;e.exports=function(t,e,l){var u=t.cd,c=u[0].trace,h=t.subplot,f=h.radialAxis,p=h.angularAxis,d=h.vangles,m=d?s:n.isPtInsideSector,g=t.maxHoverDistance,y=p._period||2*Math.PI,v=Math.abs(f.g2p(Math.sqrt(e*e+l*l))),x=Math.atan2(l,e);if(f.range[0]>f.range[1]&&(x+=Math.PI),r.getClosest(u,(function(t){return m(v,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?g+Math.min(1,Math.abs(t.thetag1-t.thetag0)/y)-1+(t.rp1-v)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var _=u[t.index];t.x0=t.x1=_.ct[0],t.y0=t.y1=_.ct[1];var b=n.extendFlat({},_,{r:_.s,theta:_.p});return a(_,c,t),o(b,c,h,t),t.hovertemplate=c.hovertemplate,t.color=i(c,_),t.xLabelVal=t.yLabelVal=void 0,_.s<0&&(t.idealAlign="left"),[t]}}})),GT=f(((t,e)=>{e.exports={moduleType:"trace",name:"barpolar",basePlotModule:_T(),categories:["polar","bar","showLegend"],attributes:BT(),layoutAttributes:NT(),supplyDefaults:jT(),supplyLayoutDefaults:UT(),calc:VT().calc,crossTraceCalc:VT().crossTraceCalc,plot:qT(),colorbar:pi(),formatLabels:TT(),style:to().style,styleOnSelect:to().styleOnSelect,hoverPoints:HT(),selectPoints:io(),meta:{}}})),ZT=f(((t,e)=>{e.exports=GT()})),WT=f(((t,e)=>{e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}})),YT=f(((t,e)=>{var r=V(),n=Ie(),i=ka().attributes,a=le().extendFlat,o=Lt().overrideAll,s=o({color:n.color,showline:a({},n.showline,{dflt:!0}),linecolor:n.linecolor,linewidth:n.linewidth,showgrid:a({},n.showgrid,{dflt:!0}),gridcolor:n.gridcolor,gridwidth:n.gridwidth,griddash:n.griddash},"plot","from-root"),l=o({ticklen:n.ticklen,tickwidth:a({},n.tickwidth,{dflt:2}),tickcolor:n.tickcolor,showticklabels:n.showticklabels,labelalias:n.labelalias,showtickprefix:n.showtickprefix,tickprefix:n.tickprefix,showticksuffix:n.showticksuffix,ticksuffix:n.ticksuffix,tickfont:n.tickfont,tickformat:n.tickformat,hoverformat:n.hoverformat,layer:n.layer},"plot","from-root"),u=a({visible:a({},n.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:a({},n.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},s,l),c=a({visible:a({},n.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:n.ticks,editType:"calc"},s,l);e.exports={domain:i({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:r.background},realaxis:u,imaginaryaxis:c,editType:"calc"}})),XT=f(((t,e)=>{var r,n,i,a=le(),o=q(),s=ye(),l=Hs(),u=we().getSubplotData,c=Ue(),h=je(),f=wi(),p=er(),d=YT(),m=WT(),g=m.axisNames,y=(r=function(t){return a.isTypedArray(t)&&(t=Array.from(t)),t.slice().reverse().map((function(t){return-t})).concat([0]).concat(t)},n=String,i={},function(t){var e=n?n(t):t;if(e in i)return i[e];var a=r(t);return i[e]=a,a});function v(t,e,r,n){var i=r("bgcolor");n.bgColor=o.combine(i,n.paper_bgcolor);var l,v=u(n.fullData,m.name,n.id),x=n.layoutOut;function _(t,e){return r(l+"."+t,e)}for(var b=0;b{var r=we().getSubplotCalcData,n=le().counterRegex,i=yT(),a=WT(),o=a.attr,s=a.name,l=n(s),u={};u[o]={valType:"subplotid",dflt:s,editType:"calc"},e.exports={attr:o,name:s,idRoot:s,idRegex:l,attrRegex:l,attributes:u,layoutAttributes:YT(),supplyLayoutDefaults:XT(),plot:function(t){for(var e=t._fullLayout,n=t.calcdata,a=e._subplots[s],o=0;o{var r=Ot().hovertemplateAttrs,n=Ot().texttemplateAttrs,i=D().extendFlat,a=wn(),o=Tn(),s=j(),l=o.line;e.exports={mode:o.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:o.text,texttemplate:n({editType:"plot"},{keys:["real","imag","text"]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,backoff:l.backoff,shape:i({},l.shape,{values:["linear","spline"]}),smoothing:l.smoothing,editType:"calc"},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:i({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:i({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:a(),hoverinfo:i({},s.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:o.hoveron,hovertemplate:r(),selected:o.selected,unselected:o.unselected}})),KT=f(((t,e)=>{var r=le(),n=Ye(),i=Wn(),a=Yn(),o=Xn(),s=$n(),l=Jn(),u=bn().PTS_LINESONLY,c=JT();e.exports=function(t,e,h,f){function p(n,i){return r.coerce(t,e,c,n,i)}var d=function(t,e,n,i){var a,o=i("real"),s=i("imag");return o&&s&&(a=Math.min(o.length,s.length)),r.isTypedArray(o)&&(e.real=o=Array.from(o)),r.isTypedArray(s)&&(e.imag=s=Array.from(s)),e._length=a,a}(0,e,0,p);if(d){p("mode",d{var r=ir();e.exports=function(t,e,n){var i={},a=n[e.subplot]._subplot;return i.realLabel=r.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=r.tickText(a.angularAxis,t.imag,!0).text,i}})),tk=f(((t,e)=>{var r=T(),n=k().BADNUM,i=ni(),a=ii(),o=ai(),s=oi().calcMarkerSize;e.exports=function(t,e){for(var l=t._fullLayout,u=e.subplot,c=l[u].realaxis,h=l[u].imaginaryaxis,f=c.makeCalcdata(e,"real"),p=h.makeCalcdata(e,"imag"),d=e._length,m=new Array(d),g=0;g{var r=fi(),n=k().BADNUM,i=gT().smith;e.exports=function(t,e,a){for(var o=e.layers.frontplot.select("g.scatterlayer"),s=e.xaxis,l=e.yaxis,u={xaxis:s,yaxis:l,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},c=0;c{var r=yi();function n(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=t.hi||e.hoverinfo,u=[];function c(t,e){u.push(t._hovertitle+": "+e)}if(!e.hovertemplate){var h=l.split("+");-1!==h.indexOf("all")&&(h=["real","imag","text"]),-1!==h.indexOf("real")&&c(i,n.realLabel),-1!==h.indexOf("imag")&&c(a,n.imagLabel),-1!==h.indexOf("text")&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}e.exports={hoverPoints:function(t,e,i,a){var o=r(t,e,i,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,u=s.cd[s.index],c=s.trace;if(l.isPtInside(u))return s.xLabelVal=void 0,s.yLabelVal=void 0,n(u,c,l,s),s.hovertemplate=c.hovertemplate,o}},makeHoverPointText:n}})),nk=f(((t,e)=>{e.exports={moduleType:"trace",name:"scattersmith",basePlotModule:$T(),categories:["smith","symbols","showLegend","scatter-like"],attributes:JT(),supplyDefaults:KT(),colorbar:pi(),formatLabels:QT(),calc:tk(),plot:ek(),style:mi().style,styleOnSelect:mi().styleOnSelect,hoverPoints:rk().hoverPoints,selectPoints:vi(),meta:{}}})),ik=f(((t,e)=>{e.exports=nk()})),ak=f(((t,e)=>{var r=oy();function n(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function a(t,e){return"000000".substring(0,e-(t=""+t).length)+t}function o(){this.shortYearCutoff="+10"}function s(t){this.local=this.regionalOptions[t]||this.regionalOptions[""]}r(n.prototype,{instance:function(t,e){t=(t||"gregorian").toLowerCase(),e=e||"";var r=this._localCals[t+"-"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+"-"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&&t.year?t.calendar():"string"==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+"").replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(0===a?"":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),r(i.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,"y")},month:function(t){return 0===arguments.length?this._month:this.set(t,"m")},day:function(t){return 0===arguments.length?this._day:this.set(t,"d")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?"-":"")+a(Math.abs(this.year()),4)+"-"+a(this.month(),2)+"-"+a(this.day(),2)}}),r(o.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,l.local.invalidDate||l.regionalOptions[""].invalidDate),r=t.day(),e=t.month(),t=t.year()),new i(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(e.year()<0?"-":"")+a(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,l.local.invalidDate||l.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,l.local.invalidDate||l.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,l.local.invalidDate||l.regionalOptions[""].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,"d"===r||"w"===r){var n=t.toJD()+e*("w"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+("y"===r?e:0),o=t.monthOfYear()+("m"===r?e:0);i=t.day(),"y"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):"m"===r&&(function(t){for(;oe-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate);var n="y"===r?e:t.year(),i="m"===r?e:t.month(),a="d"===r?e:t.day();return("y"===r||"m"===r)&&(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,l.local.invalidDate||l.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var l=e.exports=new n;l.cdate=i,l.baseCalendar=o,l.calendars.gregorian=s})),ok=f((()=>{var t=oy(),e=ak();t(e.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),e.local=e.regionalOptions[""],t(e.cdate.prototype,{formatDate:function(t,e){return"string"!=typeof t&&(e=t,t=""),this._calendar.formatDate(t||"",this,e)}}),t(e.baseCalendar.prototype,{UNIX_EPOCH:e.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:e.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(t,r,n){if("string"!=typeof t&&(n=r,r=t,t=""),!r)return"";if(r.calendar()!==this)throw e.local.invalidFormat||e.regionalOptions[""].invalidFormat;t=t||this.local.dateFormat;for(var i=(n=n||{}).dayNamesShort||this.local.dayNamesShort,a=n.dayNames||this.local.dayNames,o=n.monthNumbers||this.local.monthNumbers,s=n.monthNamesShort||this.local.monthNamesShort,l=n.monthNames||this.local.monthNames,u=(n.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;v+n1}),c=function(t,e,r,n){var i=""+e;if(u(t,n))for(;i.length1},x=function(t,n){var i=v(t,n),a=[2,3,i?4:2,i?4:2,10,11,20]["oyYJ@!".indexOf(t)+1],o=new RegExp("^-?\\d{1,"+a+"}"),s=r.substring(A).match(o);if(!s)throw(e.local.missingNumberAt||e.regionalOptions[""].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},_=this,b=function(){if("function"==typeof l){v("m");var t=l.call(_,r.substring(A));return A+=t.length,t}return x("m")},w=function(t,n,i,a){for(var o=v(t,a)?i:n,s=0;s-1){p=1,d=m;for(var E=this.daysInMonth(f,p);d>E;E=this.daysInMonth(f,p))p++,d-=E}return h>-1?this.fromJD(h):this.newDate(f,p,d)},determineDate:function(t,e,r,n,i){r&&"object"!=typeof r&&(i=n,n=r,r=null),"string"!=typeof n&&(i=n,n="");var a=this;return e=e?e.newDate():null,null==t?e:"string"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||"d"),s=o.exec(t);return e}(t):"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,"d"):a.newDate(t)}})})),sk=f((()=>{var t=ak(),e=oy(),r=t.instance();function n(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}n.prototype=new t.baseCalendar,e(n.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(t,e){if("string"==typeof t){var r=t.match(a);return r?r[0]:""}var n=this._validateYear(t),i=t.month(),o=""+this.toChineseMonth(n,i);return e&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,i)&&(o+="i"),o},monthNames:function(t){if("string"==typeof t){var e=t.match(o);return e?e[0]:""}var r=this._validateYear(t),n=t.month(),i=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i="闰"+i),i},monthNamesShort:function(t){if("string"==typeof t){var e=t.match(s);return e?e[0]:""}var r=this._validateYear(t),n=t.month(),i=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i="闰"+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))"闰"===e[0]&&(r=!0,e=e.substring(1)),"月"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(e);else{var i=e[e.length-1];r="i"===i||"I"===i}return this.toMonthIndex(t,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),"number"!=typeof t||t<1888||t>2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(e,r,n){var i=this.intercalaryMonth(e);if(n&&r!==i||r<1||r>12)throw t.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!n&&r<=i?r-1:r:r-1},toChineseMonth:function(e,r){e.year&&(r=(e=e.year()).month());var n=this.intercalaryMonth(e);if(r<0||r>(n?12:11))throw t.local.invalidMonth.replace(/\{0\}/,this.local.name);return n?r>13},isIntercalaryMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(e,n,i){var a,o=this._validateYear(e,t.local.invalidyear),s=u[o-u[0]],l=s>>9&4095,c=s>>5&15,h=31&s;(a=r.newDate(l,c,h)).add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,n,i)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var n=l[e-l[0]];if(r>(n>>13?12:11))throw t.local.invalidMonth.replace(/\{0\}/,this.local.name);return n&1<<12-r?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,n,i){var a=this._validate(e,s,i,t.local.invalidDate);e=this._validateYear(a.year()),n=a.month(),i=a.day();var o=this.isIntercalaryMonth(e,n),s=this.toChineseMonth(e,n),c=function(t,e,r,n){var i,a,o;if("object"==typeof t)a=t,i=e||{};else{var s;if(!("number"==typeof t&&t>=1888&&t<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof e&&e>=1&&e<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(s=!1,i=n):(s=!!n,i={}),a={year:t,month:e,day:r,isIntercalary:s}}o=a.day-1;var c,h=l[a.year-l[0]],f=h>>13;c=f&&(a.month>f||a.isIntercalary)?a.month:a.month-1;for(var p=0;p>9&4095,(d>>5&15)-1,(31&d)+o);return i.year=m.getFullYear(),i.month=1+m.getMonth(),i.day=m.getDate(),i}(e,s,i,o);return r.toJD(c.year,c.month,c.day)},fromJD:function(t){var e=r.fromJD(t),n=function(t,e,r){var n,i;if("object"==typeof t)n=t,i=e||{};else{if(!("number"==typeof t&&t>=1888&&t<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof e&&e>=1&&e<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");n={year:t,month:e,day:r},i={}}var a=u[n.year-u[0]],o=n.year<<9|n.month<<5|n.day;i.year=o>=a?n.year:n.year-1,a=u[i.year-u[0]];var s,c=new Date(a>>9&4095,(a>>5&15)-1,31&a),h=new Date(n.year,n.month-1,n.day);s=Math.round((h-c)/864e5);var f,p=l[i.year-l[0]];for(f=0;f<13;f++){var d=p&1<<12-f?30:29;if(s>13;return!m||f{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return(e=r.year()+(r.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear||t.regionalOptions[""].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(13===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return(e=i.year())<0&&e++,i.day()+30*(i.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),t.calendars.coptic=r})),uk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,n){return(this._validate(e,r,n,t.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(e,r,i){var a=this._validate(e,r,i,t.local.invalidDate);return{century:n[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return e=i.year()+(i.year()<0?1:0),r=i.month(),(n=i.day())+(r>1?16:0)+(r>2?32*(r-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var n={20:"Fruitbat",21:"Anchovy"};t.calendars.discworld=r})),ck=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return(e=r.year()+(r.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear||t.regionalOptions[""].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(13===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return(e=i.year())<0&&e++,i.day()+30*(i.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),t.calendars.ethiopian=r})),hk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function n(t,e){return t-e*Math.floor(t/e)}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(t){return n(7*(t=t<0?t+1:t)+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return e=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear).year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,t.local.invalidMonth),12===r&&this.leapYear(e)||8===r&&5===n(this.daysInYear(e),10)?30:9===r&&3===n(this.daysInYear(e),10)?29:this.daysPerMonth[r-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);e=i.year(),r=i.month(),n=i.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+n+1;if(r<7){for(var s=7;s<=this.monthsInYear(e);s++)o+=this.daysInMonth(e,s);for(s=1;s=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=tthis.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),t.calendars.hebrew=r})),fk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,t.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return e=i.year(),r=i.month(),e=e<=0?e+1:e,(n=i.day())+Math.ceil(29.5*(r-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),t.calendars.islamic=r})),pk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return(e=r.year()<0?r.year()+1:r.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return e=i.year(),r=i.month(),n=i.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+n-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=e-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),t.calendars.julian=r})),dk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function n(t,e){return t-e*Math.floor(t/e)}function i(t,e){return n(t-1,e)+1}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),!1},formatYear:function(e){e=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear).year();var r=Math.floor(e/400);return e%=400,e+=e<0?400:0,r+"."+Math.floor(e/20)+"."+e%20},forYear:function(t){if((t=t.split(".")).length<3)throw"Invalid Mayan year";for(var e=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";e=20*e+n}return e},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),18},weekOfYear:function(e,r,n){return this._validate(e,r,n,t.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,t.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,n){return this._validate(e,r,n,t.local.invalidDate).day()},weekDay:function(e,r,n){return this._validate(e,r,n,t.local.invalidDate),!0},extraInfo:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=n(8+(t-=this.jdEpoch)+340,365);return[Math.floor(e/20)+1,n(e,20)]},_toTzolkin:function(t){return[i(20+(t-=this.jdEpoch),20),i(t+4,13)]},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),t.calendars.mayan=r})),mk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar;var n=t.instance("gregorian");e(r.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear||t.regionalOptions[""].invalidYear);return n.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,r,i){var a=this._validate(e,r,i,t.local.invalidMonth);(e=a.year())<0&&e++;for(var o=a.day(),s=1;s=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),t.calendars.nanakshahi=r})),gk=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){if(e=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,t.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(e,r,n){var i=this._validate(e,r,n,t.local.invalidDate);e=i.year(),r=i.month(),n=i.day();var a=t.instance(),o=0,s=r,l=e;this._createMissingCalendarData(e);var u=e-(s>9||9===s&&n>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==r&&(o=n,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===r?(o+=n-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(u)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=t.instance().fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function n(t,e){return t-e*Math.floor(t/e)}r.prototype=new t.baseCalendar,e(r.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return 682*((r.year()-(r.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(e,r,i){var a=this._validate(e,r,i,t.local.invalidDate);e=a.year(),r=a.month(),i=a.day();var o=e-(e>=0?474:473),s=474+n(o,2820);return i+(r<=7?31*(r-1):30*(r-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(o/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),i=n(e,1029983),a=2820;if(1029982!==i){var o=Math.floor(i/366),s=n(i,366);a=Math.floor((2134*o+2816*s+2815)/1028522)+o+1}var l=a+2820*r+474;l=l<=0?l-1:l;var u=t-this.toJD(l,1,1)+1,c=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),h=t-this.toJD(l,c,1)+1;return this.newDate(l,c,h)}}),t.calendars.persian=r,t.calendars.jalali=r})),vk=f((()=>{var t=ak(),e=oy(),r=t.instance();function n(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}n.prototype=new t.baseCalendar,e(n.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var n=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return e=this._t2gYear(n.year()),r.leapYear(e)},weekOfYear:function(e,n,i){var a=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return e=this._t2gYear(a.year()),r.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,n,i){var a=this._validate(e,n,i,t.local.invalidDate);return e=this._t2gYear(a.year()),r.toJD(e,a.month(),a.day())},fromJD:function(t){var e=r.fromJD(t),n=this._g2tYear(e.year());return this.newDate(n,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),t.calendars.taiwan=n})),xk=f((()=>{var t=ak(),e=oy(),r=t.instance();function n(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}n.prototype=new t.baseCalendar,e(n.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var n=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return e=this._t2gYear(n.year()),r.leapYear(e)},weekOfYear:function(e,n,i){var a=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return e=this._t2gYear(a.year()),r.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,r){var n=this._validate(e,r,this.minDay,t.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(e,n,i){var a=this._validate(e,n,i,t.local.invalidDate);return e=this._t2gYear(a.year()),r.toJD(e,a.month(),a.day())},fromJD:function(t){var e=r.fromJD(t),n=this._g2tYear(e.year());return this.newDate(n,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),t.calendars.thai=n})),_k=f((()=>{var t=ak(),e=oy();function r(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}r.prototype=new t.baseCalendar,e(r.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t.local.invalidYear);return 355===this.daysInYear(r.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(e,r){for(var i=this._validate(e,r,this.minDay,t.local.invalidMonth).toJD()-24e5+.5,a=0,o=0;oi)return n[a]-n[a-1];a++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(e,r,i){var a=this._validate(e,r,i,t.local.invalidDate),o=12*(a.year()-1)+a.month()-15292;return a.day()+n[o-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,i=0;ie);i++)r++;var a=r+15292,o=Math.floor((a-1)/12),s=o+1,l=a-12*o,u=e-n[r-1]+1;return this.newDate(s,l,u)},isValid:function(e,r,n){var i=t.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(e=null!=e.year?e.year:e)>=1276&&e<=1500),i},_validate:function(e,r,n,i){var a=t.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}}),t.calendars.ummalqura=r;var n=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]})),bk=f(((t,e)=>{e.exports=ak(),ok(),sk(),lk(),uk(),ck(),hk(),fk(),pk(),dk(),mk(),gk(),yk(),vk(),xk(),_k()})),wk=f(((t,e)=>{var r=bk(),n=le(),i=k(),a=i.EPOCHJD,o=i.ONEDAY,s={valType:"enumerated",values:n.sortObjectKeys(r.calendars),editType:"calc",dflt:"gregorian"},l=function(t,e,r,i){var a={};return a[r]=s,n.coerce(t,e,a,r,i)},u="##",c={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:u,w:u,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},h={};function f(t){var e=h[t];return e||(h[t]=r.instance(t))}function p(t){return n.extendFlat({},s,{description:t})}function d(t){return"Sets the calendar system to use with `"+t+"` date data."}var m={xcalendar:p(d("x"))},g=n.extendFlat({},m,{ycalendar:p(d("y"))}),y=n.extendFlat({},g,{zcalendar:p(d("z"))}),v=p(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));e.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:y,surface:y,mesh3d:y,scattergl:g,ohlc:m,candlestick:m},layout:{calendar:p(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:v},yaxis:{calendar:v},scene:{xaxis:{calendar:v},yaxis:{calendar:v},zaxis:{calendar:v}},polar:{radialaxis:{calendar:v}}}},layoutAttributes:s,handleDefaults:l,handleTraceDefaults:function(t,e,r,n){for(var i=0;i{e.exports=wk()}));return f(((t,e)=>{var r=qa();r.register([oo(),_o(),Go(),ts(),os(),Is(),Os(),Ys(),ol(),bl(),Dl(),Ic(),Uc(),qp(),od(),vd(),Ed(),am(),hm(),_m(),Am(),Im(),Rm(),Um(),yg(),Sg(),ux(),Sx(),Qx(),s_(),M_(),P_(),U_(),lb(),db(),Tb(),Hb(),Kb(),lw(),Ow(),Hw(),Jw(),sT(),fT(),ET(),FT(),ZT(),ik(),Tk()]),e.exports=r}))()})();return window.Plotly=t,t},t.exports?t.exports=r():e.moduleName=r()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};r.d(n,{A:()=>l});var i=r(555),a=r.n(i),o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r50){var r=this.cache.keys().next().value;r&&this.cache.delete(r)}},t}());const l={renderpluginfactory:function(t){var e=t.React,r=function(t){var r=t.data,n=t.layout,i=t.staticPlot,s=void 0!==i&&i,l=e.useRef(null),u=e.useCallback((function(){l.current&&a().react(l.current,r,o(o({},n),{autosize:!0}),{displayModeBar:!s,staticPlot:s,responsive:!0})}),[r,n,s]);return e.useEffect((function(){l.current&&u()}),[u]),e.createElement("div",{className:"funcnodes_plotly_container",ref:l}," ")},n=function(t){var r=t.data,n=t.layout,i=t.width,o=void 0===i?800:i,l=t.height,u=void 0===l?800:l,c=e.useRef(null),h=e.useState(void 0),f=h[0],p=h[1];return e.useEffect((function(){!function(){var t,e,i,l;t=this,e=void 0,l=function(){var t,e,i,l;return function(t,e){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=1.0.0", + "react": "^19.0.0" + }, + "devDependencies": { + "@linkdlab/funcnodes-react-flow-plugin": "^1.0.1", + "@types/plotly.js": "^3", + "@types/react": "^19.0.0", + "@types/react-plotly.js": "^2", + "@vitejs/plugin-react": "^4.0.0", + "react": "^19.1.1", + "typescript": "^5.0.0", + "vite": "^7.0.0", + "vite-plugin-dts": "^4.0.0" + }, + "dependencies": { + "plotly.js": "^3.1.0", + "react-plotly.js": "^2.6.0" + } } diff --git a/src/react_plugin/src/index.tsx b/src/react_plugin/src/index.tsx index f2a748f..0b482e1 100644 --- a/src/react_plugin/src/index.tsx +++ b/src/react_plugin/src/index.tsx @@ -1,307 +1,167 @@ -import { v1_types } from "@linkdlab/funcnodes_react_flow"; -import plotly from "plotly.js-dist-min"; +import * as React from "react"; +import Plot from "react-plotly.js"; +import * as Plotly from "plotly.js"; +import { + FuncNodesReactPlugin, + LATEST_VERSION, + RenderPluginFactoryProps, + RendererPlugin, + DataViewRendererType, + DataViewRendererProps, + DataViewRendererToDataPreviewViewRenderer, +} from "@linkdlab/funcnodes-react-flow-plugin"; import "./style.css"; -// Helper to enhance a layout with automatic margins for axes -const enhanceLayout = (layout: Partial = {}) => { - // Create a deep copy to avoid side effects - const newLayout = JSON.parse(JSON.stringify(layout)); - Object.keys(newLayout).forEach((key) => { - if (key.startsWith("xaxis") || key.startsWith("yaxis")) { - const axisKey = key.split("_")[0]; - if (!newLayout[axisKey]) { - newLayout[axisKey] = {}; - } - newLayout[axisKey].automargin = true; - } - }); - return newLayout; -}; - -// Define your maximum cache size -const MAX_CACHE_SIZE = 50; +// Minimum delay between renders in milliseconds +const RENDER_DELAY_MS = 1000; -class LRUCache { - private cache = new Map(); +const PreviewPlotlyImageRenderer: DataViewRendererType = ({ + value, +}: DataViewRendererProps) => { + const [renderedValue, setRenderedValue] = React.useState(value); + const latestValueRef = React.useRef(value); + const timeoutRef = React.useRef(null); + const lastRenderTimeRef = React.useRef(0); - get(key: K): V | undefined { - if (!this.cache.has(key)) return undefined; - const value = this.cache.get(key)!; - // Mark key as recently used: remove and re-insert it. - this.cache.delete(key); - this.cache.set(key, value); - return value; - } - - set(key: K, value: V) { - if (this.cache.has(key)) { - this.cache.delete(key); - } - this.cache.set(key, value); - // Evict the oldest entry if cache size exceeds the maximum - if (this.cache.size > MAX_CACHE_SIZE) { - const oldestKey = this.cache.keys().next().value; - if (oldestKey) this.cache.delete(oldestKey); + const scheduleRender = React.useCallback(() => { + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); } - } -} -// Create a global LRU cache instance -const globalPlotlyImageCache = new LRUCache(); + const now = Date.now(); + const timeSinceLastRender = now - lastRenderTimeRef.current; + const delay = Math.max(0, RENDER_DELAY_MS - timeSinceLastRender); -const renderpluginfactory = ({ - React, -}: // _fnrf_zst, -// NodeContext, -v1_types.RenderPluginFactoryProps) => { - const RenderFigure = ({ - data, - layout, - staticPlot = false, - }: { - data: Plotly.Data[]; - layout: Partial; - staticPlot?: boolean; - }) => { - const plotRef = React.useRef(null); + timeoutRef.current = setTimeout(() => { + setRenderedValue(latestValueRef.current); + lastRenderTimeRef.current = Date.now(); + timeoutRef.current = null; + }, delay); + }, []); - // Memoize replot function to avoid unnecessary re-renders - const replot = React.useCallback(() => { - if (!plotRef.current) return; - // console.log("Rendering plot"); - plotly.react( - plotRef.current, - data, - { ...layout, autosize: true }, - { - displayModeBar: !staticPlot, - staticPlot, - responsive: true, - } - ); - }, [data, layout, staticPlot]); + React.useEffect(() => { + latestValueRef.current = value; + scheduleRender(); - // Effect for updating the plot on dependency changes - React.useEffect(() => { - if (plotRef.current) { - replot(); + return () => { + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); } - }, [replot]); - - // // Effect for cleanup only when the component unmounts - // React.useEffect(() => { - // return () => { - // if (plotRef.current) { - // plotly.purge(plotRef.current); - // } - // }; - // }, []); - - return ( -
- {" "} -
- ); - }; - - const PlotlyOverlayRenderer: v1_types.DataOverlayRendererType = ({ - value, - preValue, - }: v1_types.DataOverlayRendererProps) => { - const usevalue = value ?? preValue; + }; + }, [value, scheduleRender]); + + if (!renderedValue) return <>; + // if not an object, return null + if (typeof renderedValue !== "object") return <>; + if (!("data" in renderedValue) || !("layout" in renderedValue)) return <>; + + const { data, layout, ...rest } = renderedValue; + // if not an object, return null + const plotlylayout = layout as unknown as Plotly.Layout; + plotlylayout.autosize = true; + return ( +
+ +
+ ); +}; - const ref = React.useRef(null); - if (usevalue === undefined) { - return
Plotly figure not found
; +const PlotlyImageRenderer: DataViewRendererType = ({ + value, +}: DataViewRendererProps) => { + const [renderedValue, setRenderedValue] = React.useState(value); + const latestValueRef = React.useRef(value); + const timeoutRef = React.useRef(null); + const lastRenderTimeRef = React.useRef(0); + + const scheduleRender = React.useCallback(() => { + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); } - const layout = value.layout ?? {}; - // React.useEffect(() => { - // if (!ref.current) return; - // ref.current.style.minHeight = (ref.current.clientWidth * 2) / 3 + "px"; - - // const observer = new ResizeObserver((entries) => { - // for (let entry of entries) { - // if (entry.target === ref.current) { - // ref.current.style.height = ref.current.clientWidth + "px"; - // } - // } - // }); - // // observer.observe(ref.current); - // return () => observer.disconnect(); - // }, []); - return ( -
- -
- ); - }; - - // const PreviewPlotlyRenderer = ({ io }: { io: IOType }) => { - // let value = io.fullvalue; - // const ref = React.useRef(null); - // if (value == undefined) value = io.value; - // if (value === undefined) { - // value = {}; - // } - - // const layout = JSON.parse(JSON.stringify(value.layout || {})); - // //make deep copy of layout - // React.useEffect(() => { - // if (!ref.current) return; - // ref.current.style.height = ref.current.clientWidth + "px"; + const now = Date.now(); + const timeSinceLastRender = now - lastRenderTimeRef.current; + const delay = Math.max(0, RENDER_DELAY_MS - timeSinceLastRender); - // const observer = new ResizeObserver((entries) => { - // for (let entry of entries) { - // if (entry.target === ref.current) { - // ref.current.style.height = ref.current.clientWidth + "px"; - // } - // } - // }); - // observer.observe(ref.current); - // return () => observer.disconnect(); - // }, []); + timeoutRef.current = setTimeout(() => { + setRenderedValue(latestValueRef.current); + lastRenderTimeRef.current = Date.now(); + timeoutRef.current = null; + }, delay); + }, []); - // layout.margin = { l: 10, r: 10, t: 10, b: 10 }; - // layout.legend = { - // yanchor: "top", - // y: 0.99, - // xanchor: "left", - // x: 0.01, - // }; + React.useEffect(() => { + latestValueRef.current = value; + scheduleRender(); - // const axes: string[] = []; - // for (const layoutkey in layout) { - // if (layoutkey.startsWith("xaxis") || layoutkey.startsWith("yaxis")) { - // const axis = layoutkey.split("_")[0]; - // if (!axes.includes(axis)) { - // axes.push(axis); - // } - // } - // } - - // for (const axis of axes) { - // if (layout[axis] === undefined) { - // layout[axis] = {}; - // } - // layout[axis].automargin = true; - // } - // if (layout.title?.text) layout.margin.t += 40; - - // return ( - //
- // - //
- // ); - // }; - - const RenderImageFigure = ({ - data, - layout, - width = 800, - height = 800, - }: { - data: Plotly.Data[]; - layout: Partial; - width?: number; - height?: number; - }) => { - const dummyRef = React.useRef(null); - const [imgSrc, setImgSrc] = React.useState(undefined); - - // call Effect as soon as the lazy laoded Plotly is available - React.useEffect(() => { - async function render() { - if (!dummyRef.current) return; - const key = JSON.stringify({ data, layout, width, height }); - const cached = globalPlotlyImageCache.get(key); - if (cached) { - setImgSrc(cached); - return; - } - // console.log("Rendering image", key.length); - const plot = await plotly.react(dummyRef.current, data, layout); - const url = await plotly.toImage(plot, { - format: "png", - width: width, - height: height, - }); - // destroy plot - // Purge the dummy plot - // Cache the generated image - - globalPlotlyImageCache.set(key, url); - setImgSrc(url); - try { - plotly.purge(dummyRef.current); - } catch (e) {} + return () => { + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); } - render(); - }, [data, layout, width, height]); - return ( - <> - {imgSrc && ( - Plotly chart - )} -
- - ); - }; - - const PreviewPlotlyImageRenderer: v1_types.DataViewRendererType = ({ - value, - preValue, - width = 800, - height = 800, - }: v1_types.DataViewRendererProps & { - width?: number; - height?: number; - }) => { - const usevalue = value ?? preValue; - if (usevalue === undefined) { - return
Plotly figure not found
; - } - const layout = enhanceLayout(value.layout ?? {}); - - return ( - - ); - }; - - // const HandlePlotlyRenderer: v1_types.DataPreviewViewRendererType = ({ - // iostore, - // }: v1_types.DataPreviewViewRendererProps) => { - // return ( - //
- // - //
- // ); - // }; + }; + }, [value, scheduleRender]); + + if (!renderedValue) return <>; + // if not an object, return null + if (typeof renderedValue !== "object") return <>; + if (!("data" in renderedValue) || !("layout" in renderedValue)) return <>; + + const { data, layout, ...rest } = renderedValue; + // if not an object, return null + const plotlylayout = layout as unknown as Plotly.Layout; + plotlylayout.autosize = true; + return ( + + ); +}; - return { - // handle_preview_renderers: { - // "plotly.Figure": HandlePlotlyRenderer, +const renderpluginfactory = ({}: RenderPluginFactoryProps) => { + const MyRendererPlugin: RendererPlugin = { + // data_overlay_renderers: { + // "plotly.Figure": PlotlyOverlayRenderer, // }, - data_overlay_renderers: { - "plotly.Figure": PlotlyOverlayRenderer, + data_preview_renderers: { + "plotly.Figure": DataViewRendererToDataPreviewViewRenderer( + PreviewPlotlyImageRenderer + ), }, - // data_preview_renderers: { - // "plotly.Figure": PreviewPlotlyImageRenderer, - // }, data_view_renderers: { - "plotly.Figure": PreviewPlotlyImageRenderer, + "plotly.Figure": PlotlyImageRenderer, }, }; + + return MyRendererPlugin; }; -const Plugin: v1_types.FuncNodesReactPlugin = { +const Plugin: FuncNodesReactPlugin = { renderpluginfactory: renderpluginfactory, - v: 1, + v: LATEST_VERSION, }; export default Plugin; diff --git a/src/react_plugin/src/style.css b/src/react_plugin/src/style.css index 07cb16c..89ed653 100644 --- a/src/react_plugin/src/style.css +++ b/src/react_plugin/src/style.css @@ -1,6 +1,8 @@ .funcnodes_plotly_container { width: 100%; height: 100%; + min-height: 300px; + min-width: 300px; } .dialogchildren .funcnodes_plotly_container { diff --git a/src/react_plugin/test/import.test.js b/src/react_plugin/test/import.test.js deleted file mode 100644 index 1f5488d..0000000 --- a/src/react_plugin/test/import.test.js +++ /dev/null @@ -1,10 +0,0 @@ -import assert from "assert"; - -describe("Test Helpers", () => { - it("test import", async () => { - const moduleExports = await import("../dist/js/main.js"); - console.log(moduleExports); - console.log(moduleExports.default); // This should log all exported elements - assert.ok(moduleExports.default.RendererPlugin); - }); -}); diff --git a/src/react_plugin/tsconfig.json b/src/react_plugin/tsconfig.json index 7c7dd29..563a388 100644 --- a/src/react_plugin/tsconfig.json +++ b/src/react_plugin/tsconfig.json @@ -1,27 +1,32 @@ { - "compilerOptions": { - "outDir": "dist", - "module": "esnext", - "lib": ["dom", "dom.iterable", "esnext"], - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "esModuleInterop": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noImplicitAny": true, - "strictNullChecks": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "allowJs": true, - "skipLibCheck": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react" - }, - "include": ["src"] -} + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "declaration": true, + "declarationDir": "dist", + "outDir": "dist", + "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + "paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */} + }, + "include": [ + "src" + ], + "references": [] +} \ No newline at end of file diff --git a/src/react_plugin/vite.config.ts b/src/react_plugin/vite.config.ts new file mode 100644 index 0000000..3ecb466 --- /dev/null +++ b/src/react_plugin/vite.config.ts @@ -0,0 +1,49 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import dts from "vite-plugin-dts"; +import path from "path"; +import { fileURLToPath } from "url"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +export default defineConfig(({ mode }) => ({ + plugins: [ + react(), + dts({ + insertTypesEntry: true, + }), + ], + resolve: { + alias: {}, + }, + server: { + watch: { + usePolling: true, + additionalPaths: (watcher) => { + watcher.add(path.resolve(__dirname, "src/**")); // Watch all files in the src directory + }, + }, + }, + define: { + "process.env.NODE_ENV": JSON.stringify(mode), + }, + build: { + lib: { + entry: path.resolve(__dirname, "src/index.tsx"), + name: "FuncNodesPlugin", + formats: ["es", "cjs", "umd", "iife"], + fileName: (format) => `index.${format}.js`, + }, + rollupOptions: { + external: ["react", "react-dom", "@linkdlab/funcnodes_react_flow"], + output: { + globals: { + react: "React", + "react-dom": "ReactDOM", + "@linkdlab/funcnodes_react_flow": "FuncNodesReactFlow", + }, + }, + }, + }, +})); diff --git a/src/react_plugin/webpack.config.cjs b/src/react_plugin/webpack.config.cjs deleted file mode 100644 index 57796d3..0000000 --- a/src/react_plugin/webpack.config.cjs +++ /dev/null @@ -1,134 +0,0 @@ -// webpack.config.js -const path = require("path"); -const MiniCssExtractPlugin = require("mini-css-extract-plugin"); - -module.exports = { - context: __dirname, - entry: "./src/index.tsx", - - output: { - path: path.resolve(__dirname, "dist"), - filename: "js/[name].js", - library: { - type: "module", - }, - }, - performance: { - maxEntrypointSize: 5 * 1024 * 1024, // 5mb - maxAssetSize: 5 * 1024 * 1024, // 5mb - }, - // mode: "development", - mode: "production", - module: { - rules: [ - //typescript - { - test: /\.(tsx|ts)$/, - use: [ - { - loader: "ts-loader", - options: { - configFile: "tsconfig.json", - }, - }, - ], - exclude: /node_modules/, - }, - //css - { - test: /\.css$/, - use: [ - // "style-loader", - MiniCssExtractPlugin.loader, - { loader: "css-loader", options: { importLoaders: 5 } }, - { - loader: "postcss-loader", - options: { - postcssOptions: { - plugins: [require("autoprefixer"), require("cssnano")], - }, - }, - }, - ], - sideEffects: true, - }, - //javascript - { - test: /\.js$/, - use: "babel-loader", - }, - //scss - { - test: /\.scss$/, - sideEffects: true, - use: [ - MiniCssExtractPlugin.loader, - { - loader: "css-loader", - options: { - importLoaders: 5, - url: true, // Ensure CSS loader handles URL() paths - }, - }, - - { - loader: "postcss-loader", - options: { - postcssOptions: { - plugins: [require("autoprefixer"), require("cssnano")], - }, - }, - }, - { - loader: "sass-loader", - }, - ], - }, - //images - { - test: /\.(png|svg|jpg|jpeg|gif|webp)$/i, - type: "asset/resource", - generator: { - filename: "img/[name][ext][query]", - }, - }, - //fonts - { - test: /\.(woff|woff2|eot|ttf|otf)$/i, - type: "asset/resource", - generator: { - filename: "fonts/[name][ext][query]", - }, - }, - ], - }, - - plugins: [ - new MiniCssExtractPlugin({ - filename: "css/style.css", - chunkFilename: "css/[name].css", - }), - ], - resolve: { - extensions: [ - ".js", - ".jsx", - ".tsx", - ".ts", - ".html", - ".scss", - ".css", - ".ttf", - ], - }, - optimization: { - splitChunks: false, - }, - experiments: { - outputModule: true, - }, - externals: { - react: "React", - "react-dom": "ReactDOM", - }, -}; diff --git a/src/react_plugin/yarn.lock b/src/react_plugin/yarn.lock index 208b595..ef56da2 100644 --- a/src/react_plugin/yarn.lock +++ b/src/react_plugin/yarn.lock @@ -1,11938 +1,5138 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@alloc/quick-lru@^5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" - integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== - -"@ampproject/remapping@^2.2.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" - integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.24" - -"@apideck/better-ajv-errors@^0.3.1": - version "0.3.6" - resolved "https://registry.yarnpkg.com/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz#957d4c28e886a64a8141f7522783be65733ff097" - integrity sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA== - dependencies: - json-schema "^0.4.0" - jsonpointer "^5.0.0" - leven "^3.1.0" - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.26.2", "@babel/code-frame@^7.8.3": - version "7.26.2" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" - integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== - dependencies: - "@babel/helper-validator-identifier" "^7.25.9" - js-tokens "^4.0.0" - picocolors "^1.0.0" - -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.26.8": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" - integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== - -"@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.8.0": - version "7.26.10" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.10.tgz#5c876f83c8c4dcb233ee4b670c0606f2ac3000f9" - integrity sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.10" - "@babel/helper-compilation-targets" "^7.26.5" - "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.10" - "@babel/parser" "^7.26.10" - "@babel/template" "^7.26.9" - "@babel/traverse" "^7.26.10" - "@babel/types" "^7.26.10" - convert-source-map "^2.0.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.3" - semver "^6.3.1" - -"@babel/eslint-parser@^7.16.3": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.27.0.tgz#d55e52a5ef3b164139a799dc522c338faba3507c" - integrity sha512-dtnzmSjXfgL/HDgMcmsLSzyGbEosi4DrGWoCNfuI+W4IkVJw6izpTe7LtOdwAXnkDqw5yweboYCTkM2rQizCng== - dependencies: - "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" - eslint-visitor-keys "^2.1.0" - semver "^6.3.1" - -"@babel/generator@^7.26.10", "@babel/generator@^7.27.0", "@babel/generator@^7.7.2": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.27.0.tgz#764382b5392e5b9aff93cadb190d0745866cbc2c" - integrity sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw== - dependencies: - "@babel/parser" "^7.27.0" - "@babel/types" "^7.27.0" - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^3.0.2" - -"@babel/helper-annotate-as-pure@^7.18.6", "@babel/helper-annotate-as-pure@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz#d8eac4d2dc0d7b6e11fa6e535332e0d3184f06b4" - integrity sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g== - dependencies: - "@babel/types" "^7.25.9" - -"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.25.9", "@babel/helper-compilation-targets@^7.26.5": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz#de0c753b1cd1d9ab55d473c5a5cf7170f0a81880" - integrity sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA== - dependencies: - "@babel/compat-data" "^7.26.8" - "@babel/helper-validator-option" "^7.25.9" - browserslist "^4.24.0" - lru-cache "^5.1.1" - semver "^6.3.1" - -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0", "@babel/helper-create-class-features-plugin@^7.25.9", "@babel/helper-create-class-features-plugin@^7.27.0": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.0.tgz#518fad6a307c6a96f44af14912b2c20abe9bfc30" - integrity sha512-vSGCvMecvFCd/BdpGlhpXYNhhC4ccxyvQWpbGL4CWbvfEoLFWUZuSuf7s9Aw70flgQF+6vptvgK2IfOnKlRmBg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-member-expression-to-functions" "^7.25.9" - "@babel/helper-optimise-call-expression" "^7.25.9" - "@babel/helper-replace-supers" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - "@babel/traverse" "^7.27.0" - semver "^6.3.1" - -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.25.9": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.0.tgz#0e41f7d38c2ebe06ebd9cf0e02fb26019c77cd95" - integrity sha512-fO8l08T76v48BhpNRW/nQ0MxfnSdoSKUJBMjubOAYffsVuGG5qOfMq7N6Es7UJvi7Y8goXXo07EfcHZXDPuELQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - regexpu-core "^6.2.0" - semver "^6.3.1" - -"@babel/helper-define-polyfill-provider@^0.6.3", "@babel/helper-define-polyfill-provider@^0.6.4": - version "0.6.4" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.4.tgz#15e8746368bfa671785f5926ff74b3064c291fab" - integrity sha512-jljfR1rGnXXNWnmQg2K3+bvhkxB51Rl32QRaOTuwwjviGrHzIbSc8+x9CpraDtbT7mfyjXObULP4w/adunNwAw== - dependencies: - "@babel/helper-compilation-targets" "^7.22.6" - "@babel/helper-plugin-utils" "^7.22.5" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - -"@babel/helper-member-expression-to-functions@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz#9dfffe46f727005a5ea29051ac835fb735e4c1a3" - integrity sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.16.7", "@babel/helper-module-imports@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz#e7f8d20602ebdbf9ebbea0a0751fb0f2a4141715" - integrity sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-module-transforms@^7.25.9", "@babel/helper-module-transforms@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz#8ce54ec9d592695e58d84cd884b7b5c6a2fdeeae" - integrity sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw== - dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/helper-optimise-call-expression@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz#3324ae50bae7e2ab3c33f60c9a877b6a0146b54e" - integrity sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ== - dependencies: - "@babel/types" "^7.25.9" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" - integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== - -"@babel/helper-remap-async-to-generator@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz#e53956ab3d5b9fb88be04b3e2f31b523afd34b92" - integrity sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-wrap-function" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/helper-replace-supers@^7.25.9", "@babel/helper-replace-supers@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz#6cb04e82ae291dae8e72335dfe438b0725f14c8d" - integrity sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.25.9" - "@babel/helper-optimise-call-expression" "^7.25.9" - "@babel/traverse" "^7.26.5" - -"@babel/helper-skip-transparent-expression-wrappers@^7.20.0", "@babel/helper-skip-transparent-expression-wrappers@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz#0b2e1b62d560d6b1954893fd2b705dc17c91f0c9" - integrity sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-string-parser@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz#1aabb72ee72ed35789b4bbcad3ca2862ce614e8c" - integrity sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA== - -"@babel/helper-validator-identifier@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz#24b64e2c3ec7cd3b3c547729b8d16871f22cbdc7" - integrity sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ== - -"@babel/helper-validator-option@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72" - integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== - -"@babel/helper-wrap-function@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz#d99dfd595312e6c894bd7d237470025c85eea9d0" - integrity sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g== - dependencies: - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helpers@^7.26.10": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.0.tgz#53d156098defa8243eab0f32fa17589075a1b808" - integrity sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg== - dependencies: - "@babel/template" "^7.27.0" - "@babel/types" "^7.27.0" - -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.26.10", "@babel/parser@^7.27.0": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.27.0.tgz#3d7d6ee268e41d2600091cbd4e145ffee85a44ec" - integrity sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg== - dependencies: - "@babel/types" "^7.27.0" - -"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz#cc2e53ebf0a0340777fff5ed521943e253b4d8fe" - integrity sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/plugin-bugfix-safari-class-field-initializer-scope@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz#af9e4fb63ccb8abcb92375b2fcfe36b60c774d30" - integrity sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz#e8dc26fcd616e6c5bf2bd0d5a2c151d4f92a9137" - integrity sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz#807a667f9158acac6f6164b4beb85ad9ebc9e1d1" - integrity sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - "@babel/plugin-transform-optional-chaining" "^7.25.9" - -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz#de7093f1e7deaf68eadd7cc6b07f2ab82543269e" - integrity sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/plugin-proposal-class-properties@^7.16.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-proposal-decorators@^7.16.4": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.25.9.tgz#8680707f943d1a3da2cd66b948179920f097e254" - integrity sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/plugin-syntax-decorators" "^7.25.9" - -"@babel/plugin-proposal-nullish-coalescing-operator@^7.16.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" - integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - -"@babel/plugin-proposal-numeric-separator@^7.16.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz#899b14fbafe87f053d2c5ff05b36029c62e13c75" - integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - -"@babel/plugin-proposal-optional-chaining@^7.16.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz#886f5c8978deb7d30f678b2e24346b287234d3ea" - integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA== - dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - -"@babel/plugin-proposal-private-methods@^7.16.0": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz#5209de7d213457548a98436fa2882f52f4be6bea" - integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": - version "7.21.0-placeholder-for-preset-env.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" - integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== - -"@babel/plugin-proposal-private-property-in-object@^7.16.7": - version "7.21.11" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz#69d597086b6760c4126525cfa154f34631ff272c" - integrity sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.21.0" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== - dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - -"@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" - integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-decorators@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.25.9.tgz#986b4ca8b7b5df3f67cee889cedeffc2e2bf14b3" - integrity sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-flow@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz#96507595c21b45fccfc2bc758d5c45452e6164fa" - integrity sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-import-assertions@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz#620412405058efa56e4a564903b79355020f445f" - integrity sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-import-attributes@^7.24.7", "@babel/plugin-syntax-import-attributes@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz#3b1412847699eea739b4f2602c74ce36f6b0b0f7" - integrity sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-import-meta@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-jsx@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz#a34313a178ea56f1951599b929c1ceacee719290" - integrity sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" - integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-top-level-await@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-typescript@^7.25.9", "@babel/plugin-syntax-typescript@^7.7.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz#67dda2b74da43727cf21d46cf9afef23f4365399" - integrity sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-syntax-unicode-sets-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" - integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-arrow-functions@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz#7821d4410bee5daaadbb4cdd9a6649704e176845" - integrity sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-async-generator-functions@^7.26.8": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz#5e3991135e3b9c6eaaf5eff56d1ae5a11df45ff8" - integrity sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-remap-async-to-generator" "^7.25.9" - "@babel/traverse" "^7.26.8" - -"@babel/plugin-transform-async-to-generator@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz#c80008dacae51482793e5a9c08b39a5be7e12d71" - integrity sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ== - dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-remap-async-to-generator" "^7.25.9" - -"@babel/plugin-transform-block-scoped-functions@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz#3dc4405d31ad1cbe45293aa57205a6e3b009d53e" - integrity sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - -"@babel/plugin-transform-block-scoping@^7.25.9": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.27.0.tgz#acc2c0d98a7439bbde4244588ddbd4904701d47f" - integrity sha512-u1jGphZ8uDI2Pj/HJj6YQ6XQLZCNjOlprjxB5SVz6rq2T6SwAR+CdrWK0CP7F+9rDVMXdB0+r6Am5G5aobOjAQ== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - -"@babel/plugin-transform-class-properties@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz#a8ce84fedb9ad512549984101fa84080a9f5f51f" - integrity sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-class-static-block@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz#6c8da219f4eb15cae9834ec4348ff8e9e09664a0" - integrity sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-classes@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz#7152457f7880b593a63ade8a861e6e26a4469f52" - integrity sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-replace-supers" "^7.25.9" - "@babel/traverse" "^7.25.9" - globals "^11.1.0" - -"@babel/plugin-transform-computed-properties@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz#db36492c78460e534b8852b1d5befe3c923ef10b" - integrity sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/template" "^7.25.9" - -"@babel/plugin-transform-destructuring@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz#966ea2595c498224340883602d3cfd7a0c79cea1" - integrity sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-dotall-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz#bad7945dd07734ca52fe3ad4e872b40ed09bb09a" - integrity sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-duplicate-keys@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz#8850ddf57dce2aebb4394bb434a7598031059e6d" - integrity sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-duplicate-named-capturing-groups-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz#6f7259b4de127721a08f1e5165b852fcaa696d31" - integrity sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-dynamic-import@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz#23e917de63ed23c6600c5dd06d94669dce79f7b8" - integrity sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-exponentiation-operator@^7.26.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz#e29f01b6de302c7c2c794277a48f04a9ca7f03bc" - integrity sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-export-namespace-from@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz#90745fe55053394f554e40584cda81f2c8a402a2" - integrity sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-flow-strip-types@^7.16.0": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.26.5.tgz#2904c85a814e7abb1f4850b8baf4f07d0a2389d4" - integrity sha512-eGK26RsbIkYUns3Y8qKl362juDDYK+wEdPGHGrhzUl6CewZFo55VZ7hg+CyMFU4dd5QQakBN86nBMpRsFpRvbQ== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/plugin-syntax-flow" "^7.26.0" - -"@babel/plugin-transform-for-of@^7.26.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz#27231f79d5170ef33b5111f07fe5cafeb2c96a56" - integrity sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - -"@babel/plugin-transform-function-name@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz#939d956e68a606661005bfd550c4fc2ef95f7b97" - integrity sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA== - dependencies: - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/plugin-transform-json-strings@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz#c86db407cb827cded902a90c707d2781aaa89660" - integrity sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-literals@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz#1a1c6b4d4aa59bc4cad5b6b3a223a0abd685c9de" - integrity sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-logical-assignment-operators@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz#b19441a8c39a2fda0902900b306ea05ae1055db7" - integrity sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-member-expression-literals@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz#63dff19763ea64a31f5e6c20957e6a25e41ed5de" - integrity sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-modules-amd@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz#49ba478f2295101544abd794486cd3088dddb6c5" - integrity sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw== - dependencies: - "@babel/helper-module-transforms" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-modules-commonjs@^7.26.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz#8f011d44b20d02c3de44d8850d971d8497f981fb" - integrity sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ== - dependencies: - "@babel/helper-module-transforms" "^7.26.0" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-modules-systemjs@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz#8bd1b43836269e3d33307151a114bcf3ba6793f8" - integrity sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA== - dependencies: - "@babel/helper-module-transforms" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/plugin-transform-modules-umd@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz#6710079cdd7c694db36529a1e8411e49fcbf14c9" - integrity sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw== - dependencies: - "@babel/helper-module-transforms" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-named-capturing-groups-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz#454990ae6cc22fd2a0fa60b3a2c6f63a38064e6a" - integrity sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-new-target@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz#42e61711294b105c248336dcb04b77054ea8becd" - integrity sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-nullish-coalescing-operator@^7.26.6": - version "7.26.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz#fbf6b3c92cb509e7b319ee46e3da89c5bedd31fe" - integrity sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - -"@babel/plugin-transform-numeric-separator@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz#bfed75866261a8b643468b0ccfd275f2033214a1" - integrity sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-object-rest-spread@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz#0203725025074164808bcf1a2cfa90c652c99f18" - integrity sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg== - dependencies: - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/plugin-transform-parameters" "^7.25.9" - -"@babel/plugin-transform-object-super@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz#385d5de135162933beb4a3d227a2b7e52bb4cf03" - integrity sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-replace-supers" "^7.25.9" - -"@babel/plugin-transform-optional-catch-binding@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz#10e70d96d52bb1f10c5caaac59ac545ea2ba7ff3" - integrity sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-optional-chaining@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz#e142eb899d26ef715435f201ab6e139541eee7dd" - integrity sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - -"@babel/plugin-transform-parameters@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz#b856842205b3e77e18b7a7a1b94958069c7ba257" - integrity sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-private-methods@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz#847f4139263577526455d7d3223cd8bda51e3b57" - integrity sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-private-property-in-object@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz#9c8b73e64e6cc3cbb2743633885a7dd2c385fe33" - integrity sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-property-literals@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz#d72d588bd88b0dec8b62e36f6fda91cedfe28e3f" - integrity sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-react-constant-elements@^7.12.1": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.25.9.tgz#08a1de35a301929b60fdf2788a54b46cd8ecd0ef" - integrity sha512-Ncw2JFsJVuvfRsa2lSHiC55kETQVLSnsYGQ1JDDwkUeWGTL/8Tom8aLTnlqgoeuopWrbbGndrc9AlLYrIosrow== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-react-display-name@^7.16.0", "@babel/plugin-transform-react-display-name@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz#4b79746b59efa1f38c8695065a92a9f5afb24f7d" - integrity sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-react-jsx-development@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.25.9.tgz#8fd220a77dd139c07e25225a903b8be8c829e0d7" - integrity sha512-9mj6rm7XVYs4mdLIpbZnHOYdpW42uoiBCTVowg7sP1thUOiANgMb4UtpRivR0pp5iL+ocvUv7X4mZgFRpJEzGw== - dependencies: - "@babel/plugin-transform-react-jsx" "^7.25.9" - -"@babel/plugin-transform-react-jsx@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz#06367940d8325b36edff5e2b9cbe782947ca4166" - integrity sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/plugin-syntax-jsx" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/plugin-transform-react-pure-annotations@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.25.9.tgz#ea1c11b2f9dbb8e2d97025f43a3b5bc47e18ae62" - integrity sha512-KQ/Takk3T8Qzj5TppkS1be588lkbTp5uj7w6a0LeQaTMSckU/wK0oJ/pih+T690tkgI5jfmg2TqDJvd41Sj1Cg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-regenerator@^7.25.9": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.27.0.tgz#822feebef43d6a59a81f696b2512df5b1682db31" - integrity sha512-LX/vCajUJQDqE7Aum/ELUMZAY19+cDpghxrnyt5I1tV6X5PyC86AOoWXWFYFeIvauyeSA6/ktn4tQVn/3ZifsA== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - regenerator-transform "^0.15.2" - -"@babel/plugin-transform-regexp-modifiers@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz#2f5837a5b5cd3842a919d8147e9903cc7455b850" - integrity sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-reserved-words@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz#0398aed2f1f10ba3f78a93db219b27ef417fb9ce" - integrity sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-runtime@^7.16.4": - version "7.26.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.26.10.tgz#6b4504233de8238e7d666c15cde681dc62adff87" - integrity sha512-NWaL2qG6HRpONTnj4JvDU6th4jYeZOJgu3QhmFTCihib0ermtOJqktA5BduGm3suhhVe9EMP9c9+mfJ/I9slqw== - dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.26.5" - babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.11.0" - babel-plugin-polyfill-regenerator "^0.6.1" - semver "^6.3.1" - -"@babel/plugin-transform-shorthand-properties@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz#bb785e6091f99f826a95f9894fc16fde61c163f2" - integrity sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-spread@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz#24a35153931b4ba3d13cec4a7748c21ab5514ef9" - integrity sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - -"@babel/plugin-transform-sticky-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz#c7f02b944e986a417817b20ba2c504dfc1453d32" - integrity sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-template-literals@^7.26.8": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz#966b15d153a991172a540a69ad5e1845ced990b5" - integrity sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - -"@babel/plugin-transform-typeof-symbol@^7.26.7": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.0.tgz#044a0890f3ca694207c7826d0c7a65e5ac008aae" - integrity sha512-+LLkxA9rKJpNoGsbLnAgOCdESl73vwYn+V6b+5wHbrE7OGKVDPHIQvbFSzqE6rwqaCw2RE+zdJrlLkcf8YOA0w== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - -"@babel/plugin-transform-typescript@^7.27.0": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.27.0.tgz#a29fd3481da85601c7e34091296e9746d2cccba8" - integrity sha512-fRGGjO2UEGPjvEcyAZXRXAS8AfdaQoq7HnxAbJoAoW10B9xOKesmmndJv+Sym2a+9FHWZ9KbyyLCe9s0Sn5jtg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-create-class-features-plugin" "^7.27.0" - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - "@babel/plugin-syntax-typescript" "^7.25.9" - -"@babel/plugin-transform-unicode-escapes@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz#a75ef3947ce15363fccaa38e2dd9bc70b2788b82" - integrity sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-unicode-property-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz#a901e96f2c1d071b0d1bb5dc0d3c880ce8f53dd3" - integrity sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-unicode-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz#5eae747fe39eacf13a8bd006a4fb0b5d1fa5e9b1" - integrity sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-unicode-sets-regex@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz#65114c17b4ffc20fa5b163c63c70c0d25621fabe" - integrity sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.12.1", "@babel/preset-env@^7.16.4": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.26.9.tgz#2ec64e903d0efe743699f77a10bdf7955c2123c3" - integrity sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ== - dependencies: - "@babel/compat-data" "^7.26.8" - "@babel/helper-compilation-targets" "^7.26.5" - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-validator-option" "^7.25.9" - "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.25.9" - "@babel/plugin-bugfix-safari-class-field-initializer-scope" "^7.25.9" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.25.9" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.25.9" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.25.9" - "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" - "@babel/plugin-syntax-import-assertions" "^7.26.0" - "@babel/plugin-syntax-import-attributes" "^7.26.0" - "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.25.9" - "@babel/plugin-transform-async-generator-functions" "^7.26.8" - "@babel/plugin-transform-async-to-generator" "^7.25.9" - "@babel/plugin-transform-block-scoped-functions" "^7.26.5" - "@babel/plugin-transform-block-scoping" "^7.25.9" - "@babel/plugin-transform-class-properties" "^7.25.9" - "@babel/plugin-transform-class-static-block" "^7.26.0" - "@babel/plugin-transform-classes" "^7.25.9" - "@babel/plugin-transform-computed-properties" "^7.25.9" - "@babel/plugin-transform-destructuring" "^7.25.9" - "@babel/plugin-transform-dotall-regex" "^7.25.9" - "@babel/plugin-transform-duplicate-keys" "^7.25.9" - "@babel/plugin-transform-duplicate-named-capturing-groups-regex" "^7.25.9" - "@babel/plugin-transform-dynamic-import" "^7.25.9" - "@babel/plugin-transform-exponentiation-operator" "^7.26.3" - "@babel/plugin-transform-export-namespace-from" "^7.25.9" - "@babel/plugin-transform-for-of" "^7.26.9" - "@babel/plugin-transform-function-name" "^7.25.9" - "@babel/plugin-transform-json-strings" "^7.25.9" - "@babel/plugin-transform-literals" "^7.25.9" - "@babel/plugin-transform-logical-assignment-operators" "^7.25.9" - "@babel/plugin-transform-member-expression-literals" "^7.25.9" - "@babel/plugin-transform-modules-amd" "^7.25.9" - "@babel/plugin-transform-modules-commonjs" "^7.26.3" - "@babel/plugin-transform-modules-systemjs" "^7.25.9" - "@babel/plugin-transform-modules-umd" "^7.25.9" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.25.9" - "@babel/plugin-transform-new-target" "^7.25.9" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.26.6" - "@babel/plugin-transform-numeric-separator" "^7.25.9" - "@babel/plugin-transform-object-rest-spread" "^7.25.9" - "@babel/plugin-transform-object-super" "^7.25.9" - "@babel/plugin-transform-optional-catch-binding" "^7.25.9" - "@babel/plugin-transform-optional-chaining" "^7.25.9" - "@babel/plugin-transform-parameters" "^7.25.9" - "@babel/plugin-transform-private-methods" "^7.25.9" - "@babel/plugin-transform-private-property-in-object" "^7.25.9" - "@babel/plugin-transform-property-literals" "^7.25.9" - "@babel/plugin-transform-regenerator" "^7.25.9" - "@babel/plugin-transform-regexp-modifiers" "^7.26.0" - "@babel/plugin-transform-reserved-words" "^7.25.9" - "@babel/plugin-transform-shorthand-properties" "^7.25.9" - "@babel/plugin-transform-spread" "^7.25.9" - "@babel/plugin-transform-sticky-regex" "^7.25.9" - "@babel/plugin-transform-template-literals" "^7.26.8" - "@babel/plugin-transform-typeof-symbol" "^7.26.7" - "@babel/plugin-transform-unicode-escapes" "^7.25.9" - "@babel/plugin-transform-unicode-property-regex" "^7.25.9" - "@babel/plugin-transform-unicode-regex" "^7.25.9" - "@babel/plugin-transform-unicode-sets-regex" "^7.25.9" - "@babel/preset-modules" "0.1.6-no-external-plugins" - babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.11.0" - babel-plugin-polyfill-regenerator "^0.6.1" - core-js-compat "^3.40.0" - semver "^6.3.1" - -"@babel/preset-modules@0.1.6-no-external-plugins": - version "0.1.6-no-external-plugins" - resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" - integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/types" "^7.4.4" - esutils "^2.0.2" - -"@babel/preset-react@^7.12.5", "@babel/preset-react@^7.16.0": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.26.3.tgz#7c5e028d623b4683c1f83a0bd4713b9100560caa" - integrity sha512-Nl03d6T9ky516DGK2YMxrTqvnpUW63TnJMOMonj+Zae0JiPC5BC9xPMSL6L8fiSpA5vP88qfygavVQvnLp+6Cw== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-validator-option" "^7.25.9" - "@babel/plugin-transform-react-display-name" "^7.25.9" - "@babel/plugin-transform-react-jsx" "^7.25.9" - "@babel/plugin-transform-react-jsx-development" "^7.25.9" - "@babel/plugin-transform-react-pure-annotations" "^7.25.9" - -"@babel/preset-typescript@^7.16.0": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.27.0.tgz#4dcb8827225975f4290961b0b089f9c694ca50c7" - integrity sha512-vxaPFfJtHhgeOVXRKuHpHPAOgymmy8V8I65T1q53R7GCZlefKeCaTyDs3zOPHTTbmquvNlQYC5klEvWsBAtrBQ== - dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-validator-option" "^7.25.9" - "@babel/plugin-syntax-jsx" "^7.25.9" - "@babel/plugin-transform-modules-commonjs" "^7.26.3" - "@babel/plugin-transform-typescript" "^7.27.0" - -"@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.23.2", "@babel/runtime@^7.26.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.0.tgz#fbee7cf97c709518ecc1f590984481d5460d4762" - integrity sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw== - dependencies: - regenerator-runtime "^0.14.0" - -"@babel/template@^7.25.9", "@babel/template@^7.26.9", "@babel/template@^7.27.0", "@babel/template@^7.3.3": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.0.tgz#b253e5406cc1df1c57dcd18f11760c2dbf40c0b4" - integrity sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/parser" "^7.27.0" - "@babel/types" "^7.27.0" - -"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.10", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.8", "@babel/traverse@^7.27.0", "@babel/traverse@^7.7.2": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.27.0.tgz#11d7e644779e166c0442f9a07274d02cd91d4a70" - integrity sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.27.0" - "@babel/parser" "^7.27.0" - "@babel/template" "^7.27.0" - "@babel/types" "^7.27.0" - debug "^4.3.1" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.10", "@babel/types@^7.27.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.0.tgz#ef9acb6b06c3173f6632d993ecb6d4ae470b4559" - integrity sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg== - dependencies: - "@babel/helper-string-parser" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@csstools/normalize.css@*": - version "12.1.1" - resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-12.1.1.tgz#f0ad221b7280f3fc814689786fd9ee092776ef8f" - integrity sha512-YAYeJ+Xqh7fUou1d1j9XHl44BmsuThiTr4iNrgCQ3J27IbhXsxXDGZ1cXv8Qvs99d4rBbLiSKy3+WZiet32PcQ== - -"@csstools/postcss-cascade-layers@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz#8a997edf97d34071dd2e37ea6022447dd9e795ad" - integrity sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA== - dependencies: - "@csstools/selector-specificity" "^2.0.2" - postcss-selector-parser "^6.0.10" - -"@csstools/postcss-color-function@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz#2bd36ab34f82d0497cfacdc9b18d34b5e6f64b6b" - integrity sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" - -"@csstools/postcss-font-format-keywords@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz#677b34e9e88ae997a67283311657973150e8b16a" - integrity sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-hwb-function@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz#ab54a9fce0ac102c754854769962f2422ae8aa8b" - integrity sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-ic-unit@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz#28237d812a124d1a16a5acc5c3832b040b303e58" - integrity sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" - -"@csstools/postcss-is-pseudo-class@^2.0.7": - version "2.0.7" - resolved "https://registry.yarnpkg.com/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz#846ae6c0d5a1eaa878fce352c544f9c295509cd1" - integrity sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA== - dependencies: - "@csstools/selector-specificity" "^2.0.0" - postcss-selector-parser "^6.0.10" - -"@csstools/postcss-nested-calc@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz#d7e9d1d0d3d15cf5ac891b16028af2a1044d0c26" - integrity sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-normalize-display-values@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz#15da54a36e867b3ac5163ee12c1d7f82d4d612c3" - integrity sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-oklab-function@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz#88cee0fbc8d6df27079ebd2fa016ee261eecf844" - integrity sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" - -"@csstools/postcss-progressive-custom-properties@^1.1.0", "@csstools/postcss-progressive-custom-properties@^1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz#542292558384361776b45c85226b9a3a34f276fa" - integrity sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-stepped-value-functions@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz#f8772c3681cc2befed695e2b0b1d68e22f08c4f4" - integrity sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-text-decoration-shorthand@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz#ea96cfbc87d921eca914d3ad29340d9bcc4c953f" - integrity sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-trigonometric-functions@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz#94d3e4774c36d35dcdc88ce091336cb770d32756" - integrity sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og== - dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-unset-value@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz#c99bb70e2cdc7312948d1eb41df2412330b81f77" - integrity sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g== - -"@csstools/selector-specificity@^2.0.0", "@csstools/selector-specificity@^2.0.2": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz#2cbcf822bf3764c9658c4d2e568bd0c0cb748016" - integrity sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw== - -"@discoveryjs/json-ext@^0.5.0": - version "0.5.7" - resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" - integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== - -"@emotion/babel-plugin@^11.13.5": - version "11.13.5" - resolved "https://registry.yarnpkg.com/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz#eab8d65dbded74e0ecfd28dc218e75607c4e7bc0" - integrity sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ== - dependencies: - "@babel/helper-module-imports" "^7.16.7" - "@babel/runtime" "^7.18.3" - "@emotion/hash" "^0.9.2" - "@emotion/memoize" "^0.9.0" - "@emotion/serialize" "^1.3.3" - babel-plugin-macros "^3.1.0" - convert-source-map "^1.5.0" - escape-string-regexp "^4.0.0" - find-root "^1.1.0" - source-map "^0.5.7" - stylis "4.2.0" - -"@emotion/cache@^11.13.5", "@emotion/cache@^11.14.0", "@emotion/cache@^11.4.0": - version "11.14.0" - resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-11.14.0.tgz#ee44b26986eeb93c8be82bb92f1f7a9b21b2ed76" - integrity sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA== - dependencies: - "@emotion/memoize" "^0.9.0" - "@emotion/sheet" "^1.4.0" - "@emotion/utils" "^1.4.2" - "@emotion/weak-memoize" "^0.4.0" - stylis "4.2.0" - -"@emotion/hash@^0.9.2": - version "0.9.2" - resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.9.2.tgz#ff9221b9f58b4dfe61e619a7788734bd63f6898b" - integrity sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g== - -"@emotion/is-prop-valid@^1.3.0": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-1.3.1.tgz#8d5cf1132f836d7adbe42cf0b49df7816fc88240" - integrity sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw== - dependencies: - "@emotion/memoize" "^0.9.0" - -"@emotion/memoize@^0.9.0": - version "0.9.0" - resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.9.0.tgz#745969d649977776b43fc7648c556aaa462b4102" - integrity sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ== - -"@emotion/react@^11.11.4", "@emotion/react@^11.8.1": - version "11.14.0" - resolved "https://registry.yarnpkg.com/@emotion/react/-/react-11.14.0.tgz#cfaae35ebc67dd9ef4ea2e9acc6cd29e157dd05d" - integrity sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA== - dependencies: - "@babel/runtime" "^7.18.3" - "@emotion/babel-plugin" "^11.13.5" - "@emotion/cache" "^11.14.0" - "@emotion/serialize" "^1.3.3" - "@emotion/use-insertion-effect-with-fallbacks" "^1.2.0" - "@emotion/utils" "^1.4.2" - "@emotion/weak-memoize" "^0.4.0" - hoist-non-react-statics "^3.3.1" - -"@emotion/serialize@^1.3.3": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-1.3.3.tgz#d291531005f17d704d0463a032fe679f376509e8" - integrity sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA== - dependencies: - "@emotion/hash" "^0.9.2" - "@emotion/memoize" "^0.9.0" - "@emotion/unitless" "^0.10.0" - "@emotion/utils" "^1.4.2" - csstype "^3.0.2" - -"@emotion/sheet@^1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.4.0.tgz#c9299c34d248bc26e82563735f78953d2efca83c" - integrity sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg== - -"@emotion/styled@^11.11.5": - version "11.14.0" - resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.14.0.tgz#f47ca7219b1a295186d7661583376fcea95f0ff3" - integrity sha512-XxfOnXFffatap2IyCeJyNov3kiDQWoR08gPUQxvbL7fxKryGBKUZUkG6Hz48DZwVrJSVh9sJboyV1Ds4OW6SgA== - dependencies: - "@babel/runtime" "^7.18.3" - "@emotion/babel-plugin" "^11.13.5" - "@emotion/is-prop-valid" "^1.3.0" - "@emotion/serialize" "^1.3.3" - "@emotion/use-insertion-effect-with-fallbacks" "^1.2.0" - "@emotion/utils" "^1.4.2" - -"@emotion/unitless@^0.10.0": - version "0.10.0" - resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.10.0.tgz#2af2f7c7e5150f497bdabd848ce7b218a27cf745" - integrity sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg== - -"@emotion/use-insertion-effect-with-fallbacks@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz#8a8cb77b590e09affb960f4ff1e9a89e532738bf" - integrity sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg== - -"@emotion/utils@^1.4.2": - version "1.4.2" - resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-1.4.2.tgz#6df6c45881fcb1c412d6688a311a98b7f59c1b52" - integrity sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA== - -"@emotion/weak-memoize@^0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz#5e13fac887f08c44f76b0ccaf3370eb00fec9bb6" - integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg== - -"@eslint-community/eslint-utils@^4.2.0": - version "4.5.1" - resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz#b0fc7e06d0c94f801537fd4237edc2706d3b8e4c" - integrity sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w== - dependencies: - eslint-visitor-keys "^3.4.3" - -"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.6.1": - version "4.12.1" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0" - integrity sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ== - -"@eslint/eslintrc@^2.1.4": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" - integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.6.0" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.57.1": - version "8.57.1" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" - integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== - -"@floating-ui/core@^1.6.0": - version "1.6.9" - resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.9.tgz#64d1da251433019dafa091de9b2886ff35ec14e6" - integrity sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw== - dependencies: - "@floating-ui/utils" "^0.2.9" - -"@floating-ui/dom@^1.0.0", "@floating-ui/dom@^1.0.1": - version "1.6.13" - resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.6.13.tgz#a8a938532aea27a95121ec16e667a7cbe8c59e34" - integrity sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w== - dependencies: - "@floating-ui/core" "^1.6.0" - "@floating-ui/utils" "^0.2.9" - -"@floating-ui/react-dom@^2.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.2.tgz#a1349bbf6a0e5cb5ded55d023766f20a4d439a31" - integrity sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A== - dependencies: - "@floating-ui/dom" "^1.0.0" - -"@floating-ui/utils@^0.2.9": - version "0.2.9" - resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.9.tgz#50dea3616bc8191fb8e112283b49eaff03e78429" - integrity sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg== - -"@fortawesome/fontawesome-common-types@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.7.2.tgz#7123d74b0c1e726794aed1184795dbce12186470" - integrity sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg== - -"@fortawesome/fontawesome-svg-core@^6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.7.2.tgz#0ac6013724d5cc327c1eb81335b91300a4fce2f2" - integrity sha512-yxtOBWDrdi5DD5o1pmVdq3WMCvnobT0LU6R8RyyVXPvFRd2o79/0NCuQoCjNTeZz9EzA9xS3JxNWfv54RIHFEA== - dependencies: - "@fortawesome/fontawesome-common-types" "6.7.2" - -"@fortawesome/free-solid-svg-icons@^6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.7.2.tgz#fe25883b5eb8464a82918599950d283c465b57f6" - integrity sha512-GsBrnOzU8uj0LECDfD5zomZJIjrPhIlWU82AHwa2s40FKH+kcxQaBvBo3Z4TxyZHIyX8XTDxsyA33/Vx9eFuQA== - dependencies: - "@fortawesome/fontawesome-common-types" "6.7.2" - -"@fortawesome/react-fontawesome@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.2.tgz#68b058f9132b46c8599875f6a636dad231af78d4" - integrity sha512-EnkrprPNqI6SXJl//m29hpaNzOp1bruISWaOiRtkMi/xSvHJlzc2j2JAYS7egxt/EbjSNV/k6Xy0AQI6vB2+1g== - dependencies: - prop-types "^15.8.1" - -"@humanwhocodes/config-array@^0.13.0": - version "0.13.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" - integrity sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw== - dependencies: - "@humanwhocodes/object-schema" "^2.0.3" - debug "^4.3.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^2.0.3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" - integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== - -"@isaacs/cliui@^8.0.2": - version "8.0.2" - resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" - integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== - dependencies: - string-width "^5.1.2" - string-width-cjs "npm:string-width@^4.2.0" - strip-ansi "^7.0.1" - strip-ansi-cjs "npm:strip-ansi@^6.0.1" - wrap-ansi "^8.1.0" - wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.5.1.tgz#260fe7239602fe5130a94f1aa386eff54b014bba" - integrity sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - -"@jest/console@^28.1.3": - version "28.1.3" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-28.1.3.tgz#2030606ec03a18c31803b8a36382762e447655df" - integrity sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw== - dependencies: - "@jest/types" "^28.1.3" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^28.1.3" - jest-util "^28.1.3" - slash "^3.0.0" - -"@jest/core@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.5.1.tgz#267ac5f704e09dc52de2922cbf3af9edcd64b626" - integrity sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/reporters" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.8.1" - exit "^0.1.2" - graceful-fs "^4.2.9" - jest-changed-files "^27.5.1" - jest-config "^27.5.1" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-resolve-dependencies "^27.5.1" - jest-runner "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - jest-watcher "^27.5.1" - micromatch "^4.0.4" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" - -"@jest/environment@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.5.1.tgz#d7425820511fe7158abbecc010140c3fd3be9c74" - integrity sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA== - dependencies: - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - -"@jest/fake-timers@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" - integrity sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ== - dependencies: - "@jest/types" "^27.5.1" - "@sinonjs/fake-timers" "^8.0.1" - "@types/node" "*" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -"@jest/globals@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.5.1.tgz#7ac06ce57ab966566c7963431cef458434601b2b" - integrity sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/types" "^27.5.1" - expect "^27.5.1" - -"@jest/reporters@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.5.1.tgz#ceda7be96170b03c923c37987b64015812ffec04" - integrity sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.9" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.1.3" - jest-haste-map "^27.5.1" - jest-resolve "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^8.1.0" - -"@jest/schemas@^28.1.3": - version "28.1.3" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905" - integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg== - dependencies: - "@sinclair/typebox" "^0.24.1" - -"@jest/source-map@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" - integrity sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg== - dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.9" - source-map "^0.6.0" - -"@jest/test-result@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.5.1.tgz#56a6585fa80f7cdab72b8c5fc2e871d03832f5bb" - integrity sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag== - dependencies: - "@jest/console" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-result@^28.1.3": - version "28.1.3" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-28.1.3.tgz#5eae945fd9f4b8fcfce74d239e6f725b6bf076c5" - integrity sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg== - dependencies: - "@jest/console" "^28.1.3" - "@jest/types" "^28.1.3" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz#4057e0e9cea4439e544c6353c6affe58d095745b" - integrity sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ== - dependencies: - "@jest/test-result" "^27.5.1" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-runtime "^27.5.1" - -"@jest/transform@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.5.1.tgz#6c3501dcc00c4c08915f292a600ece5ecfe1f409" - integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^27.5.1" - babel-plugin-istanbul "^6.1.1" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-regex-util "^27.5.1" - jest-util "^27.5.1" - micromatch "^4.0.4" - pirates "^4.0.4" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" - -"@jest/types@^28.1.3": - version "28.1.3" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b" - integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ== - dependencies: - "@jest/schemas" "^28.1.3" - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^17.0.8" - chalk "^4.0.0" - -"@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5": - version "0.3.8" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz#4f0e06362e01362f823d348f1872b08f666d8142" - integrity sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA== - dependencies: - "@jridgewell/set-array" "^1.2.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.24" - -"@jridgewell/resolve-uri@^3.1.0": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" - integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== - -"@jridgewell/set-array@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" - integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== - -"@jridgewell/source-map@^0.3.3": - version "0.3.6" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.6.tgz#9d71ca886e32502eb9362c9a74a46787c36df81a" - integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" - integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== - -"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": - version "0.3.25" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" - integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - -"@leichtgewicht/ip-codec@^2.0.1": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz#4fc56c15c580b9adb7dc3c333a134e540b44bfb1" - integrity sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw== - -"@linkdlab/funcnodes_react_flow@^0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@linkdlab/funcnodes_react_flow/-/funcnodes_react_flow-0.4.0.tgz#e595645b561a6c800e0042f57e1db32ecdc80c63" - integrity sha512-zH0ba0sEO+yAYihdaFKVJX816k6cb6T/vPOMJmWtz67YmXfxZXDIp6sIrrCsMOTIpdUm7vvwKhzexnkLDkrIag== - dependencies: - "@emotion/react" "^11.11.4" - "@emotion/styled" "^11.11.5" - "@fortawesome/fontawesome-svg-core" "^6.7.2" - "@fortawesome/free-solid-svg-icons" "^6.7.2" - "@fortawesome/react-fontawesome" "^0.2.2" - "@mui/icons-material" "^6.4.4" - "@mui/material" "^6.4.4" - "@radix-ui/react-dialog" "^1.1.2" - "@radix-ui/react-dismissable-layer" "^1.1.1" - "@radix-ui/react-dropdown-menu" "^2.1.2" - "@radix-ui/react-icons" "^1.3.2" - "@radix-ui/react-popover" "^1.1.6" - "@radix-ui/react-slider" "^1.2.3" - "@radix-ui/react-tooltip" "^1.0.7" - axios "^1.7.9" - color-convert "^2.0.1" - react-json-view-lite "^2.3.0" - react-markdown "^9.0.1" - react-select "^5.8.0" - react-svg "^16.1.34" - reactflow "^11.11.4" - remark-gfm "^4.0.0" - uuid "^9.0.1" - -"@mui/core-downloads-tracker@^6.4.9": - version "6.4.9" - resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-6.4.9.tgz#6f9f6a220b22ee24a70bbe73e5ec6cb7222a0713" - integrity sha512-3UvsvOjqZJcokHKSzA1lskj2XMM/G5GBgge6ykwmAij2pGGxydGxAXirQlLaeoMwTKDS6BcrLqPZyPVwzri20A== - -"@mui/icons-material@^6.4.4": - version "6.4.9" - resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-6.4.9.tgz#ead88209072a476a4fdaff52d03fb842cacaa27f" - integrity sha512-a8l63VIscBteJlh31R88aVgHelCcrhl3Rk0GnN8znTsGhcam9mFeo4Xlw+gLUYQP7mxVcVt3WP9XJkwXWZflnw== - dependencies: - "@babel/runtime" "^7.26.0" - -"@mui/material@^6.4.4": - version "6.4.9" - resolved "https://registry.yarnpkg.com/@mui/material/-/material-6.4.9.tgz#06e07dd13ddf6d4fa1ecc2a1c6f9338f6dff0b2a" - integrity sha512-+5dExw9xUUFujIW889gB3qrfjeNo3YjYW7aWVZ6BlBIJnKpJ0jNcYZJpBUFoXt/FUV5Wy1V+/+XzR3Is2mXX2w== - dependencies: - "@babel/runtime" "^7.26.0" - "@mui/core-downloads-tracker" "^6.4.9" - "@mui/system" "^6.4.9" - "@mui/types" "~7.2.24" - "@mui/utils" "^6.4.8" - "@popperjs/core" "^2.11.8" - "@types/react-transition-group" "^4.4.12" - clsx "^2.1.1" - csstype "^3.1.3" - prop-types "^15.8.1" - react-is "^19.0.0" - react-transition-group "^4.4.5" - -"@mui/private-theming@^6.4.8": - version "6.4.8" - resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-6.4.8.tgz#210d1a1ab4501f6cf31f1abdf1b0a37fbdfc2991" - integrity sha512-sWwQoNSn6elsPTAtSqCf+w5aaGoh7AASURNmpy+QTTD/zwJ0Jgwt0ZaaP6mXq2IcgHxYnYloM/+vJgHPMkRKTQ== - dependencies: - "@babel/runtime" "^7.26.0" - "@mui/utils" "^6.4.8" - prop-types "^15.8.1" - -"@mui/styled-engine@^6.4.9": - version "6.4.9" - resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-6.4.9.tgz#d6d6b5f180466001284f897ff7d7010a8e329497" - integrity sha512-qZRWO0cT407NI4ZRjZcH+1SOu8f3JzLHqdMlg52GyEufM9pkSZFnf7xjpwnlvkixcGjco6wLlMD0VB43KRcBuA== - dependencies: - "@babel/runtime" "^7.26.0" - "@emotion/cache" "^11.13.5" - "@emotion/serialize" "^1.3.3" - "@emotion/sheet" "^1.4.0" - csstype "^3.1.3" - prop-types "^15.8.1" - -"@mui/system@^6.4.9": - version "6.4.9" - resolved "https://registry.yarnpkg.com/@mui/system/-/system-6.4.9.tgz#19575feb3fc7b465b082c65c9c737e1a40ed06ef" - integrity sha512-JOj7efXGtZn+NIzX8KDyMpO1QKc0DhilPBsxvci1xAvI1e5AtAtfzrEuV5ZvN+lz2BDuzngCWlllnqQ/cg40RQ== - dependencies: - "@babel/runtime" "^7.26.0" - "@mui/private-theming" "^6.4.8" - "@mui/styled-engine" "^6.4.9" - "@mui/types" "~7.2.24" - "@mui/utils" "^6.4.8" - clsx "^2.1.1" - csstype "^3.1.3" - prop-types "^15.8.1" - -"@mui/types@~7.2.24": - version "7.2.24" - resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.24.tgz#5eff63129d9c29d80bbf2d2e561bd0690314dec2" - integrity sha512-3c8tRt/CbWZ+pEg7QpSwbdxOk36EfmhbKf6AGZsD1EcLDLTSZoxxJ86FVtcjxvjuhdyBiWKSTGZFaXCnidO2kw== - -"@mui/utils@^6.4.8": - version "6.4.8" - resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-6.4.8.tgz#f80ee0c0ac47f1cd47c2031a5fb87243322b6bf3" - integrity sha512-C86gfiZ5BfZ51KqzqoHi1WuuM2QdSKoFhbkZeAfQRB+jCc4YNhhj11UXFVMMsqBgZ+Zy8IHNJW3M9Wj/LOwRXQ== - dependencies: - "@babel/runtime" "^7.26.0" - "@mui/types" "~7.2.24" - "@types/prop-types" "^15.7.14" - clsx "^2.1.1" - prop-types "^15.8.1" - react-is "^19.0.0" - -"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": - version "5.1.1-v1" - resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" - integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== - dependencies: - eslint-scope "5.1.1" - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@pkgjs/parseargs@^0.11.0": - version "0.11.0" - resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" - integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== - -"@pmmmwh/react-refresh-webpack-plugin@^0.5.3": - version "0.5.15" - resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.15.tgz#f126be97c30b83ed777e2aeabd518bc592e6e7c4" - integrity sha512-LFWllMA55pzB9D34w/wXUCf8+c+IYKuJDgxiZ3qMhl64KRMBHYM1I3VdGaD2BV5FNPV2/S2596bppxHbv2ZydQ== - dependencies: - ansi-html "^0.0.9" - core-js-pure "^3.23.3" - error-stack-parser "^2.0.6" - html-entities "^2.1.0" - loader-utils "^2.0.4" - schema-utils "^4.2.0" - source-map "^0.7.3" - -"@popperjs/core@^2.11.8": - version "2.11.8" - resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" - integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== - -"@radix-ui/number@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/number/-/number-1.1.0.tgz#1e95610461a09cdf8bb05c152e76ca1278d5da46" - integrity sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ== - -"@radix-ui/primitive@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@radix-ui/primitive/-/primitive-1.1.1.tgz#fc169732d755c7fbad33ba8d0cd7fd10c90dc8e3" - integrity sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA== - -"@radix-ui/react-arrow@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-arrow/-/react-arrow-1.1.2.tgz#30c0d574d7bb10eed55cd7007b92d38b03c6b2ab" - integrity sha512-G+KcpzXHq24iH0uGG/pF8LyzpFJYGD4RfLjCIBfGdSLXvjLHST31RUiRVrupIBMvIppMgSzQ6l66iAxl03tdlg== - dependencies: - "@radix-ui/react-primitive" "2.0.2" - -"@radix-ui/react-collection@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-1.1.2.tgz#b45eccca1cb902fd078b237316bd9fa81e621e15" - integrity sha512-9z54IEKRxIa9VityapoEYMuByaG42iSy1ZXlY2KcuLSEtq8x4987/N6m15ppoMffgZX72gER2uHe1D9Y6Unlcw== - dependencies: - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-slot" "1.1.2" - -"@radix-ui/react-compose-refs@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.1.tgz#6f766faa975f8738269ebb8a23bad4f5a8d2faec" - integrity sha512-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw== - -"@radix-ui/react-context@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@radix-ui/react-context/-/react-context-1.1.1.tgz#82074aa83a472353bb22e86f11bcbd1c61c4c71a" - integrity sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q== - -"@radix-ui/react-dialog@^1.1.2": - version "1.1.6" - resolved "https://registry.yarnpkg.com/@radix-ui/react-dialog/-/react-dialog-1.1.6.tgz#65b4465e99ad900f28a98eed9a94bb21ec644bf7" - integrity sha512-/IVhJV5AceX620DUJ4uYVMymzsipdKBzo3edo+omeskCKGm9FRHM0ebIdbPnlQVJqyuHbuBltQUOG2mOTq2IYw== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-dismissable-layer" "1.1.5" - "@radix-ui/react-focus-guards" "1.1.1" - "@radix-ui/react-focus-scope" "1.1.2" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-portal" "1.1.4" - "@radix-ui/react-presence" "1.1.2" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-slot" "1.1.2" - "@radix-ui/react-use-controllable-state" "1.1.0" - aria-hidden "^1.2.4" - react-remove-scroll "^2.6.3" - -"@radix-ui/react-direction@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-direction/-/react-direction-1.1.0.tgz#a7d39855f4d077adc2a1922f9c353c5977a09cdc" - integrity sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg== - -"@radix-ui/react-dismissable-layer@1.1.5", "@radix-ui/react-dismissable-layer@^1.1.1": - version "1.1.5" - resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.5.tgz#96dde2be078c694a621e55e047406c58cd5fe774" - integrity sha512-E4TywXY6UsXNRhFrECa5HAvE5/4BFcGyfTyK36gP+pAW1ed7UTK4vKwdr53gAJYwqbfCWC6ATvJa3J3R/9+Qrg== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-callback-ref" "1.1.0" - "@radix-ui/react-use-escape-keydown" "1.1.0" - -"@radix-ui/react-dropdown-menu@^2.1.2": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.6.tgz#b66b62648b378370aa3c38e5727fd3bc5b8792a3" - integrity sha512-no3X7V5fD487wab/ZYSHXq3H37u4NVeLDKI/Ks724X/eEFSSEFYZxWgsIlr1UBeEyDaM29HM5x9p1Nv8DuTYPA== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-menu" "2.1.6" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-controllable-state" "1.1.0" - -"@radix-ui/react-focus-guards@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.1.tgz#8635edd346304f8b42cae86b05912b61aef27afe" - integrity sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg== - -"@radix-ui/react-focus-scope@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.2.tgz#c0a4519cd95c772606a82fc5b96226cd7fdd2602" - integrity sha512-zxwE80FCU7lcXUGWkdt6XpTTCKPitG1XKOwViTxHVKIJhZl9MvIl2dVHeZENCWD9+EdWv05wlaEkRXUykU27RA== - dependencies: - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-callback-ref" "1.1.0" - -"@radix-ui/react-icons@^1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-icons/-/react-icons-1.3.2.tgz#09be63d178262181aeca5fb7f7bc944b10a7f441" - integrity sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g== - -"@radix-ui/react-id@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.1.0.tgz#de47339656594ad722eb87f94a6b25f9cffae0ed" - integrity sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA== - dependencies: - "@radix-ui/react-use-layout-effect" "1.1.0" - -"@radix-ui/react-menu@2.1.6": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@radix-ui/react-menu/-/react-menu-2.1.6.tgz#05fb1ef3fd7545c8abe61178372902970cdec3ce" - integrity sha512-tBBb5CXDJW3t2mo9WlO7r6GTmWV0F0uzHZVFmlRmYpiSK1CDU5IKojP1pm7oknpBOrFZx/YgBRW9oorPO2S/Lg== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-collection" "1.1.2" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-direction" "1.1.0" - "@radix-ui/react-dismissable-layer" "1.1.5" - "@radix-ui/react-focus-guards" "1.1.1" - "@radix-ui/react-focus-scope" "1.1.2" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-popper" "1.2.2" - "@radix-ui/react-portal" "1.1.4" - "@radix-ui/react-presence" "1.1.2" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-roving-focus" "1.1.2" - "@radix-ui/react-slot" "1.1.2" - "@radix-ui/react-use-callback-ref" "1.1.0" - aria-hidden "^1.2.4" - react-remove-scroll "^2.6.3" - -"@radix-ui/react-popover@^1.1.6": - version "1.1.6" - resolved "https://registry.yarnpkg.com/@radix-ui/react-popover/-/react-popover-1.1.6.tgz#699634dbc7899429f657bb590d71fb3ca0904087" - integrity sha512-NQouW0x4/GnkFJ/pRqsIS3rM/k97VzKnVb2jB7Gq7VEGPy5g7uNV1ykySFt7eWSp3i2uSGFwaJcvIRJBAHmmFg== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-dismissable-layer" "1.1.5" - "@radix-ui/react-focus-guards" "1.1.1" - "@radix-ui/react-focus-scope" "1.1.2" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-popper" "1.2.2" - "@radix-ui/react-portal" "1.1.4" - "@radix-ui/react-presence" "1.1.2" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-slot" "1.1.2" - "@radix-ui/react-use-controllable-state" "1.1.0" - aria-hidden "^1.2.4" - react-remove-scroll "^2.6.3" - -"@radix-ui/react-popper@1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-popper/-/react-popper-1.2.2.tgz#d2e1ee5a9b24419c5936a1b7f6f472b7b412b029" - integrity sha512-Rvqc3nOpwseCyj/rgjlJDYAgyfw7OC1tTkKn2ivhaMGcYt8FSBlahHOZak2i3QwkRXUXgGgzeEe2RuqeEHuHgA== - dependencies: - "@floating-ui/react-dom" "^2.0.0" - "@radix-ui/react-arrow" "1.1.2" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-callback-ref" "1.1.0" - "@radix-ui/react-use-layout-effect" "1.1.0" - "@radix-ui/react-use-rect" "1.1.0" - "@radix-ui/react-use-size" "1.1.0" - "@radix-ui/rect" "1.1.0" - -"@radix-ui/react-portal@1.1.4": - version "1.1.4" - resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.1.4.tgz#ff5401ff63c8a825c46eea96d3aef66074b8c0c8" - integrity sha512-sn2O9k1rPFYVyKd5LAJfo96JlSGVFpa1fS6UuBJfrZadudiw5tAmru+n1x7aMRQ84qDM71Zh1+SzK5QwU0tJfA== - dependencies: - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-layout-effect" "1.1.0" - -"@radix-ui/react-presence@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-1.1.2.tgz#bb764ed8a9118b7ec4512da5ece306ded8703cdc" - integrity sha512-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg== - dependencies: - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-use-layout-effect" "1.1.0" - -"@radix-ui/react-primitive@2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-2.0.2.tgz#ac8b7854d87b0d7af388d058268d9a7eb64ca8ef" - integrity sha512-Ec/0d38EIuvDF+GZjcMU/Ze6MxntVJYO/fRlCPhCaVUyPY9WTalHJw54tp9sXeJo3tlShWpy41vQRgLRGOuz+w== - dependencies: - "@radix-ui/react-slot" "1.1.2" - -"@radix-ui/react-roving-focus@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.2.tgz#815d051a54299114a68db6eb8d34c41a3c0a646f" - integrity sha512-zgMQWkNO169GtGqRvYrzb0Zf8NhMHS2DuEB/TiEmVnpr5OqPU3i8lfbxaAmC2J/KYuIQxyoQQ6DxepyXp61/xw== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-collection" "1.1.2" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-direction" "1.1.0" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-callback-ref" "1.1.0" - "@radix-ui/react-use-controllable-state" "1.1.0" - -"@radix-ui/react-slider@^1.2.3": - version "1.2.3" - resolved "https://registry.yarnpkg.com/@radix-ui/react-slider/-/react-slider-1.2.3.tgz#f40072e88891d756493f27bb53285e32d0e6af37" - integrity sha512-nNrLAWLjGESnhqBqcCNW4w2nn7LxudyMzeB6VgdyAnFLC6kfQgnAjSL2v6UkQTnDctJBlxrmxfplWS4iYjdUTw== - dependencies: - "@radix-ui/number" "1.1.0" - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-collection" "1.1.2" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-direction" "1.1.0" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-use-controllable-state" "1.1.0" - "@radix-ui/react-use-layout-effect" "1.1.0" - "@radix-ui/react-use-previous" "1.1.0" - "@radix-ui/react-use-size" "1.1.0" - -"@radix-ui/react-slot@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.1.2.tgz#daffff7b2bfe99ade63b5168407680b93c00e1c6" - integrity sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ== - dependencies: - "@radix-ui/react-compose-refs" "1.1.1" - -"@radix-ui/react-tooltip@^1.0.7": - version "1.1.8" - resolved "https://registry.yarnpkg.com/@radix-ui/react-tooltip/-/react-tooltip-1.1.8.tgz#1aa2a575630fca2b2845b62f85056bb826bec456" - integrity sha512-YAA2cu48EkJZdAMHC0dqo9kialOcRStbtiY4nJPaht7Ptrhcvpo+eDChaM6BIs8kL6a8Z5l5poiqLnXcNduOkA== - dependencies: - "@radix-ui/primitive" "1.1.1" - "@radix-ui/react-compose-refs" "1.1.1" - "@radix-ui/react-context" "1.1.1" - "@radix-ui/react-dismissable-layer" "1.1.5" - "@radix-ui/react-id" "1.1.0" - "@radix-ui/react-popper" "1.2.2" - "@radix-ui/react-portal" "1.1.4" - "@radix-ui/react-presence" "1.1.2" - "@radix-ui/react-primitive" "2.0.2" - "@radix-ui/react-slot" "1.1.2" - "@radix-ui/react-use-controllable-state" "1.1.0" - "@radix-ui/react-visually-hidden" "1.1.2" - -"@radix-ui/react-use-callback-ref@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz#bce938ca413675bc937944b0d01ef6f4a6dc5bf1" - integrity sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw== - -"@radix-ui/react-use-controllable-state@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.0.tgz#1321446857bb786917df54c0d4d084877aab04b0" - integrity sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw== - dependencies: - "@radix-ui/react-use-callback-ref" "1.1.0" - -"@radix-ui/react-use-escape-keydown@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.0.tgz#31a5b87c3b726504b74e05dac1edce7437b98754" - integrity sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw== - dependencies: - "@radix-ui/react-use-callback-ref" "1.1.0" - -"@radix-ui/react-use-layout-effect@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz#3c2c8ce04827b26a39e442ff4888d9212268bd27" - integrity sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w== - -"@radix-ui/react-use-previous@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-previous/-/react-use-previous-1.1.0.tgz#d4dd37b05520f1d996a384eb469320c2ada8377c" - integrity sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og== - -"@radix-ui/react-use-rect@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-rect/-/react-use-rect-1.1.0.tgz#13b25b913bd3e3987cc9b073a1a164bb1cf47b88" - integrity sha512-0Fmkebhr6PiseyZlYAOtLS+nb7jLmpqTrJyv61Pe68MKYW6OWdRE2kI70TaYY27u7H0lajqM3hSMMLFq18Z7nQ== - dependencies: - "@radix-ui/rect" "1.1.0" - -"@radix-ui/react-use-size@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/react-use-size/-/react-use-size-1.1.0.tgz#b4dba7fbd3882ee09e8d2a44a3eed3a7e555246b" - integrity sha512-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw== - dependencies: - "@radix-ui/react-use-layout-effect" "1.1.0" - -"@radix-ui/react-visually-hidden@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.1.2.tgz#8f6025507eb5d8b4b3215ebfd2c71a6632323a62" - integrity sha512-1SzA4ns2M1aRlvxErqhLHsBHoS5eI5UUcI2awAMgGUp4LoaoWOKYmvqDY2s/tltuPkh3Yk77YF/r3IRj+Amx4Q== - dependencies: - "@radix-ui/react-primitive" "2.0.2" - -"@radix-ui/rect@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.1.0.tgz#f817d1d3265ac5415dadc67edab30ae196696438" - integrity sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg== - -"@reactflow/background@11.3.14": - version "11.3.14" - resolved "https://registry.yarnpkg.com/@reactflow/background/-/background-11.3.14.tgz#778ca30174f3de77fc321459ab3789e66e71a699" - integrity sha512-Gewd7blEVT5Lh6jqrvOgd4G6Qk17eGKQfsDXgyRSqM+CTwDqRldG2LsWN4sNeno6sbqVIC2fZ+rAUBFA9ZEUDA== - dependencies: - "@reactflow/core" "11.11.4" - classcat "^5.0.3" - zustand "^4.4.1" - -"@reactflow/controls@11.2.14": - version "11.2.14" - resolved "https://registry.yarnpkg.com/@reactflow/controls/-/controls-11.2.14.tgz#508ed2c40d23341b3b0919dd11e76fd49cf850c7" - integrity sha512-MiJp5VldFD7FrqaBNIrQ85dxChrG6ivuZ+dcFhPQUwOK3HfYgX2RHdBua+gx+40p5Vw5It3dVNp/my4Z3jF0dw== - dependencies: - "@reactflow/core" "11.11.4" - classcat "^5.0.3" - zustand "^4.4.1" - -"@reactflow/core@11.11.4": - version "11.11.4" - resolved "https://registry.yarnpkg.com/@reactflow/core/-/core-11.11.4.tgz#89bd86d1862aa1416f3f49926cede7e8c2aab6a7" - integrity sha512-H4vODklsjAq3AMq6Np4LE12i1I4Ta9PrDHuBR9GmL8uzTt2l2jh4CiQbEMpvMDcp7xi4be0hgXj+Ysodde/i7Q== - dependencies: - "@types/d3" "^7.4.0" - "@types/d3-drag" "^3.0.1" - "@types/d3-selection" "^3.0.3" - "@types/d3-zoom" "^3.0.1" - classcat "^5.0.3" - d3-drag "^3.0.0" - d3-selection "^3.0.0" - d3-zoom "^3.0.0" - zustand "^4.4.1" - -"@reactflow/minimap@11.7.14": - version "11.7.14" - resolved "https://registry.yarnpkg.com/@reactflow/minimap/-/minimap-11.7.14.tgz#298d7a63cb1da06b2518c99744f716560c88ca73" - integrity sha512-mpwLKKrEAofgFJdkhwR5UQ1JYWlcAAL/ZU/bctBkuNTT1yqV+y0buoNVImsRehVYhJwffSWeSHaBR5/GJjlCSQ== - dependencies: - "@reactflow/core" "11.11.4" - "@types/d3-selection" "^3.0.3" - "@types/d3-zoom" "^3.0.1" - classcat "^5.0.3" - d3-selection "^3.0.0" - d3-zoom "^3.0.0" - zustand "^4.4.1" - -"@reactflow/node-resizer@2.2.14": - version "2.2.14" - resolved "https://registry.yarnpkg.com/@reactflow/node-resizer/-/node-resizer-2.2.14.tgz#1810c0ce51aeb936f179466a6660d1e02c7a77a8" - integrity sha512-fwqnks83jUlYr6OHcdFEedumWKChTHRGw/kbCxj0oqBd+ekfs+SIp4ddyNU0pdx96JIm5iNFS0oNrmEiJbbSaA== - dependencies: - "@reactflow/core" "11.11.4" - classcat "^5.0.4" - d3-drag "^3.0.0" - d3-selection "^3.0.0" - zustand "^4.4.1" - -"@reactflow/node-toolbar@1.3.14": - version "1.3.14" - resolved "https://registry.yarnpkg.com/@reactflow/node-toolbar/-/node-toolbar-1.3.14.tgz#c6ffc76f82acacdce654f2160dc9852162d6e7c9" - integrity sha512-rbynXQnH/xFNu4P9H+hVqlEUafDCkEoCy0Dg9mG22Sg+rY/0ck6KkrAQrYrTgXusd+cEJOMK0uOOFCK2/5rSGQ== - dependencies: - "@reactflow/core" "11.11.4" - classcat "^5.0.3" - zustand "^4.4.1" - -"@rollup/plugin-babel@^5.2.0": - version "5.3.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283" - integrity sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q== - dependencies: - "@babel/helper-module-imports" "^7.10.4" - "@rollup/pluginutils" "^3.1.0" - -"@rollup/plugin-node-resolve@^11.2.1": - version "11.2.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60" - integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg== - dependencies: - "@rollup/pluginutils" "^3.1.0" - "@types/resolve" "1.17.1" - builtin-modules "^3.1.0" - deepmerge "^4.2.2" - is-module "^1.0.0" - resolve "^1.19.0" - -"@rollup/plugin-replace@^2.4.1": - version "2.4.2" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz#a2d539314fbc77c244858faa523012825068510a" - integrity sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg== - dependencies: - "@rollup/pluginutils" "^3.1.0" - magic-string "^0.25.7" - -"@rollup/pluginutils@^3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" - integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== - dependencies: - "@types/estree" "0.0.39" - estree-walker "^1.0.1" - picomatch "^2.2.2" - -"@rtsao/scc@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" - integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== - -"@rushstack/eslint-patch@^1.1.0": - version "1.11.0" - resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.11.0.tgz#75dce8e972f90bba488e2b0cc677fb233aa357ab" - integrity sha512-zxnHvoMQVqewTJr/W4pKjF0bMGiKJv1WX7bSrkl46Hg0QjESbzBROWK0Wg4RphzSOS5Jiy7eFimmM3UgMrMZbQ== - -"@sinclair/typebox@^0.24.1": - version "0.24.51" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" - integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== - -"@sinonjs/commons@^1.7.0": - version "1.8.6" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.6.tgz#80c516a4dc264c2a69115e7578d62581ff455ed9" - integrity sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^8.0.1": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" - integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== - dependencies: - "@sinonjs/commons" "^1.7.0" - -"@surma/rollup-plugin-off-main-thread@^2.2.3": - version "2.2.3" - resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053" - integrity sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ== - dependencies: - ejs "^3.1.6" - json5 "^2.2.0" - magic-string "^0.25.0" - string.prototype.matchall "^4.0.6" - -"@svgr/babel-plugin-add-jsx-attribute@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz#81ef61947bb268eb9d50523446f9c638fb355906" - integrity sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg== - -"@svgr/babel-plugin-remove-jsx-attribute@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz#6b2c770c95c874654fd5e1d5ef475b78a0a962ef" - integrity sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg== - -"@svgr/babel-plugin-remove-jsx-empty-expression@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz#25621a8915ed7ad70da6cea3d0a6dbc2ea933efd" - integrity sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA== - -"@svgr/babel-plugin-replace-jsx-attribute-value@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz#0b221fc57f9fcd10e91fe219e2cd0dd03145a897" - integrity sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ== - -"@svgr/babel-plugin-svg-dynamic-title@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz#139b546dd0c3186b6e5db4fefc26cb0baea729d7" - integrity sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg== - -"@svgr/babel-plugin-svg-em-dimensions@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz#6543f69526632a133ce5cabab965deeaea2234a0" - integrity sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw== - -"@svgr/babel-plugin-transform-react-native-svg@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz#00bf9a7a73f1cad3948cdab1f8dfb774750f8c80" - integrity sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q== - -"@svgr/babel-plugin-transform-svg-component@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz#583a5e2a193e214da2f3afeb0b9e8d3250126b4a" - integrity sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ== - -"@svgr/babel-preset@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/babel-preset/-/babel-preset-5.5.0.tgz#8af54f3e0a8add7b1e2b0fcd5a882c55393df327" - integrity sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig== - dependencies: - "@svgr/babel-plugin-add-jsx-attribute" "^5.4.0" - "@svgr/babel-plugin-remove-jsx-attribute" "^5.4.0" - "@svgr/babel-plugin-remove-jsx-empty-expression" "^5.0.1" - "@svgr/babel-plugin-replace-jsx-attribute-value" "^5.0.1" - "@svgr/babel-plugin-svg-dynamic-title" "^5.4.0" - "@svgr/babel-plugin-svg-em-dimensions" "^5.4.0" - "@svgr/babel-plugin-transform-react-native-svg" "^5.4.0" - "@svgr/babel-plugin-transform-svg-component" "^5.5.0" - -"@svgr/core@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/core/-/core-5.5.0.tgz#82e826b8715d71083120fe8f2492ec7d7874a579" - integrity sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ== - dependencies: - "@svgr/plugin-jsx" "^5.5.0" - camelcase "^6.2.0" - cosmiconfig "^7.0.0" - -"@svgr/hast-util-to-babel-ast@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz#5ee52a9c2533f73e63f8f22b779f93cd432a5461" - integrity sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ== - dependencies: - "@babel/types" "^7.12.6" - -"@svgr/plugin-jsx@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz#1aa8cd798a1db7173ac043466d7b52236b369000" - integrity sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA== - dependencies: - "@babel/core" "^7.12.3" - "@svgr/babel-preset" "^5.5.0" - "@svgr/hast-util-to-babel-ast" "^5.5.0" - svg-parser "^2.0.2" - -"@svgr/plugin-svgo@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz#02da55d85320549324e201c7b2e53bf431fcc246" - integrity sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ== - dependencies: - cosmiconfig "^7.0.0" - deepmerge "^4.2.2" - svgo "^1.2.2" - -"@svgr/webpack@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@svgr/webpack/-/webpack-5.5.0.tgz#aae858ee579f5fa8ce6c3166ef56c6a1b381b640" - integrity sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g== - dependencies: - "@babel/core" "^7.12.3" - "@babel/plugin-transform-react-constant-elements" "^7.12.1" - "@babel/preset-env" "^7.12.1" - "@babel/preset-react" "^7.12.5" - "@svgr/core" "^5.5.0" - "@svgr/plugin-jsx" "^5.5.0" - "@svgr/plugin-svgo" "^5.5.0" - loader-utils "^2.0.0" - -"@tanem/svg-injector@^10.1.68": - version "10.1.68" - resolved "https://registry.yarnpkg.com/@tanem/svg-injector/-/svg-injector-10.1.68.tgz#0bd08da3c4184b055a6fe16909037c96f49e3cd1" - integrity sha512-UkJajeR44u73ujtr5GVSbIlELDWD/mzjqWe54YMK61ljKxFcJoPd9RBSaO7xj02ISCWUqJW99GjrS+sVF0UnrA== - dependencies: - "@babel/runtime" "^7.23.2" - content-type "^1.0.5" - tslib "^2.6.2" - -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - -"@trysound/sax@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" - integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA== - -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" - integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== - dependencies: - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.6.8" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.8.tgz#f836c61f48b1346e7d2b0d93c6dacc5b9535d3ab" - integrity sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.4.tgz#5672513701c1b2199bc6dad636a9d7491586766f" - integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.7.tgz#968cdc2366ec3da159f61166428ee40f370e56c2" - integrity sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng== - dependencies: - "@babel/types" "^7.20.7" - -"@types/body-parser@*": - version "1.19.5" - resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4" - integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg== - dependencies: - "@types/connect" "*" - "@types/node" "*" - -"@types/bonjour@^3.5.9": - version "3.5.13" - resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.13.tgz#adf90ce1a105e81dd1f9c61fdc5afda1bfb92956" - integrity sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ== - dependencies: - "@types/node" "*" - -"@types/connect-history-api-fallback@^1.3.5": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3" - integrity sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw== - dependencies: - "@types/express-serve-static-core" "*" - "@types/node" "*" - -"@types/connect@*": - version "3.4.38" - resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858" - integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug== - dependencies: - "@types/node" "*" - -"@types/d3-array@*": - version "3.2.1" - resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-3.2.1.tgz#1f6658e3d2006c4fceac53fde464166859f8b8c5" - integrity sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg== - -"@types/d3-axis@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-axis/-/d3-axis-3.0.6.tgz#e760e5765b8188b1defa32bc8bb6062f81e4c795" - integrity sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-brush@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-brush/-/d3-brush-3.0.6.tgz#c2f4362b045d472e1b186cdbec329ba52bdaee6c" - integrity sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-chord@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-chord/-/d3-chord-3.0.6.tgz#1706ca40cf7ea59a0add8f4456efff8f8775793d" - integrity sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg== - -"@types/d3-color@*": - version "3.1.3" - resolved "https://registry.yarnpkg.com/@types/d3-color/-/d3-color-3.1.3.tgz#368c961a18de721da8200e80bf3943fb53136af2" - integrity sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A== - -"@types/d3-contour@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-contour/-/d3-contour-3.0.6.tgz#9ada3fa9c4d00e3a5093fed0356c7ab929604231" - integrity sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg== - dependencies: - "@types/d3-array" "*" - "@types/geojson" "*" - -"@types/d3-delaunay@*": - version "6.0.4" - resolved "https://registry.yarnpkg.com/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz#185c1a80cc807fdda2a3fe960f7c11c4a27952e1" - integrity sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw== - -"@types/d3-dispatch@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-dispatch/-/d3-dispatch-3.0.6.tgz#096efdf55eb97480e3f5621ff9a8da552f0961e7" - integrity sha512-4fvZhzMeeuBJYZXRXrRIQnvUYfyXwYmLsdiN7XXmVNQKKw1cM8a5WdID0g1hVFZDqT9ZqZEY5pD44p24VS7iZQ== - -"@types/d3-drag@*", "@types/d3-drag@^3.0.1": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@types/d3-drag/-/d3-drag-3.0.7.tgz#b13aba8b2442b4068c9a9e6d1d82f8bcea77fc02" - integrity sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-dsv@*": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@types/d3-dsv/-/d3-dsv-3.0.7.tgz#0a351f996dc99b37f4fa58b492c2d1c04e3dac17" - integrity sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g== - -"@types/d3-ease@*": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/d3-ease/-/d3-ease-3.0.2.tgz#e28db1bfbfa617076f7770dd1d9a48eaa3b6c51b" - integrity sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA== - -"@types/d3-fetch@*": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@types/d3-fetch/-/d3-fetch-3.0.7.tgz#c04a2b4f23181aa376f30af0283dbc7b3b569980" - integrity sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA== - dependencies: - "@types/d3-dsv" "*" - -"@types/d3-force@*": - version "3.0.10" - resolved "https://registry.yarnpkg.com/@types/d3-force/-/d3-force-3.0.10.tgz#6dc8fc6e1f35704f3b057090beeeb7ac674bff1a" - integrity sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw== - -"@types/d3-format@*": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/d3-format/-/d3-format-3.0.4.tgz#b1e4465644ddb3fdf3a263febb240a6cd616de90" - integrity sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g== - -"@types/d3-geo@*": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@types/d3-geo/-/d3-geo-3.1.0.tgz#b9e56a079449174f0a2c8684a9a4df3f60522440" - integrity sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ== - dependencies: - "@types/geojson" "*" - -"@types/d3-hierarchy@*": - version "3.1.7" - resolved "https://registry.yarnpkg.com/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz#6023fb3b2d463229f2d680f9ac4b47466f71f17b" - integrity sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg== - -"@types/d3-interpolate@*": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz#412b90e84870285f2ff8a846c6eb60344f12a41c" - integrity sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA== - dependencies: - "@types/d3-color" "*" - -"@types/d3-path@*": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@types/d3-path/-/d3-path-3.1.1.tgz#f632b380c3aca1dba8e34aa049bcd6a4af23df8a" - integrity sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg== - -"@types/d3-polygon@*": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/d3-polygon/-/d3-polygon-3.0.2.tgz#dfae54a6d35d19e76ac9565bcb32a8e54693189c" - integrity sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA== - -"@types/d3-quadtree@*": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz#d4740b0fe35b1c58b66e1488f4e7ed02952f570f" - integrity sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg== - -"@types/d3-random@*": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/d3-random/-/d3-random-3.0.3.tgz#ed995c71ecb15e0cd31e22d9d5d23942e3300cfb" - integrity sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ== - -"@types/d3-scale-chromatic@*": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz#dc6d4f9a98376f18ea50bad6c39537f1b5463c39" - integrity sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ== - -"@types/d3-scale@*": - version "4.0.9" - resolved "https://registry.yarnpkg.com/@types/d3-scale/-/d3-scale-4.0.9.tgz#57a2f707242e6fe1de81ad7bfcccaaf606179afb" - integrity sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw== - dependencies: - "@types/d3-time" "*" - -"@types/d3-selection@*", "@types/d3-selection@^3.0.3": - version "3.0.11" - resolved "https://registry.yarnpkg.com/@types/d3-selection/-/d3-selection-3.0.11.tgz#bd7a45fc0a8c3167a631675e61bc2ca2b058d4a3" - integrity sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w== - -"@types/d3-shape@*": - version "3.1.7" - resolved "https://registry.yarnpkg.com/@types/d3-shape/-/d3-shape-3.1.7.tgz#2b7b423dc2dfe69c8c93596e673e37443348c555" - integrity sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg== - dependencies: - "@types/d3-path" "*" - -"@types/d3-time-format@*": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@types/d3-time-format/-/d3-time-format-4.0.3.tgz#d6bc1e6b6a7db69cccfbbdd4c34b70632d9e9db2" - integrity sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg== - -"@types/d3-time@*": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/d3-time/-/d3-time-3.0.4.tgz#8472feecd639691450dd8000eb33edd444e1323f" - integrity sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g== - -"@types/d3-timer@*": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/d3-timer/-/d3-timer-3.0.2.tgz#70bbda77dc23aa727413e22e214afa3f0e852f70" - integrity sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw== - -"@types/d3-transition@*": - version "3.0.9" - resolved "https://registry.yarnpkg.com/@types/d3-transition/-/d3-transition-3.0.9.tgz#1136bc57e9ddb3c390dccc9b5ff3b7d2b8d94706" - integrity sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-zoom@*", "@types/d3-zoom@^3.0.1": - version "3.0.8" - resolved "https://registry.yarnpkg.com/@types/d3-zoom/-/d3-zoom-3.0.8.tgz#dccb32d1c56b1e1c6e0f1180d994896f038bc40b" - integrity sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw== - dependencies: - "@types/d3-interpolate" "*" - "@types/d3-selection" "*" - -"@types/d3@^7.4.0": - version "7.4.3" - resolved "https://registry.yarnpkg.com/@types/d3/-/d3-7.4.3.tgz#d4550a85d08f4978faf0a4c36b848c61eaac07e2" - integrity sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww== - dependencies: - "@types/d3-array" "*" - "@types/d3-axis" "*" - "@types/d3-brush" "*" - "@types/d3-chord" "*" - "@types/d3-color" "*" - "@types/d3-contour" "*" - "@types/d3-delaunay" "*" - "@types/d3-dispatch" "*" - "@types/d3-drag" "*" - "@types/d3-dsv" "*" - "@types/d3-ease" "*" - "@types/d3-fetch" "*" - "@types/d3-force" "*" - "@types/d3-format" "*" - "@types/d3-geo" "*" - "@types/d3-hierarchy" "*" - "@types/d3-interpolate" "*" - "@types/d3-path" "*" - "@types/d3-polygon" "*" - "@types/d3-quadtree" "*" - "@types/d3-random" "*" - "@types/d3-scale" "*" - "@types/d3-scale-chromatic" "*" - "@types/d3-selection" "*" - "@types/d3-shape" "*" - "@types/d3-time" "*" - "@types/d3-time-format" "*" - "@types/d3-timer" "*" - "@types/d3-transition" "*" - "@types/d3-zoom" "*" - -"@types/debug@^4.0.0": - version "4.1.12" - resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917" - integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ== - dependencies: - "@types/ms" "*" - -"@types/eslint-scope@^3.7.7": - version "3.7.7" - resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" - integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== - dependencies: - "@types/eslint" "*" - "@types/estree" "*" - -"@types/eslint@*": - version "9.6.1" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-9.6.1.tgz#d5795ad732ce81715f27f75da913004a56751584" - integrity sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag== - dependencies: - "@types/estree" "*" - "@types/json-schema" "*" - -"@types/eslint@^7.29.0 || ^8.4.1": - version "8.56.12" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.12.tgz#1657c814ffeba4d2f84c0d4ba0f44ca7ea1ca53a" - integrity sha512-03ruubjWyOHlmljCVoxSuNDdmfZDzsrrz0P2LeJsOXr+ZwFQ+0yQIwNCwt/GYhV7Z31fgtXJTAEs+FYlEL851g== - dependencies: - "@types/estree" "*" - "@types/json-schema" "*" - -"@types/estree-jsx@^1.0.0": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@types/estree-jsx/-/estree-jsx-1.0.5.tgz#858a88ea20f34fe65111f005a689fa1ebf70dc18" - integrity sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg== - dependencies: - "@types/estree" "*" - -"@types/estree@*", "@types/estree@^1.0.0", "@types/estree@^1.0.6": - version "1.0.7" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.7.tgz#4158d3105276773d5b7695cd4834b1722e4f37a8" - integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ== - -"@types/estree@0.0.39": - version "0.0.39" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" - integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== - -"@types/express-serve-static-core@*", "@types/express-serve-static-core@^5.0.0": - version "5.0.6" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-5.0.6.tgz#41fec4ea20e9c7b22f024ab88a95c6bb288f51b8" - integrity sha512-3xhRnjJPkULekpSzgtoNYYcTWgEZkp4myc+Saevii5JPnHNvHMRlBSHDbs7Bh1iPPoVTERHEZXyhyLbMEsExsA== - dependencies: - "@types/node" "*" - "@types/qs" "*" - "@types/range-parser" "*" - "@types/send" "*" - -"@types/express-serve-static-core@^4.17.33": - version "4.19.6" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz#e01324c2a024ff367d92c66f48553ced0ab50267" - integrity sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A== - dependencies: - "@types/node" "*" - "@types/qs" "*" - "@types/range-parser" "*" - "@types/send" "*" - -"@types/express@*": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@types/express/-/express-5.0.1.tgz#138d741c6e5db8cc273bec5285cd6e9d0779fc9f" - integrity sha512-UZUw8vjpWFXuDnjFTh7/5c2TWDlQqeXHi6hcN7F2XSVT5P+WmUnnbFS3KA6Jnc6IsEqI2qCVu2bK0R0J4A8ZQQ== - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "^5.0.0" - "@types/serve-static" "*" - -"@types/express@^4.17.13": - version "4.17.21" - resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.21.tgz#c26d4a151e60efe0084b23dc3369ebc631ed192d" - integrity sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ== - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "^4.17.33" - "@types/qs" "*" - "@types/serve-static" "*" - -"@types/geojson@*": - version "7946.0.16" - resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.16.tgz#8ebe53d69efada7044454e3305c19017d97ced2a" - integrity sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg== - -"@types/graceful-fs@^4.1.2": - version "4.1.9" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.9.tgz#2a06bc0f68a20ab37b3e36aa238be6abdf49e8b4" - integrity sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ== - dependencies: - "@types/node" "*" - -"@types/hast@^3.0.0": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/hast/-/hast-3.0.4.tgz#1d6b39993b82cea6ad783945b0508c25903e15aa" - integrity sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ== - dependencies: - "@types/unist" "*" - -"@types/html-minifier-terser@^6.0.0": - version "6.1.0" - resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35" - integrity sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg== - -"@types/http-errors@*": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-2.0.4.tgz#7eb47726c391b7345a6ec35ad7f4de469cf5ba4f" - integrity sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA== - -"@types/http-proxy@^1.17.8": - version "1.17.16" - resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.16.tgz#dee360707b35b3cc85afcde89ffeebff7d7f9240" - integrity sha512-sdWoUajOB1cd0A8cRRQ1cfyWNbmFKLAqBB89Y8x5iYyG/mkJHc0YUH8pdWBy2omi9qtCpiIgGjuwO0dQST2l5w== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" - integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== - -"@types/istanbul-lib-report@*": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf" - integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54" - integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": - version "7.0.15" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" - integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== - -"@types/mdast@^4.0.0": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-4.0.4.tgz#7ccf72edd2f1aa7dd3437e180c64373585804dd6" - integrity sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA== - dependencies: - "@types/unist" "*" - -"@types/mime@^1": - version "1.3.5" - resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" - integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== - -"@types/ms@*": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78" - integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA== - -"@types/node-forge@^1.3.0": - version "1.3.11" - resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-1.3.11.tgz#0972ea538ddb0f4d9c2fa0ec5db5724773a604da" - integrity sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ== - dependencies: - "@types/node" "*" - -"@types/node@*": - version "22.13.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.14.tgz#70d84ec91013dcd2ba2de35532a5a14c2b4cc912" - integrity sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w== - dependencies: - undici-types "~6.20.0" - -"@types/parse-json@^4.0.0": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239" - integrity sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw== - -"@types/plotly.js-dist-min@^2.3.4": - version "2.3.4" - resolved "https://registry.yarnpkg.com/@types/plotly.js-dist-min/-/plotly.js-dist-min-2.3.4.tgz#dcac506a1e5dc87aa84d0dc910830127f3cd4482" - integrity sha512-ISwLFV6Zs/v3DkaRFLyk2rvYAfVdnYP2VVVy7h+fBDWw52sn7sMUzytkWiN4M75uxr1uz1uiBioePTDpAfoFIg== - dependencies: - "@types/plotly.js" "*" - -"@types/plotly.js@*": - version "2.35.2" - resolved "https://registry.yarnpkg.com/@types/plotly.js/-/plotly.js-2.35.2.tgz#c771a7bf56b398730f8c799879895de4294289c0" - integrity sha512-tn0Kp7F6VWiu96jknCvR/PcdIGIATeIK+Z5WXH3bEvG6CRwUNfhy34yBhfPYmTea7mMQxXvTZKGMm6/Y4wxESg== - -"@types/prettier@^2.1.5": - version "2.7.3" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f" - integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== - -"@types/prop-types@*", "@types/prop-types@^15.7.14": - version "15.7.14" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.14.tgz#1433419d73b2a7ebfc6918dcefd2ec0d5cd698f2" - integrity sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ== - -"@types/q@^1.5.1": - version "1.5.8" - resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.8.tgz#95f6c6a08f2ad868ba230ead1d2d7f7be3db3837" - integrity sha512-hroOstUScF6zhIi+5+x0dzqrHA1EJi+Irri6b1fxolMTqqHIV/Cg77EtnQcZqZCu8hR3mX2BzIxN4/GzI68Kfw== - -"@types/qs@*": - version "6.9.18" - resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.18.tgz#877292caa91f7c1b213032b34626505b746624c2" - integrity sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA== - -"@types/range-parser@*": - version "1.2.7" - resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" - integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== - -"@types/react-transition-group@^4.4.0", "@types/react-transition-group@^4.4.12": - version "4.4.12" - resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.12.tgz#b5d76568485b02a307238270bfe96cb51ee2a044" - integrity sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w== - -"@types/react@^18.3.2": - version "18.3.20" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.20.tgz#b0dccda9d2f1bc24d2a04b1d0cb5d0b9a3576ad3" - integrity sha512-IPaCZN7PShZK/3t6Q87pfTkRm6oLTd4vztyoj+cbHUF1g3FfVb2tFIL79uCRKEfv16AhqDMBywP2VW3KIZUvcg== - dependencies: - "@types/prop-types" "*" - csstype "^3.0.2" - -"@types/resolve@1.17.1": - version "1.17.1" - resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" - integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== - dependencies: - "@types/node" "*" - -"@types/retry@0.12.0": - version "0.12.0" - resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d" - integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA== - -"@types/semver@^7.3.12": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.0.tgz#64c441bdae033b378b6eef7d0c3d77c329b9378e" - integrity sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA== - -"@types/send@*": - version "0.17.4" - resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.4.tgz#6619cd24e7270793702e4e6a4b958a9010cfc57a" - integrity sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA== - dependencies: - "@types/mime" "^1" - "@types/node" "*" - -"@types/serve-index@^1.9.1": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.4.tgz#e6ae13d5053cb06ed36392110b4f9a49ac4ec898" - integrity sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug== - dependencies: - "@types/express" "*" - -"@types/serve-static@*", "@types/serve-static@^1.13.10": - version "1.15.7" - resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.7.tgz#22174bbd74fb97fe303109738e9b5c2f3064f714" - integrity sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw== - dependencies: - "@types/http-errors" "*" - "@types/node" "*" - "@types/send" "*" - -"@types/sockjs@^0.3.33": - version "0.3.36" - resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.36.tgz#ce322cf07bcc119d4cbf7f88954f3a3bd0f67535" - integrity sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q== - dependencies: - "@types/node" "*" - -"@types/stack-utils@^2.0.0": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" - integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== - -"@types/trusted-types@^2.0.2": - version "2.0.7" - resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11" - integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw== - -"@types/unist@*", "@types/unist@^3.0.0": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c" - integrity sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== - -"@types/unist@^2.0.0": - version "2.0.11" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.11.tgz#11af57b127e32487774841f7a4e54eab166d03c4" - integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA== - -"@types/ws@^8.5.5": - version "8.18.0" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.0.tgz#8a2ec491d6f0685ceaab9a9b7ff44146236993b5" - integrity sha512-8svvI3hMyvN0kKCJMvTJP/x6Y/EoQbepff882wL+Sn5QsXb3etnamgrJq4isrBxSJj5L2AuXcI0+bgkoAXGUJw== - dependencies: - "@types/node" "*" - -"@types/yargs-parser@*": - version "21.0.3" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" - integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== - -"@types/yargs@^16.0.0": - version "16.0.9" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.9.tgz#ba506215e45f7707e6cbcaf386981155b7ab956e" - integrity sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^17.0.8": - version "17.0.33" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d" - integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA== - dependencies: - "@types/yargs-parser" "*" - -"@typescript-eslint/eslint-plugin@^5.5.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz#aeef0328d172b9e37d9bab6dbc13b87ed88977db" - integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/type-utils" "5.62.0" - "@typescript-eslint/utils" "5.62.0" - debug "^4.3.4" - graphemer "^1.4.0" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/experimental-utils@^5.0.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz#14559bf73383a308026b427a4a6129bae2146741" - integrity sha512-RTXpeB3eMkpoclG3ZHft6vG/Z30azNHuqY6wKPBHlVMZFuEvrtlEDe8gMqDb+SO+9hjC/pLekeSCryf9vMZlCw== - dependencies: - "@typescript-eslint/utils" "5.62.0" - -"@typescript-eslint/parser@^5.5.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.62.0.tgz#1b63d082d849a2fcae8a569248fbe2ee1b8a56c7" - integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== - dependencies: - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/typescript-estree" "5.62.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz#d9457ccc6a0b8d6b37d0eb252a23022478c5460c" - integrity sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w== - dependencies: - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/visitor-keys" "5.62.0" - -"@typescript-eslint/type-utils@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz#286f0389c41681376cdad96b309cedd17d70346a" - integrity sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew== - dependencies: - "@typescript-eslint/typescript-estree" "5.62.0" - "@typescript-eslint/utils" "5.62.0" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/types@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f" - integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== - -"@typescript-eslint/typescript-estree@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b" - integrity sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA== - dependencies: - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/visitor-keys" "5.62.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.62.0", "@typescript-eslint/utils@^5.58.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86" - integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/typescript-estree" "5.62.0" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/visitor-keys@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e" - integrity sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw== - dependencies: - "@typescript-eslint/types" "5.62.0" - eslint-visitor-keys "^3.3.0" - -"@ungap/structured-clone@^1.0.0", "@ungap/structured-clone@^1.2.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8" - integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g== - -"@webassemblyjs/ast@1.14.1", "@webassemblyjs/ast@^1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.14.1.tgz#a9f6a07f2b03c95c8d38c4536a1fdfb521ff55b6" - integrity sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ== - dependencies: - "@webassemblyjs/helper-numbers" "1.13.2" - "@webassemblyjs/helper-wasm-bytecode" "1.13.2" - -"@webassemblyjs/floating-point-hex-parser@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz#fcca1eeddb1cc4e7b6eed4fc7956d6813b21b9fb" - integrity sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA== - -"@webassemblyjs/helper-api-error@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz#e0a16152248bc38daee76dd7e21f15c5ef3ab1e7" - integrity sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ== - -"@webassemblyjs/helper-buffer@1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz#822a9bc603166531f7d5df84e67b5bf99b72b96b" - integrity sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA== - -"@webassemblyjs/helper-numbers@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz#dbd932548e7119f4b8a7877fd5a8d20e63490b2d" - integrity sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA== - dependencies: - "@webassemblyjs/floating-point-hex-parser" "1.13.2" - "@webassemblyjs/helper-api-error" "1.13.2" - "@xtuc/long" "4.2.2" - -"@webassemblyjs/helper-wasm-bytecode@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz#e556108758f448aae84c850e593ce18a0eb31e0b" - integrity sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA== - -"@webassemblyjs/helper-wasm-section@1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz#9629dda9c4430eab54b591053d6dc6f3ba050348" - integrity sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@webassemblyjs/helper-buffer" "1.14.1" - "@webassemblyjs/helper-wasm-bytecode" "1.13.2" - "@webassemblyjs/wasm-gen" "1.14.1" - -"@webassemblyjs/ieee754@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz#1c5eaace1d606ada2c7fd7045ea9356c59ee0dba" - integrity sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw== - dependencies: - "@xtuc/ieee754" "^1.2.0" - -"@webassemblyjs/leb128@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.13.2.tgz#57c5c3deb0105d02ce25fa3fd74f4ebc9fd0bbb0" - integrity sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw== - dependencies: - "@xtuc/long" "4.2.2" - -"@webassemblyjs/utf8@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.13.2.tgz#917a20e93f71ad5602966c2d685ae0c6c21f60f1" - integrity sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ== - -"@webassemblyjs/wasm-edit@^1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz#ac6689f502219b59198ddec42dcd496b1004d597" - integrity sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@webassemblyjs/helper-buffer" "1.14.1" - "@webassemblyjs/helper-wasm-bytecode" "1.13.2" - "@webassemblyjs/helper-wasm-section" "1.14.1" - "@webassemblyjs/wasm-gen" "1.14.1" - "@webassemblyjs/wasm-opt" "1.14.1" - "@webassemblyjs/wasm-parser" "1.14.1" - "@webassemblyjs/wast-printer" "1.14.1" - -"@webassemblyjs/wasm-gen@1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz#991e7f0c090cb0bb62bbac882076e3d219da9570" - integrity sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@webassemblyjs/helper-wasm-bytecode" "1.13.2" - "@webassemblyjs/ieee754" "1.13.2" - "@webassemblyjs/leb128" "1.13.2" - "@webassemblyjs/utf8" "1.13.2" - -"@webassemblyjs/wasm-opt@1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz#e6f71ed7ccae46781c206017d3c14c50efa8106b" - integrity sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@webassemblyjs/helper-buffer" "1.14.1" - "@webassemblyjs/wasm-gen" "1.14.1" - "@webassemblyjs/wasm-parser" "1.14.1" - -"@webassemblyjs/wasm-parser@1.14.1", "@webassemblyjs/wasm-parser@^1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz#b3e13f1893605ca78b52c68e54cf6a865f90b9fb" - integrity sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@webassemblyjs/helper-api-error" "1.13.2" - "@webassemblyjs/helper-wasm-bytecode" "1.13.2" - "@webassemblyjs/ieee754" "1.13.2" - "@webassemblyjs/leb128" "1.13.2" - "@webassemblyjs/utf8" "1.13.2" - -"@webassemblyjs/wast-printer@1.14.1": - version "1.14.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz#3bb3e9638a8ae5fdaf9610e7a06b4d9f9aa6fe07" - integrity sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw== - dependencies: - "@webassemblyjs/ast" "1.14.1" - "@xtuc/long" "4.2.2" - -"@webpack-cli/configtest@^2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-2.1.1.tgz#3b2f852e91dac6e3b85fb2a314fb8bef46d94646" - integrity sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw== - -"@webpack-cli/info@^2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-2.0.2.tgz#cc3fbf22efeb88ff62310cf885c5b09f44ae0fdd" - integrity sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A== - -"@webpack-cli/serve@^2.0.5": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-2.0.5.tgz#325db42395cd49fe6c14057f9a900e427df8810e" - integrity sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ== - -"@xtuc/ieee754@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" - integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== - -"@xtuc/long@4.2.2": - version "4.2.2" - resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" - integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== - -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - -accepts@~1.3.4, accepts@~1.3.8: - version "1.3.8" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.14.0, acorn@^8.2.4, acorn@^8.8.2, acorn@^8.9.0: - version "8.14.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" - integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== - -address@^1.0.1, address@^1.1.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/address/-/address-1.2.2.tgz#2b5248dac5485a6390532c6a517fda2e3faac89e" - integrity sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA== - -adjust-sourcemap-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz#fc4a0fd080f7d10471f30a7320f25560ade28c99" - integrity sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A== - dependencies: - loader-utils "^2.0.0" - regex-parser "^2.2.11" - -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -ajv-formats@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" - integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== - dependencies: - ajv "^8.0.0" - -ajv-keywords@^3.4.1, ajv-keywords@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" - integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== - -ajv-keywords@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" - integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== - dependencies: - fast-deep-equal "^3.1.3" - -ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.0, ajv@^8.6.0, ajv@^8.9.0: - version "8.17.1" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" - integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== - dependencies: - fast-deep-equal "^3.1.3" - fast-uri "^3.0.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - -ansi-colors@^4.1.3: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-escapes@^4.2.1, ansi-escapes@^4.3.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-html-community@^0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" - integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== - -ansi-html@^0.0.9: - version "0.0.9" - resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.9.tgz#6512d02342ae2cc68131952644a129cb734cd3f0" - integrity sha512-ozbS3LuenHVxNRh/wdnN16QapUHzauqSomAl1jwwJRRsGwFwtj644lIhxfWu0Fy0acCij2+AEgHvjscq3dlVXg== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-regex@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.1.0.tgz#95ec409c69619d6cb1b8b34f14b660ef28ebd654" - integrity sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA== - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" - integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== - -ansi-styles@^6.1.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" - integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== - -any-promise@^1.0.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" - integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== - -anymatch@^3.0.3, anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -arg@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" - integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -aria-hidden@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/aria-hidden/-/aria-hidden-1.2.4.tgz#b78e383fdbc04d05762c78b4a25a501e736c4522" - integrity sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A== - dependencies: - tslib "^2.0.0" - -aria-query@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.2.tgz#93f81a43480e33a338f19163a3d10a50c01dcd59" - integrity sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw== - -array-buffer-byte-length@^1.0.1, array-buffer-byte-length@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz#384d12a37295aec3769ab022ad323a18a51ccf8b" - integrity sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw== - dependencies: - call-bound "^1.0.3" - is-array-buffer "^3.0.5" - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== - -array-includes@^3.1.6, array-includes@^3.1.8: - version "3.1.8" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" - integrity sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-object-atoms "^1.0.0" - get-intrinsic "^1.2.4" - is-string "^1.0.7" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array.prototype.findlast@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904" - integrity sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - es-shim-unscopables "^1.0.2" - -array.prototype.findlastindex@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz#cfa1065c81dcb64e34557c9b81d012f6a421c564" - integrity sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.4" - define-properties "^1.2.1" - es-abstract "^1.23.9" - es-errors "^1.3.0" - es-object-atoms "^1.1.1" - es-shim-unscopables "^1.1.0" - -array.prototype.flat@^1.3.1, array.prototype.flat@^1.3.2: - version "1.3.3" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz#534aaf9e6e8dd79fb6b9a9917f839ef1ec63afe5" - integrity sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg== - dependencies: - call-bind "^1.0.8" - define-properties "^1.2.1" - es-abstract "^1.23.5" - es-shim-unscopables "^1.0.2" - -array.prototype.flatmap@^1.3.2, array.prototype.flatmap@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz#712cc792ae70370ae40586264629e33aab5dd38b" - integrity sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg== - dependencies: - call-bind "^1.0.8" - define-properties "^1.2.1" - es-abstract "^1.23.5" - es-shim-unscopables "^1.0.2" - -array.prototype.reduce@^1.0.6: - version "1.0.8" - resolved "https://registry.yarnpkg.com/array.prototype.reduce/-/array.prototype.reduce-1.0.8.tgz#42f97f5078daedca687d4463fd3c05cbfd83da57" - integrity sha512-DwuEqgXFBwbmZSRqt3BpQigWNUoqw9Ml2dTWdF3B2zQlQX4OeUE0zyuzX0fX0IbTvjdkZbcBTU3idgpO78qkTw== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.4" - define-properties "^1.2.1" - es-abstract "^1.23.9" - es-array-method-boxes-properly "^1.0.0" - es-errors "^1.3.0" - es-object-atoms "^1.1.1" - is-string "^1.1.1" - -array.prototype.tosorted@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz#fe954678ff53034e717ea3352a03f0b0b86f7ffc" - integrity sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.3" - es-errors "^1.3.0" - es-shim-unscopables "^1.0.2" - -arraybuffer.prototype.slice@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz#9d760d84dbdd06d0cbf92c8849615a1a7ab3183c" - integrity sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ== - dependencies: - array-buffer-byte-length "^1.0.1" - call-bind "^1.0.8" - define-properties "^1.2.1" - es-abstract "^1.23.5" - es-errors "^1.3.0" - get-intrinsic "^1.2.6" - is-array-buffer "^3.0.4" - -asap@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -assertion-error@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" - integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== - -ast-types-flow@^0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.8.tgz#0a85e1c92695769ac13a428bb653e7538bea27d6" - integrity sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ== - -async-function@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/async-function/-/async-function-1.0.0.tgz#509c9fca60eaf85034c6829838188e4e4c8ffb2b" - integrity sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA== - -async@^3.2.3: - version "3.2.6" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce" - integrity sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -autoprefixer@^10.4.13: - version "10.4.21" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.21.tgz#77189468e7a8ad1d9a37fbc08efc9f480cf0a95d" - integrity sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ== - dependencies: - browserslist "^4.24.4" - caniuse-lite "^1.0.30001702" - fraction.js "^4.3.7" - normalize-range "^0.1.2" - picocolors "^1.1.1" - postcss-value-parser "^4.2.0" - -available-typed-arrays@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" - integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== - dependencies: - possible-typed-array-names "^1.0.0" - -axe-core@^4.10.0: - version "4.10.3" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.10.3.tgz#04145965ac7894faddbac30861e5d8f11bfd14fc" - integrity sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg== - -axios@^1.7.9: - version "1.8.4" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.4.tgz#78990bb4bc63d2cae072952d374835950a82f447" - integrity sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw== - dependencies: - follow-redirects "^1.15.6" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - -axobject-query@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.1.0.tgz#28768c76d0e3cff21bc62a9e2d0b6ac30042a1ee" - integrity sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ== - -babel-jest@^27.4.2, babel-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444" - integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== - dependencies: - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__core" "^7.1.14" - babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - slash "^3.0.0" - -babel-loader@^8.2.3: - version "8.4.1" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.4.1.tgz#6ccb75c66e62c3b144e1c5f2eaec5b8f6c08c675" - integrity sha512-nXzRChX+Z1GoE6yWavBQg6jDslyFF3SDjl2paADuoQtQW10JqShJt62R6eJQ5m/pjJFDT8xgKIWSP85OY8eXeA== - dependencies: - find-cache-dir "^3.3.1" - loader-utils "^2.0.4" - make-dir "^3.1.0" - schema-utils "^2.6.5" - -babel-plugin-istanbul@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz#9be98ecf28c331eb9f5df9c72d6f89deb8181c2e" - integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - -babel-plugin-macros@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1" - integrity sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg== - dependencies: - "@babel/runtime" "^7.12.5" - cosmiconfig "^7.0.0" - resolve "^1.19.0" - -babel-plugin-named-asset-import@^0.3.8: - version "0.3.8" - resolved "https://registry.yarnpkg.com/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz#6b7fa43c59229685368683c28bc9734f24524cc2" - integrity sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q== - -babel-plugin-polyfill-corejs2@^0.4.10: - version "0.4.13" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.13.tgz#7d445f0e0607ebc8fb6b01d7e8fb02069b91dd8b" - integrity sha512-3sX/eOms8kd3q2KZ6DAhKPc0dgm525Gqq5NtWKZ7QYYZEv57OQ54KtblzJzH1lQF/eQxO8KjWGIK9IPUJNus5g== - dependencies: - "@babel/compat-data" "^7.22.6" - "@babel/helper-define-polyfill-provider" "^0.6.4" - semver "^6.3.1" - -babel-plugin-polyfill-corejs3@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz#4e4e182f1bb37c7ba62e2af81d8dd09df31344f6" - integrity sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.3" - core-js-compat "^3.40.0" - -babel-plugin-polyfill-regenerator@^0.6.1: - version "0.6.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.4.tgz#428c615d3c177292a22b4f93ed99e358d7906a9b" - integrity sha512-7gD3pRadPrbjhjLyxebmx/WrFYcuSjZ0XbdUujQMZ/fcE9oeewk2U/7PCvez84UeuK3oSjmPZ0Ch0dlupQvGzw== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.4" - -babel-plugin-transform-react-remove-prop-types@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" - integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== - -babel-preset-current-node-syntax@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz#9a929eafece419612ef4ae4f60b1862ebad8ef30" - integrity sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-import-attributes" "^7.24.7" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" - -babel-preset-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81" - integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag== - dependencies: - babel-plugin-jest-hoist "^27.5.1" - babel-preset-current-node-syntax "^1.0.0" - -babel-preset-react-app@^10.0.1: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-preset-react-app/-/babel-preset-react-app-10.1.0.tgz#e367f223f6c27878e6cc28471d0d506a9ab9f96c" - integrity sha512-f9B1xMdnkCIqe+2dHrJsoQFRz7reChaAHE/65SdaykPklQqhme2WaC08oD3is77x9ff98/9EazAKFDZv5rFEQg== - dependencies: - "@babel/core" "^7.16.0" - "@babel/plugin-proposal-class-properties" "^7.16.0" - "@babel/plugin-proposal-decorators" "^7.16.4" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.16.0" - "@babel/plugin-proposal-numeric-separator" "^7.16.0" - "@babel/plugin-proposal-optional-chaining" "^7.16.0" - "@babel/plugin-proposal-private-methods" "^7.16.0" - "@babel/plugin-proposal-private-property-in-object" "^7.16.7" - "@babel/plugin-transform-flow-strip-types" "^7.16.0" - "@babel/plugin-transform-react-display-name" "^7.16.0" - "@babel/plugin-transform-runtime" "^7.16.4" - "@babel/preset-env" "^7.16.4" - "@babel/preset-react" "^7.16.0" - "@babel/preset-typescript" "^7.16.0" - "@babel/runtime" "^7.16.3" - babel-plugin-macros "^3.1.0" - babel-plugin-transform-react-remove-prop-types "^0.4.24" - -bail@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d" - integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -batch@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" - integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== - -bfj@^7.0.2: - version "7.1.0" - resolved "https://registry.yarnpkg.com/bfj/-/bfj-7.1.0.tgz#c5177d522103f9040e1b12980fe8c38cf41d3f8b" - integrity sha512-I6MMLkn+anzNdCUp9hMRyui1HaNEUCco50lxbvNS4+EyXg8lN3nJ48PjPWtbH8UVS9CuMoaKE9U2V3l29DaRQw== - dependencies: - bluebird "^3.7.2" - check-types "^11.2.3" - hoopy "^0.1.4" - jsonpath "^1.1.1" - tryer "^1.0.1" - -big.js@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" - integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== - -binary-extensions@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" - integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== - -bluebird@^3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" - integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== - -body-parser@1.20.3: - version "1.20.3" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.3.tgz#1953431221c6fb5cd63c4b36d53fab0928e548c6" - integrity sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g== - dependencies: - bytes "3.1.2" - content-type "~1.0.5" - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - http-errors "2.0.0" - iconv-lite "0.4.24" - on-finished "2.4.1" - qs "6.13.0" - raw-body "2.5.2" - type-is "~1.6.18" - unpipe "1.0.0" - -bonjour-service@^1.0.11: - version "1.3.0" - resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.3.0.tgz#80d867430b5a0da64e82a8047fc1e355bdb71722" - integrity sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA== - dependencies: - fast-deep-equal "^3.1.3" - multicast-dns "^7.2.5" - -boolbase@^1.0.0, boolbase@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" - integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^3.0.3, braces@~3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" - integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== - dependencies: - fill-range "^7.1.1" - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browser-stdout@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -browserslist@^4.0.0, browserslist@^4.18.1, browserslist@^4.21.4, browserslist@^4.24.0, browserslist@^4.24.4: - version "4.24.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" - integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== - dependencies: - caniuse-lite "^1.0.30001688" - electron-to-chromium "^1.5.73" - node-releases "^2.0.19" - update-browserslist-db "^1.1.1" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -builtin-modules@^3.1.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" - integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" - integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - -call-bind@^1.0.7, call-bind@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c" - integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww== - dependencies: - call-bind-apply-helpers "^1.0.0" - es-define-property "^1.0.0" - get-intrinsic "^1.2.4" - set-function-length "^1.2.2" - -call-bound@^1.0.2, call-bound@^1.0.3, call-bound@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" - integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== - dependencies: - call-bind-apply-helpers "^1.0.2" - get-intrinsic "^1.3.0" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camel-case@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a" - integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw== - dependencies: - pascal-case "^3.1.2" - tslib "^2.0.3" - -camelcase-css@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" - integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0, camelcase@^6.2.0, camelcase@^6.2.1: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caniuse-api@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0" - integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== - dependencies: - browserslist "^4.0.0" - caniuse-lite "^1.0.0" - lodash.memoize "^4.1.2" - lodash.uniq "^4.5.0" - -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001688, caniuse-lite@^1.0.30001702: - version "1.0.30001707" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001707.tgz#c5e104d199e6f4355a898fcd995a066c7eb9bf41" - integrity sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw== - -case-sensitive-paths-webpack-plugin@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz#db64066c6422eed2e08cc14b986ca43796dbc6d4" - integrity sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw== - -ccount@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5" - integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== - -chai@^5.1.1: - version "5.2.0" - resolved "https://registry.yarnpkg.com/chai/-/chai-5.2.0.tgz#1358ee106763624114addf84ab02697e411c9c05" - integrity sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw== - dependencies: - assertion-error "^2.0.1" - check-error "^2.1.1" - deep-eql "^5.0.1" - loupe "^3.1.0" - pathval "^2.0.0" - -chalk@^2.4.1: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -char-regex@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-2.0.2.tgz#81385bb071af4df774bff8721d0ca15ef29ea0bb" - integrity sha512-cbGOjAptfM2LVmWhwRFHEKTPkLwNddVmuqYZQt895yXwAsWsXObCG+YN4DGQ/JBtT4GP1a1lPPdio2z413LmTg== - -character-entities-html4@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b" - integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== - -character-entities-legacy@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b" - integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== - -character-entities@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22" - integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== - -character-reference-invalid@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz#85c66b041e43b47210faf401278abf808ac45cb9" - integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw== - -check-error@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/check-error/-/check-error-2.1.1.tgz#87eb876ae71ee388fa0471fe423f494be1d96ccc" - integrity sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw== - -check-types@^11.2.3: - version "11.2.3" - resolved "https://registry.yarnpkg.com/check-types/-/check-types-11.2.3.tgz#1ffdf68faae4e941fce252840b1787b8edc93b71" - integrity sha512-+67P1GkJRaxQD6PKK0Et9DhwQB+vGg3PM5+aavopCpZT1lj9jeqfvpgTLAWErNj8qApkkmXlu/Ug74kmhagkXg== - -chokidar@^3.4.2, chokidar@^3.5.3, chokidar@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" - integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -chrome-trace-event@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz#05bffd7ff928465093314708c93bdfa9bd1f0f5b" - integrity sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ== - -ci-info@^3.2.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" - integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== - -cjs-module-lexer@^1.0.0: - version "1.4.3" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz#0f79731eb8cfe1ec72acd4066efac9d61991b00d" - integrity sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q== - -classcat@^5.0.3, classcat@^5.0.4: - version "5.0.5" - resolved "https://registry.yarnpkg.com/classcat/-/classcat-5.0.5.tgz#8c209f359a93ac302404a10161b501eba9c09c77" - integrity sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w== - -clean-css@^5.2.2: - version "5.3.3" - resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.3.tgz#b330653cd3bd6b75009cc25c714cae7b93351ccd" - integrity sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg== - dependencies: - source-map "~0.6.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -clsx@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999" - integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - -coa@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" - integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== - dependencies: - "@types/q" "^1.5.1" - chalk "^2.4.1" - q "^1.1.2" - -collect-v8-coverage@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" - integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -colord@^2.9.1: - version "2.9.3" - resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43" - integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw== - -colorette@^2.0.10, colorette@^2.0.14: - version "2.0.20" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" - integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -comma-separated-tokens@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee" - integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== - -commander@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" - integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== - -commander@^2.20.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -commander@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" - integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== - -commander@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" - integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== - -commander@^8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== - -common-tags@^1.8.0: - version "1.8.2" - resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" - integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -compressible@~2.0.18: - version "2.0.18" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" - integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== - dependencies: - mime-db ">= 1.43.0 < 2" - -compression@^1.7.4: - version "1.8.0" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.8.0.tgz#09420efc96e11a0f44f3a558de59e321364180f7" - integrity sha512-k6WLKfunuqCYD3t6AsuPGvQWaKwuLLh2/xHNcX4qE+vIfDNXpSqnrhwA7O53R7WVQUnt8dVAIW+YHr7xTgOgGA== - dependencies: - bytes "3.1.2" - compressible "~2.0.18" - debug "2.6.9" - negotiator "~0.6.4" - on-headers "~1.0.2" - safe-buffer "5.2.1" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -confusing-browser-globals@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz#ae40e9b57cdd3915408a2805ebd3a5585608dc81" - integrity sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA== - -connect-history-api-fallback@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" - integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== - -content-disposition@0.5.4: - version "0.5.4" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" - integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== - dependencies: - safe-buffer "5.2.1" - -content-type@^1.0.5, content-type@~1.0.4, content-type@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" - integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== - -convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - -convert-source-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" - integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== - -cookie@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.1.tgz#2f73c42142d5d5cf71310a74fc4ae61670e5dbc9" - integrity sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w== - -core-js-compat@^3.40.0: - version "3.41.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.41.0.tgz#4cdfce95f39a8f27759b667cf693d96e5dda3d17" - integrity sha512-RFsU9LySVue9RTwdDVX/T0e2Y6jRYWXERKElIjpuEOEnxaXffI0X7RUwVzfYLfzuLXSNJDYoRYUAmRUcyln20A== - dependencies: - browserslist "^4.24.4" - -core-js-pure@^3.23.3: - version "3.41.0" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.41.0.tgz#349fecad168d60807a31e83c99d73d786fe80811" - integrity sha512-71Gzp96T9YPk63aUvE5Q5qP+DryB4ZloUZPSOebGM88VNw8VNfvdA7z6kGA8iGOTEzAomsRidp4jXSmUIJsL+Q== - -core-js@^3.19.2: - version "3.41.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.41.0.tgz#57714dafb8c751a6095d028a7428f1fb5834a776" - integrity sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA== - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cosmiconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" - integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.1.0" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.7.2" - -cosmiconfig@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cross-spawn@^7.0.2, cross-spawn@^7.0.3, cross-spawn@^7.0.6: - version "7.0.6" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" - integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -crypto-random-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" - integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== - -css-blank-pseudo@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz#36523b01c12a25d812df343a32c322d2a2324561" - integrity sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ== - dependencies: - postcss-selector-parser "^6.0.9" - -css-declaration-sorter@^6.3.1: - version "6.4.1" - resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz#28beac7c20bad7f1775be3a7129d7eae409a3a71" - integrity sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g== - -css-has-pseudo@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz#57f6be91ca242d5c9020ee3e51bbb5b89fc7af73" - integrity sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw== - dependencies: - postcss-selector-parser "^6.0.9" - -css-loader@^6.5.1: - version "6.11.0" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.11.0.tgz#33bae3bf6363d0a7c2cf9031c96c744ff54d85ba" - integrity sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g== - dependencies: - icss-utils "^5.1.0" - postcss "^8.4.33" - postcss-modules-extract-imports "^3.1.0" - postcss-modules-local-by-default "^4.0.5" - postcss-modules-scope "^3.2.0" - postcss-modules-values "^4.0.0" - postcss-value-parser "^4.2.0" - semver "^7.5.4" - -css-minimizer-webpack-plugin@^3.2.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz#ab78f781ced9181992fe7b6e4f3422e76429878f" - integrity sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q== - dependencies: - cssnano "^5.0.6" - jest-worker "^27.0.2" - postcss "^8.3.5" - schema-utils "^4.0.0" - serialize-javascript "^6.0.0" - source-map "^0.6.1" - -css-prefers-color-scheme@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz#ca8a22e5992c10a5b9d315155e7caee625903349" - integrity sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA== - -css-select-base-adapter@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7" - integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== - -css-select@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-2.1.0.tgz#6a34653356635934a81baca68d0255432105dbef" - integrity sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ== - dependencies: - boolbase "^1.0.0" - css-what "^3.2.1" - domutils "^1.7.0" - nth-check "^1.0.2" - -css-select@^4.1.3: - version "4.3.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.3.0.tgz#db7129b2846662fd8628cfc496abb2b59e41529b" - integrity sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ== - dependencies: - boolbase "^1.0.0" - css-what "^6.0.1" - domhandler "^4.3.1" - domutils "^2.8.0" - nth-check "^2.0.1" - -css-tree@1.0.0-alpha.37: - version "1.0.0-alpha.37" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.37.tgz#98bebd62c4c1d9f960ec340cf9f7522e30709a22" - integrity sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg== - dependencies: - mdn-data "2.0.4" - source-map "^0.6.1" - -css-tree@^1.1.2, css-tree@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" - integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== - dependencies: - mdn-data "2.0.14" - source-map "^0.6.1" - -css-what@^3.2.1: - version "3.4.2" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4" - integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== - -css-what@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" - integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== - -cssdb@^7.1.0: - version "7.11.2" - resolved "https://registry.yarnpkg.com/cssdb/-/cssdb-7.11.2.tgz#127a2f5b946ee653361a5af5333ea85a39df5ae5" - integrity sha512-lhQ32TFkc1X4eTefGfYPvgovRSzIMofHkigfH8nWtyRL4XJLsRhJFreRvEgKzept7x1rjBuy3J/MurXLaFxW/A== - -cssesc@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" - integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== - -cssnano-preset-default@^5.2.14: - version "5.2.14" - resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz#309def4f7b7e16d71ab2438052093330d9ab45d8" - integrity sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A== - dependencies: - css-declaration-sorter "^6.3.1" - cssnano-utils "^3.1.0" - postcss-calc "^8.2.3" - postcss-colormin "^5.3.1" - postcss-convert-values "^5.1.3" - postcss-discard-comments "^5.1.2" - postcss-discard-duplicates "^5.1.0" - postcss-discard-empty "^5.1.1" - postcss-discard-overridden "^5.1.0" - postcss-merge-longhand "^5.1.7" - postcss-merge-rules "^5.1.4" - postcss-minify-font-values "^5.1.0" - postcss-minify-gradients "^5.1.1" - postcss-minify-params "^5.1.4" - postcss-minify-selectors "^5.2.1" - postcss-normalize-charset "^5.1.0" - postcss-normalize-display-values "^5.1.0" - postcss-normalize-positions "^5.1.1" - postcss-normalize-repeat-style "^5.1.1" - postcss-normalize-string "^5.1.0" - postcss-normalize-timing-functions "^5.1.0" - postcss-normalize-unicode "^5.1.1" - postcss-normalize-url "^5.1.0" - postcss-normalize-whitespace "^5.1.1" - postcss-ordered-values "^5.1.3" - postcss-reduce-initial "^5.1.2" - postcss-reduce-transforms "^5.1.0" - postcss-svgo "^5.1.0" - postcss-unique-selectors "^5.1.1" - -cssnano-utils@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-3.1.0.tgz#95684d08c91511edfc70d2636338ca37ef3a6861" - integrity sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA== - -cssnano@^5.0.6: - version "5.1.15" - resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.1.15.tgz#ded66b5480d5127fcb44dac12ea5a983755136bf" - integrity sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw== - dependencies: - cssnano-preset-default "^5.2.14" - lilconfig "^2.0.3" - yaml "^1.10.2" - -csso@^4.0.2, csso@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529" - integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== - dependencies: - css-tree "^1.1.2" - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -csstype@^3.0.2, csstype@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" - integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== - -"d3-color@1 - 3": - version "3.1.0" - resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2" - integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA== - -"d3-dispatch@1 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-3.0.1.tgz#5fc75284e9c2375c36c839411a0cf550cbfc4d5e" - integrity sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg== - -"d3-drag@2 - 3", d3-drag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/d3-drag/-/d3-drag-3.0.0.tgz#994aae9cd23c719f53b5e10e3a0a6108c69607ba" - integrity sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg== - dependencies: - d3-dispatch "1 - 3" - d3-selection "3" - -"d3-ease@1 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.1.tgz#9658ac38a2140d59d346160f1f6c30fda0bd12f4" - integrity sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w== - -"d3-interpolate@1 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d" - integrity sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g== - dependencies: - d3-color "1 - 3" - -"d3-selection@2 - 3", d3-selection@3, d3-selection@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-3.0.0.tgz#c25338207efa72cc5b9bd1458a1a41901f1e1b31" - integrity sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ== - -"d3-timer@1 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-3.0.1.tgz#6284d2a2708285b1abb7e201eda4380af35e63b0" - integrity sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA== - -"d3-transition@2 - 3": - version "3.0.1" - resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-3.0.1.tgz#6869fdde1448868077fdd5989200cb61b2a1645f" - integrity sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w== - dependencies: - d3-color "1 - 3" - d3-dispatch "1 - 3" - d3-ease "1 - 3" - d3-interpolate "1 - 3" - d3-timer "1 - 3" - -d3-zoom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/d3-zoom/-/d3-zoom-3.0.0.tgz#d13f4165c73217ffeaa54295cd6969b3e7aee8f3" - integrity sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw== - dependencies: - d3-dispatch "1 - 3" - d3-drag "2 - 3" - d3-interpolate "1 - 3" - d3-selection "2 - 3" - d3-transition "2 - 3" - -damerau-levenshtein@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" - integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -data-view-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570" - integrity sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ== - dependencies: - call-bound "^1.0.3" - es-errors "^1.3.0" - is-data-view "^1.0.2" - -data-view-byte-length@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz#9e80f7ca52453ce3e93d25a35318767ea7704735" - integrity sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ== - dependencies: - call-bound "^1.0.3" - es-errors "^1.3.0" - is-data-view "^1.0.2" - -data-view-byte-offset@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz#068307f9b71ab76dbbe10291389e020856606191" - integrity sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -debug@2.6.9, debug@^2.6.0: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5: - version "4.4.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" - integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== - dependencies: - ms "^2.1.3" - -debug@^3.2.7: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -decimal.js@^10.2.1: - version "10.5.0" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.5.0.tgz#0f371c7cf6c4898ce0afb09836db73cd82010f22" - integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw== - -decode-named-character-reference@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/decode-named-character-reference/-/decode-named-character-reference-1.1.0.tgz#5d6ce68792808901210dac42a8e9853511e2b8bf" - integrity sha512-Wy+JTSbFThEOXQIR2L6mxJvEs+veIzpmqD7ynWxMXGpnk3smkHQOp6forLdHsKpAMW9iJpaBBIxz285t1n1C3w== - dependencies: - character-entities "^2.0.0" - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== - -deep-eql@^5.0.1: - version "5.0.2" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-5.0.2.tgz#4b756d8d770a9257300825d52a2c2cff99c3a341" - integrity sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q== - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^4.2.2: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - -default-gateway@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" - integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== - dependencies: - execa "^5.0.0" - -define-data-property@^1.0.1, define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -define-lazy-prop@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" - integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== - -define-properties@^1.1.3, define-properties@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" - integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== - dependencies: - define-data-property "^1.0.1" - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== - -dequal@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" - integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== - -destroy@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -detect-node-es@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/detect-node-es/-/detect-node-es-1.1.0.tgz#163acdf643330caa0b4cd7c21e7ee7755d6fa493" - integrity sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ== - -detect-node@^2.0.4: - version "2.1.0" - resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1" - integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== - -detect-port-alt@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/detect-port-alt/-/detect-port-alt-1.1.6.tgz#24707deabe932d4a3cf621302027c2b266568275" - integrity sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q== - dependencies: - address "^1.0.1" - debug "^2.6.0" - -devlop@^1.0.0, devlop@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/devlop/-/devlop-1.1.0.tgz#4db7c2ca4dc6e0e834c30be70c94bbc976dc7018" - integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== - dependencies: - dequal "^2.0.0" - -didyoumean@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" - integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== - -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== - -diff@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531" - integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A== - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -dlv@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" - integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== - -dns-packet@^5.2.2: - version "5.6.1" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.6.1.tgz#ae888ad425a9d1478a0674256ab866de1012cf2f" - integrity sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw== - dependencies: - "@leichtgewicht/ip-codec" "^2.0.1" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -dom-converter@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" - integrity sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA== - dependencies: - utila "~0.4" - -dom-helpers@^5.0.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.2.1.tgz#d9400536b2bf8225ad98fe052e029451ac40e902" - integrity sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA== - dependencies: - "@babel/runtime" "^7.8.7" - csstype "^3.0.2" - -dom-serializer@0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" - integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== - dependencies: - domelementtype "^2.0.1" - entities "^2.0.0" - -dom-serializer@^1.0.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.4.1.tgz#de5d41b1aea290215dc45a6dae8adcf1d32e2d30" - integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag== - dependencies: - domelementtype "^2.0.1" - domhandler "^4.2.0" - entities "^2.0.0" - -domelementtype@1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" - integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== - -domelementtype@^2.0.1, domelementtype@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" - integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c" - integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== - dependencies: - domelementtype "^2.2.0" - -domutils@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" - integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== - dependencies: - dom-serializer "0" - domelementtype "1" - -domutils@^2.5.2, domutils@^2.8.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" - integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== - dependencies: - dom-serializer "^1.0.1" - domelementtype "^2.2.0" - domhandler "^4.2.0" - -dot-case@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751" - integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w== - dependencies: - no-case "^3.0.4" - tslib "^2.0.3" - -dotenv-expand@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-5.1.0.tgz#3fbaf020bfd794884072ea26b1e9791d45a629f0" - integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== - -dotenv@^10.0.0: - version "10.0.0" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" - integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== - -dunder-proto@^1.0.0, dunder-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" - integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== - dependencies: - call-bind-apply-helpers "^1.0.1" - es-errors "^1.3.0" - gopd "^1.2.0" - -duplexer@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" - integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== - -eastasianwidth@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" - integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -ejs@^3.1.6: - version "3.1.10" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" - integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== - dependencies: - jake "^10.8.5" - -electron-to-chromium@^1.5.73: - version "1.5.126" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.126.tgz#51c3be94c25710f2f49ffddbab5aca8983e11e2f" - integrity sha512-AtH1uLcTC72LA4vfYcEJJkrMk/MY/X0ub8Hv7QGAePW2JkeUFHEL/QfS4J77R6M87Sss8O0OcqReSaN1bpyA+Q== - -emittery@^0.10.2: - version "0.10.2" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.2.tgz#902eec8aedb8c41938c46e9385e9db7e03182933" - integrity sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw== - -emittery@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" - integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -emoji-regex@^9.2.2: - version "9.2.2" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" - integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== - -emojis-list@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" - integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== - -encodeurl@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" - integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== - -enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: - version "5.18.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz#728ab082f8b7b6836de51f1637aab5d3b9568faf" - integrity sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg== - dependencies: - graceful-fs "^4.2.4" - tapable "^2.2.0" - -entities@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" - integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== - -envinfo@^7.7.3: - version "7.14.0" - resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.14.0.tgz#26dac5db54418f2a4c1159153a0b2ae980838aae" - integrity sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -error-stack-parser@^2.0.6: - version "2.1.4" - resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" - integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== - dependencies: - stackframe "^1.3.4" - -es-abstract@^1.17.2, es-abstract@^1.17.5, es-abstract@^1.23.2, es-abstract@^1.23.3, es-abstract@^1.23.5, es-abstract@^1.23.6, es-abstract@^1.23.9: - version "1.23.9" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.9.tgz#5b45994b7de78dada5c1bebf1379646b32b9d606" - integrity sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA== - dependencies: - array-buffer-byte-length "^1.0.2" - arraybuffer.prototype.slice "^1.0.4" - available-typed-arrays "^1.0.7" - call-bind "^1.0.8" - call-bound "^1.0.3" - data-view-buffer "^1.0.2" - data-view-byte-length "^1.0.2" - data-view-byte-offset "^1.0.1" - es-define-property "^1.0.1" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - es-set-tostringtag "^2.1.0" - es-to-primitive "^1.3.0" - function.prototype.name "^1.1.8" - get-intrinsic "^1.2.7" - get-proto "^1.0.0" - get-symbol-description "^1.1.0" - globalthis "^1.0.4" - gopd "^1.2.0" - has-property-descriptors "^1.0.2" - has-proto "^1.2.0" - has-symbols "^1.1.0" - hasown "^2.0.2" - internal-slot "^1.1.0" - is-array-buffer "^3.0.5" - is-callable "^1.2.7" - is-data-view "^1.0.2" - is-regex "^1.2.1" - is-shared-array-buffer "^1.0.4" - is-string "^1.1.1" - is-typed-array "^1.1.15" - is-weakref "^1.1.0" - math-intrinsics "^1.1.0" - object-inspect "^1.13.3" - object-keys "^1.1.1" - object.assign "^4.1.7" - own-keys "^1.0.1" - regexp.prototype.flags "^1.5.3" - safe-array-concat "^1.1.3" - safe-push-apply "^1.0.0" - safe-regex-test "^1.1.0" - set-proto "^1.0.0" - string.prototype.trim "^1.2.10" - string.prototype.trimend "^1.0.9" - string.prototype.trimstart "^1.0.8" - typed-array-buffer "^1.0.3" - typed-array-byte-length "^1.0.3" - typed-array-byte-offset "^1.0.4" - typed-array-length "^1.0.7" - unbox-primitive "^1.1.0" - which-typed-array "^1.1.18" - -es-array-method-boxes-properly@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" - integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== - -es-define-property@^1.0.0, es-define-property@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" - integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== - -es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -es-iterator-helpers@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz#d1dd0f58129054c0ad922e6a9a1e65eef435fe75" - integrity sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - define-properties "^1.2.1" - es-abstract "^1.23.6" - es-errors "^1.3.0" - es-set-tostringtag "^2.0.3" - function-bind "^1.1.2" - get-intrinsic "^1.2.6" - globalthis "^1.0.4" - gopd "^1.2.0" - has-property-descriptors "^1.0.2" - has-proto "^1.2.0" - has-symbols "^1.1.0" - internal-slot "^1.1.0" - iterator.prototype "^1.1.4" - safe-array-concat "^1.1.3" - -es-module-lexer@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" - integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== - -es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" - integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== - dependencies: - es-errors "^1.3.0" - -es-set-tostringtag@^2.0.3, es-set-tostringtag@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" - integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== - dependencies: - es-errors "^1.3.0" - get-intrinsic "^1.2.6" - has-tostringtag "^1.0.2" - hasown "^2.0.2" - -es-shim-unscopables@^1.0.2, es-shim-unscopables@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz#438df35520dac5d105f3943d927549ea3b00f4b5" - integrity sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw== - dependencies: - hasown "^2.0.2" - -es-to-primitive@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.3.0.tgz#96c89c82cc49fd8794a24835ba3e1ff87f214e18" - integrity sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g== - dependencies: - is-callable "^1.2.7" - is-date-object "^1.0.5" - is-symbol "^1.0.4" - -escalade@^3.1.1, escalade@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" - integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== - -escodegen@^1.8.1: - version "1.14.3" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" - integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== - dependencies: - esprima "^4.0.1" - estraverse "^4.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - -escodegen@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17" - integrity sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionalDependencies: - source-map "~0.6.1" - -eslint-config-react-app@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz#73ba3929978001c5c86274c017ea57eb5fa644b4" - integrity sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA== - dependencies: - "@babel/core" "^7.16.0" - "@babel/eslint-parser" "^7.16.3" - "@rushstack/eslint-patch" "^1.1.0" - "@typescript-eslint/eslint-plugin" "^5.5.0" - "@typescript-eslint/parser" "^5.5.0" - babel-preset-react-app "^10.0.1" - confusing-browser-globals "^1.0.11" - eslint-plugin-flowtype "^8.0.3" - eslint-plugin-import "^2.25.3" - eslint-plugin-jest "^25.3.0" - eslint-plugin-jsx-a11y "^6.5.1" - eslint-plugin-react "^7.27.1" - eslint-plugin-react-hooks "^4.3.0" - eslint-plugin-testing-library "^5.0.1" - -eslint-import-resolver-node@^0.3.9: - version "0.3.9" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" - integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== - dependencies: - debug "^3.2.7" - is-core-module "^2.13.0" - resolve "^1.22.4" - -eslint-module-utils@^2.12.0: - version "2.12.0" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz#fe4cfb948d61f49203d7b08871982b65b9af0b0b" - integrity sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg== - dependencies: - debug "^3.2.7" - -eslint-plugin-flowtype@^8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz#e1557e37118f24734aa3122e7536a038d34a4912" - integrity sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ== - dependencies: - lodash "^4.17.21" - string-natural-compare "^3.0.1" - -eslint-plugin-import@^2.25.3: - version "2.31.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz#310ce7e720ca1d9c0bb3f69adfd1c6bdd7d9e0e7" - integrity sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A== - dependencies: - "@rtsao/scc" "^1.1.0" - array-includes "^3.1.8" - array.prototype.findlastindex "^1.2.5" - array.prototype.flat "^1.3.2" - array.prototype.flatmap "^1.3.2" - debug "^3.2.7" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.9" - eslint-module-utils "^2.12.0" - hasown "^2.0.2" - is-core-module "^2.15.1" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.fromentries "^2.0.8" - object.groupby "^1.0.3" - object.values "^1.2.0" - semver "^6.3.1" - string.prototype.trimend "^1.0.8" - tsconfig-paths "^3.15.0" - -eslint-plugin-jest@^25.3.0: - version "25.7.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz#ff4ac97520b53a96187bad9c9814e7d00de09a6a" - integrity sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ== - dependencies: - "@typescript-eslint/experimental-utils" "^5.0.0" - -eslint-plugin-jsx-a11y@^6.5.1: - version "6.10.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz#d2812bb23bf1ab4665f1718ea442e8372e638483" - integrity sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q== - dependencies: - aria-query "^5.3.2" - array-includes "^3.1.8" - array.prototype.flatmap "^1.3.2" - ast-types-flow "^0.0.8" - axe-core "^4.10.0" - axobject-query "^4.1.0" - damerau-levenshtein "^1.0.8" - emoji-regex "^9.2.2" - hasown "^2.0.2" - jsx-ast-utils "^3.3.5" - language-tags "^1.0.9" - minimatch "^3.1.2" - object.fromentries "^2.0.8" - safe-regex-test "^1.0.3" - string.prototype.includes "^2.0.1" - -eslint-plugin-react-hooks@^4.3.0: - version "4.6.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596" - integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ== - -eslint-plugin-react@^7.27.1: - version "7.37.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.37.4.tgz#1b6c80b6175b6ae4b26055ae4d55d04c414c7181" - integrity sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ== - dependencies: - array-includes "^3.1.8" - array.prototype.findlast "^1.2.5" - array.prototype.flatmap "^1.3.3" - array.prototype.tosorted "^1.1.4" - doctrine "^2.1.0" - es-iterator-helpers "^1.2.1" - estraverse "^5.3.0" - hasown "^2.0.2" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.8" - object.fromentries "^2.0.8" - object.values "^1.2.1" - prop-types "^15.8.1" - resolve "^2.0.0-next.5" - semver "^6.3.1" - string.prototype.matchall "^4.0.12" - string.prototype.repeat "^1.0.0" - -eslint-plugin-testing-library@^5.0.1: - version "5.11.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.1.tgz#5b46cdae96d4a78918711c0b4792f90088e62d20" - integrity sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw== - dependencies: - "@typescript-eslint/utils" "^5.58.0" - -eslint-scope@5.1.1, eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.2.2: - version "7.2.2" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" - integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-visitor-keys@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" - integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== - -eslint-webpack-plugin@^3.1.1: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz#1978cdb9edc461e4b0195a20da950cf57988347c" - integrity sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w== - dependencies: - "@types/eslint" "^7.29.0 || ^8.4.1" - jest-worker "^28.0.2" - micromatch "^4.0.5" - normalize-path "^3.0.0" - schema-utils "^4.0.0" - -eslint@^8.3.0: - version "8.57.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9" - integrity sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.4" - "@eslint/js" "8.57.1" - "@humanwhocodes/config-array" "^0.13.0" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - "@ungap/structured-clone" "^1.2.0" - ajv "^6.12.4" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.2" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.3" - strip-ansi "^6.0.1" - text-table "^0.2.0" - -espree@^9.6.0, espree@^9.6.1: - version "9.6.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== - dependencies: - acorn "^8.9.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -esprima@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.2.2.tgz#76a0fd66fcfe154fd292667dc264019750b1657b" - integrity sha512-+JpPZam9w5DuJ3Q67SqsMGtiHKENSMRVoxvArfJZK01/BfLEObtZ6orJa/MtoGNR/rfMgp5837T41PAmTwAv/A== - -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.2: - version "1.6.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" - integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1, estraverse@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -estree-util-is-identifier-name@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz#0b5ef4c4ff13508b34dcd01ecfa945f61fce5dbd" - integrity sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg== - -estree-walker@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" - integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -eventemitter3@^4.0.0: - version "4.0.7" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - -events@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== - -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expect@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-27.5.1.tgz#83ce59f1e5bdf5f9d2b94b61d2050db48f3fef74" - integrity sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw== - dependencies: - "@jest/types" "^27.5.1" - jest-get-type "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - -express@^4.17.3: - version "4.21.2" - resolved "https://registry.yarnpkg.com/express/-/express-4.21.2.tgz#cf250e48362174ead6cea4a566abef0162c1ec32" - integrity sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA== - dependencies: - accepts "~1.3.8" - array-flatten "1.1.1" - body-parser "1.20.3" - content-disposition "0.5.4" - content-type "~1.0.4" - cookie "0.7.1" - cookie-signature "1.0.6" - debug "2.6.9" - depd "2.0.0" - encodeurl "~2.0.0" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.3.1" - fresh "0.5.2" - http-errors "2.0.0" - merge-descriptors "1.0.3" - methods "~1.1.2" - on-finished "2.4.1" - parseurl "~1.3.3" - path-to-regexp "0.1.12" - proxy-addr "~2.0.7" - qs "6.13.0" - range-parser "~1.2.1" - safe-buffer "5.2.1" - send "0.19.0" - serve-static "1.16.2" - setprototypeof "1.2.0" - statuses "2.0.1" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -extend@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-glob@^3.2.9, fast-glob@^3.3.2: - version "3.3.3" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.3.tgz#d06d585ce8dba90a16b0505c543c3ccfb3aeb818" - integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.8" - -fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fast-uri@^3.0.1: - version "3.0.6" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.6.tgz#88f130b77cfaea2378d56bf970dea21257a68748" - integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== - -fastest-levenshtein@^1.0.12: - version "1.0.16" - resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5" - integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== - -fastq@^1.6.0: - version "1.19.1" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.19.1.tgz#d50eaba803c8846a883c16492821ebcd2cda55f5" - integrity sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ== - dependencies: - reusify "^1.0.4" - -faye-websocket@^0.11.3: - version "0.11.4" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da" - integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== - dependencies: - websocket-driver ">=0.5.1" - -fb-watchman@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" - integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== - dependencies: - bser "2.1.1" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -file-loader@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d" - integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== - dependencies: - loader-utils "^2.0.0" - schema-utils "^3.0.0" - -filelist@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" - integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== - dependencies: - minimatch "^5.0.1" - -filesize@^8.0.6: - version "8.0.7" - resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8" - integrity sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ== - -fill-range@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" - integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== - dependencies: - to-regex-range "^5.0.1" - -finalhandler@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.3.1.tgz#0c575f1d1d324ddd1da35ad7ece3df7d19088019" - integrity sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ== - dependencies: - debug "2.6.9" - encodeurl "~2.0.0" - escape-html "~1.0.3" - on-finished "2.4.1" - parseurl "~1.3.3" - statuses "2.0.1" - unpipe "~1.0.0" - -find-cache-dir@^3.3.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" - integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== - dependencies: - commondir "^1.0.1" - make-dir "^3.0.2" - pkg-dir "^4.1.0" - -find-root@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" - integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.2.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" - integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== - dependencies: - flatted "^3.2.9" - keyv "^4.5.3" - rimraf "^3.0.2" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -flatted@^3.2.9: - version "3.3.3" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.3.tgz#67c8fad95454a7c7abebf74bb78ee74a44023358" - integrity sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg== - -follow-redirects@^1.0.0, follow-redirects@^1.15.6: - version "1.15.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" - integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== - -for-each@^0.3.3, for-each@^0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.5.tgz#d650688027826920feeb0af747ee7b9421a41d47" - integrity sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg== - dependencies: - is-callable "^1.2.7" - -foreground-child@^3.1.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.1.tgz#32e8e9ed1b68a3497befb9ac2b6adf92a638576f" - integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== - dependencies: - cross-spawn "^7.0.6" - signal-exit "^4.0.1" - -fork-ts-checker-webpack-plugin@^6.5.0: - version "6.5.3" - resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz#eda2eff6e22476a2688d10661688c47f611b37f3" - integrity sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ== - dependencies: - "@babel/code-frame" "^7.8.3" - "@types/json-schema" "^7.0.5" - chalk "^4.1.0" - chokidar "^3.4.2" - cosmiconfig "^6.0.0" - deepmerge "^4.2.2" - fs-extra "^9.0.0" - glob "^7.1.6" - memfs "^3.1.2" - minimatch "^3.0.4" - schema-utils "2.7.0" - semver "^7.3.2" - tapable "^1.0.0" - -form-data@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.3.tgz#349c8f2c9d8f8f0c879ee0eb7cc0d300018d6b09" - integrity sha512-q5YBMeWy6E2Un0nMGWMgI65MAKtaylxfNJGJxpGh45YDciZB4epbWpaAfImil6CPAPTYB4sh0URQNDRIZG5F2w== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - es-set-tostringtag "^2.1.0" - mime-types "^2.1.35" - -form-data@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" - integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - es-set-tostringtag "^2.1.0" - mime-types "^2.1.12" - -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - -fraction.js@^4.3.7: - version "4.3.7" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" - integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -fs-extra@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^9.0.0, fs-extra@^9.0.1: - version "9.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-monkey@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.6.tgz#8ead082953e88d992cf3ff844faa907b26756da2" - integrity sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@^2.3.2, fsevents@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -function.prototype.name@^1.1.6, function.prototype.name@^1.1.8: - version "1.1.8" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.8.tgz#e68e1df7b259a5c949eeef95cdbde53edffabb78" - integrity sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - define-properties "^1.2.1" - functions-have-names "^1.2.3" - hasown "^2.0.2" - is-callable "^1.2.7" - -functions-have-names@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.2.7, get-intrinsic@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" - integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== - dependencies: - call-bind-apply-helpers "^1.0.2" - es-define-property "^1.0.1" - es-errors "^1.3.0" - es-object-atoms "^1.1.1" - function-bind "^1.1.2" - get-proto "^1.0.1" - gopd "^1.2.0" - has-symbols "^1.1.0" - hasown "^2.0.2" - math-intrinsics "^1.1.0" - -get-nonce@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3" - integrity sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q== - -get-own-enumerable-property-symbols@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" - integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-proto@^1.0.0, get-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" - integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== - dependencies: - dunder-proto "^1.0.1" - es-object-atoms "^1.0.0" - -get-stream@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - -get-symbol-description@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.1.0.tgz#7bdd54e0befe8ffc9f3b4e203220d9f1e881b6ee" - integrity sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg== - dependencies: - call-bound "^1.0.3" - es-errors "^1.3.0" - get-intrinsic "^1.2.6" - -glob-parent@^5.1.2, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob-to-regexp@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" - integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== - -glob@^10.3.10: - version "10.4.5" - resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" - integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== - dependencies: - foreground-child "^3.1.0" - jackspeak "^3.1.2" - minimatch "^9.0.4" - minipass "^7.1.2" - package-json-from-dist "^1.0.0" - path-scurry "^1.11.1" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - -global-modules@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.19.0: - version "13.24.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" - integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== - dependencies: - type-fest "^0.20.2" - -globalthis@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236" - integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== - dependencies: - define-properties "^1.2.1" - gopd "^1.0.1" - -globby@^11.0.4, globby@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -gopd@^1.0.1, gopd@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" - integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== - -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: - version "4.2.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - -graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - -gzip-size@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" - integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== - dependencies: - duplexer "^0.1.2" - -handle-thing@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e" - integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== - -harmony-reflect@^1.4.6: - version "1.6.2" - resolved "https://registry.yarnpkg.com/harmony-reflect/-/harmony-reflect-1.6.2.tgz#31ecbd32e648a34d030d86adb67d4d47547fe710" - integrity sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g== - -has-bigints@^1.0.2: - version "1.1.0" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe" - integrity sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.2.0.tgz#5de5a6eabd95fdffd9818b43055e8065e39fe9d5" - integrity sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ== - dependencies: - dunder-proto "^1.0.0" - -has-symbols@^1.0.1, has-symbols@^1.0.3, has-symbols@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" - integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== - -has-tostringtag@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" - integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== - dependencies: - has-symbols "^1.0.3" - -hasown@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -hast-util-to-jsx-runtime@^2.0.0: - version "2.3.6" - resolved "https://registry.yarnpkg.com/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz#ff31897aae59f62232e21594eac7ef6b63333e98" - integrity sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg== - dependencies: - "@types/estree" "^1.0.0" - "@types/hast" "^3.0.0" - "@types/unist" "^3.0.0" - comma-separated-tokens "^2.0.0" - devlop "^1.0.0" - estree-util-is-identifier-name "^3.0.0" - hast-util-whitespace "^3.0.0" - mdast-util-mdx-expression "^2.0.0" - mdast-util-mdx-jsx "^3.0.0" - mdast-util-mdxjs-esm "^2.0.0" - property-information "^7.0.0" - space-separated-tokens "^2.0.0" - style-to-js "^1.0.0" - unist-util-position "^5.0.0" - vfile-message "^4.0.0" - -hast-util-whitespace@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz#7778ed9d3c92dd9e8c5c8f648a49c21fc51cb621" - integrity sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw== - dependencies: - "@types/hast" "^3.0.0" - -he@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -hoist-non-react-statics@^3.3.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" - integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== - dependencies: - react-is "^16.7.0" - -hoopy@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" - integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== - -hpack.js@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" - integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ== - dependencies: - inherits "^2.0.1" - obuf "^1.0.0" - readable-stream "^2.0.1" - wbuf "^1.1.0" - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-entities@^2.1.0, html-entities@^2.3.2: - version "2.5.3" - resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.5.3.tgz#d8a0680bd24ee35af8c74d6d4b695627dde61c00" - integrity sha512-D3AfvN7SjhTgBSA8L1BN4FpPzuEd06uy4lHwSoRWr0lndi9BKaNzPLKGOWZ2ocSGguozr08TTb2jhCLHaemruw== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -html-minifier-terser@^6.0.2: - version "6.1.0" - resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#bfc818934cc07918f6b3669f5774ecdfd48f32ab" - integrity sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw== - dependencies: - camel-case "^4.1.2" - clean-css "^5.2.2" - commander "^8.3.0" - he "^1.2.0" - param-case "^3.0.4" - relateurl "^0.2.7" - terser "^5.10.0" - -html-url-attributes@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/html-url-attributes/-/html-url-attributes-3.0.1.tgz#83b052cd5e437071b756cd74ae70f708870c2d87" - integrity sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ== - -html-webpack-plugin@^5.5.0: - version "5.6.3" - resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.6.3.tgz#a31145f0fee4184d53a794f9513147df1e653685" - integrity sha512-QSf1yjtSAsmf7rYBV7XX86uua4W/vkhIt0xNXKbsi2foEeW7vjJQz4bhnpL3xH+l1ryl1680uNv968Z+X6jSYg== - dependencies: - "@types/html-minifier-terser" "^6.0.0" - html-minifier-terser "^6.0.2" - lodash "^4.17.21" - pretty-error "^4.0.0" - tapable "^2.0.0" - -htmlparser2@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7" - integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A== - dependencies: - domelementtype "^2.0.1" - domhandler "^4.0.0" - domutils "^2.5.2" - entities "^2.0.0" - -http-deceiver@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" - integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-errors@~1.6.2: - version "1.6.3" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" - integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.0" - statuses ">= 1.4.0 < 2" - -http-parser-js@>=0.5.1: - version "0.5.9" - resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.9.tgz#b817b3ca0edea6236225000d795378707c169cec" - integrity sha512-n1XsPy3rXVxlqxVioEWdC+0+M+SQw0DpJynwtOPo1X+ZlvdzTLtDBIJJlDQTnwZIFJrZSzSGmIOUdP8tu+SgLw== - -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -http-proxy-middleware@^2.0.3: - version "2.0.7" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz#915f236d92ae98ef48278a95dedf17e991936ec6" - integrity sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA== - dependencies: - "@types/http-proxy" "^1.17.8" - http-proxy "^1.18.1" - is-glob "^4.0.1" - is-plain-obj "^3.0.0" - micromatch "^4.0.2" - -http-proxy@^1.18.1: - version "1.18.1" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" - integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== - dependencies: - eventemitter3 "^4.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - -https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -iconv-lite@^0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -icss-utils@^5.0.0, icss-utils@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" - integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== - -idb@^7.0.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" - integrity sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ== - -identity-obj-proxy@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14" - integrity sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA== - dependencies: - harmony-reflect "^1.4.6" - -ignore@^5.2.0: - version "5.3.2" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" - integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== - -immer@^9.0.7: - version "9.0.21" - resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.21.tgz#1e025ea31a40f24fb064f1fef23e931496330176" - integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA== - -import-fresh@^3.1.0, import-fresh@^3.2.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.1.tgz#9cecb56503c0ada1f2741dbbd6546e4b13b57ccf" - integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-local@^3.0.2: - version "3.2.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" - integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== - -ini@^1.3.5: - version "1.3.8" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -inline-style-parser@0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.2.4.tgz#f4af5fe72e612839fcd453d989a586566d695f22" - integrity sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q== - -internal-slot@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.1.0.tgz#1eac91762947d2f7056bc838d93e13b2e9604961" - integrity sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw== - dependencies: - es-errors "^1.3.0" - hasown "^2.0.2" - side-channel "^1.1.0" - -interpret@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4" - integrity sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ== - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -ipaddr.js@^2.0.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.2.0.tgz#d33fa7bac284f4de7af949638c9d68157c6b92e8" - integrity sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA== - -is-alphabetical@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-2.0.1.tgz#01072053ea7c1036df3c7d19a6daaec7f19e789b" - integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ== - -is-alphanumerical@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz#7c03fbe96e3e931113e57f964b0a368cc2dfd875" - integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw== - dependencies: - is-alphabetical "^2.0.0" - is-decimal "^2.0.0" - -is-array-buffer@^3.0.4, is-array-buffer@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.5.tgz#65742e1e687bd2cc666253068fd8707fe4d44280" - integrity sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - get-intrinsic "^1.2.6" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-async-function@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-async-function/-/is-async-function-2.1.1.tgz#3e69018c8e04e73b738793d020bfe884b9fd3523" - integrity sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ== - dependencies: - async-function "^1.0.0" - call-bound "^1.0.3" - get-proto "^1.0.1" - has-tostringtag "^1.0.2" - safe-regex-test "^1.1.0" - -is-bigint@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.1.0.tgz#dda7a3445df57a42583db4228682eba7c4170672" - integrity sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ== - dependencies: - has-bigints "^1.0.2" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-boolean-object@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.2.2.tgz#7067f47709809a393c71ff5bb3e135d8a9215d9e" - integrity sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A== - dependencies: - call-bound "^1.0.3" - has-tostringtag "^1.0.2" - -is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== - -is-core-module@^2.13.0, is-core-module@^2.15.1, is-core-module@^2.16.0: - version "2.16.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" - integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== - dependencies: - hasown "^2.0.2" - -is-data-view@^1.0.1, is-data-view@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.2.tgz#bae0a41b9688986c2188dda6657e56b8f9e63b8e" - integrity sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw== - dependencies: - call-bound "^1.0.2" - get-intrinsic "^1.2.6" - is-typed-array "^1.1.13" - -is-date-object@^1.0.5, is-date-object@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.1.0.tgz#ad85541996fc7aa8b2729701d27b7319f95d82f7" - integrity sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg== - dependencies: - call-bound "^1.0.2" - has-tostringtag "^1.0.2" - -is-decimal@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7" - integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A== - -is-docker@^2.0.0, is-docker@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-finalizationregistry@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz#eefdcdc6c94ddd0674d9c85887bf93f944a97c90" - integrity sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg== - dependencies: - call-bound "^1.0.3" - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - -is-generator-function@^1.0.10: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.1.0.tgz#bf3eeda931201394f57b5dba2800f91a238309ca" - integrity sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ== - dependencies: - call-bound "^1.0.3" - get-proto "^1.0.0" - has-tostringtag "^1.0.2" - safe-regex-test "^1.1.0" - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-hexadecimal@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz#86b5bf668fca307498d319dfc03289d781a90027" - integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg== - -is-map@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e" - integrity sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw== - -is-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" - integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== - -is-number-object@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.1.1.tgz#144b21e95a1bc148205dcc2814a9134ec41b2541" - integrity sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw== - dependencies: - call-bound "^1.0.3" - has-tostringtag "^1.0.2" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg== - -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-plain-obj@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" - integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== - -is-plain-obj@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" - integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== - -is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - -is-regex@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.2.1.tgz#76d70a3ed10ef9be48eb577887d74205bf0cad22" - integrity sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g== - dependencies: - call-bound "^1.0.2" - gopd "^1.2.0" - has-tostringtag "^1.0.2" - hasown "^2.0.2" - -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" - integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== - -is-root@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" - integrity sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg== - -is-set@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.3.tgz#8ab209ea424608141372ded6e0cb200ef1d9d01d" - integrity sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg== - -is-shared-array-buffer@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz#9b67844bd9b7f246ba0708c3a93e34269c774f6f" - integrity sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A== - dependencies: - call-bound "^1.0.3" - -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - -is-string@^1.0.7, is-string@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.1.1.tgz#92ea3f3d5c5b6e039ca8677e5ac8d07ea773cbb9" - integrity sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA== - dependencies: - call-bound "^1.0.3" - has-tostringtag "^1.0.2" - -is-symbol@^1.0.4, is-symbol@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.1.1.tgz#f47761279f532e2b05a7024a7506dbbedacd0634" - integrity sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w== - dependencies: - call-bound "^1.0.2" - has-symbols "^1.1.0" - safe-regex-test "^1.1.0" - -is-typed-array@^1.1.13, is-typed-array@^1.1.14, is-typed-array@^1.1.15: - version "1.1.15" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.15.tgz#4bfb4a45b61cee83a5a46fba778e4e8d59c0ce0b" - integrity sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ== - dependencies: - which-typed-array "^1.1.16" - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-weakmap@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.2.tgz#bf72615d649dfe5f699079c54b83e47d1ae19cfd" - integrity sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w== - -is-weakref@^1.0.2, is-weakref@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.1.1.tgz#eea430182be8d64174bd96bffbc46f21bf3f9293" - integrity sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew== - dependencies: - call-bound "^1.0.3" - -is-weakset@^2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.4.tgz#c9f5deb0bc1906c6d6f1027f284ddf459249daca" - integrity sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ== - dependencies: - call-bound "^1.0.3" - get-intrinsic "^1.2.6" - -is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" - integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== - -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" - integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^4.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.1.3: - version "3.1.7" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" - integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -iterator.prototype@^1.1.4: - version "1.1.5" - resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.5.tgz#12c959a29de32de0aa3bbbb801f4d777066dae39" - integrity sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g== - dependencies: - define-data-property "^1.1.4" - es-object-atoms "^1.0.0" - get-intrinsic "^1.2.6" - get-proto "^1.0.0" - has-symbols "^1.1.0" - set-function-name "^2.0.2" - -jackspeak@^3.1.2: - version "3.4.3" - resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" - integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== - dependencies: - "@isaacs/cliui" "^8.0.2" - optionalDependencies: - "@pkgjs/parseargs" "^0.11.0" - -jake@^10.8.5: - version "10.9.2" - resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f" - integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA== - dependencies: - async "^3.2.3" - chalk "^4.0.2" - filelist "^1.0.4" - minimatch "^3.1.2" - -jest-changed-files@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.5.1.tgz#a348aed00ec9bf671cc58a66fcbe7c3dfd6a68f5" - integrity sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw== - dependencies: - "@jest/types" "^27.5.1" - execa "^5.0.0" - throat "^6.0.1" - -jest-circus@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.5.1.tgz#37a5a4459b7bf4406e53d637b49d22c65d125ecc" - integrity sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - dedent "^0.7.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - throat "^6.0.1" - -jest-cli@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.5.1.tgz#278794a6e6458ea8029547e6c6cbf673bd30b145" - integrity sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw== - dependencies: - "@jest/core" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.9" - import-local "^3.0.2" - jest-config "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - prompts "^2.0.1" - yargs "^16.2.0" - -jest-config@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.5.1.tgz#5c387de33dca3f99ad6357ddeccd91bf3a0e4a41" - integrity sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA== - dependencies: - "@babel/core" "^7.8.0" - "@jest/test-sequencer" "^27.5.1" - "@jest/types" "^27.5.1" - babel-jest "^27.5.1" - chalk "^4.0.0" - ci-info "^3.2.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.9" - jest-circus "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-get-type "^27.5.1" - jest-jasmine2 "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runner "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - micromatch "^4.0.4" - parse-json "^5.2.0" - pretty-format "^27.5.1" - slash "^3.0.0" - strip-json-comments "^3.1.1" - -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== - dependencies: - chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-docblock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" - integrity sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ== - dependencies: - detect-newline "^3.0.0" - -jest-each@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.5.1.tgz#5bc87016f45ed9507fed6e4702a5b468a5b2c44e" - integrity sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - jest-get-type "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - -jest-environment-jsdom@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz#ea9ccd1fc610209655a77898f86b2b559516a546" - integrity sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - jsdom "^16.6.0" - -jest-environment-node@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-27.5.1.tgz#dedc2cfe52fab6b8f5714b4808aefa85357a365e" - integrity sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== - -jest-haste-map@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" - integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng== - dependencies: - "@jest/types" "^27.5.1" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.9" - jest-regex-util "^27.5.1" - jest-serializer "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - micromatch "^4.0.4" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.3.2" - -jest-jasmine2@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz#a037b0034ef49a9f3d71c4375a796f3b230d1ac4" - integrity sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - throat "^6.0.1" - -jest-leak-detector@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8" - integrity sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ== - dependencies: - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-matcher-utils@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== - dependencies: - chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-message-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" - integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g== - dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^27.5.1" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - -jest-message-util@^28.1.3: - version "28.1.3" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-28.1.3.tgz#232def7f2e333f1eecc90649b5b94b0055e7c43d" - integrity sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g== - dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^28.1.3" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^28.1.3" - slash "^3.0.0" - stack-utils "^2.0.3" - -jest-mock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" - integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - -jest-pnp-resolver@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" - integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== - -jest-regex-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== - -jest-regex-util@^28.0.0: - version "28.0.2" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-28.0.2.tgz#afdc377a3b25fb6e80825adcf76c854e5bf47ead" - integrity sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw== - -jest-resolve-dependencies@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz#d811ecc8305e731cc86dd79741ee98fed06f1da8" - integrity sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg== - dependencies: - "@jest/types" "^27.5.1" - jest-regex-util "^27.5.1" - jest-snapshot "^27.5.1" - -jest-resolve@^27.4.2, jest-resolve@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.5.1.tgz#a2f1c5a0796ec18fe9eb1536ac3814c23617b384" - integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-pnp-resolver "^1.2.2" - jest-util "^27.5.1" - jest-validate "^27.5.1" - resolve "^1.20.0" - resolve.exports "^1.1.0" - slash "^3.0.0" - -jest-runner@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.5.1.tgz#071b27c1fa30d90540805c5645a0ec167c7b62e5" - integrity sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.8.1" - graceful-fs "^4.2.9" - jest-docblock "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-haste-map "^27.5.1" - jest-leak-detector "^27.5.1" - jest-message-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runtime "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - source-map-support "^0.5.6" - throat "^6.0.1" - -jest-runtime@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.5.1.tgz#4896003d7a334f7e8e4a53ba93fb9bcd3db0a1af" - integrity sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/globals" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - cjs-module-lexer "^1.0.0" - collect-v8-coverage "^1.0.0" - execa "^5.0.0" - glob "^7.1.3" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - strip-bom "^4.0.0" - -jest-serializer@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - -jest-snapshot@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.5.1.tgz#b668d50d23d38054a51b42c4039cab59ae6eb6a1" - integrity sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA== - dependencies: - "@babel/core" "^7.7.2" - "@babel/generator" "^7.7.2" - "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" - "@babel/types" "^7.0.0" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.1.5" - babel-preset-current-node-syntax "^1.0.0" - chalk "^4.0.0" - expect "^27.5.1" - graceful-fs "^4.2.9" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - jest-haste-map "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - natural-compare "^1.4.0" - pretty-format "^27.5.1" - semver "^7.3.2" - -jest-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - -jest-util@^28.1.3: - version "28.1.3" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-28.1.3.tgz#f4f932aa0074f0679943220ff9cbba7e497028b0" - integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ== - dependencies: - "@jest/types" "^28.1.3" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - -jest-validate@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.5.1.tgz#9197d54dc0bdb52260b8db40b46ae668e04df067" - integrity sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ== - dependencies: - "@jest/types" "^27.5.1" - camelcase "^6.2.0" - chalk "^4.0.0" - jest-get-type "^27.5.1" - leven "^3.1.0" - pretty-format "^27.5.1" - -jest-watch-typeahead@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz#b4a6826dfb9c9420da2f7bc900de59dad11266a9" - integrity sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw== - dependencies: - ansi-escapes "^4.3.1" - chalk "^4.0.0" - jest-regex-util "^28.0.0" - jest-watcher "^28.0.0" - slash "^4.0.0" - string-length "^5.0.1" - strip-ansi "^7.0.1" - -jest-watcher@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-27.5.1.tgz#71bd85fb9bde3a2c2ec4dc353437971c43c642a2" - integrity sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw== - dependencies: - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^27.5.1" - string-length "^4.0.1" - -jest-watcher@^28.0.0: - version "28.1.3" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-28.1.3.tgz#c6023a59ba2255e3b4c57179fc94164b3e73abd4" - integrity sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g== - dependencies: - "@jest/test-result" "^28.1.3" - "@jest/types" "^28.1.3" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.10.2" - jest-util "^28.1.3" - string-length "^4.0.1" - -jest-worker@^26.2.1: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" - -jest-worker@^27.0.2, jest-worker@^27.4.5, jest-worker@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jest-worker@^28.0.2: - version "28.1.3" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-28.1.3.tgz#7e3c4ce3fa23d1bb6accb169e7f396f98ed4bb98" - integrity sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jest@^27.4.3: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" - integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== - dependencies: - "@jest/core" "^27.5.1" - import-local "^3.0.2" - jest-cli "^27.5.1" - -jiti@^1.21.6: - version "1.21.7" - resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.7.tgz#9dd81043424a3d28458b193d965f0d18a2300ba9" - integrity sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A== - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -jsdom@^16.6.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - -jsesc@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" - integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== - -jsesc@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" - integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== - -json-buffer@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" - integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== - -json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-schema@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -json5@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" - integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== - dependencies: - minimist "^1.2.0" - -json5@^2.1.2, json5@^2.2.0, json5@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonpath@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/jsonpath/-/jsonpath-1.1.1.tgz#0ca1ed8fb65bb3309248cc9d5466d12d5b0b9901" - integrity sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w== - dependencies: - esprima "1.2.2" - static-eval "2.0.2" - underscore "1.12.1" - -jsonpointer@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-5.0.1.tgz#2110e0af0900fd37467b5907ecd13a7884a1b559" - integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== - -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.5: - version "3.3.5" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a" - integrity sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ== - dependencies: - array-includes "^3.1.6" - array.prototype.flat "^1.3.1" - object.assign "^4.1.4" - object.values "^1.1.6" - -keyv@^4.5.3: - version "4.5.4" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" - integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== - dependencies: - json-buffer "3.0.1" - -kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -klona@^2.0.4, klona@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.6.tgz#85bffbf819c03b2f53270412420a4555ef882e22" - integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA== - -language-subtag-registry@^0.3.20: - version "0.3.23" - resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz#23529e04d9e3b74679d70142df3fd2eb6ec572e7" - integrity sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ== - -language-tags@^1.0.9: - version "1.0.9" - resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.9.tgz#1ffdcd0ec0fafb4b1be7f8b11f306ad0f9c08777" - integrity sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA== - dependencies: - language-subtag-registry "^0.3.20" - -launch-editor@^2.6.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.10.0.tgz#5ca3edfcb9667df1e8721310f3a40f1127d4bc42" - integrity sha512-D7dBRJo/qcGX9xlvt/6wUYzQxjh5G1RvZPgPv8vi4KRU99DVQL/oW7tnVOCCTm2HGeo3C5HvGE5Yrh6UBoZ0vA== - dependencies: - picocolors "^1.0.0" - shell-quote "^1.8.1" - -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lilconfig@^2.0.3: - version "2.1.0" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== - -lilconfig@^3.0.0, lilconfig@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.3.tgz#a1bcfd6257f9585bf5ae14ceeebb7b559025e4c4" - integrity sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw== - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -loader-runner@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" - integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== - -loader-utils@^2.0.0, loader-utils@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c" - integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== - dependencies: - big.js "^5.2.2" - emojis-list "^3.0.0" - json5 "^2.1.2" - -loader-utils@^3.2.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.3.1.tgz#735b9a19fd63648ca7adbd31c2327dfe281304e5" - integrity sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg== - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.debounce@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== - -lodash.memoize@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash.sortby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" - integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== - -lodash.uniq@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" - integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== - -lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -longest-streak@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4" - integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== - -loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -loupe@^3.1.0: - version "3.1.3" - resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.1.3.tgz#042a8f7986d77f3d0f98ef7990a2b2fef18b0fd2" - integrity sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug== - -lower-case@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" - integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg== - dependencies: - tslib "^2.0.3" - -lru-cache@^10.2.0: - version "10.4.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" - integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== - -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" - -magic-string@^0.25.0, magic-string@^0.25.7: - version "0.25.9" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" - integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== - dependencies: - sourcemap-codec "^1.4.8" - -make-dir@^3.0.2, make-dir@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -make-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" - integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== - dependencies: - semver "^7.5.3" - -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== - dependencies: - tmpl "1.0.5" - -markdown-table@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.4.tgz#fe44d6d410ff9d6f2ea1797a3f60aa4d2b631c2a" - integrity sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw== - -math-intrinsics@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" - integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== - -mdast-util-find-and-replace@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz#70a3174c894e14df722abf43bc250cbae44b11df" - integrity sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg== - dependencies: - "@types/mdast" "^4.0.0" - escape-string-regexp "^5.0.0" - unist-util-is "^6.0.0" - unist-util-visit-parents "^6.0.0" - -mdast-util-from-markdown@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz#4850390ca7cf17413a9b9a0fbefcd1bc0eb4160a" - integrity sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA== - dependencies: - "@types/mdast" "^4.0.0" - "@types/unist" "^3.0.0" - decode-named-character-reference "^1.0.0" - devlop "^1.0.0" - mdast-util-to-string "^4.0.0" - micromark "^4.0.0" - micromark-util-decode-numeric-character-reference "^2.0.0" - micromark-util-decode-string "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - unist-util-stringify-position "^4.0.0" - -mdast-util-gfm-autolink-literal@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz#abd557630337bd30a6d5a4bd8252e1c2dc0875d5" - integrity sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ== - dependencies: - "@types/mdast" "^4.0.0" - ccount "^2.0.0" - devlop "^1.0.0" - mdast-util-find-and-replace "^3.0.0" - micromark-util-character "^2.0.0" - -mdast-util-gfm-footnote@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz#7778e9d9ca3df7238cc2bd3fa2b1bf6a65b19403" - integrity sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ== - dependencies: - "@types/mdast" "^4.0.0" - devlop "^1.1.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - -mdast-util-gfm-strikethrough@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz#d44ef9e8ed283ac8c1165ab0d0dfd058c2764c16" - integrity sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg== - dependencies: - "@types/mdast" "^4.0.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-gfm-table@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz#7a435fb6223a72b0862b33afbd712b6dae878d38" - integrity sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg== - dependencies: - "@types/mdast" "^4.0.0" - devlop "^1.0.0" - markdown-table "^3.0.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-gfm-task-list-item@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz#e68095d2f8a4303ef24094ab642e1047b991a936" - integrity sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ== - dependencies: - "@types/mdast" "^4.0.0" - devlop "^1.0.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-gfm@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz#2cdf63b92c2a331406b0fb0db4c077c1b0331751" - integrity sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ== - dependencies: - mdast-util-from-markdown "^2.0.0" - mdast-util-gfm-autolink-literal "^2.0.0" - mdast-util-gfm-footnote "^2.0.0" - mdast-util-gfm-strikethrough "^2.0.0" - mdast-util-gfm-table "^2.0.0" - mdast-util-gfm-task-list-item "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-mdx-expression@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz#43f0abac9adc756e2086f63822a38c8d3c3a5096" - integrity sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ== - dependencies: - "@types/estree-jsx" "^1.0.0" - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - devlop "^1.0.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-mdx-jsx@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz#fd04c67a2a7499efb905a8a5c578dddc9fdada0d" - integrity sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q== - dependencies: - "@types/estree-jsx" "^1.0.0" - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - "@types/unist" "^3.0.0" - ccount "^2.0.0" - devlop "^1.1.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - parse-entities "^4.0.0" - stringify-entities "^4.0.0" - unist-util-stringify-position "^4.0.0" - vfile-message "^4.0.0" - -mdast-util-mdxjs-esm@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz#019cfbe757ad62dd557db35a695e7314bcc9fa97" - integrity sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg== - dependencies: - "@types/estree-jsx" "^1.0.0" - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - devlop "^1.0.0" - mdast-util-from-markdown "^2.0.0" - mdast-util-to-markdown "^2.0.0" - -mdast-util-phrasing@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz#7cc0a8dec30eaf04b7b1a9661a92adb3382aa6e3" - integrity sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w== - dependencies: - "@types/mdast" "^4.0.0" - unist-util-is "^6.0.0" - -mdast-util-to-hast@^13.0.0: - version "13.2.0" - resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-13.2.0.tgz#5ca58e5b921cc0a3ded1bc02eed79a4fe4fe41f4" - integrity sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA== - dependencies: - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - "@ungap/structured-clone" "^1.0.0" - devlop "^1.0.0" - micromark-util-sanitize-uri "^2.0.0" - trim-lines "^3.0.0" - unist-util-position "^5.0.0" - unist-util-visit "^5.0.0" - vfile "^6.0.0" - -mdast-util-to-markdown@^2.0.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz#f910ffe60897f04bb4b7e7ee434486f76288361b" - integrity sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA== - dependencies: - "@types/mdast" "^4.0.0" - "@types/unist" "^3.0.0" - longest-streak "^3.0.0" - mdast-util-phrasing "^4.0.0" - mdast-util-to-string "^4.0.0" - micromark-util-classify-character "^2.0.0" - micromark-util-decode-string "^2.0.0" - unist-util-visit "^5.0.0" - zwitch "^2.0.0" - -mdast-util-to-string@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz#7a5121475556a04e7eddeb67b264aae79d312814" - integrity sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg== - dependencies: - "@types/mdast" "^4.0.0" - -mdn-data@2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" - integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== - -mdn-data@2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b" - integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA== - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== - -memfs@^3.1.2, memfs@^3.4.3: - version "3.6.0" - resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.6.0.tgz#d7a2110f86f79dd950a8b6df6d57bc984aa185f6" - integrity sha512-EGowvkkgbMcIChjMTMkESFDbZeSh8xZ7kNSF0hAiAN4Jh6jgHCRS0Ga/+C8y6Au+oqpezRHCfPsmJ2+DwAgiwQ== - dependencies: - fs-monkey "^1.0.4" - -memoize-one@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-6.0.0.tgz#b2591b871ed82948aee4727dc6abceeeac8c1045" - integrity sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw== - -merge-descriptors@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" - integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== - -micromark-core-commonmark@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz#c691630e485021a68cf28dbc2b2ca27ebf678cd4" - integrity sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg== - dependencies: - decode-named-character-reference "^1.0.0" - devlop "^1.0.0" - micromark-factory-destination "^2.0.0" - micromark-factory-label "^2.0.0" - micromark-factory-space "^2.0.0" - micromark-factory-title "^2.0.0" - micromark-factory-whitespace "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-classify-character "^2.0.0" - micromark-util-html-tag-name "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-resolve-all "^2.0.0" - micromark-util-subtokenize "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-autolink-literal@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz#6286aee9686c4462c1e3552a9d505feddceeb935" - integrity sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-footnote@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz#4dab56d4e398b9853f6fe4efac4fc9361f3e0750" - integrity sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw== - dependencies: - devlop "^1.0.0" - micromark-core-commonmark "^2.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-strikethrough@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz#86106df8b3a692b5f6a92280d3879be6be46d923" - integrity sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw== - dependencies: - devlop "^1.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-classify-character "^2.0.0" - micromark-util-resolve-all "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-table@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz#fac70bcbf51fe65f5f44033118d39be8a9b5940b" - integrity sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg== - dependencies: - devlop "^1.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-tagfilter@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz#f26d8a7807b5985fba13cf61465b58ca5ff7dc57" - integrity sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg== - dependencies: - micromark-util-types "^2.0.0" - -micromark-extension-gfm-task-list-item@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz#bcc34d805639829990ec175c3eea12bb5b781f2c" - integrity sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw== - dependencies: - devlop "^1.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz#3e13376ab95dd7a5cfd0e29560dfe999657b3c5b" - integrity sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w== - dependencies: - micromark-extension-gfm-autolink-literal "^2.0.0" - micromark-extension-gfm-footnote "^2.0.0" - micromark-extension-gfm-strikethrough "^2.0.0" - micromark-extension-gfm-table "^2.0.0" - micromark-extension-gfm-tagfilter "^2.0.0" - micromark-extension-gfm-task-list-item "^2.0.0" - micromark-util-combine-extensions "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-destination@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz#8fef8e0f7081f0474fbdd92deb50c990a0264639" - integrity sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-label@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz#5267efa97f1e5254efc7f20b459a38cb21058ba1" - integrity sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg== - dependencies: - devlop "^1.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-space@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz#36d0212e962b2b3121f8525fc7a3c7c029f334fc" - integrity sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-title@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz#237e4aa5d58a95863f01032d9ee9b090f1de6e94" - integrity sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw== - dependencies: - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-whitespace@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz#06b26b2983c4d27bfcc657b33e25134d4868b0b1" - integrity sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ== - dependencies: - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-character@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-2.1.1.tgz#2f987831a40d4c510ac261e89852c4e9703ccda6" - integrity sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== - dependencies: - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-chunked@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz#47fbcd93471a3fccab86cff03847fc3552db1051" - integrity sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-classify-character@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz#d399faf9c45ca14c8b4be98b1ea481bced87b629" - integrity sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-combine-extensions@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz#2a0f490ab08bff5cc2fd5eec6dd0ca04f89b30a9" - integrity sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg== - dependencies: - micromark-util-chunked "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-decode-numeric-character-reference@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz#fcf15b660979388e6f118cdb6bf7d79d73d26fe5" - integrity sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-decode-string@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz#6cb99582e5d271e84efca8e61a807994d7161eb2" - integrity sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ== - dependencies: - decode-named-character-reference "^1.0.0" - micromark-util-character "^2.0.0" - micromark-util-decode-numeric-character-reference "^2.0.0" - micromark-util-symbol "^2.0.0" - -micromark-util-encode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz#0d51d1c095551cfaac368326963cf55f15f540b8" - integrity sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== - -micromark-util-html-tag-name@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz#e40403096481986b41c106627f98f72d4d10b825" - integrity sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA== - -micromark-util-normalize-identifier@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz#c30d77b2e832acf6526f8bf1aa47bc9c9438c16d" - integrity sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-resolve-all@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz#e1a2d62cdd237230a2ae11839027b19381e31e8b" - integrity sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg== - dependencies: - micromark-util-types "^2.0.0" - -micromark-util-sanitize-uri@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz#ab89789b818a58752b73d6b55238621b7faa8fd7" - integrity sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-encode "^2.0.0" - micromark-util-symbol "^2.0.0" - -micromark-util-subtokenize@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz#d8ade5ba0f3197a1cf6a2999fbbfe6357a1a19ee" - integrity sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA== - dependencies: - devlop "^1.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-symbol@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz#e5da494e8eb2b071a0d08fb34f6cefec6c0a19b8" - integrity sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== - -micromark-util-types@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-2.0.2.tgz#f00225f5f5a0ebc3254f96c36b6605c4b393908e" - integrity sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA== - -micromark@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/micromark/-/micromark-4.0.2.tgz#91395a3e1884a198e62116e33c9c568e39936fdb" - integrity sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA== - dependencies: - "@types/debug" "^4.0.0" - debug "^4.0.0" - decode-named-character-reference "^1.0.0" - devlop "^1.0.0" - micromark-core-commonmark "^2.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-combine-extensions "^2.0.0" - micromark-util-decode-numeric-character-reference "^2.0.0" - micromark-util-encode "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-resolve-all "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-subtokenize "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromatch@^4.0.0, micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5, micromatch@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" - integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== - dependencies: - braces "^3.0.3" - picomatch "^2.3.1" - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -"mime-db@>= 1.43.0 < 2": - version "1.54.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.54.0.tgz#cddb3ee4f9c64530dff640236661d42cb6a314f5" - integrity sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ== - -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@^2.1.35, mime-types@~2.1.17, mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -mini-css-extract-plugin@^2.4.5: - version "2.9.2" - resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-2.9.2.tgz#966031b468917a5446f4c24a80854b2947503c5b" - integrity sha512-GJuACcS//jtq4kCtd5ii/M0SZf7OZRH+BxdqXZHaJfb8TJiVl+NgQRPwiYt2EuqeSkNydn/7vP+bcE27C5mb9w== - dependencies: - schema-utils "^4.0.0" - tapable "^2.2.1" - -minimalistic-assert@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== - -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^5.0.1, minimatch@^5.1.6: - version "5.1.6" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" - integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^9.0.4: - version "9.0.5" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" - integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== - dependencies: - brace-expansion "^2.0.1" - -minimist@^1.2.0, minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" - integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== - -mkdirp@~0.5.1: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -mocha@^10.4.0: - version "10.8.2" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.8.2.tgz#8d8342d016ed411b12a429eb731b825f961afb96" - integrity sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg== - dependencies: - ansi-colors "^4.1.3" - browser-stdout "^1.3.1" - chokidar "^3.5.3" - debug "^4.3.5" - diff "^5.2.0" - escape-string-regexp "^4.0.0" - find-up "^5.0.0" - glob "^8.1.0" - he "^1.2.0" - js-yaml "^4.1.0" - log-symbols "^4.1.0" - minimatch "^5.1.6" - ms "^2.1.3" - serialize-javascript "^6.0.2" - strip-json-comments "^3.1.1" - supports-color "^8.1.1" - workerpool "^6.5.1" - yargs "^16.2.0" - yargs-parser "^20.2.9" - yargs-unparser "^2.0.0" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -ms@2.1.3, ms@^2.1.1, ms@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -multicast-dns@^7.2.5: - version "7.2.5" - resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced" - integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== - dependencies: - dns-packet "^5.2.2" - thunky "^1.0.2" - -mz@^2.7.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" - integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== - dependencies: - any-promise "^1.0.0" - object-assign "^4.0.1" - thenify-all "^1.0.0" - -nanoid@^3.3.8: - version "3.3.11" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b" - integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w== - -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - -negotiator@~0.6.4: - version "0.6.4" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.4.tgz#777948e2452651c570b712dd01c23e262713fff7" - integrity sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w== - -neo-async@^2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -no-case@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" - integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg== - dependencies: - lower-case "^2.0.2" - tslib "^2.0.3" - -node-forge@^1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" - integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== - -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== - -node-releases@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" - integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" - integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== - -normalize-url@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" - integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== - -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -nth-check@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" - integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== - dependencies: - boolbase "~1.0.0" - -nth-check@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" - integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== - dependencies: - boolbase "^1.0.0" - -nwsapi@^2.2.0: - version "2.2.19" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.19.tgz#586660f7c24c34691907002309a8dc28064c9c0b" - integrity sha512-94bcyI3RsqiZufXjkr3ltkI86iEl+I7uiHVDtcq9wJUTwYQJ5odHDeSzkkrRzi80jJ8MaeZgqKjH1bAWAFw9bA== - -object-assign@^4.0.1, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -object-hash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" - integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== - -object-inspect@^1.13.3: - version "1.13.4" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" - integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== - -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object.assign@^4.1.4, object.assign@^4.1.7: - version "4.1.7" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.7.tgz#8c14ca1a424c6a561b0bb2a22f66f5049a945d3d" - integrity sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - has-symbols "^1.1.0" - object-keys "^1.1.1" - -object.entries@^1.1.8: - version "1.1.9" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.9.tgz#e4770a6a1444afb61bd39f984018b5bede25f8b3" - integrity sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.4" - define-properties "^1.2.1" - es-object-atoms "^1.1.1" - -object.fromentries@^2.0.8: - version "2.0.8" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.8.tgz#f7195d8a9b97bd95cbc1999ea939ecd1a2b00c65" - integrity sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-object-atoms "^1.0.0" - -object.getownpropertydescriptors@^2.1.0: - version "2.1.8" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.8.tgz#2f1fe0606ec1a7658154ccd4f728504f69667923" - integrity sha512-qkHIGe4q0lSYMv0XI4SsBTJz3WaURhLvd0lKSgtVuOsJ2krg4SgMw3PIRQFMp07yi++UR3se2mkcLqsBNpBb/A== - dependencies: - array.prototype.reduce "^1.0.6" - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-object-atoms "^1.0.0" - gopd "^1.0.1" - safe-array-concat "^1.1.2" - -object.groupby@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.3.tgz#9b125c36238129f6f7b61954a1e7176148d5002e" - integrity sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - -object.values@^1.1.0, object.values@^1.1.6, object.values@^1.2.0, object.values@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.2.1.tgz#deed520a50809ff7f75a7cfd4bc64c7a038c6216" - integrity sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -obuf@^1.0.0, obuf@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" - integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== - -on-finished@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" - integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== - dependencies: - ee-first "1.1.1" - -on-headers@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" - integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -open@^8.0.9, open@^8.4.0: - version "8.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" - integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== - dependencies: - define-lazy-prop "^2.0.0" - is-docker "^2.1.1" - is-wsl "^2.2.0" - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -optionator@^0.9.3: - version "0.9.4" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" - integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.5" - -own-keys@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/own-keys/-/own-keys-1.0.1.tgz#e4006910a2bf913585289676eebd6f390cf51358" - integrity sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg== - dependencies: - get-intrinsic "^1.2.6" - object-keys "^1.1.1" - safe-push-apply "^1.0.0" - -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-retry@^4.5.0: - version "4.6.2" - resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-4.6.2.tgz#9baae7184057edd4e17231cee04264106e092a16" - integrity sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ== - dependencies: - "@types/retry" "0.12.0" - retry "^0.13.1" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -package-json-from-dist@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" - integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== - -param-case@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5" - integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== - dependencies: - dot-case "^3.0.4" - tslib "^2.0.3" - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-entities@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-4.0.2.tgz#61d46f5ed28e4ee62e9ddc43d6b010188443f159" - integrity sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw== - dependencies: - "@types/unist" "^2.0.0" - character-entities-legacy "^3.0.0" - character-reference-invalid "^2.0.0" - decode-named-character-reference "^1.0.0" - is-alphanumerical "^2.0.0" - is-decimal "^2.0.0" - is-hexadecimal "^2.0.0" - -parse-json@^5.0.0, parse-json@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - -parseurl@~1.3.2, parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -pascal-case@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb" - integrity sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g== - dependencies: - no-case "^3.0.4" - tslib "^2.0.3" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-scurry@^1.11.1: - version "1.11.1" - resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" - integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== - dependencies: - lru-cache "^10.2.0" - minipass "^5.0.0 || ^6.0.2 || ^7.0.0" - -path-to-regexp@0.1.12: - version "0.1.12" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz#d5e1a12e478a976d432ef3c58d534b9923164bb7" - integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -pathval@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pathval/-/pathval-2.0.0.tgz#7e2550b422601d4f6b8e26f1301bc8f15a741a25" - integrity sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA== - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - -picocolors@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" - integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== - -picocolors@^1.0.0, picocolors@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" - integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== - -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== - -pirates@^4.0.1, pirates@^4.0.4: - version "4.0.7" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.7.tgz#643b4a18c4257c8a65104b73f3049ce9a0a15e22" - integrity sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA== - -pkg-dir@^4.1.0, pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -pkg-up@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" - integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== - dependencies: - find-up "^3.0.0" - -plotly.js-dist-min@*: - version "3.0.1" - resolved "https://registry.yarnpkg.com/plotly.js-dist-min/-/plotly.js-dist-min-3.0.1.tgz#d68a3197800c33fc67bd4bcb8c61c75524570e93" - integrity sha512-RReOqr6TfoHaTbVAoHR1UbTCOSRDsQ7Hbthd+3XAxOwaKmxCE3oejMhLG7urQSqWC65DAcSKV23kZd8e+7mG7w== - -possible-typed-array-names@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae" - integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== - -postcss-attribute-case-insensitive@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz#03d761b24afc04c09e757e92ff53716ae8ea2741" - integrity sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ== - dependencies: - postcss-selector-parser "^6.0.10" - -postcss-browser-comments@^4: - version "4.0.0" - resolved "https://registry.yarnpkg.com/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz#bcfc86134df5807f5d3c0eefa191d42136b5e72a" - integrity sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg== - -postcss-calc@^8.2.3: - version "8.2.4" - resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5" - integrity sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q== - dependencies: - postcss-selector-parser "^6.0.9" - postcss-value-parser "^4.2.0" - -postcss-clamp@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/postcss-clamp/-/postcss-clamp-4.1.0.tgz#7263e95abadd8c2ba1bd911b0b5a5c9c93e02363" - integrity sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-color-functional-notation@^4.2.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz#21a909e8d7454d3612d1659e471ce4696f28caec" - integrity sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-color-hex-alpha@^8.0.4: - version "8.0.4" - resolved "https://registry.yarnpkg.com/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz#c66e2980f2fbc1a63f5b079663340ce8b55f25a5" - integrity sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-color-rebeccapurple@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz#63fdab91d878ebc4dd4b7c02619a0c3d6a56ced0" - integrity sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-colormin@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-5.3.1.tgz#86c27c26ed6ba00d96c79e08f3ffb418d1d1988f" - integrity sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ== - dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" - colord "^2.9.1" - postcss-value-parser "^4.2.0" - -postcss-convert-values@^5.1.3: - version "5.1.3" - resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz#04998bb9ba6b65aa31035d669a6af342c5f9d393" - integrity sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA== - dependencies: - browserslist "^4.21.4" - postcss-value-parser "^4.2.0" - -postcss-custom-media@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz#c8f9637edf45fef761b014c024cee013f80529ea" - integrity sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-custom-properties@^12.1.10: - version "12.1.11" - resolved "https://registry.yarnpkg.com/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz#d14bb9b3989ac4d40aaa0e110b43be67ac7845cf" - integrity sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-custom-selectors@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz#1ab4684d65f30fed175520f82d223db0337239d9" - integrity sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg== - dependencies: - postcss-selector-parser "^6.0.4" - -postcss-dir-pseudo-class@^6.0.5: - version "6.0.5" - resolved "https://registry.yarnpkg.com/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz#2bf31de5de76added44e0a25ecf60ae9f7c7c26c" - integrity sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA== - dependencies: - postcss-selector-parser "^6.0.10" - -postcss-discard-comments@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz#8df5e81d2925af2780075840c1526f0660e53696" - integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ== - -postcss-discard-duplicates@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz#9eb4fe8456706a4eebd6d3b7b777d07bad03e848" - integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw== - -postcss-discard-empty@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz#e57762343ff7f503fe53fca553d18d7f0c369c6c" - integrity sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A== - -postcss-discard-overridden@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz#7e8c5b53325747e9d90131bb88635282fb4a276e" - integrity sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw== - -postcss-double-position-gradients@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz#b96318fdb477be95997e86edd29c6e3557a49b91" - integrity sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" - -postcss-env-function@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/postcss-env-function/-/postcss-env-function-4.0.6.tgz#7b2d24c812f540ed6eda4c81f6090416722a8e7a" - integrity sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-flexbugs-fixes@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz#2028e145313074fc9abe276cb7ca14e5401eb49d" - integrity sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ== - -postcss-focus-visible@^6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz#50c9ea9afa0ee657fb75635fabad25e18d76bf9e" - integrity sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw== - dependencies: - postcss-selector-parser "^6.0.9" - -postcss-focus-within@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz#5b1d2ec603195f3344b716c0b75f61e44e8d2e20" - integrity sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ== - dependencies: - postcss-selector-parser "^6.0.9" - -postcss-font-variant@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz#efd59b4b7ea8bb06127f2d031bfbb7f24d32fa66" - integrity sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA== - -postcss-gap-properties@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz#f7e3cddcf73ee19e94ccf7cb77773f9560aa2fff" - integrity sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg== - -postcss-image-set-function@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz#08353bd756f1cbfb3b6e93182c7829879114481f" - integrity sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-import@^15.1.0: - version "15.1.0" - resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-15.1.0.tgz#41c64ed8cc0e23735a9698b3249ffdbf704adc70" - integrity sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew== - dependencies: - postcss-value-parser "^4.0.0" - read-cache "^1.0.0" - resolve "^1.1.7" - -postcss-initial@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-initial/-/postcss-initial-4.0.1.tgz#529f735f72c5724a0fb30527df6fb7ac54d7de42" - integrity sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ== - -postcss-js@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-js/-/postcss-js-4.0.1.tgz#61598186f3703bab052f1c4f7d805f3991bee9d2" - integrity sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw== - dependencies: - camelcase-css "^2.0.1" - -postcss-lab-function@^4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz#6fe4c015102ff7cd27d1bd5385582f67ebdbdc98" - integrity sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" - -postcss-load-config@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-4.0.2.tgz#7159dcf626118d33e299f485d6afe4aff7c4a3e3" - integrity sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ== - dependencies: - lilconfig "^3.0.0" - yaml "^2.3.4" - -postcss-loader@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-6.2.1.tgz#0895f7346b1702103d30fdc66e4d494a93c008ef" - integrity sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q== - dependencies: - cosmiconfig "^7.0.0" - klona "^2.0.5" - semver "^7.3.5" - -postcss-logical@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/postcss-logical/-/postcss-logical-5.0.4.tgz#ec75b1ee54421acc04d5921576b7d8db6b0e6f73" - integrity sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g== - -postcss-media-minmax@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz#7140bddec173e2d6d657edbd8554a55794e2a5b5" - integrity sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ== - -postcss-merge-longhand@^5.1.7: - version "5.1.7" - resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz#24a1bdf402d9ef0e70f568f39bdc0344d568fb16" - integrity sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ== - dependencies: - postcss-value-parser "^4.2.0" - stylehacks "^5.1.1" - -postcss-merge-rules@^5.1.4: - version "5.1.4" - resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz#2f26fa5cacb75b1402e213789f6766ae5e40313c" - integrity sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g== - dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" - cssnano-utils "^3.1.0" - postcss-selector-parser "^6.0.5" - -postcss-minify-font-values@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz#f1df0014a726083d260d3bd85d7385fb89d1f01b" - integrity sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-minify-gradients@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz#f1fe1b4f498134a5068240c2f25d46fcd236ba2c" - integrity sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw== - dependencies: - colord "^2.9.1" - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" - -postcss-minify-params@^5.1.4: - version "5.1.4" - resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz#c06a6c787128b3208b38c9364cfc40c8aa5d7352" - integrity sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw== - dependencies: - browserslist "^4.21.4" - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" - -postcss-minify-selectors@^5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz#d4e7e6b46147b8117ea9325a915a801d5fe656c6" - integrity sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg== - dependencies: - postcss-selector-parser "^6.0.5" - -postcss-modules-extract-imports@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz#b4497cb85a9c0c4b5aabeb759bb25e8d89f15002" - integrity sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q== - -postcss-modules-local-by-default@^4.0.5: - version "4.2.0" - resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz#d150f43837831dae25e4085596e84f6f5d6ec368" - integrity sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw== - dependencies: - icss-utils "^5.0.0" - postcss-selector-parser "^7.0.0" - postcss-value-parser "^4.1.0" - -postcss-modules-scope@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz#1bbccddcb398f1d7a511e0a2d1d047718af4078c" - integrity sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA== - dependencies: - postcss-selector-parser "^7.0.0" - -postcss-modules-values@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c" - integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== - dependencies: - icss-utils "^5.0.0" - -postcss-nested@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/postcss-nested/-/postcss-nested-6.2.0.tgz#4c2d22ab5f20b9cb61e2c5c5915950784d068131" - integrity sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ== - dependencies: - postcss-selector-parser "^6.1.1" - -postcss-nesting@^10.2.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/postcss-nesting/-/postcss-nesting-10.2.0.tgz#0b12ce0db8edfd2d8ae0aaf86427370b898890be" - integrity sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA== - dependencies: - "@csstools/selector-specificity" "^2.0.0" - postcss-selector-parser "^6.0.10" - -postcss-normalize-charset@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz#9302de0b29094b52c259e9b2cf8dc0879879f0ed" - integrity sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg== - -postcss-normalize-display-values@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz#72abbae58081960e9edd7200fcf21ab8325c3da8" - integrity sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize-positions@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz#ef97279d894087b59325b45c47f1e863daefbb92" - integrity sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize-repeat-style@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz#e9eb96805204f4766df66fd09ed2e13545420fb2" - integrity sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize-string@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz#411961169e07308c82c1f8c55f3e8a337757e228" - integrity sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize-timing-functions@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz#d5614410f8f0b2388e9f240aa6011ba6f52dafbb" - integrity sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize-unicode@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz#f67297fca3fea7f17e0d2caa40769afc487aa030" - integrity sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA== - dependencies: - browserslist "^4.21.4" - postcss-value-parser "^4.2.0" - -postcss-normalize-url@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz#ed9d88ca82e21abef99f743457d3729a042adcdc" - integrity sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew== - dependencies: - normalize-url "^6.0.1" - postcss-value-parser "^4.2.0" - -postcss-normalize-whitespace@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz#08a1a0d1ffa17a7cc6efe1e6c9da969cc4493cfa" - integrity sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-normalize@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/postcss-normalize/-/postcss-normalize-10.0.1.tgz#464692676b52792a06b06880a176279216540dd7" - integrity sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA== - dependencies: - "@csstools/normalize.css" "*" - postcss-browser-comments "^4" - sanitize.css "*" - -postcss-opacity-percentage@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz#5b89b35551a556e20c5d23eb5260fbfcf5245da6" - integrity sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A== - -postcss-ordered-values@^5.1.3: - version "5.1.3" - resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz#b6fd2bd10f937b23d86bc829c69e7732ce76ea38" - integrity sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ== - dependencies: - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" - -postcss-overflow-shorthand@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz#7ed6486fec44b76f0eab15aa4866cda5d55d893e" - integrity sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-page-break@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/postcss-page-break/-/postcss-page-break-3.0.4.tgz#7fbf741c233621622b68d435babfb70dd8c1ee5f" - integrity sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ== - -postcss-place@^7.0.5: - version "7.0.5" - resolved "https://registry.yarnpkg.com/postcss-place/-/postcss-place-7.0.5.tgz#95dbf85fd9656a3a6e60e832b5809914236986c4" - integrity sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-preset-env@^7.0.1: - version "7.8.3" - resolved "https://registry.yarnpkg.com/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz#2a50f5e612c3149cc7af75634e202a5b2ad4f1e2" - integrity sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag== - dependencies: - "@csstools/postcss-cascade-layers" "^1.1.1" - "@csstools/postcss-color-function" "^1.1.1" - "@csstools/postcss-font-format-keywords" "^1.0.1" - "@csstools/postcss-hwb-function" "^1.0.2" - "@csstools/postcss-ic-unit" "^1.0.1" - "@csstools/postcss-is-pseudo-class" "^2.0.7" - "@csstools/postcss-nested-calc" "^1.0.0" - "@csstools/postcss-normalize-display-values" "^1.0.1" - "@csstools/postcss-oklab-function" "^1.1.1" - "@csstools/postcss-progressive-custom-properties" "^1.3.0" - "@csstools/postcss-stepped-value-functions" "^1.0.1" - "@csstools/postcss-text-decoration-shorthand" "^1.0.0" - "@csstools/postcss-trigonometric-functions" "^1.0.2" - "@csstools/postcss-unset-value" "^1.0.2" - autoprefixer "^10.4.13" - browserslist "^4.21.4" - css-blank-pseudo "^3.0.3" - css-has-pseudo "^3.0.4" - css-prefers-color-scheme "^6.0.3" - cssdb "^7.1.0" - postcss-attribute-case-insensitive "^5.0.2" - postcss-clamp "^4.1.0" - postcss-color-functional-notation "^4.2.4" - postcss-color-hex-alpha "^8.0.4" - postcss-color-rebeccapurple "^7.1.1" - postcss-custom-media "^8.0.2" - postcss-custom-properties "^12.1.10" - postcss-custom-selectors "^6.0.3" - postcss-dir-pseudo-class "^6.0.5" - postcss-double-position-gradients "^3.1.2" - postcss-env-function "^4.0.6" - postcss-focus-visible "^6.0.4" - postcss-focus-within "^5.0.4" - postcss-font-variant "^5.0.0" - postcss-gap-properties "^3.0.5" - postcss-image-set-function "^4.0.7" - postcss-initial "^4.0.1" - postcss-lab-function "^4.2.1" - postcss-logical "^5.0.4" - postcss-media-minmax "^5.0.0" - postcss-nesting "^10.2.0" - postcss-opacity-percentage "^1.1.2" - postcss-overflow-shorthand "^3.0.4" - postcss-page-break "^3.0.4" - postcss-place "^7.0.5" - postcss-pseudo-class-any-link "^7.1.6" - postcss-replace-overflow-wrap "^4.0.0" - postcss-selector-not "^6.0.1" - postcss-value-parser "^4.2.0" - -postcss-pseudo-class-any-link@^7.1.6: - version "7.1.6" - resolved "https://registry.yarnpkg.com/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz#2693b221902da772c278def85a4d9a64b6e617ab" - integrity sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w== - dependencies: - postcss-selector-parser "^6.0.10" - -postcss-reduce-initial@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6" - integrity sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg== - dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" - -postcss-reduce-transforms@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz#333b70e7758b802f3dd0ddfe98bb1ccfef96b6e9" - integrity sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ== - dependencies: - postcss-value-parser "^4.2.0" - -postcss-replace-overflow-wrap@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz#d2df6bed10b477bf9c52fab28c568b4b29ca4319" - integrity sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw== - -postcss-selector-not@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz#8f0a709bf7d4b45222793fc34409be407537556d" - integrity sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ== - dependencies: - postcss-selector-parser "^6.0.10" - -postcss-selector-parser@^6.0.10, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9, postcss-selector-parser@^6.1.1, postcss-selector-parser@^6.1.2: - version "6.1.2" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de" - integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg== - dependencies: - cssesc "^3.0.0" - util-deprecate "^1.0.2" - -postcss-selector-parser@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz#4d6af97eba65d73bc4d84bcb343e865d7dd16262" - integrity sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA== - dependencies: - cssesc "^3.0.0" - util-deprecate "^1.0.2" - -postcss-svgo@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d" - integrity sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA== - dependencies: - postcss-value-parser "^4.2.0" - svgo "^2.7.0" - -postcss-unique-selectors@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz#a9f273d1eacd09e9aa6088f4b0507b18b1b541b6" - integrity sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA== - dependencies: - postcss-selector-parser "^6.0.5" - -postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" - integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== - -postcss@^7.0.35: - version "7.0.39" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309" - integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA== - dependencies: - picocolors "^0.2.1" - source-map "^0.6.1" - -postcss@^8.3.5, postcss@^8.4.33, postcss@^8.4.4, postcss@^8.4.47: - version "8.5.3" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.3.tgz#1463b6f1c7fb16fe258736cba29a2de35237eafb" - integrity sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A== - dependencies: - nanoid "^3.3.8" - picocolors "^1.1.1" - source-map-js "^1.2.1" - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - -pretty-bytes@^5.3.0, pretty-bytes@^5.4.1: - version "5.6.0" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" - integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== - -pretty-error@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-4.0.0.tgz#90a703f46dd7234adb46d0f84823e9d1cb8f10d6" - integrity sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw== - dependencies: - lodash "^4.17.20" - renderkid "^3.0.0" - -pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== - dependencies: - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" - -pretty-format@^28.1.3: - version "28.1.3" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-28.1.3.tgz#c9fba8cedf99ce50963a11b27d982a9ae90970d5" - integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q== - dependencies: - "@jest/schemas" "^28.1.3" - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^18.0.0" - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -promise@^8.1.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" - integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== - dependencies: - asap "~2.0.6" - -prompts@^2.0.1, prompts@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.8.1: - version "15.8.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" - integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.13.1" - -property-information@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/property-information/-/property-information-7.0.0.tgz#3508a6d6b0b8eb3ca6eb2c6623b164d2ed2ab112" - integrity sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg== - -proxy-addr@~2.0.7: - version "2.0.7" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" - integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== - dependencies: - forwarded "0.2.0" - ipaddr.js "1.9.1" - -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -psl@^1.1.33: - version "1.15.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.15.0.tgz#bdace31896f1d97cec6a79e8224898ce93d974c6" - integrity sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w== - dependencies: - punycode "^2.3.1" - -punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - -q@^1.1.2: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" - integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== - -qs@6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" - integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== - dependencies: - side-channel "^1.0.6" - -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -raf@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" - integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== - dependencies: - performance-now "^2.1.0" - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -range-parser@^1.2.1, range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@2.5.2: - version "2.5.2" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" - integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== - dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" - -react-app-polyfill@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz#95221e0a9bd259e5ca6b177c7bb1cb6768f68fd7" - integrity sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w== - dependencies: - core-js "^3.19.2" - object-assign "^4.1.1" - promise "^8.1.0" - raf "^3.4.1" - regenerator-runtime "^0.13.9" - whatwg-fetch "^3.6.2" - -react-dev-utils@^12.0.1: - version "12.0.1" - resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-12.0.1.tgz#ba92edb4a1f379bd46ccd6bcd4e7bc398df33e73" - integrity sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ== - dependencies: - "@babel/code-frame" "^7.16.0" - address "^1.1.2" - browserslist "^4.18.1" - chalk "^4.1.2" - cross-spawn "^7.0.3" - detect-port-alt "^1.1.6" - escape-string-regexp "^4.0.0" - filesize "^8.0.6" - find-up "^5.0.0" - fork-ts-checker-webpack-plugin "^6.5.0" - global-modules "^2.0.0" - globby "^11.0.4" - gzip-size "^6.0.0" - immer "^9.0.7" - is-root "^2.1.0" - loader-utils "^3.2.0" - open "^8.4.0" - pkg-up "^3.1.0" - prompts "^2.4.2" - react-error-overlay "^6.0.11" - recursive-readdir "^2.2.2" - shell-quote "^1.7.3" - strip-ansi "^6.0.1" - text-table "^0.2.0" - -react-dom@19: - version "19.0.0" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.0.0.tgz#43446f1f01c65a4cd7f7588083e686a6726cfb57" - integrity sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ== - dependencies: - scheduler "^0.25.0" - -react-error-overlay@^6.0.11: - version "6.1.0" - resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.1.0.tgz#22b86256beb1c5856f08a9a228adb8121dd985f2" - integrity sha512-SN/U6Ytxf1QGkw/9ve5Y+NxBbZM6Ht95tuXNMKs8EJyFa/Vy/+Co3stop3KBHARfn/giv+Lj1uUnTfOJ3moFEQ== - -react-is@^16.13.1, react-is@^16.7.0: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - -react-is@^18.0.0: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" - integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== - -react-is@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-19.0.0.tgz#d6669fd389ff022a9684f708cf6fa4962d1fea7a" - integrity sha512-H91OHcwjZsbq3ClIDHMzBShc1rotbfACdWENsmEf0IFvZ3FgGPtdHMcsv45bQ1hAbgdfiA8SnxTKfDS+x/8m2g== - -react-json-view-lite@^2.3.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/react-json-view-lite/-/react-json-view-lite-2.4.1.tgz#0d06696a06aaf4a74e890302b76cf8cddcc45d60" - integrity sha512-fwFYknRIBxjbFm0kBDrzgBy1xa5tDg2LyXXBepC5f1b+MY3BUClMCsvanMPn089JbV1Eg3nZcrp0VCuH43aXnA== - -react-markdown@^9.0.1: - version "9.1.0" - resolved "https://registry.yarnpkg.com/react-markdown/-/react-markdown-9.1.0.tgz#606bd74c6af131ba382a7c1282ff506708ed2e26" - integrity sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw== - dependencies: - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - devlop "^1.0.0" - hast-util-to-jsx-runtime "^2.0.0" - html-url-attributes "^3.0.0" - mdast-util-to-hast "^13.0.0" - remark-parse "^11.0.0" - remark-rehype "^11.0.0" - unified "^11.0.0" - unist-util-visit "^5.0.0" - vfile "^6.0.0" - -react-refresh@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.11.0.tgz#77198b944733f0f1f1a90e791de4541f9f074046" - integrity sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A== - -react-remove-scroll-bar@^2.3.7: - version "2.3.8" - resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz#99c20f908ee467b385b68a3469b4a3e750012223" - integrity sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q== - dependencies: - react-style-singleton "^2.2.2" - tslib "^2.0.0" - -react-remove-scroll@^2.6.3: - version "2.6.3" - resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.6.3.tgz#df02cde56d5f2731e058531f8ffd7f9adec91ac2" - integrity sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ== - dependencies: - react-remove-scroll-bar "^2.3.7" - react-style-singleton "^2.2.3" - tslib "^2.1.0" - use-callback-ref "^1.3.3" - use-sidecar "^1.1.3" - -react-scripts@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-5.0.1.tgz#6285dbd65a8ba6e49ca8d651ce30645a6d980003" - integrity sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ== - dependencies: - "@babel/core" "^7.16.0" - "@pmmmwh/react-refresh-webpack-plugin" "^0.5.3" - "@svgr/webpack" "^5.5.0" - babel-jest "^27.4.2" - babel-loader "^8.2.3" - babel-plugin-named-asset-import "^0.3.8" - babel-preset-react-app "^10.0.1" - bfj "^7.0.2" - browserslist "^4.18.1" - camelcase "^6.2.1" - case-sensitive-paths-webpack-plugin "^2.4.0" - css-loader "^6.5.1" - css-minimizer-webpack-plugin "^3.2.0" - dotenv "^10.0.0" - dotenv-expand "^5.1.0" - eslint "^8.3.0" - eslint-config-react-app "^7.0.1" - eslint-webpack-plugin "^3.1.1" - file-loader "^6.2.0" - fs-extra "^10.0.0" - html-webpack-plugin "^5.5.0" - identity-obj-proxy "^3.0.0" - jest "^27.4.3" - jest-resolve "^27.4.2" - jest-watch-typeahead "^1.0.0" - mini-css-extract-plugin "^2.4.5" - postcss "^8.4.4" - postcss-flexbugs-fixes "^5.0.2" - postcss-loader "^6.2.1" - postcss-normalize "^10.0.1" - postcss-preset-env "^7.0.1" - prompts "^2.4.2" - react-app-polyfill "^3.0.0" - react-dev-utils "^12.0.1" - react-refresh "^0.11.0" - resolve "^1.20.0" - resolve-url-loader "^4.0.0" - sass-loader "^12.3.0" - semver "^7.3.5" - source-map-loader "^3.0.0" - style-loader "^3.3.1" - tailwindcss "^3.0.2" - terser-webpack-plugin "^5.2.5" - webpack "^5.64.4" - webpack-dev-server "^4.6.0" - webpack-manifest-plugin "^4.0.2" - workbox-webpack-plugin "^6.4.1" - optionalDependencies: - fsevents "^2.3.2" - -react-select@^5.8.0: - version "5.10.1" - resolved "https://registry.yarnpkg.com/react-select/-/react-select-5.10.1.tgz#e858dd98358ccd864b65d53ab0fb682cd5e96b89" - integrity sha512-roPEZUL4aRZDx6DcsD+ZNreVl+fM8VsKn0Wtex1v4IazH60ILp5xhdlp464IsEAlJdXeD+BhDAFsBVMfvLQueA== - dependencies: - "@babel/runtime" "^7.12.0" - "@emotion/cache" "^11.4.0" - "@emotion/react" "^11.8.1" - "@floating-ui/dom" "^1.0.1" - "@types/react-transition-group" "^4.4.0" - memoize-one "^6.0.0" - prop-types "^15.6.0" - react-transition-group "^4.3.0" - use-isomorphic-layout-effect "^1.2.0" - -react-style-singleton@^2.2.2, react-style-singleton@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.2.3.tgz#4265608be69a4d70cfe3047f2c6c88b2c3ace388" - integrity sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ== - dependencies: - get-nonce "^1.0.0" - tslib "^2.0.0" - -react-svg@^16.1.34: - version "16.3.0" - resolved "https://registry.yarnpkg.com/react-svg/-/react-svg-16.3.0.tgz#de7a4bb6ee2d465c1ff7125ec27414ac27e907d7" - integrity sha512-MvoQbITgkmpPJYwDTNdiUyoncJFfoa0D86WzoZuMQ9c/ORJURPR6rPMnXDsLOWDCAyXuV9nKZhQhGyP0HZ0MVQ== - dependencies: - "@babel/runtime" "^7.26.0" - "@tanem/svg-injector" "^10.1.68" - "@types/prop-types" "^15.7.14" - prop-types "^15.8.1" - -react-transition-group@^4.3.0, react-transition-group@^4.4.5: - version "4.4.5" - resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.5.tgz#e53d4e3f3344da8521489fbef8f2581d42becdd1" - integrity sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g== - dependencies: - "@babel/runtime" "^7.5.5" - dom-helpers "^5.0.1" - loose-envify "^1.4.0" - prop-types "^15.6.2" - -react@19: - version "19.0.0" - resolved "https://registry.yarnpkg.com/react/-/react-19.0.0.tgz#6e1969251b9f108870aa4bff37a0ce9ddfaaabdd" - integrity sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ== - -reactflow@^11.11.4: - version "11.11.4" - resolved "https://registry.yarnpkg.com/reactflow/-/reactflow-11.11.4.tgz#e3593e313420542caed81aecbd73fb9bc6576653" - integrity sha512-70FOtJkUWH3BAOsN+LU9lCrKoKbtOPnz2uq0CV2PLdNSwxTXOhCbsZr50GmZ+Rtw3jx8Uv7/vBFtCGixLfd4Og== - dependencies: - "@reactflow/background" "11.3.14" - "@reactflow/controls" "11.2.14" - "@reactflow/core" "11.11.4" - "@reactflow/minimap" "11.7.14" - "@reactflow/node-resizer" "2.2.14" - "@reactflow/node-toolbar" "1.3.14" - -read-cache@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" - integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA== - dependencies: - pify "^2.3.0" - -readable-stream@^2.0.1: - version "2.3.8" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" - integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readable-stream@^3.0.6: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -rechoir@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.8.0.tgz#49f866e0d32146142da3ad8f0eff352b3215ff22" - integrity sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ== - dependencies: - resolve "^1.20.0" - -recursive-readdir@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.3.tgz#e726f328c0d69153bcabd5c322d3195252379372" - integrity sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA== - dependencies: - minimatch "^3.0.5" - -reflect.getprototypeof@^1.0.6, reflect.getprototypeof@^1.0.9: - version "1.0.10" - resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz#c629219e78a3316d8b604c765ef68996964e7bf9" - integrity sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw== - dependencies: - call-bind "^1.0.8" - define-properties "^1.2.1" - es-abstract "^1.23.9" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - get-intrinsic "^1.2.7" - get-proto "^1.0.1" - which-builtin-type "^1.2.1" - -regenerate-unicode-properties@^10.2.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz#626e39df8c372338ea9b8028d1f99dc3fd9c3db0" - integrity sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA== - dependencies: - regenerate "^1.4.2" - -regenerate@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.13.9: - version "0.13.11" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - -regenerator-transform@^0.15.2: - version "0.15.2" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" - integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== - dependencies: - "@babel/runtime" "^7.8.4" - -regex-parser@^2.2.11: - version "2.3.1" - resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.3.1.tgz#ee3f70e50bdd81a221d505242cb9a9c275a2ad91" - integrity sha512-yXLRqatcCuKtVHsWrNg0JL3l1zGfdXeEvDa0bdu4tCDQw0RpMDZsqbkyRTUnKMR0tXF627V2oEWjBEaEdqTwtQ== - -regexp.prototype.flags@^1.5.3: - version "1.5.4" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz#1ad6c62d44a259007e55b3970e00f746efbcaa19" - integrity sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA== - dependencies: - call-bind "^1.0.8" - define-properties "^1.2.1" - es-errors "^1.3.0" - get-proto "^1.0.1" - gopd "^1.2.0" - set-function-name "^2.0.2" - -regexpu-core@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.2.0.tgz#0e5190d79e542bf294955dccabae04d3c7d53826" - integrity sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.2.0" - regjsgen "^0.8.0" - regjsparser "^0.12.0" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - -regjsgen@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.8.0.tgz#df23ff26e0c5b300a6470cad160a9d090c3a37ab" - integrity sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q== - -regjsparser@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.12.0.tgz#0e846df6c6530586429377de56e0475583b088dc" - integrity sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ== - dependencies: - jsesc "~3.0.2" - -relateurl@^0.2.7: - version "0.2.7" - resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" - integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== - -remark-gfm@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-4.0.1.tgz#33227b2a74397670d357bf05c098eaf8513f0d6b" - integrity sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg== - dependencies: - "@types/mdast" "^4.0.0" - mdast-util-gfm "^3.0.0" - micromark-extension-gfm "^3.0.0" - remark-parse "^11.0.0" - remark-stringify "^11.0.0" - unified "^11.0.0" - -remark-parse@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-11.0.0.tgz#aa60743fcb37ebf6b069204eb4da304e40db45a1" - integrity sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA== - dependencies: - "@types/mdast" "^4.0.0" - mdast-util-from-markdown "^2.0.0" - micromark-util-types "^2.0.0" - unified "^11.0.0" - -remark-rehype@^11.0.0: - version "11.1.1" - resolved "https://registry.yarnpkg.com/remark-rehype/-/remark-rehype-11.1.1.tgz#f864dd2947889a11997c0a2667cd6b38f685bca7" - integrity sha512-g/osARvjkBXb6Wo0XvAeXQohVta8i84ACbenPpoSsxTOQH/Ae0/RGP4WZgnMH5pMLpsj4FG7OHmcIcXxpza8eQ== - dependencies: - "@types/hast" "^3.0.0" - "@types/mdast" "^4.0.0" - mdast-util-to-hast "^13.0.0" - unified "^11.0.0" - vfile "^6.0.0" - -remark-stringify@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-11.0.0.tgz#4c5b01dd711c269df1aaae11743eb7e2e7636fd3" - integrity sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw== - dependencies: - "@types/mdast" "^4.0.0" - mdast-util-to-markdown "^2.0.0" - unified "^11.0.0" - -renderkid@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a" - integrity sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg== - dependencies: - css-select "^4.1.3" - dom-converter "^0.2.0" - htmlparser2 "^6.1.0" - lodash "^4.17.21" - strip-ansi "^6.0.1" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-url-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz#d50d4ddc746bb10468443167acf800dcd6c3ad57" - integrity sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA== - dependencies: - adjust-sourcemap-loader "^4.0.0" - convert-source-map "^1.7.0" - loader-utils "^2.0.0" - postcss "^7.0.35" - source-map "0.6.1" - -resolve.exports@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.1.tgz#05cfd5b3edf641571fd46fa608b610dda9ead999" - integrity sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ== - -resolve@^1.1.7, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.4, resolve@^1.22.8: - version "1.22.10" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" - integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== - dependencies: - is-core-module "^2.16.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -resolve@^2.0.0-next.5: - version "2.0.0-next.5" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" - integrity sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA== - dependencies: - is-core-module "^2.13.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -retry@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - -reusify@^1.0.4: - version "1.1.0" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f" - integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw== - -rimraf@^3.0.0, rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rollup-plugin-terser@^7.0.0: - version "7.0.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" - integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== - dependencies: - "@babel/code-frame" "^7.10.4" - jest-worker "^26.2.1" - serialize-javascript "^4.0.0" - terser "^5.0.0" - -rollup@^2.43.1: - version "2.79.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.2.tgz#f150e4a5db4b121a21a747d762f701e5e9f49090" - integrity sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ== - optionalDependencies: - fsevents "~2.3.2" - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -safe-array-concat@^1.1.2, safe-array-concat@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.3.tgz#c9e54ec4f603b0bbb8e7e5007a5ee7aecd1538c3" - integrity sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.2" - get-intrinsic "^1.2.6" - has-symbols "^1.1.0" - isarray "^2.0.5" - -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.1.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-push-apply@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/safe-push-apply/-/safe-push-apply-1.0.0.tgz#01850e981c1602d398c85081f360e4e6d03d27f5" - integrity sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA== - dependencies: - es-errors "^1.3.0" - isarray "^2.0.5" - -safe-regex-test@^1.0.3, safe-regex-test@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.1.0.tgz#7f87dfb67a3150782eaaf18583ff5d1711ac10c1" - integrity sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - is-regex "^1.2.1" - -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sanitize.css@*: - version "13.0.0" - resolved "https://registry.yarnpkg.com/sanitize.css/-/sanitize.css-13.0.0.tgz#2675553974b27964c75562ade3bd85d79879f173" - integrity sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA== - -sass-loader@^12.3.0: - version "12.6.0" - resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-12.6.0.tgz#5148362c8e2cdd4b950f3c63ac5d16dbfed37bcb" - integrity sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA== - dependencies: - klona "^2.0.4" - neo-async "^2.6.2" - -sax@~1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -scheduler@^0.25.0: - version "0.25.0" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015" - integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA== - -schema-utils@2.7.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7" - integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A== - dependencies: - "@types/json-schema" "^7.0.4" - ajv "^6.12.2" - ajv-keywords "^3.4.1" - -schema-utils@^2.6.5: - version "2.7.1" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7" - integrity sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg== - dependencies: - "@types/json-schema" "^7.0.5" - ajv "^6.12.4" - ajv-keywords "^3.5.2" - -schema-utils@^3.0.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" - integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - -schema-utils@^4.0.0, schema-utils@^4.2.0, schema-utils@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" - integrity sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g== - dependencies: - "@types/json-schema" "^7.0.9" - ajv "^8.9.0" - ajv-formats "^2.1.1" - ajv-keywords "^5.1.0" - -select-hose@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" - integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg== - -selfsigned@^2.1.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.4.1.tgz#560d90565442a3ed35b674034cec4e95dceb4ae0" - integrity sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q== - dependencies: - "@types/node-forge" "^1.3.0" - node-forge "^1" - -semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: - version "6.3.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" - integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== - -semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: - version "7.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" - integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== - -send@0.19.0: - version "0.19.0" - resolved "https://registry.yarnpkg.com/send/-/send-0.19.0.tgz#bbc5a388c8ea6c048967049dbeac0e4a3f09d7f8" - integrity sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw== - dependencies: - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "2.0.0" - mime "1.6.0" - ms "2.1.3" - on-finished "2.4.1" - range-parser "~1.2.1" - statuses "2.0.1" - -serialize-javascript@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" - integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== - dependencies: - randombytes "^2.1.0" - -serialize-javascript@^6.0.0, serialize-javascript@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" - integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== - dependencies: - randombytes "^2.1.0" - -serve-index@^1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" - integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw== - dependencies: - accepts "~1.3.4" - batch "0.6.1" - debug "2.6.9" - escape-html "~1.0.3" - http-errors "~1.6.2" - mime-types "~2.1.17" - parseurl "~1.3.2" - -serve-static@1.16.2: - version "1.16.2" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.16.2.tgz#b6a5343da47f6bdd2673848bf45754941e803296" - integrity sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw== - dependencies: - encodeurl "~2.0.0" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.19.0" - -set-function-length@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - -set-function-name@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" - integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - functions-have-names "^1.2.3" - has-property-descriptors "^1.0.2" - -set-proto@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/set-proto/-/set-proto-1.0.0.tgz#0760dbcff30b2d7e801fd6e19983e56da337565e" - integrity sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw== - dependencies: - dunder-proto "^1.0.1" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - -setprototypeof@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" - integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== - -setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shell-quote@^1.7.3, shell-quote@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.2.tgz#d2d83e057959d53ec261311e9e9b8f51dcb2934a" - integrity sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA== - -side-channel-list@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" - integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== - dependencies: - es-errors "^1.3.0" - object-inspect "^1.13.3" - -side-channel-map@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" - integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - get-intrinsic "^1.2.5" - object-inspect "^1.13.3" - -side-channel-weakmap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" - integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - get-intrinsic "^1.2.5" - object-inspect "^1.13.3" - side-channel-map "^1.0.1" - -side-channel@^1.0.6, side-channel@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" - integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== - dependencies: - es-errors "^1.3.0" - object-inspect "^1.13.3" - side-channel-list "^1.0.0" - side-channel-map "^1.0.1" - side-channel-weakmap "^1.0.2" - -signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -signal-exit@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" - integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== - -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slash@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" - integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== - -sockjs@^0.3.24: - version "0.3.24" - resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" - integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== - dependencies: - faye-websocket "^0.11.3" - uuid "^8.3.2" - websocket-driver "^0.7.4" - -source-list-map@^2.0.0, source-list-map@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" - integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== - -source-map-js@^1.0.1, source-map-js@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" - integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== - -source-map-loader@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-3.0.2.tgz#af23192f9b344daa729f6772933194cc5fa54fee" - integrity sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg== - dependencies: - abab "^2.0.5" - iconv-lite "^0.6.3" - source-map-js "^1.0.1" - -source-map-support@^0.5.6, source-map-support@~0.5.20: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - -source-map@^0.7.3, source-map@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - -source-map@^0.8.0-beta.0: - version "0.8.0-beta.0" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.8.0-beta.0.tgz#d4c1bb42c3f7ee925f005927ba10709e0d1d1f11" - integrity sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA== - dependencies: - whatwg-url "^7.0.0" - -sourcemap-codec@^1.4.8: - version "1.4.8" - resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" - integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== - -space-separated-tokens@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f" - integrity sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q== - -spdy-transport@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" - integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw== - dependencies: - debug "^4.1.0" - detect-node "^2.0.4" - hpack.js "^2.1.6" - obuf "^1.1.2" - readable-stream "^3.0.6" - wbuf "^1.7.3" - -spdy@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b" - integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA== - dependencies: - debug "^4.1.0" - handle-thing "^2.0.0" - http-deceiver "^1.2.7" - select-hose "^2.0.0" - spdy-transport "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - -stable@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" - integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== - -stack-utils@^2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" - integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== - dependencies: - escape-string-regexp "^2.0.0" - -stackframe@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" - integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== - -static-eval@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/static-eval/-/static-eval-2.0.2.tgz#2d1759306b1befa688938454c546b7871f806a42" - integrity sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg== - dependencies: - escodegen "^1.8.1" - -statuses@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" - integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== - -"statuses@>= 1.4.0 < 2": - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== - -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-length@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-5.0.1.tgz#3d647f497b6e8e8d41e422f7e0b23bc536c8381e" - integrity sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow== - dependencies: - char-regex "^2.0.0" - strip-ansi "^7.0.1" - -string-natural-compare@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" - integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== - -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^5.0.1, string-width@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" - integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== - dependencies: - eastasianwidth "^0.2.0" - emoji-regex "^9.2.2" - strip-ansi "^7.0.1" - -string.prototype.includes@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz#eceef21283640761a81dbe16d6c7171a4edf7d92" - integrity sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.3" - -string.prototype.matchall@^4.0.12, string.prototype.matchall@^4.0.6: - version "4.0.12" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz#6c88740e49ad4956b1332a911e949583a275d4c0" - integrity sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.3" - define-properties "^1.2.1" - es-abstract "^1.23.6" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - get-intrinsic "^1.2.6" - gopd "^1.2.0" - has-symbols "^1.1.0" - internal-slot "^1.1.0" - regexp.prototype.flags "^1.5.3" - set-function-name "^2.0.2" - side-channel "^1.1.0" - -string.prototype.repeat@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz#e90872ee0308b29435aa26275f6e1b762daee01a" - integrity sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.5" - -string.prototype.trim@^1.2.10: - version "1.2.10" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz#40b2dd5ee94c959b4dcfb1d65ce72e90da480c81" - integrity sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.2" - define-data-property "^1.1.4" - define-properties "^1.2.1" - es-abstract "^1.23.5" - es-object-atoms "^1.0.0" - has-property-descriptors "^1.0.2" - -string.prototype.trimend@^1.0.8, string.prototype.trimend@^1.0.9: - version "1.0.9" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz#62e2731272cd285041b36596054e9f66569b6942" - integrity sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.2" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string.prototype.trimstart@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" - integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -stringify-entities@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.4.tgz#b3b79ef5f277cc4ac73caeb0236c5ba939b3a4f3" - integrity sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg== - dependencies: - character-entities-html4 "^2.0.0" - character-entities-legacy "^3.0.0" - -stringify-object@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" - integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== - dependencies: - get-own-enumerable-property-symbols "^3.0.0" - is-obj "^1.0.1" - is-regexp "^1.0.0" - -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^7.0.1: - version "7.1.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" - integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== - dependencies: - ansi-regex "^6.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-comments@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-comments/-/strip-comments-2.0.1.tgz#4ad11c3fbcac177a67a40ac224ca339ca1c1ba9b" - integrity sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -style-loader@^3.3.1: - version "3.3.4" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7" - integrity sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w== - -style-to-js@^1.0.0: - version "1.1.16" - resolved "https://registry.yarnpkg.com/style-to-js/-/style-to-js-1.1.16.tgz#e6bd6cd29e250bcf8fa5e6591d07ced7575dbe7a" - integrity sha512-/Q6ld50hKYPH3d/r6nr117TZkHR0w0kGGIVfpG9N6D8NymRPM9RqCUv4pRpJ62E5DqOYx2AFpbZMyCPnjQCnOw== - dependencies: - style-to-object "1.0.8" - -style-to-object@1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-1.0.8.tgz#67a29bca47eaa587db18118d68f9d95955e81292" - integrity sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g== - dependencies: - inline-style-parser "0.2.4" - -stylehacks@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9" - integrity sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw== - dependencies: - browserslist "^4.21.4" - postcss-selector-parser "^6.0.4" - -stylis@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.2.0.tgz#79daee0208964c8fe695a42fcffcac633a211a51" - integrity sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw== - -sucrase@^3.35.0: - version "3.35.0" - resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.35.0.tgz#57f17a3d7e19b36d8995f06679d121be914ae263" - integrity sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA== - dependencies: - "@jridgewell/gen-mapping" "^0.3.2" - commander "^4.0.0" - glob "^10.3.10" - lines-and-columns "^1.1.6" - mz "^2.7.0" - pirates "^4.0.1" - ts-interface-checker "^0.1.9" - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^8.0.0, supports-color@^8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -svg-parser@^2.0.2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" - integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== - -svgo@^1.2.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167" - integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw== - dependencies: - chalk "^2.4.1" - coa "^2.0.2" - css-select "^2.0.0" - css-select-base-adapter "^0.1.1" - css-tree "1.0.0-alpha.37" - csso "^4.0.2" - js-yaml "^3.13.1" - mkdirp "~0.5.1" - object.values "^1.1.0" - sax "~1.2.4" - stable "^0.1.8" - unquote "~1.1.1" - util.promisify "~1.0.0" - -svgo@^2.7.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24" - integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg== - dependencies: - "@trysound/sax" "0.2.0" - commander "^7.2.0" - css-select "^4.1.3" - css-tree "^1.1.3" - csso "^4.2.0" - picocolors "^1.0.0" - stable "^0.1.8" - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -tailwindcss@^3.0.2: - version "3.4.17" - resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.17.tgz#ae8406c0f96696a631c790768ff319d46d5e5a63" - integrity sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og== - dependencies: - "@alloc/quick-lru" "^5.2.0" - arg "^5.0.2" - chokidar "^3.6.0" - didyoumean "^1.2.2" - dlv "^1.1.3" - fast-glob "^3.3.2" - glob-parent "^6.0.2" - is-glob "^4.0.3" - jiti "^1.21.6" - lilconfig "^3.1.3" - micromatch "^4.0.8" - normalize-path "^3.0.0" - object-hash "^3.0.0" - picocolors "^1.1.1" - postcss "^8.4.47" - postcss-import "^15.1.0" - postcss-js "^4.0.1" - postcss-load-config "^4.0.2" - postcss-nested "^6.2.0" - postcss-selector-parser "^6.1.2" - resolve "^1.22.8" - sucrase "^3.35.0" - -tapable@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" - integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== - -tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" - integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== - -temp-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" - integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== - -tempy@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tempy/-/tempy-0.6.0.tgz#65e2c35abc06f1124a97f387b08303442bde59f3" - integrity sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw== - dependencies: - is-stream "^2.0.0" - temp-dir "^2.0.0" - type-fest "^0.16.0" - unique-string "^2.0.0" - -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -terser-webpack-plugin@^5.2.5, terser-webpack-plugin@^5.3.11: - version "5.3.14" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz#9031d48e57ab27567f02ace85c7d690db66c3e06" - integrity sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw== - dependencies: - "@jridgewell/trace-mapping" "^0.3.25" - jest-worker "^27.4.5" - schema-utils "^4.3.0" - serialize-javascript "^6.0.2" - terser "^5.31.1" - -terser@^5.0.0, terser@^5.10.0, terser@^5.31.1: - version "5.39.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" - integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== - dependencies: - "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" - commander "^2.20.0" - source-map-support "~0.5.20" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -thenify-all@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" - integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== - dependencies: - thenify ">= 3.1.0 < 4" - -"thenify@>= 3.1.0 < 4": - version "3.3.1" - resolved "https://registry.yarnpkg.com/thenify/-/thenify-3.3.1.tgz#8932e686a4066038a016dd9e2ca46add9838a95f" - integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== - dependencies: - any-promise "^1.0.0" - -throat@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.2.tgz#51a3fbb5e11ae72e2cf74861ed5c8020f89f29fe" - integrity sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ== - -thunky@^1.0.2: - version "1.1.0" - resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" - integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== - -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -toidentifier@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tough-cookie@^4.0.0: - version "4.1.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36" - integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" - integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== - dependencies: - punycode "^2.1.0" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - -trim-lines@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" - integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== - -trough@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/trough/-/trough-2.2.0.tgz#94a60bd6bd375c152c1df911a4b11d5b0256f50f" - integrity sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw== - -tryer@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" - integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA== - -ts-interface-checker@^0.1.9: - version "0.1.13" - resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" - integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== - -ts-loader@^9.5.1: - version "9.5.2" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020" - integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw== - dependencies: - chalk "^4.1.0" - enhanced-resolve "^5.0.0" - micromatch "^4.0.0" - semver "^7.3.4" - source-map "^0.7.4" - -tsconfig-paths@^3.15.0: - version "3.15.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" - integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.2" - minimist "^1.2.6" - strip-bom "^3.0.0" - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.6.2: - version "2.8.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" - integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== - -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.16.0: - version "0.16.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.16.0.tgz#3240b891a78b0deae910dbeb86553e552a148860" - integrity sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -typed-array-buffer@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz#a72395450a4869ec033fd549371b47af3a2ee536" - integrity sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw== - dependencies: - call-bound "^1.0.3" - es-errors "^1.3.0" - is-typed-array "^1.1.14" - -typed-array-byte-length@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz#8407a04f7d78684f3d252aa1a143d2b77b4160ce" - integrity sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg== - dependencies: - call-bind "^1.0.8" - for-each "^0.3.3" - gopd "^1.2.0" - has-proto "^1.2.0" - is-typed-array "^1.1.14" - -typed-array-byte-offset@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz#ae3698b8ec91a8ab945016108aef00d5bff12355" - integrity sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.8" - for-each "^0.3.3" - gopd "^1.2.0" - has-proto "^1.2.0" - is-typed-array "^1.1.15" - reflect.getprototypeof "^1.0.9" - -typed-array-length@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.7.tgz#ee4deff984b64be1e118b0de8c9c877d5ce73d3d" - integrity sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg== - dependencies: - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - is-typed-array "^1.1.13" - possible-typed-array-names "^1.0.0" - reflect.getprototypeof "^1.0.6" - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typescript@^5.4.5: - version "5.8.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4" - integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ== - -unbox-primitive@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.1.0.tgz#8d9d2c9edeea8460c7f35033a88867944934d1e2" - integrity sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw== - dependencies: - call-bound "^1.0.3" - has-bigints "^1.0.2" - has-symbols "^1.1.0" - which-boxed-primitive "^1.1.1" - -underscore@1.12.1: - version "1.12.1" - resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" - integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== - -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== - -unicode-canonical-property-names-ecmascript@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz#cb3173fe47ca743e228216e4a3ddc4c84d628cc2" - integrity sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg== - -unicode-match-property-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" - integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== - dependencies: - unicode-canonical-property-names-ecmascript "^2.0.0" - unicode-property-aliases-ecmascript "^2.0.0" - -unicode-match-property-value-ecmascript@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz#a0401aee72714598f739b68b104e4fe3a0cb3c71" - integrity sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg== - -unicode-property-aliases-ecmascript@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" - integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== - -unified@^11.0.0: - version "11.0.5" - resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.5.tgz#f66677610a5c0a9ee90cab2b8d4d66037026d9e1" - integrity sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA== - dependencies: - "@types/unist" "^3.0.0" - bail "^2.0.0" - devlop "^1.0.0" - extend "^3.0.0" - is-plain-obj "^4.0.0" - trough "^2.0.0" - vfile "^6.0.0" - -unique-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" - integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== - dependencies: - crypto-random-string "^2.0.0" - -unist-util-is@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-6.0.0.tgz#b775956486aff107a9ded971d996c173374be424" - integrity sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw== - dependencies: - "@types/unist" "^3.0.0" - -unist-util-position@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-5.0.0.tgz#678f20ab5ca1207a97d7ea8a388373c9cf896be4" - integrity sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA== - dependencies: - "@types/unist" "^3.0.0" - -unist-util-stringify-position@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2" - integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== - dependencies: - "@types/unist" "^3.0.0" - -unist-util-visit-parents@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz#4d5f85755c3b8f0dc69e21eca5d6d82d22162815" - integrity sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw== - dependencies: - "@types/unist" "^3.0.0" - unist-util-is "^6.0.0" - -unist-util-visit@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz#a7de1f31f72ffd3519ea71814cccf5fd6a9217d6" - integrity sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg== - dependencies: - "@types/unist" "^3.0.0" - unist-util-is "^6.0.0" - unist-util-visit-parents "^6.0.0" - -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - -universalify@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" - integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -unquote@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" - integrity sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg== - -upath@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" - integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== - -update-browserslist-db@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" - integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== - dependencies: - escalade "^3.2.0" - picocolors "^1.1.1" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - -use-callback-ref@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.3.tgz#98d9fab067075841c5b2c6852090d5d0feabe2bf" - integrity sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg== - dependencies: - tslib "^2.0.0" - -use-isomorphic-layout-effect@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.0.tgz#afb292eb284c39219e8cb8d3d62d71999361a21d" - integrity sha512-q6ayo8DWoPZT0VdG4u3D3uxcgONP3Mevx2i2b0434cwWBoL+aelL1DzkXI6w3PhTZzUeR2kaVlZn70iCiseP6w== - -use-sidecar@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.3.tgz#10e7fd897d130b896e2c546c63a5e8233d00efdb" - integrity sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ== - dependencies: - detect-node-es "^1.1.0" - tslib "^2.0.0" - -use-sync-external-store@^1.2.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz#adbc795d8eeb47029963016cefdf89dc799fcebc" - integrity sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw== - -util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -util.promisify@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee" - integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.2" - has-symbols "^1.0.1" - object.getownpropertydescriptors "^2.1.0" - -utila@~0.4: - version "0.4.0" - resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" - integrity sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA== - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - -uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -uuid@^9.0.1: - version "9.0.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" - integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== - -v8-to-istanbul@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" - integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - -vfile-message@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-4.0.2.tgz#c883c9f677c72c166362fd635f21fc165a7d1181" - integrity sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw== - dependencies: - "@types/unist" "^3.0.0" - unist-util-stringify-position "^4.0.0" - -vfile@^6.0.0: - version "6.0.3" - resolved "https://registry.yarnpkg.com/vfile/-/vfile-6.0.3.tgz#3652ab1c496531852bf55a6bac57af981ebc38ab" - integrity sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q== - dependencies: - "@types/unist" "^3.0.0" - vfile-message "^4.0.0" - -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== - dependencies: - makeerror "1.0.12" - -watchpack@^2.4.1: - version "2.4.2" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.2.tgz#2feeaed67412e7c33184e5a79ca738fbd38564da" - integrity sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw== - dependencies: - glob-to-regexp "^0.4.1" - graceful-fs "^4.1.2" - -wbuf@^1.1.0, wbuf@^1.7.3: - version "1.7.3" - resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" - integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA== - dependencies: - minimalistic-assert "^1.0.0" - -webidl-conversions@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" - integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -webpack-cli@^5.1.4: - version "5.1.4" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-5.1.4.tgz#c8e046ba7eaae4911d7e71e2b25b776fcc35759b" - integrity sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg== - dependencies: - "@discoveryjs/json-ext" "^0.5.0" - "@webpack-cli/configtest" "^2.1.1" - "@webpack-cli/info" "^2.0.2" - "@webpack-cli/serve" "^2.0.5" - colorette "^2.0.14" - commander "^10.0.1" - cross-spawn "^7.0.3" - envinfo "^7.7.3" - fastest-levenshtein "^1.0.12" - import-local "^3.0.2" - interpret "^3.1.1" - rechoir "^0.8.0" - webpack-merge "^5.7.3" - -webpack-dev-middleware@^5.3.4: - version "5.3.4" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517" - integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q== - dependencies: - colorette "^2.0.10" - memfs "^3.4.3" - mime-types "^2.1.31" - range-parser "^1.2.1" - schema-utils "^4.0.0" - -webpack-dev-server@^4.6.0: - version "4.15.2" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz#9e0c70a42a012560860adb186986da1248333173" - integrity sha512-0XavAZbNJ5sDrCbkpWL8mia0o5WPOd2YGtxrEiZkBK9FjLppIUK2TgxK6qGD2P3hUXTJNNPVibrerKcx5WkR1g== - dependencies: - "@types/bonjour" "^3.5.9" - "@types/connect-history-api-fallback" "^1.3.5" - "@types/express" "^4.17.13" - "@types/serve-index" "^1.9.1" - "@types/serve-static" "^1.13.10" - "@types/sockjs" "^0.3.33" - "@types/ws" "^8.5.5" - ansi-html-community "^0.0.8" - bonjour-service "^1.0.11" - chokidar "^3.5.3" - colorette "^2.0.10" - compression "^1.7.4" - connect-history-api-fallback "^2.0.0" - default-gateway "^6.0.3" - express "^4.17.3" - graceful-fs "^4.2.6" - html-entities "^2.3.2" - http-proxy-middleware "^2.0.3" - ipaddr.js "^2.0.1" - launch-editor "^2.6.0" - open "^8.0.9" - p-retry "^4.5.0" - rimraf "^3.0.2" - schema-utils "^4.0.0" - selfsigned "^2.1.1" - serve-index "^1.9.1" - sockjs "^0.3.24" - spdy "^4.0.2" - webpack-dev-middleware "^5.3.4" - ws "^8.13.0" - -webpack-manifest-plugin@^4.0.2: - version "4.1.1" - resolved "https://registry.yarnpkg.com/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz#10f8dbf4714ff93a215d5a45bcc416d80506f94f" - integrity sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow== - dependencies: - tapable "^2.0.0" - webpack-sources "^2.2.0" - -webpack-merge@^5.7.3: - version "5.10.0" - resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" - integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== - dependencies: - clone-deep "^4.0.1" - flat "^5.0.2" - wildcard "^2.0.0" - -webpack-sources@^1.4.3: - version "1.4.3" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933" - integrity sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ== - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack-sources@^2.2.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.3.1.tgz#570de0af163949fe272233c2cefe1b56f74511fd" - integrity sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA== - dependencies: - source-list-map "^2.0.1" - source-map "^0.6.1" - -webpack-sources@^3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" - integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== - -webpack@^5.64.4, webpack@^5.91.0: - version "5.98.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.98.0.tgz#44ae19a8f2ba97537978246072fb89d10d1fbd17" - integrity sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA== - dependencies: - "@types/eslint-scope" "^3.7.7" - "@types/estree" "^1.0.6" - "@webassemblyjs/ast" "^1.14.1" - "@webassemblyjs/wasm-edit" "^1.14.1" - "@webassemblyjs/wasm-parser" "^1.14.1" - acorn "^8.14.0" - browserslist "^4.24.0" - chrome-trace-event "^1.0.2" - enhanced-resolve "^5.17.1" - es-module-lexer "^1.2.1" - eslint-scope "5.1.1" - events "^3.2.0" - glob-to-regexp "^0.4.1" - graceful-fs "^4.2.11" - json-parse-even-better-errors "^2.3.1" - loader-runner "^4.2.0" - mime-types "^2.1.27" - neo-async "^2.6.2" - schema-utils "^4.3.0" - tapable "^2.1.1" - terser-webpack-plugin "^5.3.11" - watchpack "^2.4.1" - webpack-sources "^3.2.3" - -websocket-driver@>=0.5.1, websocket-driver@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" - integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== - dependencies: - http-parser-js ">=0.5.1" - safe-buffer ">=5.1.0" - websocket-extensions ">=0.1.1" - -websocket-extensions@>=0.1.1: - version "0.1.4" - resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" - integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-fetch@^3.6.2: - version "3.6.20" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz#580ce6d791facec91d37c72890995a0b48d31c70" - integrity sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg== - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" - integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== - dependencies: - lodash.sortby "^4.7.0" - tr46 "^1.0.1" - webidl-conversions "^4.0.2" - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - -which-boxed-primitive@^1.1.0, which-boxed-primitive@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz#d76ec27df7fa165f18d5808374a5fe23c29b176e" - integrity sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA== - dependencies: - is-bigint "^1.1.0" - is-boolean-object "^1.2.1" - is-number-object "^1.1.1" - is-string "^1.1.1" - is-symbol "^1.1.1" - -which-builtin-type@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.2.1.tgz#89183da1b4907ab089a6b02029cc5d8d6574270e" - integrity sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q== - dependencies: - call-bound "^1.0.2" - function.prototype.name "^1.1.6" - has-tostringtag "^1.0.2" - is-async-function "^2.0.0" - is-date-object "^1.1.0" - is-finalizationregistry "^1.1.0" - is-generator-function "^1.0.10" - is-regex "^1.2.1" - is-weakref "^1.0.2" - isarray "^2.0.5" - which-boxed-primitive "^1.1.0" - which-collection "^1.0.2" - which-typed-array "^1.1.16" - -which-collection@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.2.tgz#627ef76243920a107e7ce8e96191debe4b16c2a0" - integrity sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw== - dependencies: - is-map "^2.0.3" - is-set "^2.0.3" - is-weakmap "^2.0.2" - is-weakset "^2.0.3" - -which-typed-array@^1.1.16, which-typed-array@^1.1.18: - version "1.1.19" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.19.tgz#df03842e870b6b88e117524a4b364b6fc689f956" - integrity sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.8" - call-bound "^1.0.4" - for-each "^0.3.5" - get-proto "^1.0.1" - gopd "^1.2.0" - has-tostringtag "^1.0.2" - -which@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wildcard@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" - integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== - -word-wrap@^1.2.5, word-wrap@~1.2.3: - version "1.2.5" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" - integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== - -workbox-background-sync@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-background-sync/-/workbox-background-sync-6.6.1.tgz#08d603a33717ce663e718c30cc336f74909aff2f" - integrity sha512-trJd3ovpWCvzu4sW0E8rV3FUyIcC0W8G+AZ+VcqzzA890AsWZlUGOTSxIMmIHVusUw/FDq1HFWfy/kC/WTRqSg== - dependencies: - idb "^7.0.1" - workbox-core "6.6.1" - -workbox-broadcast-update@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-broadcast-update/-/workbox-broadcast-update-6.6.1.tgz#0fad9454cf8e4ace0c293e5617c64c75d8a8c61e" - integrity sha512-fBhffRdaANdeQ1V8s692R9l/gzvjjRtydBOvR6WCSB0BNE2BacA29Z4r9/RHd9KaXCPl6JTdI9q0bR25YKP8TQ== - dependencies: - workbox-core "6.6.1" - -workbox-build@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-build/-/workbox-build-6.6.1.tgz#6010e9ce550910156761448f2dbea8cfcf759cb0" - integrity sha512-INPgDx6aRycAugUixbKgiEQBWD0MPZqU5r0jyr24CehvNuLPSXp/wGOpdRJmts656lNiXwqV7dC2nzyrzWEDnw== - dependencies: - "@apideck/better-ajv-errors" "^0.3.1" - "@babel/core" "^7.11.1" - "@babel/preset-env" "^7.11.0" - "@babel/runtime" "^7.11.2" - "@rollup/plugin-babel" "^5.2.0" - "@rollup/plugin-node-resolve" "^11.2.1" - "@rollup/plugin-replace" "^2.4.1" - "@surma/rollup-plugin-off-main-thread" "^2.2.3" - ajv "^8.6.0" - common-tags "^1.8.0" - fast-json-stable-stringify "^2.1.0" - fs-extra "^9.0.1" - glob "^7.1.6" - lodash "^4.17.20" - pretty-bytes "^5.3.0" - rollup "^2.43.1" - rollup-plugin-terser "^7.0.0" - source-map "^0.8.0-beta.0" - stringify-object "^3.3.0" - strip-comments "^2.0.1" - tempy "^0.6.0" - upath "^1.2.0" - workbox-background-sync "6.6.1" - workbox-broadcast-update "6.6.1" - workbox-cacheable-response "6.6.1" - workbox-core "6.6.1" - workbox-expiration "6.6.1" - workbox-google-analytics "6.6.1" - workbox-navigation-preload "6.6.1" - workbox-precaching "6.6.1" - workbox-range-requests "6.6.1" - workbox-recipes "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - workbox-streams "6.6.1" - workbox-sw "6.6.1" - workbox-window "6.6.1" - -workbox-cacheable-response@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-cacheable-response/-/workbox-cacheable-response-6.6.1.tgz#284c2b86be3f4fd191970ace8c8e99797bcf58e9" - integrity sha512-85LY4veT2CnTCDxaVG7ft3NKaFbH6i4urZXgLiU4AiwvKqS2ChL6/eILiGRYXfZ6gAwDnh5RkuDbr/GMS4KSag== - dependencies: - workbox-core "6.6.1" - -workbox-core@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-core/-/workbox-core-6.6.1.tgz#7184776d4134c5ed2f086878c882728fc9084265" - integrity sha512-ZrGBXjjaJLqzVothoE12qTbVnOAjFrHDXpZe7coCb6q65qI/59rDLwuFMO4PcZ7jcbxY+0+NhUVztzR/CbjEFw== - -workbox-expiration@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-expiration/-/workbox-expiration-6.6.1.tgz#a841fa36676104426dbfb9da1ef6a630b4f93739" - integrity sha512-qFiNeeINndiOxaCrd2DeL1Xh1RFug3JonzjxUHc5WkvkD2u5abY3gZL1xSUNt3vZKsFFGGORItSjVTVnWAZO4A== - dependencies: - idb "^7.0.1" - workbox-core "6.6.1" - -workbox-google-analytics@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-google-analytics/-/workbox-google-analytics-6.6.1.tgz#a07a6655ab33d89d1b0b0a935ffa5dea88618c5d" - integrity sha512-1TjSvbFSLmkpqLcBsF7FuGqqeDsf+uAXO/pjiINQKg3b1GN0nBngnxLcXDYo1n/XxK4N7RaRrpRlkwjY/3ocuA== - dependencies: - workbox-background-sync "6.6.1" - workbox-core "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-navigation-preload@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-navigation-preload/-/workbox-navigation-preload-6.6.1.tgz#61a34fe125558dd88cf09237f11bd966504ea059" - integrity sha512-DQCZowCecO+wRoIxJI2V6bXWK6/53ff+hEXLGlQL4Rp9ZaPDLrgV/32nxwWIP7QpWDkVEtllTAK5h6cnhxNxDA== - dependencies: - workbox-core "6.6.1" - -workbox-precaching@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-precaching/-/workbox-precaching-6.6.1.tgz#dedeeba10a2d163d990bf99f1c2066ac0d1a19e2" - integrity sha512-K4znSJ7IKxCnCYEdhNkMr7X1kNh8cz+mFgx9v5jFdz1MfI84pq8C2zG+oAoeE5kFrUf7YkT5x4uLWBNg0DVZ5A== - dependencies: - workbox-core "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-range-requests@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-range-requests/-/workbox-range-requests-6.6.1.tgz#ddaf7e73af11d362fbb2f136a9063a4c7f507a39" - integrity sha512-4BDzk28govqzg2ZpX0IFkthdRmCKgAKreontYRC5YsAPB2jDtPNxqx3WtTXgHw1NZalXpcH/E4LqUa9+2xbv1g== - dependencies: - workbox-core "6.6.1" - -workbox-recipes@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-recipes/-/workbox-recipes-6.6.1.tgz#ea70d2b2b0b0bce8de0a9d94f274d4a688e69fae" - integrity sha512-/oy8vCSzromXokDA+X+VgpeZJvtuf8SkQ8KL0xmRivMgJZrjwM3c2tpKTJn6PZA6TsbxGs3Sc7KwMoZVamcV2g== - dependencies: - workbox-cacheable-response "6.6.1" - workbox-core "6.6.1" - workbox-expiration "6.6.1" - workbox-precaching "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-routing@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-routing/-/workbox-routing-6.6.1.tgz#cba9a1c7e0d1ea11e24b6f8c518840efdc94f581" - integrity sha512-j4ohlQvfpVdoR8vDYxTY9rA9VvxTHogkIDwGdJ+rb2VRZQ5vt1CWwUUZBeD/WGFAni12jD1HlMXvJ8JS7aBWTg== - dependencies: - workbox-core "6.6.1" - -workbox-strategies@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-strategies/-/workbox-strategies-6.6.1.tgz#38d0f0fbdddba97bd92e0c6418d0b1a2ccd5b8bf" - integrity sha512-WQLXkRnsk4L81fVPkkgon1rZNxnpdO5LsO+ws7tYBC6QQQFJVI6v98klrJEjFtZwzw/mB/HT5yVp7CcX0O+mrw== - dependencies: - workbox-core "6.6.1" - -workbox-streams@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-streams/-/workbox-streams-6.6.1.tgz#b2f7ba7b315c27a6e3a96a476593f99c5d227d26" - integrity sha512-maKG65FUq9e4BLotSKWSTzeF0sgctQdYyTMq529piEN24Dlu9b6WhrAfRpHdCncRS89Zi2QVpW5V33NX8PgH3Q== - dependencies: - workbox-core "6.6.1" - workbox-routing "6.6.1" - -workbox-sw@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-sw/-/workbox-sw-6.6.1.tgz#d4c4ca3125088e8b9fd7a748ed537fa0247bd72c" - integrity sha512-R7whwjvU2abHH/lR6kQTTXLHDFU2izht9kJOvBRYK65FbwutT4VvnUAJIgHvfWZ/fokrOPhfoWYoPCMpSgUKHQ== - -workbox-webpack-plugin@^6.4.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.1.tgz#4f81cc1ad4e5d2cd7477a86ba83c84ee2d187531" - integrity sha512-zpZ+ExFj9NmiI66cFEApyjk7hGsfJ1YMOaLXGXBoZf0v7Iu6hL0ZBe+83mnDq3YYWAfA3fnyFejritjOHkFcrA== - dependencies: - fast-json-stable-stringify "^2.1.0" - pretty-bytes "^5.4.1" - upath "^1.2.0" - webpack-sources "^1.4.3" - workbox-build "6.6.1" - -workbox-window@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/workbox-window/-/workbox-window-6.6.1.tgz#f22a394cbac36240d0dadcbdebc35f711bb7b89e" - integrity sha512-wil4nwOY58nTdCvif/KEZjQ2NP8uk3gGeRNy2jPBbzypU4BT4D9L8xiwbmDBpZlSgJd2xsT9FvSNU0gsxV51JQ== - dependencies: - "@types/trusted-types" "^2.0.2" - workbox-core "6.6.1" - -workerpool@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" - integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== - -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" - integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== - dependencies: - ansi-styles "^6.1.0" - string-width "^5.0.1" - strip-ansi "^7.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^7.4.6: - version "7.5.10" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" - integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== - -ws@^8.13.0: - version "8.18.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb" - integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - -yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - -yaml@^2.3.4: - version "2.7.0" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.7.0.tgz#aef9bb617a64c937a9a748803786ad8d3ffe1e98" - integrity sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA== - -yargs-parser@^20.2.2, yargs-parser@^20.2.9: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs-unparser@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zustand@^4.4.1: - version "4.5.6" - resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.6.tgz#6857d52af44874a79fb3408c9473f78367255c96" - integrity sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ== - dependencies: - use-sync-external-store "^1.2.2" - -zwitch@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7" - integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A== +# This file is generated by running "yarn install" inside your project. +# Manual changes might be lost - proceed with caution! + +__metadata: + version: 8 + cacheKey: 10c0 + +"@ampproject/remapping@npm:^2.2.0": + version: 2.3.0 + resolution: "@ampproject/remapping@npm:2.3.0" + dependencies: + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.24" + checksum: 10c0/81d63cca5443e0f0c72ae18b544cc28c7c0ec2cea46e7cb888bb0e0f411a1191d0d6b7af798d54e30777d8d1488b2ec0732aac2be342d3d7d3ffd271c6f489ed + languageName: node + linkType: hard + +"@babel/code-frame@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/code-frame@npm:7.27.1" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.27.1" + js-tokens: "npm:^4.0.0" + picocolors: "npm:^1.1.1" + checksum: 10c0/5dd9a18baa5fce4741ba729acc3a3272c49c25cb8736c4b18e113099520e7ef7b545a4096a26d600e4416157e63e87d66db46aa3fbf0a5f2286da2705c12da00 + languageName: node + linkType: hard + +"@babel/compat-data@npm:^7.27.2": + version: 7.28.0 + resolution: "@babel/compat-data@npm:7.28.0" + checksum: 10c0/c4e527302bcd61052423f757355a71c3bc62362bac13f7f130de16e439716f66091ff5bdecda418e8fa0271d4c725f860f0ee23ab7bf6e769f7a8bb16dfcb531 + languageName: node + linkType: hard + +"@babel/core@npm:^7.28.0": + version: 7.28.0 + resolution: "@babel/core@npm:7.28.0" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.27.1" + "@babel/generator": "npm:^7.28.0" + "@babel/helper-compilation-targets": "npm:^7.27.2" + "@babel/helper-module-transforms": "npm:^7.27.3" + "@babel/helpers": "npm:^7.27.6" + "@babel/parser": "npm:^7.28.0" + "@babel/template": "npm:^7.27.2" + "@babel/traverse": "npm:^7.28.0" + "@babel/types": "npm:^7.28.0" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/423302e7c721e73b1c096217880272e02020dfb697a55ccca60ad01bba90037015f84d0c20c6ce297cf33a19bb704bc5c2b3d3095f5284dfa592bd1de0b9e8c3 + languageName: node + linkType: hard + +"@babel/generator@npm:^7.28.0": + version: 7.28.0 + resolution: "@babel/generator@npm:7.28.0" + dependencies: + "@babel/parser": "npm:^7.28.0" + "@babel/types": "npm:^7.28.0" + "@jridgewell/gen-mapping": "npm:^0.3.12" + "@jridgewell/trace-mapping": "npm:^0.3.28" + jsesc: "npm:^3.0.2" + checksum: 10c0/1b3d122268ea3df50fde707ad864d9a55c72621357d5cebb972db3dd76859c45810c56e16ad23123f18f80cc2692f5a015d2858361300f0f224a05dc43d36a92 + languageName: node + linkType: hard + +"@babel/helper-compilation-targets@npm:^7.27.2": + version: 7.27.2 + resolution: "@babel/helper-compilation-targets@npm:7.27.2" + dependencies: + "@babel/compat-data": "npm:^7.27.2" + "@babel/helper-validator-option": "npm:^7.27.1" + browserslist: "npm:^4.24.0" + lru-cache: "npm:^5.1.1" + semver: "npm:^6.3.1" + checksum: 10c0/f338fa00dcfea931804a7c55d1a1c81b6f0a09787e528ec580d5c21b3ecb3913f6cb0f361368973ce953b824d910d3ac3e8a8ee15192710d3563826447193ad1 + languageName: node + linkType: hard + +"@babel/helper-globals@npm:^7.28.0": + version: 7.28.0 + resolution: "@babel/helper-globals@npm:7.28.0" + checksum: 10c0/5a0cd0c0e8c764b5f27f2095e4243e8af6fa145daea2b41b53c0c1414fe6ff139e3640f4e2207ae2b3d2153a1abd346f901c26c290ee7cb3881dd922d4ee9232 + languageName: node + linkType: hard + +"@babel/helper-module-imports@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/helper-module-imports@npm:7.27.1" + dependencies: + "@babel/traverse": "npm:^7.27.1" + "@babel/types": "npm:^7.27.1" + checksum: 10c0/e00aace096e4e29290ff8648455c2bc4ed982f0d61dbf2db1b5e750b9b98f318bf5788d75a4f974c151bd318fd549e81dbcab595f46b14b81c12eda3023f51e8 + languageName: node + linkType: hard + +"@babel/helper-module-transforms@npm:^7.27.3": + version: 7.27.3 + resolution: "@babel/helper-module-transforms@npm:7.27.3" + dependencies: + "@babel/helper-module-imports": "npm:^7.27.1" + "@babel/helper-validator-identifier": "npm:^7.27.1" + "@babel/traverse": "npm:^7.27.3" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/fccb4f512a13b4c069af51e1b56b20f54024bcf1591e31e978a30f3502567f34f90a80da6a19a6148c249216292a8074a0121f9e52602510ef0f32dbce95ca01 + languageName: node + linkType: hard + +"@babel/helper-plugin-utils@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/helper-plugin-utils@npm:7.27.1" + checksum: 10c0/94cf22c81a0c11a09b197b41ab488d416ff62254ce13c57e62912c85700dc2e99e555225787a4099ff6bae7a1812d622c80fbaeda824b79baa10a6c5ac4cf69b + languageName: node + linkType: hard + +"@babel/helper-string-parser@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/helper-string-parser@npm:7.27.1" + checksum: 10c0/8bda3448e07b5583727c103560bcf9c4c24b3c1051a4c516d4050ef69df37bb9a4734a585fe12725b8c2763de0a265aa1e909b485a4e3270b7cfd3e4dbe4b602 + languageName: node + linkType: hard + +"@babel/helper-validator-identifier@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/helper-validator-identifier@npm:7.27.1" + checksum: 10c0/c558f11c4871d526498e49d07a84752d1800bf72ac0d3dad100309a2eaba24efbf56ea59af5137ff15e3a00280ebe588560534b0e894a4750f8b1411d8f78b84 + languageName: node + linkType: hard + +"@babel/helper-validator-option@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/helper-validator-option@npm:7.27.1" + checksum: 10c0/6fec5f006eba40001a20f26b1ef5dbbda377b7b68c8ad518c05baa9af3f396e780bdfded24c4eef95d14bb7b8fd56192a6ed38d5d439b97d10efc5f1a191d148 + languageName: node + linkType: hard + +"@babel/helpers@npm:^7.27.6": + version: 7.28.2 + resolution: "@babel/helpers@npm:7.28.2" + dependencies: + "@babel/template": "npm:^7.27.2" + "@babel/types": "npm:^7.28.2" + checksum: 10c0/f3e7b21517e2699c4ca193663ecfb1bf1b2ae2762d8ba4a9f1786feaca0d6984537fc60bf2206e92c43640a6dada6b438f523cc1ad78610d0151aeb061b37f63 + languageName: node + linkType: hard + +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.0": + version: 7.28.0 + resolution: "@babel/parser@npm:7.28.0" + dependencies: + "@babel/types": "npm:^7.28.0" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/c2ef81d598990fa949d1d388429df327420357cb5200271d0d0a2784f1e6d54afc8301eb8bdf96d8f6c77781e402da93c7dc07980fcc136ac5b9d5f1fce701b5 + languageName: node + linkType: hard + +"@babel/plugin-transform-react-jsx-self@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/plugin-transform-react-jsx-self@npm:7.27.1" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.27.1" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/00a4f917b70a608f9aca2fb39aabe04a60aa33165a7e0105fd44b3a8531630eb85bf5572e9f242f51e6ad2fa38c2e7e780902176c863556c58b5ba6f6e164031 + languageName: node + linkType: hard + +"@babel/plugin-transform-react-jsx-source@npm:^7.27.1": + version: 7.27.1 + resolution: "@babel/plugin-transform-react-jsx-source@npm:7.27.1" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.27.1" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/5e67b56c39c4d03e59e03ba80692b24c5a921472079b63af711b1d250fc37c1733a17069b63537f750f3e937ec44a42b1ee6a46cd23b1a0df5163b17f741f7f2 + languageName: node + linkType: hard + +"@babel/template@npm:^7.27.2": + version: 7.27.2 + resolution: "@babel/template@npm:7.27.2" + dependencies: + "@babel/code-frame": "npm:^7.27.1" + "@babel/parser": "npm:^7.27.2" + "@babel/types": "npm:^7.27.1" + checksum: 10c0/ed9e9022651e463cc5f2cc21942f0e74544f1754d231add6348ff1b472985a3b3502041c0be62dc99ed2d12cfae0c51394bf827452b98a2f8769c03b87aadc81 + languageName: node + linkType: hard + +"@babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.27.3, @babel/traverse@npm:^7.28.0": + version: 7.28.0 + resolution: "@babel/traverse@npm:7.28.0" + dependencies: + "@babel/code-frame": "npm:^7.27.1" + "@babel/generator": "npm:^7.28.0" + "@babel/helper-globals": "npm:^7.28.0" + "@babel/parser": "npm:^7.28.0" + "@babel/template": "npm:^7.27.2" + "@babel/types": "npm:^7.28.0" + debug: "npm:^4.3.1" + checksum: 10c0/32794402457827ac558173bcebdcc0e3a18fa339b7c41ca35621f9f645f044534d91bb923ff385f5f960f2e495f56ce18d6c7b0d064d2f0ccb55b285fa6bc7b9 + languageName: node + linkType: hard + +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.27.1, @babel/types@npm:^7.28.0, @babel/types@npm:^7.28.2": + version: 7.28.2 + resolution: "@babel/types@npm:7.28.2" + dependencies: + "@babel/helper-string-parser": "npm:^7.27.1" + "@babel/helper-validator-identifier": "npm:^7.27.1" + checksum: 10c0/24b11c9368e7e2c291fe3c1bcd1ed66f6593a3975f479cbb9dd7b8c8d8eab8a962b0d2fca616c043396ce82500ac7d23d594fbbbd013828182c01596370a0b10 + languageName: node + linkType: hard + +"@choojs/findup@npm:^0.2.0": + version: 0.2.1 + resolution: "@choojs/findup@npm:0.2.1" + dependencies: + commander: "npm:^2.15.1" + bin: + findup: bin/findup.js + checksum: 10c0/0aa58fde413a4cbfd7c67551df1338b638594c46dfa96aa1d79065b88f944a4465d95f3540f4e864130c532182a20cbdef3c2817d20f51253c94096fe57e970f + languageName: node + linkType: hard + +"@esbuild/aix-ppc64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/aix-ppc64@npm:0.25.8" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/android-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/android-arm64@npm:0.25.8" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/android-arm@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/android-arm@npm:0.25.8" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@esbuild/android-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/android-x64@npm:0.25.8" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/darwin-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/darwin-arm64@npm:0.25.8" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/darwin-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/darwin-x64@npm:0.25.8" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/freebsd-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/freebsd-arm64@npm:0.25.8" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/freebsd-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/freebsd-x64@npm:0.25.8" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/linux-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-arm64@npm:0.25.8" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/linux-arm@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-arm@npm:0.25.8" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@esbuild/linux-ia32@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-ia32@npm:0.25.8" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + +"@esbuild/linux-loong64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-loong64@npm:0.25.8" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + +"@esbuild/linux-mips64el@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-mips64el@npm:0.25.8" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + +"@esbuild/linux-ppc64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-ppc64@npm:0.25.8" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/linux-riscv64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-riscv64@npm:0.25.8" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + +"@esbuild/linux-s390x@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-s390x@npm:0.25.8" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + +"@esbuild/linux-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/linux-x64@npm:0.25.8" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/netbsd-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/netbsd-arm64@npm:0.25.8" + conditions: os=netbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/netbsd-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/netbsd-x64@npm:0.25.8" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/openbsd-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/openbsd-arm64@npm:0.25.8" + conditions: os=openbsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/openbsd-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/openbsd-x64@npm:0.25.8" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/openharmony-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/openharmony-arm64@npm:0.25.8" + conditions: os=openharmony & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/sunos-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/sunos-x64@npm:0.25.8" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/win32-arm64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/win32-arm64@npm:0.25.8" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/win32-ia32@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/win32-ia32@npm:0.25.8" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@esbuild/win32-x64@npm:0.25.8": + version: 0.25.8 + resolution: "@esbuild/win32-x64@npm:0.25.8" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@funcnodes/plugin-custom-renders@workspace:.": + version: 0.0.0-use.local + resolution: "@funcnodes/plugin-custom-renders@workspace:." + dependencies: + "@linkdlab/funcnodes-react-flow-plugin": "npm:^1.0.1" + "@types/plotly.js": "npm:^3" + "@types/react": "npm:^19.0.0" + "@types/react-plotly.js": "npm:^2" + "@vitejs/plugin-react": "npm:^4.0.0" + plotly.js: "npm:^3.1.0" + react: "npm:^19.1.1" + react-plotly.js: "npm:^2.6.0" + typescript: "npm:^5.0.0" + vite: "npm:^7.0.0" + vite-plugin-dts: "npm:^4.0.0" + peerDependencies: + "@linkdlab/funcnodes_react_flow": ">=1.0.0" + react: ^19.0.0 + languageName: unknown + linkType: soft + +"@isaacs/balanced-match@npm:^4.0.1": + version: 4.0.1 + resolution: "@isaacs/balanced-match@npm:4.0.1" + checksum: 10c0/7da011805b259ec5c955f01cee903da72ad97c5e6f01ca96197267d3f33103d5b2f8a1af192140f3aa64526c593c8d098ae366c2b11f7f17645d12387c2fd420 + languageName: node + linkType: hard + +"@isaacs/brace-expansion@npm:^5.0.0": + version: 5.0.0 + resolution: "@isaacs/brace-expansion@npm:5.0.0" + dependencies: + "@isaacs/balanced-match": "npm:^4.0.1" + checksum: 10c0/b4d4812f4be53afc2c5b6c545001ff7a4659af68d4484804e9d514e183d20269bb81def8682c01a22b17c4d6aed14292c8494f7d2ac664e547101c1a905aa977 + languageName: node + linkType: hard + +"@isaacs/cliui@npm:^8.0.2": + version: 8.0.2 + resolution: "@isaacs/cliui@npm:8.0.2" + dependencies: + string-width: "npm:^5.1.2" + string-width-cjs: "npm:string-width@^4.2.0" + strip-ansi: "npm:^7.0.1" + strip-ansi-cjs: "npm:strip-ansi@^6.0.1" + wrap-ansi: "npm:^8.1.0" + wrap-ansi-cjs: "npm:wrap-ansi@^7.0.0" + checksum: 10c0/b1bf42535d49f11dc137f18d5e4e63a28c5569de438a221c369483731e9dac9fb797af554e8bf02b6192d1e5eba6e6402cf93900c3d0ac86391d00d04876789e + languageName: node + linkType: hard + +"@isaacs/fs-minipass@npm:^4.0.0": + version: 4.0.1 + resolution: "@isaacs/fs-minipass@npm:4.0.1" + dependencies: + minipass: "npm:^7.0.4" + checksum: 10c0/c25b6dc1598790d5b55c0947a9b7d111cfa92594db5296c3b907e2f533c033666f692a3939eadac17b1c7c40d362d0b0635dc874cbfe3e70db7c2b07cc97a5d2 + languageName: node + linkType: hard + +"@jridgewell/gen-mapping@npm:^0.3.12, @jridgewell/gen-mapping@npm:^0.3.5": + version: 0.3.12 + resolution: "@jridgewell/gen-mapping@npm:0.3.12" + dependencies: + "@jridgewell/sourcemap-codec": "npm:^1.5.0" + "@jridgewell/trace-mapping": "npm:^0.3.24" + checksum: 10c0/32f771ae2467e4d440be609581f7338d786d3d621bac3469e943b9d6d116c23c4becb36f84898a92bbf2f3c0511365c54a945a3b86a83141547a2a360a5ec0c7 + languageName: node + linkType: hard + +"@jridgewell/resolve-uri@npm:^3.1.0": + version: 3.1.2 + resolution: "@jridgewell/resolve-uri@npm:3.1.2" + checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e + languageName: node + linkType: hard + +"@jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0": + version: 1.5.4 + resolution: "@jridgewell/sourcemap-codec@npm:1.5.4" + checksum: 10c0/c5aab3e6362a8dd94ad80ab90845730c825fc4c8d9cf07ebca7a2eb8a832d155d62558800fc41d42785f989ddbb21db6df004d1786e8ecb65e428ab8dff71309 + languageName: node + linkType: hard + +"@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.28": + version: 0.3.29 + resolution: "@jridgewell/trace-mapping@npm:0.3.29" + dependencies: + "@jridgewell/resolve-uri": "npm:^3.1.0" + "@jridgewell/sourcemap-codec": "npm:^1.4.14" + checksum: 10c0/fb547ba31658c4d74eb17e7389f4908bf7c44cef47acb4c5baa57289daf68e6fe53c639f41f751b3923aca67010501264f70e7b49978ad1f040294b22c37b333 + languageName: node + linkType: hard + +"@linkdlab/funcnodes-react-flow-plugin@npm:^1.0.1": + version: 1.0.1 + resolution: "@linkdlab/funcnodes-react-flow-plugin@npm:1.0.1" + peerDependencies: + "@linkdlab/funcnodes_react_flow": "*" + react: ^19.0 + react-dom: ^19.0 + checksum: 10c0/47b325053500d8f784f6392bcddec0048b61da8662a4fa50e8624f3eb3fa6977315d325beeaa6775977bc99b5d5e405d86aab62fa7b9b99886a44197cb568f19 + languageName: node + linkType: hard + +"@mapbox/geojson-rewind@npm:^0.5.2": + version: 0.5.2 + resolution: "@mapbox/geojson-rewind@npm:0.5.2" + dependencies: + get-stream: "npm:^6.0.1" + minimist: "npm:^1.2.6" + bin: + geojson-rewind: geojson-rewind + checksum: 10c0/631f89ba5b656cb1e02197c242b231f98da0afb96815fa26481497176d6bd5f2aac77af4950da91c954094694acbc26382bd3d38146705737e8ff06442d95a12 + languageName: node + linkType: hard + +"@mapbox/geojson-types@npm:^1.0.2": + version: 1.0.2 + resolution: "@mapbox/geojson-types@npm:1.0.2" + checksum: 10c0/aa0a2cb95a358d8756ab5aa70356bcbd6f554a4571703a88a09e7db6580061d6ef4054db5fe3ecb2817c383b8b5433746a8f46712dc606b32063f73b154f99fc + languageName: node + linkType: hard + +"@mapbox/jsonlint-lines-primitives@npm:^2.0.2, @mapbox/jsonlint-lines-primitives@npm:~2.0.2": + version: 2.0.2 + resolution: "@mapbox/jsonlint-lines-primitives@npm:2.0.2" + checksum: 10c0/5814e42fc453700132f93ea742aabcef9a3c98d9bf17d4c1106f82d1dcd91bbc93052e66e29014323b9b2a41b020c743d897e4a96cc4ed2f734482d587d8c2b2 + languageName: node + linkType: hard + +"@mapbox/mapbox-gl-supported@npm:^1.5.0": + version: 1.5.0 + resolution: "@mapbox/mapbox-gl-supported@npm:1.5.0" + peerDependencies: + mapbox-gl: ">=0.32.1 <2.0.0" + checksum: 10c0/5b7712e8b546e598dc5152632504cad53081211b64ddc4447825840ddca703275bc36599167b9550ab906ca8a9554936bcdae562073fdef24b8d38d78ee262fb + languageName: node + linkType: hard + +"@mapbox/point-geometry@npm:0.1.0, @mapbox/point-geometry@npm:^0.1.0, @mapbox/point-geometry@npm:~0.1.0": + version: 0.1.0 + resolution: "@mapbox/point-geometry@npm:0.1.0" + checksum: 10c0/e4d861908574cb3165f5ad37b000416ebc90a2d6b3e0073191e6b6dc5074a6159d84ac5114d78557399bb429134f0d05bfb529e7902d1cb2b36d722b72ab662c + languageName: node + linkType: hard + +"@mapbox/tiny-sdf@npm:^1.1.1": + version: 1.2.5 + resolution: "@mapbox/tiny-sdf@npm:1.2.5" + checksum: 10c0/de0252388a628ddb491c986c715f0b63ca6a74f5dac16d3e51eb75a21935a31e34fba5db47c81cc59a462d782021fc68b2e3cc119b2d6cabe15d31e311674d6c + languageName: node + linkType: hard + +"@mapbox/tiny-sdf@npm:^2.0.6": + version: 2.0.7 + resolution: "@mapbox/tiny-sdf@npm:2.0.7" + checksum: 10c0/f117d8537ee4b5ee2deed54b9b426792744c15a649681305b4fb21b608b7c6a815015f015cd612923cc8efa30424d0440abfc1af2c85eda00a726024bb4f3ede + languageName: node + linkType: hard + +"@mapbox/unitbezier@npm:^0.0.0": + version: 0.0.0 + resolution: "@mapbox/unitbezier@npm:0.0.0" + checksum: 10c0/af1943ebeb7532317a5cedfc38d0e580b7bd76cc5c43988df65541d377f3e3fa7d68c201dda20f5239213a4bc81ec5d13146354107196ffc4f14d6f39b8343b5 + languageName: node + linkType: hard + +"@mapbox/unitbezier@npm:^0.0.1": + version: 0.0.1 + resolution: "@mapbox/unitbezier@npm:0.0.1" + checksum: 10c0/97f39d4fbdf9579d0a1a8be0d536eb113a805d36459e774014f488a7ca6cc9dcfc77ab7a2ebe5af395ad50da6efb4dbf2566de0db3f62b6b8675cddbace8f86a + languageName: node + linkType: hard + +"@mapbox/vector-tile@npm:^1.3.1": + version: 1.3.1 + resolution: "@mapbox/vector-tile@npm:1.3.1" + dependencies: + "@mapbox/point-geometry": "npm:~0.1.0" + checksum: 10c0/ffb271b95c383923768295e72bdf95e428efb906434b864ea04d3853a8373cf0de19f039bd6615f7cf018fbfb4dbf4599f27ebaa86c2b7b09f7d69187f8d7da1 + languageName: node + linkType: hard + +"@mapbox/whoots-js@npm:^3.1.0": + version: 3.1.0 + resolution: "@mapbox/whoots-js@npm:3.1.0" + checksum: 10c0/fe9e959a9049bcbc2c05d9d1156e050191ad697a1bd95e41cdfa069051ff1d6f2930ced234a8d68d5a0bf78091feab30d76497418ec800d90f0aac8691fe4fd4 + languageName: node + linkType: hard + +"@maplibre/maplibre-gl-style-spec@npm:^20.3.1": + version: 20.4.0 + resolution: "@maplibre/maplibre-gl-style-spec@npm:20.4.0" + dependencies: + "@mapbox/jsonlint-lines-primitives": "npm:~2.0.2" + "@mapbox/unitbezier": "npm:^0.0.1" + json-stringify-pretty-compact: "npm:^4.0.0" + minimist: "npm:^1.2.8" + quickselect: "npm:^2.0.0" + rw: "npm:^1.3.3" + tinyqueue: "npm:^3.0.0" + bin: + gl-style-format: dist/gl-style-format.mjs + gl-style-migrate: dist/gl-style-migrate.mjs + gl-style-validate: dist/gl-style-validate.mjs + checksum: 10c0/3a0bfc72af3a787005a0bc7364eb7f3e9575e5d6b86c78403130873a6333a9a37199c5aca406ac9290e166c751d2b2471c8c8ba78ce31ebd0278e3fc721bad4b + languageName: node + linkType: hard + +"@microsoft/api-extractor-model@npm:7.30.7": + version: 7.30.7 + resolution: "@microsoft/api-extractor-model@npm:7.30.7" + dependencies: + "@microsoft/tsdoc": "npm:~0.15.1" + "@microsoft/tsdoc-config": "npm:~0.17.1" + "@rushstack/node-core-library": "npm:5.14.0" + checksum: 10c0/e6e5d194f79efe0be47655a9f32e18f807ae6cffeddcd59795f442706d16d241e83b186a4943f252d9fa0f927dd431f270645e3f9fcdf978f85769a5314995ca + languageName: node + linkType: hard + +"@microsoft/api-extractor@npm:^7.50.1": + version: 7.52.10 + resolution: "@microsoft/api-extractor@npm:7.52.10" + dependencies: + "@microsoft/api-extractor-model": "npm:7.30.7" + "@microsoft/tsdoc": "npm:~0.15.1" + "@microsoft/tsdoc-config": "npm:~0.17.1" + "@rushstack/node-core-library": "npm:5.14.0" + "@rushstack/rig-package": "npm:0.5.3" + "@rushstack/terminal": "npm:0.15.4" + "@rushstack/ts-command-line": "npm:5.0.2" + lodash: "npm:~4.17.15" + minimatch: "npm:10.0.3" + resolve: "npm:~1.22.1" + semver: "npm:~7.5.4" + source-map: "npm:~0.6.1" + typescript: "npm:5.8.2" + bin: + api-extractor: bin/api-extractor + checksum: 10c0/4bf45d24b672d36b9035d6ac025bdbe11979de36756b8871986166f7dac108dd70f57356e8746a882d55622ac5ae2a4ea8ac66cda1eefb37cab088ee660eec4a + languageName: node + linkType: hard + +"@microsoft/tsdoc-config@npm:~0.17.1": + version: 0.17.1 + resolution: "@microsoft/tsdoc-config@npm:0.17.1" + dependencies: + "@microsoft/tsdoc": "npm:0.15.1" + ajv: "npm:~8.12.0" + jju: "npm:~1.4.0" + resolve: "npm:~1.22.2" + checksum: 10c0/a686355796f492f27af17e2a17d615221309caf4d9f9047a5a8f17f8625c467c4c81e2a7923ddafd71b892631d5e5013c4b8cc49c5867d3cc1d260fd90c1413d + languageName: node + linkType: hard + +"@microsoft/tsdoc@npm:0.15.1, @microsoft/tsdoc@npm:~0.15.1": + version: 0.15.1 + resolution: "@microsoft/tsdoc@npm:0.15.1" + checksum: 10c0/09948691fac56c45a0d1920de478d66a30371a325bd81addc92eea5654d95106ce173c440fea1a1bd5bb95b3a544b6d4def7bb0b5a846c05d043575d8369a20c + languageName: node + linkType: hard + +"@npmcli/agent@npm:^3.0.0": + version: 3.0.0 + resolution: "@npmcli/agent@npm:3.0.0" + dependencies: + agent-base: "npm:^7.1.0" + http-proxy-agent: "npm:^7.0.0" + https-proxy-agent: "npm:^7.0.1" + lru-cache: "npm:^10.0.1" + socks-proxy-agent: "npm:^8.0.3" + checksum: 10c0/efe37b982f30740ee77696a80c196912c274ecd2cb243bc6ae7053a50c733ce0f6c09fda085145f33ecf453be19654acca74b69e81eaad4c90f00ccffe2f9271 + languageName: node + linkType: hard + +"@npmcli/fs@npm:^4.0.0": + version: 4.0.0 + resolution: "@npmcli/fs@npm:4.0.0" + dependencies: + semver: "npm:^7.3.5" + checksum: 10c0/c90935d5ce670c87b6b14fab04a965a3b8137e585f8b2a6257263bd7f97756dd736cb165bb470e5156a9e718ecd99413dccc54b1138c1a46d6ec7cf325982fe5 + languageName: node + linkType: hard + +"@pkgjs/parseargs@npm:^0.11.0": + version: 0.11.0 + resolution: "@pkgjs/parseargs@npm:0.11.0" + checksum: 10c0/5bd7576bb1b38a47a7fc7b51ac9f38748e772beebc56200450c4a817d712232b8f1d3ef70532c80840243c657d491cf6a6be1e3a214cff907645819fdc34aadd + languageName: node + linkType: hard + +"@plotly/d3-sankey-circular@npm:0.33.1": + version: 0.33.1 + resolution: "@plotly/d3-sankey-circular@npm:0.33.1" + dependencies: + d3-array: "npm:^1.2.1" + d3-collection: "npm:^1.0.4" + d3-shape: "npm:^1.2.0" + elementary-circuits-directed-graph: "npm:^1.0.4" + checksum: 10c0/7a1c7caa4297099a0403ad1e2c4a5446f8239fce4b9a4ac44c5bc144d56e4c0eb0761dea05993db8b17a85934f9f1723ded2e008e6096d0c226b481313e6fe29 + languageName: node + linkType: hard + +"@plotly/d3-sankey@npm:0.7.2": + version: 0.7.2 + resolution: "@plotly/d3-sankey@npm:0.7.2" + dependencies: + d3-array: "npm:1" + d3-collection: "npm:1" + d3-shape: "npm:^1.2.0" + checksum: 10c0/d3443749f9e7ea692ac1f19c740bac40e25df293af738164d4e313bcc6fd27d35822d5f83530cc9c1c1472d0be49e409edafbbf1ca58164aeca0ec4fe2a392e5 + languageName: node + linkType: hard + +"@plotly/d3@npm:3.8.2": + version: 3.8.2 + resolution: "@plotly/d3@npm:3.8.2" + checksum: 10c0/e578fd3d3850b2c2671e0fcc856676925e81da79f25c940cf2160dc19fe846924181c7c7ea0f03d499d3d4d1ff552d36506a828f5a6482db5707fb2bc4a29ebc + languageName: node + linkType: hard + +"@plotly/mapbox-gl@npm:1.13.4": + version: 1.13.4 + resolution: "@plotly/mapbox-gl@npm:1.13.4" + dependencies: + "@mapbox/geojson-rewind": "npm:^0.5.2" + "@mapbox/geojson-types": "npm:^1.0.2" + "@mapbox/jsonlint-lines-primitives": "npm:^2.0.2" + "@mapbox/mapbox-gl-supported": "npm:^1.5.0" + "@mapbox/point-geometry": "npm:^0.1.0" + "@mapbox/tiny-sdf": "npm:^1.1.1" + "@mapbox/unitbezier": "npm:^0.0.0" + "@mapbox/vector-tile": "npm:^1.3.1" + "@mapbox/whoots-js": "npm:^3.1.0" + csscolorparser: "npm:~1.0.3" + earcut: "npm:^2.2.2" + geojson-vt: "npm:^3.2.1" + gl-matrix: "npm:^3.2.1" + grid-index: "npm:^1.1.0" + murmurhash-js: "npm:^1.0.0" + pbf: "npm:^3.2.1" + potpack: "npm:^1.0.1" + quickselect: "npm:^2.0.0" + rw: "npm:^1.3.3" + supercluster: "npm:^7.1.0" + tinyqueue: "npm:^2.0.3" + vt-pbf: "npm:^3.1.1" + checksum: 10c0/e528983335ef8d8ef564e2c0b21a98888b2220750d069679a334d91a43487d12dbbaaf6c798e47ba42f8a5d17dd996207cb1f2ed081d00705631d8cbfcba0a44 + languageName: node + linkType: hard + +"@plotly/point-cluster@npm:^3.1.9": + version: 3.1.9 + resolution: "@plotly/point-cluster@npm:3.1.9" + dependencies: + array-bounds: "npm:^1.0.1" + binary-search-bounds: "npm:^2.0.4" + clamp: "npm:^1.0.1" + defined: "npm:^1.0.0" + dtype: "npm:^2.0.0" + flatten-vertex-data: "npm:^1.0.2" + is-obj: "npm:^1.0.1" + math-log2: "npm:^1.0.1" + parse-rect: "npm:^1.2.0" + pick-by-alias: "npm:^1.2.0" + checksum: 10c0/3e451b1b04f1ce9c2ff1dcc2adbbc5d56bebc419f49c903eb215fa6973315d7f279fe9ebffea6f7ff0c09ba1c21bfe393bb74f54d0e5522a2d20bf43b7f35c38 + languageName: node + linkType: hard + +"@plotly/regl@npm:^2.1.2": + version: 2.1.2 + resolution: "@plotly/regl@npm:2.1.2" + checksum: 10c0/84043676e5372113200deaca890829e457b95a0d6171342479d211264480b5fa2db81579f6082a1236755b0bd362dc0e9bfa4db7bc45cc6c50888e18a5ebbae6 + languageName: node + linkType: hard + +"@rolldown/pluginutils@npm:1.0.0-beta.27": + version: 1.0.0-beta.27 + resolution: "@rolldown/pluginutils@npm:1.0.0-beta.27" + checksum: 10c0/9658f235b345201d4f6bfb1f32da9754ca164f892d1cb68154fe5f53c1df42bd675ecd409836dff46884a7847d6c00bdc38af870f7c81e05bba5c2645eb4ab9c + languageName: node + linkType: hard + +"@rollup/pluginutils@npm:^5.1.4": + version: 5.2.0 + resolution: "@rollup/pluginutils@npm:5.2.0" + dependencies: + "@types/estree": "npm:^1.0.0" + estree-walker: "npm:^2.0.2" + picomatch: "npm:^4.0.2" + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + checksum: 10c0/794890d512751451bcc06aa112366ef47ea8f9125dac49b1abf72ff8b079518b09359de9c60a013b33266541634e765ae61839c749fae0edb59a463418665c55 + languageName: node + linkType: hard + +"@rollup/rollup-android-arm-eabi@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.46.2" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@rollup/rollup-android-arm64@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-android-arm64@npm:4.46.2" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-arm64@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-darwin-arm64@npm:4.46.2" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-x64@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-darwin-x64@npm:4.46.2" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-arm64@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.46.2" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-x64@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-freebsd-x64@npm:4.46.2" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-gnueabihf@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.46.2" + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-musleabihf@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.46.2" + conditions: os=linux & cpu=arm & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.46.2" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-musl@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.46.2" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-loongarch64-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-loongarch64-gnu@npm:4.46.2" + conditions: os=linux & cpu=loong64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-ppc64-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.46.2" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.46.2" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-musl@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.46.2" + conditions: os=linux & cpu=riscv64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-s390x-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.46.2" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-gnu@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.46.2" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-musl@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.46.2" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-win32-arm64-msvc@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.46.2" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-win32-ia32-msvc@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.46.2" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@rollup/rollup-win32-x64-msvc@npm:4.46.2": + version: 4.46.2 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.46.2" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@rushstack/node-core-library@npm:5.14.0": + version: 5.14.0 + resolution: "@rushstack/node-core-library@npm:5.14.0" + dependencies: + ajv: "npm:~8.13.0" + ajv-draft-04: "npm:~1.0.0" + ajv-formats: "npm:~3.0.1" + fs-extra: "npm:~11.3.0" + import-lazy: "npm:~4.0.0" + jju: "npm:~1.4.0" + resolve: "npm:~1.22.1" + semver: "npm:~7.5.4" + peerDependencies: + "@types/node": "*" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 10c0/1312c4e04e7e3319d03a5959b9bb09d5fc4f9fc3484b39192a85eefc8f30635a5689c4c08c86d8fe4f5817a0445fa00c0faf444ca3f72df3496c5651a000ebd4 + languageName: node + linkType: hard + +"@rushstack/rig-package@npm:0.5.3": + version: 0.5.3 + resolution: "@rushstack/rig-package@npm:0.5.3" + dependencies: + resolve: "npm:~1.22.1" + strip-json-comments: "npm:~3.1.1" + checksum: 10c0/ef0b0115b60007f965b875f671019ac7fc26592f6bf7d7b40fa8c68e8dc37e9f7dcda3b5533b489ebf04d28a182dc60987bfd365a8d4173c73d482b270647741 + languageName: node + linkType: hard + +"@rushstack/terminal@npm:0.15.4": + version: 0.15.4 + resolution: "@rushstack/terminal@npm:0.15.4" + dependencies: + "@rushstack/node-core-library": "npm:5.14.0" + supports-color: "npm:~8.1.1" + peerDependencies: + "@types/node": "*" + peerDependenciesMeta: + "@types/node": + optional: true + checksum: 10c0/058c92cc0e70b6038339d32a0ab15014a1f3cd267a3e3e3ef416f8f8698b470294eae9cf6d9c205bb3a3dd0598cceeb73f01d933e0b8346db56385290cbde90c + languageName: node + linkType: hard + +"@rushstack/ts-command-line@npm:5.0.2": + version: 5.0.2 + resolution: "@rushstack/ts-command-line@npm:5.0.2" + dependencies: + "@rushstack/terminal": "npm:0.15.4" + "@types/argparse": "npm:1.0.38" + argparse: "npm:~1.0.9" + string-argv: "npm:~0.3.1" + checksum: 10c0/b6c08ec8309164c2fa5b85804d1a23a98ea8f6348499378e0561565f34bdff0ba0d605c8fc5c7ad704b7fc0f28fd3933b226fb6349362b4d8b7d944866c6d874 + languageName: node + linkType: hard + +"@turf/area@npm:^7.1.0": + version: 7.2.0 + resolution: "@turf/area@npm:7.2.0" + dependencies: + "@turf/helpers": "npm:^7.2.0" + "@turf/meta": "npm:^7.2.0" + "@types/geojson": "npm:^7946.0.10" + tslib: "npm:^2.8.1" + checksum: 10c0/4a7dc2ff92e84bf9b46de349eb227056c53506530021358d1a03ca622e6ba6685f592ce59a9a770ec564d99a7c4156179e9e733e5ebce4e35f5151fd959b1c57 + languageName: node + linkType: hard + +"@turf/bbox@npm:^7.1.0": + version: 7.2.0 + resolution: "@turf/bbox@npm:7.2.0" + dependencies: + "@turf/helpers": "npm:^7.2.0" + "@turf/meta": "npm:^7.2.0" + "@types/geojson": "npm:^7946.0.10" + tslib: "npm:^2.8.1" + checksum: 10c0/766d59d5f75c272481e971cd4004e139962607e8f34391b2abfb15bb34f9544a0479ceb14772565e005e4a12fdd82adf0d440ab1c9e0decbde6de50a5706db43 + languageName: node + linkType: hard + +"@turf/centroid@npm:^7.1.0": + version: 7.2.0 + resolution: "@turf/centroid@npm:7.2.0" + dependencies: + "@turf/helpers": "npm:^7.2.0" + "@turf/meta": "npm:^7.2.0" + "@types/geojson": "npm:^7946.0.10" + tslib: "npm:^2.8.1" + checksum: 10c0/afdf72cbd140337638528055c509cc76c7839d3b0d6d0379d9bb1d9d04db4af840f1c17855dff6202df76072e87b2d9f02d1cd571f63a5ac704bd3a62c235afd + languageName: node + linkType: hard + +"@turf/helpers@npm:^7.2.0": + version: 7.2.0 + resolution: "@turf/helpers@npm:7.2.0" + dependencies: + "@types/geojson": "npm:^7946.0.10" + tslib: "npm:^2.8.1" + checksum: 10c0/4d6f57164cca00ec7a18e2d3c0200d0274e4ab2b6b3201c6a867b867d899f3f618a82ae242617d467efb04f32740cec150ae06a0e07ee39318397ebc34914687 + languageName: node + linkType: hard + +"@turf/meta@npm:^7.2.0": + version: 7.2.0 + resolution: "@turf/meta@npm:7.2.0" + dependencies: + "@turf/helpers": "npm:^7.2.0" + "@types/geojson": "npm:^7946.0.10" + checksum: 10c0/707ed63ba64fe48769806bf2419f5c0cd2ebf821a6467aeffb784ba7ebd6a63ec98d4192b97915948529c00304ed46ddc83842a80714fb1f2018fd4e3c455498 + languageName: node + linkType: hard + +"@types/argparse@npm:1.0.38": + version: 1.0.38 + resolution: "@types/argparse@npm:1.0.38" + checksum: 10c0/4fc892da5df16923f48180da2d1f4562fa8b0507cf636b24780444fa0a1d7321d4dc0c0ecbee6152968823f5a2ae0d321b4f8c705a489bf1ae1245bdeb0868fd + languageName: node + linkType: hard + +"@types/babel__core@npm:^7.20.5": + version: 7.20.5 + resolution: "@types/babel__core@npm:7.20.5" + dependencies: + "@babel/parser": "npm:^7.20.7" + "@babel/types": "npm:^7.20.7" + "@types/babel__generator": "npm:*" + "@types/babel__template": "npm:*" + "@types/babel__traverse": "npm:*" + checksum: 10c0/bdee3bb69951e833a4b811b8ee9356b69a61ed5b7a23e1a081ec9249769117fa83aaaf023bb06562a038eb5845155ff663e2d5c75dd95c1d5ccc91db012868ff + languageName: node + linkType: hard + +"@types/babel__generator@npm:*": + version: 7.27.0 + resolution: "@types/babel__generator@npm:7.27.0" + dependencies: + "@babel/types": "npm:^7.0.0" + checksum: 10c0/9f9e959a8792df208a9d048092fda7e1858bddc95c6314857a8211a99e20e6830bdeb572e3587ae8be5429e37f2a96fcf222a9f53ad232f5537764c9e13a2bbd + languageName: node + linkType: hard + +"@types/babel__template@npm:*": + version: 7.4.4 + resolution: "@types/babel__template@npm:7.4.4" + dependencies: + "@babel/parser": "npm:^7.1.0" + "@babel/types": "npm:^7.0.0" + checksum: 10c0/cc84f6c6ab1eab1427e90dd2b76ccee65ce940b778a9a67be2c8c39e1994e6f5bbc8efa309f6cea8dc6754994524cd4d2896558df76d92e7a1f46ecffee7112b + languageName: node + linkType: hard + +"@types/babel__traverse@npm:*": + version: 7.28.0 + resolution: "@types/babel__traverse@npm:7.28.0" + dependencies: + "@babel/types": "npm:^7.28.2" + checksum: 10c0/b52d7d4e8fc6a9018fe7361c4062c1c190f5778cf2466817cb9ed19d69fbbb54f9a85ffedeb748ed8062d2cf7d4cc088ee739848f47c57740de1c48cbf0d0994 + languageName: node + linkType: hard + +"@types/estree@npm:1.0.8, @types/estree@npm:^1.0.0": + version: 1.0.8 + resolution: "@types/estree@npm:1.0.8" + checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 + languageName: node + linkType: hard + +"@types/geojson-vt@npm:3.2.5": + version: 3.2.5 + resolution: "@types/geojson-vt@npm:3.2.5" + dependencies: + "@types/geojson": "npm:*" + checksum: 10c0/bfd9157c7d0441dc4b420e0c6df65b4e4b29f3d33cc77667b3dc5acd68ba6326bfbfd867642645357382e3374ceebfb9c5d15f2b2c0ee3e3c492e0b5a2bb71be + languageName: node + linkType: hard + +"@types/geojson@npm:*, @types/geojson@npm:^7946.0.10, @types/geojson@npm:^7946.0.14": + version: 7946.0.16 + resolution: "@types/geojson@npm:7946.0.16" + checksum: 10c0/1ff24a288bd5860b766b073ead337d31d73bdc715e5b50a2cee5cb0af57a1ed02cc04ef295f5fa68dc40fe3e4f104dd31282b2b818a5ba3231bc1001ba084e3c + languageName: node + linkType: hard + +"@types/mapbox__point-geometry@npm:*, @types/mapbox__point-geometry@npm:^0.1.4": + version: 0.1.4 + resolution: "@types/mapbox__point-geometry@npm:0.1.4" + checksum: 10c0/670191664ea0a6ccb4563500fe815a9aba029ba2f0528d42f9eb560ccb44f6542ba8674e2a3f6d41bd10ad8855b4df4782b5340c980ca182ef9fe6752f2737b8 + languageName: node + linkType: hard + +"@types/mapbox__vector-tile@npm:^1.3.4": + version: 1.3.4 + resolution: "@types/mapbox__vector-tile@npm:1.3.4" + dependencies: + "@types/geojson": "npm:*" + "@types/mapbox__point-geometry": "npm:*" + "@types/pbf": "npm:*" + checksum: 10c0/082907ed9cf96b82327dabf3b4c3a14746a825e4a81f0abf46b50e2557f25cbda652725d8af002e5edcc344a83c85e1a4b71a2d39ef4d829c243344a85ac13a6 + languageName: node + linkType: hard + +"@types/pbf@npm:*, @types/pbf@npm:^3.0.5": + version: 3.0.5 + resolution: "@types/pbf@npm:3.0.5" + checksum: 10c0/c32348c6c81e6c31fe4a1f59983e3a9904727b809fb1e5ddec4fad49abaf93070ec26ee0c04c6516536c181c945b3c7d9e226549eaac3b2e12cb7b57f549a49c + languageName: node + linkType: hard + +"@types/plotly.js@npm:*, @types/plotly.js@npm:^3": + version: 3.0.3 + resolution: "@types/plotly.js@npm:3.0.3" + checksum: 10c0/6a34d5f34b9b65a157856cf5b2b68789176299820211005e8028091c2ce3e4e67d95d7a39dd650afb13ba1c8965c0cd50a80800b94e23adb44a469c87a002307 + languageName: node + linkType: hard + +"@types/react-plotly.js@npm:^2": + version: 2.6.3 + resolution: "@types/react-plotly.js@npm:2.6.3" + dependencies: + "@types/plotly.js": "npm:*" + "@types/react": "npm:*" + checksum: 10c0/8cd6f99766009d541615471251b377200c5fd00a08995b64566f4cdfb6d1938ee64ba38d3847c7fe3d1d7515e59c1b0111e3262481480540b1a5e5a041cc4e3b + languageName: node + linkType: hard + +"@types/react@npm:*": + version: 19.1.10 + resolution: "@types/react@npm:19.1.10" + dependencies: + csstype: "npm:^3.0.2" + checksum: 10c0/fb583deacd0a815e2775dc1b9f764532d8cacb748ddd2c2914805a46c257ce6c237b4078f44009692074db212ab61a390301c6470f07f5aa5bfdeb78a2acfda1 + languageName: node + linkType: hard + +"@types/react@npm:^19.0.0": + version: 19.1.9 + resolution: "@types/react@npm:19.1.9" + dependencies: + csstype: "npm:^3.0.2" + checksum: 10c0/b418da4aaf18fbc6df4f1b7096dda7ee152d697cac00d729ffd855b2b44a3a9cfb2ecb017ed20979ea3a7d98a5ce5fcf01ac1a3614d4a3e4d7069a0c45e49b0f + languageName: node + linkType: hard + +"@types/supercluster@npm:^7.1.3": + version: 7.1.3 + resolution: "@types/supercluster@npm:7.1.3" + dependencies: + "@types/geojson": "npm:*" + checksum: 10c0/0d55dad98df0990fc38a7bb64dc23dda46014187c0d7638e6f2b6717ba8931b13e5b1d394789833a2ac822014c977ef64623dffd81a0bbf39e52c53c8183741f + languageName: node + linkType: hard + +"@vitejs/plugin-react@npm:^4.0.0": + version: 4.7.0 + resolution: "@vitejs/plugin-react@npm:4.7.0" + dependencies: + "@babel/core": "npm:^7.28.0" + "@babel/plugin-transform-react-jsx-self": "npm:^7.27.1" + "@babel/plugin-transform-react-jsx-source": "npm:^7.27.1" + "@rolldown/pluginutils": "npm:1.0.0-beta.27" + "@types/babel__core": "npm:^7.20.5" + react-refresh: "npm:^0.17.0" + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + checksum: 10c0/692f23960972879485d647713663ec299c478222c96567d60285acf7c7dc5c178e71abfe9d2eefddef1eeb01514dacbc2ed68aad84628debf9c7116134734253 + languageName: node + linkType: hard + +"@volar/language-core@npm:2.4.22, @volar/language-core@npm:~2.4.11": + version: 2.4.22 + resolution: "@volar/language-core@npm:2.4.22" + dependencies: + "@volar/source-map": "npm:2.4.22" + checksum: 10c0/3b8f713e02c33919a04108796f6a1c177d6a6521d38b4355381e886364615e5601c7642ffd1378a3ebc24cd157990da38702ff47ece43342ce2707037b37e3b2 + languageName: node + linkType: hard + +"@volar/source-map@npm:2.4.22": + version: 2.4.22 + resolution: "@volar/source-map@npm:2.4.22" + checksum: 10c0/d145fb189adba8883299caeb770e76b4499b2087d74b779c049664591ca946bafa1b9516108331df5e22c106988939d2f0cfb57f6412dd7ea7b8327556efe069 + languageName: node + linkType: hard + +"@volar/typescript@npm:^2.4.11": + version: 2.4.22 + resolution: "@volar/typescript@npm:2.4.22" + dependencies: + "@volar/language-core": "npm:2.4.22" + path-browserify: "npm:^1.0.1" + vscode-uri: "npm:^3.0.8" + checksum: 10c0/f83ac0db6cfd420a249d9c24bf0761903b526fbfec1087f726bd18c94a8ef133d7a8a62d26b4781c6d3dccd70459c1a608d75b96ff4bcb5f91d9b7cea7a73897 + languageName: node + linkType: hard + +"@vue/compiler-core@npm:3.5.18": + version: 3.5.18 + resolution: "@vue/compiler-core@npm:3.5.18" + dependencies: + "@babel/parser": "npm:^7.28.0" + "@vue/shared": "npm:3.5.18" + entities: "npm:^4.5.0" + estree-walker: "npm:^2.0.2" + source-map-js: "npm:^1.2.1" + checksum: 10c0/943cd3736e981b451aa85ccc08d446844e1a2dbf193e630cef708995110f12c3b8c8e3b2c4581ee2e3ecf7ea2388574e2d5f68b4f11bcd01cc5bab6c9177b448 + languageName: node + linkType: hard + +"@vue/compiler-dom@npm:^3.5.0": + version: 3.5.18 + resolution: "@vue/compiler-dom@npm:3.5.18" + dependencies: + "@vue/compiler-core": "npm:3.5.18" + "@vue/shared": "npm:3.5.18" + checksum: 10c0/f7f3dec1fea33e8b46b34d71fa24a8608dba4bdab786d4114747ed0897816760450617951f7ea3f59380e5ecfaeb84d94dd1bfabed88792cc03476da91e6f7fd + languageName: node + linkType: hard + +"@vue/compiler-vue2@npm:^2.7.16": + version: 2.7.16 + resolution: "@vue/compiler-vue2@npm:2.7.16" + dependencies: + de-indent: "npm:^1.0.2" + he: "npm:^1.2.0" + checksum: 10c0/c76c3fad770b9a7da40b314116cc9da173da20e5fd68785c8ed8dd8a87d02f239545fa296e16552e040ec86b47bfb18283b39447b250c2e76e479bd6ae475bb3 + languageName: node + linkType: hard + +"@vue/language-core@npm:2.2.0": + version: 2.2.0 + resolution: "@vue/language-core@npm:2.2.0" + dependencies: + "@volar/language-core": "npm:~2.4.11" + "@vue/compiler-dom": "npm:^3.5.0" + "@vue/compiler-vue2": "npm:^2.7.16" + "@vue/shared": "npm:^3.5.0" + alien-signals: "npm:^0.4.9" + minimatch: "npm:^9.0.3" + muggle-string: "npm:^0.4.1" + path-browserify: "npm:^1.0.1" + peerDependencies: + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/1c44cc4067266bbc825af358a867aed455963a08c160cd9df9a47571fd917a87d9de9bdea6149877e0c8309a6cf39f263e7cf2fbadeceba47a5a158f392151b2 + languageName: node + linkType: hard + +"@vue/shared@npm:3.5.18, @vue/shared@npm:^3.5.0": + version: 3.5.18 + resolution: "@vue/shared@npm:3.5.18" + checksum: 10c0/9764e31bfcd13a2f5369554d0abbfd06e391d72b0065b4cbd36be94ffdd4d845b2d38a37d56b35714c7a2100c512c9b74de2fa1a19ee2e920ecf098d9035518d + languageName: node + linkType: hard + +"abbrev@npm:^3.0.0": + version: 3.0.1 + resolution: "abbrev@npm:3.0.1" + checksum: 10c0/21ba8f574ea57a3106d6d35623f2c4a9111d9ee3e9a5be47baed46ec2457d2eac46e07a5c4a60186f88cb98abbe3e24f2d4cca70bc2b12f1692523e2209a9ccf + languageName: node + linkType: hard + +"abs-svg-path@npm:^0.1.1, abs-svg-path@npm:~0.1.1": + version: 0.1.1 + resolution: "abs-svg-path@npm:0.1.1" + checksum: 10c0/aa763f3843cd4d7c3eabcddc91834ab27def4c1f470b98a3bf01ebe82928629c5aeaa97766252781449e0c722e1785f8e512fea79f86d3d10f8eca220d6aa292 + languageName: node + linkType: hard + +"acorn@npm:^7.1.1": + version: 7.4.1 + resolution: "acorn@npm:7.4.1" + bin: + acorn: bin/acorn + checksum: 10c0/bd0b2c2b0f334bbee48828ff897c12bd2eb5898d03bf556dcc8942022cec795ac5bb5b6b585e2de687db6231faf07e096b59a361231dd8c9344d5df5f7f0e526 + languageName: node + linkType: hard + +"acorn@npm:^8.14.0": + version: 8.15.0 + resolution: "acorn@npm:8.15.0" + bin: + acorn: bin/acorn + checksum: 10c0/dec73ff59b7d6628a01eebaece7f2bdb8bb62b9b5926dcad0f8931f2b8b79c2be21f6c68ac095592adb5adb15831a3635d9343e6a91d028bbe85d564875ec3ec + languageName: node + linkType: hard + +"agent-base@npm:^7.1.0, agent-base@npm:^7.1.2": + version: 7.1.4 + resolution: "agent-base@npm:7.1.4" + checksum: 10c0/c2c9ab7599692d594b6a161559ada307b7a624fa4c7b03e3afdb5a5e31cd0e53269115b620fcab024c5ac6a6f37fa5eb2e004f076ad30f5f7e6b8b671f7b35fe + languageName: node + linkType: hard + +"ajv-draft-04@npm:~1.0.0": + version: 1.0.0 + resolution: "ajv-draft-04@npm:1.0.0" + peerDependencies: + ajv: ^8.5.0 + peerDependenciesMeta: + ajv: + optional: true + checksum: 10c0/6044310bd38c17d77549fd326bd40ce1506fa10b0794540aa130180808bf94117fac8c9b448c621512bea60e4a947278f6a978e87f10d342950c15b33ddd9271 + languageName: node + linkType: hard + +"ajv-formats@npm:~3.0.1": + version: 3.0.1 + resolution: "ajv-formats@npm:3.0.1" + dependencies: + ajv: "npm:^8.0.0" + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + checksum: 10c0/168d6bca1ea9f163b41c8147bae537e67bd963357a5488a1eaf3abe8baa8eec806d4e45f15b10767e6020679315c7e1e5e6803088dfb84efa2b4e9353b83dd0a + languageName: node + linkType: hard + +"ajv@npm:^8.0.0": + version: 8.17.1 + resolution: "ajv@npm:8.17.1" + dependencies: + fast-deep-equal: "npm:^3.1.3" + fast-uri: "npm:^3.0.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + checksum: 10c0/ec3ba10a573c6b60f94639ffc53526275917a2df6810e4ab5a6b959d87459f9ef3f00d5e7865b82677cb7d21590355b34da14d1d0b9c32d75f95a187e76fff35 + languageName: node + linkType: hard + +"ajv@npm:~8.12.0": + version: 8.12.0 + resolution: "ajv@npm:8.12.0" + dependencies: + fast-deep-equal: "npm:^3.1.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + uri-js: "npm:^4.2.2" + checksum: 10c0/ac4f72adf727ee425e049bc9d8b31d4a57e1c90da8d28bcd23d60781b12fcd6fc3d68db5df16994c57b78b94eed7988f5a6b482fd376dc5b084125e20a0a622e + languageName: node + linkType: hard + +"ajv@npm:~8.13.0": + version: 8.13.0 + resolution: "ajv@npm:8.13.0" + dependencies: + fast-deep-equal: "npm:^3.1.3" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + uri-js: "npm:^4.4.1" + checksum: 10c0/14c6497b6f72843986d7344175a1aa0e2c35b1e7f7475e55bc582cddb765fca7e6bf950f465dc7846f817776d9541b706f4b5b3fbedd8dfdeb5fce6f22864264 + languageName: node + linkType: hard + +"alien-signals@npm:^0.4.9": + version: 0.4.14 + resolution: "alien-signals@npm:0.4.14" + checksum: 10c0/5abb3377bcaf6b3819e950084b3ebd022ad90210105afb450c89dc347e80e28da441bf34858a57ea122abe7603e552ddbad80dc597c8f02a0a5206c5fb9c20cb + languageName: node + linkType: hard + +"ansi-regex@npm:^5.0.1": + version: 5.0.1 + resolution: "ansi-regex@npm:5.0.1" + checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737 + languageName: node + linkType: hard + +"ansi-regex@npm:^6.0.1": + version: 6.1.0 + resolution: "ansi-regex@npm:6.1.0" + checksum: 10c0/a91daeddd54746338478eef88af3439a7edf30f8e23196e2d6ed182da9add559c601266dbef01c2efa46a958ad6f1f8b176799657616c702b5b02e799e7fd8dc + languageName: node + linkType: hard + +"ansi-styles@npm:^4.0.0": + version: 4.3.0 + resolution: "ansi-styles@npm:4.3.0" + dependencies: + color-convert: "npm:^2.0.1" + checksum: 10c0/895a23929da416f2bd3de7e9cb4eabd340949328ab85ddd6e484a637d8f6820d485f53933446f5291c3b760cbc488beb8e88573dd0f9c7daf83dccc8fe81b041 + languageName: node + linkType: hard + +"ansi-styles@npm:^6.1.0": + version: 6.2.1 + resolution: "ansi-styles@npm:6.2.1" + checksum: 10c0/5d1ec38c123984bcedd996eac680d548f31828bd679a66db2bdf11844634dde55fec3efa9c6bb1d89056a5e79c1ac540c4c784d592ea1d25028a92227d2f2d5c + languageName: node + linkType: hard + +"argparse@npm:~1.0.9": + version: 1.0.10 + resolution: "argparse@npm:1.0.10" + dependencies: + sprintf-js: "npm:~1.0.2" + checksum: 10c0/b2972c5c23c63df66bca144dbc65d180efa74f25f8fd9b7d9a0a6c88ae839db32df3d54770dcb6460cf840d232b60695d1a6b1053f599d84e73f7437087712de + languageName: node + linkType: hard + +"array-bounds@npm:^1.0.0, array-bounds@npm:^1.0.1": + version: 1.0.1 + resolution: "array-bounds@npm:1.0.1" + checksum: 10c0/69ee3bb14b6a9e170ef052d21354e0b1d63fd113702e082b70fc08197767f36018cf86d532d9602e01ae76fb36dbafbe72a194f5bd61312f5626db2aff305a2e + languageName: node + linkType: hard + +"array-find-index@npm:^1.0.2": + version: 1.0.2 + resolution: "array-find-index@npm:1.0.2" + checksum: 10c0/86b9485c74ddd324feab807e10a6de3f9c1683856267236fac4bb4d4667ada6463e106db3f6c540ae6b720e0442b590ec701d13676df4c6af30ebf4da09b4f57 + languageName: node + linkType: hard + +"array-normalize@npm:^1.1.4": + version: 1.1.4 + resolution: "array-normalize@npm:1.1.4" + dependencies: + array-bounds: "npm:^1.0.0" + checksum: 10c0/68ef2d37105ab84101ee024b8d660f6b820faedd2c89a018d68e1e774a2cc31b21060bb5e168b233919d50127857fbf62e2f8d20ae8e0d428b6c40d393454ee9 + languageName: node + linkType: hard + +"array-range@npm:^1.0.1": + version: 1.0.1 + resolution: "array-range@npm:1.0.1" + checksum: 10c0/d54a5cf60ac91c525c3ad52b6b02994c0bb437a175852ef64fd5474888c56053a97e108aeb32bc5fc17b928783d57dddf87757752eb5f0aa9092566a731fa734 + languageName: node + linkType: hard + +"array-rearrange@npm:^2.2.2": + version: 2.2.2 + resolution: "array-rearrange@npm:2.2.2" + checksum: 10c0/3cee3171eaeb364110dba1d9f1ba80c5b37d8284465930482060240097c47bbcc89b659748c515fdf3ac23fc230658a08847c8507c9ffae4f17fa74218716ef2 + languageName: node + linkType: hard + +"balanced-match@npm:^1.0.0": + version: 1.0.2 + resolution: "balanced-match@npm:1.0.2" + checksum: 10c0/9308baf0a7e4838a82bbfd11e01b1cb0f0cf2893bc1676c27c2a8c0e70cbae1c59120c3268517a8ae7fb6376b4639ef81ca22582611dbee4ed28df945134aaee + languageName: node + linkType: hard + +"base64-arraybuffer@npm:^1.0.2": + version: 1.0.2 + resolution: "base64-arraybuffer@npm:1.0.2" + checksum: 10c0/3acac95c70f9406e87a41073558ba85b6be9dbffb013a3d2a710e3f2d534d506c911847d5d9be4de458af6362c676de0a5c4c2d7bdf4def502d00b313368e72f + languageName: node + linkType: hard + +"binary-search-bounds@npm:^2.0.4": + version: 2.0.5 + resolution: "binary-search-bounds@npm:2.0.5" + checksum: 10c0/d433db5fba086d1585e268c0b0b7ae6ec359df60b9135112d1fd4dcf2f8a8820caab7e2523bbbca0a9cae0725486f67a6663a87b5637f0e58f4201985e6e5b0b + languageName: node + linkType: hard + +"bit-twiddle@npm:^1.0.0, bit-twiddle@npm:^1.0.2": + version: 1.0.2 + resolution: "bit-twiddle@npm:1.0.2" + checksum: 10c0/edd86fdaeb27fb5acb9dbde247a71e511ebb6c5406ed645038974203dce8c87ef0359f5d5b60212c2a54d0a52ab16a27c4cc3b1cd4e06256a33881ed77f03d7a + languageName: node + linkType: hard + +"bitmap-sdf@npm:^1.0.0": + version: 1.0.4 + resolution: "bitmap-sdf@npm:1.0.4" + checksum: 10c0/1af490ff70c6fcb4f2a3d6c2217c0876a63a8a164515ee7283622409f35c050827ec1ad6fa8a1f152bb288d77de8fe7f7858ce67f1e7621af56de8755dce48fd + languageName: node + linkType: hard + +"bl@npm:^2.2.1": + version: 2.2.1 + resolution: "bl@npm:2.2.1" + dependencies: + readable-stream: "npm:^2.3.5" + safe-buffer: "npm:^5.1.1" + checksum: 10c0/37481260f1661755253b6205fcdd64b6d852147aaf61628947d2193fcdb78e625ee061dae0094ac16e7c7f10b12c90110fb2b08826815d47a28f9628bebb5a8f + languageName: node + linkType: hard + +"brace-expansion@npm:^2.0.1": + version: 2.0.2 + resolution: "brace-expansion@npm:2.0.2" + dependencies: + balanced-match: "npm:^1.0.0" + checksum: 10c0/6d117a4c793488af86b83172deb6af143e94c17bc53b0b3cec259733923b4ca84679d506ac261f4ba3c7ed37c46018e2ff442f9ce453af8643ecd64f4a54e6cf + languageName: node + linkType: hard + +"browserslist@npm:^4.24.0": + version: 4.25.1 + resolution: "browserslist@npm:4.25.1" + dependencies: + caniuse-lite: "npm:^1.0.30001726" + electron-to-chromium: "npm:^1.5.173" + node-releases: "npm:^2.0.19" + update-browserslist-db: "npm:^1.1.3" + bin: + browserslist: cli.js + checksum: 10c0/acba5f0bdbd5e72dafae1e6ec79235b7bad305ed104e082ed07c34c38c7cb8ea1bc0f6be1496958c40482e40166084458fc3aee15111f15faa79212ad9081b2a + languageName: node + linkType: hard + +"buffer-from@npm:^1.0.0": + version: 1.1.2 + resolution: "buffer-from@npm:1.1.2" + checksum: 10c0/124fff9d66d691a86d3b062eff4663fe437a9d9ee4b47b1b9e97f5a5d14f6d5399345db80f796827be7c95e70a8e765dd404b7c3ff3b3324f98e9b0c8826cc34 + languageName: node + linkType: hard + +"cacache@npm:^19.0.1": + version: 19.0.1 + resolution: "cacache@npm:19.0.1" + dependencies: + "@npmcli/fs": "npm:^4.0.0" + fs-minipass: "npm:^3.0.0" + glob: "npm:^10.2.2" + lru-cache: "npm:^10.0.1" + minipass: "npm:^7.0.3" + minipass-collect: "npm:^2.0.1" + minipass-flush: "npm:^1.0.5" + minipass-pipeline: "npm:^1.2.4" + p-map: "npm:^7.0.2" + ssri: "npm:^12.0.0" + tar: "npm:^7.4.3" + unique-filename: "npm:^4.0.0" + checksum: 10c0/01f2134e1bd7d3ab68be851df96c8d63b492b1853b67f2eecb2c37bb682d37cb70bb858a16f2f0554d3c0071be6dfe21456a1ff6fa4b7eed996570d6a25ffe9c + languageName: node + linkType: hard + +"caniuse-lite@npm:^1.0.30001726": + version: 1.0.30001731 + resolution: "caniuse-lite@npm:1.0.30001731" + checksum: 10c0/d8cddf817d5bec8e7c2106affdbf1bfc3923463ca16697c992b2efeb043e6a5d9dcb70cda913bc6acf9112fd66f9e80279316c08e7800359116925066a63fdfa + languageName: node + linkType: hard + +"canvas-fit@npm:^1.5.0": + version: 1.5.0 + resolution: "canvas-fit@npm:1.5.0" + dependencies: + element-size: "npm:^1.1.1" + checksum: 10c0/9d85ce4c205e7edf87fa6281891780e1f62c0ffc62b4e4b16f3d27960e2b81cb05e340b21068bd35ea63651c5f343f3c0af981e40cd2f9a42bc6c7e387248bbb + languageName: node + linkType: hard + +"chownr@npm:^3.0.0": + version: 3.0.0 + resolution: "chownr@npm:3.0.0" + checksum: 10c0/43925b87700f7e3893296c8e9c56cc58f926411cce3a6e5898136daaf08f08b9a8eb76d37d3267e707d0dcc17aed2e2ebdf5848c0c3ce95cf910a919935c1b10 + languageName: node + linkType: hard + +"clamp@npm:^1.0.1": + version: 1.0.1 + resolution: "clamp@npm:1.0.1" + checksum: 10c0/8f95ccbc5d646a98c1d690bce820f3d060a5267242083e8994f70dc504ce441dbc7b8ef13b93819129fc166e7a5b6abd320f109bdba0f49b8dcc794710987c97 + languageName: node + linkType: hard + +"color-alpha@npm:1.0.4": + version: 1.0.4 + resolution: "color-alpha@npm:1.0.4" + dependencies: + color-parse: "npm:^1.3.8" + checksum: 10c0/dd78453f9c9fc20e9303d085357594abe26ec5ea644d87ef21d6bd61e1eaf02e324d43efaa00dd68af2b7e551f4bc53c11dafd9556835c3707a7b29623053842 + languageName: node + linkType: hard + +"color-alpha@npm:^1.0.4": + version: 1.1.3 + resolution: "color-alpha@npm:1.1.3" + dependencies: + color-parse: "npm:^1.4.1" + checksum: 10c0/3481da412db67716860e86af89f75b3db550cf38879086208314863f4bd2b6004c42d6d8532970d9482bd75c47f60eab6a5002c4b3740d0e0c2f81bfb1caad15 + languageName: node + linkType: hard + +"color-convert@npm:^2.0.1": + version: 2.0.1 + resolution: "color-convert@npm:2.0.1" + dependencies: + color-name: "npm:~1.1.4" + checksum: 10c0/37e1150172f2e311fe1b2df62c6293a342ee7380da7b9cfdba67ea539909afbd74da27033208d01d6d5cfc65ee7868a22e18d7e7648e004425441c0f8a15a7d7 + languageName: node + linkType: hard + +"color-id@npm:^1.1.0": + version: 1.1.0 + resolution: "color-id@npm:1.1.0" + dependencies: + clamp: "npm:^1.0.1" + checksum: 10c0/620d9184529c917e994a2b172ca2a73af33df0608596ed07ea42fed22fe308c164a08903e1dce88185e5b39ee9c7a5580cbf87a52c1fd8455c3fa8d359b6263d + languageName: node + linkType: hard + +"color-name@npm:^1.0.0, color-name@npm:~1.1.4": + version: 1.1.4 + resolution: "color-name@npm:1.1.4" + checksum: 10c0/a1a3f914156960902f46f7f56bc62effc6c94e84b2cae157a526b1c1f74b677a47ec602bf68a61abfa2b42d15b7c5651c6dbe72a43af720bc588dff885b10f95 + languageName: node + linkType: hard + +"color-name@npm:^2.0.0": + version: 2.0.0 + resolution: "color-name@npm:2.0.0" + checksum: 10c0/fc0304606e5c5941f4649a9975c03a2ecd52a22aba3dadb3309b3e4ee61d78c3e13ff245e80b9a930955d38c5f32a9004196a7456c4542822aa1fcfea8e928ed + languageName: node + linkType: hard + +"color-normalize@npm:1.5.0": + version: 1.5.0 + resolution: "color-normalize@npm:1.5.0" + dependencies: + clamp: "npm:^1.0.1" + color-rgba: "npm:^2.1.1" + dtype: "npm:^2.0.0" + checksum: 10c0/86131bb0c3c4cc16f63423c08d523915825b30c08b3b1e36f9cac52e3710209ef47f623b2f0943b6efc4f6d71f098922e6795e2546d8885398643ff1b96ee623 + languageName: node + linkType: hard + +"color-normalize@npm:^1.5.0": + version: 1.5.2 + resolution: "color-normalize@npm:1.5.2" + dependencies: + color-rgba: "npm:^2.2.0" + dtype: "npm:^2.0.0" + checksum: 10c0/d9d536b9cb9b14a5ee6dc0555f12e846ef2fdb478fddd245478ad414b6d60f0da42c9b76bf99cc23a42e30e06d5e2ff3a69ddb8e4d767f3f3ac14669ecebc5d0 + languageName: node + linkType: hard + +"color-parse@npm:2.0.0": + version: 2.0.0 + resolution: "color-parse@npm:2.0.0" + dependencies: + color-name: "npm:^1.0.0" + checksum: 10c0/f489deaea5bb323e05f41436d747e22bbb45928420fce8a989c209a4baa71c7ee90f8b43298d9565844af1d02580743d5d87b506519f755b4b218df6b72eb4a0 + languageName: node + linkType: hard + +"color-parse@npm:^1.3.8, color-parse@npm:^1.4.1, color-parse@npm:^1.4.2": + version: 1.4.3 + resolution: "color-parse@npm:1.4.3" + dependencies: + color-name: "npm:^1.0.0" + checksum: 10c0/3473e7fb53d643dffc508c4f3161890f405ece9d78cc84277576212346b17ad037d1a0c6beb49e9b55bc11435a8c85b7ff9f94a6b898eb82647d4a46615d23da + languageName: node + linkType: hard + +"color-parse@npm:^2.0.0": + version: 2.0.2 + resolution: "color-parse@npm:2.0.2" + dependencies: + color-name: "npm:^2.0.0" + checksum: 10c0/5761baa81e3c8acf3625f4a6ca77b72e77ee9429c0b9757baab18ea1af0861919aee47e337675c47ee5bf3bc2b10cd0690e226322058e94457f2b501e1ef132b + languageName: node + linkType: hard + +"color-rgba@npm:3.0.0": + version: 3.0.0 + resolution: "color-rgba@npm:3.0.0" + dependencies: + color-parse: "npm:^2.0.0" + color-space: "npm:^2.0.0" + checksum: 10c0/8f3920cd1dcafde31c9240e54c2aba3c4fc43e350dc15cc00de3ea988800e1a533f85b38aa67867acfd51634a92bfd5e8aa9f06f1b42965c8fa538b5e16d9667 + languageName: node + linkType: hard + +"color-rgba@npm:^2.1.1, color-rgba@npm:^2.2.0": + version: 2.4.0 + resolution: "color-rgba@npm:2.4.0" + dependencies: + color-parse: "npm:^1.4.2" + color-space: "npm:^2.0.0" + checksum: 10c0/b2d952a464a51ff446927b60528c94caee8987bcf1609dce7a18589a2d2febeab79d8c66c9eb1c4d9ef69ae4b5dfebc9f8fc858ad45d6cae7d2b013c562893ee + languageName: node + linkType: hard + +"color-space@npm:^2.0.0": + version: 2.3.2 + resolution: "color-space@npm:2.3.2" + checksum: 10c0/c755fb464d3e9205a405d22b0c04e32cd3e8401fdf49890644e29cfcaf9e53f72902191ff1845e7ebea12eeff86cafac2a36e203cbcce9c7afa4d11a5414a71a + languageName: node + linkType: hard + +"commander@npm:2, commander@npm:^2.15.1": + version: 2.20.3 + resolution: "commander@npm:2.20.3" + checksum: 10c0/74c781a5248c2402a0a3e966a0a2bba3c054aad144f5c023364be83265e796b20565aa9feff624132ff629aa64e16999fa40a743c10c12f7c61e96a794b99288 + languageName: node + linkType: hard + +"compare-versions@npm:^6.1.1": + version: 6.1.1 + resolution: "compare-versions@npm:6.1.1" + checksum: 10c0/415205c7627f9e4f358f571266422980c9fe2d99086be0c9a48008ef7c771f32b0fbe8e97a441ffedc3910872f917a0675fe0fe3c3b6d331cda6d8690be06338 + languageName: node + linkType: hard + +"concat-stream@npm:^1.5.2": + version: 1.6.2 + resolution: "concat-stream@npm:1.6.2" + dependencies: + buffer-from: "npm:^1.0.0" + inherits: "npm:^2.0.3" + readable-stream: "npm:^2.2.2" + typedarray: "npm:^0.0.6" + checksum: 10c0/2e9864e18282946dabbccb212c5c7cec0702745e3671679eb8291812ca7fd12023f7d8cb36493942a62f770ac96a7f90009dc5c82ad69893438371720fa92617 + languageName: node + linkType: hard + +"confbox@npm:^0.1.8": + version: 0.1.8 + resolution: "confbox@npm:0.1.8" + checksum: 10c0/fc2c68d97cb54d885b10b63e45bd8da83a8a71459d3ecf1825143dd4c7f9f1b696b3283e07d9d12a144c1301c2ebc7842380bdf0014e55acc4ae1c9550102418 + languageName: node + linkType: hard + +"confbox@npm:^0.2.2": + version: 0.2.2 + resolution: "confbox@npm:0.2.2" + checksum: 10c0/7c246588d533d31e8cdf66cb4701dff6de60f9be77ab54c0d0338e7988750ac56863cc0aca1b3f2046f45ff223a765d3e5d4977a7674485afcd37b6edf3fd129 + languageName: node + linkType: hard + +"convert-source-map@npm:^2.0.0": + version: 2.0.0 + resolution: "convert-source-map@npm:2.0.0" + checksum: 10c0/8f2f7a27a1a011cc6cc88cc4da2d7d0cfa5ee0369508baae3d98c260bb3ac520691464e5bbe4ae7cdf09860c1d69ecc6f70c63c6e7c7f7e3f18ec08484dc7d9b + languageName: node + linkType: hard + +"core-util-is@npm:~1.0.0": + version: 1.0.3 + resolution: "core-util-is@npm:1.0.3" + checksum: 10c0/90a0e40abbddfd7618f8ccd63a74d88deea94e77d0e8dbbea059fa7ebebb8fbb4e2909667fe26f3a467073de1a542ebe6ae4c73a73745ac5833786759cd906c9 + languageName: node + linkType: hard + +"country-regex@npm:^1.1.0": + version: 1.1.0 + resolution: "country-regex@npm:1.1.0" + checksum: 10c0/3e95be9c3065dbf7dfafae8bb951e36b2805b8dd7dbba5688c74cedaf7c86effd74b7a7b43116bf57709560e7ace7e5001d34f62bf25802aa1a90052dba1a667 + languageName: node + linkType: hard + +"cross-spawn@npm:^7.0.6": + version: 7.0.6 + resolution: "cross-spawn@npm:7.0.6" + dependencies: + path-key: "npm:^3.1.0" + shebang-command: "npm:^2.0.0" + which: "npm:^2.0.1" + checksum: 10c0/053ea8b2135caff68a9e81470e845613e374e7309a47731e81639de3eaeb90c3d01af0e0b44d2ab9d50b43467223b88567dfeb3262db942dc063b9976718ffc1 + languageName: node + linkType: hard + +"css-font-size-keywords@npm:^1.0.0": + version: 1.0.0 + resolution: "css-font-size-keywords@npm:1.0.0" + checksum: 10c0/afc3e296a20e533da5fe84e1436914b5ec789d2db851b856688a1aa80f88c2ee408580a8a0a1e0581cc0952b65bfb37a769c841df185c7b1d95198c563996465 + languageName: node + linkType: hard + +"css-font-stretch-keywords@npm:^1.0.1": + version: 1.0.1 + resolution: "css-font-stretch-keywords@npm:1.0.1" + checksum: 10c0/9f5c405c99962f2bf77ed79f9f137ac7eecbc2e0f64cfe448277af9924ec2717214369d0e9a02b4520e3e0812b6a5289fad36911678a13f5505e972889cb27a9 + languageName: node + linkType: hard + +"css-font-style-keywords@npm:^1.0.1": + version: 1.0.1 + resolution: "css-font-style-keywords@npm:1.0.1" + checksum: 10c0/431bb7ee0346302abc9c94a74df0c20b8f5173ef8b29284c571bbba4eec4e22a461dcb6a7d0ae764f9b02f9a7a185612193906122c744af96eb6e4be72e646d2 + languageName: node + linkType: hard + +"css-font-weight-keywords@npm:^1.0.0": + version: 1.0.0 + resolution: "css-font-weight-keywords@npm:1.0.0" + checksum: 10c0/99fbf6ca55ca86cbb083786f6ca83d47c0284eab1a96929b71401a50969e18a901474ffe8b1a895226f9bbde461c77d88ca50fcc871ce8a8926a2d2ba65bb847 + languageName: node + linkType: hard + +"css-font@npm:^1.0.0, css-font@npm:^1.2.0": + version: 1.2.0 + resolution: "css-font@npm:1.2.0" + dependencies: + css-font-size-keywords: "npm:^1.0.0" + css-font-stretch-keywords: "npm:^1.0.1" + css-font-style-keywords: "npm:^1.0.1" + css-font-weight-keywords: "npm:^1.0.0" + css-global-keywords: "npm:^1.0.1" + css-system-font-keywords: "npm:^1.0.0" + pick-by-alias: "npm:^1.2.0" + string-split-by: "npm:^1.0.0" + unquote: "npm:^1.1.0" + checksum: 10c0/6a68aeb6529e179ff3d5d4de52f96f89de507d06b69a0d3899c0d06448530a6e755342f390a42bf9c8672411694618a9a6e204dc808918cd98d5c08cedc5455e + languageName: node + linkType: hard + +"css-global-keywords@npm:^1.0.1": + version: 1.0.1 + resolution: "css-global-keywords@npm:1.0.1" + checksum: 10c0/c49de806fa532fda2c2ba5b27b3443a2ad3d7b05a0a80d9eeae81231a67b7fa09b772dc87226d82a62b8a429141001a62f9eb3b78a4ad8ee85551beb65215a48 + languageName: node + linkType: hard + +"css-system-font-keywords@npm:^1.0.0": + version: 1.0.0 + resolution: "css-system-font-keywords@npm:1.0.0" + checksum: 10c0/8eb3c1d70f70f4727d273cfdc37c53cb0e312286c070f9ec1cf24b7c2602cf8b128f2a127004f1f9feca45848442ad99c22875a440457a238fcd3b9307c8f0ce + languageName: node + linkType: hard + +"csscolorparser@npm:~1.0.3": + version: 1.0.3 + resolution: "csscolorparser@npm:1.0.3" + checksum: 10c0/57b30e1dd3e639fb74d63d3ee5a078ae6d0aaba26bc731fdec1a0f50fd77c2531a1fca2bbe07c18e0569255f92064cda0747e0115955fdb8c037332798ca634f + languageName: node + linkType: hard + +"csstype@npm:^3.0.2": + version: 3.1.3 + resolution: "csstype@npm:3.1.3" + checksum: 10c0/80c089d6f7e0c5b2bd83cf0539ab41474198579584fa10d86d0cafe0642202343cbc119e076a0b1aece191989477081415d66c9fefbf3c957fc2fc4b7009f248 + languageName: node + linkType: hard + +"d3-array@npm:1, d3-array@npm:^1.2.1": + version: 1.2.4 + resolution: "d3-array@npm:1.2.4" + checksum: 10c0/7ac0ae096838e75d06350381442d84b327e3215d470f26c297851675bd25c47a633d35b04bfaa0397c529f42428d19f3f80bead24e1e866832e064cc6af24f3a + languageName: node + linkType: hard + +"d3-collection@npm:1, d3-collection@npm:^1.0.4": + version: 1.0.7 + resolution: "d3-collection@npm:1.0.7" + checksum: 10c0/7a3c7f733ce4a1a02f46a96c7dd02f8e46a2fa83fc4195682fd33624d6a56fbda6388c86ff5d30799cc768cb63bffcdb216b45c51a8d6e0b23117db9c18bedb3 + languageName: node + linkType: hard + +"d3-color@npm:1 - 3": + version: 3.1.0 + resolution: "d3-color@npm:3.1.0" + checksum: 10c0/a4e20e1115fa696fce041fbe13fbc80dc4c19150fa72027a7c128ade980bc0eeeba4bcf28c9e21f0bce0e0dbfe7ca5869ef67746541dcfda053e4802ad19783c + languageName: node + linkType: hard + +"d3-dispatch@npm:1": + version: 1.0.6 + resolution: "d3-dispatch@npm:1.0.6" + checksum: 10c0/6302554a019e2d75d4e3dc7e8757a00b4b12ac2a2952bccc66e4478ccd170f425e2b6a9443118d5feadcd2439f33582b63c7925e832104ff1978cadea2a30dc2 + languageName: node + linkType: hard + +"d3-force@npm:^1.2.1": + version: 1.2.1 + resolution: "d3-force@npm:1.2.1" + dependencies: + d3-collection: "npm:1" + d3-dispatch: "npm:1" + d3-quadtree: "npm:1" + d3-timer: "npm:1" + checksum: 10c0/af699875547e3f5d8fc66ea5dd2a5479e06560a7583c37f3262e81474b8f38e44593124925f75796ac686d9db83831d52cbabbb650cc88c7b1235f51cfebe808 + languageName: node + linkType: hard + +"d3-format@npm:^1.4.5": + version: 1.4.5 + resolution: "d3-format@npm:1.4.5" + checksum: 10c0/40800a2fb2182d2d711cea3acc2b8b2b3afdb6f644c51de77feb9b08a6150b14c753933d2fd4ad2f6f45130757b738673372c45b4b820466c560f3b1ec0b3ce8 + languageName: node + linkType: hard + +"d3-geo-projection@npm:^2.9.0": + version: 2.9.0 + resolution: "d3-geo-projection@npm:2.9.0" + dependencies: + commander: "npm:2" + d3-array: "npm:1" + d3-geo: "npm:^1.12.0" + resolve: "npm:^1.1.10" + bin: + geo2svg: bin/geo2svg + geograticule: bin/geograticule + geoproject: bin/geoproject + geoquantize: bin/geoquantize + geostitch: bin/geostitch + checksum: 10c0/eecbb87d1ffaea0a339035f7cc37d366fe877bb1c212f2034d8e44b14669815926f29bf8ca595beee7a620c82f10dc8cd67f461a94b79e0f9415a0aae7918a5d + languageName: node + linkType: hard + +"d3-geo@npm:^1.12.0, d3-geo@npm:^1.12.1": + version: 1.12.1 + resolution: "d3-geo@npm:1.12.1" + dependencies: + d3-array: "npm:1" + checksum: 10c0/ec46ff8fdd824df2fbcb9c6e7a6e8c778ecaa196ba1a3265fa6b58d32e526d258dda7d6033698f9625189d364d70f5a9b9a7f6f54fdefe8ef677c28e9765b602 + languageName: node + linkType: hard + +"d3-hierarchy@npm:^1.1.9": + version: 1.1.9 + resolution: "d3-hierarchy@npm:1.1.9" + checksum: 10c0/63b0ae0953bda076866b8705f8ea6fa1f67ded7ee99d98b20ef4364ce21868c292c9b45e887fde0f0dba1d0202466b2a87e7d5a6cc6388e759aadc5f055142e0 + languageName: node + linkType: hard + +"d3-interpolate@npm:^3.0.1": + version: 3.0.1 + resolution: "d3-interpolate@npm:3.0.1" + dependencies: + d3-color: "npm:1 - 3" + checksum: 10c0/19f4b4daa8d733906671afff7767c19488f51a43d251f8b7f484d5d3cfc36c663f0a66c38fe91eee30f40327443d799be17169f55a293a3ba949e84e57a33e6a + languageName: node + linkType: hard + +"d3-path@npm:1": + version: 1.0.9 + resolution: "d3-path@npm:1.0.9" + checksum: 10c0/e35e84df5abc18091f585725b8235e1fa97efc287571585427d3a3597301e6c506dea56b11dfb3c06ca5858b3eb7f02c1bf4f6a716aa9eade01c41b92d497eb5 + languageName: node + linkType: hard + +"d3-quadtree@npm:1": + version: 1.0.7 + resolution: "d3-quadtree@npm:1.0.7" + checksum: 10c0/90571c7bfc7ee2db4bb3f80b1b06f3c653858c365644c31a0ecf0adec525c0d8a70c4eaa88bc8d364b1fa3c919ee55cc55cf82396f4729d2a4baec2b95832492 + languageName: node + linkType: hard + +"d3-shape@npm:^1.2.0": + version: 1.3.7 + resolution: "d3-shape@npm:1.3.7" + dependencies: + d3-path: "npm:1" + checksum: 10c0/548057ce59959815decb449f15632b08e2a1bdce208f9a37b5f98ec7629dda986c2356bc7582308405ce68aedae7d47b324df41507404df42afaf352907577ae + languageName: node + linkType: hard + +"d3-time-format@npm:^2.2.3": + version: 2.3.0 + resolution: "d3-time-format@npm:2.3.0" + dependencies: + d3-time: "npm:1" + checksum: 10c0/4ca7b5b4ac8fcf4b7930a5dc4ee5f34b188ebd0a36029df2acee0f68b5028451c045c63a12e3970da8e9840548588bde3d366ef8ee7fcb107459d4a6ad11d8c5 + languageName: node + linkType: hard + +"d3-time@npm:1, d3-time@npm:^1.1.0": + version: 1.1.0 + resolution: "d3-time@npm:1.1.0" + checksum: 10c0/69ab137adff5b22d0fa148ea514a207bd9cd7d2c042ccf34a268f2ef73720b404f0be6e7b56c95650c53caf52080b5254e2a27f0a676f41d1dd22ef8872c8335 + languageName: node + linkType: hard + +"d3-timer@npm:1": + version: 1.0.10 + resolution: "d3-timer@npm:1.0.10" + checksum: 10c0/7e77030a206861e4e626754c689795d43f036fb07a7f8ca6360eb8b7cbe6f52bf43c9c4297ae9a9a906e4de594212702f83c0cde23d4e20d8689a4211e438155 + languageName: node + linkType: hard + +"d@npm:1, d@npm:^1.0.1, d@npm:^1.0.2": + version: 1.0.2 + resolution: "d@npm:1.0.2" + dependencies: + es5-ext: "npm:^0.10.64" + type: "npm:^2.7.2" + checksum: 10c0/3e6ede10cd3b77586c47da48423b62bed161bf1a48bdbcc94d87263522e22f5dfb0e678a6dba5323fdc14c5d8612b7f7eb9e7d9e37b2e2d67a7bf9f116dabe5a + languageName: node + linkType: hard + +"de-indent@npm:^1.0.2": + version: 1.0.2 + resolution: "de-indent@npm:1.0.2" + checksum: 10c0/7058ce58abd6dfc123dd204e36be3797abd419b59482a634605420f47ae97639d0c183ec5d1b904f308a01033f473673897afc2bd59bc620ebf1658763ef4291 + languageName: node + linkType: hard + +"debug@npm:2": + version: 2.6.9 + resolution: "debug@npm:2.6.9" + dependencies: + ms: "npm:2.0.0" + checksum: 10c0/121908fb839f7801180b69a7e218a40b5a0b718813b886b7d6bdb82001b931c938e2941d1e4450f33a1b1df1da653f5f7a0440c197f29fbf8a6e9d45ff6ef589 + languageName: node + linkType: hard + +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.3.1, debug@npm:^4.3.4, debug@npm:^4.4.0": + version: 4.4.1 + resolution: "debug@npm:4.4.1" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/d2b44bc1afd912b49bb7ebb0d50a860dc93a4dd7d946e8de94abc957bb63726b7dd5aa48c18c2386c379ec024c46692e15ed3ed97d481729f929201e671fcd55 + languageName: node + linkType: hard + +"debug@npm:^3.2.6": + version: 3.2.7 + resolution: "debug@npm:3.2.7" + dependencies: + ms: "npm:^2.1.1" + checksum: 10c0/37d96ae42cbc71c14844d2ae3ba55adf462ec89fd3a999459dec3833944cd999af6007ff29c780f1c61153bcaaf2c842d1e4ce1ec621e4fc4923244942e4a02a + languageName: node + linkType: hard + +"defined@npm:^1.0.0": + version: 1.0.1 + resolution: "defined@npm:1.0.1" + checksum: 10c0/357212c95fd69c3b431f4766440f1b10a8362d2663b86e3d7c139fe7fc98a1d5a4996b8b55ca62e97fb882f9887374b76944d29f9650a07993d98e7be86a804a + languageName: node + linkType: hard + +"detect-kerning@npm:^2.1.2": + version: 2.1.2 + resolution: "detect-kerning@npm:2.1.2" + checksum: 10c0/290f31729f4fc900fc0755a1dd5c5b210b03845b7b0b4ebe2ee29a19a905d7aac1d17adfb700e5ee3ea632cb248cc0acab3280a513b82633c1089daebdcf064d + languageName: node + linkType: hard + +"draw-svg-path@npm:^1.0.0": + version: 1.0.0 + resolution: "draw-svg-path@npm:1.0.0" + dependencies: + abs-svg-path: "npm:~0.1.1" + normalize-svg-path: "npm:~0.1.0" + checksum: 10c0/659482ae77a013940002292d25a42ff6a4817031ae705e1e9682c7c0b81616081c2ff4a982cd52fba2fbd8f3814aea0875c2831b91a73a85f631b9db1c3fc83d + languageName: node + linkType: hard + +"dtype@npm:^2.0.0": + version: 2.0.0 + resolution: "dtype@npm:2.0.0" + checksum: 10c0/f1478e537d4e90b8d99f0c4b4f28daf588f9b1a9a314eb137a582ab407e64e4867382cbd73cd87892f81c9f195e519d03b9017a3c47bba2cff3e706b9e6a18e5 + languageName: node + linkType: hard + +"dup@npm:^1.0.0": + version: 1.0.0 + resolution: "dup@npm:1.0.0" + checksum: 10c0/990cde73bbecf90ff58101d2fd96016930fbefd03f047a041a3cc83fcfa22e04c7a02ee4747707b5dabe87fc3a78814d95a9b20d9e6dc98738bd2388efde6f64 + languageName: node + linkType: hard + +"duplexify@npm:^3.4.5": + version: 3.7.1 + resolution: "duplexify@npm:3.7.1" + dependencies: + end-of-stream: "npm:^1.0.0" + inherits: "npm:^2.0.1" + readable-stream: "npm:^2.0.0" + stream-shift: "npm:^1.0.0" + checksum: 10c0/59d1440c1b4e3a4db35ae96933392703ce83518db1828d06b9b6322920d6cbbf0b7159e88be120385fe459e77f1eb0c7622f26e9ec1f47c9ff05c2b35747dbd3 + languageName: node + linkType: hard + +"earcut@npm:^2.1.5, earcut@npm:^2.2.2": + version: 2.2.4 + resolution: "earcut@npm:2.2.4" + checksum: 10c0/01ca51830edd2787819f904ae580087d37351f6048b4565e7add4b3da8a86b7bc19262ab2aa7fdc64129ab03af2d9cec8cccee4d230c82275f97ef285c79aafb + languageName: node + linkType: hard + +"earcut@npm:^3.0.0": + version: 3.0.2 + resolution: "earcut@npm:3.0.2" + checksum: 10c0/3d76da3d8a935244d59713edc70de71cdb5326a80b31c5c5cb96bc5b61f56b86ed35f032fffb66be7a4558e06efe1e94934f43ba6ca1b6c2af1420e87dd7ad71 + languageName: node + linkType: hard + +"eastasianwidth@npm:^0.2.0": + version: 0.2.0 + resolution: "eastasianwidth@npm:0.2.0" + checksum: 10c0/26f364ebcdb6395f95124fda411f63137a4bfb5d3a06453f7f23dfe52502905bd84e0488172e0f9ec295fdc45f05c23d5d91baf16bd26f0fe9acd777a188dc39 + languageName: node + linkType: hard + +"electron-to-chromium@npm:^1.5.173": + version: 1.5.194 + resolution: "electron-to-chromium@npm:1.5.194" + checksum: 10c0/7d72617857055d54552380b34be411933966fa1156dc8653e321d14e82e2af84114bac607e9e2926f885d560b2697a324981e4204d3da4e0f9604d4a468eeba1 + languageName: node + linkType: hard + +"element-size@npm:^1.1.1": + version: 1.1.1 + resolution: "element-size@npm:1.1.1" + checksum: 10c0/517560f4e0b2dbd0adfe5660bb2572625f605a6268e7983cf96c7584538bef8733fd34e213dc5f653eaea9db5c38069d6e7a3ab960f03c460bcd51e42ee1554d + languageName: node + linkType: hard + +"elementary-circuits-directed-graph@npm:^1.0.4": + version: 1.3.1 + resolution: "elementary-circuits-directed-graph@npm:1.3.1" + dependencies: + strongly-connected-components: "npm:^1.0.1" + checksum: 10c0/a6e8ee9e5724b8d15841e8d456340b25a46c2a501cef2b60a46f1a1808dfade47f2027c4a5e37be6ddafd31a78c3b58e01b12a4f6166649f89e2c9a52507d481 + languageName: node + linkType: hard + +"emoji-regex@npm:^8.0.0": + version: 8.0.0 + resolution: "emoji-regex@npm:8.0.0" + checksum: 10c0/b6053ad39951c4cf338f9092d7bfba448cdfd46fe6a2a034700b149ac9ffbc137e361cbd3c442297f86bed2e5f7576c1b54cc0a6bf8ef5106cc62f496af35010 + languageName: node + linkType: hard + +"emoji-regex@npm:^9.2.2": + version: 9.2.2 + resolution: "emoji-regex@npm:9.2.2" + checksum: 10c0/af014e759a72064cf66e6e694a7fc6b0ed3d8db680427b021a89727689671cefe9d04151b2cad51dbaf85d5ba790d061cd167f1cf32eb7b281f6368b3c181639 + languageName: node + linkType: hard + +"encoding@npm:^0.1.13": + version: 0.1.13 + resolution: "encoding@npm:0.1.13" + dependencies: + iconv-lite: "npm:^0.6.2" + checksum: 10c0/36d938712ff00fe1f4bac88b43bcffb5930c1efa57bbcdca9d67e1d9d6c57cfb1200fb01efe0f3109b2ce99b231f90779532814a81370a1bd3274a0f58585039 + languageName: node + linkType: hard + +"end-of-stream@npm:^1.0.0": + version: 1.4.5 + resolution: "end-of-stream@npm:1.4.5" + dependencies: + once: "npm:^1.4.0" + checksum: 10c0/b0701c92a10b89afb1cb45bf54a5292c6f008d744eb4382fa559d54775ff31617d1d7bc3ef617575f552e24fad2c7c1a1835948c66b3f3a4be0a6c1f35c883d8 + languageName: node + linkType: hard + +"entities@npm:^4.5.0": + version: 4.5.0 + resolution: "entities@npm:4.5.0" + checksum: 10c0/5b039739f7621f5d1ad996715e53d964035f75ad3b9a4d38c6b3804bb226e282ffeae2443624d8fdd9c47d8e926ae9ac009c54671243f0c3294c26af7cc85250 + languageName: node + linkType: hard + +"env-paths@npm:^2.2.0": + version: 2.2.1 + resolution: "env-paths@npm:2.2.1" + checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4 + languageName: node + linkType: hard + +"err-code@npm:^2.0.2": + version: 2.0.3 + resolution: "err-code@npm:2.0.3" + checksum: 10c0/b642f7b4dd4a376e954947550a3065a9ece6733ab8e51ad80db727aaae0817c2e99b02a97a3d6cecc648a97848305e728289cf312d09af395403a90c9d4d8a66 + languageName: node + linkType: hard + +"es5-ext@npm:^0.10.35, es5-ext@npm:^0.10.46, es5-ext@npm:^0.10.62, es5-ext@npm:^0.10.64, es5-ext@npm:~0.10.14": + version: 0.10.64 + resolution: "es5-ext@npm:0.10.64" + dependencies: + es6-iterator: "npm:^2.0.3" + es6-symbol: "npm:^3.1.3" + esniff: "npm:^2.0.1" + next-tick: "npm:^1.1.0" + checksum: 10c0/4459b6ae216f3c615db086e02437bdfde851515a101577fd61b19f9b3c1ad924bab4d197981eb7f0ccb915f643f2fc10ff76b97a680e96cbb572d15a27acd9a3 + languageName: node + linkType: hard + +"es6-iterator@npm:^2.0.3": + version: 2.0.3 + resolution: "es6-iterator@npm:2.0.3" + dependencies: + d: "npm:1" + es5-ext: "npm:^0.10.35" + es6-symbol: "npm:^3.1.1" + checksum: 10c0/91f20b799dba28fb05bf623c31857fc1524a0f1c444903beccaf8929ad196c8c9ded233e5ac7214fc63a92b3f25b64b7f2737fcca8b1f92d2d96cf3ac902f5d8 + languageName: node + linkType: hard + +"es6-symbol@npm:^3.1.1, es6-symbol@npm:^3.1.3": + version: 3.1.4 + resolution: "es6-symbol@npm:3.1.4" + dependencies: + d: "npm:^1.0.2" + ext: "npm:^1.7.0" + checksum: 10c0/777bf3388db5d7919e09a0fd175aa5b8a62385b17cb2227b7a137680cba62b4d9f6193319a102642aa23d5840d38a62e4784f19cfa5be4a2210a3f0e9b23d15d + languageName: node + linkType: hard + +"es6-weak-map@npm:^2.0.3": + version: 2.0.3 + resolution: "es6-weak-map@npm:2.0.3" + dependencies: + d: "npm:1" + es5-ext: "npm:^0.10.46" + es6-iterator: "npm:^2.0.3" + es6-symbol: "npm:^3.1.1" + checksum: 10c0/460932be9542473dbbddd183e21c15a66cfec1b2c17dae2b514e190d6fb2896b7eb683783d4b36da036609d2e1c93d2815f21b374dfccaf02a8978694c2f7b67 + languageName: node + linkType: hard + +"esbuild@npm:^0.25.0": + version: 0.25.8 + resolution: "esbuild@npm:0.25.8" + dependencies: + "@esbuild/aix-ppc64": "npm:0.25.8" + "@esbuild/android-arm": "npm:0.25.8" + "@esbuild/android-arm64": "npm:0.25.8" + "@esbuild/android-x64": "npm:0.25.8" + "@esbuild/darwin-arm64": "npm:0.25.8" + "@esbuild/darwin-x64": "npm:0.25.8" + "@esbuild/freebsd-arm64": "npm:0.25.8" + "@esbuild/freebsd-x64": "npm:0.25.8" + "@esbuild/linux-arm": "npm:0.25.8" + "@esbuild/linux-arm64": "npm:0.25.8" + "@esbuild/linux-ia32": "npm:0.25.8" + "@esbuild/linux-loong64": "npm:0.25.8" + "@esbuild/linux-mips64el": "npm:0.25.8" + "@esbuild/linux-ppc64": "npm:0.25.8" + "@esbuild/linux-riscv64": "npm:0.25.8" + "@esbuild/linux-s390x": "npm:0.25.8" + "@esbuild/linux-x64": "npm:0.25.8" + "@esbuild/netbsd-arm64": "npm:0.25.8" + "@esbuild/netbsd-x64": "npm:0.25.8" + "@esbuild/openbsd-arm64": "npm:0.25.8" + "@esbuild/openbsd-x64": "npm:0.25.8" + "@esbuild/openharmony-arm64": "npm:0.25.8" + "@esbuild/sunos-x64": "npm:0.25.8" + "@esbuild/win32-arm64": "npm:0.25.8" + "@esbuild/win32-ia32": "npm:0.25.8" + "@esbuild/win32-x64": "npm:0.25.8" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-arm64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-arm64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/openharmony-arm64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 10c0/43747a25e120d5dd9ce75c82f57306580d715647c8db4f4a0a84e73b04cf16c27572d3937d3cfb95d5ac3266a4d1bbd3913e3d76ae719693516289fc86f8a5fd + languageName: node + linkType: hard + +"escalade@npm:^3.2.0": + version: 3.2.0 + resolution: "escalade@npm:3.2.0" + checksum: 10c0/ced4dd3a78e15897ed3be74e635110bbf3b08877b0a41be50dcb325ee0e0b5f65fc2d50e9845194d7c4633f327e2e1c6cce00a71b617c5673df0374201d67f65 + languageName: node + linkType: hard + +"escodegen@npm:^2.1.0": + version: 2.1.0 + resolution: "escodegen@npm:2.1.0" + dependencies: + esprima: "npm:^4.0.1" + estraverse: "npm:^5.2.0" + esutils: "npm:^2.0.2" + source-map: "npm:~0.6.1" + dependenciesMeta: + source-map: + optional: true + bin: + escodegen: bin/escodegen.js + esgenerate: bin/esgenerate.js + checksum: 10c0/e1450a1f75f67d35c061bf0d60888b15f62ab63aef9df1901cffc81cffbbb9e8b3de237c5502cf8613a017c1df3a3003881307c78835a1ab54d8c8d2206e01d3 + languageName: node + linkType: hard + +"esniff@npm:^2.0.1": + version: 2.0.1 + resolution: "esniff@npm:2.0.1" + dependencies: + d: "npm:^1.0.1" + es5-ext: "npm:^0.10.62" + event-emitter: "npm:^0.3.5" + type: "npm:^2.7.2" + checksum: 10c0/7efd8d44ac20e5db8cb0ca77eb65eca60628b2d0f3a1030bcb05e71cc40e6e2935c47b87dba3c733db12925aa5b897f8e0e7a567a2c274206f184da676ea2e65 + languageName: node + linkType: hard + +"esprima@npm:^4.0.1": + version: 4.0.1 + resolution: "esprima@npm:4.0.1" + bin: + esparse: ./bin/esparse.js + esvalidate: ./bin/esvalidate.js + checksum: 10c0/ad4bab9ead0808cf56501750fd9d3fb276f6b105f987707d059005d57e182d18a7c9ec7f3a01794ebddcca676773e42ca48a32d67a250c9d35e009ca613caba3 + languageName: node + linkType: hard + +"estraverse@npm:^5.2.0": + version: 5.3.0 + resolution: "estraverse@npm:5.3.0" + checksum: 10c0/1ff9447b96263dec95d6d67431c5e0771eb9776427421260a3e2f0fdd5d6bd4f8e37a7338f5ad2880c9f143450c9b1e4fc2069060724570a49cf9cf0312bd107 + languageName: node + linkType: hard + +"estree-walker@npm:^2.0.2": + version: 2.0.2 + resolution: "estree-walker@npm:2.0.2" + checksum: 10c0/53a6c54e2019b8c914dc395890153ffdc2322781acf4bd7d1a32d7aedc1710807bdcd866ac133903d5629ec601fbb50abe8c2e5553c7f5a0afdd9b6af6c945af + languageName: node + linkType: hard + +"esutils@npm:^2.0.2": + version: 2.0.3 + resolution: "esutils@npm:2.0.3" + checksum: 10c0/9a2fe69a41bfdade834ba7c42de4723c97ec776e40656919c62cbd13607c45e127a003f05f724a1ea55e5029a4cf2de444b13009f2af71271e42d93a637137c7 + languageName: node + linkType: hard + +"event-emitter@npm:^0.3.5": + version: 0.3.5 + resolution: "event-emitter@npm:0.3.5" + dependencies: + d: "npm:1" + es5-ext: "npm:~0.10.14" + checksum: 10c0/75082fa8ffb3929766d0f0a063bfd6046bd2a80bea2666ebaa0cfd6f4a9116be6647c15667bea77222afc12f5b4071b68d393cf39fdaa0e8e81eda006160aff0 + languageName: node + linkType: hard + +"events@npm:^3.2.0": + version: 3.3.0 + resolution: "events@npm:3.3.0" + checksum: 10c0/d6b6f2adbccbcda74ddbab52ed07db727ef52e31a61ed26db9feb7dc62af7fc8e060defa65e5f8af9449b86b52cc1a1f6a79f2eafcf4e62add2b7a1fa4a432f6 + languageName: node + linkType: hard + +"exponential-backoff@npm:^3.1.1": + version: 3.1.2 + resolution: "exponential-backoff@npm:3.1.2" + checksum: 10c0/d9d3e1eafa21b78464297df91f1776f7fbaa3d5e3f7f0995648ca5b89c069d17055033817348d9f4a43d1c20b0eab84f75af6991751e839df53e4dfd6f22e844 + languageName: node + linkType: hard + +"exsolve@npm:^1.0.7": + version: 1.0.7 + resolution: "exsolve@npm:1.0.7" + checksum: 10c0/4479369d0bd84bb7e0b4f5d9bc18d26a89b6dbbbccd73f9d383d14892ef78ddbe159e01781055342f83dc00ebe90044036daf17ddf55cc21e2cac6609aa15631 + languageName: node + linkType: hard + +"ext@npm:^1.7.0": + version: 1.7.0 + resolution: "ext@npm:1.7.0" + dependencies: + type: "npm:^2.7.2" + checksum: 10c0/a8e5f34e12214e9eee3a4af3b5c9d05ba048f28996450975b369fc86e5d0ef13b6df0615f892f5396a9c65d616213c25ec5b0ad17ef42eac4a500512a19da6c7 + languageName: node + linkType: hard + +"falafel@npm:^2.1.0": + version: 2.2.5 + resolution: "falafel@npm:2.2.5" + dependencies: + acorn: "npm:^7.1.1" + isarray: "npm:^2.0.1" + checksum: 10c0/8c65a82d6b1d84928373bd1f4ba7452bce2936b3761558d770163b637930db70a9f79f296caaf6b3c63262cb0c9501a727061ee75224fb7a5a9334dadd1ff787 + languageName: node + linkType: hard + +"fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": + version: 3.1.3 + resolution: "fast-deep-equal@npm:3.1.3" + checksum: 10c0/40dedc862eb8992c54579c66d914635afbec43350afbbe991235fdcb4e3a8d5af1b23ae7e79bef7d4882d0ecee06c3197488026998fb19f72dc95acff1d1b1d0 + languageName: node + linkType: hard + +"fast-isnumeric@npm:^1.1.4": + version: 1.1.4 + resolution: "fast-isnumeric@npm:1.1.4" + dependencies: + is-string-blank: "npm:^1.0.1" + checksum: 10c0/595da81fcabe7bebd62429a4fcc5b150aa576a744209e769c9c8cd2a1f0d2db546ab71df9de6f50a41768fa2daf35171b8270a0c3aa25235022a10ebda7dcec8 + languageName: node + linkType: hard + +"fast-uri@npm:^3.0.1": + version: 3.0.6 + resolution: "fast-uri@npm:3.0.6" + checksum: 10c0/74a513c2af0584448aee71ce56005185f81239eab7a2343110e5bad50c39ad4fb19c5a6f99783ead1cac7ccaf3461a6034fda89fffa2b30b6d99b9f21c2f9d29 + languageName: node + linkType: hard + +"fdir@npm:^6.4.4, fdir@npm:^6.4.6": + version: 6.4.6 + resolution: "fdir@npm:6.4.6" + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + checksum: 10c0/45b559cff889934ebb8bc498351e5acba40750ada7e7d6bde197768d2fa67c149be8ae7f8ff34d03f4e1eb20f2764116e56440aaa2f6689e9a4aa7ef06acafe9 + languageName: node + linkType: hard + +"flatten-vertex-data@npm:^1.0.2": + version: 1.0.2 + resolution: "flatten-vertex-data@npm:1.0.2" + dependencies: + dtype: "npm:^2.0.0" + checksum: 10c0/ef4e03483da4cc839f9f30f9ad419143ace7b9867fbfc55d87c62dfbd613ce99388628995f14580230292d38147c48e1b41cd4d574b2cd86ad63c6ca18e955bf + languageName: node + linkType: hard + +"font-atlas@npm:^2.1.0": + version: 2.1.0 + resolution: "font-atlas@npm:2.1.0" + dependencies: + css-font: "npm:^1.0.0" + checksum: 10c0/b012db553a168de977fbdebd3bd36f29fc7686d2382198ec84c81e45f55356002736f05045ed35acebc6c1277688f4322f7c979e9a58a3aecf3cfb681eac5665 + languageName: node + linkType: hard + +"font-measure@npm:^1.2.2": + version: 1.2.2 + resolution: "font-measure@npm:1.2.2" + dependencies: + css-font: "npm:^1.2.0" + checksum: 10c0/97c4590b91078cce928a6ba4b8762b5a3fb6eedf4ecf59aeccd93c0031f3a952360221622802ee41e737d720c8f385520d4467c650a7d682924085bc782af8d5 + languageName: node + linkType: hard + +"foreground-child@npm:^3.1.0": + version: 3.3.1 + resolution: "foreground-child@npm:3.3.1" + dependencies: + cross-spawn: "npm:^7.0.6" + signal-exit: "npm:^4.0.1" + checksum: 10c0/8986e4af2430896e65bc2788d6679067294d6aee9545daefc84923a0a4b399ad9c7a3ea7bd8c0b2b80fdf4a92de4c69df3f628233ff3224260e9c1541a9e9ed3 + languageName: node + linkType: hard + +"from2@npm:^2.3.0": + version: 2.3.0 + resolution: "from2@npm:2.3.0" + dependencies: + inherits: "npm:^2.0.1" + readable-stream: "npm:^2.0.0" + checksum: 10c0/f87f7a2e4513244d551454a7f8324ef1f7837864a8701c536417286ec19ff4915606b1dfa8909a21b7591ebd8440ffde3642f7c303690b9a4d7c832d62248aa1 + languageName: node + linkType: hard + +"fs-extra@npm:~11.3.0": + version: 11.3.0 + resolution: "fs-extra@npm:11.3.0" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 10c0/5f95e996186ff45463059feb115a22fb048bdaf7e487ecee8a8646c78ed8fdca63630e3077d4c16ce677051f5e60d3355a06f3cd61f3ca43f48cc58822a44d0a + languageName: node + linkType: hard + +"fs-minipass@npm:^3.0.0": + version: 3.0.3 + resolution: "fs-minipass@npm:3.0.3" + dependencies: + minipass: "npm:^7.0.3" + checksum: 10c0/63e80da2ff9b621e2cb1596abcb9207f1cf82b968b116ccd7b959e3323144cce7fb141462200971c38bbf2ecca51695069db45265705bed09a7cd93ae5b89f94 + languageName: node + linkType: hard + +"fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": + version: 2.3.3 + resolution: "fsevents@npm:2.3.3" + dependencies: + node-gyp: "npm:latest" + checksum: 10c0/a1f0c44595123ed717febbc478aa952e47adfc28e2092be66b8ab1635147254ca6cfe1df792a8997f22716d4cbafc73309899ff7bfac2ac3ad8cf2e4ecc3ec60 + conditions: os=darwin + languageName: node + linkType: hard + +"fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": + version: 2.3.3 + resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1" + dependencies: + node-gyp: "npm:latest" + conditions: os=darwin + languageName: node + linkType: hard + +"function-bind@npm:^1.1.2": + version: 1.1.2 + resolution: "function-bind@npm:1.1.2" + checksum: 10c0/d8680ee1e5fcd4c197e4ac33b2b4dce03c71f4d91717292785703db200f5c21f977c568d28061226f9b5900cbcd2c84463646134fd5337e7925e0942bc3f46d5 + languageName: node + linkType: hard + +"gensync@npm:^1.0.0-beta.2": + version: 1.0.0-beta.2 + resolution: "gensync@npm:1.0.0-beta.2" + checksum: 10c0/782aba6cba65b1bb5af3b095d96249d20edbe8df32dbf4696fd49be2583faf676173bf4809386588828e4dd76a3354fcbeb577bab1c833ccd9fc4577f26103f8 + languageName: node + linkType: hard + +"geojson-vt@npm:^3.2.1": + version: 3.2.1 + resolution: "geojson-vt@npm:3.2.1" + checksum: 10c0/db2fc1a452067ee8436fa86e5a138f6ebd3d64893e0af097bc1cc960ec63d67c0ce77444711e9583036192d6bf9ce754bf9b56a76789684fc0fea4d52321fffc + languageName: node + linkType: hard + +"geojson-vt@npm:^4.0.2": + version: 4.0.2 + resolution: "geojson-vt@npm:4.0.2" + checksum: 10c0/f2ca14d868e46f6262f5d3862f8e38a2418ecf9bd7cd6938a67bf87f1e2f8fbf65345d95996711b07cdf8f05ef512be0e2c20f0a8179c6393c2fd41badcb0532 + languageName: node + linkType: hard + +"get-canvas-context@npm:^1.0.1": + version: 1.0.2 + resolution: "get-canvas-context@npm:1.0.2" + checksum: 10c0/bfb1eefb3ecce1ffcc7b5bffd729c5b7c9873e8cd52ac1f9c3592a11d08e4ffae296a2dfb69039df91a687233b4e989729e888754ab7a1d10d14b269caea463b + languageName: node + linkType: hard + +"get-stream@npm:^6.0.1": + version: 6.0.1 + resolution: "get-stream@npm:6.0.1" + checksum: 10c0/49825d57d3fd6964228e6200a58169464b8e8970489b3acdc24906c782fb7f01f9f56f8e6653c4a50713771d6658f7cfe051e5eb8c12e334138c9c918b296341 + languageName: node + linkType: hard + +"gl-mat4@npm:^1.2.0": + version: 1.2.0 + resolution: "gl-mat4@npm:1.2.0" + checksum: 10c0/0cbff006c65bf2b72fae325a10f9940ebf8d1f4c92337efb10c0322a61e03a1921ec5a8f330738fe06fe66f8757e12df0c914fd05155436b9ab5263ccc8b0f66 + languageName: node + linkType: hard + +"gl-matrix@npm:^3.2.1, gl-matrix@npm:^3.4.3": + version: 3.4.4 + resolution: "gl-matrix@npm:3.4.4" + checksum: 10c0/9aa022ffac0d158212ad0cd29939864ad919ac31cd5dc5a5d35e9d66bb62679ddf152ff7b2173ded20131045e40572b87f31b26a920be2a7583a1516b13b5b4b + languageName: node + linkType: hard + +"gl-text@npm:^1.4.0": + version: 1.4.0 + resolution: "gl-text@npm:1.4.0" + dependencies: + bit-twiddle: "npm:^1.0.2" + color-normalize: "npm:^1.5.0" + css-font: "npm:^1.2.0" + detect-kerning: "npm:^2.1.2" + es6-weak-map: "npm:^2.0.3" + flatten-vertex-data: "npm:^1.0.2" + font-atlas: "npm:^2.1.0" + font-measure: "npm:^1.2.2" + gl-util: "npm:^3.1.2" + is-plain-obj: "npm:^1.1.0" + object-assign: "npm:^4.1.1" + parse-rect: "npm:^1.2.0" + parse-unit: "npm:^1.0.1" + pick-by-alias: "npm:^1.2.0" + regl: "npm:^2.0.0" + to-px: "npm:^1.0.1" + typedarray-pool: "npm:^1.1.0" + checksum: 10c0/bb694f69bd6b8c6186482990c12a3d07c54fc92d7c13623ca3cffd3c564045336e7db00d638623517dbd1678cf25986515f6db8f8a984b119867c60bfab6069d + languageName: node + linkType: hard + +"gl-util@npm:^3.1.2": + version: 3.1.3 + resolution: "gl-util@npm:3.1.3" + dependencies: + is-browser: "npm:^2.0.1" + is-firefox: "npm:^1.0.3" + is-plain-obj: "npm:^1.1.0" + number-is-integer: "npm:^1.0.1" + object-assign: "npm:^4.1.0" + pick-by-alias: "npm:^1.2.0" + weak-map: "npm:^1.0.5" + checksum: 10c0/4cff7edbf447d5d6e2260769a46dd9037f631fb6413d0de609d6efe7519b683d3f022f03ee5031079bdf11f276bd2c17c130baffe69a73162fe5f44c88a19d77 + languageName: node + linkType: hard + +"glob@npm:^10.2.2": + version: 10.4.5 + resolution: "glob@npm:10.4.5" + dependencies: + foreground-child: "npm:^3.1.0" + jackspeak: "npm:^3.1.2" + minimatch: "npm:^9.0.4" + minipass: "npm:^7.1.2" + package-json-from-dist: "npm:^1.0.0" + path-scurry: "npm:^1.11.1" + bin: + glob: dist/esm/bin.mjs + checksum: 10c0/19a9759ea77b8e3ca0a43c2f07ecddc2ad46216b786bb8f993c445aee80d345925a21e5280c7b7c6c59e860a0154b84e4b2b60321fea92cd3c56b4a7489f160e + languageName: node + linkType: hard + +"global-prefix@npm:^4.0.0": + version: 4.0.0 + resolution: "global-prefix@npm:4.0.0" + dependencies: + ini: "npm:^4.1.3" + kind-of: "npm:^6.0.3" + which: "npm:^4.0.0" + checksum: 10c0/a757bba494f0542a34e82716450506a076e769e05993a9739aea3bf27c3f710cd5635d0f4c1c242650c0dc133bf20a8e8fc9cfd3d1d1c371717218ef561f1ac4 + languageName: node + linkType: hard + +"glsl-inject-defines@npm:^1.0.1": + version: 1.0.3 + resolution: "glsl-inject-defines@npm:1.0.3" + dependencies: + glsl-token-inject-block: "npm:^1.0.0" + glsl-token-string: "npm:^1.0.1" + glsl-tokenizer: "npm:^2.0.2" + checksum: 10c0/a91217705737773ec33123627c679992b085ca810c3b02943834801d8cbbaa892c4a8ae6d44047685fdd0d6c871accca2c64e68c998c10e236c27ea1d5af8fb3 + languageName: node + linkType: hard + +"glsl-resolve@npm:0.0.1": + version: 0.0.1 + resolution: "glsl-resolve@npm:0.0.1" + dependencies: + resolve: "npm:^0.6.1" + xtend: "npm:^2.1.2" + checksum: 10c0/2ae3220dc55af84bd21e4014c4cb0118381221d13419750fd0651e08c1a69d5b0c14c7b3c4362594ab8dcd3a0ae103d206c465b67304e2774ad7e5a7ef382655 + languageName: node + linkType: hard + +"glsl-token-assignments@npm:^2.0.0": + version: 2.0.2 + resolution: "glsl-token-assignments@npm:2.0.2" + checksum: 10c0/da50a255b2c8ced68154a6451e1bb4b9c898399e7751c2084a8f942fd96596701b2281976dec974187c27b5b17ec18affe5fd74ecc4a2e119b427fa07593a4e9 + languageName: node + linkType: hard + +"glsl-token-defines@npm:^1.0.0": + version: 1.0.0 + resolution: "glsl-token-defines@npm:1.0.0" + dependencies: + glsl-tokenizer: "npm:^2.0.0" + checksum: 10c0/a1282c01186ea93a6a398c0af74f8857e82ead6e2d7201353edb88a6e7fd5852a575cc49a5d0e7cf116ca346c32569bb64419a8697cf9be878f5d070ca07bd60 + languageName: node + linkType: hard + +"glsl-token-depth@npm:^1.1.0, glsl-token-depth@npm:^1.1.1": + version: 1.1.2 + resolution: "glsl-token-depth@npm:1.1.2" + checksum: 10c0/e9a476fee487080c2247bb5edde34ee15d027dfe66802ec1cb501d5a0a99964faaa06f2643e575089acd931a917735d3d10045743f0c3e5f1c482de94cb9bd6c + languageName: node + linkType: hard + +"glsl-token-descope@npm:^1.0.2": + version: 1.0.2 + resolution: "glsl-token-descope@npm:1.0.2" + dependencies: + glsl-token-assignments: "npm:^2.0.0" + glsl-token-depth: "npm:^1.1.0" + glsl-token-properties: "npm:^1.0.0" + glsl-token-scope: "npm:^1.1.0" + checksum: 10c0/7018b13194d5cec87d97c3ce0dd64c554fd9d6b547854bc1789dad407c079b5d53445649d930b18c9a1eb8704666c37821ccc796b865fc751ff66c7e5cf04413 + languageName: node + linkType: hard + +"glsl-token-inject-block@npm:^1.0.0": + version: 1.1.0 + resolution: "glsl-token-inject-block@npm:1.1.0" + checksum: 10c0/d5ed326f2b8e016997e201316bca7f02bf38cc75e5b6a965819e0819d67aadd1b5c5f236acacabb125e2c3383b5a9f096ad9aed3fb469bbc5014bc7990797641 + languageName: node + linkType: hard + +"glsl-token-properties@npm:^1.0.0": + version: 1.0.1 + resolution: "glsl-token-properties@npm:1.0.1" + checksum: 10c0/fa63c248648861bb1fde5d49cb000f930c8a3864c02cdc2f7d62ff669a4fdb1458f3ea4fceac993a94440d8a4883395698d225e8d7b18c01a42bf95c997667d4 + languageName: node + linkType: hard + +"glsl-token-scope@npm:^1.1.0, glsl-token-scope@npm:^1.1.1": + version: 1.1.2 + resolution: "glsl-token-scope@npm:1.1.2" + checksum: 10c0/5b5dd2cb78d63ec7c52d3134aabcdf3a0d0e7b1f3d42f6a45169485ff3b31ecba0ec374ceb59a6ebb16e0d5e3b24b2e247faa7bda4e7c56faea02c44110e0ef4 + languageName: node + linkType: hard + +"glsl-token-string@npm:^1.0.1": + version: 1.0.1 + resolution: "glsl-token-string@npm:1.0.1" + checksum: 10c0/01ff4fbfa02956d5b10e96f98ab1066937993b2ff9a2c24d23bf72fd417b59d9849cd856815c84d6170d3715bd064c4fbd1cff540a0e315c1fa9b20f2f3306e6 + languageName: node + linkType: hard + +"glsl-token-whitespace-trim@npm:^1.0.0": + version: 1.0.0 + resolution: "glsl-token-whitespace-trim@npm:1.0.0" + checksum: 10c0/319dd8ff0db0c0109914711845e9fd3eda403ad53c9d499ea5a83167b277390186669242b2d1ca791efa7334ffc7fac58fe2d5172859cd79e51e12df909e5416 + languageName: node + linkType: hard + +"glsl-tokenizer@npm:^2.0.0, glsl-tokenizer@npm:^2.0.2": + version: 2.1.5 + resolution: "glsl-tokenizer@npm:2.1.5" + dependencies: + through2: "npm:^0.6.3" + checksum: 10c0/5bcc4491afb0b09032702af83f0afa8acadfa0f5c94a7a0d7c3498396cc35722e1915c976c8efef80a1a9ef0976ecb8ce4e044a34b16d7d537ae4c80f346ad19 + languageName: node + linkType: hard + +"glslify-bundle@npm:^5.0.0": + version: 5.1.1 + resolution: "glslify-bundle@npm:5.1.1" + dependencies: + glsl-inject-defines: "npm:^1.0.1" + glsl-token-defines: "npm:^1.0.0" + glsl-token-depth: "npm:^1.1.1" + glsl-token-descope: "npm:^1.0.2" + glsl-token-scope: "npm:^1.1.1" + glsl-token-string: "npm:^1.0.1" + glsl-token-whitespace-trim: "npm:^1.0.0" + glsl-tokenizer: "npm:^2.0.2" + murmurhash-js: "npm:^1.0.0" + shallow-copy: "npm:0.0.1" + checksum: 10c0/a3e79b5cd1f7aec444d29b855612ed6884a23b28bdc1656e180cdbc04ab0aad5e5f77a1c776bed335d4e9a0c781fd39295f045fa6c34e358fe7ccbe3606e8d8d + languageName: node + linkType: hard + +"glslify-deps@npm:^1.2.5": + version: 1.3.2 + resolution: "glslify-deps@npm:1.3.2" + dependencies: + "@choojs/findup": "npm:^0.2.0" + events: "npm:^3.2.0" + glsl-resolve: "npm:0.0.1" + glsl-tokenizer: "npm:^2.0.0" + graceful-fs: "npm:^4.1.2" + inherits: "npm:^2.0.1" + map-limit: "npm:0.0.1" + resolve: "npm:^1.0.0" + checksum: 10c0/d89d9ca0bcccb1eb0c2f31d21a0fad9592df5faa30fa63416064cfc4776a3ea38c9e0da2425d2ac5a5a5625012baac95a0bd056e3a525bbf1d149894c140b00f + languageName: node + linkType: hard + +"glslify@npm:^7.0.0": + version: 7.1.1 + resolution: "glslify@npm:7.1.1" + dependencies: + bl: "npm:^2.2.1" + concat-stream: "npm:^1.5.2" + duplexify: "npm:^3.4.5" + falafel: "npm:^2.1.0" + from2: "npm:^2.3.0" + glsl-resolve: "npm:0.0.1" + glsl-token-whitespace-trim: "npm:^1.0.0" + glslify-bundle: "npm:^5.0.0" + glslify-deps: "npm:^1.2.5" + minimist: "npm:^1.2.5" + resolve: "npm:^1.1.5" + stack-trace: "npm:0.0.9" + static-eval: "npm:^2.0.5" + through2: "npm:^2.0.1" + xtend: "npm:^4.0.0" + bin: + glslify: bin.js + checksum: 10c0/ccf277220047752ee9ddfb8e1398846a747ca8eb6601a71c4e34278b2e15845affbb52d4ef0023cb21bb0f52785b585c5af9189cc2f0abfca1ffab15c1b3f6f6 + languageName: node + linkType: hard + +"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.6": + version: 4.2.11 + resolution: "graceful-fs@npm:4.2.11" + checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2 + languageName: node + linkType: hard + +"grid-index@npm:^1.1.0": + version: 1.1.0 + resolution: "grid-index@npm:1.1.0" + checksum: 10c0/0ba2a622a52badc86642a002abee79b48c207092347e869528253e634573b9b55494db649fbd1779122d797aaa3b59e284023a96a7a5c666c7375f0e320f8f57 + languageName: node + linkType: hard + +"has-flag@npm:^4.0.0": + version: 4.0.0 + resolution: "has-flag@npm:4.0.0" + checksum: 10c0/2e789c61b7888d66993e14e8331449e525ef42aac53c627cc53d1c3334e768bcb6abdc4f5f0de1478a25beec6f0bd62c7549058b7ac53e924040d4f301f02fd1 + languageName: node + linkType: hard + +"has-hover@npm:^1.0.1": + version: 1.0.1 + resolution: "has-hover@npm:1.0.1" + dependencies: + is-browser: "npm:^2.0.1" + checksum: 10c0/c3abd4be00fc20b3e3ff84def23330174b13c46c76831b712444806421f2d9ac1d7d46c5e94bb207ea893a7b765ce0d5b92b3e1d741fc83d182bdd8e678b4d70 + languageName: node + linkType: hard + +"has-passive-events@npm:^1.0.0": + version: 1.0.0 + resolution: "has-passive-events@npm:1.0.0" + dependencies: + is-browser: "npm:^2.0.1" + checksum: 10c0/438e63c0c66274559bc74b2b4f8c1e93e8779caceee27141b59c87b984765b39d5fc5cf0f709a5ecc915cdc1138cf3d206daeece15fcfb41ec1c721ddbae05fc + languageName: node + linkType: hard + +"hasown@npm:^2.0.2": + version: 2.0.2 + resolution: "hasown@npm:2.0.2" + dependencies: + function-bind: "npm:^1.1.2" + checksum: 10c0/3769d434703b8ac66b209a4cca0737519925bbdb61dd887f93a16372b14694c63ff4e797686d87c90f08168e81082248b9b028bad60d4da9e0d1148766f56eb9 + languageName: node + linkType: hard + +"he@npm:^1.2.0": + version: 1.2.0 + resolution: "he@npm:1.2.0" + bin: + he: bin/he + checksum: 10c0/a27d478befe3c8192f006cdd0639a66798979dfa6e2125c6ac582a19a5ebfec62ad83e8382e6036170d873f46e4536a7e795bf8b95bf7c247f4cc0825ccc8c17 + languageName: node + linkType: hard + +"http-cache-semantics@npm:^4.1.1": + version: 4.2.0 + resolution: "http-cache-semantics@npm:4.2.0" + checksum: 10c0/45b66a945cf13ec2d1f29432277201313babf4a01d9e52f44b31ca923434083afeca03f18417f599c9ab3d0e7b618ceb21257542338b57c54b710463b4a53e37 + languageName: node + linkType: hard + +"http-proxy-agent@npm:^7.0.0": + version: 7.0.2 + resolution: "http-proxy-agent@npm:7.0.2" + dependencies: + agent-base: "npm:^7.1.0" + debug: "npm:^4.3.4" + checksum: 10c0/4207b06a4580fb85dd6dff521f0abf6db517489e70863dca1a0291daa7f2d3d2d6015a57bd702af068ea5cf9f1f6ff72314f5f5b4228d299c0904135d2aef921 + languageName: node + linkType: hard + +"https-proxy-agent@npm:^7.0.1": + version: 7.0.6 + resolution: "https-proxy-agent@npm:7.0.6" + dependencies: + agent-base: "npm:^7.1.2" + debug: "npm:4" + checksum: 10c0/f729219bc735edb621fa30e6e84e60ee5d00802b8247aac0d7b79b0bd6d4b3294737a337b93b86a0bd9e68099d031858a39260c976dc14cdbba238ba1f8779ac + languageName: node + linkType: hard + +"iconv-lite@npm:^0.4.4": + version: 0.4.24 + resolution: "iconv-lite@npm:0.4.24" + dependencies: + safer-buffer: "npm:>= 2.1.2 < 3" + checksum: 10c0/c6886a24cc00f2a059767440ec1bc00d334a89f250db8e0f7feb4961c8727118457e27c495ba94d082e51d3baca378726cd110aaf7ded8b9bbfd6a44760cf1d4 + languageName: node + linkType: hard + +"iconv-lite@npm:^0.6.2": + version: 0.6.3 + resolution: "iconv-lite@npm:0.6.3" + dependencies: + safer-buffer: "npm:>= 2.1.2 < 3.0.0" + checksum: 10c0/98102bc66b33fcf5ac044099d1257ba0b7ad5e3ccd3221f34dd508ab4070edff183276221684e1e0555b145fce0850c9f7d2b60a9fcac50fbb4ea0d6e845a3b1 + languageName: node + linkType: hard + +"ieee754@npm:^1.1.12": + version: 1.2.1 + resolution: "ieee754@npm:1.2.1" + checksum: 10c0/b0782ef5e0935b9f12883a2e2aa37baa75da6e66ce6515c168697b42160807d9330de9a32ec1ed73149aea02e0d822e572bca6f1e22bdcbd2149e13b050b17bb + languageName: node + linkType: hard + +"import-lazy@npm:~4.0.0": + version: 4.0.0 + resolution: "import-lazy@npm:4.0.0" + checksum: 10c0/a3520313e2c31f25c0b06aa66d167f329832b68a4f957d7c9daf6e0fa41822b6e84948191648b9b9d8ca82f94740cdf15eecf2401a5b42cd1c33fd84f2225cca + languageName: node + linkType: hard + +"imurmurhash@npm:^0.1.4": + version: 0.1.4 + resolution: "imurmurhash@npm:0.1.4" + checksum: 10c0/8b51313850dd33605c6c9d3fd9638b714f4c4c40250cff658209f30d40da60f78992fb2df5dabee4acf589a6a82bbc79ad5486550754bd9ec4e3fc0d4a57d6a6 + languageName: node + linkType: hard + +"inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:~2.0.1, inherits@npm:~2.0.3": + version: 2.0.4 + resolution: "inherits@npm:2.0.4" + checksum: 10c0/4e531f648b29039fb7426fb94075e6545faa1eb9fe83c29f0b6d9e7263aceb4289d2d4557db0d428188eeb449cc7c5e77b0a0b2c4e248ff2a65933a0dee49ef2 + languageName: node + linkType: hard + +"ini@npm:^4.1.3": + version: 4.1.3 + resolution: "ini@npm:4.1.3" + checksum: 10c0/0d27eff094d5f3899dd7c00d0c04ea733ca03a8eb6f9406ce15daac1a81de022cb417d6eaff7e4342451ffa663389c565ffc68d6825eaf686bf003280b945764 + languageName: node + linkType: hard + +"ip-address@npm:^9.0.5": + version: 9.0.5 + resolution: "ip-address@npm:9.0.5" + dependencies: + jsbn: "npm:1.1.0" + sprintf-js: "npm:^1.1.3" + checksum: 10c0/331cd07fafcb3b24100613e4b53e1a2b4feab11e671e655d46dc09ee233da5011284d09ca40c4ecbdfe1d0004f462958675c224a804259f2f78d2465a87824bc + languageName: node + linkType: hard + +"is-browser@npm:^2.0.1": + version: 2.1.0 + resolution: "is-browser@npm:2.1.0" + checksum: 10c0/107cb5211009823df2c3001e419bd9806472f9f2ca81e87b2e60b36c0a4ac709dc5f093d415c372d37758a39f22c98fd5bff060c1d0cfbb74c694b41d3df75c9 + languageName: node + linkType: hard + +"is-core-module@npm:^2.16.0": + version: 2.16.1 + resolution: "is-core-module@npm:2.16.1" + dependencies: + hasown: "npm:^2.0.2" + checksum: 10c0/898443c14780a577e807618aaae2b6f745c8538eca5c7bc11388a3f2dc6de82b9902bcc7eb74f07be672b11bbe82dd6a6edded44a00cb3d8f933d0459905eedd + languageName: node + linkType: hard + +"is-finite@npm:^1.0.1": + version: 1.1.0 + resolution: "is-finite@npm:1.1.0" + checksum: 10c0/ca6bc7a0321b339f098e657bd4cbf4bb2410f5a11f1b9adb1a1a9ab72288b64368e8251326cb1f74e985f2779299cec3e1f1e558b68ce7e1e2c9be17b7cfd626 + languageName: node + linkType: hard + +"is-firefox@npm:^1.0.3": + version: 1.0.3 + resolution: "is-firefox@npm:1.0.3" + checksum: 10c0/05acae8ad7f836088dd735f78c2da298f6b5bf2141498b214a370f4a99a22f837a130ebb3bce2320ecfcd68783f0eda231a04b3b5015b5894a5a297b16357bc2 + languageName: node + linkType: hard + +"is-fullwidth-code-point@npm:^3.0.0": + version: 3.0.0 + resolution: "is-fullwidth-code-point@npm:3.0.0" + checksum: 10c0/bb11d825e049f38e04c06373a8d72782eee0205bda9d908cc550ccb3c59b99d750ff9537982e01733c1c94a58e35400661f57042158ff5e8f3e90cf936daf0fc + languageName: node + linkType: hard + +"is-iexplorer@npm:^1.0.0": + version: 1.0.0 + resolution: "is-iexplorer@npm:1.0.0" + checksum: 10c0/f1e9483fe0675b0a8424f0d4e07fe33508452760f221bad609ff28c8834e8decbdaa080727bb54da8414e0420c5184f761267d86cdddad3897062701f31eb49d + languageName: node + linkType: hard + +"is-mobile@npm:^4.0.0": + version: 4.0.0 + resolution: "is-mobile@npm:4.0.0" + checksum: 10c0/7d1f1c9ead3f140728318df7b1d6f2f19f28d96bf09c3a9016fe473ccccd32c4d03a01aeec68b612d48f1c0f776e7f1f18a1d83a7e95fb8199b4eb8536db01bc + languageName: node + linkType: hard + +"is-obj@npm:^1.0.1": + version: 1.0.1 + resolution: "is-obj@npm:1.0.1" + checksum: 10c0/5003acba0af7aa47dfe0760e545a89bbac89af37c12092c3efadc755372cdaec034f130e7a3653a59eb3c1843cfc72ca71eaf1a6c3bafe5a0bab3611a47f9945 + languageName: node + linkType: hard + +"is-plain-obj@npm:^1.1.0": + version: 1.1.0 + resolution: "is-plain-obj@npm:1.1.0" + checksum: 10c0/daaee1805add26f781b413fdf192fc91d52409583be30ace35c82607d440da63cc4cac0ac55136716688d6c0a2c6ef3edb2254fecbd1fe06056d6bd15975ee8c + languageName: node + linkType: hard + +"is-string-blank@npm:^1.0.1": + version: 1.0.1 + resolution: "is-string-blank@npm:1.0.1" + checksum: 10c0/2e664a061fb9354f6eccffdd7d662051d19ce951f59ae25392b871f796e06dc82659fb68560b267ccc81b700c1078c0fb8e31959955d759c2f3713015ccfb60f + languageName: node + linkType: hard + +"is-svg-path@npm:^1.0.1": + version: 1.0.2 + resolution: "is-svg-path@npm:1.0.2" + checksum: 10c0/59596bdb3e3a748e654c9c2362a55234ff7350131de235c49b9794e8bbdbeab57f2f06803ec5dbfb5e65a023967ff1322cc75135b841fa82f88f032e1cb407d5 + languageName: node + linkType: hard + +"isarray@npm:0.0.1": + version: 0.0.1 + resolution: "isarray@npm:0.0.1" + checksum: 10c0/ed1e62da617f71fe348907c71743b5ed550448b455f8d269f89a7c7ddb8ae6e962de3dab6a74a237b06f5eb7f6ece7a45ada8ce96d87fe972926530f91ae3311 + languageName: node + linkType: hard + +"isarray@npm:^2.0.1": + version: 2.0.5 + resolution: "isarray@npm:2.0.5" + checksum: 10c0/4199f14a7a13da2177c66c31080008b7124331956f47bca57dd0b6ea9f11687aa25e565a2c7a2b519bc86988d10398e3049a1f5df13c9f6b7664154690ae79fd + languageName: node + linkType: hard + +"isarray@npm:~1.0.0": + version: 1.0.0 + resolution: "isarray@npm:1.0.0" + checksum: 10c0/18b5be6669be53425f0b84098732670ed4e727e3af33bc7f948aac01782110eb9a18b3b329c5323bcdd3acdaae547ee077d3951317e7f133bff7105264b3003d + languageName: node + linkType: hard + +"isexe@npm:^2.0.0": + version: 2.0.0 + resolution: "isexe@npm:2.0.0" + checksum: 10c0/228cfa503fadc2c31596ab06ed6aa82c9976eec2bfd83397e7eaf06d0ccf42cd1dfd6743bf9aeb01aebd4156d009994c5f76ea898d2832c1fe342da923ca457d + languageName: node + linkType: hard + +"isexe@npm:^3.1.1": + version: 3.1.1 + resolution: "isexe@npm:3.1.1" + checksum: 10c0/9ec257654093443eb0a528a9c8cbba9c0ca7616ccb40abd6dde7202734d96bb86e4ac0d764f0f8cd965856aacbff2f4ce23e730dc19dfb41e3b0d865ca6fdcc7 + languageName: node + linkType: hard + +"jackspeak@npm:^3.1.2": + version: 3.4.3 + resolution: "jackspeak@npm:3.4.3" + dependencies: + "@isaacs/cliui": "npm:^8.0.2" + "@pkgjs/parseargs": "npm:^0.11.0" + dependenciesMeta: + "@pkgjs/parseargs": + optional: true + checksum: 10c0/6acc10d139eaefdbe04d2f679e6191b3abf073f111edf10b1de5302c97ec93fffeb2fdd8681ed17f16268aa9dd4f8c588ed9d1d3bffbbfa6e8bf897cbb3149b9 + languageName: node + linkType: hard + +"jju@npm:~1.4.0": + version: 1.4.0 + resolution: "jju@npm:1.4.0" + checksum: 10c0/f3f444557e4364cfc06b1abf8331bf3778b26c0c8552ca54429bc0092652172fdea26cbffe33e1017b303d5aa506f7ede8571857400efe459cb7439180e2acad + languageName: node + linkType: hard + +"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": + version: 4.0.0 + resolution: "js-tokens@npm:4.0.0" + checksum: 10c0/e248708d377aa058eacf2037b07ded847790e6de892bbad3dac0abba2e759cb9f121b00099a65195616badcb6eca8d14d975cb3e89eb1cfda644756402c8aeed + languageName: node + linkType: hard + +"jsbn@npm:1.1.0": + version: 1.1.0 + resolution: "jsbn@npm:1.1.0" + checksum: 10c0/4f907fb78d7b712e11dea8c165fe0921f81a657d3443dde75359ed52eb2b5d33ce6773d97985a089f09a65edd80b11cb75c767b57ba47391fee4c969f7215c96 + languageName: node + linkType: hard + +"jsesc@npm:^3.0.2": + version: 3.1.0 + resolution: "jsesc@npm:3.1.0" + bin: + jsesc: bin/jsesc + checksum: 10c0/531779df5ec94f47e462da26b4cbf05eb88a83d9f08aac2ba04206508fc598527a153d08bd462bae82fc78b3eaa1a908e1a4a79f886e9238641c4cdefaf118b1 + languageName: node + linkType: hard + +"json-schema-traverse@npm:^1.0.0": + version: 1.0.0 + resolution: "json-schema-traverse@npm:1.0.0" + checksum: 10c0/71e30015d7f3d6dc1c316d6298047c8ef98a06d31ad064919976583eb61e1018a60a0067338f0f79cabc00d84af3fcc489bd48ce8a46ea165d9541ba17fb30c6 + languageName: node + linkType: hard + +"json-stringify-pretty-compact@npm:^4.0.0": + version: 4.0.0 + resolution: "json-stringify-pretty-compact@npm:4.0.0" + checksum: 10c0/505781b4be7c72047ae8dfa667b520d20461ceac451b6516cb8ac5e12a758fbd7491d99d5e3f7e60423ce9d26ed4e4bcaccab3420bf651298901635c849017cf + languageName: node + linkType: hard + +"json5@npm:^2.2.3": + version: 2.2.3 + resolution: "json5@npm:2.2.3" + bin: + json5: lib/cli.js + checksum: 10c0/5a04eed94810fa55c5ea138b2f7a5c12b97c3750bc63d11e511dcecbfef758003861522a070c2272764ee0f4e3e323862f386945aeb5b85b87ee43f084ba586c + languageName: node + linkType: hard + +"jsonfile@npm:^6.0.1": + version: 6.1.0 + resolution: "jsonfile@npm:6.1.0" + dependencies: + graceful-fs: "npm:^4.1.6" + universalify: "npm:^2.0.0" + dependenciesMeta: + graceful-fs: + optional: true + checksum: 10c0/4f95b5e8a5622b1e9e8f33c96b7ef3158122f595998114d1e7f03985649ea99cb3cd99ce1ed1831ae94c8c8543ab45ebd044207612f31a56fd08462140e46865 + languageName: node + linkType: hard + +"kdbush@npm:^3.0.0": + version: 3.0.0 + resolution: "kdbush@npm:3.0.0" + checksum: 10c0/3fc8795870bd04f60627e7345b26fd0644beb91bc4164912c9d9378b39c674ba01c31db68ecaf6266d51c9ad81bf5b770b7effa51eeee37553d38293a094a686 + languageName: node + linkType: hard + +"kdbush@npm:^4.0.2": + version: 4.0.2 + resolution: "kdbush@npm:4.0.2" + checksum: 10c0/d50183b299c57e2573114e902ab47aed7494be3ca41b66d456779ecc3b2f153f491de341f9609965414784f728894f9a9001152eb9f3a40cd3755521c06a45a3 + languageName: node + linkType: hard + +"kind-of@npm:^6.0.3": + version: 6.0.3 + resolution: "kind-of@npm:6.0.3" + checksum: 10c0/61cdff9623dabf3568b6445e93e31376bee1cdb93f8ba7033d86022c2a9b1791a1d9510e026e6465ebd701a6dd2f7b0808483ad8838341ac52f003f512e0b4c4 + languageName: node + linkType: hard + +"kolorist@npm:^1.8.0": + version: 1.8.0 + resolution: "kolorist@npm:1.8.0" + checksum: 10c0/73075db44a692bf6c34a649f3b4b3aea4993b84f6b754cbf7a8577e7c7db44c0bad87752bd23b0ce533f49de2244ce2ce03b7b1b667a85ae170a94782cc50f9b + languageName: node + linkType: hard + +"local-pkg@npm:^1.0.0": + version: 1.1.1 + resolution: "local-pkg@npm:1.1.1" + dependencies: + mlly: "npm:^1.7.4" + pkg-types: "npm:^2.0.1" + quansync: "npm:^0.2.8" + checksum: 10c0/fe8f9d0443fb066c3f28a4c89d587dd7cba3ab02645cd16598f8d5f30968acf60af1b0ec2d6ad768475ec9f52baad124f31a93d2fbc034f645bcc02bf3a84882 + languageName: node + linkType: hard + +"lodash.merge@npm:^4.6.2": + version: 4.6.2 + resolution: "lodash.merge@npm:4.6.2" + checksum: 10c0/402fa16a1edd7538de5b5903a90228aa48eb5533986ba7fa26606a49db2572bf414ff73a2c9f5d5fd36b31c46a5d5c7e1527749c07cbcf965ccff5fbdf32c506 + languageName: node + linkType: hard + +"lodash@npm:~4.17.15": + version: 4.17.21 + resolution: "lodash@npm:4.17.21" + checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c + languageName: node + linkType: hard + +"loose-envify@npm:^1.4.0": + version: 1.4.0 + resolution: "loose-envify@npm:1.4.0" + dependencies: + js-tokens: "npm:^3.0.0 || ^4.0.0" + bin: + loose-envify: cli.js + checksum: 10c0/655d110220983c1a4b9c0c679a2e8016d4b67f6e9c7b5435ff5979ecdb20d0813f4dec0a08674fcbdd4846a3f07edbb50a36811fd37930b94aaa0d9daceb017e + languageName: node + linkType: hard + +"lru-cache@npm:^10.0.1, lru-cache@npm:^10.2.0": + version: 10.4.3 + resolution: "lru-cache@npm:10.4.3" + checksum: 10c0/ebd04fbca961e6c1d6c0af3799adcc966a1babe798f685bb84e6599266599cd95d94630b10262f5424539bc4640107e8a33aa28585374abf561d30d16f4b39fb + languageName: node + linkType: hard + +"lru-cache@npm:^5.1.1": + version: 5.1.1 + resolution: "lru-cache@npm:5.1.1" + dependencies: + yallist: "npm:^3.0.2" + checksum: 10c0/89b2ef2ef45f543011e38737b8a8622a2f8998cddf0e5437174ef8f1f70a8b9d14a918ab3e232cb3ba343b7abddffa667f0b59075b2b80e6b4d63c3de6127482 + languageName: node + linkType: hard + +"lru-cache@npm:^6.0.0": + version: 6.0.0 + resolution: "lru-cache@npm:6.0.0" + dependencies: + yallist: "npm:^4.0.0" + checksum: 10c0/cb53e582785c48187d7a188d3379c181b5ca2a9c78d2bce3e7dee36f32761d1c42983da3fe12b55cb74e1779fa94cdc2e5367c028a9b35317184ede0c07a30a9 + languageName: node + linkType: hard + +"magic-string@npm:^0.30.17": + version: 0.30.17 + resolution: "magic-string@npm:0.30.17" + dependencies: + "@jridgewell/sourcemap-codec": "npm:^1.5.0" + checksum: 10c0/16826e415d04b88378f200fe022b53e638e3838b9e496edda6c0e086d7753a44a6ed187adc72d19f3623810589bf139af1a315541cd6a26ae0771a0193eaf7b8 + languageName: node + linkType: hard + +"make-fetch-happen@npm:^14.0.3": + version: 14.0.3 + resolution: "make-fetch-happen@npm:14.0.3" + dependencies: + "@npmcli/agent": "npm:^3.0.0" + cacache: "npm:^19.0.1" + http-cache-semantics: "npm:^4.1.1" + minipass: "npm:^7.0.2" + minipass-fetch: "npm:^4.0.0" + minipass-flush: "npm:^1.0.5" + minipass-pipeline: "npm:^1.2.4" + negotiator: "npm:^1.0.0" + proc-log: "npm:^5.0.0" + promise-retry: "npm:^2.0.1" + ssri: "npm:^12.0.0" + checksum: 10c0/c40efb5e5296e7feb8e37155bde8eb70bc57d731b1f7d90e35a092fde403d7697c56fb49334d92d330d6f1ca29a98142036d6480a12681133a0a1453164cb2f0 + languageName: node + linkType: hard + +"map-limit@npm:0.0.1": + version: 0.0.1 + resolution: "map-limit@npm:0.0.1" + dependencies: + once: "npm:~1.3.0" + checksum: 10c0/b83e5c24b07596f65ce3a09592932ae1b9c91658587d339e9700121bae79c212d91fe60dde7f2ef976309522dae50b04858b8c06f30b770303900fdbee37239c + languageName: node + linkType: hard + +"maplibre-gl@npm:^4.7.1": + version: 4.7.1 + resolution: "maplibre-gl@npm:4.7.1" + dependencies: + "@mapbox/geojson-rewind": "npm:^0.5.2" + "@mapbox/jsonlint-lines-primitives": "npm:^2.0.2" + "@mapbox/point-geometry": "npm:^0.1.0" + "@mapbox/tiny-sdf": "npm:^2.0.6" + "@mapbox/unitbezier": "npm:^0.0.1" + "@mapbox/vector-tile": "npm:^1.3.1" + "@mapbox/whoots-js": "npm:^3.1.0" + "@maplibre/maplibre-gl-style-spec": "npm:^20.3.1" + "@types/geojson": "npm:^7946.0.14" + "@types/geojson-vt": "npm:3.2.5" + "@types/mapbox__point-geometry": "npm:^0.1.4" + "@types/mapbox__vector-tile": "npm:^1.3.4" + "@types/pbf": "npm:^3.0.5" + "@types/supercluster": "npm:^7.1.3" + earcut: "npm:^3.0.0" + geojson-vt: "npm:^4.0.2" + gl-matrix: "npm:^3.4.3" + global-prefix: "npm:^4.0.0" + kdbush: "npm:^4.0.2" + murmurhash-js: "npm:^1.0.0" + pbf: "npm:^3.3.0" + potpack: "npm:^2.0.0" + quickselect: "npm:^3.0.0" + supercluster: "npm:^8.0.1" + tinyqueue: "npm:^3.0.0" + vt-pbf: "npm:^3.1.3" + checksum: 10c0/dad2da8474af68647f882d5c4ff6df1c9afbe49f6d06c4594e4a55df0a34674f64d347b10b7af2869ac62fe837af6a56caa7617d5602724185e4df674be67b51 + languageName: node + linkType: hard + +"math-log2@npm:^1.0.1": + version: 1.0.1 + resolution: "math-log2@npm:1.0.1" + checksum: 10c0/6bd247d50f526d4521bceb23c8adff5f93bc60df7e073cf14ea1a45be7e53ff2d24779b3bf22f174831a33ff33a9026022bde314b6fe77ee89cd2444489ae9e3 + languageName: node + linkType: hard + +"minimatch@npm:10.0.3": + version: 10.0.3 + resolution: "minimatch@npm:10.0.3" + dependencies: + "@isaacs/brace-expansion": "npm:^5.0.0" + checksum: 10c0/e43e4a905c5d70ac4cec8530ceaeccb9c544b1ba8ac45238e2a78121a01c17ff0c373346472d221872563204eabe929ad02669bb575cb1f0cc30facab369f70f + languageName: node + linkType: hard + +"minimatch@npm:^9.0.3, minimatch@npm:^9.0.4": + version: 9.0.5 + resolution: "minimatch@npm:9.0.5" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 10c0/de96cf5e35bdf0eab3e2c853522f98ffbe9a36c37797778d2665231ec1f20a9447a7e567cb640901f89e4daaa95ae5d70c65a9e8aa2bb0019b6facbc3c0575ed + languageName: node + linkType: hard + +"minimist@npm:^1.2.5, minimist@npm:^1.2.6, minimist@npm:^1.2.8": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 + languageName: node + linkType: hard + +"minipass-collect@npm:^2.0.1": + version: 2.0.1 + resolution: "minipass-collect@npm:2.0.1" + dependencies: + minipass: "npm:^7.0.3" + checksum: 10c0/5167e73f62bb74cc5019594709c77e6a742051a647fe9499abf03c71dca75515b7959d67a764bdc4f8b361cf897fbf25e2d9869ee039203ed45240f48b9aa06e + languageName: node + linkType: hard + +"minipass-fetch@npm:^4.0.0": + version: 4.0.1 + resolution: "minipass-fetch@npm:4.0.1" + dependencies: + encoding: "npm:^0.1.13" + minipass: "npm:^7.0.3" + minipass-sized: "npm:^1.0.3" + minizlib: "npm:^3.0.1" + dependenciesMeta: + encoding: + optional: true + checksum: 10c0/a3147b2efe8e078c9bf9d024a0059339c5a09c5b1dded6900a219c218cc8b1b78510b62dae556b507304af226b18c3f1aeb1d48660283602d5b6586c399eed5c + languageName: node + linkType: hard + +"minipass-flush@npm:^1.0.5": + version: 1.0.5 + resolution: "minipass-flush@npm:1.0.5" + dependencies: + minipass: "npm:^3.0.0" + checksum: 10c0/2a51b63feb799d2bb34669205eee7c0eaf9dce01883261a5b77410c9408aa447e478efd191b4de6fc1101e796ff5892f8443ef20d9544385819093dbb32d36bd + languageName: node + linkType: hard + +"minipass-pipeline@npm:^1.2.4": + version: 1.2.4 + resolution: "minipass-pipeline@npm:1.2.4" + dependencies: + minipass: "npm:^3.0.0" + checksum: 10c0/cbda57cea20b140b797505dc2cac71581a70b3247b84480c1fed5ca5ba46c25ecc25f68bfc9e6dcb1a6e9017dab5c7ada5eab73ad4f0a49d84e35093e0c643f2 + languageName: node + linkType: hard + +"minipass-sized@npm:^1.0.3": + version: 1.0.3 + resolution: "minipass-sized@npm:1.0.3" + dependencies: + minipass: "npm:^3.0.0" + checksum: 10c0/298f124753efdc745cfe0f2bdfdd81ba25b9f4e753ca4a2066eb17c821f25d48acea607dfc997633ee5bf7b6dfffb4eee4f2051eb168663f0b99fad2fa4829cb + languageName: node + linkType: hard + +"minipass@npm:^3.0.0": + version: 3.3.6 + resolution: "minipass@npm:3.3.6" + dependencies: + yallist: "npm:^4.0.0" + checksum: 10c0/a114746943afa1dbbca8249e706d1d38b85ed1298b530f5808ce51f8e9e941962e2a5ad2e00eae7dd21d8a4aae6586a66d4216d1a259385e9d0358f0c1eba16c + languageName: node + linkType: hard + +"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3, minipass@npm:^7.0.4, minipass@npm:^7.1.2": + version: 7.1.2 + resolution: "minipass@npm:7.1.2" + checksum: 10c0/b0fd20bb9fb56e5fa9a8bfac539e8915ae07430a619e4b86ff71f5fc757ef3924b23b2c4230393af1eda647ed3d75739e4e0acb250a6b1eb277cf7f8fe449557 + languageName: node + linkType: hard + +"minizlib@npm:^3.0.1": + version: 3.0.2 + resolution: "minizlib@npm:3.0.2" + dependencies: + minipass: "npm:^7.1.2" + checksum: 10c0/9f3bd35e41d40d02469cb30470c55ccc21cae0db40e08d1d0b1dff01cc8cc89a6f78e9c5d2b7c844e485ec0a8abc2238111213fdc5b2038e6d1012eacf316f78 + languageName: node + linkType: hard + +"mkdirp@npm:^3.0.1": + version: 3.0.1 + resolution: "mkdirp@npm:3.0.1" + bin: + mkdirp: dist/cjs/src/bin.js + checksum: 10c0/9f2b975e9246351f5e3a40dcfac99fcd0baa31fbfab615fe059fb11e51f10e4803c63de1f384c54d656e4db31d000e4767e9ef076a22e12a641357602e31d57d + languageName: node + linkType: hard + +"mlly@npm:^1.7.4": + version: 1.7.4 + resolution: "mlly@npm:1.7.4" + dependencies: + acorn: "npm:^8.14.0" + pathe: "npm:^2.0.1" + pkg-types: "npm:^1.3.0" + ufo: "npm:^1.5.4" + checksum: 10c0/69e738218a13d6365caf930e0ab4e2b848b84eec261597df9788cefb9930f3e40667be9cb58a4718834ba5f97a6efeef31d3b5a95f4388143fd4e0d0deff72ff + languageName: node + linkType: hard + +"mouse-change@npm:^1.4.0": + version: 1.4.0 + resolution: "mouse-change@npm:1.4.0" + dependencies: + mouse-event: "npm:^1.0.0" + checksum: 10c0/e500b88fe23cceaee41d2e5120b91776b983767303ec307b113e88590b414638408dfc692e31a1b64f7bddc211e5b6c74fc9a3af8067ae7ca52202c7b42f2926 + languageName: node + linkType: hard + +"mouse-event-offset@npm:^3.0.2": + version: 3.0.2 + resolution: "mouse-event-offset@npm:3.0.2" + checksum: 10c0/999a9f85082258fbd5a0478f54dbe4e6f064c13dae486e6fb39e5ebf73d81ee339f919c9ff7eb14819b6fd0e0f440f77506115e783582889f05549b2d9a1d2ef + languageName: node + linkType: hard + +"mouse-event@npm:^1.0.0": + version: 1.0.5 + resolution: "mouse-event@npm:1.0.5" + checksum: 10c0/b8da3570537a08279ae19f5f4417b7814de0271c89ea4d5746d97f3de50abd62dd4499c0fca6c5ca2af7f8ddb79986493dfd2082669aab87783558adf2d56761 + languageName: node + linkType: hard + +"mouse-wheel@npm:^1.2.0": + version: 1.2.0 + resolution: "mouse-wheel@npm:1.2.0" + dependencies: + right-now: "npm:^1.0.0" + signum: "npm:^1.0.0" + to-px: "npm:^1.0.1" + checksum: 10c0/a5710b0fa46d7465ad22146b5c43ab4475567eaee7d697936c6be751e05dad3e3433a069735bcdcd09b44de9f1cfd2223eb3e28a7a71e83ecfc3fdbeb3f064d7 + languageName: node + linkType: hard + +"ms@npm:2.0.0": + version: 2.0.0 + resolution: "ms@npm:2.0.0" + checksum: 10c0/f8fda810b39fd7255bbdc451c46286e549794fcc700dc9cd1d25658bbc4dc2563a5de6fe7c60f798a16a60c6ceb53f033cb353f493f0cf63e5199b702943159d + languageName: node + linkType: hard + +"ms@npm:^2.1.1, ms@npm:^2.1.3": + version: 2.1.3 + resolution: "ms@npm:2.1.3" + checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 + languageName: node + linkType: hard + +"muggle-string@npm:^0.4.1": + version: 0.4.1 + resolution: "muggle-string@npm:0.4.1" + checksum: 10c0/e914b63e24cd23f97e18376ec47e4ba3aa24365e4776212b666add2e47bb158003212980d732c49abf3719568900af7861873844a6e2d3a7ca7e86952c0e99e9 + languageName: node + linkType: hard + +"murmurhash-js@npm:^1.0.0": + version: 1.0.0 + resolution: "murmurhash-js@npm:1.0.0" + checksum: 10c0/f8569e16db0ba6f953bf88286e97cf737f1efe97b224e537c9308566ab963a067c7eca5b636fb473d6413c4cc3b79690b78ff7ab0f290e75db91c6fde0df92b4 + languageName: node + linkType: hard + +"nanoid@npm:^3.3.11": + version: 3.3.11 + resolution: "nanoid@npm:3.3.11" + bin: + nanoid: bin/nanoid.cjs + checksum: 10c0/40e7f70b3d15f725ca072dfc4f74e81fcf1fbb02e491cf58ac0c79093adc9b0a73b152bcde57df4b79cd097e13023d7504acb38404a4da7bc1cd8e887b82fe0b + languageName: node + linkType: hard + +"native-promise-only@npm:^0.8.1": + version: 0.8.1 + resolution: "native-promise-only@npm:0.8.1" + checksum: 10c0/c1b41128ca9806818e12d0b84f7c71e88b1fa00f0f4857767d96206dbdd0af6755305103f55c583b045533185ffca863b0c34116ade507ff7ba2e417e076a5ac + languageName: node + linkType: hard + +"needle@npm:^2.5.2": + version: 2.9.1 + resolution: "needle@npm:2.9.1" + dependencies: + debug: "npm:^3.2.6" + iconv-lite: "npm:^0.4.4" + sax: "npm:^1.2.4" + bin: + needle: ./bin/needle + checksum: 10c0/65a7eaeaf4ca3410de492957474592af9838e02875273d9232ff6cff331393c58a95e48c592bd9a05f575e5bb9b08543d6cfd19eb96595dbd3d7da2c5fe1accb + languageName: node + linkType: hard + +"negotiator@npm:^1.0.0": + version: 1.0.0 + resolution: "negotiator@npm:1.0.0" + checksum: 10c0/4c559dd52669ea48e1914f9d634227c561221dd54734070791f999c52ed0ff36e437b2e07d5c1f6e32909fc625fe46491c16e4a8f0572567d4dd15c3a4fda04b + languageName: node + linkType: hard + +"next-tick@npm:^1.1.0": + version: 1.1.0 + resolution: "next-tick@npm:1.1.0" + checksum: 10c0/3ba80dd805fcb336b4f52e010992f3e6175869c8d88bf4ff0a81d5d66e6049f89993463b28211613e58a6b7fe93ff5ccbba0da18d4fa574b96289e8f0b577f28 + languageName: node + linkType: hard + +"node-gyp@npm:latest": + version: 11.3.0 + resolution: "node-gyp@npm:11.3.0" + dependencies: + env-paths: "npm:^2.2.0" + exponential-backoff: "npm:^3.1.1" + graceful-fs: "npm:^4.2.6" + make-fetch-happen: "npm:^14.0.3" + nopt: "npm:^8.0.0" + proc-log: "npm:^5.0.0" + semver: "npm:^7.3.5" + tar: "npm:^7.4.3" + tinyglobby: "npm:^0.2.12" + which: "npm:^5.0.0" + bin: + node-gyp: bin/node-gyp.js + checksum: 10c0/5f4ad5a729386f7b50096efd4934b06c071dbfbc7d7d541a66d6959a7dccd62f53ff3dc95fffb60bf99d8da1270e23769f82246fcaa6c5645a70c967ae9a3398 + languageName: node + linkType: hard + +"node-releases@npm:^2.0.19": + version: 2.0.19 + resolution: "node-releases@npm:2.0.19" + checksum: 10c0/52a0dbd25ccf545892670d1551690fe0facb6a471e15f2cfa1b20142a5b255b3aa254af5f59d6ecb69c2bec7390bc643c43aa63b13bf5e64b6075952e716b1aa + languageName: node + linkType: hard + +"nopt@npm:^8.0.0": + version: 8.1.0 + resolution: "nopt@npm:8.1.0" + dependencies: + abbrev: "npm:^3.0.0" + bin: + nopt: bin/nopt.js + checksum: 10c0/62e9ea70c7a3eb91d162d2c706b6606c041e4e7b547cbbb48f8b3695af457dd6479904d7ace600856bf923dd8d1ed0696f06195c8c20f02ac87c1da0e1d315ef + languageName: node + linkType: hard + +"normalize-svg-path@npm:^1.0.0": + version: 1.1.0 + resolution: "normalize-svg-path@npm:1.1.0" + dependencies: + svg-arc-to-cubic-bezier: "npm:^3.0.0" + checksum: 10c0/2e24e1d0a9ca7f172cec161d9c14fef616c57040664d82f6077d97c42e6e8a113f288dc0cb55e19fc4873baa0c5ddc7857d24d4a1b6df594924451d1adbb1b41 + languageName: node + linkType: hard + +"normalize-svg-path@npm:~0.1.0": + version: 0.1.0 + resolution: "normalize-svg-path@npm:0.1.0" + checksum: 10c0/a693092f83e1f1836d0dac2d36c9d13455552987f31e42a91e1d96a94c2aaca6c4e3fea3348acb9b78380ec6f5fc7573176438f614c9c359c384ce03a1d7856d + languageName: node + linkType: hard + +"number-is-integer@npm:^1.0.1": + version: 1.0.1 + resolution: "number-is-integer@npm:1.0.1" + dependencies: + is-finite: "npm:^1.0.1" + checksum: 10c0/8108530e1d6321f1f62855343d7cb02235b76b1127bc2665420d65a8ce0804c3b33441228d40a320bc870ddb6feeece5c9486bae883868eb771b03c3597ba939 + languageName: node + linkType: hard + +"object-assign@npm:^4.1.0, object-assign@npm:^4.1.1": + version: 4.1.1 + resolution: "object-assign@npm:4.1.1" + checksum: 10c0/1f4df9945120325d041ccf7b86f31e8bcc14e73d29171e37a7903050e96b81323784ec59f93f102ec635bcf6fa8034ba3ea0a8c7e69fa202b87ae3b6cec5a414 + languageName: node + linkType: hard + +"once@npm:^1.4.0": + version: 1.4.0 + resolution: "once@npm:1.4.0" + dependencies: + wrappy: "npm:1" + checksum: 10c0/5d48aca287dfefabd756621c5dfce5c91a549a93e9fdb7b8246bc4c4790aa2ec17b34a260530474635147aeb631a2dcc8b32c613df0675f96041cbb8244517d0 + languageName: node + linkType: hard + +"once@npm:~1.3.0": + version: 1.3.3 + resolution: "once@npm:1.3.3" + dependencies: + wrappy: "npm:1" + checksum: 10c0/bb9c0fa8f6420b89fea4e0fc80aac175f025358cd1374a8e7afb92672f58473684f45a784e18f147d07cf87e629cc277f63f35c48fdfdced662edd18779c5876 + languageName: node + linkType: hard + +"p-map@npm:^7.0.2": + version: 7.0.3 + resolution: "p-map@npm:7.0.3" + checksum: 10c0/46091610da2b38ce47bcd1d8b4835a6fa4e832848a6682cf1652bc93915770f4617afc844c10a77d1b3e56d2472bb2d5622353fa3ead01a7f42b04fc8e744a5c + languageName: node + linkType: hard + +"package-json-from-dist@npm:^1.0.0": + version: 1.0.1 + resolution: "package-json-from-dist@npm:1.0.1" + checksum: 10c0/62ba2785eb655fec084a257af34dbe24292ab74516d6aecef97ef72d4897310bc6898f6c85b5cd22770eaa1ce60d55a0230e150fb6a966e3ecd6c511e23d164b + languageName: node + linkType: hard + +"parenthesis@npm:^3.1.5": + version: 3.1.8 + resolution: "parenthesis@npm:3.1.8" + checksum: 10c0/1c0d5dd8b238b7c703db5ff1ca35f41952a7b2597c2e97cd0d32ab345179062611bc4f8a849787ed7f23508e91140d74fea7c0050b6978c56499f707ff54c99c + languageName: node + linkType: hard + +"parse-rect@npm:^1.2.0": + version: 1.2.0 + resolution: "parse-rect@npm:1.2.0" + dependencies: + pick-by-alias: "npm:^1.2.0" + checksum: 10c0/70af64ef6b34a2d460ba54cb09c9f9159536c93278aae2d7878d0557e71d8b648406203a74db3955e68ce4c47f6c10b8d24288985628dbc2877d4390fba1d27c + languageName: node + linkType: hard + +"parse-svg-path@npm:^0.1.2": + version: 0.1.2 + resolution: "parse-svg-path@npm:0.1.2" + checksum: 10c0/005af72d535f47bbe4673108e51d657b81cb19dcc4f10ab425dd9f824066ef300ddbc83640607ef318f853a9fce7065114705531dcf88fb87fe58c287b562f2b + languageName: node + linkType: hard + +"parse-unit@npm:^1.0.1": + version: 1.0.1 + resolution: "parse-unit@npm:1.0.1" + checksum: 10c0/a7e63091ddccfd920ab1b85899ecb6cb0af8069fe36c5f8f6fa80eeb262a52686ab94d21ff02cde821570cb0d9c95e2f454672959a0f39df52ee5d3c95276022 + languageName: node + linkType: hard + +"path-browserify@npm:^1.0.1": + version: 1.0.1 + resolution: "path-browserify@npm:1.0.1" + checksum: 10c0/8b8c3fd5c66bd340272180590ae4ff139769e9ab79522e2eb82e3d571a89b8117c04147f65ad066dccfb42fcad902e5b7d794b3d35e0fd840491a8ddbedf8c66 + languageName: node + linkType: hard + +"path-key@npm:^3.1.0": + version: 3.1.1 + resolution: "path-key@npm:3.1.1" + checksum: 10c0/748c43efd5a569c039d7a00a03b58eecd1d75f3999f5a28303d75f521288df4823bc057d8784eb72358b2895a05f29a070bc9f1f17d28226cc4e62494cc58c4c + languageName: node + linkType: hard + +"path-parse@npm:^1.0.7": + version: 1.0.7 + resolution: "path-parse@npm:1.0.7" + checksum: 10c0/11ce261f9d294cc7a58d6a574b7f1b935842355ec66fba3c3fd79e0f036462eaf07d0aa95bb74ff432f9afef97ce1926c720988c6a7451d8a584930ae7de86e1 + languageName: node + linkType: hard + +"path-scurry@npm:^1.11.1": + version: 1.11.1 + resolution: "path-scurry@npm:1.11.1" + dependencies: + lru-cache: "npm:^10.2.0" + minipass: "npm:^5.0.0 || ^6.0.2 || ^7.0.0" + checksum: 10c0/32a13711a2a505616ae1cc1b5076801e453e7aae6ac40ab55b388bb91b9d0547a52f5aaceff710ea400205f18691120d4431e520afbe4266b836fadede15872d + languageName: node + linkType: hard + +"pathe@npm:^2.0.1, pathe@npm:^2.0.3": + version: 2.0.3 + resolution: "pathe@npm:2.0.3" + checksum: 10c0/c118dc5a8b5c4166011b2b70608762e260085180bb9e33e80a50dcdb1e78c010b1624f4280c492c92b05fc276715a4c357d1f9edc570f8f1b3d90b6839ebaca1 + languageName: node + linkType: hard + +"pbf@npm:^3.2.1, pbf@npm:^3.3.0": + version: 3.3.0 + resolution: "pbf@npm:3.3.0" + dependencies: + ieee754: "npm:^1.1.12" + resolve-protobuf-schema: "npm:^2.1.0" + bin: + pbf: bin/pbf + checksum: 10c0/79e5dc59a9391789de84b0a6d713fad0dd1e5ce6eb721536af8c9ec49feae04fdebab9f077b760bba858e615a95ac714a7d248ecb43736e904bb8396885e16d6 + languageName: node + linkType: hard + +"performance-now@npm:^2.1.0": + version: 2.1.0 + resolution: "performance-now@npm:2.1.0" + checksum: 10c0/22c54de06f269e29f640e0e075207af57de5052a3d15e360c09b9a8663f393f6f45902006c1e71aa8a5a1cdfb1a47fe268826f8496d6425c362f00f5bc3e85d9 + languageName: node + linkType: hard + +"pick-by-alias@npm:^1.2.0": + version: 1.2.0 + resolution: "pick-by-alias@npm:1.2.0" + checksum: 10c0/2336088c95a04f50b088986394e35d2d0b63a95d85ffec547dcdb0fe1ccd710ab36569607fcf72d8654bbbf49e1f983a25f2a7c57e8ff2d587cf86070fc669b6 + languageName: node + linkType: hard + +"picocolors@npm:^1.1.1": + version: 1.1.1 + resolution: "picocolors@npm:1.1.1" + checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58 + languageName: node + linkType: hard + +"picomatch@npm:^4.0.2, picomatch@npm:^4.0.3": + version: 4.0.3 + resolution: "picomatch@npm:4.0.3" + checksum: 10c0/9582c951e95eebee5434f59e426cddd228a7b97a0161a375aed4be244bd3fe8e3a31b846808ea14ef2c8a2527a6eeab7b3946a67d5979e81694654f939473ae2 + languageName: node + linkType: hard + +"pkg-types@npm:^1.3.0": + version: 1.3.1 + resolution: "pkg-types@npm:1.3.1" + dependencies: + confbox: "npm:^0.1.8" + mlly: "npm:^1.7.4" + pathe: "npm:^2.0.1" + checksum: 10c0/19e6cb8b66dcc66c89f2344aecfa47f2431c988cfa3366bdfdcfb1dd6695f87dcce37fbd90fe9d1605e2f4440b77f391e83c23255347c35cf84e7fd774d7fcea + languageName: node + linkType: hard + +"pkg-types@npm:^2.0.1": + version: 2.2.0 + resolution: "pkg-types@npm:2.2.0" + dependencies: + confbox: "npm:^0.2.2" + exsolve: "npm:^1.0.7" + pathe: "npm:^2.0.3" + checksum: 10c0/df14eada1aeaaf73f72d3ec08d360bbfb44f2dfec5612358e0ce30f306a395a51fc7bfa96a2ca6ba005e9f56ddb1d2ee5b4cdd2e7b87ff075e5bf52e6fbc1cd6 + languageName: node + linkType: hard + +"plotly.js@npm:^3.1.0": + version: 3.1.0 + resolution: "plotly.js@npm:3.1.0" + dependencies: + "@plotly/d3": "npm:3.8.2" + "@plotly/d3-sankey": "npm:0.7.2" + "@plotly/d3-sankey-circular": "npm:0.33.1" + "@plotly/mapbox-gl": "npm:1.13.4" + "@plotly/regl": "npm:^2.1.2" + "@turf/area": "npm:^7.1.0" + "@turf/bbox": "npm:^7.1.0" + "@turf/centroid": "npm:^7.1.0" + base64-arraybuffer: "npm:^1.0.2" + canvas-fit: "npm:^1.5.0" + color-alpha: "npm:1.0.4" + color-normalize: "npm:1.5.0" + color-parse: "npm:2.0.0" + color-rgba: "npm:3.0.0" + country-regex: "npm:^1.1.0" + d3-force: "npm:^1.2.1" + d3-format: "npm:^1.4.5" + d3-geo: "npm:^1.12.1" + d3-geo-projection: "npm:^2.9.0" + d3-hierarchy: "npm:^1.1.9" + d3-interpolate: "npm:^3.0.1" + d3-time: "npm:^1.1.0" + d3-time-format: "npm:^2.2.3" + fast-isnumeric: "npm:^1.1.4" + gl-mat4: "npm:^1.2.0" + gl-text: "npm:^1.4.0" + has-hover: "npm:^1.0.1" + has-passive-events: "npm:^1.0.0" + is-mobile: "npm:^4.0.0" + maplibre-gl: "npm:^4.7.1" + mouse-change: "npm:^1.4.0" + mouse-event-offset: "npm:^3.0.2" + mouse-wheel: "npm:^1.2.0" + native-promise-only: "npm:^0.8.1" + parse-svg-path: "npm:^0.1.2" + point-in-polygon: "npm:^1.1.0" + polybooljs: "npm:^1.2.2" + probe-image-size: "npm:^7.2.3" + regl-error2d: "npm:^2.0.12" + regl-line2d: "npm:^3.1.3" + regl-scatter2d: "npm:^3.3.1" + regl-splom: "npm:^1.0.14" + strongly-connected-components: "npm:^1.0.1" + superscript-text: "npm:^1.0.0" + svg-path-sdf: "npm:^1.1.3" + tinycolor2: "npm:^1.4.2" + to-px: "npm:1.0.1" + topojson-client: "npm:^3.1.0" + webgl-context: "npm:^2.2.0" + world-calendars: "npm:^1.0.4" + checksum: 10c0/8a761514c9d977b8d1d611ed7e8683b79e6d2160d850178129e1546644ebbdfeaaae696cac942d8eb636da536338f553389e72de0fccea8ec8a2f37812e5f582 + languageName: node + linkType: hard + +"point-in-polygon@npm:^1.1.0": + version: 1.1.0 + resolution: "point-in-polygon@npm:1.1.0" + checksum: 10c0/de00419585ee25555d97585b7a23eeb2464a87ef29404264bee55654ca2ecab5a5a99d33e689c07d045faf80091e838f44a1fd130bdd6134493df53114947343 + languageName: node + linkType: hard + +"polybooljs@npm:^1.2.2": + version: 1.2.2 + resolution: "polybooljs@npm:1.2.2" + checksum: 10c0/74f6e2d20cabde6c6d3021974e0ac54c85422f08a8c0b96add15cd97c23dcbb13509ca00086fdee2922ab7c85946a047e51e8c2f30df68bbc36dbd0c00ef2e30 + languageName: node + linkType: hard + +"postcss@npm:^8.5.6": + version: 8.5.6 + resolution: "postcss@npm:8.5.6" + dependencies: + nanoid: "npm:^3.3.11" + picocolors: "npm:^1.1.1" + source-map-js: "npm:^1.2.1" + checksum: 10c0/5127cc7c91ed7a133a1b7318012d8bfa112da9ef092dddf369ae699a1f10ebbd89b1b9f25f3228795b84585c72aabd5ced5fc11f2ba467eedf7b081a66fad024 + languageName: node + linkType: hard + +"potpack@npm:^1.0.1": + version: 1.0.2 + resolution: "potpack@npm:1.0.2" + checksum: 10c0/670c23898a4257130858b960c2e654d3327c0f6a7e7091ff5846f213e65af8f9476320b995b8ad561a47a4d1c359c7ef347de57d22e7b02597051abb52bc85c4 + languageName: node + linkType: hard + +"potpack@npm:^2.0.0": + version: 2.1.0 + resolution: "potpack@npm:2.1.0" + checksum: 10c0/25fb86728e2eba7d67928ba770cecf76d1d09e82ca2fe090a20ad573fee20ed67e727b353aeef99d03dbc32c7bf76bdcdf0f6466f25d0cd66a40b9776e607e56 + languageName: node + linkType: hard + +"probe-image-size@npm:^7.2.3": + version: 7.2.3 + resolution: "probe-image-size@npm:7.2.3" + dependencies: + lodash.merge: "npm:^4.6.2" + needle: "npm:^2.5.2" + stream-parser: "npm:~0.3.1" + checksum: 10c0/bebe3b050889794565b66ea9749cb21fee4f3e99fea41a328e39f2929f2432ebb50ac974148c35c66dec5becc849b3185a7a6f39d3ff75247e8be0a2759c9627 + languageName: node + linkType: hard + +"proc-log@npm:^5.0.0": + version: 5.0.0 + resolution: "proc-log@npm:5.0.0" + checksum: 10c0/bbe5edb944b0ad63387a1d5b1911ae93e05ce8d0f60de1035b218cdcceedfe39dbd2c697853355b70f1a090f8f58fe90da487c85216bf9671f9499d1a897e9e3 + languageName: node + linkType: hard + +"process-nextick-args@npm:~2.0.0": + version: 2.0.1 + resolution: "process-nextick-args@npm:2.0.1" + checksum: 10c0/bec089239487833d46b59d80327a1605e1c5287eaad770a291add7f45fda1bb5e28b38e0e061add0a1d0ee0984788ce74fa394d345eed1c420cacf392c554367 + languageName: node + linkType: hard + +"promise-retry@npm:^2.0.1": + version: 2.0.1 + resolution: "promise-retry@npm:2.0.1" + dependencies: + err-code: "npm:^2.0.2" + retry: "npm:^0.12.0" + checksum: 10c0/9c7045a1a2928094b5b9b15336dcd2a7b1c052f674550df63cc3f36cd44028e5080448175b6f6ca32b642de81150f5e7b1a98b728f15cb069f2dd60ac2616b96 + languageName: node + linkType: hard + +"prop-types@npm:^15.8.1": + version: 15.8.1 + resolution: "prop-types@npm:15.8.1" + dependencies: + loose-envify: "npm:^1.4.0" + object-assign: "npm:^4.1.1" + react-is: "npm:^16.13.1" + checksum: 10c0/59ece7ca2fb9838031d73a48d4becb9a7cc1ed10e610517c7d8f19a1e02fa47f7c27d557d8a5702bec3cfeccddc853579832b43f449e54635803f277b1c78077 + languageName: node + linkType: hard + +"protocol-buffers-schema@npm:^3.3.1": + version: 3.6.0 + resolution: "protocol-buffers-schema@npm:3.6.0" + checksum: 10c0/23a08612e5cc903f917ae3b680216ccaf2d889c61daa68d224237f455182fa96fff16872ac94b1954b5dd26fc7e8ce7e9360c54d54ea26218d107b2f059fca37 + languageName: node + linkType: hard + +"punycode@npm:^2.1.0": + version: 2.3.1 + resolution: "punycode@npm:2.3.1" + checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9 + languageName: node + linkType: hard + +"quansync@npm:^0.2.8": + version: 0.2.10 + resolution: "quansync@npm:0.2.10" + checksum: 10c0/f86f1d644f812a3a7c42de79eb401c47a5a67af82a9adff8a8afb159325e03e00f77cebbf42af6340a0bd47bd0c1fbe999e7caf7e1bbb30d7acb00c8729b7530 + languageName: node + linkType: hard + +"quickselect@npm:^2.0.0": + version: 2.0.0 + resolution: "quickselect@npm:2.0.0" + checksum: 10c0/6c8d591bc73beae4c1996b7b7138233a7dbbbdde29b7b6d822a02d08cd220fd27613f47d6e9635989b12e250d42ef9da3448de1ed12ad962974e207ab3c3562c + languageName: node + linkType: hard + +"quickselect@npm:^3.0.0": + version: 3.0.0 + resolution: "quickselect@npm:3.0.0" + checksum: 10c0/3a0d33b0ec06841d953accdfd735aa3d8b7922cddd12970544a2c4b0278871280d8f5ba496803600693c1e7b7b2fb57c31d2b14d99132f478888006a1be6e6b7 + languageName: node + linkType: hard + +"raf@npm:^3.4.1": + version: 3.4.1 + resolution: "raf@npm:3.4.1" + dependencies: + performance-now: "npm:^2.1.0" + checksum: 10c0/337f0853c9e6a77647b0f499beedafea5d6facfb9f2d488a624f88b03df2be72b8a0e7f9118a3ff811377d534912039a3311815700d2b6d2313f82f736f9eb6e + languageName: node + linkType: hard + +"react-is@npm:^16.13.1": + version: 16.13.1 + resolution: "react-is@npm:16.13.1" + checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1 + languageName: node + linkType: hard + +"react-plotly.js@npm:^2.6.0": + version: 2.6.0 + resolution: "react-plotly.js@npm:2.6.0" + dependencies: + prop-types: "npm:^15.8.1" + peerDependencies: + plotly.js: ">1.34.0" + react: ">0.13.0" + checksum: 10c0/9b5ba8e33782daa9624d79295975d08d4c7581bac41d67d497eec0a306e4d030465a1e8282fab145bc02705fe96262f6fb0d214133657c480982fc268763644a + languageName: node + linkType: hard + +"react-refresh@npm:^0.17.0": + version: 0.17.0 + resolution: "react-refresh@npm:0.17.0" + checksum: 10c0/002cba940384c9930008c0bce26cac97a9d5682bc623112c2268ba0c155127d9c178a9a5cc2212d560088d60dfd503edd808669a25f9b377f316a32361d0b23c + languageName: node + linkType: hard + +"react@npm:^19.1.1": + version: 19.1.1 + resolution: "react@npm:19.1.1" + checksum: 10c0/8c9769a2dfd02e603af6445058325e6c8a24b47b185d0e461f66a6454765ddcaecb3f0a90184836c68bb509f3c38248359edbc42f0d07c23eb500a5c30c87b4e + languageName: node + linkType: hard + +"readable-stream@npm:>=1.0.33-1 <1.1.0-0": + version: 1.0.34 + resolution: "readable-stream@npm:1.0.34" + dependencies: + core-util-is: "npm:~1.0.0" + inherits: "npm:~2.0.1" + isarray: "npm:0.0.1" + string_decoder: "npm:~0.10.x" + checksum: 10c0/02272551396ed8930ddee1a088bdf0379f0f7cc47ac49ed8804e998076cb7daec9fbd2b1fd9c0490ec72e56e8bb3651abeb8080492b8e0a9c3f2158330908ed6 + languageName: node + linkType: hard + +"readable-stream@npm:^2.0.0, readable-stream@npm:^2.2.2, readable-stream@npm:^2.3.5, readable-stream@npm:~2.3.6": + version: 2.3.8 + resolution: "readable-stream@npm:2.3.8" + dependencies: + core-util-is: "npm:~1.0.0" + inherits: "npm:~2.0.3" + isarray: "npm:~1.0.0" + process-nextick-args: "npm:~2.0.0" + safe-buffer: "npm:~5.1.1" + string_decoder: "npm:~1.1.1" + util-deprecate: "npm:~1.0.1" + checksum: 10c0/7efdb01f3853bc35ac62ea25493567bf588773213f5f4a79f9c365e1ad13bab845ac0dae7bc946270dc40c3929483228415e92a3fc600cc7e4548992f41ee3fa + languageName: node + linkType: hard + +"regl-error2d@npm:^2.0.12": + version: 2.0.12 + resolution: "regl-error2d@npm:2.0.12" + dependencies: + array-bounds: "npm:^1.0.1" + color-normalize: "npm:^1.5.0" + flatten-vertex-data: "npm:^1.0.2" + object-assign: "npm:^4.1.1" + pick-by-alias: "npm:^1.2.0" + to-float32: "npm:^1.1.0" + update-diff: "npm:^1.1.0" + checksum: 10c0/999bdbb25bf2ab81fe14d9d630db15e81aa590e8b723b8030e7757f4393ff2eb3924e52044a12125804da5fe9d89f5ed1a2bf64340aabaf4cee7ea729ae2398d + languageName: node + linkType: hard + +"regl-line2d@npm:^3.1.3": + version: 3.1.3 + resolution: "regl-line2d@npm:3.1.3" + dependencies: + array-bounds: "npm:^1.0.1" + array-find-index: "npm:^1.0.2" + array-normalize: "npm:^1.1.4" + color-normalize: "npm:^1.5.0" + earcut: "npm:^2.1.5" + es6-weak-map: "npm:^2.0.3" + flatten-vertex-data: "npm:^1.0.2" + object-assign: "npm:^4.1.1" + parse-rect: "npm:^1.2.0" + pick-by-alias: "npm:^1.2.0" + to-float32: "npm:^1.1.0" + checksum: 10c0/70673f4b362db65cf878d2008847cb5c6f08c3b0b15c6e4df896f276a6b1b5185aaed2e0248fafe8d2c203d88814f6026060b2656d532d87268151f7c011dabc + languageName: node + linkType: hard + +"regl-scatter2d@npm:^3.2.3, regl-scatter2d@npm:^3.3.1": + version: 3.3.1 + resolution: "regl-scatter2d@npm:3.3.1" + dependencies: + "@plotly/point-cluster": "npm:^3.1.9" + array-range: "npm:^1.0.1" + array-rearrange: "npm:^2.2.2" + clamp: "npm:^1.0.1" + color-id: "npm:^1.1.0" + color-normalize: "npm:^1.5.0" + color-rgba: "npm:^2.1.1" + flatten-vertex-data: "npm:^1.0.2" + glslify: "npm:^7.0.0" + is-iexplorer: "npm:^1.0.0" + object-assign: "npm:^4.1.1" + parse-rect: "npm:^1.2.0" + pick-by-alias: "npm:^1.2.0" + to-float32: "npm:^1.1.0" + update-diff: "npm:^1.1.0" + checksum: 10c0/9a7f69d2039aeb1cca125d0d101cb122234b9e4ac56e190c9f434198ecd27411d6d4b70e2f2aee5a97471060aef290b74b9cac434398166ac330c47901e99283 + languageName: node + linkType: hard + +"regl-splom@npm:^1.0.14": + version: 1.0.14 + resolution: "regl-splom@npm:1.0.14" + dependencies: + array-bounds: "npm:^1.0.1" + array-range: "npm:^1.0.1" + color-alpha: "npm:^1.0.4" + flatten-vertex-data: "npm:^1.0.2" + parse-rect: "npm:^1.2.0" + pick-by-alias: "npm:^1.2.0" + raf: "npm:^3.4.1" + regl-scatter2d: "npm:^3.2.3" + checksum: 10c0/7f7d90c218b13e26fe3745cd8639fca739797908739e7924ea1e728f0e58031508a1f3db65ae7f5da2b2c33b290c36509cfd49db3e5c430ffa54805ac51dd51a + languageName: node + linkType: hard + +"regl@npm:^2.0.0": + version: 2.1.1 + resolution: "regl@npm:2.1.1" + checksum: 10c0/68aa1c6f94cb33da612515b0e69833af67dce422e5b8d891c6d8f4c055aac1afd44e2b94dcfe90bb79fde1c5cd48501db292f5268365140765256ea3518546e1 + languageName: node + linkType: hard + +"require-from-string@npm:^2.0.2": + version: 2.0.2 + resolution: "require-from-string@npm:2.0.2" + checksum: 10c0/aaa267e0c5b022fc5fd4eef49d8285086b15f2a1c54b28240fdf03599cbd9c26049fee3eab894f2e1f6ca65e513b030a7c264201e3f005601e80c49fb2937ce2 + languageName: node + linkType: hard + +"resolve-protobuf-schema@npm:^2.1.0": + version: 2.1.0 + resolution: "resolve-protobuf-schema@npm:2.1.0" + dependencies: + protocol-buffers-schema: "npm:^3.3.1" + checksum: 10c0/8e656b9072b1c001952f851251413bc79d8c771c3015f607b75e1ca3b8bd7c4396068dd19cdbb3019affa03f6457d2c0fd38d981ffd714215cd2e7c2b67221a7 + languageName: node + linkType: hard + +"resolve@npm:^0.6.1": + version: 0.6.3 + resolution: "resolve@npm:0.6.3" + checksum: 10c0/57f63aab332a668a1a424747b58851b7dddcfbd9b7a425a6050887858174943e499d1d11e3c10e676e8b0ede15ee6fc3ce919195c12d68082729db93a1517b6d + languageName: node + linkType: hard + +"resolve@npm:^1.0.0, resolve@npm:^1.1.10, resolve@npm:^1.1.5, resolve@npm:~1.22.1, resolve@npm:~1.22.2": + version: 1.22.10 + resolution: "resolve@npm:1.22.10" + dependencies: + is-core-module: "npm:^2.16.0" + path-parse: "npm:^1.0.7" + supports-preserve-symlinks-flag: "npm:^1.0.0" + bin: + resolve: bin/resolve + checksum: 10c0/8967e1f4e2cc40f79b7e080b4582b9a8c5ee36ffb46041dccb20e6461161adf69f843b43067b4a375de926a2cd669157e29a29578191def399dd5ef89a1b5203 + languageName: node + linkType: hard + +"resolve@patch:resolve@npm%3A^0.6.1#optional!builtin": + version: 0.6.3 + resolution: "resolve@patch:resolve@npm%3A0.6.3#optional!builtin::version=0.6.3&hash=3bafbf" + checksum: 10c0/a46adc49c7d6828028244cf4d6b9e09d8334f8f175195685c96f5f415986e1587d8a83757ebc4e706be7b8b95911046e0ddc83e9be539050add1806564eff841 + languageName: node + linkType: hard + +"resolve@patch:resolve@npm%3A^1.0.0#optional!builtin, resolve@patch:resolve@npm%3A^1.1.10#optional!builtin, resolve@patch:resolve@npm%3A^1.1.5#optional!builtin, resolve@patch:resolve@npm%3A~1.22.1#optional!builtin, resolve@patch:resolve@npm%3A~1.22.2#optional!builtin": + version: 1.22.10 + resolution: "resolve@patch:resolve@npm%3A1.22.10#optional!builtin::version=1.22.10&hash=c3c19d" + dependencies: + is-core-module: "npm:^2.16.0" + path-parse: "npm:^1.0.7" + supports-preserve-symlinks-flag: "npm:^1.0.0" + bin: + resolve: bin/resolve + checksum: 10c0/52a4e505bbfc7925ac8f4cd91fd8c4e096b6a89728b9f46861d3b405ac9a1ccf4dcbf8befb4e89a2e11370dacd0160918163885cbc669369590f2f31f4c58939 + languageName: node + linkType: hard + +"retry@npm:^0.12.0": + version: 0.12.0 + resolution: "retry@npm:0.12.0" + checksum: 10c0/59933e8501727ba13ad73ef4a04d5280b3717fd650408460c987392efe9d7be2040778ed8ebe933c5cbd63da3dcc37919c141ef8af0a54a6e4fca5a2af177bfe + languageName: node + linkType: hard + +"right-now@npm:^1.0.0": + version: 1.0.0 + resolution: "right-now@npm:1.0.0" + checksum: 10c0/e7a7e95d490e05816643adb99ce5bcbd726f39abc56f5da6e2d148fcd81803fd1320d80e03f186d8ac02a1b07116a777660897574cfc5c9c08e65e6f7f015a17 + languageName: node + linkType: hard + +"rollup@npm:^4.40.0": + version: 4.46.2 + resolution: "rollup@npm:4.46.2" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.46.2" + "@rollup/rollup-android-arm64": "npm:4.46.2" + "@rollup/rollup-darwin-arm64": "npm:4.46.2" + "@rollup/rollup-darwin-x64": "npm:4.46.2" + "@rollup/rollup-freebsd-arm64": "npm:4.46.2" + "@rollup/rollup-freebsd-x64": "npm:4.46.2" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.46.2" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.46.2" + "@rollup/rollup-linux-arm64-gnu": "npm:4.46.2" + "@rollup/rollup-linux-arm64-musl": "npm:4.46.2" + "@rollup/rollup-linux-loongarch64-gnu": "npm:4.46.2" + "@rollup/rollup-linux-ppc64-gnu": "npm:4.46.2" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.46.2" + "@rollup/rollup-linux-riscv64-musl": "npm:4.46.2" + "@rollup/rollup-linux-s390x-gnu": "npm:4.46.2" + "@rollup/rollup-linux-x64-gnu": "npm:4.46.2" + "@rollup/rollup-linux-x64-musl": "npm:4.46.2" + "@rollup/rollup-win32-arm64-msvc": "npm:4.46.2" + "@rollup/rollup-win32-ia32-msvc": "npm:4.46.2" + "@rollup/rollup-win32-x64-msvc": "npm:4.46.2" + "@types/estree": "npm:1.0.8" + fsevents: "npm:~2.3.2" + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-freebsd-arm64": + optional: true + "@rollup/rollup-freebsd-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm-musleabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-loongarch64-gnu": + optional: true + "@rollup/rollup-linux-ppc64-gnu": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-riscv64-musl": + optional: true + "@rollup/rollup-linux-s390x-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: 10c0/f428497fe119fe7c4e34f1020d45ba13e99b94c9aa36958d88823d932b155c9df3d84f53166f3ee913ff68ea6c7599a9ab34861d88562ad9d8420f64ca5dad4c + languageName: node + linkType: hard + +"rw@npm:^1.3.3": + version: 1.3.3 + resolution: "rw@npm:1.3.3" + checksum: 10c0/b1e1ef37d1e79d9dc7050787866e30b6ddcb2625149276045c262c6b4d53075ddc35f387a856a8e76f0d0df59f4cd58fe24707e40797ebee66e542b840ed6a53 + languageName: node + linkType: hard + +"safe-buffer@npm:^5.1.1": + version: 5.2.1 + resolution: "safe-buffer@npm:5.2.1" + checksum: 10c0/6501914237c0a86e9675d4e51d89ca3c21ffd6a31642efeba25ad65720bce6921c9e7e974e5be91a786b25aa058b5303285d3c15dbabf983a919f5f630d349f3 + languageName: node + linkType: hard + +"safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1": + version: 5.1.2 + resolution: "safe-buffer@npm:5.1.2" + checksum: 10c0/780ba6b5d99cc9a40f7b951d47152297d0e260f0df01472a1b99d4889679a4b94a13d644f7dbc4f022572f09ae9005fa2fbb93bbbd83643316f365a3e9a45b21 + languageName: node + linkType: hard + +"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0": + version: 2.1.2 + resolution: "safer-buffer@npm:2.1.2" + checksum: 10c0/7e3c8b2e88a1841c9671094bbaeebd94448111dd90a81a1f606f3f67708a6ec57763b3b47f06da09fc6054193e0e6709e77325415dc8422b04497a8070fa02d4 + languageName: node + linkType: hard + +"sax@npm:^1.2.4": + version: 1.4.1 + resolution: "sax@npm:1.4.1" + checksum: 10c0/6bf86318a254c5d898ede6bd3ded15daf68ae08a5495a2739564eb265cd13bcc64a07ab466fb204f67ce472bb534eb8612dac587435515169593f4fffa11de7c + languageName: node + linkType: hard + +"semver@npm:^6.3.1": + version: 6.3.1 + resolution: "semver@npm:6.3.1" + bin: + semver: bin/semver.js + checksum: 10c0/e3d79b609071caa78bcb6ce2ad81c7966a46a7431d9d58b8800cfa9cb6a63699b3899a0e4bcce36167a284578212d9ae6942b6929ba4aa5015c079a67751d42d + languageName: node + linkType: hard + +"semver@npm:^7.3.5": + version: 7.7.2 + resolution: "semver@npm:7.7.2" + bin: + semver: bin/semver.js + checksum: 10c0/aca305edfbf2383c22571cb7714f48cadc7ac95371b4b52362fb8eeffdfbc0de0669368b82b2b15978f8848f01d7114da65697e56cd8c37b0dab8c58e543f9ea + languageName: node + linkType: hard + +"semver@npm:~7.5.4": + version: 7.5.4 + resolution: "semver@npm:7.5.4" + dependencies: + lru-cache: "npm:^6.0.0" + bin: + semver: bin/semver.js + checksum: 10c0/5160b06975a38b11c1ab55950cb5b8a23db78df88275d3d8a42ccf1f29e55112ac995b3a26a522c36e3b5f76b0445f1eef70d696b8c7862a2b4303d7b0e7609e + languageName: node + linkType: hard + +"shallow-copy@npm:0.0.1": + version: 0.0.1 + resolution: "shallow-copy@npm:0.0.1" + checksum: 10c0/ab1c762e36fa3a02cec228e111f227be0b46457a82f123c5ef13f3bc970be16b74dbfd0f1b6ffb450a66db856832800c86713ffc1ec5733d61f59f23fe114769 + languageName: node + linkType: hard + +"shebang-command@npm:^2.0.0": + version: 2.0.0 + resolution: "shebang-command@npm:2.0.0" + dependencies: + shebang-regex: "npm:^3.0.0" + checksum: 10c0/a41692e7d89a553ef21d324a5cceb5f686d1f3c040759c50aab69688634688c5c327f26f3ecf7001ebfd78c01f3c7c0a11a7c8bfd0a8bc9f6240d4f40b224e4e + languageName: node + linkType: hard + +"shebang-regex@npm:^3.0.0": + version: 3.0.0 + resolution: "shebang-regex@npm:3.0.0" + checksum: 10c0/1dbed0726dd0e1152a92696c76c7f06084eb32a90f0528d11acd764043aacf76994b2fb30aa1291a21bd019d6699164d048286309a278855ee7bec06cf6fb690 + languageName: node + linkType: hard + +"signal-exit@npm:^4.0.1": + version: 4.1.0 + resolution: "signal-exit@npm:4.1.0" + checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 + languageName: node + linkType: hard + +"signum@npm:^1.0.0": + version: 1.0.0 + resolution: "signum@npm:1.0.0" + checksum: 10c0/e29582d673f0e2f3b2345f7e795f2c2be192e353f80371ed79631a0708f0200dd4db7997636b51b818007cd426da156becee3316ff9fa5c63004ce672162c74b + languageName: node + linkType: hard + +"smart-buffer@npm:^4.2.0": + version: 4.2.0 + resolution: "smart-buffer@npm:4.2.0" + checksum: 10c0/a16775323e1404dd43fabafe7460be13a471e021637bc7889468eb45ce6a6b207261f454e4e530a19500cc962c4cc5348583520843b363f4193cee5c00e1e539 + languageName: node + linkType: hard + +"socks-proxy-agent@npm:^8.0.3": + version: 8.0.5 + resolution: "socks-proxy-agent@npm:8.0.5" + dependencies: + agent-base: "npm:^7.1.2" + debug: "npm:^4.3.4" + socks: "npm:^2.8.3" + checksum: 10c0/5d2c6cecba6821389aabf18728325730504bf9bb1d9e342e7987a5d13badd7a98838cc9a55b8ed3cb866ad37cc23e1086f09c4d72d93105ce9dfe76330e9d2a6 + languageName: node + linkType: hard + +"socks@npm:^2.8.3": + version: 2.8.6 + resolution: "socks@npm:2.8.6" + dependencies: + ip-address: "npm:^9.0.5" + smart-buffer: "npm:^4.2.0" + checksum: 10c0/15b95db4caa359c80bfa880ff3e58f3191b9ffa4313570e501a60ee7575f51e4be664a296f4ee5c2c40544da179db6140be53433ce41ec745f9d51f342557514 + languageName: node + linkType: hard + +"source-map-js@npm:^1.2.1": + version: 1.2.1 + resolution: "source-map-js@npm:1.2.1" + checksum: 10c0/7bda1fc4c197e3c6ff17de1b8b2c20e60af81b63a52cb32ec5a5d67a20a7d42651e2cb34ebe93833c5a2a084377e17455854fee3e21e7925c64a51b6a52b0faf + languageName: node + linkType: hard + +"source-map@npm:~0.6.1": + version: 0.6.1 + resolution: "source-map@npm:0.6.1" + checksum: 10c0/ab55398007c5e5532957cb0beee2368529618ac0ab372d789806f5718123cc4367d57de3904b4e6a4170eb5a0b0f41373066d02ca0735a0c4d75c7d328d3e011 + languageName: node + linkType: hard + +"sprintf-js@npm:^1.1.3": + version: 1.1.3 + resolution: "sprintf-js@npm:1.1.3" + checksum: 10c0/09270dc4f30d479e666aee820eacd9e464215cdff53848b443964202bf4051490538e5dd1b42e1a65cf7296916ca17640aebf63dae9812749c7542ee5f288dec + languageName: node + linkType: hard + +"sprintf-js@npm:~1.0.2": + version: 1.0.3 + resolution: "sprintf-js@npm:1.0.3" + checksum: 10c0/ecadcfe4c771890140da5023d43e190b7566d9cf8b2d238600f31bec0fc653f328da4450eb04bd59a431771a8e9cc0e118f0aa3974b683a4981b4e07abc2a5bb + languageName: node + linkType: hard + +"ssri@npm:^12.0.0": + version: 12.0.0 + resolution: "ssri@npm:12.0.0" + dependencies: + minipass: "npm:^7.0.3" + checksum: 10c0/caddd5f544b2006e88fa6b0124d8d7b28208b83c72d7672d5ade44d794525d23b540f3396108c4eb9280dcb7c01f0bef50682f5b4b2c34291f7c5e211fd1417d + languageName: node + linkType: hard + +"stack-trace@npm:0.0.9": + version: 0.0.9 + resolution: "stack-trace@npm:0.0.9" + checksum: 10c0/dd4fc71b4b5e956550d4aeea35b74893dfa79981237ebcaa071f4a38bba78d7fd553ec402fc5a63018a52dc75c1ebe61847c3b84ef7654b3e85e44b6a5728cfd + languageName: node + linkType: hard + +"static-eval@npm:^2.0.5": + version: 2.1.1 + resolution: "static-eval@npm:2.1.1" + dependencies: + escodegen: "npm:^2.1.0" + checksum: 10c0/ad8ab8f86e6f82e3ff6c80d60a4c0ccfb086082cf594fa71a5c38cb6ed59607660e7a3e0103f3583ca38716744321d487bbe55a5ae2c6a9c965b5cf4d4cf2960 + languageName: node + linkType: hard + +"stream-parser@npm:~0.3.1": + version: 0.3.1 + resolution: "stream-parser@npm:0.3.1" + dependencies: + debug: "npm:2" + checksum: 10c0/585508801423bd6c53f6dda9d78e4b743a08ab72e8e2680431fa855ef950e59c849ec2838f2a00c59af655ff8463e90f660f9169a816e63a3ca159cf713bae5c + languageName: node + linkType: hard + +"stream-shift@npm:^1.0.0": + version: 1.0.3 + resolution: "stream-shift@npm:1.0.3" + checksum: 10c0/939cd1051ca750d240a0625b106a2b988c45fb5a3be0cebe9a9858cb01bc1955e8c7b9fac17a9462976bea4a7b704e317c5c2200c70f0ca715a3363b9aa4fd3b + languageName: node + linkType: hard + +"string-argv@npm:~0.3.1": + version: 0.3.2 + resolution: "string-argv@npm:0.3.2" + checksum: 10c0/75c02a83759ad1722e040b86823909d9a2fc75d15dd71ec4b537c3560746e33b5f5a07f7332d1e3f88319909f82190843aa2f0a0d8c8d591ec08e93d5b8dec82 + languageName: node + linkType: hard + +"string-split-by@npm:^1.0.0": + version: 1.0.0 + resolution: "string-split-by@npm:1.0.0" + dependencies: + parenthesis: "npm:^3.1.5" + checksum: 10c0/7feac22db5eb4fedc418818fe6c9277d2b2bbe8d200877ed4be629eeff6dafb686b04d87f3c49aa0b7ccaedaf5c576e31dd0e756ea82421cc48f362ece48b942 + languageName: node + linkType: hard + +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0": + version: 4.2.3 + resolution: "string-width@npm:4.2.3" + dependencies: + emoji-regex: "npm:^8.0.0" + is-fullwidth-code-point: "npm:^3.0.0" + strip-ansi: "npm:^6.0.1" + checksum: 10c0/1e525e92e5eae0afd7454086eed9c818ee84374bb80328fc41217ae72ff5f065ef1c9d7f72da41de40c75fa8bb3dee63d92373fd492c84260a552c636392a47b + languageName: node + linkType: hard + +"string-width@npm:^5.0.1, string-width@npm:^5.1.2": + version: 5.1.2 + resolution: "string-width@npm:5.1.2" + dependencies: + eastasianwidth: "npm:^0.2.0" + emoji-regex: "npm:^9.2.2" + strip-ansi: "npm:^7.0.1" + checksum: 10c0/ab9c4264443d35b8b923cbdd513a089a60de339216d3b0ed3be3ba57d6880e1a192b70ae17225f764d7adbf5994e9bb8df253a944736c15a0240eff553c678ca + languageName: node + linkType: hard + +"string_decoder@npm:~0.10.x": + version: 0.10.31 + resolution: "string_decoder@npm:0.10.31" + checksum: 10c0/1c628d78f974aa7539c496029f48e7019acc32487fc695464f9d6bdfec98edd7d933a06b3216bc2016918f6e75074c611d84430a53cb0e43071597d6c1ac5e25 + languageName: node + linkType: hard + +"string_decoder@npm:~1.1.1": + version: 1.1.1 + resolution: "string_decoder@npm:1.1.1" + dependencies: + safe-buffer: "npm:~5.1.0" + checksum: 10c0/b4f89f3a92fd101b5653ca3c99550e07bdf9e13b35037e9e2a1c7b47cec4e55e06ff3fc468e314a0b5e80bfbaf65c1ca5a84978764884ae9413bec1fc6ca924e + languageName: node + linkType: hard + +"strip-ansi-cjs@npm:strip-ansi@^6.0.1, strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": + version: 6.0.1 + resolution: "strip-ansi@npm:6.0.1" + dependencies: + ansi-regex: "npm:^5.0.1" + checksum: 10c0/1ae5f212a126fe5b167707f716942490e3933085a5ff6c008ab97ab2f272c8025d3aa218b7bd6ab25729ca20cc81cddb252102f8751e13482a5199e873680952 + languageName: node + linkType: hard + +"strip-ansi@npm:^7.0.1": + version: 7.1.0 + resolution: "strip-ansi@npm:7.1.0" + dependencies: + ansi-regex: "npm:^6.0.1" + checksum: 10c0/a198c3762e8832505328cbf9e8c8381de14a4fa50a4f9b2160138158ea88c0f5549fb50cb13c651c3088f47e63a108b34622ec18c0499b6c8c3a5ddf6b305ac4 + languageName: node + linkType: hard + +"strip-json-comments@npm:~3.1.1": + version: 3.1.1 + resolution: "strip-json-comments@npm:3.1.1" + checksum: 10c0/9681a6257b925a7fa0f285851c0e613cc934a50661fa7bb41ca9cbbff89686bb4a0ee366e6ecedc4daafd01e83eee0720111ab294366fe7c185e935475ebcecd + languageName: node + linkType: hard + +"strongly-connected-components@npm:^1.0.1": + version: 1.0.1 + resolution: "strongly-connected-components@npm:1.0.1" + checksum: 10c0/ab29f29be3f0d659bec3901590e7e52b0fe340e1387234b8609a00740a1afc31c34e54b503954f85ca27a17be3bc36e38db62525dc51cca9126b2b67e5be3e36 + languageName: node + linkType: hard + +"supercluster@npm:^7.1.0": + version: 7.1.5 + resolution: "supercluster@npm:7.1.5" + dependencies: + kdbush: "npm:^3.0.0" + checksum: 10c0/bbebf45927d0019831731c94b78d1c9a1f3e2da0be9875d7ea75c6f261487e0f15d3f1822a9a49256e3c1672bdfb9138f9a5e44e2de99edb06cd1e758083e12d + languageName: node + linkType: hard + +"supercluster@npm:^8.0.1": + version: 8.0.1 + resolution: "supercluster@npm:8.0.1" + dependencies: + kdbush: "npm:^4.0.2" + checksum: 10c0/79121e6dbff67b3036ea6651f3baddb942478830ba3ecbc27455715ab5bd269de8381dc04618c0c15963346ea2ed0f81cd5f767c2978a63e2841807c73445d57 + languageName: node + linkType: hard + +"superscript-text@npm:^1.0.0": + version: 1.0.0 + resolution: "superscript-text@npm:1.0.0" + checksum: 10c0/0d4dee472ca830234c16fd56cdf7d4bf6e3b7d80aefbb2390a6e8aa9b9e304d67df39e6154f9238e6eaebfe47766aad8de6082781760f0cc16c6ee6b57f547df + languageName: node + linkType: hard + +"supports-color@npm:~8.1.1": + version: 8.1.1 + resolution: "supports-color@npm:8.1.1" + dependencies: + has-flag: "npm:^4.0.0" + checksum: 10c0/ea1d3c275dd604c974670f63943ed9bd83623edc102430c05adb8efc56ba492746b6e95386e7831b872ec3807fd89dd8eb43f735195f37b5ec343e4234cc7e89 + languageName: node + linkType: hard + +"supports-preserve-symlinks-flag@npm:^1.0.0": + version: 1.0.0 + resolution: "supports-preserve-symlinks-flag@npm:1.0.0" + checksum: 10c0/6c4032340701a9950865f7ae8ef38578d8d7053f5e10518076e6554a9381fa91bd9c6850193695c141f32b21f979c985db07265a758867bac95de05f7d8aeb39 + languageName: node + linkType: hard + +"svg-arc-to-cubic-bezier@npm:^3.0.0": + version: 3.2.0 + resolution: "svg-arc-to-cubic-bezier@npm:3.2.0" + checksum: 10c0/6dddbaff9defa55a891593b48ba6bd5f1b3c89d747cf818a8342ec4cac10b06de6cd37478dc9483cba5e8d1a7d3dac2d0bbab47858d207a2d1a6a61b5acdd442 + languageName: node + linkType: hard + +"svg-path-bounds@npm:^1.0.1": + version: 1.0.2 + resolution: "svg-path-bounds@npm:1.0.2" + dependencies: + abs-svg-path: "npm:^0.1.1" + is-svg-path: "npm:^1.0.1" + normalize-svg-path: "npm:^1.0.0" + parse-svg-path: "npm:^0.1.2" + checksum: 10c0/d24bfe8fd38405956d5ab3c41fe65d8984c2791a878cd3f4d70fe278575f1ce3270c78a07f3d2d32996485e3714f0167514fdfc5a9d7239d7c7535d391d04e1e + languageName: node + linkType: hard + +"svg-path-sdf@npm:^1.1.3": + version: 1.1.3 + resolution: "svg-path-sdf@npm:1.1.3" + dependencies: + bitmap-sdf: "npm:^1.0.0" + draw-svg-path: "npm:^1.0.0" + is-svg-path: "npm:^1.0.1" + parse-svg-path: "npm:^0.1.2" + svg-path-bounds: "npm:^1.0.1" + checksum: 10c0/0eb47e0c1946fa8515a9783a682c45c4fbb7fbaf7da76eaee96721bb40560ce97356a10e9cbdf988dc257219160b60842c6cfcdea95a8709a8d2e77657e2abfa + languageName: node + linkType: hard + +"tar@npm:^7.4.3": + version: 7.4.3 + resolution: "tar@npm:7.4.3" + dependencies: + "@isaacs/fs-minipass": "npm:^4.0.0" + chownr: "npm:^3.0.0" + minipass: "npm:^7.1.2" + minizlib: "npm:^3.0.1" + mkdirp: "npm:^3.0.1" + yallist: "npm:^5.0.0" + checksum: 10c0/d4679609bb2a9b48eeaf84632b6d844128d2412b95b6de07d53d8ee8baf4ca0857c9331dfa510390a0727b550fd543d4d1a10995ad86cdf078423fbb8d99831d + languageName: node + linkType: hard + +"through2@npm:^0.6.3": + version: 0.6.5 + resolution: "through2@npm:0.6.5" + dependencies: + readable-stream: "npm:>=1.0.33-1 <1.1.0-0" + xtend: "npm:>=4.0.0 <4.1.0-0" + checksum: 10c0/3294325d73b120ffbb8cd00e28a649a99e194cef2638bf782b6c2eb0c163b388f7b7bb908003949f58f9f6b8f771defd24b6e4df051eb410fd87931521963b98 + languageName: node + linkType: hard + +"through2@npm:^2.0.1": + version: 2.0.5 + resolution: "through2@npm:2.0.5" + dependencies: + readable-stream: "npm:~2.3.6" + xtend: "npm:~4.0.1" + checksum: 10c0/cbfe5b57943fa12b4f8c043658c2a00476216d79c014895cef1ac7a1d9a8b31f6b438d0e53eecbb81054b93128324a82ecd59ec1a4f91f01f7ac113dcb14eade + languageName: node + linkType: hard + +"tinycolor2@npm:^1.4.2": + version: 1.6.0 + resolution: "tinycolor2@npm:1.6.0" + checksum: 10c0/9aa79a36ba2c2a87cb221453465cabacd04b9e35f9694373e846fdc78b1c768110f81e581ea41440106c0f24d9a023891d0887e8075885e790ac40eb0e74a5c1 + languageName: node + linkType: hard + +"tinyglobby@npm:^0.2.12, tinyglobby@npm:^0.2.14": + version: 0.2.14 + resolution: "tinyglobby@npm:0.2.14" + dependencies: + fdir: "npm:^6.4.4" + picomatch: "npm:^4.0.2" + checksum: 10c0/f789ed6c924287a9b7d3612056ed0cda67306cd2c80c249fd280cf1504742b12583a2089b61f4abbd24605f390809017240e250241f09938054c9b363e51c0a6 + languageName: node + linkType: hard + +"tinyqueue@npm:^2.0.3": + version: 2.0.3 + resolution: "tinyqueue@npm:2.0.3" + checksum: 10c0/d7b590088f015a94a17132fa209c2f2a80c45158259af5474901fdf5932e95ea13ff6f034bcc725a6d5f66d3e5b888b048c310229beb25ad5bebb4f0a635abf2 + languageName: node + linkType: hard + +"tinyqueue@npm:^3.0.0": + version: 3.0.0 + resolution: "tinyqueue@npm:3.0.0" + checksum: 10c0/edd6f1a6146aa3aa7bc85b44b3aacf44cddfa805b0901019272d7e9235894b4f28b2f9d09c1bce500ae48883b03708b6b871aa33920e895d2943720f7a9ad3ba + languageName: node + linkType: hard + +"to-float32@npm:^1.1.0": + version: 1.1.0 + resolution: "to-float32@npm:1.1.0" + checksum: 10c0/7fed0ba97b9c6280b5858d2ca60ed005961f5feda7c413c6f7eb2be224ed033244d413ab6c53bd5d603edba2642d15ba4f952ebf1e87dc1fe837182a41b7b811 + languageName: node + linkType: hard + +"to-px@npm:1.0.1": + version: 1.0.1 + resolution: "to-px@npm:1.0.1" + dependencies: + parse-unit: "npm:^1.0.1" + checksum: 10c0/bd6c2a300316700a81b602283365ce6e093ca77ebdca5611578f3fe58d9799f4a328e836ae5a034e5f007ec513712545ca93e61f4db199f9a87a8a29bb34d756 + languageName: node + linkType: hard + +"to-px@npm:^1.0.1": + version: 1.1.0 + resolution: "to-px@npm:1.1.0" + dependencies: + parse-unit: "npm:^1.0.1" + checksum: 10c0/c6bb7132a8dac1ca647f63747362f74cfeacffd3b518d011d0bb9f30b33a6261c3e3d7ec4c32fe723f2ba654344f5777a439636ee0cca8b6cf8258675f83bb7e + languageName: node + linkType: hard + +"topojson-client@npm:^3.1.0": + version: 3.1.0 + resolution: "topojson-client@npm:3.1.0" + dependencies: + commander: "npm:2" + bin: + topo2geo: bin/topo2geo + topomerge: bin/topomerge + topoquantize: bin/topoquantize + checksum: 10c0/da2acba268cbf4d002483d5d81452e0d797b2fff6041fafb1d420e58973fa780a6f42041ce4c2677376ab977e5e1732b89c42a2db3c334a34f6c47f4d94b3eaa + languageName: node + linkType: hard + +"tslib@npm:^2.8.1": + version: 2.8.1 + resolution: "tslib@npm:2.8.1" + checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62 + languageName: node + linkType: hard + +"type@npm:^2.7.2": + version: 2.7.3 + resolution: "type@npm:2.7.3" + checksum: 10c0/dec6902c2c42fcb86e3adf8cdabdf80e5ef9de280872b5fd547351e9cca2fe58dd2aa6d2547626ddff174145db272f62d95c7aa7038e27c11315657d781a688d + languageName: node + linkType: hard + +"typedarray-pool@npm:^1.1.0": + version: 1.2.0 + resolution: "typedarray-pool@npm:1.2.0" + dependencies: + bit-twiddle: "npm:^1.0.0" + dup: "npm:^1.0.0" + checksum: 10c0/1e1050e51470f58bd01a82cc0ab881c148e29863e3eaf7bc115033016214fc8588e6fd21354be8ef449062e5a83bfc85434c788c378b62234aa3d391fffc2957 + languageName: node + linkType: hard + +"typedarray@npm:^0.0.6": + version: 0.0.6 + resolution: "typedarray@npm:0.0.6" + checksum: 10c0/6005cb31df50eef8b1f3c780eb71a17925f3038a100d82f9406ac2ad1de5eb59f8e6decbdc145b3a1f8e5836e17b0c0002fb698b9fe2516b8f9f9ff602d36412 + languageName: node + linkType: hard + +"typescript@npm:5.8.2": + version: 5.8.2 + resolution: "typescript@npm:5.8.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/5c4f6fbf1c6389b6928fe7b8fcd5dc73bb2d58cd4e3883f1d774ed5bd83b151cbac6b7ecf11723de56d4676daeba8713894b1e9af56174f2f9780ae7848ec3c6 + languageName: node + linkType: hard + +"typescript@npm:^5.0.0": + version: 5.9.2 + resolution: "typescript@npm:5.9.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/cd635d50f02d6cf98ed42de2f76289701c1ec587a363369255f01ed15aaf22be0813226bff3c53e99d971f9b540e0b3cc7583dbe05faded49b1b0bed2f638a18 + languageName: node + linkType: hard + +"typescript@patch:typescript@npm%3A5.8.2#optional!builtin": + version: 5.8.2 + resolution: "typescript@patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/5448a08e595cc558ab321e49d4cac64fb43d1fa106584f6ff9a8d8e592111b373a995a1d5c7f3046211c8a37201eb6d0f1566f15cdb7a62a5e3be01d087848e2 + languageName: node + linkType: hard + +"typescript@patch:typescript@npm%3A^5.0.0#optional!builtin": + version: 5.9.2 + resolution: "typescript@patch:typescript@npm%3A5.9.2#optional!builtin::version=5.9.2&hash=5786d5" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/34d2a8e23eb8e0d1875072064d5e1d9c102e0bdce56a10a25c0b917b8aa9001a9cf5c225df12497e99da107dc379360bc138163c66b55b95f5b105b50578067e + languageName: node + linkType: hard + +"ufo@npm:^1.5.4": + version: 1.6.1 + resolution: "ufo@npm:1.6.1" + checksum: 10c0/5a9f041e5945fba7c189d5410508cbcbefef80b253ed29aa2e1f8a2b86f4bd51af44ee18d4485e6d3468c92be9bf4a42e3a2b72dcaf27ce39ce947ec994f1e6b + languageName: node + linkType: hard + +"unique-filename@npm:^4.0.0": + version: 4.0.0 + resolution: "unique-filename@npm:4.0.0" + dependencies: + unique-slug: "npm:^5.0.0" + checksum: 10c0/38ae681cceb1408ea0587b6b01e29b00eee3c84baee1e41fd5c16b9ed443b80fba90c40e0ba69627e30855570a34ba8b06702d4a35035d4b5e198bf5a64c9ddc + languageName: node + linkType: hard + +"unique-slug@npm:^5.0.0": + version: 5.0.0 + resolution: "unique-slug@npm:5.0.0" + dependencies: + imurmurhash: "npm:^0.1.4" + checksum: 10c0/d324c5a44887bd7e105ce800fcf7533d43f29c48757ac410afd42975de82cc38ea2035c0483f4de82d186691bf3208ef35c644f73aa2b1b20b8e651be5afd293 + languageName: node + linkType: hard + +"universalify@npm:^2.0.0": + version: 2.0.1 + resolution: "universalify@npm:2.0.1" + checksum: 10c0/73e8ee3809041ca8b818efb141801a1004e3fc0002727f1531f4de613ea281b494a40909596dae4a042a4fb6cd385af5d4db2e137b1362e0e91384b828effd3a + languageName: node + linkType: hard + +"unquote@npm:^1.1.0": + version: 1.1.1 + resolution: "unquote@npm:1.1.1" + checksum: 10c0/de59fb48cbaadc636002c6563dcb6b1bce95c91ebecb92addbc9bb47982cb03e7d8a8371c9617267b9e5746bbcb4403394139bc1310106b9ac4c26790ed57859 + languageName: node + linkType: hard + +"update-browserslist-db@npm:^1.1.3": + version: 1.1.3 + resolution: "update-browserslist-db@npm:1.1.3" + dependencies: + escalade: "npm:^3.2.0" + picocolors: "npm:^1.1.1" + peerDependencies: + browserslist: ">= 4.21.0" + bin: + update-browserslist-db: cli.js + checksum: 10c0/682e8ecbf9de474a626f6462aa85927936cdd256fe584c6df2508b0df9f7362c44c957e9970df55dfe44d3623807d26316ea2c7d26b80bb76a16c56c37233c32 + languageName: node + linkType: hard + +"update-diff@npm:^1.1.0": + version: 1.1.0 + resolution: "update-diff@npm:1.1.0" + checksum: 10c0/d517eb23c04d15b6bbef108b622ec8fd6f57ac19b339b1598efe8ad551005c7ab1addb03eac5d247804ed981772ff5c8538d14d2b06da69c73029aeb2bb673e8 + languageName: node + linkType: hard + +"uri-js@npm:^4.2.2, uri-js@npm:^4.4.1": + version: 4.4.1 + resolution: "uri-js@npm:4.4.1" + dependencies: + punycode: "npm:^2.1.0" + checksum: 10c0/4ef57b45aa820d7ac6496e9208559986c665e49447cb072744c13b66925a362d96dd5a46c4530a6b8e203e5db5fe849369444440cb22ecfc26c679359e5dfa3c + languageName: node + linkType: hard + +"util-deprecate@npm:~1.0.1": + version: 1.0.2 + resolution: "util-deprecate@npm:1.0.2" + checksum: 10c0/41a5bdd214df2f6c3ecf8622745e4a366c4adced864bc3c833739791aeeeb1838119af7daed4ba36428114b5c67dcda034a79c882e97e43c03e66a4dd7389942 + languageName: node + linkType: hard + +"vite-plugin-dts@npm:^4.0.0": + version: 4.5.4 + resolution: "vite-plugin-dts@npm:4.5.4" + dependencies: + "@microsoft/api-extractor": "npm:^7.50.1" + "@rollup/pluginutils": "npm:^5.1.4" + "@volar/typescript": "npm:^2.4.11" + "@vue/language-core": "npm:2.2.0" + compare-versions: "npm:^6.1.1" + debug: "npm:^4.4.0" + kolorist: "npm:^1.8.0" + local-pkg: "npm:^1.0.0" + magic-string: "npm:^0.30.17" + peerDependencies: + typescript: "*" + vite: "*" + peerDependenciesMeta: + vite: + optional: true + checksum: 10c0/5fcb7f3739d115f36195a692c0e9f9fca4e504bbbbabe29e71ee06630dd05ea2920169371e80e548eb4779d2eca14107277497838d7df588d53e1fadf84be861 + languageName: node + linkType: hard + +"vite@npm:^7.0.0": + version: 7.0.6 + resolution: "vite@npm:7.0.6" + dependencies: + esbuild: "npm:^0.25.0" + fdir: "npm:^6.4.6" + fsevents: "npm:~2.3.3" + picomatch: "npm:^4.0.3" + postcss: "npm:^8.5.6" + rollup: "npm:^4.40.0" + tinyglobby: "npm:^0.2.14" + peerDependencies: + "@types/node": ^20.19.0 || >=22.12.0 + jiti: ">=1.21.0" + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: ">=0.54.8" + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + dependenciesMeta: + fsevents: + optional: true + peerDependenciesMeta: + "@types/node": + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + bin: + vite: bin/vite.js + checksum: 10c0/3b14dfa661281b4843789884199ba2a9cca940a7666970036fe3fb1abff52b88e63e8be5ab419dd04d9f96c0415ee0f1e3ec8ebe357041648af7ccd8e348b6ad + languageName: node + linkType: hard + +"vscode-uri@npm:^3.0.8": + version: 3.1.0 + resolution: "vscode-uri@npm:3.1.0" + checksum: 10c0/5f6c9c10fd9b1664d71fab4e9fbbae6be93c7f75bb3a1d9d74399a88ab8649e99691223fd7cef4644376cac6e94fa2c086d802521b9a8e31c5af3e60f0f35624 + languageName: node + linkType: hard + +"vt-pbf@npm:^3.1.1, vt-pbf@npm:^3.1.3": + version: 3.1.3 + resolution: "vt-pbf@npm:3.1.3" + dependencies: + "@mapbox/point-geometry": "npm:0.1.0" + "@mapbox/vector-tile": "npm:^1.3.1" + pbf: "npm:^3.2.1" + checksum: 10c0/a568801ae25f0ffe65ef697bf520c996c8a4067f73f355c0d5815238de90322c8ca207c61220206141cfe6f5b525de875b7eb26e22979a1b768b96d03b93dca7 + languageName: node + linkType: hard + +"weak-map@npm:^1.0.5": + version: 1.0.8 + resolution: "weak-map@npm:1.0.8" + checksum: 10c0/56c3c044f41a3f096db55d5dec86bb57e042fa21081491be5fa406608669089c09153de66c14cc8b93c4979fe977c92316e83cba25c2f0305c870065deff042f + languageName: node + linkType: hard + +"webgl-context@npm:^2.2.0": + version: 2.2.0 + resolution: "webgl-context@npm:2.2.0" + dependencies: + get-canvas-context: "npm:^1.0.1" + checksum: 10c0/4a2f677657e340a3b48153d36a7b7487d41e745214f114dd97a357372da7cd3fc051c85ceb5024410b431251bfdaeb028eb54fb22b46290f1178d7cb0eba70ba + languageName: node + linkType: hard + +"which@npm:^2.0.1": + version: 2.0.2 + resolution: "which@npm:2.0.2" + dependencies: + isexe: "npm:^2.0.0" + bin: + node-which: ./bin/node-which + checksum: 10c0/66522872a768b60c2a65a57e8ad184e5372f5b6a9ca6d5f033d4b0dc98aff63995655a7503b9c0a2598936f532120e81dd8cc155e2e92ed662a2b9377cc4374f + languageName: node + linkType: hard + +"which@npm:^4.0.0": + version: 4.0.0 + resolution: "which@npm:4.0.0" + dependencies: + isexe: "npm:^3.1.1" + bin: + node-which: bin/which.js + checksum: 10c0/449fa5c44ed120ccecfe18c433296a4978a7583bf2391c50abce13f76878d2476defde04d0f79db8165bdf432853c1f8389d0485ca6e8ebce3bbcded513d5e6a + languageName: node + linkType: hard + +"which@npm:^5.0.0": + version: 5.0.0 + resolution: "which@npm:5.0.0" + dependencies: + isexe: "npm:^3.1.1" + bin: + node-which: bin/which.js + checksum: 10c0/e556e4cd8b7dbf5df52408c9a9dd5ac6518c8c5267c8953f5b0564073c66ed5bf9503b14d876d0e9c7844d4db9725fb0dcf45d6e911e17e26ab363dc3965ae7b + languageName: node + linkType: hard + +"world-calendars@npm:^1.0.4": + version: 1.0.4 + resolution: "world-calendars@npm:1.0.4" + dependencies: + object-assign: "npm:^4.1.0" + checksum: 10c0/8f89412868180dd56e12bcce2d0c0f965c6f7cc0f1c9b26e21d2ced8da6f3f1ac34b648e66da63d148136479f1916776a554352ecccc815b5b14c5396aafc328 + languageName: node + linkType: hard + +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version: 7.0.0 + resolution: "wrap-ansi@npm:7.0.0" + dependencies: + ansi-styles: "npm:^4.0.0" + string-width: "npm:^4.1.0" + strip-ansi: "npm:^6.0.0" + checksum: 10c0/d15fc12c11e4cbc4044a552129ebc75ee3f57aa9c1958373a4db0292d72282f54373b536103987a4a7594db1ef6a4f10acf92978f79b98c49306a4b58c77d4da + languageName: node + linkType: hard + +"wrap-ansi@npm:^8.1.0": + version: 8.1.0 + resolution: "wrap-ansi@npm:8.1.0" + dependencies: + ansi-styles: "npm:^6.1.0" + string-width: "npm:^5.0.1" + strip-ansi: "npm:^7.0.1" + checksum: 10c0/138ff58a41d2f877eae87e3282c0630fc2789012fc1af4d6bd626eeb9a2f9a65ca92005e6e69a75c7b85a68479fe7443c7dbe1eb8fbaa681a4491364b7c55c60 + languageName: node + linkType: hard + +"wrappy@npm:1": + version: 1.0.2 + resolution: "wrappy@npm:1.0.2" + checksum: 10c0/56fece1a4018c6a6c8e28fbc88c87e0fbf4ea8fd64fc6c63b18f4acc4bd13e0ad2515189786dd2c30d3eec9663d70f4ecf699330002f8ccb547e4a18231fc9f0 + languageName: node + linkType: hard + +"xtend@npm:>=4.0.0 <4.1.0-0, xtend@npm:^4.0.0, xtend@npm:~4.0.1": + version: 4.0.2 + resolution: "xtend@npm:4.0.2" + checksum: 10c0/366ae4783eec6100f8a02dff02ac907bf29f9a00b82ac0264b4d8b832ead18306797e283cf19de776538babfdcb2101375ec5646b59f08c52128ac4ab812ed0e + languageName: node + linkType: hard + +"xtend@npm:^2.1.2": + version: 2.2.0 + resolution: "xtend@npm:2.2.0" + checksum: 10c0/396c724b8ea54c7346d7ca304116dc9aa0327b4cee4782c0a42707e6022d9a6b1c1d61b056357b1ee24102d6a366a90a313cc38e79bf70452d4d205b64a1575f + languageName: node + linkType: hard + +"yallist@npm:^3.0.2": + version: 3.1.1 + resolution: "yallist@npm:3.1.1" + checksum: 10c0/c66a5c46bc89af1625476f7f0f2ec3653c1a1791d2f9407cfb4c2ba812a1e1c9941416d71ba9719876530e3340a99925f697142989371b72d93b9ee628afd8c1 + languageName: node + linkType: hard + +"yallist@npm:^4.0.0": + version: 4.0.0 + resolution: "yallist@npm:4.0.0" + checksum: 10c0/2286b5e8dbfe22204ab66e2ef5cc9bbb1e55dfc873bbe0d568aa943eb255d131890dfd5bf243637273d31119b870f49c18fcde2c6ffbb7a7a092b870dc90625a + languageName: node + linkType: hard + +"yallist@npm:^5.0.0": + version: 5.0.0 + resolution: "yallist@npm:5.0.0" + checksum: 10c0/a499c81ce6d4a1d260d4ea0f6d49ab4da09681e32c3f0472dee16667ed69d01dae63a3b81745a24bd78476ec4fcf856114cb4896ace738e01da34b2c42235416 + languageName: node + linkType: hard